/* --- BASIS EINSTELLUNGEN --- */
:root {
    /* Farben direkt vom Flyer inspiriert */
    --burgundy: #731824;      /* Tiefes Rot der Blumen */
    --kraft-bg: #e0d6c5;     /* Heller Kraftpapier-Ton */
    --kraft-darker: #c9bda8;  /* Dunklerer Kraftpapier-Ton für Akzente */
    --offwhite: #f9f7f4;     /* Weicher Weißton für Textbereiche */
    --text-main: #333333;    /* Dunkelgrau für bessere Lesbarkeit */
    --text-light: #fff;
    
    /* Schriften */
    --font-heading: 'EB Garamond', 'Georgia', serif; /* Edle Serifenschrift */
    --font-body: 'Cormorant Garamond', 'Georgia', serif; /* Etwas leichtere Serifenschrift */
}

/* Google Fonts einbinden (WICHTIG: ganz oben in der CSS Datei) */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600&family=EB+Garamond:wght@400;700&display=swap');

html {
    scroll-behavior: smooth; /* Sanftes Scrollen für Onepager */
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background-color: var(--kraft-bg); /* Das Kraftpapier ist das Fundament */
    color: var(--text-main);
    line-height: 1.8;
    font-size: 18px;
}

/* --- TYPOGRAFIE & AKZENTE --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    margin-top: 0;
}

h1 {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--burgundy);
}

h2 {
    font-size: 2.5rem;
    color: var(--burgundy);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: 40px;
}

/* Eleganter Trennstrich unter Überschriften */
h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background-color: var(--burgundy);
}

.sub-date {
    font-family: var(--font-heading);
    letter-spacing: 0.2em;
    font-size: 1.2rem;
    color: #888;
}

/* --- LAYOUT CONTAINER --- */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-section {
    padding: 100px 0;
    text-align: center;
}

/* Wechselnde Hintergründe für Sektionen */
.section-white {
    background-color: var(--offwhite);
}

.section-kraft {
    background-color: var(--kraft-darker);
    /* Optional: Ein leichtes Textur-Bild für echtes Kraftpapier-Gefühl hinzufügen */
    /* background-image: url('assets/img/kraft-texture.jpg'); */
}

/* --- HEADER / HERO (Der Flyer-Look) --- */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white; /* Der weiße Rahmen wie beim Flyer */
    color: white;
    border: 30px solid var(--kraft-bg); /* Der Kraftpapier-Rahmen */
    margin: 30px;
    position: relative;
    overflow: hidden; /* Verhindert, dass Blumen über den Rand ragen */
}

/* Blumen-Akzente (transparente PNGs in assets/img/ ablegen) */
.hero::before, .hero::after {
    content: '';
    position: absolute;
    width: 500px; /* Breite der Blumen-Cluster - passe dies nach Bedarf an */
    height: 500px; /* Höhe der Blumen-Cluster */
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.9; /* Leicht transparent für edlen Look */
    z-index: 1; /* Stellt sicher, dass Blumen über dem weißen Rahmen liegen */
}

/* Blumen-Cluster: OBEN RECHTS */
.hero::before {
    top: -30px; /* Leicht über den Rand ragen lassen für organischen Look */
    right: -30px;
    background-image: url('assets/img/flower-cluster-top-right.png'); /* Passe den Dateinamen an */
    background-position: top right;
}

/* Blumen-Cluster: UNTEN LINKS */
.hero::after {
    bottom: -30px;
    left: -30px;
    background-image: url('assets/img/flower-cluster-bottom-left.png'); /* Passe den Dateinamen an */
    background-position: bottom left;
}

/* Stelle sicher, dass der Text ÜBER den Blumen liegt */
.hero-content {
    text-align: center;
    padding: 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    max-width: 600px;
    z-index: 2; /* Höherer Z-Index als die Blumen */
    background-color: rgba(224, 214, 197, 0.9); /* Dein Kraftpapier-Ton, leicht transparent */
    color: var(--text-main);
    border: 2px solid var(--burgundy);
}

.hero-title {
    font-size: 3.5rem;
    margin: 10px 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3); 
    z-index: 1;
}

/* Footer Bild Styling */
.footer-image-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 30px auto;
    padding: 0 20px;
}

.footer-shooting-img {
    width: 100%;
    height: auto;
    border: 10px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: rotate(-1deg); /* Leichter Polaroid-Kniff */
}

.main-footer {
    padding: 60px 0;
    background-color: var(--kraft-darker);
    text-align: center;
    margin-top: 50px;
}

.logout-link {
    display: inline-block;
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--burgundy);
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid var(--burgundy);
}

/* --- NEUER LOGIN SCREEN (mit Hintergrundbild) --- */
.login-screen-v2 {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1); /* Verhindert weiße Ränder durch den Blur */
    z-index: 1;
}

.login-card-v2 {
    position: relative;
    z-index: 2; /* Über das Hintergrundbild legen */
    background-color: rgba(255, 255, 255, 0.95); /* Leicht transparentes Weiß */
    padding: 60px 50px;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    text-align: center;
    max-width: 550px;
    width: 90%;
    border: 1px solid rgba(255,255,255,0.3);
}

.login-card-v2 h1 {
    font-size: 3rem;
    color: var(--burgundy);
    margin: 10px 0 20px 0;
}

.welcome-text {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.6;
}

.login-buttons-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Gestylte Buttons für die Auswahl */
.btn-guest {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 20px;
    border: 2px solid var(--kraft-darker);
    background-color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-main);
}

.btn-guest:hover {
    border-color: var(--burgundy);
    background-color: var(--offwhite);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-guest .btn-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--burgundy);
    margin-bottom: 5px;
}

.btn-guest .btn-desc {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.4;
}

/* Blumen-Deko auf der Login-Karte */
.flower-deco-top, .flower-deco-bottom {
    position: absolute;
    width: 80px;
    height: auto;
    opacity: 0.8;
}

.flower-deco-top {
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
}

.flower-deco-bottom {
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
}

/* Mobile Optimierung für Login */
@media (max-width: 600px) {
    .login-buttons-v2 {
        grid-template-columns: 1fr;
    }
    .login-card-v2 {
        padding: 40px 30px;
    }
    .login-card-v2 h1 {
        font-size: 2.2rem;
    }
}

/* Wunschliste Hero Style */
.wishlist-hero-section {
    position: relative;
    padding: 100px 0;
    background-attachment: fixed; /* Parallax Effekt */
    background-size: cover;
    background-position: center;
}

.wishlist-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(115, 24, 36, 0.2); /* Ganz leichter Burgunder-Schleier */
}

.glass-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.96);
    padding: 60px 40px;
    border-radius: 5px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    text-align: center;
}

/* Wunschkarten Verfeinerung */
.wish-card-v2 {
    background: var(--offwhite);
    border: 1px solid var(--kraft-darker);
    padding: 25px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.amount-wrapper {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.btn-send {
    background: var(--burgundy);
    color: white;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    border-radius: 3px;
}

/* RSVP Styling */
.rsvp-section {
    padding: 100px 20px;
    background-color: var(--kraft-bg);
}

.radio-selection {
    display: flex;
    justify-content: space-around;
    margin: 25px 0;
    background: var(--offwhite);
    padding: 15px;
    border-radius: 5px;
}

.radio-label {
    cursor: pointer;
    font-family: var(--font-heading);
    color: var(--burgundy);
}

.radio-label input {
    margin-right: 8px;
    accent-color: var(--burgundy);
}

/* Styling für die RSVP-Auswahlkarten */
.rsvp-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--kraft-darker);
    position: relative;
}

/* Wenn die Karte ausgewählt ist */
.rsvp-card.selected {
    border-color: var(--burgundy);
    background-color: var(--offwhite);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(115, 24, 36, 0.1);
}

/* Ein kleiner Haken-Indikator, wenn ausgewählt (optional) */
.rsvp-card.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--burgundy);
    font-weight: bold;
}

/* Die rsvp-form-v2 braucht etwas Platz */
.rsvp-form-v2 {
    margin-top: 30px;
}

/* --- NAVIGATION --- */
.nav-bar {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.nav-bar a {
    text-decoration: none;
    color: var(--text-main);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.nav-bar a:hover {
    color: var(--burgundy);
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    background-color: var(--burgundy);
    color: white;
    padding: 15px 40px;
    border: none;
    text-decoration: none;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #59121b;
    transform: translateY(-2px);
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.8rem;
    background-color: var(--kraft-bg);
    color: var(--text-main);
}

.btn-small:hover {
    background-color: var(--kraft-darker);
}

/* --- LOGIN SCREEN --- */
.login-screen {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--kraft-bg);
}

.login-card {
    background-color: white;
    padding: 60px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    max-width: 500px;
    position: relative;
    border-radius: 5px;
}

.login-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.login-card .flower-deco {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: auto;
}

/* --- FOTO GRID --- */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.photo-item {
    background-color: #ddd;
    height: 300px;
    border: 10px solid white; /* Polaroid Style */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.photo-item:hover {
    transform: rotate(3deg) scale(1.05);
}

/* --- WUNSCHLISTE MIT ZUFALLSBILDERN (GRID) --- */
.wishlist-section {
    padding: 100px 0;
    background-color: var(--kraft-bg);
}

.glass-card-wrapper {
    background: rgba(255, 255, 255, 0.95);
    padding: 60px 20px;
    border-radius: 5px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

/* Erzwingt das Kachel-Layout (Grid) */
.wish-grid-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 30px !important;
    margin-top: 50px;
    text-align: left;
}

.wish-tile {
    background: #fff;
    border: 1px solid var(--kraft-darker);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Bild oben, Content unten */
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.wish-tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.wish-tile-image {
    width: 100%;
    height: 200px;
    background-color: #f4f1ec;
    overflow: hidden;
}

.wish-tile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* DIESER FILTER PASST DIE BILDER AN DEIN DESIGN AN:
       sepia(0.2) gibt einen warmen Kraftpapier-Touch,
       contrast(0.9) nimmt die Härte aus den Stock-Fotos. */
    filter: sepia(0.2) brightness(1.05) contrast(0.9);
}

.wish-tile-content {
    padding: 25px;
}

.wish-tile-content h3 {
    margin: 0 0 15px 0;
    color: var(--burgundy);
    font-size: 1.4rem;
    text-align: left;
    font-family: var(--font-heading);
}

/* Fortschrittsbalken */
.wish-bar-bg {
    background: #f0f0f0;
    height: 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    overflow: hidden;
}

.wish-bar-fill {
    background: var(--burgundy);
    height: 100%;
    border-radius: 4px;
}

.wish-numbers {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 20px;
}

/* Formular Design */
.wish-tile-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wish-tile-form input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
}

.wish-input-row {
    display: flex;
    gap: 5px;
}

.wish-input-row input { flex: 1; }

.wish-submit-btn {
    background: var(--burgundy);
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
}

.wish-completed-badge {
    background: #5a9667;
    color: white;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    font-weight: bold;
}

/* Mobile Optimierung */
@media (max-width: 600px) {
    .wish-grid-container {
        grid-template-columns: 1fr;
    }
}

/* --- FORMULARE (RSVP & Wunschliste) --- */
.form-group {
    margin-bottom: 20px;
}

input[type="text"], input[type="number"], textarea, select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: 1rem;
    box-sizing: border-box; /* WICHTIG: Padding nicht zur Breite addieren */
}

input:focus, textarea:focus {
    border-color: var(--burgundy);
    outline: none;
    box-shadow: 0 0 5px rgba(115, 24, 36, 0.2);
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.radio-group {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
}

.radio-group label {
    cursor: pointer;
}
/* --- TÄTSCHMEISTER BEREICH --- */
.section-kraft {
    background-color: var(--kraft-bg);
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    background: white;
    padding: 40px;
    border-radius: 5px;
    border: 1px solid var(--kraft-darker);
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-card h3 {
    margin: 0 0 5px 0;
    font-family: var(--font-heading);
    color: var(--burgundy);
    font-size: 1.6rem;
}

.contact-card p {
    margin: 0 0 20px 0;
    color: #777;
    font-style: italic;
    font-size: 0.9rem;
}

.contact-link {
    display: inline-block;
    color: var(--burgundy);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    border-bottom: 1px solid transparent;
    transition: border 0.3s;
}

.contact-link:hover {
    border-bottom: 1px solid var(--burgundy);
}

/* Mobile Anpassung */
@media (max-width: 600px) {
    .contact-grid {
        grid-template-columns: 1fr; /* Kacheln untereinander auf dem Handy */
    }
}

/* --- TIMELINE STABILISIERT (KEIN ÜBERLAPPPEN) --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    padding: 20px 0;
}

/* Die vertikale Linie */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 85px; /* Genau zwischen Zeit und Text */
    width: 2px;
    background: var(--kraft-darker);
}

.timeline-item {
    position: relative;
    display: flex; /* Nutzt Flexbox statt absoluter Positionierung */
    align-items: flex-start;
    margin-bottom: 35px;
}

/* Der Zeit-Block links */
.timeline-item .time {
    width: 70px;
    min-width: 70px; /* Verhindert das Quetschen der Zeit */
    text-align: right;
    font-family: var(--font-heading);
    color: var(--burgundy);
    font-weight: bold;
    font-size: 1.1rem;
    padding-top: 5px;
    margin-right: 30px; /* Abstand zur Linie */
}

/* Der Text-Block rechts */
.timeline-item .event {
    flex: 1; /* Nimmt den restlichen Platz ein */
    padding-left: 15px;
    text-align: left;
}

/* Der rote Punkt auf der Linie */
.timeline-item::after {
    content: '';
    position: absolute;
    left: 81px; /* Exakt auf der Linie platziert */
    top: 15px;
    width: 10px;
    height: 10px;
    background: var(--burgundy);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 5px var(--offwhite);
}

.timeline-item h3 {
    margin: 0 0 3px 0;
    font-size: 1.3rem !important;
    color: var(--burgundy) !important;
    line-height: 1.2;
}

.timeline-item p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* MOBILE OPTIMIERUNG */
@media (max-width: 600px) {
    .timeline::before { left: 65px; } /* Linie etwas nach links schieben */
    .timeline-item::after { left: 61px; }
    
    .timeline-item .time {
        width: 55px;
        min-width: 55px;
        font-size: 0.95rem;
        margin-right: 20px;
    }
    
    .timeline-item h3 {
        font-size: 1.1rem !important;
    }
}

/* --- CAR SELECTION GRID --- */
.radio-selection-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.radio-card {
    cursor: pointer;
    position: relative;
    display: block;
}

.radio-card input {
    position: absolute;
    opacity: 0; /* Versteckt den hässlichen Standard-Radio-Button */
}

.card-content {
    border: 1px solid var(--kraft-darker);
    padding: 15px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    transition: all 0.3s ease;
}

/* Effekt wenn ausgewählt */
.radio-card input:checked + .card-content {
    border-color: var(--burgundy);
    background-color: var(--offwhite);
    box-shadow: inset 0 0 0 1px var(--burgundy);
}

.radio-card .icon { font-size: 1.5rem; margin-bottom: 5px; }
.radio-card .text { font-size: 0.9rem; }

@media (max-width: 500px) {
    .radio-selection-v2 { grid-template-columns: 1fr; }
}

/* --- FOOTER --- */
footer {
    background-color: var(--text-main);
    color: rgba(255, 255, 255, 0.7);
    padding: 50px 0;
    text-align: center;
    font-size: 0.9rem;
}

footer a {
    color: white;
    text-decoration: none;
}