/* ============================================
   CSS VARIABLES & RESET
   ============================================ */

:root {
    --olive-green: #7a8b6e;
    --olive-dark: #5a6b4f;
    --olive-light: #9aaa8d;
    --olive-darker: #4a5a3f;
    --cream: #f5f1e8;
    --cream-dark: #e8e0d0;
    --text-dark: #2c2c2c;
    --text-light: #f5f1e8;
    --gold: #c9a227;
    --wax-pink: #e8d5c4;
    --shadow: rgba(0,0,0,0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    overflow-x: hidden;
    background: #f5f1e8;        /* Neutral, kein Muster mehr hier */
    color: #111;
    text-align: center;
    line-height: 1.6;
}

/* ============================================
   LOGIN OVERLAY
   ============================================ */

.login-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.login-overlay--hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.03);
}

.login-card {
    background: #fff;
    border: 1px solid var(--cream-dark);
    border-radius: 4px;
    padding: 3rem 2.5rem 2.5rem;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 8px 40px rgba(0,0,0,0.10);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.login-ornament {
    color: var(--gold);
    font-size: 1.1rem;
    letter-spacing: 0.2em;
}

.login-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-dark);
    letter-spacing: 0.08em;
}

.login-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    color: var(--olive-green);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.login-divider {
    width: 60px;
    height: 1px;
    background: var(--cream-dark);
    margin: 0.5rem 0;
}

.login-hint {
    font-size: 0.88rem;
    color: #888;
    margin-bottom: 0.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.login-field input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--cream-dark);
    border-radius: 3px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--cream);
    outline: none;
    transition: border-color 0.2s;
}

.login-field input:focus {
    border-color: var(--olive-green);
    background: #fff;
}

.login-error {
    font-size: 0.83rem;
    color: #c0392b;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    min-height: 1.2em;
    display: none;
}

.login-error.visible {
    display: block;
}

.login-form button {
    width: 100%;
    padding: 0.85rem;
    background: var(--olive-green);
    color: #fff;
    border: none;
    border-radius: 3px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 0.25rem;
}

.login-form button:hover:not(:disabled) {
    background: var(--olive-dark);
}

.login-form button:disabled {
    opacity: 0.6;
    cursor: default;
}

/* ============================================
   SIDE NAVIGATION (Einklappbar)
   ============================================ */

.side-nav {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.nav-trigger {
    width: 40px;
    height: 120px;
    background: rgba(122, 139, 110, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px 0 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    position: relative;
    z-index: 101;
}

.nav-dots {
    color: rgba(255,255,255,0.8);
    font-size: 0.6rem;
    line-height: 1.2;
    text-align: center;
    transition: opacity 0.3s;
}

.side-nav:hover .nav-trigger {
    width: 50px;
    background: rgba(122, 139, 110, 1);
}

.side-nav:hover .nav-label {
    opacity: 1;
    transform: translateX(0);
}

.nav-menu {
    position: absolute;
    top: 50%;
    right: 40px;
    transform: translateY(-50%) translateX(20px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px 0 0 20px;
    padding: 25px 30px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    min-width: 180px;
}

.side-nav:hover .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.nav-menu li {
    margin: 12px 0;
    opacity: 0;
    transform: translateX(15px);
    transition: all 0.3s ease;
}

.side-nav:hover .nav-menu li {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered animation for menu items */
.side-nav:hover .nav-menu li:nth-child(1) { transition-delay: 0.05s; }
.side-nav:hover .nav-menu li:nth-child(2) { transition-delay: 0.1s; }
.side-nav:hover .nav-menu li:nth-child(3) { transition-delay: 0.15s; }
.side-nav:hover .nav-menu li:nth-child(4) { transition-delay: 0.2s; }
.side-nav:hover .nav-menu li:nth-child(5) { transition-delay: 0.25s; }
.side-nav:hover .nav-menu li:nth-child(6) { transition-delay: 0.3s; }
.side-nav:hover .nav-menu li:nth-child(7) { transition-delay: 0.35s; }
.side-nav:hover .nav-menu li:nth-child(8) { transition-delay: 0.4s; }
.side-nav:hover .nav-menu li:nth-child(9) { transition-delay: 0.45s; }

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: block;
    padding: 5px 0;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--olive-green);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--olive-green);
    transform: translateX(5px);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .side-nav {
        top: auto;
        bottom: 20px;
        right: 20px;
        transform: none;
    }

    .nav-trigger {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    }

    .nav-dots {
        display: none;
    }

    .nav-trigger::before {
        content: '☰';
        color: white;
        font-size: 1.2rem;
    }

    .nav-menu {
        top: auto;
        bottom: 60px;
        right: 0;
        transform: translateY(20px);
        border-radius: 15px;
        padding: 20px;
        min-width: 160px;
    }

    .nav-label {
        display: none;
    }

    .side-nav.open .nav-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .side-nav.open .nav-menu li {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Verstecke Navigation während Envelope Stage */
.stage:not(.hidden) ~ .side-nav,
.stage:not(.hidden) + .side-nav {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.website.show ~ .side-nav,
.website.show + .side-nav {
    opacity: 1;
    pointer-events: auto;
}

.nav-menu a.active {
    color: var(--olive-green);
    font-weight: 600;
}

.nav-menu a.active::after {
    width: 100%;
}

/* ============================================
   ENVELOPE STAGE
   ============================================ */

.stage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8e0d0 0%, #d4ccc0 50%, #c4bcb0 100%);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.stage.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s;
    pointer-events: none;
}

/* Background Decorations */
.bg-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-flower {
    position: absolute;
    font-size: 2rem;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
}

.flower-1 { top: 10%; left: 10%; animation-delay: 0s; }
.flower-2 { top: 20%; right: 15%; animation-delay: 1s; font-size: 2.5rem; }
.flower-3 { bottom: 20%; left: 8%; animation-delay: 2s; }
.flower-4 { bottom: 15%; right: 10%; animation-delay: 3s; font-size: 3rem; }
.flower-5 { top: 50%; left: 5%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.stage-hint {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #777;
    font-style: italic;
    letter-spacing: 2px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.stage-hint.hidden {
    opacity: 0;
}

/* ============================================
   ENVELOPE WRAPPER
   ============================================ */

.envelope-wrapper {
    position: relative;
    width: min(520px, 90vw);
    aspect-ratio: 520 / 360;
    height: auto;
    perspective: 1200px;
    transform-origin: center center;
}

@media (max-width: 560px) {
    .envelope-wrapper {
        transform: scale(0.72);
    }
}

@media (max-width: 400px) {
    .envelope-wrapper {
        transform: scale(0.58);
    }
}

/* Envelope Back */
.envelope-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #8b9a7d 0%, #7a8b6e 50%, #6b7c5c 100%);
    border-radius: 4px;
    box-shadow:
        0 30px 100px rgba(0,0,0,0.4),
        0 15px 40px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.pattern-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.8) 1.5px, transparent 1.5px),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.6) 1px, transparent 1px);
    background-size: 30px 30px, 20px 20px;
}

/* ============================================
   INVITATION CARD (Inside)
   ============================================ */

.invitation-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 440px;
    height: 280px;
    transform: translate(-50%, -40%) scale(0.8);
    z-index: 5;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none; /* Wichtig: Klicks erst nach dem Show erlauben */
}

.invitation-card.show {
    transform: translate(-50%, -75%) scale(1); /* Endposition angepasst */
    opacity: 1;
    pointer-events: auto; /* Klicks erlauben wenn sichtbar */
    z-index: 25; /* Höherer z-index damit sie klickbar ist */
}

.card-paper {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fffefc 0%, #faf8f3 100%);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 8px;
    position: relative;
}

.card-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, transparent 48%, rgba(139,154,125,0.05) 50%, transparent 52%),
        linear-gradient(0deg, transparent 48%, rgba(139,154,125,0.05) 50%, transparent 52%);
    background-size: 40px 40px;
    border-radius: 8px;
    pointer-events: none;
}

.card-border {
    width: 100%;
    height: 100%;
    border: 2px solid var(--olive-light);
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}


.card-content {
    text-align: center;
    /* Flexbox für bessere Kontrolle */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Gesamtpadding der Karte */
    padding: 1rem;
    /* Sicherstellen, dass alles innerhalb bleibt */
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.card-pretitle {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #8a9e82;
    /* Abstand nach unten */
    margin: 0 0 1rem 0;
}

.card-names {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #2e3d2b;
    /* Abstand nach unten */
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
}

.card-divider {
    color: #c9a227;
    font-size: 2rem;
    opacity: 0.6;
    /* Abstand oben und unten */
    margin: 0.25rem 0;
    line-height: 1;
}

.card-date {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #666;
    letter-spacing: 2px;
    /* Abstand nach unten */
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
}

.card-button {
    padding: 0.9rem 2.5rem;
    background: #2e3d2b;
    color: white;
    border: none;
    border-radius: 30px;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(107, 124, 92, 0.3);
    /* Margin-bottom entfernt oder reduziert */
    margin: 0;
}

.card-button:hover {
    background: var(--olive-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 124, 92, 0.4);
}

.button-arrow {
    transition: transform 0.3s;
}

.card-button:hover .button-arrow {
    transform: translateX(4px);
}

/* ============================================
   ENVELOPE FRONT
   ============================================ */

.envelope-front {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

/* Verbindungslinien vom Siegel zu den Klappen (optional, für realistischen Look) */
.envelope-front::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9;
}

.front-body {
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.1) 0%, transparent 50%),
        linear-gradient(145deg, #9aaa8d 0%, #8b9a7d 30%, #7a8b6e 70%, #6b7c5c 100%);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 0 60px rgba(0,0,0,0.1);
}

.envelope-texture {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    background-image:
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255,255,255,.03) 2px, rgba(255,255,255,.03) 4px),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.02) 2px, rgba(0,0,0,.02) 4px);
}

/* Florales Muster */
.front-body::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.08;
    background-image:
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 10 Q35 25 50 30 Q35 35 30 50 Q25 35 10 30 Q25 25 30 10' fill='none' stroke='white' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 80px 80px;
}

/* Faltlinien auf dem Umschlag */
.front-body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(135deg, transparent 48%, rgba(0,0,0,0.08) 49%, rgba(0,0,0,0.08) 51%, transparent 52%),
        linear-gradient(-135deg, transparent 48%, rgba(0,0,0,0.08) 49%, rgba(0,0,0,0.08) 51%, transparent 52%);
    pointer-events: none;
}

/* Decorative Corners */
.corner {
    position: absolute;
    font-size: 1.5rem;
    color: rgba(255,255,255,0.25);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    z-index: 3;
}

.corner-tl { top: 12px; left: 12px; transform: rotate(-45deg); }
.corner-tr { top: 12px; right: 12px; transform: rotate(45deg); }
.corner-bl { bottom: 12px; left: 12px; transform: rotate(-135deg); }
.corner-br { bottom: 12px; right: 12px; transform: rotate(135deg); }

/* Zentrales Ornament */
.center-ornament {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    opacity: 0.2;
    z-index: 2;
}

.ornament-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

/* Bottom Flap */
.bottom-flap {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background:
        linear-gradient(to top, rgba(0,0,0,0.15) 0%, transparent 30%),
        linear-gradient(to top, #5a6b4f 0%, #6b7c5c 40%, #7a8b6e 100%);
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
    z-index: 11;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 20px;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
}

.bottom-flap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(255,255,255,0.2); /* Kleine Spitze an der Oberkante */

}

.flap-heart {
    color: rgba(255,255,255,0.25);
    font-size: 1.8rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: pulse 3s ease-in-out infinite;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.25; }
    50% { transform: scale(1.1); opacity: 0.4; }
}

/* Side Flaps */
.side-flap {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: 12;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.side-flap.left {
    left: 0;
    background:
        linear-gradient(to right, rgba(0,0,0,0.1) 0%, transparent 30%),
        linear-gradient(to right, #6b7c5c 0%, #7a8b6e 60%, #8b9a7d 100%);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.side-flap.left::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 2px;
    height: 60%;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(-45deg);
}

.side-flap.right {
    right: 0;
    background:
        linear-gradient(to left, rgba(0,0,0,0.1) 0%, transparent 25%),
        linear-gradient(to left, #6b7c5c 0%, #7a8b6e 60%, #8b9a7d 100%);
    clip-path: polygon(100% 0, 100% 100%, 0 50%);
}

.side-flap.right::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 2px;
    height: 60%;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(-45deg);
}

/* Top Opening Flap */
.top-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 52%;
    transform-origin: top center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 15;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
}

.top-flap.open {
    transform: rotateX(180deg);
}

.flap-inner {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(to bottom, rgba(255,255,255,0.15) 0%, transparent 40%),
        linear-gradient(to bottom, #9aaa8d 0%, #8b9a7d 50%, #7a8b6e 100%);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    position: relative;
    box-shadow:
        inset 0 -10px 20px rgba(0,0,0,0.1),
        0 10px 30px rgba(0,0,0,0.15);
}

/* Überlappungslinie an der Spitze */
.flap-inner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid rgba(0,0,0,0.1); /* Schatten an der Spitze */
}

.flap-pattern {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 40px;
    opacity: 0.3;
}

.flap-pattern::before {
    content: '❦';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.2rem;
    opacity: 0.6;
}

.flap-pattern::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.5), transparent);
}

.flap-inner::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right,
        transparent 0%,
        rgba(0,0,0,0.15) 20%,
        rgba(0,0,0,0.2) 50%,
        rgba(0,0,0,0.15) 80%,
        transparent 100%
    );
}

/* ============================================
   WAX SEAL (On Top)
   ============================================ */

.wax-seal-container {
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.wax-seal-container:hover {
    transform: translate(-50%, -50%) scale(1.03);
}

.wax-seal-container.open {
    animation: sealMove 0.8s forwards;
}

@keyframes sealMove {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -90%) scale(0.95); opacity: 1; }
    100% { transform: translate(-50%, -120%) scale(0.85); opacity: 0; }
}

.wax-seal {
    width: 100px;
    height: 100px;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4) 0%, transparent 50%),
        linear-gradient(145deg, #f0e0d0 0%, #e8d5c4 30%, #d4c4b0 70%, #c9a227 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow:
        0 10px 40px rgba(0,0,0,0.3),
        0 5px 15px rgba(0,0,0,0.2),
        inset 0 -4px 10px rgba(0,0,0,0.1),
        inset 0 4px 10px rgba(255,255,255,0.5);
    position: relative;
    border: 2px solid rgba(212,196,176,0.5);
}

.seal-inner {
    width: 82px;
    height: 82px;
    border: 1.5px solid rgba(184,160,144,0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.seal-initials {
    font-family: 'Felix Titling';
    font-size: 1.3rem;;
    color: #b8a090;
    text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}

.seal-initials .ampersand {
    font-size: 0.75em;
    color: #c9a090;
    margin: 0 2px;
}

.seal-shine {
    position: absolute;
    top: 18%;
    left: 22%;
    width: 20px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    transform: rotate(-25deg);
    filter: blur(1px);
}

.seal-shadow {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 15px;
    background: rgba(0,0,0,0.2);
    border-radius: 50%;
    filter: blur(8px);
    transition: all 0.3s;
}

.wax-seal-container:hover .seal-shadow {
    width: 60px;
    opacity: 0.7;
    filter: blur(10px);
}

.seal-text {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Playfair Display', serif;
    font-size: 0.8rem;
    color: #f0e0d0;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0.7;
    transition: opacity 0.3s;
    text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}

.wax-seal-container:hover .seal-text {
    opacity: 1;
}

/* ============================================
   WEBSITE CONTENT
   ============================================ */

.website {
    position: relative;
    z-index: 1;              /* Höher als Hero-Hintergrund */
    opacity: 0;
    transition: opacity 1s ease;
}

.website.show {
    opacity: 1;
}

/* Hero Section */
/*
 * --face-x / --face-y steuern, welcher Bildpunkt immer sichtbar bleibt.
 * Werte: 0% = links/oben, 50% = Mitte, 100% = rechts/unten.
 * Passe --face-y an, bis die Gesichter auf allen Geräten zentriert sind.
 * Typische Portraits: 20–35 %.
 */
:root {
    --face-x: 55%;   /* horizontal: Gesichter leicht links der Mitte */
    --face-y: 28%;   /* vertikal:   Gesichter im oberen Drittel */
}

.hero {
    position: relative;
    /* dvh = Dynamic Viewport Height, berücksichtigt mobile Browser-Leisten.
       Fallback auf 100vh für ältere Browser. */
    height: 100dvh;
    min-height: 100dvh;
    /* Hintergrundbild: Ankerpunkt = var(--face-x) var(--face-y)
       → der Bildpunkt an dieser Stelle bleibt beim Skalieren immer sichtbar */
    background:
        linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.4)),
        url('images/LouAlexGPT169.png') var(--face-x) var(--face-y) / cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.25);
    z-index: 1;
}

.hero-content {
    position: relative;
    animation: fadeInUp 1.5s ease 0.3s both;
    z-index: 2;
    will-change: transform;
    margin-top: 100px;
}

.hero-names {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 14vw, 5rem);
    line-height: 1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.hero-names .name {
    display: block;
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
    width: 300px;
}

.hero-divider::before,
.hero-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.5), transparent);
}

.divider-icon {
    margin: 0 1rem;
    font-size: 1.2rem;
}


.hero-date {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
}


.scroll-indicator {
    position: absolute;
    bottom: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
    z-index: 2;
    margin-bottom: 40px;
}

.scroll-indicator:hover {
    opacity: 1;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 13px;
    margin: 0 auto 0.5rem;
    position: relative;
}

.wheel {
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

.scroll-indicator p {
    font-family: 'Playfair Display', serif;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes scrollWheel {
    0% { opacity: 1; top: 6px; }
    100% { opacity: 0; top: 16px; }
}

/* ============================================
   4. COUNTDOWN SECTION (Oliv-Grün)
   ============================================ */

#countdown {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.countdown-section {
    position: relative;
    width: 100%;
    padding: 80px 0;
    box-sizing: border-box;
    background-image: radial-gradient(rgba(0,0,0,0.06) 1px, transparent 1px);
    background-size: 4px 4px;
    background-color: #2e3d2b;
    z-index: 10;
    color: #f2ede2;
}

.countdown-section .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.countdown-section h2 {
    color: #f2ede2;
    font-size: clamp(1.5rem, 6vw, 2.3rem);
}

.countdown-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    gap: 20px;
    margin: 50px auto;
    /* Identisch mit .section-location .container → gleiche Breite wie die Map */
    max-width: 900px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Alle 4 Countdown-Blöcke bleiben bei jeder Bildschirmbreite nebeneinander */
@media (max-width: 640px) {
    .countdown-container {
        gap: 8px;
        margin: 30px auto;
        width: 100%;
    }

    .time-box {
        padding: 14px 0;
        min-width: 0;
        width: 100%;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
    }

    .time-box span {
        font-size: 6vw;
        display: block;
        text-align: center;
    }

    .time-box small {
        font-size: 3vw;
        letter-spacing: 0;
        display: block;
        text-align: center;
        white-space: nowrap;
        line-height: 1.3;
    }
}

.section-icon {
    display: inline-block;
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}


.countdown-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #c9a227;
}

.countdown-hint {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    margin-top: 28px;
    letter-spacing: 0.3px;
}

.time-box {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 18px;
    padding: clamp(10px, 3vw, 35px) clamp(8px, 2vw, 30px);
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.time-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.12);
}

.time-box small {
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.6;
    font-size: clamp(0.55rem, 2vw, 1rem);
}

.time-box span {
    display: block;
    font-size: clamp(1.2rem, 5vw, 2.7rem);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.time-box span.animate {
    transform: translateY(-5px);
    opacity: 0.5;
}

.container {
    /* Blöcke in Abschnitte */
    max-width: 900px;
    margin: 0 auto;
}

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   6. LOCATION SECTION (Blau-Grün)
   ============================================ */

.section-location {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 80px 0;
    color: #2e3d2b;
    background: #f2ede2;
    background-image: radial-gradient(rgba(0,0,0,0.06) 1px, transparent 1px);
    background-size: 4px 4px;
;
}

.section-location .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-location h2 {
    color: #2e3d2b;
    font-size: clamp(1.5rem, 6vw, 2.3rem);
}

.location-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #2e3d2b;
    margin-bottom: 50px;
}

.location-text {
    max-width: 900px;
    margin: 20px auto 40px auto;
    font-size: 1.3rem;
}

.location-details {
    margin-bottom: 40px;
    font-size: 1.2rem;
}

.location-details p {
    font-size: 1.2rem;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.map-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    border-radius: 25px;
    background: rgba(255,255,255,0.6);
    text-decoration: none;
    color: #8a9e82;
}

/* ============================================
   5. TIMELINE / ABLAUF SECTION (Warmes Beige)
   ============================================ */

.section-ablauf {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 80px 0;
    color: #f2ede2;
    background: #243322;
    background-image: radial-gradient(rgba(0,0,0,0.06) 1px, transparent 1px);
    background-size: 4px 4px;
}

.section-ablauf .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-ablauf h2 {
    color: #f2ede2;
    font-size: clamp(1.5rem, 6vw, 2.3rem);
}

.section-ablauf p {
    color: #f2ede2;
    font-size: 1.5rem;
}

/* Timeline Komponenten */

.timeline {
    position: relative;
    padding: 0 20px;
    margin: 80px auto;
    max-width: 900px;
}

.timeline-date-block {
    position: relative;
    margin: 2px 0;
}

.timeline-date-block + .timeline-item {
    margin-top: 30px;
    margin-bottom: 60px;
}


.timeline-date h2 {
    font-size: clamp(1rem, 2vw, 2.2rem);
    letter-spacing: clamp(0px, 0.05em, 1px);
    text-align: left;
    right: 2%;
    width: calc(50% - 30px);
    display: block;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

h2.timeline-weekday {
    color: #c9a227;
}

h2.timeline-datestr {
    color: #f2ede2;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    bottom: 0;
    background: linear-gradient(to bottom, #dfe5e1, #cfd8d3);
    box-shadow: 0 0 8px rgba(207, 216, 211, 0.6);
    transition: height 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

/* NEU */
.timeline-item:nth-child(odd of .timeline-item) {
    justify-content: flex-start;
    padding-right: 50%;
}

.timeline-item:nth-child(even of .timeline-item) {
    justify-content: flex-end;
    padding-left: 50%;
}

.timeline-item:nth-child(odd of .timeline-item) .timeline-card {
    margin-right: 30px;
}

.timeline-item:nth-child(even of .timeline-item) .timeline-card {
    margin-left: 30px;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }


.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    background: var(--olive-green, #8a9e82);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    border: 3px solid #c9a227;
    box-shadow: 0 0 0 2px var(--olive-green, #6b7c4f);
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-dot.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.timeline-item:hover .timeline-dot {
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow: 0 0 0 4px rgba(223, 229, 225, 0.4);
}

.timeline-card {
    background: #8a9e82;
    border-radius: 16px;
    padding: clamp(0.75rem, 3vw, 1.5rem) clamp(0.75rem, 3vw, 2.5rem);
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 2vw, 1rem);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 900px;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 10px;
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
}

.timeline-group {
    position: relative;
    width: 100%;
    margin-bottom: 100px;
}

.timeline-icon {
    width: clamp(32px, 6vw, 50px);
    height: clamp(32px, 6vw, 50px);
    background: #243322;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(0.9rem, 2.5vw, 1.5rem);
    flex-shrink: 0;
}

.timeline-content {
    text-align: left;
    transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateX(5px);
}


.timeline-content h3 {
    margin-bottom: 4px;
    font-size: clamp(1rem, 2vw, 1.1rem);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #f0d98a;
    font-weight: 400;
}

.timeline-content p {
    color: #f2ede2;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin: 0;
}

/* Mobile Anpassungen */

/* HANDY – einspaltig */
@media (max-width: 768px) {

    .timeline-date-block + .timeline-item {
        margin-top: 30px;
        margin-bottom: 0.5rem;
    }

    .timeline-item {
        margin-bottom: 0.5rem;
    }
    
    .timeline-line {
        left: 20px;
    }

    .timeline-group {
        margin-bottom: 120px;
    }

    .timeline-card {
        margin-top:16px;
    }

    /* Punkt relativ zum .timeline-item (position: relative).
       Das Item hat padding-left: 36px, die Linie sitzt bei left: 20px
       der .timeline. Offset = 20px - 36px = -16px vom Item-Rand. */
    .timeline-dot {
        position: absolute;
        left: 1px;
        top: 50%;
        transform: translateX(-50%) translateY(-50%) scale(1);
    }

    .timeline-item:hover .timeline-dot {
        transform: translateX(-50%) translateY(-50%) scale(1.3);
    }

    .timeline-item:nth-child(odd of .timeline-item),
    .timeline-item:nth-child(even of .timeline-item) {
        justify-content: flex-start;
        /* Abstand vom linken Rand bis Kartenbeginn:
           Linie (20px) + halber Punkt (8px) + Gap (8px) = 36px */
        padding-left: 36px;
        padding-right: 0;
    }

    .timeline-item:nth-child(odd of .timeline-item) .timeline-card,
    .timeline-item:nth-child(even of .timeline-item) .timeline-card {
        margin-left: 8px;
        margin-right: 0;
        max-width: 100%;
    }

    .timeline-date h2 {
        font-size: 1.4rem;
        text-align: left;
        padding-left: 36px;
        left: 0;
        background: transparent;
    }
}

.hidden {
    display: none;
}

/* ============================================
   7. DRESSCODE SECTION (Elegantes Creme)
   ============================================ */

.section-dresscode {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 80px 0;
    box-sizing: border-box;
    background-image: radial-gradient(rgba(0,0,0,0.06) 1px, transparent 1px);
    background-size: 4px 4px;
    background-color: #8a9e82;
    color: #f2ede2;
}

.section-dresscode .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-dresscode h2 {
    color: #f2ede2;
    font-size: clamp(1.5rem, 6vw, 2.3rem);
}

.dresscode-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #f2ede2;
    margin-bottom: 50px;
}

.dresscode-text {
    color: #f2ede2;
    font-size: 1.3rem;
}

/* Dresscode Cards */
.dresscode-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    max-width: 760px;
    margin: 2rem auto 0;
    padding: 0 20px;
}

.dresscode-card {
    background: var(--cream);
    border: 1px solid var(--cream-dark);
    border-radius: 16px;
    padding: 2rem 1.25rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dresscode-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.dresscode-card--highlight {
    background: var(--cream);
    border-color: var(--cream-dark);
}

.dresscode-card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.dresscode-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--olive-green);
    margin-bottom: 0.6rem;
}

.dresscode-card-text {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--olive-dark);
    line-height: 1.65;
}

@media (max-width: 640px) {
    .dresscode-cards {
        grid-template-columns: 1fr;
        max-width: 420px;
    }
}

/* ============================================
   Empfehlung SECTION (Elegantes Creme)
   ============================================ */

.section-empfehlung {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 80px 0;
    background-color: #f2ede2;
    background-image: radial-gradient(rgba(0,0,0,0.06) 1px, transparent 1px);
    background-size: 4px 4px;
}

.section-empfehlung .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-empfehlung h2 {
    color: #2e3d2b;
    font-size: clamp(1.5rem, 6vw, 2.3rem);
}

.empfehlung-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #2e3d2b;
    margin-bottom: 50px;
}

.empfehlung-text {
    max-width: 900px;
    margin: 20px auto 40px auto;
    color: #2e3d2b;
    font-size: 1.3rem;
}

/* ============================================
   EMPFEHLUNGEN – Tabs
   ============================================ */

.empf-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    border-bottom: 1px solid #c8c0b0;
    margin: 0 auto 48px;
    max-width: 900px;
    padding: 0 20px;
}

.empf-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    margin-top: 0;
    padding: 14px 36px;
    font-family: 'Playfair Display', serif;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #7a8474;
    cursor: pointer;
    transition: color 0.25s, border-color 0.25s;
}

.empf-tab:hover {
    color: #2e3d2b;
}

.empf-tab.active {
    color: #2e3d2b;
    border-bottom-color: #2e3d2b;
}

/* ============================================
   EMPFEHLUNGEN – Panels & Grid
   ============================================ */

.empf-panel {
    display: none;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.empf-panel.active {
    display: block;
}

.empf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 56px;
}

/* ============================================
   EMPFEHLUNGEN – Karten
   ============================================ */

.empf-card {
    background: #ffffff;
    border: 1px solid #ddd6c6;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.empf-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.empf-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.empf-icon {
    width: 40px;
    height: 40px;
    background: #f2ede2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.empf-distance {
    font-family: 'Playfair Display', serif;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7a8b6e;
}

.empf-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: #2e3d2b;
    margin: 0;
}

.empf-card-desc {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #5a6654;
    flex: 1;
    margin: 0;
}

.empf-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.empf-tag {
    font-family: 'Playfair Display', serif;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
}

.empf-tag-green {
    background: #eaf0e6;
    color: #4a5a3f;
}

.empf-tag-gold {
    background: #f5eedc;
    color: #7a5f1a;
}

.empf-tag-terra {
    background: #f5ece9;
    color: #8b3a22;
}

/* ============================================
   EMPFEHLUNGEN – Weiterreise Banner
   ============================================ */

.empf-banner {
    background: #2e3d2b;
    border-radius: 16px;
    padding: 48px 48px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
    margin-top: 0;
    text-align: left;
}

.empf-banner-label {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    color: #9aaa8d;
    margin-bottom: 10px;
}

.empf-banner-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: #f2ede2;
    line-height: 1.2;
    margin: 0 0 14px 0;
}

.empf-banner-desc {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(242, 237, 226, 0.72);
    max-width: 480px;
    margin: 0;
}

.empf-route {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 200px;
}

.empf-route-stop {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    color: rgba(242, 237, 226, 0.85);
}

.empf-route-stop:last-child {
    border-bottom: none;
}

.empf-route-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9aaa8d;
    flex-shrink: 0;
}

/* ============================================
   EMPFEHLUNGEN – Responsive
   ============================================ */

@media (max-width: 768px) {
    .empf-tabs {
        padding: 0 10px;
    }

    .empf-tab {
        padding: 12px 18px;
        font-size: 0.75rem;
    }

    .empf-banner {
        grid-template-columns: 1fr;
        padding: 32px 24px;
    }

    .empf-route {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .empf-route-stop {
        border-bottom: none;
        font-size: 0.8rem;
        padding: 4px 0;
    }
}

/* ============================================
   8. FRAGEN/TRAUZEUGEN SECTION (Warmes Grau)
   ============================================ */

.section-fragen {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 80px 0;
    box-sizing: border-box;
    background-image: radial-gradient(rgba(0,0,0,0.06) 1px, transparent 1px);
    background-size: 4px 4px;
    background-color: #8a9e82;
    color: #f2ede2;
}

.section-fragen .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-fragen h2 {
    color: #f2ede2;
    font-size: clamp(1.5rem, 6vw, 2.3rem);
}

.fragen-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #f2ede2;
    margin-bottom: 50px;
}


.kontakt-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.kontakt-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kontakt-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.kontakt-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.25rem;
    border: 3px solid rgba(255, 255, 255, 0.4);
}

.kontakt-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.kontakt-rolle {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(242, 237, 226, 0.75);
    margin-bottom: 0.4rem;
}

.kontakt-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #f2ede2;
    margin-bottom: 1rem;
}

.kontakt-nummer {
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: #f2ede2;
    text-decoration: none;
    border-bottom: 1px dotted rgba(242, 237, 226, 0.5);
    padding-bottom: 2px;
    transition: opacity 0.2s ease;
}

.kontakt-nummer:hover {
    opacity: 0.75;
}

@media (max-width: 640px) {
    .kontakt-cards {
        grid-template-columns: 1fr;
        max-width: 320px;
    }
}

.fragen-text {
    color: #f2ede2;
    font-size: 1.3rem;
}

.section-fragen a[href^="tel"],
.fragen-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
}

.section-fragen a[href^="tel"]:hover,
.fragen-link:hover {
    opacity: 0.75;
}

/* ============================================
   9. RSVP SECTION (Oliv)
   ============================================ */

.section-rsvp {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 80px 0;
    box-sizing: border-box;
    background-image: radial-gradient(rgba(0,0,0,0.06) 1px, transparent 1px);
    background-size: 4px 4px;
    background-color: #2e3d2b;
}

.section-rsvp .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-rsvp h2 {
    color: #f2ede2;
    font-size: clamp(1.5rem, 6vw, 2.3rem);
}

/* Form Elements */
form {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

/* Inputs einheitlich */
input, select, textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 1.2rem;
    box-sizing: border-box;
    transition: all 0.2s ease;
    background: #f2ede2;
}

input:focus, select:focus, textarea:focus {
    border-color: #dfe5e1;
    box-shadow: 0 0 0 3px rgba(223, 229, 225, 0.3);
    outline: none;
}

button {
    background: #f2ede2;
    padding: 12px clamp(24px, 10vw, 80px);
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-top: 50px;
}

#submitButton.loading {
    opacity: 0.65;
    cursor: not-allowed;
    letter-spacing: 2px;
}

#submitButton:disabled {
    pointer-events: none;
}

/* Formgruppen sauber */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 1.3rem;
    color: #f2ede2;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

textarea {
    padding: 14px;
    min-height: 90px;
    line-height: 1.4;
}

#details.visible .form-group {
    opacity: 1;
    transform: translateY(0);
    margin-bottom: 30px;
}

/* Details Bereich als Grid */
#details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 40px;
    margin-top: 30px;

    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity    0.4s ease,
                transform  0.4s ease;
    padding-top: 0;
    padding-bottom: 0;
    transition-property: max-height, opacity, transform, padding;
}

#details.visible {
    max-height: 1200px; /* ausreichend groß */
    opacity: 1;
    transform: translateY(0);
    padding-top: 10px;
    padding-bottom: 10px;
}

/* GEÄNDERT: "An welchen Tagen dabei?" und "Besondere Essenswünsche?" bleiben auf Mobile nebeneinander */
@media (max-width: 768px) {
    #details {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px 16px;
    }

    /* Label-Schriftgröße reduzieren damit kein Umbruch */
    .form-group label {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }

    /* Tage-Checkboxen nebeneinander statt untereinander */
    .checkbox-container.days {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Label umbricht auf 2 Zeilen */
    .checkbox-group label:first-child {
        white-space: normal;
        max-width: 160px;
    }

    .checkbox-group:last-of-type > label {
        width: 160px;
        text-align: left;
        align-self: flex-end;
    }

    .checkbox-container.food {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .checkbox-container.food .checkbox-item {
        width: 100%;
        justify-content: flex-start;
    }

    .food-group {
        justify-self: stretch;
        align-items: flex-start;
    }

    .food-group > label:first-child {
        width: 100%;
        text-align: left;
    }

    .guests-group {
        width: 100%;
        box-sizing: border-box;
        justify-self: stretch;
    }

    .guests-group label {
        white-space: nowrap;
        font-size: 0.95rem;
        letter-spacing: 0.5px;
    }

    .guests-group input {
        width: 100%;
    }
}

/* Kommentar soll über beide Spalten gehen */
.form-group:last-child {
    grid-column: span 2;
}

.full-width {
    grid-column: span 2;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
}

/* Text für Checkboxen */
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
    text-align: left;
    font-size: 1.3rem;
    position: relative;
    margin-bottom: 16px;
}

.checkbox-item input[type="checkbox"] {
    appearance: none; /* alle Standardstile entfernen */
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 30px;
    border: 2px solid #dfe5e1;
    border-radius: 6px;
    background-color:#f2ede2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-item input[type="checkbox"]:hover {
    box-shadow: 0 0 8px rgba(255, 217, 0, 0.6);
    transform: scale(1.1);
}

.checkbox-item input[type="checkbox"]:checked + span::before {
    content: "❤"; /* Herzsymbol */
    color: #dd6969; /* gold */
    position: absolute;
    font-size: 30px;
    left: 0.2%;
    top: 50%;
    transform: translate(0, -50%);
    transition: all 0.3s ease;
}

.checkbox-item span {
    flex: 1;
}

/* Gleiche Höhe für Tage & Essen */
.days-group,
.food-group {
    min-height: 220px;
}


.choice-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 30px 0 40px 0;
}

.choice-card {
    background: #f2ede2;
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}


.choice-icon {
    width: 56px;
    height: 56px;
    background: #2e3d2b;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-bottom: 4px;
}

.choice-card h3 {
    margin: 0;
    font-size: 1.2rem;
}

.choice-card p {
    opacity: 0.6;
    font-size: 1rem;
}

#foodHint {
    grid-column: span 2;
    display: none;
    color: #b5634a;
    font-size: 0.85rem;
    margin-top: -10px;
    padding: 8px 12px;
    background: rgba(181, 99, 74, 0.08);
    border-radius: 6px;
    border-left: 3px solid #b5634a;
    transition: opacity 0.3s ease;
}

/* Hover Effekt */
.choice-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.08);
}

/* Aktive Auswahl */
.choice-card.active {
    border: 2px solid #dfe5e1;
    box-shadow: 0 0 20px rgba(223, 229, 225, 0.6);
    transform: translateY(-6px);
}

/* Mobile */
@media (max-width: 768px) {
    .choice-cards {
        grid-template-columns: 1fr;
    }
}

/* Linke und rechte Spalten */
.floating-left,
.floating-right {
    position: fixed;
    top: 0;
    width: 300px; /* Breite der Animationszone */
    height: 100%;
    pointer-events: none; /* klickbar bleiben */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 0;
}

.floating-left {
    left: 0;
}

.floating-right {
    right: 0;
}

/* Schwebende Symbole */
.floating-left span,
.floating-right span {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.6;
    animation: floatSide linear infinite;
}

/* Keyframes: von unten nach oben */
@keyframes floatSide {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    20% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

.section-divider {
    width: 100%;
    height: 3px;
    margin: -1px 0;
    opacity: 0.8;
    animation: pulseGlow 4s ease-in-out infinite;
    background-color:ivory
}

@keyframes pulseGlow {
    0%,100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* FAQ Section */
.section-faq {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 80px 0;
    box-sizing: border-box;
    background-image: radial-gradient(rgba(0,0,0,0.06) 1px, transparent 1px);
    background-size: 4px 4px;
    background-color: #f2ede2;
    color: #2e3d2b;
}

.section-faq h2 {
    color: #2e3d2b;
    font-size: clamp(1.5rem, 6vw, 2.3rem);
    padding: 0 20px;
}

.faq-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #2e3d2b;
    margin-bottom: 50px;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-item {
    background: white;
    border-radius: 16px;
    margin-bottom: 3rem;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s;
}

.faq-item:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.faq-trigger {
    width: 100%;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    text-align: left;
    transition: background 0.3s;
    margin-top: 0;
}

.faq-trigger:hover {
    background: rgba(107,124,92,0.03);
}

.faq-icon {
    width: 45px;
    height: 45px;
    background: var(--cream);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.faq-question {
    flex: 1;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.faq-arrow {
    width: 24px;
    height: 24px;
    color: var(--olive-green);
    transition: transform 0.3s ease;
}

.faq-arrow svg {
    width: 100%;
    height: 100%;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

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

.faq-item.active .faq-content {
    max-height: 1000px;
}

.faq-answer {
    padding: 0 2rem 1.5rem 5.5rem;
    color: #2e3d2b;
}

.faq-answer p {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #2e3d2b;
    line-height: 1.7;
}

@media (max-width: 640px) {
    .faq-answer {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }
}

.food-number-input {
    width: 38px !important;
    height: 30px;
    text-align: center;
    padding: 0 4px;
    border-radius: 6px;
    flex-shrink: 0;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */

.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 16px 28px;
    border-radius: 50px;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    letter-spacing: 0.5px;
    color: white;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    max-width: 90vw;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.toast--success {
    background: linear-gradient(135deg, #5a6b4f, #7a8b6e);
}

.toast--error {
    background: linear-gradient(135deg, #9b3a2a, #b5634a);
}

.toast--info {
    background: linear-gradient(135deg, #2e3d2b, #4a5a3f);
}

/* ============================================
   RSVP BESTÄTIGUNGSKARTE
   ============================================ */

.rsvp-confirmation {
    margin: 40px auto 0;
    max-width: 560px;
    background: linear-gradient(135deg, #2e3d2b 0%, #4a5a3f 100%);
    border-radius: 24px;
    padding: 56px 40px;
    text-align: center;
    opacity: 0;
    transform: translateY(24px) scale(0.97);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(46, 61, 43, 0.35);
}

.rsvp-confirmation--visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.rsvp-confirmation-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: pulse 3s ease-in-out infinite;
}

.rsvp-confirmation-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #f5f1e8;
    margin-bottom: 16px;
    line-height: 1.3;
}

.rsvp-confirmation-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: rgba(245, 241, 232, 0.85);
    margin-bottom: 10px;
    line-height: 1.6;
}

.rsvp-confirmation-reset {
    background: transparent;
    border: 1px solid rgba(245, 241, 232, 0.35);
    color: rgba(245, 241, 232, 0.6);
    font-family: 'Playfair Display', serif;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    padding: 10px 24px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rsvp-confirmation-reset:hover {
    border-color: rgba(245, 241, 232, 0.7);
    color: rgba(245, 241, 232, 0.9);
    background: rgba(245, 241, 232, 0.08);
}

@media (max-width: 768px) {
    .rsvp-confirmation {
        padding: 40px 24px;
    }

    .rsvp-confirmation-title {
        font-size: 1.6rem;
    }
}


/* ============================================
   MOBILE TYPOGRAFIE & LAYOUT FIXES
   ============================================ */

@media (max-width: 768px) {

    /* Schriftgrößen h2 – alle Sections */
    .countdown-section h2,
    .section-location h2,
    .section-ablauf h2,
    .section-dresscode h2,
    .section-empfehlung h2,
    .section-fragen h2,
    .section-rsvp h2,
    .section-faq h2 {
        font-size: clamp(1.5rem, 6vw, 2.3rem);
    }

    /* Hero Divider – fixe Breite aufheben */
    .hero-divider {
        width: 80%;
        max-width: 300px;
    }
}

.section-photo {
    width: 100%;
    height: 400px;        /* Höhe nach Wunsch anpassen */
    overflow: hidden;
    position: relative;
}

.section-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;    /* Bild füllt den Bereich aus, wird zugeschnitten */
    object-position: 50% 75%; /* welcher Teil des Bildes sichtbar ist */
}

.section-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.section-photo-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 14vw, 5rem);   /* gleiche Größe wie "Louisa & Alex" */
    color: white;
    text-shadow: 0 4px 30px rgba(0,0,0,0.4);
    white-space: nowrap;
    pointer-events: none;
    font-weight: 700;
    z-index: 2;
}

@media (max-width: 768px) {
    .section-photo {
        height: 300px;
    }

    .section-photo img {
        width:100%;
        height: 300px;
        object-fit: cover;
        object-position: 55% 75%;
    }

    .section-photo-text {
        font-size: clamp(1.8rem, 8vw, 3rem);
        white-space: normal;        /* Zeilenumbruch erlauben */
        text-align: center;
        width: 90%;
    }
}