*
{
    margin: 0;
    border: 0;
    padding: 0;
}

:root {
    --bg-color: rgb(255, 208, 208);
    --hover-white: rgb(255, 255, 255);
    --nav-normal-state: rgb(255, 206, 206);
    --nav-bg-red: rgb(189, 54, 54);
    --nav-dark-red: rgb(163, 30, 30);
    --nav-shadow: rgb(150, 43, 43);
    --footer-bg: rgb(192, 89, 89);
    --footer-normal-state: rgb(255, 206, 206);
    --visited-link: rgb(11,0,128);
    --bild-bg-color: rgb(211, 166, 166);
    --bild-hover-bg-color: rgb(222, 177, 177);
    /*--bilder-hover-text-bg: rgba(55, 55, 55, 0.526);  <-- alte Farbe*/
    --bilder-hover-text-bg: rgb(189, 54, 54);
    --header-bg: rgb(211, 211, 211);
}

body {
    background-color: var(--bg-color);
}

.nav-item a:link {
    text-decoration: none;
    color: var(--nav-normal-state);
}

.nav-item a:visited {
    color: var(--nav-normal-state);
}

.nav-item a:hover {
    color: var(--hover-white);
    transition: 0.2s ease-in-out;
}

.nav-item a:not(:hover) {
    color: var(--nav-normal-state);
    transition: 0.2s ease-in-out;
}

p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    line-height: 1.65rem;
}

h1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.5rem;
}

.background-header { /* Die Formatierung gilt nur für den Platzhalter-Text. Kann also später entfernt werden*/
    height: 15rem;
    line-height: 15rem;
    color: rgba(255, 0, 0, 0.495);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 2rem;
    overflow: hidden;
}

.background-top {
    width: 300vw;
}

.AdViKa-Logo {
    position: absolute;
    width: 18rem;
    margin: auto;
    left: 0;
    right: 0;
    top: 1rem;
}

/* nav starts here */
.nav-bar {
    display: flex;
    background-color: var(--nav-bg-red);
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0rem;
    box-shadow: 0rem 0.25rem 0.25rem var(--nav-shadow);
}

.nav-item {
    font-size: 1.3rem;
    padding: 0.6rem 0.6rem 0.6rem 0.6rem;
    margin-left: 0.3rem;
    margin-right: 0.3rem;
    font-family: Arial, Helvetica, sans-serif;
    border-radius: 1rem;
    color: rgb(255, 255, 255);
    width: 7rem;
    text-align: center;
}

.nav-item:hover {
    background-color: var(--nav-dark-red);
    font-size: 1.5rem;
    transition: 0.2s ease-in-out;
    color: var(--hover-white);
}

.nav-item:not(:hover) {
    transition: 0.2s ease-in-out;
}
/* nav ends here */

.bilder-einleitung {
    margin-top: 5rem;
    text-align: left;
    max-width: 75%;
    margin-left: auto;
    margin-right: auto;
}

/* Flexbox starts here */
.bilder-container-flex {
    display: flex;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 7rem;
    margin-top: 7rem;
    margin-bottom: 15rem;
}

.bilder-container-flex a {
    text-decoration: none;
}

.bilder-container-flex a:visited {
    text-decoration: none;
}

/*2021 start*/
.bild-2021 {
    background-color: var(--bild-bg-color);
    color: white;
    width: 15rem;
    height: 15rem;
    overflow: hidden;
    border-radius: 2rem;
}

.h-2021 {
    padding-top: 4.5rem;
    padding-bottom: 2rem;
}

.text-2021 {
    margin-top: 2rem;
    background-color: var(--bilder-hover-text-bg);
    padding-bottom: 5rem;
    padding-top:1.5rem;
}
/*2021 end*/

/*2022 start*/
.bild-2022 {
    background-color: var(--bild-bg-color);
    color: white;
    width: 15rem;
    height: 15rem;
    overflow: hidden;
    border-radius: 2rem;
}

.h-2022 {
    padding-top: 4.5rem;
    padding-bottom: 2rem;
}

.text-2022 {
    margin-top: 2rem;
    background-color: var(--bilder-hover-text-bg);
    padding-bottom: 5rem;
    padding-top:1.5rem;
}
/*2022 end*/

/*2023 start*/
.bild-2023 {
    background-color: var(--bild-bg-color);
    color: white;
    width: 15rem;
    height: 15rem;
    overflow: hidden;
    border-radius: 2rem;
}

.h-2023 {
    padding-top: 4.5rem;
    padding-bottom: 2rem;
}

.text-2023 {
    margin-top: 2rem;
    background-color: var(--bilder-hover-text-bg);
    padding-bottom: 5rem;
    padding-top:1.5rem;
}
/* 2023 end*/
/* Flexbox ends here */

/* footer starts here */
.footer {
    display:flex;
    margin-top: 0;
    background-color: var(--footer-bg);
    padding-top:1.5rem;
    padding-bottom: 1.5rem;
    justify-content: center;
    align-items: center;
}

.footer-item {
    font-size: 1.1rem;
    padding: 0.6rem 0.6rem 0.6rem 0.6rem;
    margin-left: 2.5rem;
    margin-right: 2.5rem;
    font-family: Arial, Helvetica, sans-serif;
    border-radius: 1rem;
    color: var(--footer-normal-state);
    width: 7rem;
    text-align: center;
}

.footer-item:hover {
    color: var(--hover-white);
}

.footer-item a:link {
    color: var(--footer-normal-state);
    text-decoration: none;
}

.footer-item a:visited {
    color: var(--footer-normal-state);
}

.footer-item a:hover {
    color: var(--hover-white);
    transition: 0.2s ease-in-out;
}

.footer-item a:not(:hover) {
    color: var(--footer-normal-state);
    transition: 0.2s ease-in-out;
}
/* footer ends here */

/* Ab hier beginnt Cookie-Banner */

.cookie-container {
    width: 100%;
    margin: auto;
}

.cookie-subcontainer {
    width: 85%;
    margin: auto;
}

#cookies {
    width: 100%;
    position: sticky;
    bottom: 0;
    color: white;
    background-color: rgba(0, 0, 0, 0.563);
    z-index: 1;
    display: none;
}

.cookies {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.cookies a {
    color: yellow;
    font-weight: 500;
    /*text-decoration: none;*/
}

.cookies a:hover {
    color: rgb(255, 255, 130);
}

.cookie-infotext {
    margin-right: 0.5rem;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 1rem;
    text-align: center;
    max-width: 30ch;
}

#cookies-btn {
    border-radius: 5px;
    padding: 8px 12px 8px 12px;
    font-size: 1.1rem;
    font-family: Helvetica, Arial, sans-serif;
    cursor: pointer;
    border: 3px solid white;
    background-color: rgba(0, 0, 0, 0.246);
    color: white;
    margin-left: 0.5rem;
    margin-right: 1rem;
}

/* Hier beginnt hover animation für Annehmen-Button */

#cookies-btn:hover {
    background-color: rgba(0, 0, 0, 0.079);
    transition: 0.25s;
}

#cookies-btn:not(:hover) {
    background-color: rgba(0, 0, 0, 0.246);
    transition: 0.25s;
}

/* Hier endet hover animation für Annehmen-Button */

#cookies-btn-decline {
    border-radius: 5px;
    padding: 8px 12px 8px 12px;
    font-size: 1.1rem;
    font-family: Helvetica, Arial, sans-serif;
    cursor: pointer;
    border: 3px solid white;
    background-color: rgba(0, 0, 0, 0.246);
    color: white;
}

/* Hier beginnt hover animation für Nur erforderliche-Button */

#cookies-btn-decline:hover {
    background-color: rgba(0, 0, 0, 0.079);
    transition: 0.25s;
}

#cookies-btn-decline:not(:hover) {
    background-color: rgba(0, 0, 0, 0.246);
    transition: 0.25s;
}

/* Hier endet hover animation für Nur erforderliche-Button */

/* Ab hier endet Cookie-Banner */

@media only screen and (min-width: 1000px) {
    .AdViKa-Logo {
        position: absolute;
        width: 21rem;
        margin: auto;
        left: 0;
        right: 0;
        top: 0;
    }

    .background-top {
        width: 100vw;
    }

    .bilder-einleitung {
        max-width: 50%;
    }

    .bilder-container-flex {
        display: flex;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
        flex-direction: row;
        align-items: center;
        gap: 7rem;
        margin-top: 7rem;
        margin-bottom: 30rem;
        flex-wrap: wrap;
        max-width: 85%;
        gap: 7.5rem;
    }
    
    .bilder-container-flex a {
        text-decoration: none;
    }
    
    .bilder-container-flex a:visited {
        text-decoration: none;
    }
    
    /*2021 start*/
    .bild-2021 {
        background-color: var(--bild-bg-color);
        color: white;
        width: 15rem;
        height: 15rem;
        overflow: hidden;
        border-radius: 2rem;
    }
    
    .bild-2021:hover {
        background-color: var(--bild-hover-bg-color);
        transition: 0.5s;
    }
    
    .bild-2021:not(:hover) {
        background-color: var(--bild-bg-color);
        transition: 0.3s;
    }
    
    .bild-2021:hover > .text-2021 {
        margin-top: 2rem;
        padding-top: 1.5rem;
        padding-bottom: 5rem;
        transition: 0.8s;
    }
    
    .bild-2021:not(:hover) > .text-2021 {
        margin-top: 8rem;
        padding-top: 0rem; /* sorgt für die unabhängige bewegung von Text zu Hintergrund */
        padding-bottom: 0rem; /* sorgt für die unabhängige bewegung von Text zu Hintergrund */
        transition: 1s;
    }
    
    .h-2021 {
        padding-top: 6.5rem;
        padding-bottom: 0rem;
    }
    
    .bild-2021:hover > .h-2021 {
        font-size: 1.6rem;
        transition: 0.6s;
    }
    
    .bild-2021:not(:hover) > .h-2021 {
        font-size: 1.5rem;
        transition: 0.4s;
    }
    
    .text-2021 {
        margin-top: 8rem;
    }
    /*2021 end*/
    
    /*2022 start*/
    .bild-2022 {
        background-color: var(--bild-bg-color);
        color: white;
        width: 15rem;
        height: 15rem;
        overflow: hidden;
        border-radius: 2rem;
    }
    
    .bild-2022:hover {
        background-color: var(--bild-hover-bg-color);
        transition: 0.5s;
    }
    
    .bild-2022:not(:hover) {
        background-color: var(--bild-bg-color);
        transition: 0.3s;
    }
    
    .bild-2022:hover > .text-2022 {
        margin-top: 2rem;
        padding-top: 1.5rem;
        padding-bottom: 5rem;
        transition: 0.8s;
    }
    
    .bild-2022:not(:hover) > .text-2022 {
        margin-top: 8rem;
        transition: 1s;
        padding-top: 0rem; /* sorgt für die unabhängige bewegung von Text zu Hintergrund */
        padding-bottom: 0rem; /* sorgt für die unabhängige bewegung von Text zu Hintergrund */
    }
    
    .h-2022 {
        padding-top: 6.5rem;
        padding-bottom: 0rem;
    }
    
    .bild-2022:hover > .h-2022 {
        font-size: 1.6rem;
        transition: 0.6s;
    }
    
    .bild-2022:not(:hover) > .h-2022 {
        font-size: 1.5rem;
        transition: 0.4s;
    }
    
    .text-2022 {
        margin-top: 8rem;
    }
    /*2022 end*/
    
    /*2023 start*/
    .bild-2023 {
        background-color: var(--bild-bg-color);
        color: white;
        width: 15rem;
        height: 15rem;
        overflow: hidden;
        border-radius: 2rem;
    }
    
    .bild-2023:hover {
        background-color: var(--bild-hover-bg-color);
        transition: 0.5s;
    }
    
    .bild-2023:not(:hover) {
        background-color: var(--bild-bg-color);
        transition: 0.3s;
    }
    
    .bild-2023:hover > .text-2023 {
        margin-top: 2rem;
        padding-top: 1.5rem;
        padding-bottom: 5rem;
        transition: 0.8s;
    }
    
    .bild-2023:not(:hover) > .text-2023 {
        margin-top: 8rem;
        padding-top: 0rem; /* sorgt für die unabhängige bewegung von Text zu Hintergrund */
        padding-bottom: 0rem; /* sorgt für die unabhängige bewegung von Text zu Hintergrund */
        transition: 1s;
    }
    
    .h-2023 {
        padding-top: 6.5rem;
        padding-bottom: 0rem;
    }
    
    .bild-2023:hover > .h-2023 {
        font-size: 1.6rem;
        transition: 0.6s;
    }
    
    .bild-2023:not(:hover) > .h-2023 {
        font-size: 1.5rem;
        transition: 0.4s;
    }
    
    .text-2023 {
        margin-top: 8rem;
    }

    /* Ab hier beginnt Cookie-Banner */

    .cookie-infotext {
        margin-bottom: 0;
        text-align: left;
        max-width: 100%;
    }
        
    /* Ab hier endet Cookie-Banner */
}