@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/Open_Sans/opensans-bold-webfont.woff2') format('woff2'),
        url('../fonts/Open_Sans/opensans-bold-webfont.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/Open_Sans/opensans-regular-webfont.woff2') format('woff2'),
        url('../fonts/Open_Sans/opensans-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/Open_Sans/opensans-light-webfont.woff2') format('woff2'),
        url('../fonts/Open_Sans/opensans-light-webfont.woff') format('woff');
    font-weight: lighter;
    font-style: normal;
}

/* ========== Base Reset ========== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Open Sans", sans-serif;
    line-height: 1.5;
    color: #333;
    font-size: 16px;
}

section {
    position: relative;
    z-index: 1;
}

/* ========== Common Elements ========== */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
    font-size: 25px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========== Header ========== */
.header {
    background-color: #FFEF1A;
    padding: 2rem 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: end;
    width: 100%;
}

.logo-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.main-title {
    color: #003e7e;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
}

.logo img {
    max-height: 60px;
    width: auto;
}

.language-switch {
    margin-left: auto;
}

.language-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid #003e7e;
    border-radius: 4px;
    color: #003e7e;
    transition: all 0.3s ease;
}

.language-btn:hover {
    background-color: #003e7e;
    color: white;
}

/* ========== Main Content ========== */
main {
    width: 100%;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0;
}

/* Intro Section */
.intro-section {
    background-color: #FFEF1A;
    padding: 5rem 2rem;

}

.intro-section .container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.intro-content {
    width: 53%;
}

.intro-content h2 {
    font-size: 48px;
    color: #003e7e;
    margin-bottom: 3.5rem;
    max-width: 400px;
}

.intro-content p {
    margin-bottom: 3.5rem;
    line-height: 1.8;
}

.try-it-out {
    margin-top: 2rem;
}

.try-it-out p:first-child {
    font-weight: bold;
    font-size: 1.2rem;
}

.ar-experience {
    flex: 1;
    min-width: 300px;
}

.ar-experience h3 {
    color: #003e7e;
    margin-top: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 37px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    width: fit-content;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-icon {
    width: 190px;
    height: 190px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.feature-icon img {
    max-height: 80%;
    object-fit: contain;
}

.feature-item p {
    max-width: 200px;
    margin-bottom: 0;
}

/* Content Sections */
.content-section {
    padding: 5rem 2rem;
    position: relative;
}

.section-title-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: end;
    width: fit-content;
    margin-bottom: 3rem;
    gap: 1rem;

}

.section-tag {
    display: inline-block;
    position: relative;
    font-size: 30px;
    line-height: 1;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background-color: #ffde00;
    color: #2074B9;
}

.section-tag::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 70%;
    width: 20px;
    aspect-ratio: 1;
    transform: rotate(45deg) translate(0%, 32%);
    z-index: -1;
    background-color: #ffde00;

}

.section-title {
    margin-bottom: 2rem;
    width: 479px;
}

.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    position: relative;
}

.text-content {
    flex: 1;
    min-width: 300px;
}

.text-content h3 {
    font-size: 37px;
    color: white;
    margin-bottom: 2rem;
}

.text-content p {
    color: white;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.more-link {
    font-size: 20px;
    font-weight: bold;
    color: white;
    text-decoration: underline;
}


.model-container {
    background: white;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    /* margin-top: -20%; */

}

model-viewer {
    width: 100%;
    height: 100%;
}

model-viewer button {
    background-color: #ffef1a;
        position: absolute;
        bottom: 5%;
        right: 5%;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 84px;
        background-color: #ffef1a;
        padding: 1rem;
        border-radius: 50%;
        cursor: grab;
}

.rotate-icon {
    position: absolute;
    bottom: 5%;
    right: 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 84px;
    background-color: #ffef1a;
    padding: 1rem;
    border-radius: 50%;
    cursor: grab;
}

.rotate-icon img {
    width: 100%;
    height: 100%;
}

/* Section Colors */
.geniessen {
    background-color: #009182;
}

.auftanken {
    background-color: #74C15C;
}

.durchatmen {
    background-color: #2074B9;
}

.weitergeben {
    background-color: #2074B970;
}

.background-figure {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: -1;
}

.background-figure.intro {
    left: 0;
    bottom: 0;
    width: 100%;
}

.background-figure.geniessen {
    position: relative;
    margin-top: 2rem;
}

.background-figure.auftanken {
    width: 100%;
}

.background-figure.weitergeben {
    left: 15%;
    background: none;
}


/* ========== Footer ========== */
footer {
    background-color: #000;
    color: white;
    padding: 2rem;
}

.footer-content {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}


/* ========== Responsive Styles ========== */

@media (max-width: 1024px) {
    .header {
        margin: 0;
        padding: 0;
    }

    .header .container {
        flex-direction: column-reverse;
        align-items: flex-start;
        padding: 0;
    }

    .logo-container {
        display: flex;
        flex-direction: row-reverse;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        width: 100%;
        background: white;
        padding: 1rem;
    }

    .language-switch {
        margin-left: 0;
    }

    .main-title {
        padding: 0 20px;
        margin-top: 4rem;
    }

    .intro-section .container {
        flex-direction: column;
    }

    .intro-content {
        width: 100%;
    }

    .section-content {
        display: flex;
        flex-direction: column-reverse;
    }
    .section-title {
            width: 327px;   
    }

    .model-container {
        width: 100%;
    }

    model-viewer button {
        padding: .5rem;
        width: 48px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    p {
        font-size: 16px;
    }



    .language-btn {
        font-size: 14px;
        padding: 0.4rem 0.8rem;
    }

    .intro-section {
        flex-direction: column;
        padding: 2rem 5%;
    }

    .intro-section .container {
        gap: 0;
    }

    .intro-content h2 {
        font-size: 29px;
        margin-bottom: 2rem;
    }

    .intro-content p {
        margin-bottom: 2rem;
    }

    .feature-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .feature-icon {
        width: 146px;
        height: 146px;
    }

    .feature-icon img {
        max-height: 55%;
        object-fit: contain;
    }

    .content-section {
        padding: 2rem 5%;
    }



    .section-content {
        flex-direction: column;
        gap: 2rem;
    }

    .text-content {
        order: 1;
    }

    .text-content h3 {
        font-size: 28px;
    }

    .more-link {
        font-size: 18px;
    }

    .rotate-icon {
        width: 60px;
        bottom: 3%;
        right: 3%;
    }

    footer {
        padding: 1.5rem 5%;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    footer nav {
        margin-right: 0;
        margin-bottom: 1rem;
        width: 100%;
    }

    footer nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    footer nav a {
        font-size: 0.9rem;
    }

    .copyright {
        margin-top: 1rem;
        width: 100%;
    }
}

@media (max-width: 480px) {

    .logo-container {
        gap: 1rem;
    }

    .logo img {
        max-height: 45px;
    }

    .ar-experience h3 {
        font-size: 24px;
    }

    .content-section {
        padding-bottom: 7rem;
    }

    .section-title-wrapper {
        margin-bottom: 0;
    }

    .section-tag {
        font-size: 22px;
    }

    .background-figure.weitergeben {
        left: 0%;
    }

    section.content-section.geniessen {
        padding-bottom: 2rem;
    }

}