/* styles.css */

body {
    margin: 0;
    font-family: 'niveau-grotesk', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.6;
    color: #015046;
    background-color: #ffffff;
}

h1, h2 {
    font-family: 'niveau-grotesk', sans-serif;
    font-weight: 500;
    font-size: 85px;
    margin: 0;
    line-height: 1.2;
}

.logo {
    max-width: 250px;
    padding-top: 50px;
}

.icon {
    width: 135px;
}

.section {
    max-width: 2000px;
    margin-left: auto;
    margin-right: auto;
    padding: 150px 200px;
    box-sizing: border-box;
}

.section--header {
    position: relative;
    background: url('../img/header.jpg') no-repeat center center;
    background-size: cover;
    color: #ffffff;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 0;
}

.section--header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4); /* 40% schwarzes Overlay */
    z-index: 1;
}

.section--header .container {
    padding-top: 0;
}

.container {
    width: 100%;
    box-sizing: border-box;
}

.header__overlay {
    
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative; /* Wichtig, damit z-index greift */
    z-index: 2;
}

.header__topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
}

.header__content {
    text-align: center;
    margin-bottom: 60px;
}

.section--centered-text p {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 30px;
}

.section__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 60px;
}

.section__row--reverse {
    flex-direction: row-reverse;
}

.section__image img {
    width: 100%;
    max-width: 700px;
    height: auto;
    display: block;
}

.section__text {
    max-width: 700px;
    color: inherit;
}

.section__text hr {
    width: 75px;
    height: 10px;
    border: none;
    margin: 30px 0;
}

/* Hintergrundfarben */
.section--white {
    background-color: #ffffff;
    color: #015046;
}

.section--green {
    background-color: #015046;
    color: #ffffff;
}

.section--lightgray {
    background-color: #F1F1ED;
    color: #015046;
}

.footer {
    text-align: center;
}

.footer__links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.footer__links a {
    text-decoration: none;
}

.section--green .footer__links a {
    color: #A0F59B;
}

.section--lightgray .footer__links a {
    color: #FFB43C;
}

.section--white .footer__links a {
    color: #FEF39B;
}

.link {
    display: inline-flex;
    align-items: center;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.link__icon {
    width: 14px;
    height: 14px;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

/* Farbvarianten */
.link--green {
    color: #A0F59B;
}
.link--green:hover {
    color: #c7fbc2;
}
.link--green:hover .link__icon {
    transform: translateX(4px);
}

.link--rose {
    color: #FF9BB5;
}
.link--rose:hover {
    color: #ffc6d5;
}
.link--rose:hover .link__icon {
    transform: translateX(4px);
}

.link--blue {
    color: #5BE2FF;
}
.link--blue:hover {
    color: #92eafd;
}
.link--blue:hover .link__icon {
    transform: translateX(4px);
}

.link--orange {
    color: #FFB43C;
}
.link--orange:hover {
    color: #ffd98e;
}
.link--orange:hover .link__icon {
    transform: translateX(4px);
}

.link--yellow {
    color: #FEF39B;
}
.link--yellow:hover {
    color: #fff8c9;
}
.link--yellow:hover .link__icon {
    transform: translateX(4px);
}

.language-switch {
    display: flex;
    gap: 12px; /* Abstand zwischen DE und EN */
}

.language {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    color: #015046;
}

.language--de {
    background-color: #A0F59B;
}

.language--en {
    background-color: #FFFFFF;
}

.largenegativemargintop {
    margin-top: -600px;
}

.mediumnegativemargintop {
    margin-top: -400px
}

.smallnegativemargintop {
    margin-top: -300px
}


@media (max-width: 1860px) {
    body {
        font-size: 20px;
    }

    h1 {
        font-size: 76px;
    }

    h2 {
        font-size: 62px;
    }

    

    .section {
        max-width: 1600px;
        margin-left: auto;
        margin-right: auto;
    }

    .section__row {
        flex-wrap: nowrap;
        gap: 60px;
    }

    .section__image {
        flex: 1 1 45%;
    }

    .section__image img {
        max-width: 100%;
        height: auto;
    }

    .section__text {
        flex: 1 1 55%;
        max-width: 100%;
    }

    .section__text hr {
        width: 60px;
        height: 6px;
        margin: 24px 0;
    }

    .section--centered-text p {
        font-size: 26px;
        padding: 0 40px;
    }

    .logo {
        max-width: 240px;
        padding-top: 40px;
    }

    .icon {
        width: 120px;
    }

    .header__topbar {
        padding: 40px 60px;
    }

    .header__content {
        margin-bottom: 80px;
        padding: 0 60px;
    }

    .language {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .footer__links {
        gap: 28px;
    }

    .largenegativemargintop {
        margin-top: -300px;
    }

    .mediumnegativemargintop {
        margin-top: -200px;
    }

    .smallnegativemargintop {
        margin-top: -200px;
    }
}

@media (max-width: 1440px) {
    body {
        font-size: 19px;
    }

    h1 {
        font-size: 68px;
    }

    h2 {
        font-size: 56px;
    }

    .section {
        padding: 80px 40px;
    }

    .section__row {
        flex-wrap: nowrap; /* verhindert Umbruch */
        gap: 40px;
    }

    .section__image {
        flex: 1 1 40%;
    }

    .section__image img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .section__text {
        flex: 1 1 60%;
        max-width: 100%;
    }

    .section__text hr {
        width: 50px;
        height: 3px;
        margin: 20px 0;
    }

    .section--centered-text p {
        font-size: 22px;
        padding: 0 30px;
    }

    .header__topbar {
        padding: 30px 40px;
    }

    .header__content {
        margin-bottom: 70px;
        padding: 0 40px;
    }

    .language {
        width: 42px;
        height: 42px;
        font-size: 15px;
    }

    .footer__links {
        gap: 24px;
    }

    .largenegativemargintop {
        margin-top: -450px;
    }

    .mediumnegativemargintop {
        margin-top: -280px;
    }

    .smallnegativemargintop {
        margin-top: -280px;
    }
}

@media (max-width: 1024px) {
    .scroll-arrow svg {
        width: 45px;
        height: auto;
    }

    body {
        font-size: 19px;
    }

    h1 {
        font-size: 68px;
    }

    h2 {
        font-size: 56px;
    }

    .logo {
        max-width: 220px;
        padding-top: 30px;
    }

    .icon {
        width: 110px;
    }

    .section {
        padding: 80px 40px;
    }

    .section__row {
        flex-direction: column;
        gap: 50px;
    }

    .section__image {
        width: 100%;
    }

    .section__image img {
        width: 100%;
        height: auto;
        max-width: none;
    }

    .section__text {
        width: 100%;
        max-width: 100%;
    }

    .section__text hr {
        width: 50px;
        height: 3px;
        margin: 20px 0;
    }

    .section--centered-text p {
        font-size: 22px;
        padding: 0 20px;
    }

    .header__topbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 20px 30px;
    }

    .header__content {
        margin-bottom: 60px;
        padding: 0 30px;
    }

    .language {
        width: 42px;
        height: 42px;
        font-size: 15px;
    }

    .footer__links {
        flex-direction: row;
        gap: 25px;
    }

    .largenegativemargintop {
        margin-top: -200px;
    }

    .mediumnegativemargintop {
        margin-top: -200px;
    }

    .smallnegativemargintop {
        margin-top: -120px;
    }
}


@media (max-width: 768px) {
    body {
        font-size: 18px;
    }

    h1 {
        font-size: 56px;
    }

    h2 {
        font-size: 40px;
    }

    .logo {
        max-width: 200px;
        padding-top: 30px;
    }

    .icon {
        width: 100px;
    }

    .section {
        padding: 70px 30px;
    }

    .section__row {
        flex-direction: column;
        gap: 50px;
    }

    .section__image img {
        max-width: 100%;
    }

    .section__text {
        max-width: 100%;
    }

    .section__text hr {
        width: 50px;
        height: 4px;
        margin: 20px 0;
    }

    .section--centered-text p {
        font-size: 22px;
        padding: 0 20px;
    }

    .header__topbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
    }

    .header__content {
        margin-bottom: 50px;
        padding: 0 20px;
    }

    .language {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }

    .footer__links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }

    .largenegativemargintop {
        margin-top: -180px;
    }

    .mediumnegativemargintop {
        margin-top: -180px;
    }

    .smallnegativemargintop {
        margin-top: -140px;
    }
}

@media (max-width: 580px) {
    .scroll-arrow svg {
        width: 35px;
    }

    body {
        font-size: 16px;
    }

    h1 {
        font-size: 44px;
    }

    h2 {
        font-size: 36px;
    }

    .logo {
        max-width: 180px;
        padding-top: 20px;
    }

    .icon {
        width: 80px;
    }

    .section {
        padding: 60px 20px;
    }

    .section__row {
        flex-direction: column;
        gap: 40px;
    }

    .section__image img {
        max-width: 100%;
    }

    .section--centered-text p {
        font-size: 20px;
        padding: 0 10px;
    }

    .section__text {
        max-width: 100%;
    }

    .section__text hr {
        width: 40px;
        height: 5px;
        margin: 20px 0;
    }

    .header__topbar {
        flex-direction: column;
        gap: 10px;
        padding-top: 10px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .header__content {
        margin-bottom: 40px;
        padding: 0 10px;
    }

    .language {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .footer__links {
        flex-direction: column;
        gap: 10px;
    }

    .largenegativemargintop {
        margin-top: -150px;
    }

    .mediumnegativemargintop {
        margin-top: -120px;
    }

    .smallnegativemargintop {
        margin-top: -120px;
    }
}
.scroll-arrow {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    animation: pulse 2s infinite;
    transition: opacity 0.25s ease;
    opacity: 1;
    pointer-events: none;
}

.scroll-arrow svg {
    transform: rotate(90deg);
}


@keyframes pulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.2);
    }
}

.scroll-arrow--hidden {
    opacity: 0;
}

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
