.responsive-image {
    display: block;
    width: 100%;
    line-height: 0;
}

.content-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.editorial .content-image {
    aspect-ratio: 3 / 2;
}

body:not([data-path="/standorte"]) main .button {
    width: min(100%, 20rem);
    text-align: center;
}

.brand-signature {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    line-height: 1.25;
}

.brand-signature > span {
    display: block;
}

.brand-signature .brand-claim {
    font-family: var(--serif);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: none;
}

.footer .brand-signature .brand-claim {
    margin-top: 0.15rem;
}

.menu-toggle__line {
    display: block;
    width: 1.55rem;
    height: 1px;
    background: currentColor;
    transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(1) {
    transform: translateY(0.42rem) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(3) {
    transform: translateY(-0.42rem) rotate(-45deg);
}

.legend-hero {
    position: relative;
    min-height: calc(100svh - 5.5rem);
    display: grid;
    align-items: end;
    overflow: hidden;
    background: var(--souvelty-plum);
}

.legend-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(37, 22, 37, 0.84) 0%,
        rgba(37, 22, 37, 0.68) 34%,
        rgba(37, 22, 37, 0.3) 68%,
        rgba(37, 22, 37, 0.14) 100%
    );
    pointer-events: none;
}

.legend-hero-media {
    position: absolute;
    inset: 0;
}

.legend-hero-media .responsive-image,
.legend-hero-media picture {
    display: block;
    width: 100%;
    height: 100%;
}

.legend-hero-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    box-shadow: none;
}

.legend-hero-content {
    position: relative;
    z-index: 2;
    padding-block: clamp(4rem, 9vw, 8rem);
}

.legend-hero-copy {
    max-width: 43rem;
}

.legend-page-title {
    font-size: clamp(2.8rem, 5.5vw, 5.8rem);
    max-width: 14ch;
}

.legend-hero-copy p {
    max-width: 42rem;
    font-size: clamp(1.05rem, 1.25vw, 1.2rem);
    line-height: 1.65;
}

.legend-section-title {
    font-size: clamp(2.3rem, 4vw, 4.2rem);
    max-width: 16ch;
}

@media (max-width: 1200px) {
    .site-header {
        min-height: 5.5rem;
        gap: 1rem;
    }

    .site-header .brand-signature {
        min-width: 0;
        max-width: calc(100% - 4rem);
    }

    .site-header .brand-signature > span:first-child {
        white-space: nowrap;
    }

    .menu-toggle {
        width: 3rem;
        height: 3rem;
        flex: 0 0 3rem;
        padding: 0;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.36rem;
        overflow: hidden;
    }

    .nav {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--souvelty-aubergine);
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
    }

    .js .nav:not(.open) {
        display: none;
    }

    .nav a {
        padding: 0.75rem;
    }
}

@media (max-width: 640px) {
    .content-image {
        width: 100%;
        height: auto;
    }

    .site-header {
        padding-inline: 1rem;
    }

    .site-header .brand-signature {
        gap: 0.22rem;
        max-width: calc(100% - 3.75rem);
    }

    .site-header .brand-signature > span:first-child {
        font-size: clamp(0.67rem, 3vw, 0.8rem);
        letter-spacing: 0.3em;
    }

    .site-header .brand-signature .brand-claim {
        font-size: 0.8rem;
    }

    .legend-hero {
        min-height: calc(100svh - 5.5rem);
    }

    .legend-hero::after {
        background: linear-gradient(
            180deg,
            rgba(37, 22, 37, 0.16) 0%,
            rgba(37, 22, 37, 0.42) 44%,
            rgba(37, 22, 37, 0.88) 100%
        );
    }

    .legend-hero-content {
        padding-block: 3rem;
    }

    .legend-page-title {
        font-size: clamp(2.6rem, 12vw, 4rem);
    }

    .legend-hero-copy p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .legend-section-title {
        font-size: clamp(2.2rem, 10vw, 3.4rem);
    }
}
