*
{
    /* CSS-Reset */
    margin: 0;
    border: 0;
    padding: 0;
}

:root {
    --bg-color: rgb(255, 208, 208);
    --bg-color-image: rgb(232, 190, 190);
    --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(189, 148, 148);
    --bild-hover-bg-color: rgb(207, 165, 165);
    --bilder-hover-text-bg: rgba(55, 55, 55, 0.526);
    --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;
}

.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-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);
    z-index: 1;
}

.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;
}

.bilder2021-text {
    margin-top: 5rem;
    margin-bottom: 7.5rem;
    max-width: 75%;
    margin-left: auto;
    margin-right: auto;
}

/*lightbox stuff starts here*/

.portfolio {
    margin-top: 5rem;
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    grid-template-columns: none;
    gap: 2rem;
    padding: 5rem;
    background-color: var(--bg-color-image);
    justify-content: center;
    justify-items: center;
    margin-bottom: 15rem;
}

/*.portfolio-item {
    background-color: white;
}*/

.portfolio-desc {
    padding: 1.5rem;
}

.portfolio-title {
    font-size: 1.5rem;
    margin-top: 0;
}

.portfolio-item img {
    height: auto;
    width: 70vw;
    border-radius: 1rem;
    box-shadow: 5px 2.5px 5px rgba(0, 0, 0, 0.308);
}

.portfolio-item img:hover {
    opacity: 0.85;
    rotate: -1.5deg;
    box-shadow: 10px 5px 5px rgba(0, 0, 0, 0.308);
    transition: 0.2s;
}

.portfolio-item img:not(:hover) {
    transition: 0.2s;
}

.portfolio-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    display: none;
    justify-content: center;
    align-items: center;
    z-index:2;
}

.portfolio-lightbox:hover {
    cursor: default;
}

.portfolio-lightbox:target {
    display: flex;
}

.portfolio-lightbox-content {
    background-color: rgba(0, 0, 0, 0);
    padding: 1rem;
    border-radius: 1rem;
}

.portfolio-lightbox-content img {
    width: 80vw;
    height: auto;
    border-radius: 1rem;
}

.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;
}

/* 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;
    }

    .bilder2021-text {
        margin-top: 5rem;
        max-width: 50%;
        margin-left: auto;
        margin-right: auto;
    }

    .portfolio {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 3rem;
        padding: 5rem;
        justify-content: center;
        justify-items: left;
        height: 40vw; /* damit der Hintergrund von den Bildern nicht zu weit nach unten ragt */
        margin-bottom: 30rem;
    }

    .portfolio-item img {
        height: 16vw;
        width: auto;
    }

    .portfolio-lightbox-content img {
        height: 35vw;
        width: auto;
        border-radius: 1rem;
    }

    /* Ab hier beginnt Cookie-Banner */

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

}