/*
    global
 */

@import url("/Partarum/PartarumCSS/Design/singleBoxCenter_large.css");
@import url("/Partarum/PartarumCSS/Design/singleBoxCenter_medium.css");
@import url("/Partarum/PartarumCSS/partarumGrid.css");

@font-face {
    font-family: 'Narrenschiff';
    src: url('/public/assets/fonts/narrenschiff/Narrenschiff-Regular.otf') format('opentype');
    /* Optional: Definieren Sie weitere Attribute für die Schriftart */
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'DelightSnowy';
    src: url('/public/assets/fonts/delight-snowy/DelightSnowy.otf') format('opentype');
    /* Optional: Definieren Sie weitere Attribute für die Schriftart */
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'JetBrainsMono-Regular';
    src: url('/public/assets/fonts/JetBrainsMono-2.304/JetBrainsMono-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primeColor_1: #28303D;
    --primeColor_2: #F9893D;

}

body {
    background: var(--primeColor_1);
}

@keyframes loadLogo {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes loadText {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.menuButtonBox, #header {

    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    justify-content: start;
    --wMB: calc(30vw - calc(30vw - 30vh));
    width: var(--wMB);
    margin-left: calc(calc(100vw / 2) - calc(var(--wMB) / 2));
    margin-top: calc(calc(100vh / 6) - calc(60vh / 6));
    font-size: 3rem;
    cursor: pointer;

    max-height: unset;

    color: #be3e0e;
    z-index: 100;
}

#header a {
    text-decoration: none;
    color: inherit;
}

@media (max-width: 700px) {
    .menuButtonBox, #header {
        height: 100vh;
        width: 100vw;
        /*
        margin-top: calc(calc(100vh / 6) - calc(40vh / 6));
         */
        margin-top: 1rem;
        margin-left: 0;

        gap: 1rem;
        font-size: 2rem;
    }

    #menuButton:checked ~ nav {
        height: 80vh;
        box-shadow: 0 0 20px 10px;
        background: var(--primeColor_1);
        border-radius: 0.5rem;

        animation-duration: 1s;
        animation-iteration-count: 1;
        animation-timing-function: linear;
        animation-name: changeNavMobile;
    }

    @keyframes changeNavMobile {
        0% {
            height: 0;
            box-shadow: 0 0 10px 0;
        }

        50% {
            height: 40%;
            box-shadow: 0 0 15px 5px;
        }

        100% {
            height: 80%;
            box-shadow: 0 0 20px 10px;
        }
    }

    #menuButton:not(:checked) ~ nav {
        background: var(--primeColor_1);
        border-radius: 0.5rem;

        animation-duration: 1s;
        animation-iteration-count: 1;
        animation-timing-function: linear;
        animation-name: changeNavMobileBack;
        animation-fill-mode: forwards;
    }

    @keyframes changeNavMobileBack {
        0% {
            height: 80%;
            box-shadow: 0 0 20px 10px;
        }

        50% {
            height: 40%;
            box-shadow: 0 0 15px 5px;
        }

        100% {
            height: 0;
            box-shadow: 0 0 10px 0;
        }
    }

    #menuButton ~ nav > ul, #menuButton:checked ~ nav > ul {
        flex-direction: column;
        gap: 1rem;
        width: 80vw;
    }
}

@media (min-width: 701px) {
    #menuButton ~ nav > ul, #menuButton:checked ~ nav > ul {
        flex-direction: row;
        width: 100%;
    }

    #menuButton:checked ~ nav {

        display: flex;
        width: 90vw;
        flex-direction: row;
        justify-content: center;

        animation-duration: 1s;
        animation-iteration-count: 1;
        animation-timing-function: linear;
        animation-name: changeNav;

        order: 4;
    }

    @keyframes changeNav {
        0% {
            height: 0;
        }

        50% {
            height: 45%;
        }

        100% {
            height: 90%;
        }
    }

    #menuButton:not(:checked) ~ nav {
        animation-duration: 1s;
        animation-iteration-count: 1;
        animation-timing-function: linear;

        animation-name: changeNavBack;

        height: 0;
        font-size: 0;
        order: 4;
    }

    @keyframes changeNavBack {
        0% {
            height: 90%;
        }

        50% {
            height: 45%;
        }

        100% {
            height: 0;
        }
    }


}

.menuButtonBox > input {
    order: 1;
}

.menuButtonBox > label {
    order: 2;
}

.menuButtonBox > nav {
    order: 3;
}

.menuButtonBox > section {
    order: 4;
}

#menuButton {
    font-size: larger;
    display: grid;
    height: 3rem;
    width: 10ch;
    appearance: none;
    text-align: center;
    cursor: pointer;

    justify-content: center;

    color: inherit;
}

#menuButton::before {
    content: "\f0c9";
    font-family: "Font Awesome 6 Pro", serif;
}

#menuButton::after {
    content: "\f00d";
    font-family: "Font Awesome 6 Pro", serif;
    display: none;
}

#menuButton, #menuButton::before {
    display: inherit;
}

#menuButton:checked::before {
    display: none;
}

#menuButton:checked::after {
    display: inherit;
}

/*
    ! Animation erstellen für den Wechsel im Menu
 */

#menuButton ~ nav {

    animation: unset;
}

#menuButton:checked ~ nav {
    order: 4;
}

#menuButton:not(:checked) ~ nav {
    height: 0;
    font-size: 0;
    order: 4;
}

/*
        nav > ul
 */

#menuButton ~ nav > ul {
    display: flex;
    justify-content: space-between;
    list-style-type: none;

    color: inherit;

    font-family: "Narrenschiff", sans-serif;
}

#menuButton:checked ~ nav > ul {
    animation-duration: 1s;
    animation-iteration-count: 1;
    animation-timing-function: linear;
    animation-name: changeUl;

    display: flex;
    justify-content: space-around;

    font-size: 2rem;
    list-style: none;
}

@keyframes changeUl {
    0% {
        height: 0;
        width: 0;
        font-size: 0;
    }

    50% {
        height: auto;
        font-size: 1rem;
        width: 40vw;
    }

    100% {
        height: auto;
        font-size: 2rem;
        width: 80vw;
    }
}

#menuButton:not(:checked) ~ nav > ul {
    animation-duration: 1s;
    animation-iteration-count: 1;
    animation-timing-function: linear;
    animation-name: changeUlBack;
}

@keyframes changeUlBack {

    0% {
        font-size: 2rem;
        width: 80vw;
        height: auto;
    }

    50% {
        height: auto;
        font-size: 1rem;
        width: 40vw;
    }

    100% {
        height: 0;
        width: 0;
        font-size: 0;
    }
}

/*
    #menuLogo
 */

#menuLogo {
    --wD: calc(30vw - calc(30vw - 30vh));
    width: var(--wD);
    height: 30vh;

    background-image: url("/public/assets/media/img/logos/flaschensammler_logo_new_bg_transp_big.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    animation: loadLogo 5s ease-in-out;
    animation-fill-mode: forwards;

}

#menuButton:checked ~ #menuLogo {
    animation-duration: 1s;
    animation-iteration-count: 1;
    animation-timing-function: linear;
    animation-name: changeLogo;

    order: 4;

    height: 0;
}

@keyframes changeLogo {
    0% {
        height: 30vh
    }

    50% {
        height: 15vh;
    }

    100% {
        height: 0;
    }
}


#menuButton:not(:checked) ~ #menuLogo {

    animation-duration: 2s;
    animation-iteration-count: 1;
    animation-timing-function: linear;

    animation-name: changeLogoBack;
    order: 4;
    display: block;
}

@keyframes changeLogoBack {
    0% {
        height: 0;
    }

    50% {
        height: 15vh;
    }

    100% {
        height: 30vh;
    }
}

.menuButtonBox:has(#menuButton:checked) + main {
    animation-duration: 2s;
    animation-iteration-count: 1;
    animation-timing-function: linear;
    animation-name: changeMain;
    filter: blur(10px);
}

@keyframes changeMain {
    0% {
        filter: blur(2px);
    }

    25% {
        filter: blur(4px);
    }

    50% {
        filter: blur(6px);
    }

    75% {
        filter: blur(8px);
    }

    100% {
        filter: blur(10px);
    }
}

.menuButtonBox:has(#menuButton:not(:checked)) + main {
    animation-duration: 2s;
    animation-iteration-count: 1;
    animation-timing-function: linear;
    animation-name: changeMainBack;
    filter: blur(0px);
}

@keyframes changeMainBack {
    0% {
        filter: blur(10px);
    }

    25% {
        filter: blur(8px);
    }

    50% {
        filter: blur(6px);
    }

    75% {
        filter: blur(4px);
    }

    100% {
        filter: blur(2px);
    }
}

#serviceButton {

    display: inline-flex;
    align-items: center;
    justify-content: center;


    padding: 1em;
    border-radius: 2em;
    height: 90%;
    background-color: antiquewhite;
    cursor: pointer;

    font-family: "JetBrainsMono-Regular", sans-serif;
}
/* nice Suchscheinwerfer
.textSlider::before {
     content: '';
     position: absolute;
     left: -50%;
     top: -50%;
     width: 200%;
     height: 200%;
     background: conic-gradient(transparent, rgba(168, 239, 255, 1), transparent 30%);
     animation: rotate 4s linear infinite;
 }

@keyframes rotate {
    100% {
        transform: rotate(1turn);
    }
}

 */