/* * Elegantes Hochzeits-Styling - PASTEL EDITION
 * Palette: Salbeigrün (#A9B388), Sand/Gold (#D4A373), Dusty Rose (#E8B4B8)
 * Hintergrund: Soft Cream (#FDFBF9)
 */

@import url('https://fonts.googleapis.com/css?family=Playfair+Display:400,700&display=swap'); 
@import url('https://fonts.googleapis.com/css?family=Roboto:300,400,700&display=swap'); 

/* ======================================= */
/* === GLOBALE & LAYOUT STILE === */
/* ======================================= */

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #FDFBF9; /* Cremiger Hintergrund */
    color: #5D5D5D; /* Weicheres Grau für edlen Look */
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    /* PLATZ FÜR DEN FIXIERTEN HEADER (Höhe des Headers + Abstand) */
    padding-top: 90px; 
}

main {
    flex: 1; /* Schiebt den Footer automatisch nach unten */
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif; 
    color: #A9B388; /* Salbeigrün */
    text-align: center;
    font-weight: 700;
}
/* ======================================= */
/* === FIXIERTER HEADER & NAVIGATION === */
/* ======================================= */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98); /* Etwas deckender für bessere Lesbarkeit */
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(169, 179, 136, 0.1); /* Sanfter salbeigrüner Schatten */
    z-index: 2000;
    backdrop-filter: blur(5px); /* Edler Glaseffekt */
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center; /* Vertikal zentrieren */
    flex-wrap: wrap;
    gap: 5px; /* Kleinerer Abstand für Mobile */
    padding: 0 15px;
}

nav a {
    color: #6B7A4B; /* Dunkleres Salbeigrün für besseren Kontrast */
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 50px; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.9em;
    letter-spacing: 0.3px;
}

nav a:hover {
    background-color: #F1F4E8; /* Helles Salbeigrün */
    color: #A9B388;
    transform: translateY(-1px);
}

/* Aktiver Link (falls du die Klasse im PHP nutzt) */
nav a.active {
    background-color: #A9B388;
    color: white !important;
}

/* Logout-Button: Dezent aber klar getrennt */
nav a[href="logout.php"] {
    color: #C5221F;
    border: 1px solid #FCE8E6;
    margin-left: 10px;
}

nav a[href="logout.php"]:hover {
    background-color: #FCE8E6;
    border-color: #F9D2CE;
}

/* Admin-Link: Unauffälliger Look */
nav a[href*="admin/"] {
    font-size: 0.75rem;
    color: #AAA;
    text-transform: uppercase;
    opacity: 0.7;
}

nav a[href*="admin/"]:hover {
    opacity: 1;
    background: transparent;
    color: #6B7A4B;
}

/* Mobile Optimierung */
@media (max-width: 768px) {
    header {
        padding: 8px 0;
    }
    nav {
        gap: 2px;
    }
    nav a {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

/* ======================================= */
/* === BUTTONS & MELDUNGEN === */
/* ======================================= */

.button, button[type="submit"] {
    display: inline-block;
    padding: 14px 35px;
    background-color: #A9B388; 
    color: white;
    text-decoration: none;
    border-radius: 50px; 
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(169, 179, 136, 0.2);
}

.button:hover, button[type="submit"]:hover {
    background-color: #8E9775;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(169, 179, 136, 0.3);
}

.success {
    background-color: #F1F4E8; 
    color: #6B7A4B;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.error {
    background-color: #FDF1F2; 
    color: #C17C82;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}

/* ======================================= */
/* === HERO SEKTION (Startseite) === */
/* ======================================= */

.hero-section {
    text-align: center;
    padding: 40px; 
    background: white;
    margin-bottom: 40px;
    border-radius: 20px; 
    box-shadow: 0 10px 30px rgba(169, 179, 136, 0.08); 
}

.hero-image-container {
    max-width: 450px; /* Von 600px auf 450px reduziert für mehr Eleganz */
    margin: 0 auto 30px auto; 
    padding: 12px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(169, 179, 136, 0.15);
    transform: rotate(-1.5deg); /* Eleganter Polaroid-Kniff */
    transition: transform 0.5s ease;
}

.hero-image-container:hover {
    transform: rotate(0deg) scale(1.02);
}

.hero-image {
    width: 100%; 
    height: auto;
    display: block; 
}

.wedding-date {
    font-family: 'Playfair Display', serif;
    font-size: 1.6em;
    color: #D4A373; /* Sand/Gold für das Datum */
    margin: 10px 0;
}

.countdown-box {
    margin: 30px auto;
    padding: 20px;
    max-width: 300px;
    border-bottom: 1px solid #F0F0F0;
}

#countdown-timer {
    font-size: 2.2em; 
    color: #A9B388;
    font-weight: 700;
}

/* --- SEKTION: WAS EUCH ERWARTET --- */
.intro-section {
    padding: 60px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header p {
    color: #8E9775;
    font-style: italic;
    margin-top: -10px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.step-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #F0F0F0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Ein subtiler farbiger Akzent oben an jeder Karte */
.step-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #A9B388, #E8B4B8);
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(169, 179, 136, 0.12);
    border-color: #A9B388;
}

.step-icon {
    font-size: 3.5em;
    margin-bottom: 20px;
    display: inline-block;
    filter: drop-shadow(0 4px 5px rgba(0,0,0,0.1));
}

.step-card h3 {
    margin-bottom: 15px;
    font-size: 1.5em;
    color: #A9B388;
}

.step-card p {
    font-size: 0.95em;
    color: #777;
    line-height: 1.6;
}

/* Mobile Optimierung */
@media (max-width: 600px) {
    .hero-image-container {
        max-width: 85%; /* Nimmt auf dem Handy etwas mehr Platz ein */
    }
}

/* ======================================= */
/* === FORMULAR STYLES (Anmeldung) === */
/* ======================================= */

.form-container {
    max-width: 650px;
    margin: 20px auto;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-container input, .form-container textarea, .form-container select {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    margin-bottom: 20px;
    border: 1px solid #EAE6E1;
    border-radius: 8px;
    background-color: #FDFBF9;
}

.form-container input:focus {
    outline: none;
    border-color: #A9B388;
}


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

.guest-input-row input:focus {
    border-color: #D4A373 !important; /* Sandfarbe bei Fokus */
    background-color: #fff !important;
    box-shadow: 0 0 8px rgba(212, 163, 115, 0.2);
    outline: none;
}
/* ======================================= */
/* === INFO-SEKTIONEN & ZEITPLAN === */
/* ======================================= */

.info-section, .gift-section, .trauzeugen-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.schedule-item {
    padding: 20px;
    border-left: 3px solid #E8B4B8; /* Dusty Rose Akzent */
    margin-bottom: 15px;
    background: #FDFBF9;
}

.schedule-item .time {
    color: #D4A373;
    font-weight: bold;
    font-size: 1.2em;
}

/* ======================================= */
/* === FOTO-GALERIE === */
/* ======================================= */

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.photo-item {
    background: white;
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.photo-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

/* ======================================= */
/* === FOOTER === */
/* ======================================= */

footer {
    background-color: #F4F1EE;
    padding: 40px 20px;
    text-align: center;
    color: #8E9775;
    border-top: 1px solid #EAE6E1;
    margin-top: 40px;
}

footer p {
    margin: 5px 0;
    font-size: 0.9em;
}

/* ======================================= */
/* === MOBILE OPTIMIERUNGEN === */
/* ======================================= */

@media (max-width: 768px) {
    body { padding-top: 120px; } /* Mehr Platz für umbrechende Nav */
    .hero-content h1 { font-size: 2.5em; }
    .form-container { padding: 20px; }
}

/* --- NEUIGKEITEN & TIMELINE --- */

.info-page-container {
    max-width: 850px;
    margin: 40px auto;
    padding: 0 20px;
}

/* News Highlight Box */
.news-highlight {
    background: #F1F4E8;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    margin-bottom: 50px;
    border: 1px solid #EAE6E1;
}

.news-badge {
    position: absolute;
    top: -15px;
    left: 20px;
    background: #A9B388;
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-content {
    font-size: 1.1rem;
    color: #6B7A4B;
    line-height: 1.6;
}

/* Timeline Layout */
.section-title {
    margin-bottom: 30px;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #F1F4E8;
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 14px;
    top: 5px;
    width: 14px;
    height: 14px;
    background: #A9B388;
    border-radius: 50%;
    border: 3px solid #FDFBF9;
}

.timeline-time {
    font-weight: bold;
    color: #D4A373;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.timeline-content h3 {
    text-align: left;
    margin: 0 0 5px 0;
    font-size: 1.3rem;
}

.location-address {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #8E9775;
    font-style: italic;
}

/* Zusatzinfos */
.additional-info {
    margin-top: 60px;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

@media (max-width: 600px) {
    .timeline::before { left: 15px; }
    .timeline-item { padding-left: 45px; }
    .timeline-item::after { left: 9px; }
}