/* ============================================================
   Nina50 – Einladungsseite
   ============================================================ */

:root {
    --bg-dark:   #06000f;
    --bg-mid:    #110028;
    --pink:      #ff00aa;
    --gold:      #ffd700;
    --cyan:      #00ffee;
    --purple:    #aa00ff;
    --silver:    #c8c8c8;
    --white:     #ffffff;
    --header-h:  56px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { height: 100%; }

body {
    height: 100%;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% -10%, var(--bg-mid) 0%, var(--bg-dark) 65%);
    font-family: 'Quicksand', 'Segoe UI', sans-serif;
    color: var(--white);
}

/* ============================================================
   HINTERGRUNDVIDEO
   ============================================================ */

.bg-video {
    position: fixed; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -2; pointer-events: none;
}
.bg-video-overlay {
    position: fixed; inset: 0;
    background: rgba(6,0,15,.68);
    z-index: -1; pointer-events: none;
}

/* ============================================================
   DISCO-HINTERGRUND
   ============================================================ */

.disco-bg {
    position: fixed; inset: 0;
    z-index: 0; overflow: hidden; pointer-events: none;
}

.beam {
    position: absolute; top: 0; left: 50%;
    width: 280px; height: 78vh;
    transform-origin: top center;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    opacity: 0;
}
.beam-1 { background: linear-gradient(to bottom,rgba(255,0,170,.22),transparent);   animation: sweep1  7s ease-in-out infinite; }
.beam-2 { background: linear-gradient(to bottom,rgba(0,255,238,.18),transparent);   animation: sweep2  9s ease-in-out infinite 1.2s; }
.beam-3 { background: linear-gradient(to bottom,rgba(255,215,0,.20),transparent);   animation: sweep3  6s ease-in-out infinite 0.6s; }
.beam-4 { background: linear-gradient(to bottom,rgba(170,0,255,.20),transparent);   animation: sweep4  8s ease-in-out infinite 2.1s; }
.beam-5 { background: linear-gradient(to bottom,rgba(255,110,0,.18),transparent);   animation: sweep5 10s ease-in-out infinite 1.7s; }

@keyframes sweep1 { 0%,100%{transform:translateX(-50%) rotate(-45deg);opacity:.13}50%{transform:translateX(-50%) rotate(42deg);opacity:.18} }
@keyframes sweep2 { 0%,100%{transform:translateX(-50%) rotate(35deg);opacity:.12}50%{transform:translateX(-50%) rotate(-52deg);opacity:.17} }
@keyframes sweep3 { 0%,100%{transform:translateX(-50%) rotate(-25deg);opacity:.11}33%{transform:translateX(-50%) rotate(58deg);opacity:.16}66%{transform:translateX(-50%) rotate(-58deg);opacity:.16} }
@keyframes sweep4 { 0%,100%{transform:translateX(-50%) rotate(55deg);opacity:.12}50%{transform:translateX(-50%) rotate(-35deg);opacity:.18} }
@keyframes sweep5 { 0%,100%{transform:translateX(-50%) rotate(-72deg);opacity:.10}50%{transform:translateX(-50%) rotate(72deg);opacity:.15} }

.particle {
    position: absolute; border-radius: 50%;
    animation: rise linear infinite; pointer-events: none;
}
@keyframes rise {
    0%  { transform: translateY(100vh) rotate(0deg)   scale(1); opacity: 0; }
    8%  { opacity: 1; }
    92% { opacity: 1; }
    100%{ transform: translateY(-12vh) rotate(540deg) scale(0); opacity: 0; }
}

.light-dot {
    position: fixed; border-radius: 50%;
    animation: dot-travel linear infinite;
    z-index: 2; pointer-events: none;
}
@keyframes dot-travel {
    0%  { transform: translate(0,0) scale(1);              opacity: 0; }
    10% { opacity: .85; }
    90% { opacity: .85; }
    100%{ transform: translate(var(--tx),var(--ty)) scale(.4); opacity: 0; }
}

/* ============================================================
   DISKOKUGEL
   ============================================================ */

.disco-ball-area {
    position: fixed; top: 0; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center;
    z-index: 10; pointer-events: none;
}
.ball-string { width: 2px; height: 38px; background: linear-gradient(to bottom,#555,#222); }
.disco-ball  { width: 120px; height: 120px; border-radius: 50%; display: block;
               box-shadow: 0 0 40px rgba(255,255,255,.50), 0 0 80px rgba(200,200,255,.22); }

/* ============================================================
   HEADER + NAVIGATION
   ============================================================ */

.invite-header {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--header-h);
    z-index: 100;
    display: flex; align-items: center; justify-content: center;
    background: rgba(6,0,20,.75);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,0,170,.18);
}

.nav-menu {
    display: flex; gap: 0; position: relative;
    border-radius: 30px;
    background: rgba(255,255,255,.06);
    padding: 4px;
}

.nav-link {
    position: relative; z-index: 1;
    padding: 6px 18px;
    border-radius: 24px;
    color: rgba(255,255,255,.60);
    font-size: .8rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .10em;
    cursor: pointer; white-space: nowrap;
    transition: color .25s;
    background: none; border: none; font-family: inherit;
}
.nav-link:hover  { color: rgba(255,255,255,.85); }
.nav-link.active { color: var(--white); }

/* Sliding Indicator */
.nav-indicator {
    position: absolute;
    top: 4px; height: calc(100% - 8px);
    border-radius: 24px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    transition: left .35s cubic-bezier(.4,0,.2,1), width .35s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
}

/* ============================================================
   SCROLL-CONTAINER + SEKTIONEN
   ============================================================ */

.scroll-container {
    height: 100dvh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    padding-top: var(--header-h);
    scroll-padding-top: var(--header-h);
    box-sizing: border-box;
}

.section {
    scroll-snap-align: start;
    height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    padding: 24px 18px;
}

/* ============================================================
   SEKTION 1: EINLADUNG
   ============================================================ */

.invitation-card {
    background: rgba(8,0,25,.82);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255,0,170,.28);
    border-radius: 24px;
    padding: 52px 44px;
    max-width: 580px; width: 100%;
    text-align: center;
    box-shadow:
        0 0 60px rgba(255,0,170,.18),
        0 0 120px rgba(255,0,170,.08),
        inset 0 1px 0 rgba(255,255,255,.08);
    position: relative; overflow: hidden;
}
.card-shimmer {
    position: absolute; inset: 0; border-radius: inherit;
    background: linear-gradient(115deg,transparent 20%,rgba(255,255,255,.04) 50%,transparent 80%);
    background-size: 200% 200%;
    animation: shimmer-move 4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes shimmer-move { 0%{background-position:200% 0}100%{background-position:-200% 0} }

.stars-deco-container {
    position:relative;
}
.stars-deco-container .subtitle {
    width: 100%;
    position:absolute;
}
.stars-deco {
    
    width:100%;
    font-size: 1rem;
    margin-bottom: 8px;
    animation: star-pulse 2.4s ease-in-out infinite; display: block;
}
.stars-deco span {
    display:inline-block;
    width:200px;
}
@keyframes star-pulse { 0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.12);opacity:.75} }

.main-title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(3rem,9vw,5.8rem);
    line-height: 1.05;
    background: linear-gradient(120deg,#ffd700 0%,#ff00aa 45%,#ffd700 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: title-shine 3.5s linear infinite;
    filter: drop-shadow(0 0 18px rgba(255,215,0,.45));
    padding: 24px 0px 16px;
}
@keyframes title-shine { 0%{background-position:0% center}100%{background-position:200% center} }

.subtitle {
    font-size: clamp(1rem,4.5vw,1.6rem);
    color: var(--cyan); letter-spacing: .18em;
    text-transform: uppercase; font-weight: 700;
    text-shadow: 0 0 18px rgba(0,255,238,.55);
    margin-bottom: 20px;
}

.card-divider {
    height: 2px; max-width: 380px; margin: 0 auto 20px;
    background: linear-gradient(to right,transparent,var(--pink),var(--gold),var(--pink),transparent);
    animation: divider-glow 2.2s ease-in-out infinite alternate;
}
@keyframes divider-glow {
    from { box-shadow: 0 0 6px rgba(255,0,170,.4); }
    to   { box-shadow: 0 0 20px rgba(255,215,0,.8), 0 0 40px rgba(255,0,170,.35); }
}

.anrede-text { font-size: 1.1rem; color: #eeddff; margin-bottom: 16px; line-height: 1.6; }
.invite-text { font-size: 1.1rem; color: rgba(255,255,255,.75); line-height: 1.7; margin-bottom: 24px; }

.event-details { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.detail-item { display: flex; align-items: flex-start; justify-content: center; gap: 12px; font-size: 1.05rem; font-weight: 600; }
.detail-icon { font-size: 1rem; flex-shrink: 0; }
.detail-text { font-size: 1rem; color: #eeddff; }
.detail-highlight { color: var(--gold); font-weight: 700; }

/* Countdown */
.countdown-section { margin-bottom: 0px; }
.countdown-label { font-size: .8rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .16em; margin-bottom: 12px; }
.countdown { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.countdown-item {
    display: flex; flex-direction: column; align-items: center;
    background: rgba(255,0,170,.13); border: 1px solid rgba(255,0,170,.28);
    border-radius: 14px; padding: 10px 16px; min-width: 68px;
}
.countdown-value {
    font-size: 1.8rem; font-weight: 700; color: var(--gold);
    text-shadow: 0 0 12px rgba(255,215,0,.6); line-height: 1;
    font-variant-numeric: tabular-nums;
}
.countdown-unit { font-size: .65rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.45); margin-top: 4px; }

/* ============================================================
   SEKTION 2: RSVP
   ============================================================ */

.rsvp-card {
    background: rgba(8,0,25,.82);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255,0,170,.28);
    border-radius: 24px;
    padding: 40px 36px;
    max-width: 500px; width: 100%;
    position: relative;
}
.rsvp-card h2 { font-family: 'Dancing Script',cursive; font-size: 2.2rem; color: var(--gold); text-align: center; margin-bottom: 24px; }

.rsvp-choices { display: flex; gap: 16px; margin-bottom: 20px; }

.rsvp-choice {
    flex: 1;
    border: 2px solid rgba(255,255,255,.18);
    border-radius: 16px;
    padding: 16px 12px;
    cursor: pointer;
    text-align: center;
    transition: all .25s;
    background: rgba(255,255,255,.04);
    user-select: none;
}
.rsvp-choice:hover { border-color: rgba(255,255,255,.40); }
.rsvp-choice.selected-yes { border-color: #22c55e; background: rgba(34,197,94,.15); }
.rsvp-choice.selected-no  { border-color: #ef4444; background: rgba(239,68,68,.15); }

.rsvp-choice-icon { font-size: 2rem; display: block; margin-bottom: 6px; }
.rsvp-choice-label { font-size: .9rem; font-weight: 600; }

.person-counter {
    display: none; align-items: center; justify-content: center;
    gap: 16px; margin-top: 12px;
}
.person-counter.visible { display: flex; }
.counter-btn {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
    color: var(--white); font-size: 1.4rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.person-counter div {
    display:grid;

}
.counter-btn:hover { background: rgba(255,255,255,.25); }
.counter-value { font-size: 2rem; font-weight: 700; color: var(--gold); min-width: 40px; text-align: center; }
.counter-label { font-size: .8rem; color: rgba(255,255,255,.5); }

.rsvp-saving {
    font-size: .78rem;
    color: #22c55e;
    text-align: center;
    margin-bottom: 12px;
    min-height: 1.2em;
}
.rsvp-saving.error { color: #f87171; }

.message-field { margin-top: 8px; }
.message-field label { display: block; font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 8px; }
.message-field textarea {
    width: 100%; background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.18); border-radius: 10px;
    color: var(--white); font-family: inherit; font-size: .95rem;
    padding: 10px 14px; resize: vertical; min-height: 80px;
}
.message-field textarea:focus { outline: none; border-color: var(--pink); }
.btn-goto-rsvp {
    display: block; margin: 20px auto 0;
    padding: 13px 32px;
    background: linear-gradient(135deg, var(--gold), #c8860a);
    border: none; border-radius: 50px;
    color: #1a0a00; font-size: 1rem; font-weight: 700;
    letter-spacing: .06em; cursor: pointer;
    box-shadow: 0 4px 18px rgba(255,190,60,.35);
    transition: opacity .2s, transform .2s, box-shadow .2s;
    margin-bottom: 16px;
}
.btn-goto-rsvp:hover {
    opacity: .9; transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255,190,60,.5);
}

.btn-send {
    margin-top: 10px; width: 100%; padding: 11px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    border: none; border-radius: 50px; color: var(--white);
    font-size: .95rem; font-weight: 700; cursor: pointer; letter-spacing: .08em;
    transition: opacity .2s, transform .2s;
}
.btn-send:hover { opacity: .88; transform: translateY(-2px); }
.btn-send:disabled { opacity: .5; cursor: default; transform: none; }

/* ============================================================
   SEKTION 3: LOCATION
   ============================================================ */

.location-card {
    background: rgba(8,0,25,.82);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255,0,170,.28);
    border-radius: 24px;
    overflow: hidden;
    max-width: 580px; width: 100%;
}
.google-maps {
    height: 360px;
}
.location-card h2 { font-family: 'Dancing Script',cursive; font-size: 2.2rem; color: var(--gold); text-align: center; padding: 24px 24px 16px; }
.map-frame { width: 100%; height: 240px; border: none; display: block; }
.location-info { padding: 20px 24px; }
.location-address { font-size: 1.05rem; color: #eeddff; margin-bottom: 14px; line-height: 1.6; }
.location-address strong { color: var(--gold); display: block; margin-bottom: 4px; }
.parking-info { font-size: .9rem; color: rgba(255,255,255,.65); line-height: 1.6; }
.parking-info strong { color: var(--cyan); }

/* ============================================================
   SEKTION 4: FAQ
   ============================================================ */

.faq-card {
    background: rgba(8,0,25,.82);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255,0,170,.28);
    border-radius: 24px;
    padding: 36px 36px;
    max-width: 580px; width: 100%;
}
.faq-card h2 { font-family: 'Dancing Script',cursive; font-size: 2.2rem; color: var(--gold); text-align: center; margin-bottom: 24px; }

.faq-item { margin-bottom: 20px; }
.faq-question { font-size: 1rem; font-weight: 700; color: var(--cyan); margin-bottom: 6px; }
.faq-answer { font-size: 1rem; color: rgba(255,255,255,.72); line-height: 1.65; }

/* ============================================================
   MUSIK-BUTTON (Header, neben Nav)
   ============================================================ */

.header-inner {
    display: flex; align-items: center; gap: 8px;
}

.music-btn {
    position: relative; z-index: 1;
    padding: 6px 14px;
    border-radius: 24px;
    color: rgba(255,255,255,.60);
    font-size: .8rem;
    cursor: pointer; white-space: nowrap;
    background: none; border: none; font-family: inherit;
    transition: color .25s;
}
.music-btn:hover  { color: rgba(255,255,255,.85); }
.music-btn.playing { color: var(--white); }

/* ============================================================
   RSVP EMOJI-EFFEKTE
   ============================================================ */

.emoji-fx {
    position: fixed;
    pointer-events: none;
    z-index: 300;
    font-size: 1.6rem;
    line-height: 1;
    will-change: transform, opacity;
    user-select: none;
}

/* Herzchen-Feuerwerk (Zusage) */
@keyframes heart-burst {
    0%   { transform: translate(0, 0)                                        scale(0.2); opacity: 1; }
    18%  { transform: translate(calc(var(--dx)*0.12), calc(var(--dy)*0.12))  scale(2.4); opacity: 1; }
    75%  { opacity: 1; }
    100% { transform: translate(var(--dx), var(--dy))                        scale(0.3); opacity: 0; }
}
.emoji-fx.heart-burst { animation: heart-burst 1.1s cubic-bezier(0.15, 0.8, 0.35, 1) forwards; }

/* Thumbs-up aufsteigend (Plus) */
@keyframes thumb-rise {
    0%   { transform: translateY(0)     scale(1.0); opacity: 1; }
    30%  { transform: translateY(-28px) scale(1.4); opacity: 1; }
    100% { transform: translateY(-95px) scale(0.9); opacity: 0; }
}
.emoji-fx.thumb-rise { animation: thumb-rise 0.9s ease-out forwards; }

/* Tränen-Emojis fallen (Absage) */
@keyframes tear-fall {
    0%   { transform: translateY(0)     scale(1);   opacity: 1; }
    20%  { opacity: 1; }
    100% { transform: translateY(110px) scale(0.6); opacity: 0; }
}
.emoji-fx.tear-fall { animation: tear-fall 1.0s ease-in forwards; }

/* "Datensatz nicht gefunden" */
.not-found {
    display: flex; align-items: center; justify-content: center;
    height: 100dvh; font-size: 1.2rem; color: rgba(255,255,255,.5);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 500px) {
    .invitation-card, .rsvp-card, .location-card, .faq-card { padding: 28px 18px; border-radius: 18px; }
    .disco-ball { width: 85px; height: 85px; }
    .ball-string { height: 26px; }
    .countdown-item { min-width: 58px; padding: 8px 12px; }
    .countdown-value { font-size: 1.5rem; }
    .nav-link { padding: 6px 12px; font-size: .72rem; }
}

@media (max-height: 760px) {
    .event-details {
        gap: 0px;
    }

    .invitation-card {
        padding-bottom: 10px;
    }

    .invite-text {
        margin: 0px;
        line-height: 1;
    }
    .google-maps {
        height: 250px;
    }

    .btn-goto-rsvp {
        margin-top: 6px;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .anrede-text {
        line-height: 1;
    }
}
  
@media (max-height: 650px) {
    .event-details {
        gap: 0px;
    }
    .invitation-card { padding-bottom: 10px; }
    .invite-text { margin: 0px; line-height: 1; }
    .countdown-section { margin: 0px;}
    .google-maps { height: 220px; }
    /*.location-info { padding-bottom: 0px; }*/
    .countdown-label { margin: 0px;}
    .btn-goto-rsvp { margin-top: 6px; padding-top: 6px; padding-bottom: 6px;}
    .anrede-text { line-height: 1; }
}

/* ============================================================
   SPLASH-SCREEN
   ============================================================ */
.splash {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.7s ease;
}
.splash.splash-fade-out { opacity: 0; pointer-events: none; }

.splash-inner { text-align: center; color: #fff; }

.splash-ball-wrap { font-size: 5rem; margin-bottom: 1rem; }

.splash-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(255,215,0,.7);
    margin-bottom: 0.5rem;
}

.splash-sub { font-size: 1.1rem; opacity: 0.8; margin: 0.5rem 0 2rem; }

.splash-btn {
    font-size: 1.3rem; padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--pink), var(--gold));
    border: none; border-radius: 3rem; color: #fff;
    cursor: pointer; font-weight: 700; font-family: inherit;
    box-shadow: 0 0 24px rgba(255,0,170,0.6);
    transition: transform 0.15s, box-shadow 0.15s;
}
.splash-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 36px rgba(255,0,170,0.9);
}
