:root {
    --wedding-red: #8B1A1A;
    --wedding-red-light: #B22222;
    --wedding-bg: #FAF8F5;
    --wedding-text: #2C2C2C;
    --wedding-white: #FFFFFF;
    --font-serif: 'EB Garamond', 'Georgia', 'Times New Roman', serif;
}

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

body {
    font-family: var(--font-serif);
    background-color: var(--wedding-bg);
    color: var(--wedding-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    color: var(--wedding-red);
    font-weight: 400;
    text-align: center;
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 2.5rem;
}

a {
    color: var(--wedding-red);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--wedding-red-light);
}

/* 1. Hero Sektion */
.hero {
    background-image: url('../images/Familie_Top_wide.png');
    background-size: cover;
    background-position: center 30%;
    height: 90vh; /* Ein bisschen höher */
    display: flex;
    align-items: flex-end; /* Text unten ausrichten */
    justify-content: center;
    position: relative;
    padding-bottom: 5vh; /* Abstand vom unteren Rand */
}

/* Overlay komplett entfernt für klares Bild */
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    /* Größerer Text und rotes Datum */
}

.hero-content h1 {
    font-size: 6.5rem; /* Schrift stark vergrößert */
    margin-bottom: 0rem;
    color: var(--wedding-red);
    letter-spacing: 2px;
    text-shadow: 0px 0px 20px rgba(255, 255, 255, 0.8), 0px 2px 4px rgba(0,0,0,0.3); /* Leichtes Leuchten für bessere Lesbarkeit auf dem Bild */
}

.hero-content .date {
    font-size: 2.2rem;
    color: var(--wedding-red); /* Datum in rot */
    letter-spacing: 2px;
    font-weight: 600;
    text-shadow: 0px 0px 15px rgba(255, 255, 255, 0.8);
}

/* Gemeinsame Section-Styles */
section {
    padding: 6rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* 1b. Einladung Sektion */
.invitation-section {
    text-align: center;
    background-color: var(--wedding-bg);
    padding: 6rem 2rem 4rem;
}

.invitation-section h2 {
    font-size: 4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.small-sup {
    font-size: 1.2rem;
    text-transform: none;
    font-style: italic;
    letter-spacing: normal;
    display: block;
    margin-bottom: -10px;
    color: var(--wedding-red);
}

.intro-text, .intro-text-highlight {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--wedding-text);
}

.intro-text-highlight {
    margin-bottom: 0;
}

/* 2. Countdown */
.countdown-section {
    background-color: var(--wedding-white);
    max-width: 100%;
    padding: 4rem 2rem;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 4rem;
    text-align: center;
    font-size: 1.2rem;
    color: var(--wedding-text);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.countdown span {
    font-size: 3.5rem;
    color: var(--wedding-red);
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* 3. Tagesablauf (Vertikale Timeline) */
.schedule-section {
    padding: 8rem 2rem;
}

.schedule-header {
    text-align: center;
    margin-bottom: 5rem;
}

.schedule-header .small-sup {
    font-size: 1.2rem;
    color: var(--wedding-red);
}

.schedule-date {
    font-size: 2.5rem;
    color: var(--wedding-red);
    margin: 0.5rem 0;
}

.schedule-header h2 {
    font-size: 3.5rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* Die rote vertikale Linie in der Mitte */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: var(--wedding-red);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-content {
    width: 45%;
}

.timeline-image {
    width: 45%;
    display: flex;
}

.timeline-image img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Text links, Bild rechts */
.left-text .timeline-content {
    text-align: right;
    padding-right: 3rem;
}

.left-text .timeline-image {
    justify-content: flex-start;
    padding-left: 3rem;
}

/* Bild links, Text rechts */
.right-text .timeline-content {
    text-align: left;
    padding-left: 3rem;
}

.right-text .timeline-image {
    justify-content: flex-end;
    padding-right: 3rem;
}

.time-title {
    font-size: 1.8rem;
    color: var(--wedding-red);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.timeline-desc {
    font-size: 1.2rem;
    color: var(--wedding-text);
}


/* 4. Orte & Adressen */
.locations-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
}

.location-item {
    background: var(--wedding-white);
    padding: 2.5rem;
    border-radius: 4px;
    text-align: center;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.location-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.location-item h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.location-item p {
    font-size: 1.3rem;
}

/* 5. RSVP Formular */
.rsvp-section {
    background-color: var(--wedding-white);
    max-width: 800px;
    margin: 0 auto 5rem;
    padding: 4rem;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: var(--wedding-text);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    border: 1px solid #dcdcdc;
    border-radius: 2px;
    background: var(--wedding-bg);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--wedding-red);
}

button {
    background-color: var(--wedding-red);
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    font-family: var(--font-serif);
    font-size: 1.3rem;
    cursor: pointer;
    width: 100%;
    border-radius: 2px;
    transition: background 0.3s;
    margin-top: 1rem;
}

button:hover {
    background-color: var(--wedding-red-light);
}

/* 6. Kontakt */
.contact-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.contact-person {
    text-align: center;
    font-size: 1.3rem;
    min-width: 200px;
}

.contact-person h3 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.contact-image img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--wedding-red);
    padding: 4px;
    background-color: white;
}

/* 7. Footer */
.footer-section {
    background-color: var(--wedding-red);
    color: var(--wedding-white);
    text-align: center;
    padding: 5rem 2rem;
}

.footer-section p {
    color: var(--wedding-white) !important;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-section .signature {
    font-size: 2.2rem;
    margin: 2.5rem 0;
    font-style: italic;
}

.footer-section .deadline {
    font-size: 1.3rem;
    opacity: 0.8;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .hero-content { padding: 2rem; }
    .hero-content h1 { font-size: 4rem; }
    .hero-content .date { font-size: 1.5rem; }
    
    .countdown { gap: 1.5rem; flex-wrap: wrap; }
    .countdown span { font-size: 2.5rem; }
    
    .invitation-section h2 { font-size: 2.5rem; }
    .intro-text, .intro-text-highlight { font-size: 1.2rem; }
    
    .timeline::before { left: 20px; }
    
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 50px;
    }
    
    .timeline-content, .timeline-image {
        width: 100%;
    }
    
    .left-text .timeline-content, .right-text .timeline-content {
        text-align: left;
        padding: 0 0 1rem 0;
    }
    
    .left-text .timeline-image, .right-text .timeline-image {
        padding: 0;
        justify-content: flex-start;
    }
    
    .timeline-image img { width: 100%; height: auto; max-width: 300px; }
    
    .contact-grid { flex-direction: column; gap: 2rem; }
    .contact-image { order: -1; }
    
    .rsvp-section { padding: 2.5rem 1.5rem; }
}
