/* Startseite: ruhiger Hero und Qualifikationen als durchgehendes Banner. */
main > .home-hero {
    --home-hero-title-size: clamp(2.4rem, 3.7vw, 3.4rem);
    --home-hero-copy-top: 70px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 0;
    background: #f8fafc !important;
}

.home-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 70px 32px 62px;
}

.home-hero-copy {
    max-width: 625px;
}

.home-hero h1 {
    margin: 0 0 22px;
    color: #153c72;
    font-size: var(--home-hero-title-size);
    font-weight: 800;
    line-height: 1.09;
    letter-spacing: -.045em;
    overflow-wrap: normal;
}

.home-hero h1 span {
    display: block;
    color: #1e3a8a;
}

.home-hero-intro {
    max-width: 540px;
    margin: 0 0 25px;
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.65;
}

.home-hero-benefits {
    display: grid;
    gap: 11px;
    margin: 0 0 23px;
    padding: 0;
    list-style: none;
    color: #253f62;
    font-size: 1rem;
    line-height: 1.45;
}

.home-hero-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-hero-check {
    display: inline-grid;
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    place-items: center;
    border: 1px solid #bde4d7;
    border-radius: 50%;
    background: #edf8f2;
    color: #137560;
    font-size: 16px;
}

.home-hero-rating {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    color: #475569;
    font-size: .9rem;
    text-decoration: none;
}

.home-hero-stars {
    color: #d97100;
    font-size: 1.15rem;
    letter-spacing: 2px;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.home-hero-actions a {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    text-align: center;
    transition: background-color .18s ease;
}

.home-hero-primary {
    background: #b9520b;
    color: #fff;
}

.home-hero-primary:hover {
    background: #984208;
}

.home-hero-actions .home-hero-secondary {
    border-color: #b8c9df;
    background: #fff;
    color: #1e3a8a;
}

.home-hero-secondary:hover {
    background: #eff6ff;
}

.home-hero-secondary svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    fill: currentColor;
    color: #1e3a8a;
}

.home-hero-phone {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 21px;
    color: #64748b;
    font-size: .85rem;
}

.home-hero-phone a {
    color: #153c72;
    font-size: 1.2rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.home-hero-photo {
    position: absolute;
    z-index: 0;
    inset: 0 0 0 auto;
    width: max(51%, 620px);
    container-type: size;
    background: #b8bdc0;
}

.home-hero-photo img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    /* Portrait: Haaroberkante bei 118 von 1350 Bildpixeln.
       Gleiche Oberkante wie die sichtbaren Buchstaben der ersten H1-Zeile. */
    object-position: 50% calc(var(--home-hero-copy-top) + var(--home-hero-title-size) * .18 - max(10.128755cqw, 8.740741cqh));
    transform: none;
    transform-origin: center bottom;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 92%, transparent), linear-gradient(180deg, transparent, #000 6%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 92%, transparent), linear-gradient(180deg, transparent, #000 6%);
    mask-composite: intersect;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.home-hero-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #f8fafc 0%, rgb(248 250 252 / 96%) 6%, rgb(248 250 252 / 70%) 20%, rgb(248 250 252 / 12%) 43%, transparent 60%);
    pointer-events: none;
}

main > .home-qualifications {
    padding: 0;
    background: linear-gradient(105deg, #153c72, #1e4f9b) !important;
    color: #fff;
}

.home-qualifications-inner {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 33px 32px;
}

.home-qualifications ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-qualifications li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-qualification-icon {
    display: inline-flex;
    width: 29px;
    flex: 0 0 29px;
    justify-content: center;
    color: #bbd9ff;
}

.home-qualification-icon svg {
    width: 25px;
    height: 25px;
    margin: 0 !important;
    color: inherit;
    fill: currentColor;
}

.home-qualifications strong {
    display: block;
    color: #fff;
    font-size: .86rem;
    font-weight: 700;
    line-height: 1.45;
}

.home-qualifications li div > span {
    display: block;
    margin-top: 3px;
    color: #d4e3f8;
    font-size: .75rem;
    line-height: 1.5;
}

.home-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.home-hero a:focus-visible {
    outline: 3px solid #1e3a8a;
    outline-offset: 4px;
}

@media (min-width: 1600px) {
    .home-hero-photo {
        width: calc(50% + 20px);
    }
}

@media (max-width: 1100px) {
    main > .home-hero {
        --home-hero-title-size: clamp(2rem, 3.8vw, 2.6rem);
        --home-hero-copy-top: 55px;
    }
    .home-hero-inner {
        padding-top: 55px;
        padding-bottom: 48px;
    }
    .home-hero-copy {
        max-width: 55%;
    }
    .home-hero h1 {
        font-size: var(--home-hero-title-size);
    }
    .home-hero-photo {
        width: 55%;
    }
    .home-hero-actions a {
        width: 100%;
    }
    .home-qualifications ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px;
    }
}

@media (max-width: 700px) {
    .home-hero {
        display: flex;
        flex-direction: column;
    }
    .home-hero-inner {
        order: 0;
        padding: 36px 22px 0;
    }
    .home-hero-copy {
        max-width: none;
    }
    .home-hero h1 {
        max-width: 600px;
        margin-bottom: 18px;
        font-size: clamp(2rem, 6.6vw, 2.75rem);
        line-height: 1.13;
        letter-spacing: -.04em;
    }
    .home-hero-intro {
        margin-bottom: 21px;
        font-size: 1rem;
        line-height: 1.6;
    }
    .home-hero-benefits {
        gap: 10px;
        margin-bottom: 19px;
        font-size: .92rem;
    }
    .home-hero-rating {
        margin-bottom: 21px;
    }
    .home-hero-actions {
        gap: 10px;
    }
    .home-hero-actions a {
        min-height: 50px;
    }
    .home-hero-phone {
        justify-content: center;
        margin-top: 17px;
    }
    .home-hero-photo {
        position: relative;
        order: 1;
        inset: auto;
        width: 100%;
        height: 285px;
        margin-top: 12px;
    }
    .home-hero-photo img {
        object-position: 50% top;
        transform: scale(.85);
    }
    .home-hero-photo::after {
        background: linear-gradient(180deg, #f8fafc 0%, rgb(248 250 252 / 80%) 3%, rgb(248 250 252 / 10%) 15%, transparent 22%), linear-gradient(90deg, rgb(248 250 252 / 55%), transparent 45%);
    }
    .home-qualifications-inner {
        padding: 27px 22px;
    }
    .home-qualifications ul {
        gap: 22px 16px;
    }
    .home-qualifications li {
        gap: 9px;
        align-items: flex-start;
    }
    .home-qualification-icon {
        width: 22px;
        flex-basis: 22px;
    }
    .home-qualification-icon svg {
        width: 21px;
        height: 21px;
    }
    .home-qualifications strong {
        font-size: .8rem;
    }
    .home-qualifications li div > span {
        font-size: .72rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-actions a {
        transition: none;
    }
}
