/* ============================================
   Hochzeits-Website: Claudia & Chris
   Boho Gartenhochzeit — Präsenter Rahmen
   ============================================ */

/* --- Boho Farbpalette --- */
:root {
    --terracotta: #C07856;
    --terracotta-dark: #A0614A;
    --burnt-sienna: #B5654A;
    --dusty-rose: #C9918B;
    --sage: #8FA87A;
    --olive: #7A8B5C;
    --cream: #FDF6EE;
    --warm-sand: #E8DCC8;
    --pampas: #F0E6D8;
    --mocha: #6B4F3E;
    --text-dark: #4A3728;
    --gold: #C9A96E;
    --gold-light: #D4BA82;
    --gold-muted: rgba(201, 169, 110, 0.5);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', 'Segoe UI', sans-serif;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--mocha);
    overflow-x: hidden;
}

/* === Hintergrundbild als eigenes Element (für CSS filter) === */
.bg-image {
    position: fixed;
    inset: 0;
    background: url('../images/bg/background.jpg') no-repeat center center;
    background-size: cover;
    /* ── Boho-Farbfilter ──
       sepia:       warmer goldbrauner Grundton
       saturate:    gedämpft/erdig
       brightness:  leicht abgedunkelt für Weichheit
       hue-rotate:  verschiebt Sepia Richtung Terracotta
       contrast:    weicher, verträumter Look
    */
    filter:
        sepia(0.40)
        saturate(0.75)
        brightness(0.85)
        hue-rotate(-8deg)
        contrast(0.95);
    z-index: 0;
}

/* === Warmes Boho-Overlay === */
.bg-overlay {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(
            160deg,
            rgba(192, 120, 86, 0.30) 0%,
            rgba(107, 79, 62, 0.25) 40%,
            rgba(143, 168, 122, 0.15) 100%
        );
    z-index: 1;
}

/* ====================================================
   DEKORATIVER HOCHZEITSRAHMEN (ganzseitig, präsent)
   ==================================================== */
.wedding-frame {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

/* Äußerer Goldrahmen */
.frame-outer {
    position: absolute;
    inset: 14px;
    border: 1.5px solid var(--gold);
    border-radius: 6px;
}

/* Innerer Doppelrahmen */
.frame-inner {
    position: absolute;
    inset: 22px;
    border: 1px solid var(--gold-muted);
    border-radius: 4px;
}

/* --- Botanische SVG-Ecken --- */
.corner {
    position: absolute;
    width: 100px;
    height: 100px;
    color: var(--gold);
}

.corner svg {
    width: 100%;
    height: 100%;
}

.corner-tl { top: 8px; left: 8px; }
.corner-tr { top: 8px; right: 8px; }
.corner-bl { bottom: 8px; left: 8px; }
.corner-br { bottom: 8px; right: 8px; }

/* --- Obere & untere Zierleiste --- */
.frame-ornament {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 20px;
    color: var(--gold);
}

.frame-ornament svg {
    width: 100%;
    height: 100%;
}

.frame-ornament-top {
    top: 10px;
}

.frame-ornament-bottom {
    bottom: 10px;
}

/* ====================================================
   HAUPTINHALT — Content Card
   ==================================================== */
.content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 580px;
    padding: 3rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.content-card {
    background: rgba(253, 246, 238, 0.90);
    backdrop-filter: blur(16px) saturate(1.1);
    -webkit-backdrop-filter: blur(16px) saturate(1.1);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    box-shadow:
        0 12px 48px rgba(74, 55, 40, 0.25),
        0 0 0 1px rgba(201, 169, 110, 0.20);
    text-align: center;
    width: 100%;
    position: relative;
    border: 1.5px solid var(--gold);
}

/* Innere Bordüre — klassischer Hochzeits-Doppelrahmen */
.card-border {
    position: absolute;
    inset: 8px;
    border: 1px solid var(--gold-muted);
    border-radius: 8px;
    pointer-events: none;
}

/* --- Header --- */
.header {
    margin-bottom: 2rem;
}

.subtitle {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 0.4rem;
}

.names {
    font-family: 'Great Vibes', 'Playfair Display', Georgia, serif;
    font-size: 3.2rem;
    font-weight: 400;
    color: var(--mocha);
    line-height: 1.3;
}

.ampersand {
    color: var(--terracotta);
    display: inline-block;
    margin: 0 0.1em;
}

/* --- Divider (SVG botanisch) --- */
.divider {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.divider-svg {
    width: 160px;
    height: 24px;
    color: var(--gold);
}

/* --- Countdown --- */
.countdown {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-circle {
    width: 80px;
    height: 80px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(253, 246, 238, 0.5);
}

.countdown-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--mocha);
    line-height: 1;
    transition: transform 0.3s ease;
}

.countdown-number.pulse {
    animation: pulse 0.6s ease;
}

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

.countdown-label {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-top: 0.5rem;
}

.countdown-separator {
    font-size: 1.5rem;
    color: var(--gold);
    align-self: center;
    padding-bottom: 1.2rem;
    opacity: 0.7;
}

/* --- Celebration (nach Countdown) --- */
.celebration {
    margin-bottom: 2rem;
}

.celebration-text {
    font-family: 'Great Vibes', 'Playfair Display', Georgia, serif;
    font-size: 2.2rem;
    color: var(--mocha);
}

.hidden {
    display: none !important;
}

/* --- Tägliches Bild --- */
.daily-image {
    margin-bottom: 2rem;
}

.daily-image-frame {
    border: 2px solid var(--warm-sand);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(107, 79, 62, 0.15);
    max-width: 100%;
    background: var(--pampas);
    position: relative;
}

.daily-image-frame img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 400px;
    object-fit: cover;
}

/* --- Footer --- */
.footer {
    margin-top: 0.5rem;
}

.footer-divider {
    display: flex;
    justify-content: center;
    margin-bottom: 0.8rem;
}

.footer-divider svg {
    width: 100px;
    height: 10px;
    color: var(--gold);
}

.date-location {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--terracotta);
}

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 480px) {
    .content {
        padding: 2.5rem 1rem;
    }

    .content-card {
        padding: 2rem 1.2rem;
    }

    .card-border {
        inset: 5px;
    }

    .names {
        font-size: 2.4rem;
    }

    .countdown-circle {
        width: 62px;
        height: 62px;
    }

    .countdown-number {
        font-size: 1.7rem;
    }

    .countdown-item {
        min-width: 50px;
    }

    .countdown-separator {
        font-size: 1.2rem;
        padding-bottom: 0.8rem;
    }

    .corner {
        width: 70px;
        height: 70px;
    }

    .frame-outer {
        inset: 8px;
    }

    .frame-inner {
        inset: 14px;
    }

    .frame-ornament {
        width: 120px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .names {
        font-size: 2.8rem;
    }

    .countdown-circle {
        width: 72px;
        height: 72px;
    }

    .countdown-number {
        font-size: 2rem;
    }
}
