:root {
    --cream: #f8f4ef;
    --sage: #6b7d6a;
    --rose: #c9a0a0;
    --gold: #b89968;
    --text: #3a3a3a;
    --shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    color: var(--sage);
}

.script {
    font-family: 'Great Vibes', cursive;
    color: var(--rose);
    font-size: 2rem;
}

/* Navigation */
nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px 40px;
    background: var(--cream);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: var(--shadow);
}
nav a {
    text-decoration: none;
    color: var(--sage);
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}
nav a:hover { color: var(--rose); }

/* Header / Hero */
header {
    min-height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.25)),
                url('images/hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}
.hero-overlay h1 {
    font-size: 5rem;
    color: #fff;
    margin: 10px 0;
}
.hero-overlay .script { color: #fff; }
.hero-overlay .date {
	font-size: 2rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-top: 15px;
}

/* Quick Info Bar */
.quick-info-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 30px 40px;
    background: #fff;
    box-shadow: var(--shadow);
    text-align: center;
}
.quick-info-bar div { display: flex; flex-direction: column; }
.quick-info-bar strong {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 6px;
}

/* Countdown Bereich */
.countdown {
    text-align: center;
    padding: 20px 20px 10px 20px;
    margin-bottom: 0px; /* Steuert den Abstand zu den Karten darunter */
}

.countdown h2 { 
    font-size: 2rem; 
    margin-top: 25px;    /* Schöner Abstand zwischen den 4 Counter-Boxen und dem Text */
    margin-bottom: 0;    /* Der untere Abstand wird nun durch das padding der section geregelt */
}

/* Countdown Boxen (bleibt fast gleich, aber ohne störendes Margin) */
.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}
.countdown-grid div {
    background: #fff;
    padding: 25px 10px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.countdown-grid span {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    color: var(--sage);
}
.countdown-grid label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    color: var(--gold);
}

/* Main Grid */
.main-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 15px 20px 20px 20px;
    max-width: 1400px;
    margin: 0 auto;
}
.card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
	 text-align: center;
	 /* Flexbox für vertikale Anordnung */
    display: flex;
    flex-direction: column;
}
.card h3 { margin-bottom: 15px; font-size: 1.5rem; }
.card ul { list-style: none; }
.card li { padding: 6px 0; border-bottom: 1px dashed #eee; }

.btn {
    display: inline-block;
    margin-top: auto;      /* schiebt den Button ganz nach unten */
    align-self: center;    /* optional – zentriert den Button nochmal sicher */
    padding: 10px 25px;
    background: var(--rose);
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    cursor: pointer;
}
.btn:hover { background: var(--sage); }

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    background: var(--sage);
    color: #fff;
    font-style: italic;
}
footer p + p { margin-top: 10px; font-style: normal; font-size: 0.8rem; }

/* Login page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(248,244,239,0.85), rgba(248,244,239,0.85)),
                url('hero.jpg') center/cover no-repeat;
}
.login-box {
    background: #fff;
    padding: 50px 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 400px;
    width: 90%;
}
.login-box h1 { font-size: 2.5rem; margin: 10px 0 20px; }
.login-box input {
    width: 100%;
    padding: 12px;
    margin: 20px 0 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}
.login-box .error {
    color: #b34747;
    background: #fbeaea;
    padding: 10px;
    border-radius: 4px;
    margin-top: 15px;
    font-size: 0.9rem;
}
.nav-links {
    display: flex;
    justify-content: center;
    gap: 40px;
}

/* Responsive */
@media(max-width: 900px) {
    .main-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    nav { padding: 20px; }
}

@media(max-width: 600px) {
    .main-grid { grid-template-columns: 1fr; }
    .quick-info-bar { grid-template-columns: 1fr; padding: 15px; }
    .countdown-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-overlay h1 { font-size: 3.5rem; }
}

/* ========== Zusätzliche mobile Optimierungen ========== */

/* Timeline (Ablauf-Seite) */
@media(max-width: 600px) {
    .timeline-item {
        flex-direction: column;   /* Uhrzeit über dem Text */
        gap: 10px;
    }
    .timeline-item .time {
        min-width: auto;          /* Keine Mindestbreite erzwingen */
        font-size: 1.8rem;
    }
}

/* Location-Seite: Zweispalter wird einspaltig */
@media(max-width: 768px) {
    .location-content {
        grid-template-columns: 1fr;  /* Bereits definiert, aber zur Sicherheit */
        gap: 25px;
    }
}

/* Hero-Größe für sehr kleine Bildschirme (optional) */
@media(max-width: 400px) {
    .hero-overlay h1 {
        font-size: 2.8rem;
    }
    .hero-overlay .date {
        font-size: 1.5rem;
        letter-spacing: 3px;
    }
}

/* ========== Hamburger-Menü ========== */

/* Standard: Button versteckt, Links normal anzeigen */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--sage);
    padding: 5px 10px;
    line-height: 1;
}

/* Mobile Ansicht */
@media(max-width: 600px) {
    /* Hamburger sichtbar machen */
    .hamburger {
        display: block;
    }

    /* Link-Container erstmal verstecken */
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--cream);
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: var(--shadow);
        z-index: 100;
    }

    /* Sichtbar bei Klick */
    .nav-links.active {
        display: flex;
    }

    /* Navigation als Container einrichten */
    nav {
        position: relative;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        flex-wrap: wrap;
    }

    /* Links im Dropdown schön stylen */
    .nav-links a {
        padding: 15px 25px;
        border-bottom: 1px solid #eee;
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }
}

/* Container für die drei Icons */
.icon-row {
    display: flex;
    justify-content: center;  /* Zentriert die Icons horizontal */
    align-items: center;      /* Zentriert sie vertikal */
    gap: 15px;                /* Gleichmäßiger Abstand zwischen den Icons */
    flex-grow: 1;             /* WICHTIG: Drückt den Button ganz nach unten */
    margin-bottom: 20px;      /* Etwas Abstand zum Button */
}

/* Einzelnes Icon-Bild */
.mini-icon {
    width: 45px;              /* Einheitliche Größe */
    height: 45px;             /* Quadratisch, damit sie identisch aussehen */
    object-fit: contain;      /* Bild wird nicht verzerrt, sondern passt sich in das Quadrat ein */
    display: block;
}

.timeline-icon {
    /* Kreisgröße festlegen */
    width: 50px;
    height: 50px;
    
    /* Goldener Rahmen (Farbe aus deinem Design nehmen) */
    border: 1px solid var(--gold); 
    border-radius: 50%; /* Macht es rund */
    
    /* Ausrichtung perfekt in die Mitte */
    display: flex;
    justify-content: center; /* Horizontal zentriert */
    align-items: center;     /* Vertikal zentriert */
    
    /* Optional: Leichter Schatten für den 3D-Effekt wie auf deinem Bild */
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.timeline-img {
    /* Größe des Icons innerhalb des Kreises */
    width: 60%;   /* Nimm z.B. 60-70% der Kreisbreite */
    height: 60%;  /* Macht es zu einem schönen, nicht zu großen Icon */
    object-fit: contain; /* Wichtig: Verhindert Verzerrung und behält das Seitenverhältnis bei */
    display: block;
}

/* Layout für die obere Reihe (Anreise & Unterkünfte) */
.info-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 Spalten (50% / 50%) */
    gap: 20px;
    max-width: 1400px;
    margin: 30px auto 20px auto;  /* HIER: 30px Abstand nach oben hinzugefügt */
    padding: 0 20px;
}

/* Auf Handys wird aus 2 Spalten 1 Spalte */
@media(max-width: 900px) {
    .info-top-row {
        grid-template-columns: 1fr;
    }
}

/* Styles für die Einträge der Unterkünfte (damit sie wie im vorherigen Entwurf aussehen) */
.accommodation-intro {
    margin-bottom: 15px;
    font-style: italic;
    color: var(--text);
}
.accommodation-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.accommodation-item {
    background: var(--cream);
    padding: 15px 18px;
    border-radius: 6px;
    border-left: 3px solid var(--gold);
}
.accommodation-item h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--sage);
    margin: 0 0 2px 0;
}
.accommodation-item .accent-text {
    font-size: 0.85rem;
    color: var(--rose);
    margin-bottom: 2px;
}
.accommodation-item p {
    margin: 0;
    font-size: 0.9rem;
}
.accommodation-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.accommodation-item a {
    font-size: 0.8rem;
    color: var(--gold);
    text-decoration: underline;
}
.accommodation-item a:hover {
    color: var(--sage);
    text-decoration: none;
}


