



:root {
    

    --header-height-estimate: 9rem; 
}




#home {
    
    background-image: 
        linear-gradient(to bottom, rgba(5, 40, 56, 0.8), rgba(5, 40, 56, 0.6)),
        var(--bg-image);
    
    background-color: var(--color-primary-dark);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    
    
    min-height: calc(100vh - var(--header-height-estimate));
    width: 100%;
    
    
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: flex-start;
    
    
    padding: 0;
    box-sizing: border-box;
    
    
    scroll-margin-top: var(--header-height-estimate);
}

.hero {
    width: 100%;
    margin: 0 auto;
    padding-left: clamp(2rem, 5vw, 6rem);
    padding-right: clamp(2rem, 5vw, 10rem);
}

.hero h1 {
    color: var(--color-white);
    padding-bottom: 1rem;
    text-align: left;
    padding-top: 1rem; 
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

.begruessung,
.begruessung p,
.begruessung .begruessung-content {
    color: var(--color-white);
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    max-width: 900px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}







.h2_aktuell, 
.h2_wichtig {
    color: var(--color-primary-dark);
    font-weight: 800;
    border-bottom: 3px solid var(--color-brown-medium);
    display: inline-block;
    margin-bottom: 1rem;
    margin-left: clamp(2rem, 5vw, 6rem);
    font-size: var(--fs-h2);
}


.img_aktuell {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.aktuell_img {
    width: 100%;
    max-width: 550px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}


.p_aktuell {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.p_aktuell p {
    color: var(--color-primary-dark);
    font-weight: 500;
    text-align: left;
    padding-bottom: 1.5rem;
    line-height: 1.5;
    font-size: 1.05rem;
}


#wichtig {
    background-color: var(--color-beige-creme);
    padding-bottom: 1.5rem;
}

#wichtig h3{
    margin-left: clamp(2rem, 5vw, 6rem);
}

#wichtig p {
    color: var(--color-primary-dark);
    margin-left: clamp(2rem, 5vw, 6rem);
    margin-right: clamp(2rem, 5vw, 6rem);
    max-width: 1200px;
    font-size: var(--fs-p);
}




#aktuelle_termine {
    background-color: var(--color-beige-creme);
    color: var(--color-primary-dark);
    padding: 1rem clamp(2rem, 5vw, 6rem);
    scroll-margin-top: var(--header-height-estimate);
}

.h2_aktuelle_termine {
    color: var(--color-primary-dark);
    font-weight: 800;
    border-bottom: 3px solid var(--color-brown-medium);
    margin-bottom: 2rem;
    display: inline-block;
    font-size: var(--fs-h2);
}

.grid_container_aktuell {
    display: grid;
    grid-template-columns: 1fr 1fr 3fr;
    grid-auto-rows: minmax(3.5rem, auto); 
    gap: 2px;
    background-color: var(--color-brown-medium);
    border: 2px solid var(--color-brown-medium);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.head_date, .head_time, .head_veranstaltung {
    background-color: var(--color-primary-medium);
    color: var(--color-white);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
}

.col_date, .col_time, .col_veranstaltung {
    background-color: var(--color-white);
    color: var(--color-black);
    font-weight: 600;
    display: flex;
    align-items: center;
    padding: 0.8rem;
}

.col_date, .col_time {
    justify-content: center;
}




@media screen and (max-width: 1200px) {
    #aktuelles {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }
    
    .h2_aktuell, .h2_wichtig {
        margin-left: 0;
        align-self: center;
    }
    
    .p_aktuell p {
        text-align: left;
    }
}

@media screen and (max-width: 768px) {
    
    :root {
        --header-height-estimate: 5rem;
    }

    
    #home, #aktuell {
        min-height: auto;
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    
    .grid_container_aktuell {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        background-color: transparent;
        border: none;
        box-shadow: none;
    }
    
    .head_date, .head_time, .head_veranstaltung {
        display: none;
    }
    
    .col_date {
        background-color: var(--color-primary-light);
        border-radius: 6px 6px 0 0;
        margin-top: 1rem;
        justify-content: center;
    }
    
    .col_time {
        border-bottom: 1px solid #eee;
        justify-content: center;
    }
    
    .col_veranstaltung {
        border-radius: 0 0 6px 6px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        margin-bottom: 1rem;
    }

    .col_date, .col_time, .col_veranstaltung {
    justify-content: center;
}
}