.service-benefits-reference,
.other-services-reference {
    position: relative;
    width: 100%;
    padding: var(--section-space-y) 0;
    overflow: hidden;
}

.service-benefits-reference {
    color: #111516;
    background:
        linear-gradient(90deg, rgba(17, 21, 22, .055) 1px, transparent 1px),
        linear-gradient(180deg, #fff 0%, #fbfaf7 100%);
    background-size: 120px 100%, 100% 100%;
}

.service-benefits-reference__inner,
.other-services-reference__inner {
    position: relative;
    width: min(100%, 1400px);
    margin-inline: auto;
    padding-inline: var(--side-pad, 36px);
}

.service-benefits-reference__heading {
    max-width: 1040px;
    margin-bottom: 34px;
}

.service-benefits-reference__heading h2,
.other-services-reference__heading h2 {
    margin: 0;
    font-family: "DM Sans", sans-serif;
    font-size: var(--type-section-title);
    font-weight: 820;
    line-height: 1.1;
    letter-spacing: -.8px;
    text-wrap: balance;
}

.service-benefits-reference__signal {
    margin-top: 18px;
    color: var(--brand-bright);
}

.service-benefits-reference__heading > p {
    max-width: 920px;
    margin: 26px 0 0;
    padding-left: 16px;
    border-left: 3px solid var(--brand-bright);
    color: #5b5f59;
    font-family: "DM Sans", sans-serif;
    font-size: var(--type-section-copy);
    line-height: 1.5;
}

.service-benefits-reference__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.service-benefits-reference__card {
    position: relative;
    min-width: 0;
    min-height: 246px;
    padding: 30px 26px 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 190, 23, .42);
    border-top: 4px solid #ffc21f;
    border-radius: 10px;
    background: linear-gradient(145deg, #28271f 0%, #15191a 38%, #0e1213 100%);
    box-shadow: 0 17px 34px rgba(15, 18, 19, .18), 0 -7px 20px rgba(241, 181, 28, .1);
    color: #f8f7f2;
}

.service-benefits-reference__card::after {
    position: absolute;
    right: -50px;
    bottom: -50px;
    width: 150px;
    height: 150px;
    content: "";
    border-radius: 50%;
    background: rgba(241, 181, 28, .07);
    filter: blur(18px);
}

.service-benefits-reference__card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 18px;
    color: #fff;
    font-family: "DM Sans", sans-serif;
    font-size: var(--type-card-title);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: .1px;
    text-transform: uppercase;
}

.service-benefits-reference__card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #d6d8d4;
    font-family: "DM Sans", sans-serif;
    font-size: var(--type-section-copy);
    line-height: 1.48;
}

.service-benefits-reference__cta { margin-top: 32px; }

/* The shared button renderer contains a base and a hover face. Keep both
   faces perfectly overlaid instead of letting them consume two columns. */
.service-benefits-reference__cta .btn__face {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.service-benefits-reference__cta .btn__face--hover {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.other-services-reference {
    color: #f8f7f2;
    background: var(--dark-section-background);
}

.other-services-reference::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: .18;
    background-image: radial-gradient(circle at 16% 14%, rgba(255,255,255,.22) 0 1px, transparent 1.5px);
    background-size: 14px 14px;
}

.other-services-reference__inner { z-index: 1; }

.other-services-reference__heading {
    max-width: 900px;
    margin-bottom: 42px;
}

.other-services-reference__eyebrow {
    margin: 0 0 12px;
    color: #ffc21f;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 1.15px;
    text-transform: uppercase;
}

.other-services-reference__heading h2 { color: #fff; }

.other-services-reference__lead {
    max-width: 800px;
    margin: 28px 0 0;
    padding-left: 16px;
    border-left: 3px solid #ffc21f;
    color: #d6d8d4;
    font-family: "DM Sans", sans-serif;
    font-size: var(--type-section-copy);
    line-height: 1.5;
}

.other-services-reference__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.other-services-reference__card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    background: #111516;
    box-shadow: 0 14px 28px rgba(0,0,0,.25);
}

.other-services-reference__card-link {
    display: flex;
    height: 100%;
    min-width: 0;
    flex-direction: column;
    color: inherit;
}

.other-services-reference__media {
    position: relative;
    flex: 0 0 auto;
    aspect-ratio: 1 / .86;
    margin: 0;
    overflow: hidden;
    background: #202424;
}

.other-services-reference__media::after {
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    content: "";
    pointer-events: none;
    background: linear-gradient(0deg, rgba(11,14,15,.65), transparent);
}

.other-services-reference__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.other-services-reference__open {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.3);
    background: rgba(12,15,16,.82);
    color: #ffc21f;
}

.other-services-reference__open .icon { width: 16px; height: 16px; }

.other-services-reference__body {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    padding: 20px 16px 16px;
}

.other-services-reference__title-row {
    display: grid;
    grid-template-columns: 38px minmax(0,1fr);
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.other-services-reference__icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #ffc21f;
    color: #ffc21f;
}

.other-services-reference__icon .icon { width: 20px; height: 20px; }

.other-services-reference__body h3 {
    min-width: 0;
    margin: 0;
    color: #fff;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 780;
    line-height: 1.2;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.other-services-reference__body > p {
    margin: 0 0 20px;
    color: #cfd2cd;
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    line-height: 1.45;
}

.other-services-reference__action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;
    margin-top: auto;
    padding: 8px 12px 8px 16px;
    background: linear-gradient(135deg, #ffc21f, #e8a407);
    color: #101313;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 800;
}

.other-services-reference__action .icon { width: 13px; height: 13px; transition: transform .24s ease; }
.other-services-reference__card-link:hover .other-services-reference__image { transform: scale(1.045); }
.other-services-reference__card-link:hover .other-services-reference__action .icon { transform: translateX(3px); }

@media (min-width: 1101px) {
    .other-services-reference__heading h2 { font-size: 42px; }
}

@media (max-width: 1100px) {
    .service-benefits-reference__grid,
    .other-services-reference__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 680px) {
    .service-benefits-reference__inner,
    .other-services-reference__inner { padding-inline: 20px; }
    .service-benefits-reference__heading,
    .other-services-reference__heading { margin-inline: auto; text-align: center; }
    .service-benefits-reference__signal { margin-inline: auto; }
    .service-benefits-reference__heading > p,
    .other-services-reference__lead { margin-inline: auto; padding-left: 0; border-left: 0; text-align: center; }
    .service-benefits-reference__grid,
    .other-services-reference__grid { grid-template-columns: 1fr; }
    .service-benefits-reference__card { min-height: 0; padding: 28px 24px; text-align: left; }
    .other-services-reference__media { aspect-ratio: 16 / 9; }
}

/* Leistungsseiten-Hero: dieselbe zentrale Geometrie wie der aktive
   Startseiten-Hero, jedoch mit leistungsbezogenen Inhalten und Bildern. */
.service-page {
    --hero-reference-gold: #f4b000;
    --hero-reference-black: #080a0b;
    --hero-reference-paper: #f4f2ed;
    --hero-header-height: 84px;
    background: var(--hero-reference-paper);
}

.service-page .site-header--hero {
    position: absolute;
    inset: 0 0 auto;
    z-index: 120;
    width: 100%;
    max-width: none;
    overflow-x: clip;
    color: #fff;
    background: transparent;
}

.service-page .site-header--hero .header-main { color: #fff; background: #07090a; }
.service-page .site-header--hero .header-container {
    width: min(calc(100% - 64px), 1600px);
    min-height: var(--hero-header-height);
    margin-inline: auto;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr) 218px;
    gap: 36px;
    padding: 5px 0;
}
.service-page .site-header--hero .brand { flex-basis: auto; }
.service-page .site-header--hero .brand-logo { width: clamp(240px, 16vw, 300px); height: auto; padding: 0; }
.service-page .site-header--hero .nav-rail { justify-content: flex-end; gap: clamp(8px, 1vw, 18px); overflow: visible; }
.service-page .site-header--hero .nav-link {
    min-height: 40px;
    padding: 6px;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #fff;
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    font-weight: 760;
    letter-spacing: .25px;
    text-transform: uppercase;
}
.service-page .site-header--hero .nav-link::after { right: 6px; bottom: 2px; left: 6px; background: var(--hero-reference-gold); }
.service-page .site-header--hero .nav-link:hover { color: var(--hero-reference-gold); }
.service-page .site-header--hero .nav-link.is-active,
.service-page .site-header--hero .nav-service.is-active .nav-link,
.service-page .site-header--hero .nav-service-toggle[aria-expanded="true"] {
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--hero-reference-gold) !important;
    background: var(--hero-reference-gold) !important;
    color: #090b0c !important;
    box-shadow: none !important;
    transform: none;
}
.service-page .site-header--hero .nav-chevron { display: block; width: 11px !important; height: 11px !important; flex-basis: 11px !important; }
.service-page .site-header--hero .header-cta {
    width: 218px;
    min-height: 46px;
    justify-content: center;
    padding: 0 22px;
    border: 0;
    background: var(--hero-reference-gold);
    color: #090b0c;
    font-size: 13px;
    text-transform: uppercase;
}
.service-page .site-header--hero .header-cta::before,
.service-page .site-header--hero .header-cta::after,
.service-page .site-header--hero .header-cta .btn__face--hover,
.service-page .site-header--hero .header-cta .btn__icon { display: none; }
.service-page .site-header--hero .header-cta .btn__face--base { display: flex; align-items: center; justify-content: center; }

.hero-reference--service .hero-reference__title {
    max-width: 740px;
    font-size: clamp(36px, 3vw, 58px);
    line-height: 1.05;
    letter-spacing: -1.8px;
}
.hero-reference--service .hero-reference__lead {
    width: min(570px, 100%);
    margin-bottom: 28px;
    font-size: clamp(16px, .9vw, 18px);
    line-height: 1.45;
}
.hero-reference--service .hero-reference__cta-copy { padding-top: 22px; }
.hero-reference--service .hero-reference__image { object-position: center; }
.hero-reference--service .hero-reference__benefits li {
    padding-inline: 16px;
    font-size: 14px;
}
.hero-reference--service .hero-reference__benefits li > span:last-child {
    overflow-wrap: anywhere;
    hyphens: auto;
}

/* Leistungs-Heroes: mehr Raum fuer den Inhalt, moderat schmalere Bildflaeche.
   Die bestehende Polygonform bleibt unveraendert; nur ihr Desktop-Ursprung
   wandert nach rechts. Tablet und Mobil verwenden weiterhin das Stacking. */
@media (min-width: 1101px) {
    .hero-reference--service .hero-reference__copy {
        width: min(840px, 52vw);
    }
    .hero-reference--service .hero-reference__media {
        inset: var(--hero-header-height) -2px 0 44%;
    }
    .hero-reference--service .hero-reference__diagonal {
        left: 44%;
        width: calc(56% + 2px);
    }
}

/* Service-Detail-Section: 40/60-Komposition und sechs konkrete Module. */
.service-details-reference {
    position: relative;
    overflow: hidden;
    padding: 125px 0;
    background: var(--dark-section-background);
    color: #f8f7f2;
}
.service-details-reference::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: .17;
    background-image: radial-gradient(circle at 16% 14%, rgba(255,255,255,.2) 0 1px, transparent 1.5px);
    background-size: 14px 14px;
}
.service-details-reference__inner {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(calc(100% - 72px), 1400px);
    margin-inline: auto;
    grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
    grid-template-areas: "intro cards" "cta cta";
    gap: 38px 42px;
}
.service-details-reference__intro { grid-area: intro; min-width: 0; }
.service-details-reference__heading { margin-bottom: 30px; }
.service-details-reference__eyebrow {
    margin: 0 0 12px;
    color: #ffc21f;
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    font-weight: 820;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}
.service-details-reference__heading h2 {
    max-width: 600px;
    margin: 0;
    color: #fff;
    font-family: "DM Sans", sans-serif;
    font-size: clamp(38px, 3vw, 52px);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -1.45px;
    text-wrap: balance;
}
.service-details-reference__signal { margin: 20px 0; }
.service-details-reference__lead {
    max-width: 540px;
    margin: 0;
    padding-left: 17px;
    border-left: 3px solid #ffc21f;
    color: #d4d6d3;
    font-family: "DM Sans", sans-serif;
    font-size: 17px;
    line-height: 1.5;
}
.service-details-reference__media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    margin: 0;
    padding: 3px;
    overflow: hidden;
    clip-path: polygon(0 0, 89% 0, 100% 12%, 100% 88%, 89% 100%, 0 100%);
    background: #ffc21f;
}
.service-details-reference__image {
    display: block;
    width: 100%;
    height: 100%;
    clip-path: inherit;
    object-fit: cover;
    object-position: center;
}
.service-details-reference__grid {
    display: grid;
    min-width: 0;
    grid-area: cards;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}
.service-details-reference__card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 215px;
    flex-direction: column;
    padding: 22px 22px 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 3px;
    background: radial-gradient(circle at 23% 22%, rgba(255,255,255,.045), transparent 31%), linear-gradient(118deg, #343434 0%, #252525 55%, #111415 100%);
    box-shadow: 0 14px 28px rgba(0,0,0,.24);
}
.service-details-reference__title-row {
    display: grid;
    min-width: 0;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.service-details-reference__icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 3px;
    background: #ffc21f;
    color: #101313;
}
.service-details-reference__icon .icon { width: 23px; height: 23px; }
.service-details-reference__card h3 {
    min-width: 0;
    margin: 0;
    color: #fff;
    font-family: "DM Sans", sans-serif;
    font-size: 18px;
    font-weight: 820;
    line-height: 1.2;
}
.service-details-reference__card > p {
    margin: 0;
    color: #d4d6d3;
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    line-height: 1.47;
}
.service-details-reference__cta {
    grid-area: cta;
    margin-top: 2px;
    border: 0;
    border-radius: 3px;
}
.service-details-reference__cta .btn { border: 0; border-radius: 3px; }
.service-details-reference__cta .btn__face { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.service-details-reference__cta .btn__face--hover { position: absolute; inset: 0; opacity: 0; pointer-events: none; }

@media (max-width: 1280px) {
    .service-page .site-header--hero .header-container { grid-template-columns: minmax(250px, 300px) minmax(0, 1fr); }
    .service-page .site-header--hero .brand-logo { width: min(285px, 25vw); }
    .service-page .site-header--hero .header-cta { display: none; }
}
@media (max-width: 1100px) {
    .service-details-reference__inner { grid-template-columns: 1fr; grid-template-areas: "intro" "cards" "cta"; }
    .service-details-reference__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr); align-items: end; gap: 28px; }
    .service-details-reference__heading { margin: 0; }
}
@media (max-width: 760px) {
    .service-details-reference__inner { width: min(calc(100% - 40px), 1400px); }
    .service-details-reference__intro { display: block; }
    .service-details-reference__heading { margin-bottom: 28px; }
    .service-details-reference__grid { grid-template-columns: 1fr; }
    .service-details-reference__card { min-height: 190px; }
}
@media (max-width: 680px) {
    .service-page { --hero-header-height: 70px; }
    .service-page .site-header--hero .header-container { width: calc(100% - 40px); min-height: var(--hero-header-height); grid-template-columns: minmax(0, 1fr) auto; gap: 16px; }
    .service-page .site-header--hero .brand-logo { width: min(230px, 64vw); }
    .service-details-reference { padding-block: 125px; }
    .service-details-reference__heading { text-align: center; }
    .service-details-reference__heading h2 { margin-inline: auto; font-size: 36px; }
    .service-details-reference__signal { margin-inline: auto; }
    .service-details-reference__lead { margin-inline: auto; padding-left: 0; border-left: 0; text-align: center; }
    .service-details-reference__media { aspect-ratio: 1 / 1; }
}

/* =========================================================
   PROJECT-WIDE CONTENT TYPOGRAPHY
   The values live in base.css. This late binding deliberately
   excludes every hero, cards, CTAs, labels, footer and legal copy.
   ========================================================= */
:is(
    .content-section[data-section-kind] .section-heading h2,
    .content-section[data-section-kind] .section-heading .section-h1,
    .about-reference__heading h2,
    .services-reference__heading h2,
    .reference-projects__header h2,
    .process-reference__heading h2,
    .advantages-reference__header h2,
    .reviews-reference__intro > h2,
    .partners-productworlds__editorial h2,
    .contact-project-reference__heading h2,
    .service-benefits-reference__heading h2,
    .other-services-reference__heading h2,
    .service-details-reference__heading h2
) {
    font-family: var(--font-section-title) !important;
    font-size: var(--type-section-title) !important;
    font-weight: var(--type-section-title-weight) !important;
    line-height: var(--type-section-title-line-height) !important;
    letter-spacing: var(--type-section-title-letter-spacing) !important;
}

:is(
    .about-reference__heading h2,
    .services-reference__heading h2,
    .reference-projects__header h2,
    .process-reference__heading h2,
    .advantages-reference__header h2,
    .reviews-reference__intro > h2,
    .partners-productworlds__editorial h2,
    .contact-project-reference__heading h2,
    .service-benefits-reference__heading h2,
    .other-services-reference__heading h2,
    .service-details-reference__heading h2
) strong {
    font-weight: inherit !important;
}

:is(
    .content-section[data-section-kind] .section-heading .section-lead,
    .about-reference__body > p,
    .services-reference__lead,
    .reference-projects__lead,
    .advantages-reference__lead,
    .reviews-reference__copy > p,
    .partners-productworlds__lead,
    .contact-project-reference__lead,
    .service-benefits-reference__heading > p,
    .other-services-reference__lead,
    .service-details-reference__lead
) {
    font-family: var(--font-section-copy) !important;
    font-size: var(--type-section-copy) !important;
    font-weight: var(--type-section-copy-weight) !important;
    line-height: var(--type-section-copy-line-height) !important;
    letter-spacing: var(--type-section-copy-letter-spacing) !important;
}
