@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');

body,
html {
    padding: 0;
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #121212;
    color: #ffffff;
    overflow-x: hidden;
    overflow-y: auto;
    height: 100vh;
}

body {
    display: flex;
}

nav {
    width: 30%;
    background-color: #1e1e1e;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    display: block !important;
}

.button-grid {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    right: 20px;
    width: 240px;
    top: 30px;
}

.image-holder {
    height: 150px;
    position: relative;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
}

@keyframes pulseSaturate {

    0%,
    100% {
        filter: saturate(1.0);
    }

    50% {
        filter: saturate(1.5);
    }
}

.image-holder img {
    width: 60%;
    height: auto;
    position: absolute;
    border-radius: 50%;
    filter: saturate(1.2);
}

.image-holder img:hover {
    animation: pulseSaturate 1.6s ease-in-out infinite;
}



nav button {
    background-color: #2a2a2a;
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    text-align: right;
    transition: background 0.2s ease;
    z-index: 999;
}

nav button:hover {
    background-color: #373737;
}

main {
    flex-grow: 1;
    scrollbar-width: thin;
    scrollbar-color: white transparent;
    width: 55%;
}

/* Für WebKit-basierte Browser (Chrome, Edge, Safari) */
main::-webkit-scrollbar {
    width: 6px;
}

main::-webkit-scrollbar-track {
    background: transparent;
}

main::-webkit-scrollbar-thumb {
    background-color: white;
    border-radius: 3px;
}


h1,
h2 {
    color: #00b688;
}

ul {
    padding-left: 20px;
}

li {
    margin-bottom: 6px;
}

.divider {
    height: 1px;
    background-color: #2f2f2f;
    margin: 20px 0;
}

/* Sektionen sind standardmäßig versteckt */
section {
    display: none;
    padding: 0px 40px 0px 0px;
}

/* Sichtbare Sektion */
section.visible {
    display: block;
}

/* Sprachwahl */
.language-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: end;
    margin-bottom: 10px;
    position: absolute;
    z-index: 90;
    width: 100%;
    bottom: 0;
    right: 10px;
}

.language-selector h3 {
    margin: 0;
    font-size: 1rem;
    color: #cccccc;
    background-color: #00000099;
    padding: 5px;
    border-radius: 10px;
}

.language-selector img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s ease;
    border: 2px solid transparent;
}

@keyframes pulseSaturateAndBorder {

    0%,
    100% {
        filter: saturate(1.0);
        border-color: #00b68967;
    }

    50% {
        filter: saturate(1.5);
        border-color: #00b689d7;
    }
}

@keyframes pulseSaturate {

    0%,
    100% {
        filter: saturate(1.0);
    }

    50% {
        filter: saturate(1.5);
    }
}

.language-selector img.active {
    opacity: 1;
    border: 2px solid #00b68967;
    animation: pulseSaturateAndBorder 1.6s ease-in-out infinite;
}

.language-selector img:hover {
    opacity: 1;
    animation: pulseSaturate 1.6s ease-in-out infinite;
}

.section-image-wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.section-image {
    max-height: 140px;
    border-radius: 6px;
    cursor: pointer;
    transition: filter 0.3s ease;
    filter: saturate(1);
}

.section-image:hover {
    filter: saturate(1.5);
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.modal-img {
    position: relative;
    max-width: 80vw;
    max-height: 80vh;
    object-fit: contain;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.main-div {
    padding: 2vh 10vw 0 10vh;
    overflow-y: auto;
    max-height: 76vh;
}

.banner-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

#bannerImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: absolute;
    filter: saturate(1.0);
}

/* Gradient Border Bottom Effekt */
.banner-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.banner-image::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    /* Höhe des Fades */
    background: linear-gradient(to bottom, #00b68967, transparent);
    pointer-events: none;
}


.button-grid h3 {
    text-align: center;
    margin: 45px 0 15px;
    display: block;
    z-index: 999;
}

#cfpBackground {
    width: 500px;
    height: 500px;
    margin-top: -180px;
    margin-right: -8px;
    opacity: 0.4;
    filter: saturate(1.5);
}

.button-active {
    background-color: #00b68967;
    color: #fff;
    font-weight: bold;
}

@keyframes pulseSaturateBanner {

    0%,
    100% {
        filter: saturate(1.0);
    }

    50% {
        filter: saturate(1.3);
    }
}

#bannerImage:hover {
    animation: pulseSaturateBanner 2.5s ease-in-out infinite;
}

.variable-type {
    padding: 2px 5px;
    background-color: #353535;
    border-radius: 3px;
    margin-left: 5px;
    margin-right: 5px;
}

.variable-name {
    padding: 2px 5px;
    border-radius: 2px;
    margin-left: 5px;
    margin-right: 5px;
}

.download-button {
    padding: 10px;
    color: white;
    text-decoration: none;
    background: #125c49;
    border-radius: 5px;
    margin-bottom: 120px;
}

.download-button:hover {
    opacity: 0.7;
    cursor: pointer;
}

.download-grid {
    padding: 20px;
}

@media screen and (min-width: 1600px) {
    main {
        width: 65%;
    }

    nav {
        width: 30%;
    }

    section {
        padding: 0px 200px 0px 0px;
    }

}

@media screen and (max-width: 1920px) and (min-width: 1080px) {
    main {
        width: 60%;
    }

    nav {
        width: 30%;
    }

    section {
        padding: 0px 100px 0px 0px;
    }
}