/*Generelle Einstellungen*/
:root {
    --primary: #56C5E4;
    --petrol: #385259;
    --petrol-transparent: rgba(56, 82, 89, .95);
    --highlight: #93B6BF;
}

::selection {
    color: var(--petrol);
    background: var(--primary);
}

@font-face {
    font-family: Montserrat;
    src: url("../font/montserrat.ttf");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Montserrat;
    color: var(--primary);
    font-size: 15px;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--petrol);
}

body.noscroll {
    overflow: hidden;
}

p {
    color: var(--primary)
}

h1 {
    font-size: 30px;
    font-family: "cofo-kabeltouw-stencil-38", Montserrat, sans-serif;
    font-weight: normal;
    margin-bottom: 10px;
}

h2 {
    font-size: 22px;
    font-family: "cofo-kabeltouw-stencil-38", Montserrat, sans-serif;
    font-weight: lighter;
    margin-bottom: 5px;
}

h3 {
    font-weight: bold;
    margin: 10px 0 5px 0;
}

/*Navigation*/
nav {
    background-color: white;
    padding: 20px;
    position: sticky;
    top: 0;
    width: 100%;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.nav_logo {
    height: 70px;
    object-fit: contain;
}

.nav_links {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    width: 100%;
}

.nav_indicator {
    position: absolute;
    bottom: -4px;
    left: -2.5px;
    height: 2px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: transform 0.2s ease-out, width 0.2s ease-out;
    will-change: transform, width;
}

.a_nav {
    transition: .2s ease-out;
    text-decoration: none;
    font-size: 18px;
}

.a_nav:hover {
    color: var(--highlight);
}

/*Main*/
main {
    margin: 5% 15%;
}

main section {
    scroll-margin-top: 170px;
    margin-top: 30px;
}

/*Liste fertig*/

.article_img {
    width: 100%;
    aspect-ratio: 16/9;
    margin: 10px 0;
    object-fit: cover;
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.onepager_img {
    width: 100%;
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.lightbox_img {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--petrol-transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    cursor: zoom-out;
    animation: fadeIn 0.2s ease-out;
}

.lightbox_img img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}



.a_text {
    color: var(--highlight);
    text-decoration: none;
    position: relative;
}

.a_text::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: var(--highlight);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.a_text:hover::after {
    transform: scaleX(1);
}

.dual_header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/*Liste für Regeln, ziemlich kompliziert*/

/* Basisliste: 1., 2., 3. */
ol {
    counter-reset: list-item;
    list-style: none;
    padding-left: 1em;
}

ol li {
    counter-increment: list-item;
    position: relative;
    padding-left: 1.2em;
    text-indent: 0;
    margin: 0.3em 0;
}

ol li::before {
    content: counter(list-item) ".";
    position: absolute;
    left: 0;
}

/* 2. Ebene: a., b., c. */
ol ol {
    counter-reset: list-item;
    padding-left: 1em;
}

ol ol li::before {
    content: counter(list-item, lower-alpha) ".";
}

/* 3. Ebene: I., II., III. */
ol ol ol {
    counter-reset: list-item;
    padding-left: 1em;
}

ol ol ol li::before {
    content: counter(list-item, upper-roman) ".";
}

ol ul {
    list-style-type: disc;
    padding-left: 1em;
    margin-top: 0.3em;
}

ul li {
    margin: 0;
    padding: 0;
    text-indent: 0;
}

ul li::before {
    content: none !important;
}

.video_iframe {
    width: 100%;
    aspect-ratio: 16/9;
    margin-bottom: 15px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/*Footer*/
footer {
    background-color: var(--primary);
    height: 100px;
    display: flex;
    align-items: center;
    gap: 5%;
    padding: 3.5%;
}

footer p {
    color: var(--petrol);
    font-size: 9px;
}

.footer_logo {
    height: 100%;
}

.footer_text {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (min-width: 768px) {

    /*Generelle Einstellungen*/
    * {
        font-size: 19px;
    }

    h1 {
        font-size: 40px;
        margin-bottom: 12px;
    }

    h2 {
        margin-top: 12px;
        font-size: 25px;
    }

    /*Navigation*/
    .nav_logo {
        height: 80px;
    }

    .nav_links {
        padding: 0 25%;
    }

    .a_nav {
        font-size: 23px;
    }

    .nav_indicator {
        bottom: -6px;
        height: 3px;
    }

    /*Main*/
    main section {
        scroll-margin-top: 190px;
    }

    /*Footer*/
    footer {
        height: 120px;
    }

    footer p {
        font-size: 12px;
    }
}

@media (min-width: 1200px) {

    /*Generelle Einstellungen*/
    * {
        font-size: 20px;
    }

    h1 {
        font-size: 50px;
    }

    h2 {
        font-size: 30px;
    }

    /*Navigation*/
    .nav_logo {
        height: 100px;
    }

    .nav_links {
        padding: 0 30%;
    }

    .a_nav {
        font-size: 25px;
    }

    /*Main*/
    main section {
        scroll-margin-top: 215px;
    }

    #kurzfassung {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .onepager_img {
        width: 60%;
    }

    /*Footer*/
    footer {
        height: 150px;
    }

    footer p {
        font-size: 15px;
    }
}

@media (min-width: 1440px) {

    /*Generelle Einstellungen*/
    * {
        font-size: 23px;
    }

    h1 {
        font-size: 60px;
        margin-bottom: 20px;
    }

    h2 {
        font-size: 35px;
        margin-top: 20px;
    }

    h3 {
        margin-top: 20px;
    }

    /*Navigation*/
    .nav_logo {
        height: 120px;
    }

    .nav_links {
        padding: 0 35%;
    }

    .a_nav {
        font-size: 28px;
    }

    /*Main*/
    main section {
        scroll-margin-top: 243px;
    }

    main {
        margin: 3% 25%;
    }

    ol li {
        margin-bottom: 5px;
    }

    .article_img {
        margin: 20px 0;
    }

    .onepager_img {
        width: 60%;
    }

    /*Footer*/
    footer {
        height: 200px;
        padding: 2% 10%;
    }

    footer p {
        font-size: 18px;
    }
}