/* ================================================================
   TC Schwarz-Weiß Golkrath e.V. — Stylesheet
   Nachbildung der IONOS-Website
   Farbschema: Dunkel (#121212 / #F5F5F5 / #858585)
   Font: Roboto
   ================================================================ */

/* Google Fonts jetzt per <link> im HTML geladen (nicht render-blocking) */

/* ── Variablen ─────────────────────────────────────────── */
:root {
    --bg-body:          #121212;
    --bg-card:          #1a1a1a;
    --bg-header:        #121212;
    --bg-footer:        #0e0e0e;
    --bg-input:         #1e1e1e;
    --text:             #F5F5F5;
    --text-secondary:   #b0b0b0;
    --text-muted:       #6e6e6e;
    --accent:           #858585;
    --accent-hover:     #a0a0a0;
    --nav-active:       #858585;
    --border:           #2a2a2a;
    --border-light:     #333333;
    --white:            #ffffff;
    --black:            #000000;
    --radius:           4px;
    --radius-lg:        8px;
    --transition:       0.3s ease;
    --max-width:        960px;
    --font:             'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 18px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg-body);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--text); }

h1, h2, h3, h4 {
    font-weight: 400;
    line-height: 1.3;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }

ul { list-style: none; }

/* ── Layout Container ──────────────────────────────────── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 60px 0;
}

/* ══════════════════════════════════════════════════════════
   HEADER / NAVIGATION
   ══════════════════════════════════════════════════════════ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    border-bottom: none;
    transition: background var(--transition);
}
.site-header.scrolled {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.no-hero .site-header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 10px 24px;
}

/* Logo */
.site-logo {
    order: 2;
    display: flex;
    align-items: flex-start;
    flex-shrink: 0;
    position: relative;
    z-index: 1001;
}
.site-logo img {
    height: 200px;
    width: auto;
    transition: transform 0.4s ease;
}
.site-logo img:hover {
    transform: scale(1.05);
}
.header-inner nav {
    order: 1;
    flex: 1;
}
.header-inner .hamburger {
    order: 0;
}

/* Desktop Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0;
}
.main-nav > li {
    position: relative;
}
.main-nav > li > a {
    display: block;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text);
    transition: color var(--transition);
    white-space: nowrap;
}
.main-nav > li > a:hover,
.main-nav > li > a.active {
    color: var(--nav-active);
}

/* Dropdown */
.dropdown {
    position: relative;
}

/* Platzbuchung Nav-Button — auskommentiert, siehe PLATZBUCHUNG-INTEGRATION.md
.nav-booking a {
    display: block;
    padding: 8px 20px;
    margin-left: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--black);
    background: var(--accent);
    border-radius: var(--radius);
    transition: all var(--transition);
    white-space: nowrap;
}
.nav-booking a:hover {
    background: var(--accent-hover);
    color: var(--black);
}

.mobile-nav-overlay .nav-booking-mobile {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--black);
    background: var(--accent);
    border-radius: var(--radius);
    border-bottom: none;
    text-align: center;
}
.mobile-nav-overlay .nav-booking-mobile:hover {
    background: var(--accent-hover);
    color: var(--black);
}
*/
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--bg-header);
    border: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition);
    z-index: 100;
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 0.85rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover {
    background: var(--bg-card);
    color: var(--nav-active);
}

/* Hamburger (Mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    top: 72px;
    background: var(--bg-header);
    z-index: 999;
    padding: 20px;
    overflow-y: auto;
}
.mobile-nav-overlay.open { display: block; }
.mobile-nav-overlay a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}
.mobile-nav-overlay a:hover { color: var(--nav-active); }
.mobile-nav-overlay .sub-link {
    padding-left: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ══════════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    margin-top: 0;
    padding-top: 100px;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.35) 40%, rgba(0,0,0,0.5) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 20px;
}
.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.hero-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════
   ABOUT / TEXT SECTION
   ══════════════════════════════════════════════════════════ */
.text-section {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 80px 16px;
}
.text-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* ══════════════════════════════════════════════════════════
   STATS
   ══════════════════════════════════════════════════════════ */
.stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 60px 16px;
    flex-wrap: wrap;
}
.stat-item {
    text-align: center;
}
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ── Mitglied werden CTA ──────────────────────────────── */
.mitglied-cta {
    text-align: center;
    padding-top: 24px;
}
.btn-mitglied {
    display: inline-block;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
    background: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-mitglied:hover {
    background: transparent;
    color: #ffffff;
}

/* ══════════════════════════════════════════════════════════
   SHOP BANNER / CTA
   ══════════════════════════════════════════════════════════ */
.cta-banner {
    position: relative;
    text-align: center;
    padding: 100px 16px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}
.cta-content {
    position: relative;
    z-index: 2;
}
.cta-banner h2 {
    margin-bottom: 24px;
    font-size: 1.8rem;
}
.cta-banner p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ══════════════════════════════════════════════════════════
   IMAGE GALLERY
   ══════════════════════════════════════════════════════════ */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 8px;
    padding: 40px 16px;
    max-width: var(--max-width);
    margin: 0 auto;
}
.gallery img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius);
    transition: transform var(--transition);
}
.gallery img:hover {
    transform: scale(1.02);
}

/* ══════════════════════════════════════════════════════════
   VORSTAND / TEAM CARDS
   ══════════════════════════════════════════════════════════ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 16px;
    justify-items: center;
}
.team-card {
    text-align: center;
}
.team-card-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 2px solid var(--border);
}
.team-card h3 {
    font-weight: 500;
    margin-bottom: 4px;
}
.team-card .role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════════
   TIMELINE / HISTORIE
   ══════════════════════════════════════════════════════════ */
.timeline {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 16px;
}
.timeline-item {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
    align-items: center;
}
.timeline-item.text-only {
    justify-content: center;
}
.timeline-item.text-only .timeline-text {
    max-width: 700px;
}
.timeline-item.reverse {
    flex-direction: row-reverse;
}
.timeline-img {
    flex: 0 0 280px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.timeline-img img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.timeline-text {
    flex: 1;
}
.timeline-text h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 12px;
}
.timeline-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════
   MANNSCHAFTEN
   ══════════════════════════════════════════════════════════ */
.team-section {
    text-align: center;
    padding: 60px 16px;
    max-width: var(--max-width);
    margin: 0 auto;
}
.team-section h2 {
    margin-bottom: 12px;
}
.team-section .subtitle {
    color: var(--text-secondary);
    margin-bottom: 24px;
}
.team-section .team-photo {
    max-width: 600px;
    margin: 0 auto 20px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.team-section .team-photo img {
    width: 100%;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 0.9rem;
    font-family: var(--font);
    font-weight: 400;
    color: var(--text);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.btn:hover {
    background: var(--accent);
    color: var(--black);
}

/* ══════════════════════════════════════════════════════════
   SPONSOREN
   ══════════════════════════════════════════════════════════ */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 16px;
}
.sponsor-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    transition: border-color var(--transition);
}
.sponsor-card:hover {
    border-color: var(--accent);
}
.sponsor-card img {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
}

/* ══════════════════════════════════════════════════════════
   KONTAKT
   ══════════════════════════════════════════════════════════ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 16px;
}

.contact-form .form-group {
    margin-bottom: 16px;
}/* Honeypot — unsichtbar fuer Menschen */
.form-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}.contact-form label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    transition: border-color var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
}
.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}
.contact-form .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.contact-form .checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
}
.contact-form .required-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 300px;
    background: var(--bg-card);
}
.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border: none;
}

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--bg-footer);
    border-top: 1px solid var(--border);
    padding: 40px 16px 20px;
}
.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-social {
    display: flex;
    gap: 12px;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: all var(--transition);
}
.footer-social a:hover {
    border-color: var(--accent);
    color: var(--text);
}
.footer-copy {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.footer-legal {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 12px 0;
}
.footer-legal a {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition);
}
.footer-legal a:hover {
    color: var(--text);
}

/* ══════════════════════════════════════════════════════════
   LEGAL PAGES (Impressum, Datenschutz)
   ══════════════════════════════════════════════════════════ */
.legal-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 120px 16px 80px;
}
.legal-page h2 {
    margin-bottom: 24px;
}
.legal-page p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.7;
}
.legal-page strong {
    color: var(--text);
}

/* ══════════════════════════════════════════════════════════
   INSTAGRAM / AKTUELLES
   ══════════════════════════════════════════════════════════ */
.instagram-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}
.instagram-header {
    text-align: center;
    padding: 40px 0 24px;
}
.instagram-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: color var(--transition);
}
.instagram-profile-link:hover {
    color: var(--accent);
}
.instagram-feed {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}
.instagram-feed iframe {
    border: none;
    border-radius: var(--radius);
    max-width: 100%;
}

/* ══════════════════════════════════════════════════════════
   PAGE HERO (smaller for subpages)
   ══════════════════════════════════════════════════════════ */
.page-hero {
    padding: 200px 16px 60px;
    text-align: center;
    background: var(--bg-card);
}
.page-hero h1 {
    font-size: 2rem;
    font-weight: 500;
}
.page-hero p {
    color: var(--text-secondary);
    margin-top: 12px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    html { font-size: 16px; }

    .main-nav { display: none; }
    .hamburger { display: flex; }

    .site-logo img { height: 110px; }
    .mobile-nav-overlay { top: 120px; }

    .hero { min-height: 50vh; margin-top: 0; padding-top: 80px; }
    .hero-content h1 { font-size: 2rem; }

    .stats { gap: 30px; }
    .stat-number { font-size: 2.2rem; }

    .timeline-item,
    .timeline-item.reverse {
        flex-direction: column;
    }
    .timeline-img { flex: none; width: 100%; }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-hero { padding-top: 140px; }

    .cookie-banner-inner { flex-direction: column; text-align: center; }
    .cookie-buttons { justify-content: center; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.6rem; }
    .stats { gap: 20px; }
    .team-grid { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════
   COOKIE CONSENT BANNER
   ══════════════════════════════════════════════════════════ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 20px 16px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}
.cookie-banner.visible {
    transform: translateY(0);
}
.cookie-banner-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.cookie-banner-inner p {
    flex: 1;
    min-width: 200px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.cookie-banner-inner p a {
    color: var(--text);
    text-decoration: underline;
}
.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.cookie-buttons .btn {
    padding: 10px 20px;
    font-size: 0.8rem;
    white-space: nowrap;
}
.btn-accept {
    background: var(--accent);
    color: var(--black);
    border-color: var(--accent);
}
.btn-accept:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

/* ── Consent-Placeholder für blockierte Inhalte ── */
.consent-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 300px;
    background: var(--bg-card);
    border: 1px dashed var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px 20px;
    text-align: center;
}
.consent-placeholder p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 400px;
}
.consent-placeholder .btn {
    font-size: 0.85rem;
}

/* ══════════════════════════════════════════════════════════
   SCROLL ANIMATIONS
   ══════════════════════════════════════════════════════════ */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════
   BACK TO TOP BUTTON
   ══════════════════════════════════════════════════════════ */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--accent);
    color: var(--black);
    border-color: var(--accent);
}
