*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    font-weight: 350;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0 10vw;
    width: 100%;
    overflow-x: hidden;
    padding-top: 18vh;
    /* Fixed header height compensation */
}

a:focus,
button:focus {
    outline: none;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0 10vw;
    height: 18vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), background-color 0.3s ease, height 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

/* Class to hide header when scrolling down */
.header--hidden {
    transform: translateY(-100%);
}

/* Class for a scrolled state (optional, for visual polish) */
.header--scrolled {
    height: 12vh;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #1d1d1f;
    font-weight: 200;
    font-size: 15pt;
    letter-spacing: -0.01em;
}

p {
    color: #1d1d1f;
    line-height: 1.7em;
}

button {
    padding: 10px 24px;
    font-size: small;
    cursor: pointer;
    border-radius: 6px;
    border: none;
    background: #ffffff;
    color: #1d1d1f;
    font-family: 'Open Sans', sans-serif;
    font-weight: 350;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 24px;
}

.link-logo {
    text-decoration: none;
    color: #707070;
    font-family: 'Open Sans', sans-serif;
    font-weight: 350;
    opacity: 80%;
}

.link-logo:hover {
    color: #1d1d1f;
}

.link-logo img {
    max-height: 50px;
}

nav {
    display: flex;
    gap: 24px;
}

nav a {
    text-decoration: none;
    color: #707070;
    font-family: 'Open Sans', sans-serif;
    font-weight: 350;
    font-size: small;
    transition: 0.3s;
}

nav a:hover {
    color: #1d1d1f;
    transition: 0.3s;
    font-weight: 450;
}

.menu-responsive {
    display: none;
    height: fit-content;
    width: fit-content;
}

.menu-responsive img {
    height: 20px;
    opacity: 70%;
}

.menu-responsive img:hover {
    opacity: 100%;
    transition: 0.3s;
}

main {
    min-height: fit-content;
    padding-top: 20px;
}

main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 90%;
    border: 1px solid #00000010;
    border-radius: 6px;
}

.title {
    margin-bottom: 50px;
}

.title p,
.title h1,
.title h2 {
    font-family: 'Open Sans', sans-serif !important;
    font-weight: 100 !important;
    font-size: 18pt !important;
    color: #1d1d1f !important;
    text-transform: uppercase !important;
}

.additional-section {
    width: 100%;
    min-height: fit-content;
    padding-top: 8vh;
    padding-bottom: 6vh;
    margin-bottom: 8vh;
    text-align: center;
}

.additional-section>p {
    max-width: 1000px;
    line-height: 1.8em;
    margin: 0 auto;
}

.portfolio-gallery {
    display: flex;
    flex-direction: column;
    gap: 5vh;
}

.portfolio-element-landingpage {
    width: 100%;
    height: calc(fit-content + 50px);
    display: flex;
    justify-self: space-around;
    align-items: center;
    border-radius: 6px;
    border: none;
    background: #ffffff;
    color: #1d1d1f;
    font-family: 'Open Sans', sans-serif;
    font-weight: 350;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 24px;
}

.portfolio-element-landingpage img {
    width: 60%;
}

.portfolio-element-landingpage p {
    width: 100%;
    text-align: center;
}

footer {
    margin-top: 10vh;
    width: 100%;
    height: fit-content;
    background-color: transparent;
    border-top: 1px solid #1d1d1f10;
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}

.footer-nav a {
    color: #1d1d1f;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: normal;
    text-transform: uppercase;
    font-weight: 400;
    opacity: 0.75;
    transition: opacity 0.3s;
}

.footer-nav a:hover {
    opacity: 1;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.copyright {
    font-size: 12px;
    margin: 0;
    text-align: center;
    opacity: 0.35;
    /* Keeps copyright very subtle */
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-btn {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    font-size: 11px !important;
    letter-spacing: 0.08em;
    font-weight: 400;
    color: #1d1d1f !important;
    opacity: 0.6;
    cursor: pointer;
}

.lang-btn.active {
    opacity: 1;
    font-weight: 700;
}

.lang-separator {
    font-size: 10px;
    color: #1d1d1f;
    opacity: 0.2;
    user-select: none;
}

@media (max-width: 720px) {
    footer {
        padding: 60px 20px;
        gap: 30px;
    }

    .footer-nav {
        gap: 20px;
        flex-direction: row;
    }

    .product-overview-container {
        border-radius: 0px !important;
        box-shadow: none !important;
    }
}

@media (min-width: 2000px) {
    .link-logo img {
        max-height: 70px;
    }
}

.additional-section-qa {
    margin-top: 10vh;
    margin-bottom: 10vh;
}

/* container */
.qa-container {
    max-width: 800px;
    margin: 0 auto;
}

/* qa item */
.qa-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
}

/* question as button for accessibility */
.question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: bold;
    padding: 15px;
    background: #f9f9f9;
    border: none;
    cursor: pointer;
    text-align: left;
    gap: 12px;
    color: inherit;
    border-radius: 6px;
}

.q-text {
    flex: 1;
    color: #1d1d1f;
    font-weight: 400;
    font-size: larger;
}

/* arrow styling and rotation animation (rotates 90° when open) */
.arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1d1d1f;
    transition: transform 300ms cubic-bezier(.2, .8, .2, 1);
    transform-origin: 50% 50%;
}

/* closed: arrow pointing right (0deg). open: rotate 90deg (quarter turn) */
.qa-item.open .arrow {
    transform: rotate(90deg);
}

/* answer: smooth height + fade transition */
.answer {
    padding: 0 10px 10px 10px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 300ms ease, opacity 220ms ease;
    padding-top: 10px;
}

.qa-item.open .answer {
    opacity: 1;
    max-height: 400px;
}


@media (max-width: 720px) {
    body {
        margin: 0;
        padding: 0;
        padding-top: 14vh;
    }

    header {
        padding: 0 5vw;
        height: 14vh;
    }

    main {
        padding-top: 0;
    }

    .title {
        padding: 0 5vw;
    }

    .additional-section {
        padding: 6vh 5vw 5vh 5vw;
        margin-bottom: 4vh;
    }

    .additional-section p {
        padding: 0;
    }

    .about-content {
        padding: 0 5vw;
    }

    footer {
        padding: 10vh 5vw;
        width: 100%;
    }

    .additional-section-portfolio {
        display: none;
    }

    .additional-section-qa {
        padding: 0 5vw;
    }

    .img-hero {
        border-radius: 0px;
    }
}

@media (max-width: 670px) {
    .menu-responsive {
        display: block !important;
    }

    nav a {
        display: none !important;
    }

    .qa-item.open .answer {
        max-height: 600px;
    }

    .impressum-content {
        padding: 0 5vw;
    }
}

@media (max-width: 900px) {
    .product-overview-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 40px 20px;
    }

    .product-actions {
        justify-content: center;
    }

    .title-product h2 {
        font-size: 28px;
    }
}

/* Product Overview Section */
.additional-section-product {
    width: 100%;
    margin-top: 10vh;
    padding-bottom: 5vh;
}

.product-overview-container {
    display: flex;
    align-items: center;
    gap: 80px;
    background: #ffffff;
    border-radius: 6px;
    padding: 60px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 50px;
    margin-bottom: 20px;
}

.product-image {
    flex: 1;
}

.product-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 24px;
    transition: transform 0.5s ease;
}

.product-image img:hover {
    transform: scale(1.02);
}

.product-content {
    flex: 1;
}

.title-product {
    margin-bottom: 24px;
}

.title-product p {
    font-size: 14px;
    letter-spacing: 0.1em;
    color: #707070;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 100;
}

.title-product h2 {
    font-size: 32px;
    font-weight: 300;
    margin: 0;
}

.product-content p {
    font-size: 16px;
    color: #4a4a4a;
    line-height: 1.6;
    margin-bottom: 40px;
}

.product-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.action-link {
    text-decoration: none;
}

.product-actions button {
    cursor: pointer;
}

.primary-btn {
    background: #1d1d1f;
    color: #ffffff !important;
    padding: 10px 24px;
    font-size: small;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    font-weight: 350;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 24px;
}

.secondary-btn {
    background: #ffffff;
    color: #1d1d1f;
    padding: 10px 24px;
    font-size: small;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    font-weight: 350;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 24px;
}

@media (max-width: 1100px) {
    .product-overview-container {
        gap: 40px;
        padding: 40px;
    }
}