/* Allgemeine Stile & Variablen */
:root {
    --primary-color: #555555;    /* Dunkelgrau als Hauptfarbe */
    --secondary-color: #eeeeee;  /* Sehr helles Grau / fast Weiß für Akzente/Hintergründe */
    --text-color: #333333;       /* Standard-Textfarbe, fast schwarz */
    --background-color: #f9f9f9; /* Hintergrund der Seite */
    --light-gray: #d3d3d3;       /* Ein mittleres Grau für Ränder etc. */
    --white-color: #ffffff;       /* Reines Weiß */
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;
    --nav-height: 70px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
}

body::before {
    display: none;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
}

h1 { font-size: 3rem; margin-bottom: 1rem; }
h2 { font-size: 2.2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--light-gray);
    margin: 10px auto 0;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--light-gray);
    color: var(--text-color);
    border-color: var(--light-gray);
}

/* Header & Navigation */
#header {
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    box-shadow: var(--box-shadow);
    height: var(--nav-height);
}

#header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    list-style: none;
    display: flex;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}


.nav-toggle {
    display: none; 
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* --- ANGEPASSTE HERO SECTION --- */
.hero-section {
    background: 
        linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), 
        url('images/6.jpg');
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: flex-end; /* Geändert von center zu flex-end */
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    padding-top: var(--nav-height); 
    padding-bottom: 10vh; /* Fügt Abstand zum unteren Rand hinzu */
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--white-color);
    margin-bottom: 0.5rem;
}

.hero-content .subtitle {
    font-size: 1.8rem;
    font-family: var(--font-body);
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--white-color);
}

.hero-content .date {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--light-gray);
    font-weight: bold;
}

#countdown {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--white-color);
}
#countdown span {
    font-weight: bold;
    color: var(--white-color);
}

/* Story Section */
.story-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.story-image {
    flex: 1;
}

.story-image img {
    box-shadow: var(--box-shadow);
}

.story-text {
    flex: 1.5;
}

/* Event Details Section */
.event-section {
    background-color: var(--secondary-color);
}
.event-section .section-title::after {
    background-color: var(--primary-color);
}

.event-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.event-timeline h3, .event-info h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

.event-timeline ul {
    list-style: none;
    padding-left: 0;
}

.event-timeline li {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    font-size: 1.1rem;
}

.event-timeline li .fas {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
    margin-right: 15px;
}

.info-block {
    margin-bottom: 25px;
}

.info-block:last-child {
    margin-bottom: 0;
}

.info-block h4 {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.info-block h4 .fas {
    color: var(--primary-color);
    margin-right: 12px;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.info-block p {
    padding-left: 32px;
    margin-bottom: 0;
    line-height: 1.6;
}


/* Location Section */
.location-content {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.location-map {
    flex: 1;
    background-color: var(--white-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}
.location-map img { 
    border: 1px solid var(--light-gray);
    margin-top: 10px;
}


.location-text {
    flex: 1.5;
}

/* Registration Section */
.registration-section {
    background-color: var(--secondary-color);
}
.registration-section .section-title::after {
    background-color: var(--primary-color);
}

.registration-deadline {
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    color: var(--text-color);
}

.registration-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

/* Form-Gruppen Stile */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    font-family: var(--font-body);
}

.form-group textarea {
    resize: vertical;
}

.radio-group label {
    font-weight: normal;
    margin-left: 5px;
    display: inline-block;
    margin-bottom: 5px;
}
.radio-group input[type="radio"] {
    margin-right: 3px;
    vertical-align: middle;
}

/* Galerie Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-grid img {
    width: 100%;
    height: 300px; 
    object-fit: cover; 
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

/* Contact Section */
.contact-section {
    background-color: var(--background-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.contact-item {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    color: var(--text-color);
}

.contact-item p {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.contact-item a {
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--text-color);
}

/* Footer */
.footer-section {
    background-color: #333333;
    color: var(--white-color);
    text-align: center;
    padding: 30px 0;
}
.footer-section p {
    margin-bottom: 0.5rem;
}
.footer-section a {
    color: var(--light-gray);
}
.footer-section a:hover {
    text-decoration: underline;
}


/* Responsive Design */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .story-content, .location-content, .event-layout {
        flex-direction: column;
        grid-template-columns: 1fr;
    }
    .story-image, .location-map {
        margin-bottom: 30px;
        width: 100%;
        max-width: 400px; 
        align-self: center;
    }
    .contact-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: var(--nav-height);
        right: -100%; 
        width: 60%;
        height: calc(100vh - var(--nav-height));
        background-color: var(--white-color);
        flex-direction: column;
        align-items: center;
        padding-top: 2rem;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
        transition: right 0.4s ease-in-out;
    }

    .nav-menu.active { 
        right: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
        width: 100%;
        text-align: center;
    }

    .nav-link {
        display: block;
        padding: 0.5rem 0;
    }
    .nav-link::after { 
        left: 50%;
        transform: translateX(-50%);
    }

    .nav-toggle {
        display: block; 
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content .subtitle {
        font-size: 1.5rem;
    }
    .hero-content .date {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }
    .contact-grid {
        grid-template-columns: 1fr; 
    }
    
    .event-layout {
        padding: 20px;
    }
}

/* Lightbox / Modal Styles */
.lightbox-container {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 20; /* Sit on top */
    padding-top: 60px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}


/* Modal Content (the image) */
.lightbox-content {
    margin: auto;
    display: block;
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 80vh;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0.5)}
    to {transform:scale(1)}
}


/* The Close Button */
.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
}