@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap');

:root {
    --font-color: #272730;
    --site-margin: 10%;
}

[data-loading] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

h1 {
    font-family: "Lexend", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-size: 93px;
}

h2 {
    font-family: "Lexend", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-size: 57px;
    margin-bottom: 20px;

    hyphens: auto;
    overflow-wrap: break-word;
}

h3 {
    font-family: "Lexend", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-size: 26px;
    hyphens: auto;
    overflow-wrap: break-word;
}

p {
    font-family: "Lexend", sans-serif;
    font-optical-sizing: auto;
    font-weight: 200;
    font-style: normal;
    font-size: 20px;
    margin-top: 10px;
    line-height: 30px;
}

#team img {
    width: 345px;
    height: 345px;
}

/* Navigation */

nav {
    width: 100%;
}

#nav_content {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.nav_logo {
    width: 488px;
    height: 120px;
    margin: 38px 0 0 0;
}

nav ul {
    display: inline;
}

nav ul li {
    display: inline;
}

nav ul li a {
    display: inline-block;
    padding: 40px 50px;
    text-decoration: none;
    font-family: "Lexend", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-size: 20px;
    color: var(--font-color);
}

#vacation {
    background-color: #CA4D4D;
    height: 50px;
    width: 100%;
    display: none;
    align-items: center;
    justify-content: center;
}

#vacation p {
    font-family: "Lexend", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-size: 20px;
    color: #fff;
    text-align: center;
    margin-top: 0;
}

.nav_toggle {
    display: none;
}

/* Header */

header {
    width: 100%;
    min-height: 700px;
    background-color: #4C8EAF;
    padding: 120px var(--site-margin);
    display: flex;
    justify-content: center;
    flex-direction: column;
}

header h1 {
    color: #fff;
}

header h2 {
    color: #ffffffbf;
}

/* Homepage */

#home {
    display: flex;
    gap: 60px;
    padding: 120px var(--site-margin) 0 var(--site-margin);
}

#home img {
    height: 345px;
    border-radius: 10px;
    object-fit: cover;
    width: 50%;
}

#home_text {
    width: 50%;
}

#sections {
    display: flex;
    padding: 120px 0 0 0;
    flex-direction: column;
}

#sections img {
    height: 345px;
    border-radius: 10px;
    object-fit: cover;
    width: 50%;
}

.section {
    display: flex;
    flex-direction: row-reverse;
    gap: 60px;
    padding: 120px var(--site-margin);
}

.section_flex {
    width: 50%;
}

.section:nth-of-type(odd) {
    background-color: #4C8EAF;
    color: #fff;
}

/* FOOTER */

footer {
    background-color: #f1faff;
    height: 164px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--site-margin);
    text-align: end;
}

footer img {
    height: 80px;
    width: 311px;
}

#footer_links {
    display: flex;
    justify-content: end;
    flex-direction: column;
}

#footer_links a {
    text-decoration: none;
    font-family: "Lexend", sans-serif;
    font-optical-sizing: auto;
    font-weight: 200;
    font-style: normal;
    font-size: 16px;
    line-height: 26px;
    color: var(--font-color);
}

/* PRAXEN */

#locations {
    display: flex;
    flex-direction: column;
}

.location {
    width: 100%;
    padding: 0 var(--site-margin);
    margin: 60px 0;
}

.location img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    height: 345px;
}

.location a {
    display: inline-block;
    width: 100%;
}

.location_info {
    display: flex;
    justify-content: space-between;
}

.location_info :nth-child(2) {
    text-align: right;
}

/* TEAM */

.kategorien {
    display: flex;
    gap: 40px;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-bottom: 60px;
}

#team {
    padding: 60px var(--site-margin);
}

#team a {
    text-decoration: none;
    color: var(--font-color);
    flex: 1 1 300px;
    max-width: 345px;
    margin-bottom: 20px;
}

#team a p {
    margin: 0;
}

#team a img {
    border-radius: 10px;
    width: 100%;
    height: auto;
}

/* Mitarbeiter */
#portrait {
    padding: 60px var(--site-margin);
    display: flex;
    gap: 60px;
}

#portrait img {
    width: 30%;
    border-radius: 10px;
    object-fit: cover;
}

.downloads {
    padding: 60px var(--site-margin);
    display: flex;
    gap: 60px;
}

#dokumente,
#links {
    flex: 1;
    min-width: 0;
    display: none;
}

#dokumente h3,
#links h3 {
    margin-bottom: 20px;
}

.download_link {
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #272730;
    border-bottom: 1px solid #272730;
    margin-bottom: -1px;
    text-decoration: none;
}

.download_link img {
    height: 100%;
    padding: 15px;
}

.download_link p {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
    color: #272730;
}

#weitere_informationen {
    padding: 60px var(--site-margin);
}

/* Konservativ */

#konservativ {
    margin-bottom: 120px;
}

.konservativ_section {
    display: flex;
    flex-direction: row-reverse;
    gap: 60px;
    padding: 120px var(--site-margin) 0 var(--site-margin);
}

.k_image {
    height: 345px;
    border-radius: 10px;
    object-fit: cover;
    width: 50%;
}

.konservativ_section .section_flex .downloads {
    padding: 0;
}

.k_download_link {
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #272730;
    border-bottom: 1px solid #272730;
    margin-bottom: -1px;
    text-decoration: none;
}

.k_download_link img {
    height: 100%;
    padding: 15px;
}

.k_download_link p {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
    color: #272730;
}

#konservativ .downloads {
    margin-top: 20px;
}

/* OPERATIONEN */

#operationen {
    display: flex;
    flex-direction: column;
    padding: 120px var(--site-margin);
}

#operationen p {
    margin: 0;
}

#operationen h2 {
    margin-top: 60px;
}

#op_standorte {
    margin-top: 100px;
}

.op_sec {
    display: flex;
    gap: 60px;
}

.op_sec_img img {
    height: 345px;
    border-radius: 10px;
    object-fit: cover;
    width: 50%;
}

.op_sec_img {
    height: 345px;
    border-radius: 10px;
    object-fit: cover;
    width: 50%;
}

.op_sec .section_flex {
    flex-direction: column;
    display: flex;
}

.section_flex .links {
    margin-top: 20px;
}


/* WIRBELSÄULE */
#wirbelsaule {
    display: flex;
    flex-direction: column;
    padding: 120px var(--site-margin);
}



/* RESPONSIVE */
@media (max-width: 1400px) {
    #home {
        flex-direction: column;
    }

    #home img {
        width: 100%;
        height: 400px;
        object-position: 50% 23%;
    }

    #home_text {
        width: 100%;
    }

    #sections {
        flex-direction: column;
    }

    #sections img {
        width: 100%;
    }

    .section {
        flex-direction: column-reverse;
    }

    .section_flex {
        width: 100%;
    }

    .konservativ_section {
        flex-direction: column-reverse;
        gap: 60px;
    }

    .k_image {
        height: 345px;
        width: 100%;
    }

    .k_download_link img {
        height: 90%;
        padding: 15px;
    }

    .op_sec {
        flex-direction: column;
    }

    .op_sec_download_icon {
        height: 100%;
    }

    .op_sec_img {
        width: 100%;
    }

    .mitarbeiter_download_icon {
        height: 90%;
    }


}

@media (max-width: 1040px) {
    h1 {
        font-size: 60px;
    }

    h2 {
        font-size: 40px;
        margin-bottom: 20px;
    }

    h3 {
        font-size: 20px;
    }

    p {
        font-size: 14px;
        margin-top: 10px;
        line-height: 20px;
    }

    #footer_links a {
        font-size: 14px;
        line-height: 20px;
    }

    footer img {
        height: 60px;
        width: auto;
    }

    .download_link img {
        height: 90%;
    }

    nav {
        position: sticky;
        top: 0;
        z-index: 100;
        background-color: #fff;
    }

    #nav_content {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        margin: 0 var(--site-margin);
    }

    .nav_logo {
        width: 244px;
        height: 60px;
        margin: 20px 0;
        display: block;
    }

    /* Burger button */
    .nav_toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 0 8px;
        background: none;
        border: none;
        cursor: pointer;
    }

    .nav_toggle span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: var(--font-color);
        border-radius: 2px;
        transition: transform 0.3s, opacity 0.3s;
    }

    /* Burger turns into an X when open */
    .nav_toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav_toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .nav_toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Menu: hidden until opened, full width below the logo */
    nav ul {
        display: none;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    nav ul.open {
        display: block;
    }

    nav ul li {
        display: block;
        text-align: center;
    }

    nav ul li a {
        display: block;
        padding: 15px 0;
    }

    #portrait {
        flex-direction: column;
        gap: 20px;
    }

    #portrait img {
        max-width: 500px;
        width: 100%;
        height: auto;
    }

    .downloads {
        flex-direction: column;
    }


}