* {
    box-sizing: border-box;
}

body, html {
    height: 100%;
    margin: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    scroll-behavior: smooth;
}

.bg-image {
    background-image: url('img/gemeinschaft_woddow_background.jpg');
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: fixed;
    width: 100%;
    z-index: -1;
}

.overlay {
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay for readability */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.content-wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.main-content {
    max-width: 800px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 80px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 50px;
    margin-bottom: 50px;
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 15px;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #d4af37;
}

.pre-heading {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    color: #f0f0f0;
}

.intro-text {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    hyphens: auto;
}

.highlight-box {
    border-top: 1px solid rgba(212, 175, 55, 0.5);
    border-bottom: 1px solid rgba(212, 175, 55, 0.5);
    padding: 30px 0;
    margin: 40px 0;
    background-color: transparent;
    font-size: 1.2rem;
    line-height: 1.6;
}

.contact-info {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.3);
}

.contact-info p {
    margin: 5px 0;
}

.footer {
    margin-top: auto;
    padding: 20px;
    font-size: 0.9rem;
}

.footer a {
    color: #ddd;
    text-decoration: none;
    margin: 0 10px;
}

.footer a:hover {
    color: white;
    text-decoration: underline;
}

/* Image Gallery */
.image-gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.image-gallery img {
    width: 100%; /* Ensure they don't overflow their flex container */
    max-width: 48%; /* Roughly half width minus gap */
    height: auto;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.02);
}

/* Modal Styles */
.modal {
    display: none; /* Keep hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-container {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(0,0,0,0.7);
}

.close-modal {
    position: absolute;
    top: -20px;
    right: -20px;
    color: #fff;
    background-color: #d4af37;
    width: 40px;
    height: 40px;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    transition: transform 0.2s, background-color 0.2s;
}

.close-modal:hover {
    background-color: #fff;
    color: #d4af37;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .close-modal {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        line-height: 32px;
        font-size: 25px;
    }
}

/* Form Styles */
.contact-form-section {
    max-width: 500px;
    margin: 0 auto 30px auto;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-control {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: none;
    margin-top: 5px;
}

.btn, .btn-submit {
    display: inline-block;
    background-color: #d4af37; /* Gold-ish accent */
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    text-decoration: none;
}

.btn-container {
    text-align: center;
    margin-bottom: 30px;
}

.btn:hover, .btn-submit:hover {
    background-color: #c4a030;
    color: white;
}

.impressum-content, .impressum-content p {
    font-size: 1.3rem;
    line-height: 1.8;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    .main-content {
        padding: 20px;
    }
    .intro-text {
        text-align: justify;
    }
    .image-gallery {
        flex-direction: column;
        align-items: center;
    }
    .image-gallery img {
        max-width: 100%;
        margin-bottom: 20px;
    }
    .close-modal {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        line-height: 32px;
        font-size: 25px;
    }
}
