/* ============================================================
   SHOWTECH Child Theme — Custom Styles
   Version: 1.0.0
   Struktur:
     01. Base & Reset
     02. Typography
     03. Layout & Container
     04. Header & Navigation
     05. Hero Section (#hero)
     06. Warum SHOWTECH (#warum)
     07. Aussteller (#aussteller)
     08. Location (#location)
     09. CTA & Newsletter (#newsletter)
     10. Terminanfrage / Calendly (#termin)
     11. Bühnen & Formate (#buehnen)
     12. Roadmap / Timeline (#roadmap)
     13. FAQ (#faq)
     14. Footer
     15. Button System
     16. Utilities
     17. Responsive — Tablet (< 992px)
     18. Responsive — Mobile (< 768px)
   ============================================================ */


/* ─── 01. BASE & RESET ──────────────────────────────────────── */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg-base);
    color: var(--color-text-primary);
    font-family: var(--font-main);
    font-size: var(--type-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent-blue-hover);
}


/* ─── 02. TYPOGRAPHY ────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-primary);
}

h1 { font-size: var(--type-h1); }
h2 { font-size: var(--type-h2); }
h3 { font-size: var(--type-h3); }

p {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-sm);
}

.text-accent      { color: var(--color-accent); }
.text-accent-blue { color: var(--color-accent-blue); }
.text-muted       { color: var(--color-text-secondary); }


/* ─── 03. LAYOUT & CONTAINER ────────────────────────────────── */

.container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--spacing-md);
}

.section {
    padding-block: var(--spacing-lg);
}

/* Sektions-Hintergründe */
.section--base      { background-color: var(--color-bg-base); }
.section--surface   { background-color: var(--color-bg-surface); }
.section--light     { background-color: var(--color-bg-light); color: var(--color-text-dark); }
.section--footer    { background-color: #050b14; }


/* ─── 04. HEADER & NAVIGATION ───────────────────────────────── */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Scrolled state — gesetzt via JS */
.site-header.scrolled {
    background: var(--header-bg-scroll);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
}

.logo-default {
    display: block;
    transition: opacity 0.3s ease;
}

.logo-sticky {
    display: none;
    transition: opacity 0.3s ease;
}

.scrolled .logo-default { display: none; }
.scrolled .logo-sticky  { display: block; }

/* Primary Navigation */
.nav-primary {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    list-style: none;
}

.nav-primary a {
    color: var(--color-text-primary);
    font-family: var(--font-main);
    font-weight: 500;
    font-size: var(--type-small);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.nav-primary a:hover {
    color: var(--color-accent-blue);
}

/* Header CTAs */
.header-ctas {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* Hamburger Toggle (Mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: var(--spacing-xs);
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile Nav Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--header-bg-scroll);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
}

.nav-overlay.is-open {
    display: flex;
}

.nav-overlay a {
    font-family: var(--font-heading);
    font-size: var(--type-h3);
    color: var(--color-text-primary);
    font-weight: 700;
}

.nav-overlay a:hover {
    color: var(--color-accent-blue);
}


/* ─── 05. HERO SECTION (#hero) ──────────────────────────────── */

#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--color-bg-base);
}

/* Hintergrundbild / Video */
#hero .hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Overlay für Lesbarkeit */
#hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(13, 27, 46, 0.6) 0%,
        rgba(13, 27, 46, 0.4) 50%,
        rgba(13, 27, 46, 0.8) 100%
    );
    z-index: 1;
}

#hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding-inline: var(--spacing-md);
}

#hero h1 {
    font-size: var(--type-h1);
    margin-bottom: var(--spacing-sm);
}

#hero .hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
}

#hero .hero-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}


/* ─── 06. WARUM SHOWTECH (#warum) ───────────────────────────── */

#warum {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
}

#warum h2 {
    color: var(--color-text-dark);
    text-align: center;
    margin-bottom: var(--spacing-md);
}

#warum p {
    color: #4a6080;
}

/* Stat-Cards (4-spaltig) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.stat-card {
    text-align: center;
    padding: var(--spacing-md);
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.stat-card .stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-accent);
    display: block;
}

.stat-card .stat-label {
    color: #4a6080;
    font-size: var(--type-small);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Audience Toggle (Besucher / Aussteller) */
.audience-toggle {
    display: flex;
    gap: var(--spacing-xs);
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.audience-toggle button {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--color-bg-highlight);
    border-radius: var(--radius-pill);
    background: transparent;
    font-family: var(--font-main);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #4a6080;
}

.audience-toggle button.is-active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff;
}

.audience-panel {
    display: none;
}

.audience-panel.is-active {
    display: block;
}


/* ─── 07. AUSSTELLER (#aussteller) ─────────────────────────── */

#aussteller {
    background-color: var(--color-bg-surface);
}

#aussteller h2 {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

/* Aussteller-Grid */
.aussteller-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.aussteller-card {
    background: var(--color-bg-highlight);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.aussteller-card:hover {
    transform: translateY(-4px);
}

.aussteller-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.aussteller-card-body {
    padding: var(--spacing-sm);
}

.aussteller-card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.aussteller-card-body p {
    font-size: var(--type-small);
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

/* Aussteller Download-Kit Link */
.aussteller-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: var(--spacing-md);
    color: var(--color-accent-blue);
    font-weight: 600;
}

.aussteller-download:hover {
    color: var(--color-accent-blue-hover);
}


/* ─── 08. LOCATION (#location) ─────────────────────────────── */

#location {
    background-color: var(--color-bg-base);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.location-text h2 {
    margin-bottom: var(--spacing-sm);
}

.location-text p {
    margin-bottom: var(--spacing-sm);
}

/* Venue Image Slider */
.venue-slider {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.venue-slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.venue-slide {
    min-width: 100%;
}

.venue-slide img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* Slider Controls */
.venue-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.slider-btn {
    background: var(--color-bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-pill);
    color: var(--color-text-primary);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider-btn:hover {
    background: var(--color-bg-highlight);
}

.slider-dots {
    display: flex;
    gap: 6px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-text-tertiary);
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider-dot.is-active {
    background: var(--color-accent-blue);
}


/* ─── 09. CTA & NEWSLETTER (#newsletter) ───────────────────── */

#newsletter {
    background-color: var(--color-bg-surface);
    text-align: center;
}

#newsletter h2 {
    margin-bottom: var(--spacing-sm);
}

#newsletter p {
    max-width: 600px;
    margin-inline: auto;
    margin-bottom: var(--spacing-md);
}

.newsletter-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
}

/* Brevo Formular Wrapper */
.brevo-form-wrapper {
    max-width: 480px;
    margin-inline: auto;
}


/* ─── 10. TERMINANFRAGE / CALENDLY (#termin) ────────────────── */

#termin {
    background-color: var(--color-bg-base);
    text-align: center;
}

#termin h2 {
    margin-bottom: var(--spacing-sm);
}

#termin p {
    max-width: 600px;
    margin-inline: auto;
    margin-bottom: var(--spacing-md);
}

.calendly-wrapper {
    max-width: 900px;
    margin-inline: auto;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.calendly-inline-widget {
    min-width: 320px;
    height: 630px;
}


/* ─── 11. BÜHNEN & FORMATE (#buehnen) ───────────────────────── */

#buehnen {
    background-color: var(--color-bg-surface);
}

#buehnen h2 {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.buehnen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.buehne-card {
    background: var(--color-bg-highlight);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    border-top: 3px solid var(--color-accent);
}

.buehne-card h3 {
    margin-bottom: var(--spacing-xs);
    font-size: 1.2rem;
}

.buehne-card p {
    font-size: var(--type-small);
    color: var(--color-text-secondary);
    margin-bottom: 0;
}


/* ─── 12. ROADMAP / TIMELINE (#roadmap) ─────────────────────── */

#roadmap {
    background-color: var(--color-bg-base);
}

#roadmap h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin-inline: auto;
    padding-left: var(--spacing-md);
}

/* Vertikale Linie */
.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-bg-highlight);
}

.timeline-item {
    position: relative;
    padding-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    opacity: 0.4;
    transform: translateX(-10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Aktiver Schritt (gesetzt via IntersectionObserver) */
.timeline-item.active-step {
    opacity: 1;
    transform: translateX(0);
}

/* Punkt auf der Linie */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-bg-highlight);
    border: 2px solid var(--color-bg-highlight);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.timeline-item.active-step::before {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.timeline-date {
    font-family: var(--font-heading);
    font-size: var(--type-small);
    color: var(--color-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.25rem;
}

.timeline-desc {
    font-size: var(--type-small);
    color: var(--color-text-secondary);
    margin-bottom: 0;
}


/* ─── 13. FAQ (#faq) ────────────────────────────────────────── */

#faq {
    background-color: var(--color-bg-surface);
}

#faq h2 {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

/* FAQ Tabs (Besucher / Aussteller) */
.faq-tabs {
    display: flex;
    gap: var(--spacing-xs);
    justify-content: center;
    margin-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--color-bg-highlight);
    padding-bottom: var(--spacing-xs);
}

.faq-tab-btn {
    background: none;
    border: none;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.faq-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.faq-tab-btn.is-active {
    color: var(--color-text-primary);
}

.faq-tab-btn.is-active::after {
    transform: scaleX(1);
}

.faq-panel {
    display: none;
    max-width: 800px;
    margin-inline: auto;
}

.faq-panel.is-active {
    display: block;
}

/* FAQ Accordion Items */
.faq-item {
    border-bottom: 1px solid var(--color-bg-highlight);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: var(--spacing-sm) 0;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-sm);
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--color-accent-blue);
}

/* +/− Icon */
.faq-icon {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--color-accent);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer-inner {
    padding-bottom: var(--spacing-sm);
}

.faq-answer-inner p {
    font-size: var(--type-body);
    color: var(--color-text-secondary);
    margin-bottom: 0;
}


/* ─── 14. FOOTER ────────────────────────────────────────────── */

.site-footer {
    background-color: #050b14;
    padding-block: var(--spacing-lg);
    color: var(--color-text-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.footer-brand p {
    font-size: var(--type-small);
    max-width: 280px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: var(--type-small);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-col a {
    font-size: var(--type-small);
    color: var(--color-text-secondary);
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--color-accent-blue);
}

.footer-bottom {
    border-top: 1px solid var(--color-bg-highlight);
    padding-top: var(--spacing-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.footer-bottom p {
    font-size: var(--type-small);
    color: var(--color-text-tertiary);
    margin-bottom: 0;
}


/* ─── 15. BUTTON SYSTEM ─────────────────────────────────────── */

/* Primär – Rot, Pill-Form */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-pill);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-main);
    font-size: var(--type-body);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Outline – transparenter Hintergrund */
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    border-radius: var(--radius-pill);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-main);
    font-size: var(--type-body);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.btn-outline:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Groß */
.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Gutenberg Button Block Overrides */
.wp-block-button .wp-block-button__link {
    border-radius: var(--radius-pill) !important;
    font-family: var(--font-main);
    font-weight: 600;
    transition: transform 0.3s ease;
}

.wp-block-button .wp-block-button__link:hover {
    transform: translateY(-2px);
}


/* ─── 16. UTILITIES ─────────────────────────────────────────── */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

.visually-hidden {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}


/* ─── 17. RESPONSIVE — TABLET (< 992px) ─────────────────────── */

@media (max-width: 992px) {
    /* Grids → 2-spaltig */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .aussteller-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .buehnen-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Location: gestapelt */
    .location-grid {
        grid-template-columns: 1fr;
    }

    /* Header Nav ausblenden (Hamburger sichtbar) */
    .nav-primary {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }
}


/* ─── 18. RESPONSIVE — MOBILE (< 768px) ─────────────────────── */

@media (max-width: 768px) {
    /* Typografie */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    /* Grids → 1-spaltig */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .aussteller-grid {
        grid-template-columns: 1fr;
    }

    .buehnen-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    /* Header CTAs ausblenden */
    .header-ctas {
        display: none;
    }

    /* Hero */
    #hero .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    /* Newsletter Actions */
    .newsletter-actions {
        flex-direction: column;
        align-items: center;
    }

    /* Footer Bottom */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* Timeline */
    .timeline {
        padding-left: var(--spacing-sm);
    }

    .timeline-item {
        padding-left: var(--spacing-md);
    }
}
