/*
 * Vollständige CSS für Emis Geburtstagseinladung - Dark Mode Design
 * Elegant, augenschonend und modern mit Hintergrundbild.
 */

/* Grundlegende Variablen (Farbpalette & Schriftarten) */
:root {
    /* Dark Mode Farbpalette */
    --dm-background-primary: #1a1a2e; /* Sehr dunkler Haupt-Hintergrund (wird jetzt teilweise vom Bild überdeckt) */
    --dm-background-secondary: #21213e; /* Dunklerer Hintergrund für Sektionen */
    --dm-surface-color: #2c2c4a; /* Farbe für Boxen und Container-Oberfläche */
    --dm-text-light: #e0e0f0;    /* Heller Text */
    --dm-text-medium: #b0b0d0;   /* Mittlerer Text für weniger wichtige Infos */
    --dm-border-color: #3a3a60;  /* Dunkle, subtile Rahmenfarbe */
    --dm-shadow-color: rgba(0, 0, 0, 0.4); /* Dunklerer Schatten */

    /* Akzentfarben (bleiben lebendig, eventuell leicht angepasst für Dunkelheit) */
    --accent-orange: #ff9800;   /* Lebhaftes Orange */
    --accent-blue: #42a5f5;     /* Helles Blau */
    --accent-green: #66bb6a;    /* Helles Grün für WhatsApp */
    --accent-yellow: #ffee58;   /* Helles Gelb für zusätzliche Akzente */

    /* Schriftarten */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* Allgemeine Body-Einstellungen - Dark Mode Hintergrund mit Bild */
body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--dm-text-light);
    background-color: var(--dm-background-primary); /* Fallback Farbe, falls Bild nicht lädt */
    background-image: url('images/darkmode-background.jpg'); /* Dein Hintergrundbild */
    background-size: cover; /* Bild deckt den gesamten Bereich ab */
    background-position: center center; /* Bild zentrieren */
    background-attachment: fixed; /* Hintergrundbild bleibt beim Scrollen fixiert */
    background-repeat: no-repeat; /* Bild nicht wiederholen */
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Haupt-Container */
.container {
    max-width: 1000px;
    margin: 30px auto;
    background-color: var(--dm-surface-color); /* Dunkle Oberfläche für den Container */
    box-shadow: 0 5px 20px var(--dm-shadow-color);
    border-radius: 10px;
    overflow: hidden;
    position: relative; /* Wichtig für Z-Index, falls nötig */
    z-index: 1; /* Stellt sicher, dass der Container über dem Body-Hintergrund liegt */
}

/* Header-Bereich */
header {
    text-align: center;
    padding: 50px 20px 20px 20px;
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-blue) 100%);
    color: var(--dm-text-light);
    position: relative;
}

header h1 {
    font-family: var(--font-heading);
    font-size: 3.8em;
    margin: 0 0 10px 0;
    letter-spacing: 1px;
    font-weight: 800;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.4);
}

header h2 {
    font-size: 2em;
    margin: 0;
    font-weight: 500;
    opacity: 0.9;
}

/* Sektionen */
section {
    padding: 35px 45px;
    border-bottom: 1px solid var(--dm-border-color);
    background-color: var(--dm-background-secondary);
}

section:nth-of-type(even) {
     background-color: var(--dm-surface-color);
}

section:last-of-type {
    border-bottom: none;
}

/* Überschriften der Sektionen */
h3 {
    font-family: var(--font-heading);
    font-size: 2.4em;
    color: var(--accent-blue);
    margin-bottom: 30px;
    text-align: left;
    font-weight: 700;
    position: relative;
    padding-left: 15px;
}

h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 80%;
    background-color: var(--accent-orange);
    border-radius: 4px;
}

/* Absatz-Text */
p {
    margin-bottom: 1em;
    color: var(--dm-text-medium);
}

/* Hervorgehobene Boxen (z.B. für Datum & Ort) */
.highlight-box {
    background-color: var(--dm-surface-color);
    border: 1px solid var(--dm-border-color);
    border-left: 8px solid var(--accent-orange);
    border-radius: 8px;
    padding: 25px 35px;
    margin: 30px 0;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.highlight-box p {
    margin: 10px 0;
    font-size: 1.1em;
    color: var(--dm-text-light);
}

.highlight-box strong {
    color: var(--accent-blue);
    font-weight: 700;
}

/* Allgemeine Button-Styling */
.btn {
    display: inline-block;
    background-color: var(--accent-blue);
    color: var(--dm-text-light);
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    margin-top: 25px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.btn:hover {
    background-color: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Styling für Links (außer Buttons) */
a {
    color: var(--accent-blue);
    text-decoration: underline;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-orange);
    text-decoration: none;
}

/* Footer-Bereich */
footer {
    text-align: center;
    padding: 45px 20px;
    margin-top: 0;
    color: var(--dm-text-medium);
    background-color: var(--dm-surface-color);
    border-top: 1px solid var(--dm-border-color);
    font-size: 1em;
}

/* --- Bild-Styling --- */

.header-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 25px;
    border-radius: 8px 8px 0 0;
}

.section-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 25px auto 35px auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.image-gallery {
    text-align: center;
    margin-bottom: 30px;
}

.section-separator {
    text-align: center;
    margin: 50px 0;
}

.separator-img {
    max-width: 85%;
    height: auto;
    display: inline-block;
    opacity: 0.7;
}

/* --- WhatsApp-Button Styling --- */

.whatsapp-btn-container {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
}

.whatsapp-btn {
    background-color: var(--accent-green);
    color: white;
    padding: 18px 40px;
    font-size: 1.3em;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border-radius: 50px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
}

.whatsapp-btn:hover {
    background-color: #5cb85c;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.whatsapp-btn i {
    font-size: 1.8em;
}

.whatsapp-hint {
    text-align: center;
    font-size: 1em;
    color: var(--dm-text-medium);
    margin-top: 15px;
}

/* --- Responsive Design Anpassungen --- */

@media (max-width: 768px) {
    .container {
        margin: 20px;
    }

    section {
        padding: 30px 30px;
    }

    header h1 {
        font-size: 3em;
    }

    header h2 {
        font-size: 1.6em;
    }

    h3 {
        font-size: 2em;
    }
    h3::before {
        width: 6px;
        height: 70%;
    }

    .btn {
        padding: 12px 25px;
        font-size: 1em;
    }

    .header-banner-img {
        margin-bottom: 20px;
    }
    .section-image {
        margin: 20px auto 25px auto;
    }
    .section-separator {
        margin: 40px 0;
    }
    .separator-img {
        max-width: 90%;
    }
    .whatsapp-btn {
        padding: 15px 30px;
        font-size: 1.2em;
        gap: 8px;
    }
    .whatsapp-btn i {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    section {
        padding: 25px 20px;
    }
    header h1 {
        font-size: 2.5em;
    }

    header h2 {
        font-size: 1.3em;
    }

    h3 {
        font-size: 1.8em;
        padding-left: 10px;
    }
    h3::before {
        width: 5px;
        height: 60%;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .whatsapp-btn {
        width: calc(100% - 40px);
        max-width: 300px;
        padding: 12px 20px;
        font-size: 1.1em;
        gap: 5px;
    }
    .whatsapp-btn i {
        font-size: 1.3em;
    }
}