/* Neue Bausteine des Redesigns (Präfix bl-). Farben und Schriften kommen aus
   den Variablen des Markenpakets (--d-..., siehe lut/design.py). */

.bl-dachzeile {
    font-family: var(--d-font-text);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin: 0 0 14px;
}

.bl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    border: 1.5px solid transparent;
    border-radius: var(--d-btn-radius);
    font-family: var(--d-font-text);
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: background-color .2s, color .2s, border-color .2s;
}

.bl-icon {
    width: 28px;
    height: 28px;
    flex: none;
}

/* --- Vorteile-Leiste ------------------------------------------------------ */

.bl-vorteile {
    --bl-v-text: #1b1d1c;
    --bl-v-leise: #5d625f;
    --bl-v-linie: #e6e4df;
    --bl-v-symbol: var(--d-akzent, #222);
    background: #fff;
    color: var(--bl-v-text);
    border-bottom: 1px solid var(--bl-v-linie);
}

.bl-vorteile--getoent {
    background: #f4f2ed;
}

.bl-vorteile--marke {
    --bl-v-text: var(--d-on-brand, #fff);
    --bl-v-leise: color-mix(in srgb, var(--d-on-brand, #fff) 72%, transparent);
    --bl-v-linie: color-mix(in srgb, var(--d-on-brand, #fff) 18%, transparent);
    --bl-v-symbol: var(--d-footer-akzent, #fff);
    background: var(--d-brand, #222);
    border-bottom: 0;
}

.bl-vorteile__liste {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
    list-style: none;
}

.bl-vorteile--2 .bl-vorteile__liste { grid-template-columns: repeat(2, 1fr); }
.bl-vorteile--3 .bl-vorteile__liste { grid-template-columns: repeat(3, 1fr); }

.bl-vorteil + .bl-vorteil {
    border-left: 1px solid var(--bl-v-linie);
}

.bl-vorteil__inhalt {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    padding: 24px 22px;
    color: inherit !important;
    text-decoration: none;
    box-shadow: none !important;
}

.bl-vorteil .bl-icon {
    color: var(--bl-v-symbol);
}

.bl-vorteil strong {
    display: block;
    font-family: var(--d-font-text);
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.3;
}

.bl-vorteil small {
    display: block;
    font-size: .8125rem;
    line-height: 1.4;
    color: var(--bl-v-leise);
}

a.bl-vorteil__inhalt:hover strong {
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 900px) {
    .bl-vorteile .bl-vorteile__liste {
        grid-template-columns: repeat(2, 1fr);
        padding: 0;
    }

    .bl-vorteil__inhalt {
        padding: 16px 14px;
        gap: 10px;
    }

    .bl-vorteil .bl-icon {
        width: 24px;
        height: 24px;
    }

    .bl-vorteil:nth-child(odd) {
        border-left: 0;
    }

    .bl-vorteil:nth-child(n+3) {
        border-top: 1px solid var(--bl-v-linie);
    }

    /* drei Punkte: der dritte über die ganze Breite */
    .bl-vorteile--3 .bl-vorteil:nth-child(3) {
        grid-column: span 2;
    }
}

/* --- Hero --------------------------------------------------------------- */

.bl-hero {
    position: relative;
    display: grid;
    overflow: hidden;
}

.bl-hero__bild,
.bl-hero__bild img {
    display: block;
    width: 100%;
    height: 100%;
}

.bl-hero__bild img {
    object-fit: cover;
}

.bl-hero .bl-hero__titel {
    font-size: clamp(2.4rem, 5.6vw, 4.75rem);
    line-height: 1.05;
    margin: 0 0 18px;
    max-width: 14ch;
    color: inherit;
}

.bl-hero__titel em {
    font-style: italic;
    color: var(--bl-hero-akzent);
}

html[data-heading="archivo"] .bl-hero__titel em,
html:not([data-heading]) .bl-hero__titel em {
    font-style: normal;
}

.bl-hero__lead {
    font-size: 1.125rem;
    line-height: 1.55;
    max-width: 46ch;
    margin: 0 0 30px;
}

.bl-hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
}

/* Text auf dem Bild */

.bl-hero--vollbild {
    --bl-hero-akzent: var(--d-footer-akzent, #fff);
    color: #fff;
    min-height: min(78vh, 720px);
}

.bl-hero--vollbild.bl-hero--mittel {
    min-height: min(56vh, 520px);
}

.bl-hero--vollbild .bl-hero__bild {
    position: absolute;
    inset: 0;
}

.bl-hero--vollbild::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(12, 18, 15, var(--bl-dunkel)) 0%, rgba(12, 18, 15, calc(var(--bl-dunkel) * .45)) 55%, rgba(12, 18, 15, 0) 100%);
}

.bl-hero--dunkel-leicht { --bl-dunkel: .55; }
.bl-hero--dunkel-mittel { --bl-dunkel: .75; }
.bl-hero--dunkel-stark { --bl-dunkel: .9; }

.bl-hero--vollbild .bl-hero__inhalt {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 96px 32px 72px;
}

.bl-hero--vollbild .bl-dachzeile {
    color: var(--bl-hero-akzent);
}

.bl-hero--vollbild .bl-btn--haupt {
    background: #fff;
    color: #1b1d1c;
}

.bl-hero--vollbild .bl-btn--haupt:hover {
    background: var(--bl-hero-akzent);
    color: #1b1d1c;
}

.bl-hero--vollbild .bl-btn--neben {
    border-color: rgba(255, 255, 255, .7);
    color: #fff;
}

.bl-hero--vollbild .bl-btn--neben:hover {
    background: #fff;
    color: #1b1d1c;
}

/* Text links, Bild rechts */

.bl-hero--geteilt {
    --bl-hero-akzent: var(--d-link, #222);
    grid-template-columns: 1fr 1.05fr;
    min-height: min(70vh, 640px);
    background: #fff;
    color: #1b1d1c;
    border-bottom: 1px solid #e6e4df;
}

.bl-hero--geteilt.bl-hero--mittel {
    min-height: min(50vh, 460px);
}

.bl-hero--geteilt .bl-hero__bild {
    order: 2;
    position: relative;
}

.bl-hero--geteilt .bl-hero__bild img {
    position: absolute;
    inset: 0;
}

.bl-hero--geteilt .bl-hero__inhalt {
    display: flex;
    align-items: center;
    padding: 64px 56px 64px max(32px, calc((100vw - 1240px) / 2 + 32px));
}

.bl-hero--geteilt .bl-dachzeile {
    color: var(--d-link, #555);
}

.bl-hero--geteilt .bl-btn--haupt {
    background: var(--d-brand, #222);
    color: var(--d-on-brand, #fff);
}

.bl-hero--geteilt .bl-btn--haupt:hover {
    background: var(--d-brand-hover, #000);
    color: var(--d-on-brand, #fff);
}

.bl-hero--geteilt .bl-btn--neben {
    border-color: currentColor;
    color: #1b1d1c;
}

.bl-hero--geteilt .bl-btn--neben:hover {
    background: #1b1d1c;
    color: #fff;
}

@media (max-width: 767px) {
    .bl-hero--vollbild,
    .bl-hero--vollbild.bl-hero--mittel {
        min-height: 72vh;
    }

    .bl-hero--vollbild.bl-hero--mittel {
        min-height: 52vh;
    }

    .bl-hero--vollbild::after {
        background: linear-gradient(0deg, rgba(12, 18, 15, calc(var(--bl-dunkel) + .1)) 8%, rgba(12, 18, 15, calc(var(--bl-dunkel) * .25)) 75%);
    }

    .bl-hero--vollbild .bl-hero__inhalt {
        padding: 72px 16px 40px;
    }

    .bl-hero--geteilt {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .bl-hero--geteilt .bl-hero__bild {
        order: 0;
        aspect-ratio: 4 / 3;
    }

    .bl-hero--geteilt .bl-hero__inhalt {
        padding: 28px 16px 36px;
    }

    .bl-hero__lead {
        font-size: 1rem;
        margin-bottom: 22px;
    }

    .bl-btn {
        padding: 13px 20px;
    }

    .bl-dachzeile {
        font-size: .6875rem;
        letter-spacing: .1em;
    }
}
