* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: inherit;
    font-size: inherit;
    font-family: inherit;
}


@font-face {
    font-family: 'WorkSans';
    src: url("../fonts/work-sans/WorkSans-VariableFont_wght-hnuFeDd.ttf") format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'WorkSansItalic';
    src: url("../fonts/work-sans/WorkSans-Italic-VariableFont_wght-DQ4VATm.ttf") format('truetype');
    font-weight: 100 900;
    font-style: italic;
}

@font-face {
    font-family: 'DM Sans';
    src: url("../fonts/dm-sans/DMSans-VariableFont_wght-9pdvXqW.ttf") format('truetype');
    font-weight: 100 1000;
    font-style: normal;
}


#design, #references, #characteristics, #downloads, #faq, #contact {
    scroll-margin-top: 140px;
}

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    font-family: 'WorkSans', sans-serif;
    background-color: #F3F3F3;
    margin-top: 120px;
    line-height: 30px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
    display: none;
}

body:has(.auth-page) {
    margin-top: 0;
}

.hidden {
    display: none !important;
}

.container {
    width: 80%;
    max-width: 1300px;
    margin: auto;
}

a {
    text-decoration: unset;
    color: inherit;
    cursor: pointer;
}

button {
    all: unset;
    box-sizing: border-box;
    text-align: revert;
    cursor: pointer;
}

h1 {
    font-weight: unset;
    font-size: 1.3rem;
}

header {
    background-color: #F3F3F3;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9200;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
}

.header__logo {
    font-size: 3rem;
}

.header__subtitle {
    font-size: 0.8rem;
}

.header__center {
    display: flex;
    gap: 50px;
}

.button {
    display: flex;
    border: 1px solid black;
    border-radius: 100px;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 5px 5px 5px 20px;
    max-width: 230px;
    text-transform: uppercase;
    font-size: 0.8rem;

}

.header__mobile-toggle {
    display: none;
}

.header__toggle-icon {
    width: 28px;
    height: 28px;
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #F3F3F3;
    z-index: 9100;
    padding: 20px;
    padding-top: 80px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.is-open {
    transform: translateX(0);
}


.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 60px;
    font-size: 1.4rem;
}

.mobile-menu__nav-link,
.mobile-menu__nav .button {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.mobile-menu.is-open .mobile-menu__nav .mobile-menu__nav-link:nth-child(1),
.mobile-menu.is-open .mobile-menu__nav .button:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.15s; }
.mobile-menu.is-open .mobile-menu__nav .mobile-menu__nav-link:nth-child(2),
.mobile-menu.is-open .mobile-menu__nav .button:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.2s; }
.mobile-menu.is-open .mobile-menu__nav .mobile-menu__nav-link:nth-child(3),
.mobile-menu.is-open .mobile-menu__nav .button:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.25s; }
.mobile-menu.is-open .mobile-menu__nav .mobile-menu__nav-link:nth-child(4),
.mobile-menu.is-open .mobile-menu__nav .button:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.3s; }
.mobile-menu.is-open .mobile-menu__nav .mobile-menu__nav-link:nth-child(5),
.mobile-menu.is-open .mobile-menu__nav .button:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.35s; }
.mobile-menu.is-open .mobile-menu__nav .mobile-menu__nav-link:nth-child(6),
.mobile-menu.is-open .mobile-menu__nav .button:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.4s; }

.hero__video-wrapper {
    position: relative;
}

.hero__iframe-wrapper {
    position: relative;
    padding-top: 56.25%;
}

.hero__video {
    width: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.hero__scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
}


.hero__text {
    display: flex;
    gap: 50px;
    margin-top: 45px;
}

.partners {
    text-align: center;
    margin: 80px auto;
}

.partners__logos {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.partners__logo {
    flex: 1;
    min-width: 0;
}

.design__images {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.design__image {
    flex: 1;
    min-width: 0;
    width: 100%;
    max-width: 410px;
}

.materials {
    margin: 80px auto;
}

.materials__images {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.materials__img {
    display: flex;
    flex-direction: column;
}

.materials__img-photo {
    width: 100%;
    max-width: 200px;
}

.js-materials-carousel.flickity-enabled {
    display: block;
    overflow: visible;
}

.js-materials-carousel.flickity-enabled .materials__img {
    width: 180px;
    margin-right: 20px;
}

.materials__images {
    position: relative;
}

.reviews {
    background-color: white;
    padding: 40px 0 80px 0;
}

.reviews__body {
    display: flex;
    justify-content: space-between;
    gap: 100px;
}

.reviews__item {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.reviews__item-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 1px solid black;
    object-fit: cover;
}

.reviews__item-photo--placeholder {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 1px solid black;
    background-color: #D9D9D9;
}

.reviews__item-name {
    margin: 20px 0 10px 0;
}

.technical {
    background-color: white;
    padding: 40px 0 80px 0;
}

.technical__row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 0;
    gap: 20px;
}

.technical__item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    line-height: 1.3;
    padding: 40px 0 20px 10px;
}

.technical__item-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    object-fit: contain;
}

.technical__value {
    opacity: 0.5;
}

.technical__footnote {
    width: 60%;
    text-align: right;
    margin: 50px 0 50px auto;
}

.technical__image {
    width: 100%;
}

.details {
    background-color: white;
    padding-bottom: 80px;
}

.details__body {
    display: flex;
    margin-top: 20px;
}

.details__left h2,
.details__right h2 {
    font-weight: 600;
    margin-bottom: 20px;
}

.details__group {
    margin-bottom: 25px;
    line-height: 1.3;
    width: 70%;
}

.details__value {
    white-space: pre-line;
}

.details__download {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid black;
    border-radius: 100px;
    padding: 5px 5px 5px 20px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    gap: 15px;
    letter-spacing: 0.05em;
    width: fit-content;
    text-transform: uppercase;
}

.details__download-icon {
    width: 36px;
    height: 36px;
}

.details__images {
    display: flex;
    gap: 150px;
}

.details__image {
    /*flex: 1;*/
    min-width: 0;
    /*width: 0;*/
    object-fit: contain;
}

.development {
    margin: 80px auto;
}

.development__img {
    position: relative;
    padding-bottom: 56.25%;
    width: 100%;
    margin-top: 20px;
}

.development__videos {
    display: flex;
    gap: 50px;
    margin-top: 80px;
}

.development__video {
    flex: 1;
    min-width: 0;
}

.faq {
    padding: 80px 0;
    width: 60%;
}

.faq__item {
    padding: 30px 0;
}

.faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
}

.faq__question-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.faq__answer {
    display: none;
    margin-top: 15px;
    opacity: 0.7;
}

/* Auth pages */
body:has(.auth-page) {
    margin-top: 0;
}

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #EEF1F4;
    font-family: 'DM Sans', sans-serif;
}

.auth-box {
    width: 90%;
    max-width: 400px;
    padding: 40px 30px;
    background-color: white;
    border-radius: 4px;
    border: solid 2px #EBEBEB;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-box__title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #545F71;
    text-align: center;
}

.auth-box__label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    color: #545F71;
}

.auth-box__input {
    width: 100%;
    padding: 10px;
    border: 1px solid #EBEBEB;
    border-radius: 4px;
    font-size: 0.95rem;
    color: #545F71;
    box-sizing: border-box;
}

.auth-box__btn {
    width: 100%;
    padding: 12px;
    background-color: #545F71;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    cursor: pointer;
    margin-top: 20px;
}

.auth-box__link {
    text-align: center;
    font-size: 0.85rem;
    color: #9BA5B7;
    text-decoration: underline;
}

.auth-error {
    font-size: 0.85rem;
    color: #c0392b;
}

.auth-success {
    font-size: 0.85rem;
    color: #27ae60;
}

.footer__body {
    border-bottom: 1px solid black;
    border-top: 1px solid black;
    display: flex;
    gap: 70px;
    padding: 70px 0;
}

.footer__left {
    width: 40%;
    padding-left: 50px;
}

.footer__people {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer__person:first-child {
    place-self: flex-end;
    margin-bottom: -100px;
}

.footer__person:last-child {
    place-self: center;
    margin-top: -100px;
}

.footer__person {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9rem;
}

.footer__person-name {
    text-align: center;
}

.footer__person-img {
    max-width: 116px;
    width: 100%;
    margin-bottom: 15px;
}

.footer__left-text {
    margin-top: 30px;
    font-size: 0.9rem;
}

.footer__form {
    flex: 60%;
}

.footer__form-flash {
    margin-bottom: 20px;
    font-size: 0.875rem;
}

.footer__form-flash--success {
    color: #27ae60;
}

.footer__form-flash--error {
    color: #c0392b;
}

.footer__form h1 {
    margin-bottom: 40px;
}

.footer__form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 40px;
    margin-bottom: 20px;
}

.footer__form-field {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #000;
    margin-bottom: 35px;
}

.footer__form-field--full {
    grid-column: 1 / -1;
    margin-top: 30px;
}

.footer__form-input,
.footer__form-textarea {
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 1rem;
    padding: 0 0 15px 0;
    resize: none;
    width: 100%;
}

.footer__form-input::placeholder {
    color: #000;
    opacity: 1;
}

.footer__form-textarea::placeholder {
    color: #999;
}

.footer__form-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
    gap: 40px;
}

.footer__form-privacy {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    flex: 1;
    line-height: 1.3;
}

.footer__form-privacy input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
    border: 1px solid black;
    background-position: center center;
    background-repeat: no-repeat;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    padding: unset;
}

.footer__form-privacy input[type="checkbox"]:checked {
    background-color: black;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1.5 6L4.5 9L10.5 3' stroke='white' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.footer__form-privacy-link {
    color: inherit;
    font-weight: 700;
}

.footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 30px 0;
}

.footer__bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.footer__locale {
    background: none;
    border: none;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    color: inherit;
}

/* @ others */

.subtitle {
    margin: 15px 0;
}

.underlined {
    text-decoration: underline;
}

/* References carousel */

.references__wrapper {
    margin-top: 40px;
}

.references__item {
    width: calc(33.33% - 20px);
    max-width: 410px;
    margin-right: 30px;
}

.references__image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: var(--color-tertiary);
}

.references__image-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.references__open {
    position: absolute;
    bottom: 16px;
    left: 16px;
}

.references__open-icon {
    width: 36px;
    height: 36px;
    display: block;
}

.references__item-label {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: 0.9rem;
}

.js-references-carousel .flickity-prev-next-button,
.js-materials-carousel .flickity-prev-next-button {
    top: auto;
    bottom: -48px;
    transform: none;
    width: 80px;
    height: 24px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.js-references-carousel .flickity-prev-next-button:hover,
.js-materials-carousel .flickity-prev-next-button:hover {
    background: transparent;
}

.js-references-carousel .flickity-prev-next-button.previous,
.js-materials-carousel .flickity-prev-next-button.previous {
    left: 0;
}

.js-references-carousel .flickity-prev-next-button.next,
.js-materials-carousel .flickity-prev-next-button.next {
    right: 0;
}

.js-references-carousel .flickity-button-icon,
.js-materials-carousel .flickity-button-icon {
    display: none;
}

.js-references-carousel .flickity-prev-next-button::after,
.js-materials-carousel .flickity-prev-next-button::after {
    content: '';
    display: block;
    width: 100%;
    height: 13px;
    background: url("data:image/svg+xml,%3Csvg width='58' height='13' viewBox='0 0 58 13' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.5 6.29614L57.0186 6.29615' stroke='black' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M51.6917 0.3396L57.0186 6.29665L51.6917 12.2537' stroke='black' stroke-width='0.67924' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.js-references-carousel .flickity-prev-next-button.previous::after,
.js-materials-carousel .flickity-prev-next-button.previous::after {
    transform: scaleX(-1);
}

.references__wrapper {
    padding-bottom: 72px;
}

/* ── Reference detail page ───────────────────── */

body:has(.ref-page) {
    margin-top: 0;
}

.ref-page {
    padding: 40px 60px;
}

.ref-page__header {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 40px;
}

.ref-page__close {
    background-color: #E0E0E0;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.ref-page__title {
    width: 100%;
    text-align: center;
}

.ref-page__close-icon {
    width: 24px;
    height: 24px;
}

.ref-page__body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.ref-page__arrow-slot {
    width: 80px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

.ref-page__arrow-icon {
    width: 80px;
    height: auto;
    cursor: pointer;
}

.ref-page__arrow--prev .ref-page__arrow-icon {
    transform: scaleX(-1);
}

.ref-page__image-row {
    flex: 1;
    min-width: 0;
    max-width: 950px;
    display: flex;
    grid-template-columns: 1fr 220px;
    gap: 20px;
}

.ref-page__main {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    align-self: flex-start;
}

.ref-page__main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ref-page__main-img--video {
    object-fit: contain;
    background: #000;
}

.ref-page__meta {
    max-width: 950px;
    margin: 20px auto 0;
}

.ref-page__meta-row {
    display: flex;
    gap: 30px;
    line-height: 2;
}

.ref-page__meta-label {
    font-weight: 600;
    width: 140px;
    flex-shrink: 0;
}

.ref-page__meta-value {
    font-style: italic;
    flex: 1;
}

.ref-page__thumbs {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 220px;
    flex-shrink: 0;
    gap: 20px;
}

.ref-page__thumb {
    flex: 1;
    aspect-ratio: 1/1;
    object-fit: cover;
    cursor: pointer;
    display: block;
}

.ref-page__thumb--active {
    opacity: 0.4;
}

.ref-page__thumb-wrap--active {
    opacity: 0.4;
}

.ref-page__thumb-wrap {
    flex: 1;
    aspect-ratio: 1/1;
    position: relative;
    cursor: pointer;
    display: block;
}

.ref-page__thumb--fill {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ref-page__thumb-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    pointer-events: none;
}

.ref-page__thumb-play::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 14px;
    border-color: transparent transparent transparent white;
}












/* ── Impressum popup ─────────────────────────── */

.impressum {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 9300;
}

.impressum__box {
    background-color: white;
    padding: 60px;
    border: 1px solid black;
    position: relative;
    max-width: 600px;
    width: 90%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 80px;
}

.impressum__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: #E0E0E0;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

.impressum__close-icon {
    width: 24px;
    height: 24px;
}

/* ── Responsive ──────────────────────────────── */

@media (max-width: 1300px) {
    body {
        margin-top: 100px;
    }

    .container {
        width: 92%;
    }

    /* Header */
    .header__inner {
        padding: 20px 0;
    }

    .header__logo {
        font-size: 1.4rem;
    }

    .header__subtitle {
        font-size: 0.55rem;
    }

    .header__center,
    header .button {
        display: none;
    }

    .header__mobile-toggle {
        display: flex;
    }

    #design, #references, #characteristics, #downloads, #faq, #contact {
        scroll-margin-top: 80px;
    }

    /* Sections spacing */
    .partners,
    .design,
    .materials,
    .references,
    .development {
        margin-top: 50px;
        margin-bottom: 50px;
        padding-bottom: 0;
    }

    .materials {
        padding-bottom: 60px; /* spazio per le frecce Flickity */
    }

    .reviews {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .technical,
    .details {
        padding-top: 0;
        padding-bottom: 50px;
    }

    /* Hero */
    .hero__scroll-down {
        bottom: 8px;
    }

    .hero__scroll-down-icon {
        width: 40px;
        height: 40px;
    }

    .hero__text {
        flex-direction: column;
        gap: 20px;
        margin-top: 20px;
    }

    /* Partners */
    .partners__logos {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    .partners__logo {
        flex: unset;
        width: 150px;
    }

    /* Materials */
    .materials__images {
        overflow: hidden;
    }

    .materials__img {
        flex-shrink: 0;
    }



    /* Design */
    .design__image {
        height: 120px;
        max-width: none;
        object-fit: cover;
    }

    /* Reviews */
    .reviews__body {
        flex-direction: column;
        gap: 40px;
    }

    /* Technical */
    .technical__row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .technical__item {
        padding: 20px 0 20px 10px;
        overflow-wrap: break-word;
        word-break: break-word;
        min-width: 0;
    }

    .technical__footnote {
        width: 100%;
        text-align: left;
    }

    /* Details */
    .details__body {
        flex-direction: column;
        gap: 20px;
    }

    .details__group {
        width: 100%;
    }

    .details__images {
        gap: 16px;
    }

    .details__image {
        min-width: 0;
    }

    /* Development */
    .development__videos {
        gap: 16px;
        margin-top: 30px;
    }

    .development__video {
        width: 100%;
        min-width: unset;
        max-height: 280px;
        object-fit: cover;
    }

    /* FAQ */
    .faq {
        padding: 0 0 50px 0;
        width: 100%;
    }

    /* Footer */
    .footer__body {
        flex-direction: column;
        gap: 40px;
        padding: 30px 0;
    }

    .footer__left {
        width: 100%;
        padding-left: 0;
    }

    .footer__person-img {
        max-width: 80px;
    }

    .footer__person-name {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer__person:first-child {
        margin-bottom: -60px;
    }

    .footer__person:last-child {
        margin-top: -60px;
    }

    .footer__form-grid {
        grid-template-columns: 1fr;
    }

    .footer__form-field--full {
        margin-top: 0;
    }

    .footer__form-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-top: 16px;
        margin-bottom: 16px;
    }

    .footer__bottom-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* References */
    .references__item {
        width: calc(80% - 15px);
    }

    /* Reference detail page */
    .ref-page {
        padding: 24px 16px;
    }

    .ref-page__body {
        gap: 16px;
    }

    .ref-page__arrow-slot {
        width: 30px;
    }

    .ref-page__arrow-icon {
        width: 30px;
    }

    .ref-page__image-row {
        flex-direction: column;
    }

    .ref-page__thumbs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        flex-direction: unset;
        width: unset;
        gap: 10px;
    }

    .ref-page__thumb {
        aspect-ratio: 1 / 1;
        height: auto;
        width: 100%;
    }

    .ref-page__meta-label {
        width: 105px;
        overflow-wrap: break-word;
    }
}

/* Cookie consent banner */

.footer__cookie-settings {
    font-size: inherit;
}

.cookie-consent {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 9400;
    background-color: #fff;
    border: 1px solid black;
    border-radius: 24px;
    padding: 24px;
    max-width: 900px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    margin: 0 auto;
    font-size: 0.85rem;
    line-height: 1.5;
}

.cookie-consent__title {
    font-weight: 600;
    margin-bottom: 6px;
}

.cookie-consent__text {
    max-width: 640px;
}

.cookie-consent__link {
    text-decoration: underline;
    white-space: nowrap;
}

.cookie-consent__categories {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #d4d2cc;
}

.cookie-consent__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.cookie-consent__button {
    border: 1px solid black;
    border-radius: 100px;
    padding: 10px 20px;
    text-transform: uppercase;
    font-size: 0.75rem;
    white-space: nowrap;
}

.cookie-consent__button--solid {
    background-color: black;
    color: white;
}

.cookie-consent__button--ghost {
    background-color: transparent;
    color: black;
}

.cookie-consent__category {
    padding: 12px 0;
    border-bottom: 1px solid #e5e4e0;
}

.cookie-consent__category:last-of-type {
    border-bottom: none;
}

.cookie-consent__category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cookie-consent__category-title {
    font-weight: 600;
}

.cookie-consent__category-text {
    margin-top: 4px;
    color: #5a5a55;
    font-size: 0.8rem;
}

.cookie-consent__switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

.cookie-consent__switch-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-consent__switch-slider {
    position: absolute;
    inset: 0;
    background-color: #d4d2cc;
    border-radius: 100px;
    transition: background-color 0.2s ease;
}

.cookie-consent__switch-slider::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    top: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.cookie-consent__switch-input:checked + .cookie-consent__switch-slider {
    background-color: black;
}

.cookie-consent__switch-input:checked + .cookie-consent__switch-slider::before {
    transform: translateX(18px);
}

.cookie-consent__switch--disabled {
    opacity: 0.5;
}

@media (max-width: 640px) {
    .cookie-consent {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 20px;
    }

    .cookie-consent__actions {
        flex-direction: column-reverse;
    }

    .cookie-consent__button {
        width: 100%;
        text-align: center;
    }
}

/* Legal pages (Impressum, Privacy Policy, Cookie Policy) */

.legal-page {
    --legal-bg: #f5f4f0;
    --legal-ink: #1a1a18;
    --legal-muted: #7a7972;
    --legal-rule: #d4d2cc;
    background: var(--legal-bg);
    color: var(--legal-ink);
    font-family: 'WorkSans', sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.75;
    padding: 40px 24px 100px;
}

.legal-page__wrap {
    max-width: 720px;
    margin: 0 auto;
}

.legal-page__logo {
    font-family: 'WorkSans', sans-serif;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--legal-muted);
    margin-bottom: 12px;
}

.legal-page__title {
    font-family: 'WorkSans', sans-serif;
    font-size: 28px;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--legal-ink);
}

.legal-page__updated {
    font-family: 'WorkSans', sans-serif;
    font-size: 11px;
    color: var(--legal-muted);
    margin-top: 12px;
    letter-spacing: 0.05em;
}

.legal-page__header {
    margin-bottom: 64px;
    border-bottom: 1px solid var(--legal-rule);
    padding-bottom: 32px;
}

.legal-page__section {
    margin-bottom: 48px;
}

.legal-page__section-title {
    font-family: 'WorkSans', sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--legal-muted);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--legal-rule);
}

.legal-page__row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 4px 16px;
    padding: 6px 0;
}

.legal-page__row:not(:last-child) {
    border-bottom: 1px solid var(--legal-rule);
}

.legal-page__row-label {
    color: var(--legal-muted);
    font-size: 13px;
}

.legal-page__row-value {
    color: var(--legal-ink);
    font-size: 14px;
}

.legal-page__row-value a,
.legal-page__text a,
.legal-page__list a {
    color: var(--legal-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-page__text {
    color: var(--legal-ink);
    font-size: 14px;
    line-height: 1.8;
}

.legal-page__text + .legal-page__text {
    margin-top: 16px;
}

.legal-page__list {
    color: var(--legal-ink);
    font-size: 14px;
    line-height: 1.8;
    padding-left: 20px;
    margin-top: 8px;
}

.legal-page__list li {
    margin-bottom: 6px;
}

.legal-page__category {
    margin-bottom: 24px;
}

.legal-page__category-title {
    font-family: 'WorkSans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--legal-ink);
    margin-bottom: 6px;
}

.legal-page__cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 8px;
    margin-bottom: 24px;
}

.legal-page__cookie-table caption {
    text-align: left;
    font-family: 'WorkSans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--legal-ink);
}

.legal-page__cookie-table th,
.legal-page__cookie-table td {
    text-align: left;
    padding: 8px 10px 8px 0;
    border-bottom: 1px solid var(--legal-rule);
    vertical-align: top;
}

.legal-page__cookie-table th {
    font-family: 'WorkSans', sans-serif;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--legal-muted);
    font-weight: 400;
}

.legal-page__settings-button {
    display: inline-block;
    margin-top: 8px;
    padding: 10px 20px;
    border: 1px solid var(--legal-ink);
    border-radius: 100px;
    font-family: 'WorkSans', sans-serif;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    color: var(--legal-ink);
}

.legal-page__footer {
    margin-top: 80px;
    padding-top: 24px;
    border-top: 1px solid var(--legal-rule);
    font-family: 'WorkSans', sans-serif;
    font-size: 11px;
    color: var(--legal-muted);
    letter-spacing: 0.05em;
}

@media (max-width: 640px) {
    .legal-page__row { grid-template-columns: 1fr; gap: 2px; }
    .legal-page__row-label { font-size: 12px; }
    .legal-page__cookie-table { display: block; overflow-x: auto; white-space: nowrap; }
}

