:root {
    --background: white;
    --primary-color: #e0f0f4;
    --secondary-color: #00708b;
    --third-color: #d8d2c6;
    --accent-color: #9dcb8f;
    --cta-color: #83c3d0;
    --text-color: #002d3b;
    --muted-text: #555;
    --card-shadow: rgba(0, 0, 0, 0.05);
    --card-shadow-strong: rgba(0, 0, 0, 0.1);
    --box-shadow-light: rgba(0, 0, 0, 0.212);
    --marquee-duration: 18s;
}

html,
body {
    margin: 0;
    padding: 0;
    background-color: var(--background);
    color: var(--text-color);
    font-family: sans-serif;
    text-rendering: auto;
    scroll-behavior: smooth;
    max-width: 100vw;
    overflow-x: hidden;
}

section {
    padding: 3rem 2rem;
    max-width: 100vw;
    margin: auto;
}

section h2 {
    color: var(--secondary-color);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 34px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--background);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px var(--card-shadow);
    text-align: center;
}

.call-to-action {
    width: max-content;
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--cta-color);
    color: var(--background);
    text-decoration: none;
    cursor: pointer;
}

.call-to-action:hover {
    opacity: .8;
}

/*============================HEADER==========================================*/

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    height: 100px;
    background-color: var(--background);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 3;
    padding-left: 30px;
    transition: .2s;
    overflow: hidden;
}

.header-img-link {
    height: 100px;
    width: auto;
    color: black;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.header-img-link img {
    height: 100px;
    transition: .2s;
}

header nav {
    display: flex;
    justify-content: center;
    align-items: center;
    width: max-content;
    margin-right: 100px;
    height: 100px;
    font-size: 16px;
}

header nav ul {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: max-content;
    margin: 0px;
    transition: .2s;
}

header nav ul li {
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 2px;
    margin: 10px;
    position: relative;
    transition: .2s;
}

header nav ul li a {
    height: 90px;
    min-width: 100px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    text-decoration: none;
    color: var(--text-color);
    transition: .2s;
}

.header-link a span {
    font-weight: bold;
}

.head-link {
    font-weight: inherit;
}

.head-link.active,
.header-link a:hover,
.header-link a:focus {
    font-weight: bold;
}

.header-link a::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 5px;
    background: var(--accent-color);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.2s cubic-bezier(.4, 0, .2, 1), opacity 0.2s;
    opacity: 0;
}

.header-link a:hover::after,
.header-link a:focus::after {
    transform: scaleY(1);
    opacity: 1;
}


#header-ul:has(.header-link a:hover):not(:has(.header-link a.head-link.active:hover)) .header-link .head-link.active::after,
#header-ul:has(.header-link a:focus):not(:has(.header-link a.head-link.active:focus)) .header-link .head-link.active::after {
    opacity: 0;
    transform: scaleY(0);
}

#header-ul:has(.header-link a:hover):not(:has(.header-link a.head-link.active:hover)) .header-link .head-link.active,
#header-ul:has(.header-link a:focus):not(:has(.header-link a.head-link.active:focus)) .header-link .head-link.active {
    font-weight: normal;
}

.header-link a:hover::after,
.header-link a:focus::after {
    transform: scaleY(1);
    opacity: 1;
}

.header-link a:hover,
.header-link a:focus {
    font-weight: bold;
}


.head-link.active::after {
    transform: scaleY(1);
    opacity: 1;
}

.head-link.active {
    font-weight: bold;
}

.header-link .head-link.active::after span {
    font-weight: bold;

}

.toggle-btn {
    position: absolute;
    top: 18px;
    right: 30px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    transition: .2s;
}

.toggle-btn .bar {
    height: 3px;
    width: 100%;
    background-color: black;
    border-radius: 10px;
    transition: .2s;
    transform: rotate(0deg);
}

.rights {
    display: none;
}

.header-img-link-mobile {
    display: none;

}

@media (max-width: 1360px) {
    header {
        height: 80px;
        box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1) !important;
    }

    .header-img-link img {
        height: 80px;
    }

    header nav ul,
    header nav ul li,
    header nav ul li a {
        height: 70px;
    }
}


@media (max-width: 1210px) {

    header {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        height: 50px;
        padding-left: 0;
        z-index: 3;
        overflow: visible;
    }

    .header-img-link {
        display: none;
    }

    .header-img-link-mobile {
        display: block;
    }


    .header-img-link-mobile img {
        height: 50px;
    }

    .toggle-btn {
        display: flex;
    }

    .toggle-btn.active {
        margin-top: 10px;
    }

    .toggle-btn .bar1.active {
        transform: rotate(45deg);
    }

    .toggle-btn .bar2.active {
        opacity: 0;
    }

    .toggle-btn .bar3.active {
        transform: rotate(-45deg);
        position: absolute;
    }

    header nav {
        height: 0px;
    }

    .navbar-links {
        transform: translateX(100vw);
        width: 100vw;
        height: 100vh;
        position: absolute;
        right: 0;
        top: 50px;
        background-color: var(--background);
        transition: .4s;
        font-size: 1.25rem;
        align-items: flex-start;
        justify-content: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .navbar-links.active {
        transform: translateX(0px);
    }

    header ul {
        flex-direction: column;
        justify-content: center;
        width: 100%;
        padding: 0;
        left: 0;
    }

    .navbar-links li {
        width: 150px;
        height: max-content;
        margin-bottom: 20px;
        margin-top: 20px;
        text-align: center;
    }

    .navbar-links li a {
        height: max-content;
    }



    header nav ul .header-contact-btn {
        background-color: transparent;
        padding: 0px;
        border-radius: 0px;
        box-shadow: 0px 0px 0px black;
    }

    .rights {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 190px;
    }

    .rights a {
        color: black;
        text-decoration: none;
        margin-left: 10px;
        margin-right: 10px;
    }

    .rights a:hover {
        color: var(--cta-color);
        text-decoration: underline;
    }

    .rights p {
        color: black;
        margin: 0;
    }

    .toggle-btn {
        margin-top: -5px;
    }

    .toggle-btn.active {
        margin-top: 5px;
    }
}

@media (max-width: 380px) {
    .header-img-link-mobile img {
        height: 40px;
    }


}

/*============================HERO==========================================*/

.banner {
    width: min(100%, 1000vw);
    background-color: rgb(251, 255, 199);
    overflow: hidden;
    position: absolute;
    top: 100px;
    left: 0;
}

.track {
    white-space: nowrap;
    display: inline-block;
    /* eigene Breite -> -100% bezieht sich auf Track-Breite */
    padding: 1rem 0;
    /* vertikaler Innenabstand */
    will-change: transform;
    animation: marquee var(--marquee-duration) linear infinite;
}

/* Der eigentliche Text */
.item {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    letter-spacing: .2px;
    padding: 0 .75rem;
}

/* Animation: Start komplett rechts außerhalb (100%), Ende komplett links außerhalb (-100%) */
@keyframes marquee {
    from {
        transform: translateX(100vw);
    }

    to {
        transform: translateX(-100%);
    }
}

/* Hover zum Pausieren */
.banner:hover .track {
    animation-play-state: paused;
}

/* Motion-Setting respektieren */
@media (prefers-reduced-motion: reduce) {
    .track {
        animation: none;
        transform: translateX(0);
    }
}




.hero {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 0rem 0rem 0rem 4rem;
    padding-top: 100px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    height: 600px;
    position: relative;
}

.hero-text {
    max-width: 460px;
}

.hero-text h1 {
    font-size: 3.7rem;
    margin-bottom: 1rem;
    margin-top: 0;
    font-weight: normal;
}

.hero-text p {
    font-size: 2rem;
}

.hero-text ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-left: -10px;
}

.hero ul li {
    display: flex;
    align-items: top;
}

.hero ul li img {
    width: 35px;
    height: 35px;
    vertical-align: middle;
    margin-top: -8px;
}

.hero-img {
    max-width: 50vw;
    height: 100%;
    width: 50%;
    object-fit: cover;
    object-position: top;
}

.call-to-action img {
    width: 35px;
    height: 35px;
    vertical-align: middle;
}

.hero .call-to-action {
    padding-left: 10px;
    font-weight: bold;
}

@media (max-width: 1360px) {
    .hero {
        padding-top: 80px;
    }

    .banner {
        top: 80px;
    }
}

@media (max-width: 1210px) {
    .hero {
        padding-top: 50px;
    }

    .banner {
        top: 50px;
    }
}

@media (max-width: 1105px) {
    .hero-img {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 2rem 1rem;
        padding-top: 50px;
        padding-left: 20px;
        height: fit-content;
        height: 80vh;
    }

    

    .hero-text {
        max-width: 450px;
        display: flex;
        flex-direction: column;
        text-align: left;
    }

    .hero ul li {
        margin-bottom: 10px;
    }

    .hero-img {
        max-width: 300px;
        margin-top: 2rem;
        display: none;
    }

    .hero-text h1 {
        font-size: 2.5rem;
        max-width: 300px;
    }

    .hero-text p {
        font-size: 1.5rem;
    }
}

.popUp {
    background-color: rgba(0, 0, 0, 0.361);
    min-width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.popUp-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 15px;
    padding-top: 20px;
    padding-left: 25px;
    padding-right: 25px;
    background-color: var(--primary-color);
    color: var(--text-color);
    max-width: 300px;
    width: 100%;
    text-align: left;
    position: relative;
    box-shadow: 2px 2px 5px var(--box-shadow-light);
}

.popUp h4 {
    margin-bottom: 0px;
}

.popUp-content a {
    color: var(--secondary-color);
}

.close-popup-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
}

.popUp-content a:hover {
    opacity: .6;
}

.close-popup-btn img {
    height: 15px;
    width: 15px;
    margin-left: 5px;
}


/*============================ABOUT-US==========================================*/

.about-us-section {
    background-color: var(--background);
    padding-top: 70px;
    padding-bottom: 70px;
    padding-left: 0;
    padding-right: 0;
    max-width: 100vw;
    color: #333;
    font-family: inherit;
    position: relative;

}

.about-us-section h2 {
    color: var(--secondary-color);
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 5px;
    text-align: left;
    color: var(--text-color);
    margin-left: 20px;
}

.about-items {
    position: relative;
    margin-top: 60px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.about-item {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 0;
    max-width: 700px;
    padding-left: 20px;
    padding-right: 20px;
    background: none;
    box-shadow: none;
    position: relative;
    transition: transform 0.3s ease;
}

.about-item img {
    width: 180px;
    height: 170px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
    filter: drop-shadow(1px 1px 1px var(--card-shadow));
}

.about-text {
    max-width: 480px;
}

.intro-label {
    font-weight: 700;
    font-size: 14px;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.about-text h3 {
    margin: 0 0 10px;
    font-size: 22px;
    color: var(--text-color);
}

.about-text p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--muted-text);
}

.top-item {
    transform: translateX(240px) translateY(0);
    z-index: 1;
}

.middle-item {
    transform: translateX(80px) translateY(20px);
    z-index: 2;
}

.bottom-item {
    transform: translateX(240px) translateY(40px);
    z-index: 1;
}

.special-item {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 140px;
    padding: 0px;
    padding-top: 50px;
    padding-bottom: 50px;
}

.special-item h3 {
    margin: 0 0 10px;
    font-size: 28px;
    margin-bottom: 40px;
}

.special-item p {
    color: var(--muted-text);
}

.special-item span {
    font-size: 20px;
}

.special-text {
    max-width: 600px;
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
}

.hidden {
    display: none;
    color: var(--muted-text);
}

.leitbild button {
    background-color: white;
    border: none;
    color: var(--accent-color);
    text-decoration: underline;
    font-size: 14px;
}

.leitbild button:hover {
    opacity: .8;
    cursor: pointer;
}


@media (max-width: 940px) {
    .about-items {
        gap: 50px;
    }

    .about-item {
        flex-direction: column;
        text-align: center;
        max-width: 100%;
        transform: none !important;
    }

    .about-item img {
        margin-bottom: 15px;
    }
}

.leitbild {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

.leitbild img {
    width: 500px;
    height: 600px;
    object-fit: cover;
}

.leitbild-container {
    max-width: 800px;
    margin: auto;
    padding: 20px;
    text-align: left;
}

.leitbild p {
    text-align: left;
}

/*============================LEISTUNGEN==========================================*/

.leistung-section {
    padding-left: 0px;
    padding-right: 0px;
    max-width: 100vw;
    background-color: var(--background);
    position: relative;
}

.leistung-container {
    background-color: var(--primary-color);
    max-width: 100vw;
    height: 100%;
    padding-bottom: 10px;
    padding-left: 20px;
    padding-right: 20px;
}

.leistung-section .section-title {
    color: var(--secondary-color);
}

.leistungs-title {
    margin-bottom: 0px;
}

.info-boxes {
    margin-top: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.info-box.big {
    background-color: var(--background);
    padding: 1.5rem;
    box-shadow: 0 2px 8px var(--card-shadow);
}

@media (max-width: 768px) {
    .info-boxes {
        grid-template-columns: 1fr;
    }
}

.info-boxes .call-to-action {
    color: var(--cta-color);
    background-color: var(--background);
    border: 2px solid var(--cta-color);
}

.info-boxes .call-to-action:hover {
    color: var(--background);
    background-color: var(--cta-color);
}

/*
.popUpOne {
    background-color: var(--background);
    box-shadow: 0 2px 8px var(--card-shadow);
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    top: 50px;
    right: 0;
    height: 100vh;
    width: 100%;
    transform: translateX(100vw);
    transition: .2s;
}

.popUpOne.active {
    transform: translateX(0px);
    top: 0vh
}

.popUpOne ul {
    display: flex;
    flex-direction: column;
    max-width: 600px;
}

.popUpOne li {
    text-align: left;
    max-width: fit-content;
}

.popUpOne button {
    background-color: white;
    border: none;
    color: var(--secondary-color);
    text-decoration: underline;
    cursor: pointer;
    float: right;
    font-size: 16px;
    word-wrap: break-word;
}
*/

.leistung-slider {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: fit-content;
    margin-top: 200px;
    margin-bottom: 100px;
}

.slide {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1000px;
    gap: 40px;
    transition: .5s;
    margin-top: -70px;
}

.slider-card {
    background-color: var(--background);
    width: 260px;
    height: 320px;
    padding-left: 10px;
    padding-right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    box-shadow: 2px 2px 5px var(--box-shadow-light);
}

.item-img {
    height: 60px;
    width: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--cta-color);
    border-radius: 50%;
    padding: 20px;

}

.slider-card img {
    height: 60px;
    width: 60px;
}

.slider-card h3 {
    margin-bottom: 0;
}

.slider-card p {
    margin-bottom: 0;
    margin-top: 15px;
}

.slider-card .call-to-action {
    color: var(--cta-color);
    background-color: var(--background);
    border: 2px solid var(--cta-color);
}

.slider-card .call-to-action:hover {
    color: var(--background);
    background-color: var(--cta-color);
}

.card-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
}

.slider-buttons {
    margin-top: 70px;
}

.slider-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--background);
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
    width: 100px;
    border: none;
}

.slider-btn:hover {
    opacity: 0.8;
}

.slider-btn.next {
    background-color: var(--cta-color);
    color: var(--background);
}

.slider-btn.inactive {
    opacity: .5;
}

.slide-one {
    transform: translateX(0px);
    position: relative;
}

.slide-one.closed {
    transform: translateX(-100vw);
    position: absolute;
}

.slide-two {
    transform: translateX(100vw);
    position: absolute;
}

.slide-two.active {
    transform: translateX(0px);
    position: relative;
}

.slide-three {
    transform: translateX(100vw);
    position: absolute;
}

.slide-three.active {
    transform: translateX(0px);
    position: relative;
}

@media (max-width: 1270px) {

    .leistung-section {
        background-color: var(--background);
    }

    .leistungs-title h2 {
        margin-bottom: -60px;
    }

    .slide,
    .card-divider {
        flex-wrap: wrap;
    }

    .offset {
        margin-top: 0px;
    }

    .slider-card {
        margin-top: 20px;
        max-width: 300px;
    }
}

/*============================LOCATION==========================================*/

.standort-section {
    background-color: var(--background);
}



.standort-section h2 {
    margin-bottom: 80px;
}

.locations-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.location-card {
    background: var(--background);
    box-shadow: 2px 2px 5px var(--box-shadow-light);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 500px;
}

.location-card img {
    width: 100%;
    height: auto;
}

.location-info {
    padding: 1rem 1.5rem;
    text-align: left;
}

table tr {
    display: flex;
    flex-wrap: wrap;
}

table tr td {
    min-width: 100px;
    margin-right: 20px;
    text-align: left;
}

.team-btn {
    background-color: white;
    border: 2px solid var(--cta-color);
    color: var(--cta-color);
    transition: .2s;
}

.team-btn:hover {
    background-color: var(--cta-color);
    color: var(--background);
    opacity: 1;
}

.location-card .call-to-action {
    border: 2px solid var(--cta-color);
}


/*============================FRAGEN==========================================*/


.fragen-section {
    background-color: var(--background);
    max-width: 100vw;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: center;
    min-height: 800px;
    position: relative;
    padding-top: 100px;
    padding-bottom: 70px;

}

.fragen-section details {
    background-color: var(--background);
    color: var(--text-color);
    box-shadow: 2px 2px 5px var(--box-shadow-light);
    width: 600px;
    padding: 20px;
    margin: 20px;
    margin-bottom: 40px;
    text-align: left;
    cursor: pointer;
    transition: .2s;
}

.more-questions {
    background-color: var(--background);
    color: var(--text-color);
    max-width: 600px;
    padding: 20px;
    box-shadow: 2px 2px 5px var(--box-shadow-light);
    margin-top: 20px;
    margin-bottom: 40px;
    text-align: left;
    transition: .2s;
}

.more-questions h3 {
    margin-top: 0;
}

.fragen-section .call-to-action:hover {
    opacity: .8;
}

@media (max-width: 659px) {
    .fragen-section details {
        max-width: 400px;
        width: 80vw;
    }

    .more-questions {
        max-width: 400px;
        width: 80vw;
    }
}

/*============================PARTNER==========================================*/

.partner-section {
    background-color: var(--background);
    padding: 70px 20px 100px;
    color: #333;
    font-family: inherit;
    position: relative;
}

.partner-section h2 {
    color: var(--secondary-color);
}

.partner-container {
    position: relative;
    margin-top: 60px;
    margin-bottom: 20px;
    max-width: 930px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    gap: 40px;
}

.partner-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    width: 230px;
    box-shadow: 2px 2px 5px var(--box-shadow-light);
    padding: 20px;
    text-align: left;
}

.partner-item img {
    width: 140px;
    height: 130px;
}


/*============================FOOTER==========================================*/


footer {
    background-color: var(--text-color);
    color: var(--background);
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}