/* =========================================================
   Brownify Invitation System - Haupt-Stylesheet
   Luxury Summer Party: Glassmorphism, Neon, Palmen, Wasser
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
    /* Farben */
    --ink:        #06121a;   /* tiefes Nacht-Petrol */
    --ink-2:      #0a2233;
    --lagoon:     #19d3c5;   /* Neon-Tuerkis (Primaer) */
    --coral:      #ff5e7e;   /* Neon-Pink (Akzent) */
    --gold:       #f5c97b;   /* Champagner-Gold */
    --violet:     #7b5cff;   /* Abendhimmel-Violett */
    --white:      #f6fbfc;

    /* Glas */
    --glass-bg:     rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.16);
    --glass-blur:   18px;

    /* Typografie */
    --font-script: 'Great Vibes', cursive;
    --font-sans:   'Outfit', system-ui, sans-serif;
    --font-mono:   'JetBrains Mono', ui-monospace, monospace;

    /* Layout */
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --shadow-soft: 0 20px 60px rgba(0, 10, 20, 0.45);
    --shadow-glow-lagoon: 0 0 24px rgba(25, 211, 197, 0.45);
    --shadow-glow-coral:  0 0 24px rgba(255, 94, 126, 0.45);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    font-weight: 400;
    color: var(--white);
    background: var(--ink);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--lagoon); color: var(--ink); }

.script { font-family: var(--font-script); font-weight: 400; }
.mono   { font-family: var(--font-mono); letter-spacing: 0.08em; }

/* =========================================================
   Szene: Himmel, Wasser, Lichtreflexe, Palmen, Bokeh
   ========================================================= */
.scene {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.scene-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(90rem 50rem at 85% -10%, rgba(123, 92, 255, 0.35), transparent 60%),
        radial-gradient(70rem 44rem at 10% 0%, rgba(255, 94, 126, 0.28), transparent 55%),
        radial-gradient(80rem 60rem at 50% 115%, rgba(25, 211, 197, 0.22), transparent 60%),
        linear-gradient(180deg, #131233 0%, #0c2436 45%, var(--ink) 100%);
}

/* Lichtstrahlen, die langsam schwenken */
.light-ray {
    position: absolute;
    top: -30%;
    width: 24rem;
    height: 140%;
    background: linear-gradient(180deg, rgba(245, 201, 123, 0.10), transparent 70%);
    filter: blur(28px);
    transform-origin: top center;
    animation: raySway 14s ease-in-out infinite alternate;
}
.ray-1 { left: 18%; transform: rotate(14deg); }
.ray-2 { right: 12%; transform: rotate(-10deg); animation-delay: -6s; }

@keyframes raySway {
    from { transform: rotate(10deg); opacity: 0.55; }
    to   { transform: rotate(-8deg); opacity: 0.9; }
}

/* Wasserflaeche unten mit Schimmer */
.water {
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: -6rem;
    height: 34vh;
    background:
        repeating-linear-gradient(178deg,
            rgba(25, 211, 197, 0.14) 0 2px,
            transparent 2px 14px),
        linear-gradient(180deg, rgba(25, 211, 197, 0.18), rgba(6, 18, 26, 0.9));
    filter: blur(2px);
    transform: perspective(600px) rotateX(48deg);
    animation: waterShimmer 9s linear infinite;
    opacity: 0.85;
}

@keyframes waterShimmer {
    from { background-position: 0 0, 0 0; }
    to   { background-position: 0 140px, 0 0; }
}

/* Palmen-Silhouetten */
.palm {
    position: absolute;
    bottom: -2rem;
    width: clamp(180px, 26vw, 380px);
    opacity: 0.5;
    animation: palmSway 8s ease-in-out infinite alternate;
    transform-origin: bottom center;
}
.palm-left  { left: -3rem; }
.palm-right { right: -3rem; transform: scaleX(-1); animation-delay: -4s; }

@keyframes palmSway {
    from { rotate: -2deg; }
    to   { rotate: 2.5deg; }
}

/* Bokeh-Lichtpunkte (unscharfe Hintergruende) */
.bokeh {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.5;
    animation: floatY 12s ease-in-out infinite alternate;
}
.b1 { width: 16rem; height: 16rem; left: 8%;  top: 22%; background: var(--lagoon); }
.b2 { width: 12rem; height: 12rem; right: 12%; top: 14%; background: var(--coral); animation-delay: -3s; }
.b3 { width: 10rem; height: 10rem; left: 42%; top: 60%; background: var(--violet); animation-delay: -6s; }
.b4 { width: 14rem; height: 14rem; right: 20%; top: 62%; background: var(--gold); opacity: 0.3; animation-delay: -9s; }

@keyframes floatY {
    from { transform: translateY(-18px); }
    to   { transform: translateY(22px); }
}

/* =========================================================
   Glassmorphism-Grundbaustein
   ========================================================= */
.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--shadow-soft);
}

/* =========================================================
   Buttons (mit Ripple, Glow, Hover)
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    color: var(--white);
    text-align: center;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--lagoon); outline-offset: 3px; }

.btn-lg { padding: 1rem 2.2rem; font-size: 1.05rem; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.82rem; }

.btn-neon {
    background: linear-gradient(135deg, var(--lagoon), #0fa89d);
    color: #042420;
    font-weight: 800;
    box-shadow: var(--shadow-glow-lagoon);
}
.btn-neon:hover { box-shadow: 0 0 36px rgba(25, 211, 197, 0.7); }

.btn-gold {
    background: linear-gradient(135deg, var(--gold), #d9a44e);
    color: #3a2a10;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(245, 201, 123, 0.35);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--glass-border);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.btn-danger {
    background: rgba(255, 94, 126, 0.15);
    border-color: rgba(255, 94, 126, 0.4);
    color: #ffb3c2;
}
.btn-danger:hover { background: rgba(255, 94, 126, 0.3); box-shadow: var(--shadow-glow-coral); }

.btn.is-active {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

/* Ripple-Effekt (JS setzt span.ripple-wave) */
.ripple .ripple-wave {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transform: scale(0);
    animation: rippleAnim 0.6s ease-out forwards;
    pointer-events: none;
}
@keyframes rippleAnim {
    to { transform: scale(4); opacity: 0; }
}

/* =========================================================
   Navigation
   ========================================================= */
.nav {
    position: sticky;
    top: 1rem;
    z-index: 50;
    margin: 1rem auto 0;
    max-width: 1100px;
    width: calc(100% - 2rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.nav-logo em { font-style: normal; color: var(--lagoon); }

.nav-links { display: flex; gap: 1.4rem; font-size: 0.92rem; font-weight: 600; }
.nav-links a { opacity: 0.85; transition: opacity 0.2s, color 0.2s; }
.nav-links a:hover { opacity: 1; color: var(--lagoon); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(4rem, 10vh, 7rem) 1.5rem 3rem;
    text-align: center;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.8rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.hero-title {
    font-family: var(--font-script);
    font-weight: 400;
    font-size: clamp(3.2rem, 9vw, 6.5rem);
    line-height: 1.1;
    background: linear-gradient(120deg, var(--white), var(--lagoon), var(--coral), var(--gold), var(--white));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 26px rgba(25, 211, 197, 0.35));
    animation: gradientFlow 8s ease-in-out infinite;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.hero-subtitle {
    margin: 1rem auto 0;
    max-width: 34rem;
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 1.2rem;
    margin: 2.4rem auto 0;
    padding: 1.2rem 1.6rem;
    max-width: 46rem;
}
.meta-item { display: flex; flex-direction: column; gap: 0.15rem; min-width: 8rem; }
.meta-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--lagoon); }
.meta-value { font-weight: 700; }
.meta-divider { width: 1px; background: var(--glass-border); }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.4rem;
}

/* =========================================================
   Countdown
   ========================================================= */
.countdown {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2.4rem auto 0;
}
.count-box {
    min-width: 5.6rem;
    padding: 1rem 0.8rem;
    text-align: center;
    border-radius: var(--radius-md);
    animation: floatY 6s ease-in-out infinite alternate;
}
.count-box:nth-child(2) { animation-delay: -1.5s; }
.count-box:nth-child(3) { animation-delay: -3s; }
.count-box:nth-child(4) { animation-delay: -4.5s; }
.count-box span {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--lagoon);
    text-shadow: 0 0 18px rgba(25, 211, 197, 0.6);
}
.count-box small {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    opacity: 0.7;
}

/* =========================================================
   Sektionen
   ========================================================= */
.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.section-eyebrow {
    display: block;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.78rem;
    color: var(--gold);
}

.section-title {
    text-align: center;
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    margin: 0.4rem 0 2.4rem;
    color: var(--white);
}

.card { padding: 1.8rem; }
.card h3 { font-weight: 700; margin-bottom: 0.5rem; }

/* Dresscode */
.dresscode-card {
    text-align: center;
    padding: 2.6rem 2rem;
    max-width: 44rem;
    margin: 0 auto;
    border: 1px solid rgba(245, 201, 123, 0.35);
    box-shadow: 0 0 40px rgba(245, 201, 123, 0.12), var(--shadow-soft);
}
.dresscode-card h2 { font-size: clamp(2rem, 5vw, 3rem); color: var(--gold); margin: 0.4rem 0 0.8rem; }
.dresscode-card p { max-width: 34rem; margin: 0 auto; opacity: 0.85; }

/* Programm / Timeline */
.timeline { display: grid; gap: 1rem; max-width: 46rem; margin: 0 auto; }
.timeline-item {
    display: flex;
    gap: 1.4rem;
    align-items: flex-start;
    padding: 1.3rem 1.6rem;
    border-radius: var(--radius-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.timeline-item:hover { transform: translateX(6px); box-shadow: var(--shadow-glow-lagoon); }
.timeline-time {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--lagoon);
    min-width: 3.6rem;
    padding-top: 0.15rem;
}
.timeline-item h3 { font-weight: 700; font-size: 1.05rem; }
.timeline-item p { opacity: 0.8; font-size: 0.95rem; }

/* Galerie */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
}
.gallery-item {
    overflow: hidden;
    border-radius: var(--radius-md);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.gallery-item:hover { transform: translateY(-6px) scale(1.01); box-shadow: var(--shadow-glow-coral); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-item figcaption {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    opacity: 0.85;
}

/* Anfahrt */
.anfahrt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
}

/* FAQ */
.faq { display: grid; gap: 0.9rem; max-width: 46rem; margin: 0 auto; }
.faq details { border-radius: var(--radius-md); overflow: hidden; }
.faq summary {
    cursor: pointer;
    padding: 1.1rem 1.4rem;
    font-weight: 600;
    list-style: none;
    position: relative;
    transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+';
    position: absolute;
    right: 1.3rem;
    color: var(--lagoon);
    font-size: 1.2rem;
    transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.4rem 1.2rem; opacity: 0.82; }
.faq summary:hover { color: var(--lagoon); }

/* Kontakt */
.contact { text-align: center; padding: 2.6rem 2rem; max-width: 44rem; margin: 0 auto; }
.contact h2 { font-size: clamp(2rem, 5vw, 3rem); margin: 0.3rem 0 0.6rem; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1.4rem; }

/* Footer */
.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.4rem;
    padding: 2.4rem 1.5rem 2.8rem;
    font-size: 0.85rem;
    opacity: 0.65;
}
.footer-admin { text-decoration: underline; text-underline-offset: 3px; }
.footer-admin:hover { color: var(--lagoon); }

/* =========================================================
   RSVP-Modal
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.modal[hidden] { display: none; }
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 12, 18, 0.7);
    backdrop-filter: blur(6px);
}
.modal-card {
    position: relative;
    width: min(92vw, 26rem);
    padding: 2.2rem 2rem;
    text-align: center;
    animation: modalIn 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes modalIn {
    from { transform: translateY(24px) scale(0.96); opacity: 0; }
    to   { transform: none; opacity: 1; }
}
.modal-card h3 { font-size: 2.2rem; margin-bottom: 0.4rem; }
.modal-card p { font-size: 0.95rem; opacity: 0.85; margin-bottom: 1.2rem; }
.modal-card form { display: grid; gap: 0.9rem; }
.modal-close {
    position: absolute;
    top: 0.8rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.6rem;
    cursor: pointer;
    opacity: 0.7;
}
.modal-close:hover { opacity: 1; }

/* =========================================================
   Formulare
   ========================================================= */
.input {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.07);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus {
    outline: none;
    border-color: var(--lagoon);
    box-shadow: 0 0 0 3px rgba(25, 211, 197, 0.2);
}
.input.mono { font-family: var(--font-mono); text-transform: uppercase; }
.input::placeholder { color: rgba(246, 251, 252, 0.4); }

select.input option { background: var(--ink-2); color: var(--white); }

.field { display: grid; gap: 0.35rem; text-align: left; }
.field > span { font-size: 0.8rem; letter-spacing: 0.06em; opacity: 0.8; }

.form-error {
    color: #ffb3c2;
    background: rgba(255, 94, 126, 0.12);
    border: 1px solid rgba(255, 94, 126, 0.35);
    border-radius: var(--radius-sm);
    padding: 0.7rem 1rem;
    font-size: 0.88rem;
}

/* =========================================================
   Login / Installation
   ========================================================= */
.login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
}
.login-card {
    width: min(94vw, 26rem);
    padding: 2.4rem 2rem;
    display: grid;
    gap: 1rem;
    text-align: center;
}
.install-card { width: min(94vw, 30rem); }
.login-card form { display: grid; gap: 1rem; }
.login-logo { margin: 0 auto; }
.login-card h1 { font-size: 2.6rem; }
.login-sub { opacity: 0.75; font-size: 0.92rem; margin-top: -0.6rem; }

.install-steps {
    display: flex;
    justify-content: space-between;
    gap: 0.4rem;
    list-style: none;
    counter-reset: step;
    margin: 0.4rem 0 0.6rem;
}
.install-steps li {
    counter-increment: step;
    flex: 1;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.5;
    padding-top: 1.9rem;
    position: relative;
}
.install-steps li::before {
    content: counter(step);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1.6rem;
    height: 1.6rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    font-family: var(--font-mono);
}
.install-steps li.done { opacity: 0.9; }
.install-steps li.done::before { background: rgba(25, 211, 197, 0.2); border-color: var(--lagoon); color: var(--lagoon); }
.install-steps li.current { opacity: 1; color: var(--lagoon); }

.back-link { font-size: 0.85rem; opacity: 0.7; transition: opacity 0.2s; }
.back-link:hover { opacity: 1; color: var(--lagoon); }

/* =========================================================
   Ticketseite - das Herzstueck
   ========================================================= */
.ticket-wrap {
    max-width: 60rem;
    margin: 0 auto;
    padding: clamp(3rem, 8vh, 5rem) 1.2rem 3rem;
    display: grid;
    gap: 2rem;
    justify-items: center;
}

.ticket-greeting {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.8rem;
    color: var(--gold);
}

.ticket {
    position: relative;
    width: 100%;
    max-width: 52rem;
    overflow: hidden;
    padding: 0;
}

/* Ticket Shine: wandernder Lichtstreifen */
.ticket-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg,
        transparent 30%,
        rgba(255, 255, 255, 0.14) 46%,
        rgba(255, 255, 255, 0.32) 50%,
        rgba(255, 255, 255, 0.14) 54%,
        transparent 70%);
    transform: translateX(-120%);
    animation: ticketShine 5.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}
@keyframes ticketShine {
    0%, 55%  { transform: translateX(-120%); }
    80%, 100% { transform: translateX(120%); }
}

.ticket-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.8rem 2.2rem 0.8rem;
}
.ticket-brand {
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.7rem;
    color: var(--lagoon);
}
.ticket-head h1,
.ticket-head h2 {
    font-size: clamp(2.2rem, 6vw, 3.4rem);
    line-height: 1.1;
    background: linear-gradient(120deg, var(--white), var(--lagoon));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, var(--gold), #e0aa54);
    color: #3a2a10;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    box-shadow: 0 0 22px rgba(245, 201, 123, 0.55);
    animation: vipPulse 2.6s ease-in-out infinite;
}
@keyframes vipPulse {
    0%, 100% { box-shadow: 0 0 14px rgba(245, 201, 123, 0.4); }
    50%      { box-shadow: 0 0 30px rgba(245, 201, 123, 0.75); }
}
.vip-sm { font-size: 0.62rem; padding: 0.2rem 0.55rem; animation: none; margin-left: 0.4rem; }

.ticket-body {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0;
    padding: 0.6rem 0 0;
}

.ticket-info {
    padding: 0.8rem 2.2rem 2rem;
    display: grid;
    gap: 1rem;
    align-content: start;
}
.t-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
    gap: 1rem;
}
.t-row { display: grid; gap: 0.15rem; }
.t-label {
    font-weight: 700;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--lagoon);
}
.t-value { font-weight: 700; font-size: 1rem; }
.t-name {
    font-size: clamp(1.7rem, 5vw, 2.3rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    background: linear-gradient(120deg, var(--white), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.status-active     { color: var(--lagoon); }
.status-checked_in { color: var(--gold); }
.status-revoked    { color: var(--coral); }

/* Perforationslinie wie bei einem echten Ticket */
.ticket-perforation {
    width: 1px;
    margin: 1rem 0;
    background-image: linear-gradient(var(--glass-border) 55%, transparent 45%);
    background-size: 1px 14px;
    position: relative;
}
.ticket-perforation::before,
.ticket-perforation::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: var(--ink);
    border: 1px solid var(--glass-border);
}
.ticket-perforation::before { top: -1.9rem; }
.ticket-perforation::after  { bottom: -1.9rem; }

.ticket-qr {
    padding: 1.4rem 2.2rem 2rem;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 0.7rem;
    text-align: center;
}
.ticket-qr img {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-md);
    background: #fff;
    padding: 0.5rem;
    box-shadow: 0 0 30px rgba(25, 211, 197, 0.3);
}
.ticket-code { font-size: 0.95rem; font-weight: 700; color: var(--gold); text-shadow: 0 0 14px rgba(245, 201, 123, 0.5); }
.ticket-hint { font-size: 0.72rem; opacity: 0.6; letter-spacing: 0.08em; text-transform: uppercase; }
.qr-fallback { font-size: 0.85rem; opacity: 0.8; max-width: 14rem; }

/* RSVP-Bereich auf der Ticketseite */
.rsvp {
    width: 100%;
    max-width: 40rem;
    text-align: center;
    padding: 2rem 1.8rem;
}
.rsvp h2 { font-weight: 800; font-size: 1.5rem; margin-bottom: 0.3rem; }
.rsvp-current { opacity: 0.85; font-size: 0.95rem; margin-bottom: 1.2rem; }
.rsvp-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; }
.rsvp-feedback {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--lagoon);
}
.rsvp-feedback.is-error { color: #ffb3c2; }

.notfound { text-align: center; display: grid; gap: 1rem; justify-items: center; max-width: 26rem; }
.notfound h1 { font-size: 3rem; }

/* =========================================================
   Scroll-Reveal-Animation (JS fuegt .is-visible hinzu)
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 860px) {
    .ticket-body { grid-template-columns: 1fr; }
    .ticket-perforation {
        width: auto;
        height: 1px;
        margin: 0 2rem;
        background-image: linear-gradient(90deg, var(--glass-border) 55%, transparent 45%);
        background-size: 14px 1px;
    }
    .ticket-perforation::before { top: 50%; left: -1.9rem; transform: translateY(-50%); }
    .ticket-perforation::after  { bottom: auto; top: 50%; left: auto; right: -1.9rem; transform: translateY(-50%); }
}

@media (max-width: 720px) {
    .nav-links { display: none; }
    .hero-meta { flex-direction: column; align-items: stretch; text-align: center; }
    .meta-divider { width: auto; height: 1px; }
    .timeline-item { flex-direction: column; gap: 0.4rem; }
}

/* =========================================================
   Reduzierte Bewegung respektieren
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001s !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}


/* =========================================================
   Ticket-Intro (Beschreibung ueber dem Ticket)
   ========================================================= */
.ticket-intro {
    text-align: center;
    max-width: 42rem;
}
.ticket-headline {
    font-size: clamp(3rem, 10vw, 5.4rem);
    line-height: 1.1;
    margin: 0.5rem 0 1rem;
    background: linear-gradient(120deg, var(--white), var(--lagoon), var(--coral), var(--gold), var(--white));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 30px rgba(255, 94, 126, 0.35));
    animation: gradientFlow 8s ease-in-out infinite;
}
.ticket-desc {
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.75;
    opacity: 0.92;
}

/* =========================================================
   Ticket-Frame: rotierender Neon-Rahmen (krasser Look)
   ========================================================= */
@property --frameAngle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
.ticket-frame {
    position: relative;
    width: 100%;
    max-width: 52.4rem;
    padding: 2px;
    border-radius: calc(var(--radius-lg) + 2px);
    background: conic-gradient(from var(--frameAngle),
        var(--lagoon), var(--violet), var(--coral), var(--gold), var(--lagoon));
    animation: frameSpin 7s linear infinite;
}
.ticket-frame::before {
    content: '';
    position: absolute;
    inset: -14px;
    border-radius: inherit;
    background: conic-gradient(from var(--frameAngle),
        var(--lagoon), var(--violet), var(--coral), var(--gold), var(--lagoon));
    filter: blur(30px);
    opacity: 0.4;
    z-index: -1;
    animation: frameSpin 7s linear infinite;
}
@keyframes frameSpin {
    to { --frameAngle: 360deg; }
}
/* Fallback fuer Browser ohne @property: statischer Verlauf bleibt sichtbar */
@supports not (background: conic-gradient(from var(--frameAngle), red, blue)) {
    .ticket-frame, .ticket-frame::before { animation: none; }
}
.ticket-frame .ticket {
    max-width: none;
    background: rgba(8, 22, 32, 0.92);
}

/* Ort auf dem Ticket ist klickbar (Google Maps) */
.t-location {
    color: var(--white);
    text-decoration: underline;
    text-decoration-color: rgba(25, 211, 197, 0.6);
    text-underline-offset: 4px;
    transition: color 0.2s;
}
.t-location:hover { color: var(--lagoon); }

/* QR antippbar */
.qr-zoom {
    border: none;
    background: none;
    padding: 0;
    cursor: zoom-in;
    border-radius: var(--radius-md);
    transition: transform 0.25s ease;
}
.qr-zoom:hover { transform: scale(1.04); }
.qr-zoom:focus-visible { outline: 2px solid var(--lagoon); outline-offset: 4px; }

/* =========================================================
   Feature-Box: Maps, Kalender, Teilen, QR
   ========================================================= */
.feature-box {
    width: 100%;
    max-width: 52.4rem;
    padding: 2rem 1.8rem;
    display: grid;
    gap: 1.3rem;
}
.feature-box h2 {
    font-weight: 800;
    font-size: 1.4rem;
    text-align: center;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.9rem;
}
.feature-btn {
    position: relative;
    overflow: hidden;
    display: grid;
    justify-items: center;
    gap: 0.2rem;
    padding: 1.1rem 0.8rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    font-family: var(--font-sans);
    cursor: pointer;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.feature-btn:hover {
    transform: translateY(-4px);
    border-color: rgba(25, 211, 197, 0.6);
    box-shadow: var(--shadow-glow-lagoon);
}
.feature-icon { font-size: 1.7rem; line-height: 1; }
.feature-label { font-weight: 700; font-size: 0.92rem; }
.feature-btn small { font-size: 0.72rem; opacity: 0.65; font-weight: 500; }

/* =========================================================
   Hilfe-Box + Radio Aare Tipp
   ========================================================= */
.help-box {
    width: 100%;
    max-width: 52.4rem;
    padding: 2.2rem 1.8rem;
    display: grid;
    gap: 1rem;
    justify-items: center;
    text-align: center;
}
.help-box h2 { font-size: 2.4rem; }
.help-box > p { font-weight: 500; opacity: 0.9; }

.radio-tipp {
    margin-top: 0.6rem;
    width: 100%;
    display: grid;
    justify-items: center;
    gap: 0.7rem;
    padding: 1.3rem 1.4rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(25, 211, 197, 0.35);
    background: linear-gradient(135deg, rgba(25, 211, 197, 0.10), rgba(123, 92, 255, 0.10));
    box-shadow: inset 0 0 30px rgba(25, 211, 197, 0.08);
}
.radio-note { font-size: 1.8rem; animation: floatY 4s ease-in-out infinite alternate; }
.radio-tipp p { font-weight: 500; max-width: 30rem; }
.radio-tipp strong { color: var(--lagoon); }

.footer-radio {
    color: var(--lagoon);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.footer-radio:hover { text-shadow: 0 0 12px rgba(25, 211, 197, 0.7); }

/* =========================================================
   QR-Vollbild-Modal (heller Hintergrund = besser scannbar)
   ========================================================= */
.qr-modal-card {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 0.9rem;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    width: min(92vw, 26rem);
    animation: modalIn 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
    box-shadow: 0 0 80px rgba(25, 211, 197, 0.5);
}
.qr-modal-card img {
    width: 100%;
    max-width: 20rem;
    aspect-ratio: 1;
}
.qr-modal-code {
    color: #0a2233;
    font-weight: 700;
    font-size: 1rem;
}
.qr-modal-card .btn-ghost {
    background: rgba(10, 34, 51, 0.08);
    color: #0a2233;
    border-color: rgba(10, 34, 51, 0.2);
}
