@media only screen and (max-width: 300px) {

    .prev,
    .next,
    .text {
        font-size: 11px
    }
}

@media only screen and (max-width: 800px) {

    h3 {
        font-size: 16px;
    }

    div {
        font-size: 14px;
    }

    .fgalerie {
        width: 100%;
    }

    .headline {
        transition: var(--transitionVar);
        visibility: hidden;
    }

    header {
        /*Leiste fürs mobile Menü*/
        background-color: var(--backgroundColorLight);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        height: 44.9px;
        justify-content: space-between;
        position: sticky;
        top: 0;
        z-index: 100;
        display: flex;
        border-bottom: 5px solid var(--colorPrimaryLight);
        box-shadow: 0 0 7px var(--colorSecondaryLight);
    }

    #mobileMenueIcon {
        /*Hamburger Button für mobile Geräte*/
        margin: auto 0;
        cursor: pointer;
    }

    .mobileMenueOpen .bar1 {
        /*Animation beim Öffnen des mobilen Menüs für den obersten Strich*/
        -webkit-transform: rotate(-45deg) translate(-6px, 6px);
        transform: rotate(-45deg) translate(-6px, 6px)
    }

    .mobileMenueOpen .bar1:hover {
        color: red;
    }

    .mobileMenueOpen .bar2 {
        /*Animation beim Öffnen des mobilen Menüs für den mittleren Strich*/
        opacity: 0;
    }

    .mobileMenueOpen .bar3 {
        /*Animation beim Öffnen des mobilen Menüs für den untersten Strich*/
        -webkit-transform: rotate(45deg) translate(-6px, -8px);
        transform: rotate(45deg) translate(-6px, -8px);
    }

    .mobileMenu {
        /*mobiles Menü*/
        background-color: var(--backgroundColorLight);
        -webkit-backdrop-filter: blur(1px);
        backdrop-filter: blur(1px);
        z-index: 100;
        align-items: left;
        justify-content: space-around;
        display: none;
        position: absolute;
        top: 36.2px;
        right: 0;
        width: 100%;
        height: max-content;
    }

    .mobileMenueOpen .mobileMenu {
        /*mobile Menü*/
        display: flex;
        flex-direction: column;
        box-shadow: 0 0 7px var(--colorSecondaryLight);
    }

    .mobileMenu a {
        /*Links im mobilen Menü*/
        color: var(--colorPrimaryLight);
        font-weight: bolder;
        text-decoration: none;
        margin-left: 30px;
    }

    .mobileMenu li {
        /*Einträge im mobilen Menü*/
        padding: 5px;
        margin-right: 10px;
        margin-bottom: 10px;
    }

    .mobileMenu li:hover {
        /*Einträge im mobilen Menü*/
        transition: var(--transitionVar);
    }

    #mobileMenueIcon div {
        /*3 Striche des Hamburger Button für mobile Geräte*/
        width: 35px;
        height: 3px;
        background-color: var(--colorPrimaryLight);
        margin: 6px 20px;
        transition: all 0.6s;
        z-index: 99;
    }

    /*#mobileMenueIcon {
                display: block;
            }*/

    #schullogoKompakt {
        /*Schullogo für mobile Anricht*/
        display: inline;
        height: 30px;
        margin-top: 10px;
        position: absolute;
        left: 10px;
        margin-left: 10px;
    }

    #titleMobileMenue {
        /*Logo im mobilen Menü*/
        display: flex;
        font-size: var(--headerFontSize);
        margin-left: 100px;
        margin-top: 8px;
        color: var(--colorPrimaryLight);
        font-weight: bold;
    }

    nav {
        /*Menü für größere Geräte wird ausgeblendet*/
        visibility: hidden;
        opacity: 0;
        transition: var(--transitionVar);
    }
}

@media only screen and (min-width: 800px) {
    nav {
        font-size: 20px;
    }
}

@media only screen and (max-height: 800px) {
    .headline {
        display: none;
    }
}