:root {
    /* --- BEMBEL PALETTE --- */
    --color-primary: #003380;       /* Dunkles Bembel-Blau */
    --color-primary-dark: #002255;
    
    --color-secondary: #E6D7B9;     /* Steingut Beige */
    --color-secondary-light: #F7F3EB; 
    
    --color-accent: #D48C00;        /* Alter Schoppen (Orange) */
    --color-accent-hover: #AA7000;
    
    --color-highlight: #FFC300;     /* Süßer Gold */
    
    --text-dark: #000000;           /* Standardtexte jetzt in Schwarz */
    --text-muted: #444444;
    --bg-body: #FAFAF5;             
    
    /* --- UI --- */
    --shadow-card: 0 10px 40px rgba(0, 51, 128, 0.08);
    --radius-lg: 12px;
    --radius-btn: 50px;
}

/* --- RESET & BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    width: 100%;
    overflow-x: hidden; /* Verhindert horizontales Scrollen */
    position: relative; /* Wichtig für absolute Elemente */
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.6;
    font-weight: 300;
}

h1, h2, h3 { font-family: var(--font-serif); font-weight: 700; line-height: 1.2; }
a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }

/* --- TYPOGRAPHY --- */
.headline {
    font-size: 2.5rem;
    color: var(--color-accent); /* Überschriften in Alter Schoppen */
    margin-bottom: 1rem;
}

.headline-light {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-dark); /* Texte in Bembel-Blau */
    max-width: 700px;
    margin: 0 auto 2rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.9rem;
    color: var(--color-highlight);
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.text-accent { color: var(--color-accent); }
.italic { font-style: italic; }
.small { font-size: 0.9rem; }

/* --- LAYOUT UTILS --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 40px; }
.mt-50 { margin-top: 50px; }

section { padding: 100px 0; }
.bg-light { background-color: var(--bg-body); }
.bg-secondary { background-color: var(--color-secondary-light); }
.bg-primary { background-color: var(--color-secondary-light); }

/* --- NAVIGATION --- */
nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    border-bottom: 4px solid var(--color-accent);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent); /* S&T in Alter Schoppen */
    border: 2px solid var(--color-accent); /* Rahmen in Alter Schoppen */
    padding: 5px 10px;
    border-radius: 4px;
}

.nav-links { display: flex; gap: 30px; }

.nav-links a {
    color: var(--color-accent); /* Navigation in Alter Schoppen */
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-accent);
    transition: width 0.4s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover, .nav-links a.active { color: var(--color-accent); }
.mobile-menu-btn { display: none; cursor: pointer; font-size: 1.5rem; color: var(--color-primary); }

/* --- HERO HEADER --- */
header {
    height: 85vh; /* Standard für Startseite (Desktop) */
    background: url('../img/hero.jpg') center/cover no-repeat fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

/* Kompakter Header für Unterseiten */
header.header-compact {
    height: 50vh;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
}

.hero-content { position: relative; z-index: 1; padding: 20px; color: white; }

header h1 {
    font-size: 6rem;
    margin: 0;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.date { font-size: 1.2rem; letter-spacing: 2px; margin-bottom: 40px; opacity: 1; font-weight: 300; }

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: var(--radius-btn);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.btn-block { width: 100%; font-size: 1.1rem; }

/* --- ORNAMENT --- */
.ornament { font-size: 2rem; color: var(--color-secondary); margin-top: 20px; }

/* --- COUNTDOWN --- */
#countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.time-box {
    background: white;
    padding: 20px;
    border-radius: var(--radius-lg);
    min-width: 120px;
    box-shadow: var(--shadow-card);
    border-bottom: 4px solid var(--color-accent);
}

.time-box span {
    display: block;
    font-size: 3rem;
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--color-accent); /* Countdown in Alter Schoppen */
    line-height: 1.1;
}

.time-box label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--text-muted);
}

/* --- CARDS --- */
.feature-card, .info-card-flat, .time-box, .rsvp-box {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: 0.3s;
    border: none;
    border-bottom: 5px solid var(--color-secondary);
    text-align: center;
}

.feature-card:hover, .info-card-flat:hover, .time-box:hover {
    transform: translateY(-10px);
    border-color: var(--color-accent);
}

.time-box {
    padding: 20px;
    min-width: 120px;
    border-bottom-width: 4px;
}

.info-card-flat {
    border-left: none; /* Einheitlich mit den anderen Karten */
    text-align: left;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: var(--color-secondary-light);
    color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.info-card-flat h3 {
    margin-top: 0;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--color-accent); /* Alter Schoppen für besseren Kontrast */
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

/* --- RSVP FORM --- */
.rsvp-box {
    background: white;
    padding: 60px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0,0,0,0.05);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 25px; text-align: left; }

label { display: block; margin-bottom: 8px; font-weight: 700; color: var(--color-primary); font-size: 0.9rem; }

input, select, textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #EEE;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(0, 71, 171, 0.1);
}

.radio-options { display: flex; gap: 20px; }
.radio-label { display: flex; align-items: center; gap: 8px; font-weight: 400; color: var(--text-dark); cursor: pointer; }

/* --- FOOTER --- */
footer {
    background: var(--color-accent); /* Alter Schoppen für den Footer */
    color: white;
    padding: 30px 0; /* Weniger hoch */
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem; /* Etwas kleiner */
    font-weight: 700;
    margin-bottom: 10px;
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    /* Header Höhe anpassen */
    header {
        height: 85vh; /* Etwas weniger als voll, damit Content sichtbar wird */
        min-height: auto; 
        background-attachment: scroll; 
    }
    
    nav {
        min-height: 80px; /* Höhere Nav-Bar für mehr Luft */
        display: flex;
        align-items: center;
    }

    header h1 { font-size: 2.5rem; line-height: 1.1; word-break: break-word; }
    .eyebrow { font-size: 0.8rem; margin-bottom: 5px; }
    .date { font-size: 0.9rem; margin-bottom: 20px; }
    
    /* Mobile Navigation (Optimiert: Sauber versteckt) */
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 80%;
        max-width: 300px;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        padding: 80px 30px;
        z-index: 2000;
        gap: 20px;
        align-items: flex-start;
        
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.4s ease, visibility 0s linear 0.4s;
    }
    
    .nav-links.active {
        transform: translateX(0);
        visibility: visible;
        transition: transform 0.4s ease, visibility 0s linear 0s;
    }
    
    .mobile-menu-btn { 
        display: block; 
        z-index: 2001;
        position: relative;
        font-size: 1.8rem;
    }
    
    /* Layout Anpassungen (Breiten-Fix für Horizontales Scrollen) */
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    .container, .container-narrow, .nav-container { 
        width: 100%; 
        max-width: 100%; /* Sicherstellen, dass nichts breiter als der Screen ist */
        padding: 10px 20px; /* Vertikaler Abstand auf 10px reduziert */
        box-sizing: border-box; /* Doppelt hält besser */
    }
    
    section { padding: 50px 0; width: 100%; }
    
    /* Grid Mobile */
    .grid-3, .grid-2 { 
        display: flex; /* Flex statt Grid verhindert oft Overflow-Probleme bei min-width */
        flex-direction: column;
        gap: 30px; 
        width: 100%;
    }
    
    .form-grid { display: flex; flex-direction: column; gap: 20px; }
    
    /* Countdown Mobile */
    #countdown { 
        display: flex;
        flex-wrap: wrap; 
        gap: 10px; 
        margin-top: 30px;
        justify-content: center;
        width: 100%; /* Breite begrenzen */
    }
    
    .time-box {
        min-width: 70px;
        padding: 15px 5px;
        flex: 1 1 40%; 
        width: auto; /* Breite automatisch */
    }
    
    .time-box span { font-size: 1.8rem; }
    .time-box label { font-size: 0.6rem; }
    
    /* Info Cards */
    .info-card-flat, .feature-card { padding: 25px 20px; width: 100%; }
    .icon-circle { width: 60px; height: 60px; font-size: 1.5rem; }
    
    /* Footer */
    .footer-logo { font-size: 1.2rem; }
    
    /* Map Mobile */
    #map { height: 400px !important; }
}

/* --- ANIMATION --- */
.reveal { opacity: 0; transform: translateY(30px); transition: 1s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Global Overlay (Hidden by Default) */
.menu-overlay { display: none; }
