/* ==========================================================================
   Haarlems Oktoberfest — Styles
   ========================================================================== */

@font-face {
    font-family: 'Deutsch Gothic';
    src: url('../assets/font/Deutsch-Gothic.woff2') format('woff2'),
        url('../assets/font/Deutsch-Gothic.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* --- Custom Properties --- */
:root {
    --color-primary: #0B7BC0;
    --color-primary-dark: #065A8F;
    --color-white: #FFFFFF;
    --color-gold: #D4A843;
    --color-gold-dark: #B8912E;
    --color-gold-light: #FDF6E3;
    --color-dark: #1A1A2E;
    --color-gray: #6B7280;
    --color-gray-light: #F7F8FA;

    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --font-display: 'Deutsch Gothic', cursive;
    --font-body: 'DM Sans', sans-serif;

    --header-height: 64px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-dark);
    background: var(--color-white);
    overflow-x: hidden;
}

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

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* --- Typography --- */
h1, h2, h3 {
    line-height: 1.2;
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: var(--space-md);
}

.center {
    text-align: center;
}

.section {
    padding-block: var(--space-3xl);
    position: relative;
}

.section--light {
    background: var(--color-gray-light);
}

.section--blue {
    background: var(--color-primary);
    color: var(--color-white);
}

.section--lightblue {
    background: rgba(11, 123, 192, 0.06);
}

.section--gold {
    background: var(--color-gold-light);
}

.section--pattern {
    background: var(--color-dark);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.section--pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpolygon points='30,0 60,30 30,60 0,30' fill='%230B7BC0' opacity='0.12'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.section--pattern > * {
    position: relative;
    z-index: 1;
}

.section--pattern .section__title {
    color: var(--color-white);
}

.section--pattern .section__intro {
    color: rgba(255, 255, 255, 0.9);
}

.selfie-section__hook {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4.5vw, 2.2rem);
    color: var(--color-gold);
    text-align: center;
    letter-spacing: 0.03em;
    line-height: 1.15;
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    text-align: center;
    margin-bottom: var(--space-lg);
    color: var(--color-primary);
    letter-spacing: 0.06em;
}

.section__title--white {
    color: var(--color-white);
}

.section__intro {
    max-width: 640px;
    margin-inline: auto;
    text-align: center;
    color: var(--color-dark);
    font-size: 1.1rem;
    margin-bottom: var(--space-2xl);
}

.section--blue .section__intro {
    color: rgba(255, 255, 255, 0.85);
}

.section--gold .section__intro {
    color: var(--color-dark);
}

.section__text {
    max-width: 640px;
    margin-inline: auto;
    text-align: center;
    color: var(--color-dark);
    margin-top: var(--space-2xl);
    font-size: 1.05rem;
}

/* --- Bavarian Diamond Divider --- */
.bavarian-divider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    transform: translateY(-50%);
    z-index: 5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20' viewBox='0 0 40 20'%3E%3Cpolygon points='20,0 40,10 20,20 0,10' fill='%230B7BC0'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 40px 20px;
}

.bavarian-divider--white {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20' viewBox='0 0 40 20'%3E%3Cpolygon points='20,0 40,10 20,20 0,10' fill='%23FFFFFF'/%3E%3C/svg%3E");
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* --- Header / Nav --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-height);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.site-header.is-scrolled .nav__logo {
    color: var(--color-dark);
}

.site-header.is-scrolled .nav__links a {
    color: var(--color-dark);
}

.site-header.is-scrolled .nav__hamburger,
.site-header.is-scrolled .nav__hamburger::before,
.site-header.is-scrolled .nav__hamburger::after {
    background: var(--color-dark);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav__logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--color-white);
    white-space: nowrap;
    transition: color 0.3s ease;
}

.nav__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 110;
}

.nav__hamburger,
.nav__hamburger::before,
.nav__hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav__hamburger::before,
.nav__hamburger::after {
    content: '';
    position: absolute;
}

.nav__hamburger::before {
    transform: translateY(-7px);
}

.nav__hamburger::after {
    transform: translateY(7px);
}

/* Hamburger → X */
.nav__toggle[aria-expanded="true"] .nav__hamburger {
    background: transparent;
}

.nav__toggle[aria-expanded="true"] .nav__hamburger::before {
    transform: rotate(45deg);
    background: var(--color-dark);
}

.nav__toggle[aria-expanded="true"] .nav__hamburger::after {
    transform: rotate(-45deg);
    background: var(--color-dark);
}

.nav__links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: var(--color-white);
    padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
}

.nav__links.is-open {
    transform: translateX(0);
}

.nav__links a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-dark);
    padding: var(--space-sm) 0;
    transition: color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav__links a:hover {
    color: var(--color-primary);
}

.nav__socials {
    display: none;
}

.nav__links-socials {
    display: flex;
    gap: var(--space-md);
    padding-top: var(--space-md);
    margin-top: var(--space-sm);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.nav__links-socials a {
    color: var(--color-dark);
    opacity: 0.6;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.nav__links-socials a:hover {
    opacity: 1;
    color: var(--color-primary);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn--primary {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 16px rgba(11, 123, 192, 0.3);
}

.btn--primary:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 6px 20px rgba(11, 123, 192, 0.4);
}

.btn--gold {
    background: var(--color-gold);
    color: var(--color-white);
    box-shadow: 0 4px 16px rgba(212, 168, 67, 0.3);
}

.btn--gold:hover {
    background: var(--color-gold-dark);
    box-shadow: 0 6px 20px rgba(212, 168, 67, 0.4);
}

.btn--lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn--nav {
    background: var(--color-gold);
    color: var(--color-white);
    padding: 0.75rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
}

.btn--nav:hover {
    background: var(--color-gold-dark);
    color: var(--color-white) !important;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-dark);
}

/* Mobile: Bavarian pattern fallback */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpolygon points='30,0 60,30 30,60 0,30' fill='%230B7BC0' opacity='0.08'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    z-index: 1;
}

.hero__video-wrap {
    display: none;
    position: absolute;
    inset: -1px;
    z-index: 1;
    overflow: hidden;
}

.hero__video-wrap iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100vw, 177.78vh);
    height: max(100vh, 56.25vw);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 46, 0.3) 0%,
        rgba(26, 26, 46, 0.45) 100%
    );
    z-index: 2;
}

.hero__logo {
    width: clamp(340px, 75vw, 500px);
    height: auto;
    margin-inline: auto;
    margin-bottom: var(--space-lg);
    animation: fadeInUp 1s ease forwards;
    filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.3));
}

.hero__content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--color-white);
    padding: var(--space-md);
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    letter-spacing: 0.06em;
    margin-bottom: var(--space-md);
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease forwards;
}

.hero__date {
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero__location {
    font-size: clamp(1.3rem, 3.2vw, 1.7rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-xl);
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

.hero .btn {
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

.hero .bavarian-divider {
    top: auto;
    bottom: 0;
    transform: translateY(50%);
    z-index: 3;
}

.hero__scroll-indicator {
    display: block;
    margin-top: var(--space-xl);
    animation: fadeInUp 1s ease 0.8s forwards;
    opacity: 0;
}

.hero__scroll-indicator span {
    display: block;
    width: 24px;
    height: 24px;
    margin-inline: auto;
    border-right: 2px solid rgba(255, 255, 255, 0.7);
    border-bottom: 2px solid rgba(255, 255, 255, 0.7);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.7; }
    50% { transform: rotate(45deg) translateY(10px); opacity: 1; }
}

@media (min-width: 768px) {
    .hero__scroll-indicator {
        display: none;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#info .section__intro {
    max-width: 960px;
}

/* --- Plattegrond --- */
.plattegrond {
    max-width: 960px;
    margin-inline: auto;
}

.plattegrond__stack {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    /* Base for the shine pseudo-element positioning */
    isolation: isolate;
}

.plattegrond__img {
    display: block;
    width: 100%;
    height: auto;
}

.plattegrond__img--render {
    position: relative;
    z-index: 1;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1), filter 1.2s ease;
    transform-origin: center;
}

/*
 * Sketch layer wraps both sketch images. The clip-path reveal animation
 * applies to this wrapper so both images are revealed together when
 * toggling from render -> sketch. Inside the wrapper, the two sketch
 * images alternate visibility via opacity for a fade slide-show effect.
 */
.plattegrond__sketch-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    clip-path: polygon(
        0% 0%,
        0% 0%,
        0% 10%,
        0% 20%,
        0% 30%,
        0% 40%,
        0% 50%,
        0% 60%,
        0% 70%,
        0% 80%,
        0% 90%,
        0% 100%,
        0% 100%
    );
    transition: clip-path 1.3s cubic-bezier(0.83, 0, 0.17, 1);
    will-change: clip-path;
}

.plattegrond__stack[data-view="sketch"] .plattegrond__sketch-layer {
    clip-path: polygon(
        0% 0%,
        108% 0%,
        103% 10%,
        110% 20%,
        104% 30%,
        109% 40%,
        102% 50%,
        110% 60%,
        104% 70%,
        108% 80%,
        102% 90%,
        108% 100%,
        0% 100%
    );
}

.plattegrond__img--sketch {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.plattegrond__img--sketch.is-visible {
    opacity: 1;
}

.plattegrond__stack[data-view="sketch"] .plattegrond__img--render {
    transform: scale(0.985);
    filter: brightness(0.92) saturate(0.85);
}

/*
 * Shine sweep - a bright vertical gradient bar that travels across the image
 * during the transition, adding a sense of "light" passing over the reveal.
 */
.plattegrond__stack::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 12%;
    z-index: 3;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.55) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    opacity: 0;
    pointer-events: none;
    transform: translateX(-100%);
    transition: transform 1.3s cubic-bezier(0.83, 0, 0.17, 1),
                opacity 0.3s ease;
    mix-blend-mode: screen;
}

.plattegrond__stack[data-view="sketch"]::after {
    opacity: 1;
    transform: translateX(900%);
}

.plattegrond__caption {
    text-align: center;
    font-size: 0.82rem;
    color: var(--color-gray);
    margin-top: var(--space-md);
    margin-bottom: var(--space-sm);
    opacity: 0.75;
    line-height: 1.45;
}

.plattegrond__toggle {
    display: block;
    margin: 0 auto var(--space-2xl);
    min-height: 44px;
    padding: 0.7rem 1.4rem;
    background: transparent;
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.plattegrond__toggle:hover,
.plattegrond__toggle:focus-visible {
    background: var(--color-primary);
    color: var(--color-white);
    outline: none;
}

@media (max-width: 600px) {
    .plattegrond__toggle {
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .plattegrond__sketch-layer,
    .plattegrond__img--sketch,
    .plattegrond__img--render,
    .plattegrond__stack::after {
        transition: none;
    }
}

/* --- Cards --- */
.cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    max-width: 960px;
    margin-inline: auto;
}

.card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl) var(--space-xl);
    text-align: center;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.card__icon {
    display: block;
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.card__title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 0.04em;
    margin-bottom: var(--space-sm);
    color: var(--color-primary);
}

.card p {
    color: var(--color-dark);
    font-size: 0.95rem;
}

/* --- Stats --- */
.stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xs);
    max-width: 720px;
    margin-inline: auto;
    margin-bottom: var(--space-md);
}

.stat {
    text-align: center;
    padding: var(--space-sm) var(--space-xl);
}

.stat__number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 8vw, 3.5rem);
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat__label {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* --- Badge --- */
.badge {
    display: inline-block;
    background: var(--color-gold);
    color: var(--color-white);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-xl);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* --- Coming Soon --- */
.coming-soon {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: rgba(255, 255, 255, 0.9);
    padding: var(--space-3xl) 0;
    position: relative;
}

.coming-soon::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-gold);
    margin: var(--space-lg) auto 0;
    border-radius: 2px;
}

/* --- Line-up --- */
.lineup-intro {
    max-width: 640px;
    margin-inline: auto;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-bottom: var(--space-2xl);
}

.lineup-grid {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    margin-inline: calc(var(--space-md) * -1);
    padding-inline: var(--space-md);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x;
}

.lineup-grid::-webkit-scrollbar {
    display: none;
}

.lineup-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3 / 4.2;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 0 0 65%;
}

.lineup-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.lineup-card--featured {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
}

.lineup-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lineup-card__name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-lg) var(--space-md) var(--space-md);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--color-white);
    letter-spacing: 0.04em;
}

.lineup-card--featured .lineup-card__name {
    font-size: clamp(1.4rem, 4vw, 2rem);
    padding: var(--space-xl) var(--space-lg) var(--space-md);
}

.lineup-more {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    color: var(--color-gold);
    margin-bottom: var(--space-xl);
}

/* --- Pre-register Form --- */
.preregister-form {
    max-width: 520px;
    margin-inline: auto;
}

.preregister-form__fields {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.preregister-form__row {
    display: flex;
    gap: var(--space-md);
}

.preregister-form__row .preregister-form__input {
    flex: 1;
}

.preregister-form__input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid rgba(11, 123, 192, 0.2);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-dark);
    background: var(--color-white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.preregister-form__input::placeholder {
    color: var(--color-gray);
}

.preregister-form__input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(11, 123, 192, 0.1);
}

.preregister-form__btn {
    width: 100%;
    white-space: nowrap;
}

.preregister-form__phone {
    display: flex;
    gap: 0;
    width: 100%;
}

.preregister-form__prefix {
    display: flex;
    align-items: center;
    padding: 1rem 0.75rem;
    border: 2px solid rgba(11, 123, 192, 0.2);
    border-right: none;
    border-radius: var(--radius-full) 0 0 var(--radius-full);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-gray);
    background: var(--color-gray-light);
    white-space: nowrap;
}

.preregister-form__input--phone {
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
    flex: 1;
}

.preregister-form__hint {
    font-size: 0.85rem;
    color: var(--color-gray);
}

.preregister-form__message {
    margin-top: var(--space-md);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
}

.preregister-form__message--success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.preregister-form__message--error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

@media (min-width: 768px) {
    .preregister-form {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .preregister-form__btn {
        width: auto;
    }
}

/* --- Token Info (below ticketshop) --- */
.token-info {
    max-width: 450px;
    margin: 0 auto var(--space-2xl);
    padding: var(--space-lg);
    background: var(--color-lightblue, #E8F2FB);
    border: 2px solid var(--color-blue, #0B7BC0);
    border-radius: var(--radius-lg, 12px);
    text-align: center;
}

.token-info__title {
    font-family: var(--font-display, 'Grenze Gotisch', serif);
    color: var(--color-blue, #0B7BC0);
    font-size: 1.3rem;
    margin: 0 0 var(--space-sm) 0;
    line-height: 1.2;
}

.token-info__text {
    color: var(--color-dark, #1A1A2E);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

.token-info__text strong {
    color: var(--color-blue, #0B7BC0);
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .token-info {
        max-width: 600px;
        padding: var(--space-xl);
    }

    .token-info__title {
        font-size: 1.75rem;
    }

    .token-info__text {
        font-size: 1rem;
        line-height: 1.6;
    }

    .token-info__text strong {
        font-size: 1.1rem;
    }
}

/* --- Biertafel Layout --- */
.biertafel-layout {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
    align-items: center;
}

.biertafel-layout__image {
    width: 100%;
}

.biertafel-layout__img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.biertafel-layout__content {
    text-align: center;
}

.biertafel-layout__content .section__title {
    text-align: center;
}

.biertafel-layout__content .section__intro {
    text-align: center;
}

/* --- SEO Text --- */
.seo-text {
    max-width: 720px;
    margin-inline: auto;
    margin-top: var(--space-2xl);
    text-align: center;
}

.seo-text h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 0.04em;
    margin-bottom: var(--space-sm);
    color: var(--color-primary);
}

.seo-text p {
    color: var(--color-dark);
    font-size: 1rem;
    line-height: 1.7;
}

/* --- Sponsors --- */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    max-width: 720px;
    margin-inline: auto;
    margin-bottom: var(--space-2xl);
}

.sponsor-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 115px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    transition: transform 0.2s ease;
}

.sponsor-logo:hover {
    transform: scale(1.05);
}

.sponsor-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.sponsor-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 115px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 2px dashed rgba(107, 114, 128, 0.25);
    color: var(--color-gray);
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- Ons Verhaal Layout --- */
.verhaal-layout {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
    align-items: center;
}

.verhaal-layout__content .section__title {
    text-align: left;
}

.verhaal-layout__content .section__intro {
    text-align: left;
    margin-inline: 0;
}

.verhaal-layout__img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

@media (min-width: 1024px) {
    .verhaal-layout {
        flex-direction: row;
        align-items: center;
    }

    .verhaal-layout__content {
        flex: 1;
        min-width: 0;
    }

    .verhaal-layout__image {
        flex: 0 0 40%;
        min-width: 0;
    }

    .verhaal-layout__img {
        height: 100%;
        object-fit: cover;
    }
}

/* --- FAQ --- */
.faq-list {
    max-width: 800px;
    margin-inline: auto;
}

.faq-item {
    background: rgba(11, 123, 192, 0.08);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    overflow: hidden;
}

.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-dark);
    cursor: pointer;
    list-style: none;
}

.faq-item__question::-webkit-details-marker {
    display: none;
}

.faq-item__question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-primary);
    margin-left: var(--space-md);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-item__question::after {
    content: '-';
}

.faq-item__answer {
    padding: var(--space-sm) var(--space-lg) var(--space-lg);
    color: var(--color-dark);
    animation: faqSlideDown 0.3s ease;
    border-top: 1px solid rgba(11, 123, 192, 0.1);
    font-size: 1rem;
    line-height: 1.7;
}

@keyframes faqSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item__answer a {
    color: var(--color-primary);
    text-decoration: underline;
}

.faq-item__answer a:hover {
    color: var(--color-primary-dark);
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--color-dark);
    padding: var(--space-lg) var(--space-md);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
}

.cookie-banner__content {
    max-width: 1200px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    text-align: center;
}

.cookie-banner__content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.cookie-banner__content a {
    color: var(--color-gold);
    text-decoration: underline;
}

.cookie-banner__buttons {
    display: flex;
    gap: var(--space-md);
}

.btn--cookie-reject {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn--cookie-reject:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

@media (min-width: 768px) {
    .cookie-banner__content {
        flex-direction: row;
        text-align: left;
    }

    .cookie-banner__content p {
        flex: 1;
    }
}

/* --- Footer --- */
.site-footer {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.7);
    padding-block: var(--space-2xl);
    position: relative;
}

.site-footer__socials {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.site-footer__socials a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer__socials a:hover {
    color: var(--color-gold);
    transform: scale(1.15);
}

.site-footer__legal {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
}

.site-footer__legal a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.site-footer__legal a:hover {
    color: var(--color-gold);
}

.site-footer__copy {
    text-align: center;
    font-size: 0.9rem;
}

/* ==========================================================================
   Tablet (768px)
   ========================================================================== */
@media (min-width: 768px) {
    .lineup-grid {
        gap: var(--space-lg);
    }

    .lineup-card {
        flex: 0 0 30%;
        aspect-ratio: 3 / 4.5;
    }
}

@media (min-width: 1024px) {
    .lineup-grid {
        /* Edge-to-edge horizontal scroll: break out of .container */
        margin-inline: calc(50% - 50vw);
        padding-inline: clamp(var(--space-lg), 5vw, var(--space-2xl));
        gap: var(--space-lg);
    }

    .lineup-card {
        flex: 0 0 calc((100% - var(--space-lg) * 5) / 6);
        min-width: 220px;
    }

    .hero::before {
        display: none;
    }

    .hero__video-wrap {
        display: block;
    }

    .sponsors-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .section {
        padding-block: var(--space-4xl);
    }
}

/* ==========================================================================
   Desktop (1024px)
   ========================================================================== */
@media (min-width: 1024px) {
    .biertafel-layout {
        flex-direction: row;
        align-items: stretch;
    }

    .biertafel-layout__image {
        flex: 1;
        min-width: 0;
    }

    .biertafel-layout__img {
        height: 100%;
        object-fit: cover;
    }

    .biertafel-layout__content {
        flex: 1;
        min-width: 0;
    }

    .nav__toggle {
        display: none;
    }

    .nav__links-socials {
        display: none;
    }

    .nav__links {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        padding: 0;
        flex-direction: row;
        align-items: center;
        gap: var(--space-xl);
        transform: none;
        box-shadow: none;
    }

    .nav__links a {
        font-size: 0.95rem;
        color: var(--color-white);
        padding: 0;
    }

    .nav__links .btn--nav {
        padding: 0.75rem 2rem;
    }

    .site-header.is-scrolled .nav__links a {
        color: var(--color-dark);
    }

    .site-header.is-scrolled .nav__links .btn--nav {
        color: var(--color-white);
    }

    .nav__socials {
        display: flex;
        align-items: center;
        gap: var(--space-sm);
        margin-left: var(--space-md);
    }

    .nav__socials a {
        color: var(--color-white);
        opacity: 0.8;
        transition: opacity 0.2s ease, color 0.2s ease;
    }

    .nav__socials a:hover {
        opacity: 1;
        color: var(--color-gold);
    }

    .site-header.is-scrolled .nav__socials a {
        color: var(--color-dark);
    }
}

/* ==========================================================================
   Party Alarm
   ========================================================================== */

.party-alarm {
    position: fixed;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 199;
}

/* When the party is playing, lift the Stop button above the modal and trumpets */
.party-alarm.is-playing {
    z-index: 600;
}

.party-alarm__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #2FB84F, #4CD568);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow:
        0 0 0 0 rgba(47, 184, 79, 0.7),
        0 0 24px rgba(47, 184, 79, 0.7),
        0 4px 20px rgba(0, 0, 0, 0.25);
    animation: party-alarm-pulse 2s ease-out infinite, party-alarm-glow 1.5s ease-in-out infinite alternate;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.party-alarm__btn:hover {
    animation-play-state: paused;
    transform: scale(1.08);
    box-shadow:
        0 0 0 6px rgba(47, 184, 79, 0.25),
        0 0 32px rgba(47, 184, 79, 0.9),
        0 6px 24px rgba(0, 0, 0, 0.3);
}

.party-alarm__icon {
    display: inline-block;
    font-size: 1.3rem;
    animation: party-alarm-wiggle 0.8s ease-in-out infinite;
    transform-origin: center;
}

.party-alarm__label {
    display: inline-block;
}

/* Active mode - "Stop the Party" */
.party-alarm.is-playing .party-alarm__btn {
    background: linear-gradient(135deg, #C02B2B, #8B1A1A);
    color: #FFFFFF;
    animation: none;
    box-shadow:
        0 0 20px rgba(192, 43, 43, 0.6),
        0 4px 20px rgba(0, 0, 0, 0.3);
}

.party-alarm.is-playing .party-alarm__icon {
    animation: none;
}

@keyframes party-alarm-pulse {
    0% {
        box-shadow:
            0 0 0 0 rgba(47, 184, 79, 0.7),
            0 0 24px rgba(47, 184, 79, 0.7),
            0 4px 20px rgba(0, 0, 0, 0.25);
    }
    70% {
        box-shadow:
            0 0 0 20px rgba(47, 184, 79, 0),
            0 0 24px rgba(47, 184, 79, 0.7),
            0 4px 20px rgba(0, 0, 0, 0.25);
    }
    100% {
        box-shadow:
            0 0 0 0 rgba(47, 184, 79, 0),
            0 0 24px rgba(47, 184, 79, 0.7),
            0 4px 20px rgba(0, 0, 0, 0.25);
    }
}

@keyframes party-alarm-glow {
    from { filter: brightness(1); }
    to { filter: brightness(1.15); }
}

@keyframes party-alarm-wiggle {
    0%, 100% { transform: rotate(-8deg); }
    50% { transform: rotate(8deg); }
}

/* --- Party Modal --- */
.party-modal {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.party-modal[hidden] {
    display: none;
}

.party-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.party-modal__content {
    position: relative;
    max-width: 480px;
    width: 100%;
    padding: var(--space-2xl) var(--space-xl);
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    border-top: 6px solid var(--color-gold);
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: party-modal-in 0.35s cubic-bezier(0.22, 1.2, 0.5, 1);
}

.party-modal__close {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--color-dark);
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: background 0.2s ease;
}

.party-modal__close:hover {
    background: rgba(0, 0, 0, 0.08);
}

.party-modal__emoji {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: var(--space-sm);
    display: inline-block;
    animation: party-alarm-wiggle 0.8s ease-in-out infinite;
    transform-origin: center;
}

.party-modal__title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    color: var(--color-primary);
    margin: 0 0 var(--space-md) 0;
    line-height: 1.1;
}

.party-modal__text {
    color: var(--color-dark);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto var(--space-xl);
}

.party-modal__cta {
    width: auto;
}

@keyframes party-modal-in {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* --- Party Trumpets --- */
.party-trumpet {
    position: fixed;
    width: 180px;
    height: 180px;
    pointer-events: none;
    z-index: 550;
    display: flex;
    align-items: center;
    justify-content: center;
}

.party-trumpet__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: party-trumpet-pulse 0.5s ease-in-out infinite alternate;
    transform-origin: center;
}

/* Trumpet image points horizontally right (bell on right, mouthpiece on left).
   Each corner rotates the mouthpiece into the corner and the bell toward screen center. */
.party-trumpet--tl {
    top: -30px;
    left: -30px;
    animation: party-trumpet-in-tl 0.8s cubic-bezier(0.22, 1.2, 0.5, 1) forwards;
}

.party-trumpet--tr {
    top: -30px;
    right: -30px;
    animation: party-trumpet-in-tr 0.8s cubic-bezier(0.22, 1.2, 0.5, 1) forwards;
}

.party-trumpet--bl {
    bottom: -30px;
    left: -30px;
    animation: party-trumpet-in-bl 0.8s cubic-bezier(0.22, 1.2, 0.5, 1) forwards;
}

.party-trumpet--br {
    bottom: -30px;
    right: -30px;
    animation: party-trumpet-in-br 0.8s cubic-bezier(0.22, 1.2, 0.5, 1) forwards;
}

.party-trumpet--exit {
    animation: party-trumpet-out 0.4s ease-in forwards !important;
}

/* Top-left: mouthpiece in corner, bell points down-right (into scene) */
@keyframes party-trumpet-in-tl {
    from { transform: translate(-150%, -150%) rotate(45deg); opacity: 0; }
    to   { transform: translate(0, 0) rotate(45deg); opacity: 1; }
}

/* Top-right: mirrored + rotate, bell points down-left */
@keyframes party-trumpet-in-tr {
    from { transform: translate(150%, -150%) scaleX(-1) rotate(45deg); opacity: 0; }
    to   { transform: translate(0, 0) scaleX(-1) rotate(45deg); opacity: 1; }
}

/* Bottom-left: mouthpiece in corner, bell points up-right */
@keyframes party-trumpet-in-bl {
    from { transform: translate(-150%, 150%) rotate(-45deg); opacity: 0; }
    to   { transform: translate(0, 0) rotate(-45deg); opacity: 1; }
}

/* Bottom-right: mirrored + rotate, bell points up-left */
@keyframes party-trumpet-in-br {
    from { transform: translate(150%, 150%) scaleX(-1) rotate(-45deg); opacity: 0; }
    to   { transform: translate(0, 0) scaleX(-1) rotate(-45deg); opacity: 1; }
}

@keyframes party-trumpet-out {
    to { opacity: 0; }
}

@keyframes party-trumpet-pulse {
    0% { transform: scale(1) rotate(-2deg); }
    100% { transform: scale(1.1) rotate(2deg); }
}

/* --- Party Confetti (continuous fall across entire screen) --- */
.party-confetti {
    position: fixed;
    top: -24px;
    left: var(--start-x, 50%);
    width: 10px;
    height: 14px;
    pointer-events: none;
    z-index: 450;
    border-radius: 2px;
    animation: party-confetti-fall var(--duration, 4s) linear forwards;
    will-change: transform, opacity;
}

@keyframes party-confetti-fall {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--drift, 0px), calc(100vh + 48px)) rotate(var(--rot, 720deg));
        opacity: 0.9;
    }
}

/* Mobile tweaks */
@media (max-width: 767px) {
    /* Confetti 40% smaller on mobile (overrides inline styles from JS) */
    .party-confetti {
        width: 6px !important;
        height: 9px !important;
    }

    .party-trumpet {
        width: 120px;
        height: 120px;
    }

    /* Hide top trumpets on mobile - only show the bottom two */
    .party-trumpet--tl,
    .party-trumpet--tr {
        display: none;
    }

    .party-trumpet--bl,
    .party-trumpet--br {
        bottom: -20px;
    }

    .party-trumpet--tl,
    .party-trumpet--bl {
        left: -20px;
    }

    .party-trumpet--tr,
    .party-trumpet--br {
        right: -20px;
    }

    .party-alarm__btn {
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
    }

    .party-modal__content {
        padding: var(--space-xl) var(--space-lg);
    }

    .party-modal__title {
        font-size: 1.75rem;
    }

    .party-modal__emoji {
        font-size: 3rem;
    }
}

/* Reduced motion: disable all party animations */
@media (prefers-reduced-motion: reduce) {
    .party-alarm__btn,
    .party-alarm__icon,
    .party-modal__emoji,
    .party-modal__content,
    .party-modal__backdrop,
    .party-trumpet,
    .party-trumpet__img,
    .party-confetti {
        animation: none !important;
    }

    .party-confetti {
        display: none;
    }
}
