*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Font Reset */
    font-size: 62.5%;
    /* Color */
    --clr-bg: rgba(255, 255, 195, 1);
    --clr-main: rgba(15,15,15,1);
    --clr-highlight: orange;
    /* Margin & Padding */
    --margin-1: 1rem;
    --margin-2: 1.8rem;
    --padding-1: 0.5rem;
    --gap: 1.5rem;
    /* Font Sizes */
    --font-size-headline: clamp(5rem, 3.4667rem + 4.9067vw, 9.6rem);
    --font-size-large: 3rem;
    --font-size-regular: 1.8rem;
    --font-size-info: 1.5rem;
    /* Weiteres */
    --doubleDotWidth: 25px;
}

img,
picture,
video {
    display: block;
    max-width: 100%;
}

button {
    all: unset; /* Resets all styles, but might be too aggressive in some cases */
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    text-align: inherit;
    cursor: pointer; /* Ensures the button still looks clickable */
}

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

ul {
    list-style: none;
}

h1 {
    font-weight: inherit;
    font-size: inherit;
}

strong {
    font-weight: bold;
}

/* Type and Fonts */

/* Job Formatting */

.job_application_item_bottom p {
    font-size: var(--font-size-regular);
    margin-bottom: 1.7rem;
}

.job_application_item_bottom h1 {
    margin-bottom: 0.5rem;
    font-size: var(--font-size-large);
}

/* Forest Formatting */

.forest_text_wrapper {
    display: flex;
    gap: 5rem;
    margin: 5rem var(--gap) 0 var(--gap);
}

@media screen and (width < 500px) {
    .forest_text_wrapper {
        flex-direction: column;
    }
}

.forest_text_wrapper > div {
    flex: 1;
}

.forest_text_wrapper > div:first-child p {
    font-size: var(--font-size-large);
}

.forest_text_wrapper > div:last-child h1 {
    font-size: var(--font-size-large);
}

.forest_text_wrapper > div:last-child p {
    font-size: var(--font-size-regular);
}

.forest-entry {
    margin-bottom: 4rem;
}

/* Location Text */

.locations_wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 2rem;
    row-gap: 4rem;
    margin: 5rem var(--gap) 0 var(--gap);
}

.locations_wrapper > div {
    flex: 1;
}

.location-entry {
    align-self: end;
}

.location-entry p {
    font-size: var(--font-size-regular);
}

.maps_button {
    margin-top: 2rem;
    border: 1px solid black;
    border-bottom: none;
    width: max-content;
    padding: 1rem 1.5rem 0 1.5rem;
}


@media screen and (width < 500px) {
    .locations_wrapper {
        grid-template-columns: 1fr;
        gap: 5rem;
    }
}

.invoice_text {
    grid-column: 1 / -1;
}

/* Body und HTML */

html {
    overscroll-behavior: none;
}

body {
    font-size: 1.6rem;
    background-color: var(--clr-bg);
    font-family: "Helvetica Neue";
}

.no-overflow {
    overflow: hidden;
}

/* Header / Logo */

.logo {
    width: 200px;
    position: fixed;
    top: var(--margin-1);
    /* left: var(--margin-1); */
    z-index: 50;
    /* transform: translateX(calc(-1 * var(--doubleDotWidth) - var(--margin-1)));  */
}

#logo-icon {
    fill: var(--clr-main);
    width: 100%;
}

#logo-icon.dark {
    fill: var(--clr-bg);
}

.double-dot {
    display: none;
}

    @media screen and (width < 500px) {

        .double-dot {
            display: block;
        }

        .logo {
            left: var(--margin-1);
            width: calc(calc(100% - (2 * var(--margin-1))) + var(--doubleDotWidth) + var(--margin-1)); 
            transform: translateX(calc(-1 * var(--doubleDotWidth) - var(--margin-1)));   
            transition: transform 0.2s ease-in-out;       
        }

        .logo.no_transform {
            transform: translateX(0px);
            transition-delay: 0.6s;
        }

        #logo-icon {
            transform-origin: top left;
            transition: all 0.3s ease;
            /* transform: scale(1); */
        }

        #logo-icon.no_transform {
            transform: none;
        }

        /* #logo-icon.scaleDown {
            transform: scale(1);
        } */

        .opular {
            transition: transform 0.5s ease;
            transition-delay: 0.2s;
        }
        
        .invisible {
            /* transform: translateX(-100%); */
            opacity: 0;
        }
        
    }

/* Header Desktop */

.header_desktop {
    display: block;
    color: var(--clr-main);
    border-color: var(--clr-main);
}

.header_desktop.black {
    color: var(--clr-bg);
    border-color: var(--clr-bg);
}

.desktop-nav {
    position: fixed;
    top: var(--margin-1);
    right: var(--margin-1);
    z-index: 50;
}

/* Desktop Navigation */

.desktop-nav nav {
    display: flex;
    align-items: end;
    overflow-x: hidden;
    width: calc(8ch + 2px);
    border: 1.5px solid;
    border-bottom: none;
    transition: 0.5s;
    font-family: "Helvetica Neue";
    padding-top: 0.8rem;
    font-size: 1.8rem;
}

.desktop-nav nav:hover {
    cursor: pointer;
}

.desktop-nav nav ul {
    list-style: none;
    display: flex;
    gap: 1.5ch;
    padding-inline: 1.5ch;
}

.desktop-nav nav ul li {
    text-align: center;
}

.desktop-nav nav ul li.active {
    color: #BBBBBB;
}

.desktop-nav nav ul li:nth-child(1) {width:5ch;}
.desktop-nav nav ul li:nth-child(2) {width:5ch;}
.desktop-nav nav ul li:nth-child(3) {width:4ch;}
.desktop-nav nav ul li:nth-child(4) {width:5ch;}
.desktop-nav nav ul li:nth-child(5) {width:7ch;}
.desktop-nav nav ul li:nth-child(6) {width:5ch;}

.desktop-nav nav.expanded {
    width: 35ch;
}

.desktop-nav nav ul.visible {
    transform: translateX(-6.5ch);
}


    .desktop-secondary ul {
        display: flex;
        gap: var(--gap);
    }

/* Header Mobile */

.header_mobile {
    display: none;
}

.header_mobile-button {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 70;
    border: 1.5px solid var(--clr-main);
    color: var(--clr-main);
    border-bottom: none;
    padding: 0.8rem 2rem 0rem 2rem;
    font-size: var(--font-size-regular);
}

body:has(.main-about) .header_mobile-button,
body:has(.main-jobs) .header_mobile-button,
body:has(.main-forest) .header_mobile-button {
    color: var(--clr-bg);
    border: 1.5px solid var(--clr-bg);
    border-bottom: none;
}

body:has(.main-about) .header_mobile-button.inverted,
body:has(.main-jobs) .header_mobile-button.inverted,
body:has(.main-forest) .header_mobile-button.inverted {
    border: 1.5px solid var(--clr-main);
    color: var(--clr-main);
    border-bottom: none;
}

.header_mobile_wrapper {
    position: fixed;
    top:0;
    width: 100vw;
    height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 80;
    background-color: var(--clr-bg);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    pointer-events: none;
}

    .nav-1 ul {
        text-align: center;
        display: flex;
        flex-direction: column;
        row-gap: 0.7rem;
    }

    .nav-2 ul {
        text-align: center;
        display: flex;
        flex-direction: column;
        row-gap: 0.7rem;
    }

        .nav-1 {
            font-size: 4rem;
            margin-bottom: 5rem;
        }

        .nav-2 {
            font-size: 1.8rem;
        }

@media screen and (width < 500px) {

    .header_desktop {
        display: none;
    }

    .header_mobile {
        display: block;
    }

    .header_mobile_wrapper.open {
        opacity: 1;
        pointer-events: all;
    }

    .close_button {
        position: absolute;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 100;
        border: 1.5px solid var(--clr-main);
        color: var(--clr-main);
        border-bottom: none;
        padding: 0.8rem 2rem 0rem 2rem;
        font-size: var(--font-size-regular);
    }
}


/* Main */

.main {
    min-height: 100svh;
}

.main-locations {
    position: relative;
    width: 100vw;
    display: grid;
    align-items: end;
    padding-bottom: 2rem;
}

@media screen and (width < 650px) {
    .main-locations {
        margin-top: 10vh;
    }
}

/* Home Page */

section {
    /* min-height: 100vh; */
    position: relative;
}


/* Footer */

.footer {
    display: flex;
    justify-content: space-between;
    padding: var(--gap);
    font-size: var(--font-size-info);
}


/* APPLICATION */

.job_application_title {
    font-size: var(--font-size-large);
    padding-bottom: 0.7rem;
}

.job_application_wrapper {
    padding: 5rem var(--gap);
}

.job_application_item {
    display: grid;
    grid-template-rows: max-content 0fr;
    transition: grid-template-rows 0.5s;
    margin-bottom: 4rem;
}

.job_application_item.expanded {
    grid-template-rows: max-content 1fr;
}

.job_application_item_top {
    border: 1px solid black;
    border-bottom: none;
    width: 200px;
    transition: width 0.5s;
    overflow: hidden;
    padding-top: 1.4rem;
    font-size: var(--font-size-regular);
}

.job_application_item_top:hover {
    cursor: pointer;
}

.job_application_item_top.long {
    width: 100%;
}

.job_application_item_top_wrapper {
    display: flex;
    width: 400px;
    transition: transform 0.5s;
}

.job_application_item_top_wrapper > div {
    text-align: center;
    flex: 0 0 50%;
}

.job_application_item_top_wrapper > div:last-child {
    text-align: start;
    padding-inline: 1.7rem;
    transition: 0.2s;
    opacity: 0;
}

.job_application_item_top_wrapper > div:last-child.appear {
    opacity: 1;
}

.job_application_item_top_wrapper.slideRight {
    transform: translateX(-200px);
    transition: transform 0.5s;
}

.job_application_item_bottom {
    overflow: hidden;
}

.job_application_item_bottom > div {
    overflow: hidden;
    padding: 1.7rem;
}

/* VIDEO */

section video {
    width: 100vw;
    height: 100svh;
    object-fit: cover;
}

/*---------------------*/

.video-section {
    position: relative;
    height: 100svh;
}

.text-section {
    height: max-content;
    background-color: var(--clr-bg);
    padding: 2rem var(--gap) 5rem var(--gap);
    font-size: var(--font-size-large);
}

/* Image / Video */

.media-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100svh;
}

.media-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-toggle {
    position: absolute;
    right: var(--gap);
    top: 50%;
    transform: translateY(-100%);
    color: var(--clr-bg);
}

@media screen and (width < 500px) {
    .video-toggle {
        top: calc(100% - 2rem);
    }
}

/* SLOGAN */

.slogan {
    position: absolute;
    left: var(--margin-1);
    bottom: var(--margin-2);
    font-size: var(--font-size-headline);
    line-height: var(--font-size-headline);
    z-index: 10;
    color: var(--clr-main);
}

@media screen and (width < 500px) {
    .slogan {
        height: fit-content;
        width: 90%;
        text-align: start;
        transform: translateY(-50%);
        left: var(--gap);
        top: 50%;
    }
}

.invert .slogan {
    color: var(--clr-bg);
}

/* Imprint / Data Policy */

.main-imprint, .main-data-policy {
    padding: 7rem 1rem;
}

.main-imprint p:not(:last-of-type), .main-data-policy p:not(:last-of-type) {
    margin-bottom: 1.5rem;
}

/* LOGO */
