*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --black: #0a0a0a;
    --white: #ffffff;
    --yellow: #ffc800;
    --yellow-soft: rgba(255, 200, 0, 0.12);
    --charcoal: #1a1a1a;
    --slate: #3d3d3d;
    --muted: #6b6b6b;
    --line: rgba(0, 0, 0, 0.08);
    --header-h: 5.5rem;
    /* Gleicher linker Einzug wie .page-hero-copy / .hero-left */
    --content-inset: max(1.5rem, calc((100vw - 1280px) / 2 + 1.5rem));
    --logo-h: 4rem;
    /* Gelber Balken im PNG: 89 px von 352 px Höhe, Farbe #f8ca00 */
    --logo-bar-h: calc(var(--logo-h) * 89 / 352);
    --logo-bar: #f8ca00;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --font-display: 'Chakra Petch', sans-serif;
    --font-body: 'Albert Sans', system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
    overscroll-behavior-x: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

body {
    font-family: var(--font-body);
    background: var(--white);
    color: var(--black);
    line-height: 1.65;
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
    overscroll-behavior-x: none;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
}

html.menu-open,
body.menu-open {
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

a { text-decoration: none; color: inherit; }

.wrap {
    width: min(1280px, calc(100% - 3rem));
    max-width: 100%;
    margin-inline: auto;
}

/* HEADER */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    width: 100%;
    max-width: 100%;
    z-index: 1000;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid var(--line);
    transition: box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}

#header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--logo-bar-h);
    background: var(--logo-bar);
    pointer-events: none;
    z-index: 0;
}

#header.scrolled {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.95);
}

.header-inner {
    position: relative;
    z-index: 1;
    width: min(1440px, calc(100% - 3rem));
    margin-inline: auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem 1.5rem;
    height: 100%;
}

.logo {
    display: flex;
    align-items: flex-start;
    align-self: start;
    gap: 0;
    min-width: 0;
}

.logo-mark {
    height: var(--logo-h);
    width: auto;
    max-width: min(9.5rem, 28vw);
    object-fit: contain;
    object-position: left top;
    display: block;
    flex-shrink: 0;
}

.logo-wordmark {
    --wordmark-h: 1.85rem;
    height: var(--wordmark-h);
    width: auto;
    max-width: 0;
    margin-top: calc(var(--logo-bar-h) + (var(--logo-h) - var(--logo-bar-h) - var(--wordmark-h)) / 2);
    margin-left: 0;
    object-fit: contain;
    object-position: left center;
    display: block;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-0.35rem);
    pointer-events: none;
    /* Ausblenden etwas kürzer, damit der Header nicht träge wirkt */
    transition:
        opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
        max-width 0.55s cubic-bezier(0.4, 0, 0.2, 1),
        margin-left 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

#header.scrolled .logo-wordmark {
    max-width: min(16.5rem, 42vw);
    margin-left: -1rem;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    transition:
        opacity 1.15s cubic-bezier(0.22, 0.61, 0.36, 1),
        transform 1.05s cubic-bezier(0.22, 0.61, 0.36, 1),
        max-width 1s cubic-bezier(0.22, 0.61, 0.36, 1),
        margin-left 1s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Unterseiten: Schriftzug von Anfang an sichtbar, ohne Einblenden (nur die Startseite blendet beim Scrollen ein). */
body:not(.page-home) .logo-wordmark {
    max-width: min(16.5rem, 42vw);
    margin-left: -1rem;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition: none;
}

body:not(.page-home) #header.scrolled .logo-wordmark {
    transition: none;
}

/* Variante 2: W-Mark im Menü erst beim Scrollen, zusammen mit dem Schriftzug */
body.page-home--rail .logo {
    min-width: 2.75rem;
    min-height: var(--logo-h);
}

body.page-home--rail .logo-mark {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateX(-0.35rem);
    transition:
        opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
        max-width 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

body.page-home--rail #header.scrolled .logo-mark {
    max-width: min(9.5rem, 28vw);
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    transition:
        opacity 1.15s cubic-bezier(0.22, 0.61, 0.36, 1),
        transform 1.05s cubic-bezier(0.22, 0.61, 0.36, 1),
        max-width 1s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.95rem;
    flex-wrap: nowrap;
    min-width: 0;
}

.site-nav a {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--slate);
    position: relative;
    padding: 0.25rem 0;
    flex-shrink: 0;
    transition: color 0.25s;
}

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--yellow);
    transition: width 0.35s var(--ease);
}

.site-nav a:hover { color: var(--black); }
.site-nav a:hover::after { width: 100%; }
.site-nav a.is-active { color: var(--black); }
.site-nav a.is-active::after { width: 100%; }

/* Telefon: normale Schreibweise, Icon + Nummer */
.site-nav .nav-contact,
.mobile-nav .nav-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--black);
    text-transform: none;
    letter-spacing: 0.02em;
    font-weight: 600;
    white-space: nowrap;
}
.site-nav .nav-contact::after,
.mobile-nav .nav-contact::after {
    content: none;
}
.site-nav .nav-contact svg,
.mobile-nav .nav-contact svg {
    width: 1.05rem;
    height: 1.05rem;
    flex-shrink: 0;
}
.site-nav .nav-contact:hover { color: var(--black); }

/* Nur-Hörer: Nummer visuell weg, Icon größer. Mobil behält die Nummer. */
.site-nav .nav-contact--icon-only {
    padding: 0.35rem 0.1rem 0.35rem 0.2rem;
    gap: 0;
}
.site-nav .nav-contact--icon-only span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.site-nav .nav-contact--icon-only svg {
    width: 1.95rem;
    height: 1.95rem;
    transition: transform 0.2s var(--ease);
}
.site-nav .nav-contact--icon-only:hover svg {
    transform: scale(1.08);
}
.mobile-nav .nav-contact--icon-only svg {
    width: 1.35rem;
    height: 1.35rem;
}

@media (max-width: 1480px) {
    .site-nav .nav-contact:not(.nav-contact--icon-only) span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
    .site-nav .nav-contact:not(.nav-contact--icon-only) {
        padding: 0.4rem;
    }
}

/* Anfrage: Gelb auf Weiß, sonst schluckt .site-nav a die Button-Farbe */
.cta-btn {
    padding: 0.65rem 1.25rem;
    background: var(--yellow);
    color: var(--black);
    border: 2px solid var(--black);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.site-nav .cta-btn,
.mobile-nav .cta-btn {
    background: var(--yellow);
    color: var(--black);
    padding: 0.65rem 1.25rem;
}
.site-nav .cta-btn::after {
    content: none;
}
.cta-btn:hover,
.site-nav .cta-btn:hover,
.mobile-nav .cta-btn:hover {
    background: var(--black);
    color: var(--yellow);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* Hörer + CTAs als eine Gruppe, enger aneinander als die Textlinks */
.site-nav .nav-end {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    flex-shrink: 0;
    margin-left: 0.15rem;
}

/* Zweite CTA-Spur: Recruiting neben der Anfrage, nicht gelb (Anfrage bleibt Primär) */
.nav-ctas {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}
.site-nav .nav-ctas .cta-btn {
    padding: 0.55rem 0.95rem;
}
.cta-btn--career {
    background: transparent;
    color: var(--black);
}
.site-nav .cta-btn--career,
.mobile-nav .cta-btn--career {
    background: transparent;
    color: var(--black);
}
.cta-btn--career:hover,
.site-nav .cta-btn--career:hover,
.mobile-nav .cta-btn--career:hover {
    background: var(--black);
    color: var(--yellow);
}
.cta-btn.is-active,
.cta-btn--career.is-active {
    box-shadow: inset 0 0 0 1px var(--black);
}
.cta-long { display: none; }

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    background: var(--yellow);
    border: 2px solid var(--black);
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--black);
    transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: var(--white);
    z-index: 1001;
    padding: 1.25rem 1.5rem max(2rem, env(safe-area-inset-bottom, 0px));
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--line);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}
.mobile-nav .nav-contact {
    font-family: var(--font-body);
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 0;
}
.mobile-nav .cta-btn {
    align-self: stretch;
    margin-top: 0;
    font-size: 0.85rem;
    border: 2px solid var(--black);
    text-align: center;
}
.mobile-nav .nav-ctas {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    margin-top: 0.85rem;
}
.mobile-nav .cta-short { display: none; }
.mobile-nav .cta-long { display: inline; }

/* HERO */
.hero {
    margin-top: var(--header-h);
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100dvh - var(--header-h));
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, transparent 42%, var(--yellow-soft) 42%, var(--yellow-soft) 58%, transparent 58%),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 79px,
            rgba(0, 0, 0, 0.03) 79px,
            rgba(0, 0, 0, 0.03) 80px
        ),
        linear-gradient(180deg, var(--white) 0%, #f0f0ee 100%);
    z-index: 0;
}

.hero-accent {
    position: absolute;
    top: -20%;
    right: -8%;
    width: 55%;
    height: 140%;
    background: var(--yellow);
    clip-path: polygon(28% 0%, 100% 0%, 100% 100%, 0% 100%);
    z-index: 0;
    opacity: 0.95;
}

.hero-accent::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -12deg,
        transparent,
        transparent 3px,
        rgba(0, 0, 0, 0.04) 3px,
        rgba(0, 0, 0, 0.04) 4px
    );
}

.hero-left {
    position: relative;
    z-index: 1;
    min-width: 0;
    padding: 4rem 0 4rem max(1.5rem, calc((100vw - 1280px) / 2 + 1.5rem));
    padding-right: 2rem;
}

.hero-right {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    padding: 3rem 2rem;
}

.hero-logo-wrap {
    background: var(--white);
    padding: 2.5rem 3rem;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.06),
        0 24px 64px rgba(0, 0, 0, 0.1),
        0 4px 16px rgba(0, 0, 0, 0.04);
    position: relative;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
}

.hero-logo-wrap::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: 3px;
    bottom: 3px;
    border: 2px solid var(--black);
    z-index: -1;
}

.hero-logo-wrap img {
    height: auto;
    width: auto;
    max-height: clamp(7rem, 14vw, 10.5rem);
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.eyebrow::before {
    content: '';
    width: 2rem;
    height: 2px;
    background: var(--yellow);
}

.hero h1 {
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    max-width: none;
    overflow-wrap: normal;
    hyphens: none;
}

/* Zwei Zeilen: „Elektroanlagen für“ / „Bahninfrastruktur“ — nicht mitten im Wort */
.hero h1 .hero-h1-lead,
.hero h1 em {
    display: block;
}

.hero h1 .hero-h1-lead {
    white-space: nowrap;
}

.hero h1 em {
    font-style: normal;
    width: fit-content;
    max-width: 100%;
    color: var(--black);
    position: relative;
    overflow-wrap: normal;
}

.hero h1 em::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0.05em;
    width: 100%;
    height: 0.35em;
    background: var(--yellow);
    z-index: -1;
    opacity: 0.85;
}

.hero-subtitle {
    font-size: 1.0625rem;
    color: var(--muted);
    max-width: 38ch;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    margin-bottom: 3rem;
}

.btn-primary {
    padding: 0.95rem 1.75rem;
    background: var(--black);
    color: var(--white);
    border: none;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    cursor: pointer;
    transition: all 0.35s var(--ease);
}

.btn-primary:hover {
    background: var(--charcoal);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    padding: 0.95rem 1.75rem;
    background: transparent;
    color: var(--black);
    border: 1.5px solid var(--black);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    cursor: pointer;
    transition: all 0.35s var(--ease);
}

.btn-secondary:hover {
    background: var(--black);
    color: var(--white);
}

.btn-career {
    padding: 0.95rem 1.75rem;
    background: var(--yellow);
    color: var(--black);
    border: 2px solid var(--black);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    cursor: pointer;
    transition: all 0.35s var(--ease);
}
.btn-career:hover {
    background: var(--black);
    color: var(--yellow);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hero-tag {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
}

/* Kurzer Bindestrich in Caps/Tracking und Display-Schriften */
.hyph {
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0;
    margin-inline: 0.02em;
}

/*
 * Start Variante 2: Gelbkeil mit derselben Kante wie .page-hero (Kontakt).
 * clip-path in % hängt an der Boxhöhe – 100vh macht sonst einen steileren Winkel.
 * --keil-ref-h = gemessene page-hero-Höhe, --keil-top = sichtbare Kante oben (66.2%).
 *
 * Winkel über atan2 statt Länge×Länge: Firefox verwirft sonst den calc()
 * (typed arithmetic erst in Nightly) und damit den ganzen clip-path —
 * das Foto läuft dann vollflächig unter Logo und Text.
 */
.hero--rail {
    --rail-band: 3.6rem;
    --keil-ref-h: 24.125rem;
    --keil-top: 66.2%;
    --keil-run: calc(0.11 * 100vw);
    --keil-bottom: calc(var(--keil-top) - var(--keil-run) * 2.2);
    --keil-bottom: calc(var(--keil-top) - tan(atan2(var(--keil-run), var(--keil-ref-h))) * (100dvh - var(--header-h)));
    align-items: start;
}

.hero--rail .hero-left {
    padding-top: 3rem;
}

/* Überschrift so breit wie das Logo, damit „Elektroanlagen für“ in eine Zeile passt */
.hero--rail h1 {
    width: calc(66.2vw - var(--content-inset) - 1.5rem);
    max-width: none;
    position: relative;
    z-index: 2;
}

.hero-rail-logo {
    display: block;
    width: calc(66.2vw - var(--content-inset) - 1.5rem);
    max-width: none;
    margin: 0 0 1.75rem;
    position: relative;
    z-index: 2;
}

.hero-rail-logo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: left center;
}

.hero--rail .hero-accent {
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(
        var(--keil-top) 0%,
        100% 0%,
        100% 100%,
        var(--keil-bottom) 100%
    );
}

.hero--rail .hero-accent::after {
    display: none;
}

.hero--rail .hero-right {
    animation: none;
    opacity: 1;
    transform: none;
    visibility: hidden;
    pointer-events: none;
}

.hero-rail-figure {
    position: absolute;
    inset: 0;
    margin: 0;
    clip-path: polygon(
        calc(var(--keil-top) + var(--rail-band)) 0%,
        100% 0%,
        100% 100%,
        calc(var(--keil-bottom) + var(--rail-band)) 100%
    );
}

.hero-rail-figure picture,
.hero-rail-figure img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.hero-rail-figure img {
    object-fit: cover;
    object-position: 62% 70%;
}

.hero-rail-caption {
    position: absolute;
    right: 1.15rem;
    bottom: 1.15rem;
    z-index: 2;
    width: max-content;
    max-width: min(22rem, calc(100% - 2.3rem));
    padding: 0.7rem 0.95rem 0.75rem 0.95rem;
    background: rgba(10, 10, 10, 0.84);
    color: var(--white);
    border-left: 3px solid var(--yellow);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-rail-caption strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.35;
}

.hero-rail-caption span {
    display: block;
    margin-top: 0.22rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.4;
}

/* STATS */
.stats {
    background: var(--black);
    color: var(--white);
    border-block: 3px solid var(--yellow);
}

.stats-inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
    padding: 2.75rem 2rem;
    text-align: center;
    position: relative;
    min-width: 0;
}

.stat + .stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    font-weight: 700;
    color: var(--yellow);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.55);
    overflow-wrap: anywhere;
}

.stat-number--id {
    font-size: clamp(1.15rem, 2.4vw, 1.75rem);
    letter-spacing: 0.04em;
    line-height: 1.15;
    word-break: break-word;
}

.stats-proof .proof-note {
    margin: 0 auto;
    padding: 0 1.5rem 1.75rem;
    max-width: 46rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

/* SECTIONS */
section { position: relative; }

.section-label {
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--yellow);
    margin-bottom: 0.75rem;
}

.section-intro {
    margin-bottom: 3.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--line);
    position: relative;
}

.section-intro::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 4.5rem;
    height: 3px;
    background: var(--yellow);
}

.section-intro-row {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: 40rem;
}

.section-intro--center .section-intro-row {
    margin-inline: auto;
    text-align: center;
    align-items: center;
}

.section-intro--center::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    text-transform: uppercase;
    line-height: 1.1;
}

.section-subtitle {
    color: var(--muted);
    max-width: 42ch;
    font-size: 1.05rem;
    line-height: 1.65;
}

.section-intro--center .section-subtitle {
    max-width: 48ch;
}

/* USP / WARUM WITT */
.usp {
    padding: 7rem 0;
    background: var(--black);
    color: var(--white);
}

.usp .section-intro {
    border-bottom-color: rgba(255,255,255,0.1);
}

.usp .section-title { color: var(--white); }
.usp .section-subtitle { color: rgba(255,255,255,0.5); }

.usp-bento {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.usp-card {
    background: var(--black);
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    min-width: 0;
    transition: background 0.4s var(--ease);
}

.usp-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--yellow);
    transition: width 0.45s var(--ease);
}

.usp-card:hover { background: rgba(255, 255, 255, 0.03); }
.usp-card:hover::after { width: 100%; }

.usp-card--accent {
    background: rgba(255, 200, 0, 0.06);
    grid-column: span 2;
}

.usp-card--accent:hover { background: rgba(255, 200, 0, 0.1); }

.usp-card--accent .usp-icon { color: var(--yellow); }

.usp-icon {
    width: 2.75rem;
    height: 2.75rem;
    color: var(--yellow);
    margin-bottom: 1.25rem;
}

.usp-card h3,
.usp-card .usp-card-title {
    font-size: 1.0625rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.usp-card p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
}

.usp-card--accent p { color: rgba(255, 255, 255, 0.65); }

.usp-badge {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.35rem 0.8rem;
    background: var(--yellow);
    color: var(--black);
    font-family: var(--font-display);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

/* Unterseite Stärken: hell wie Leistungen/Referenzen, nicht der dunkle Home-Block */
.page-staerken .usp {
    background: var(--white);
    color: var(--black);
}
.page-staerken .usp .section-intro {
    border-bottom-color: var(--line);
}
.page-staerken .usp .section-title { color: var(--black); }
.page-staerken .usp .section-subtitle { color: var(--muted); }
.page-staerken .usp-bento {
    background: var(--line);
    border-color: var(--line);
}
.page-staerken .usp-card { background: var(--white); }
.page-staerken .usp-card:hover { background: #f7f7f5; }
.page-staerken .usp-card--accent {
    background: var(--yellow-soft);
}
.page-staerken .usp-card--accent:hover { background: rgba(255, 200, 0, 0.18); }
.page-staerken .usp-card h3,
.page-staerken .usp-card .usp-card-title { color: var(--black); }
.page-staerken .usp-card p { color: var(--muted); }
.page-staerken .usp-card--accent p { color: var(--slate); }
.page-staerken .usp .crumbs { color: var(--muted); }
.page-staerken .usp .crumbs [aria-current="page"] { color: var(--black); }
.page-staerken .usp .crumbs a:hover { color: var(--black); }

/* SERVICES */
.services {
    padding: 7rem 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.service-card {
    background: var(--white);
    padding: 2.25rem 2rem 2.5rem;
    position: relative;
    min-width: 0;
    transition: background 0.4s var(--ease);
    cursor: default;
}
a.service-card {
    display: block;
    color: inherit;
    cursor: pointer;
}
a.usp-card {
    display: block;
    color: inherit;
    cursor: pointer;
}

.service-card::before {
    content: attr(data-num);
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.04);
    line-height: 1;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--yellow);
    transition: width 0.45s var(--ease);
}

.service-card:hover { background: #f7f7f5; }
.service-card:hover::after { width: 100%; }

.service-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1.25rem;
    color: var(--black);
}

.service-card h3,
.service-card .service-card-title {
    font-size: 1.05rem;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    letter-spacing: 0.04em;
    max-width: 100%;
}

.service-card p {
    color: var(--muted);
    font-size: 0.9375rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* PROCESS */
.process {
    padding: 7rem 0;
    background: var(--white);
}

/* Unter den Leistungskarten: der Abschnitt darüber hat schon Abstand. */
.page-leistungen .process {
    padding-top: 0;
}

.process-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    position: relative;
}

.process-steps--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.process-steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.process-steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.process-steps--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.process-steps::before {
    content: '';
    position: absolute;
    top: 1.45rem;
    left: calc(10% + 0.5rem);
    right: calc(10% + 0.5rem);
    height: 1px;
    background: rgba(0, 0, 0, 0.12);
}

.process-step {
    padding: 0 1rem;
    position: relative;
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: var(--black);
    color: var(--yellow);
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.process-step:hover .step-num {
    background: var(--yellow);
    color: var(--black);
}

.process-step h3,
.process-step .process-step-title {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.process-step p {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.65;
}

.process-lead {
    margin: 0 0 3rem;
}
.process-lead img {
    display: block;
    width: 100%;
    max-height: 22rem;
    object-fit: cover;
    object-position: center top;
    border: 1px solid var(--line);
}
.process-lead figcaption {
    margin-top: 0.65rem;
    font-size: 0.8125rem;
    color: var(--muted);
}
.process-steps--media {
    gap: 1.75rem 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
}
.process-steps--media::before {
    display: none;
}
.process-step-media {
    margin: 0 0 1rem;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #111;
    border: 1px solid var(--line);
}
.process-step-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* PORTFOLIO / REFERENZEN */
.portfolio {
    padding: 7rem 0;
    background: var(--white);
}

.portfolio-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin-bottom: 2.5rem;
}

.portfolio-stat {
    background: var(--white);
    padding: 1.5rem 1.75rem;
    text-align: center;
}

.portfolio-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--black);
    letter-spacing: 0.02em;
    line-height: 1.1;
    margin-bottom: 0.35rem;
}

.portfolio-stat span {
    font-size: 0.8125rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.portfolio-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 2rem;
}

.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.portfolio-filter {
    padding: 0.55rem 1rem;
    border: 1px solid var(--line);
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--slate);
    cursor: pointer;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.portfolio-filter:hover,
.portfolio-filter.is-active {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
}

.portfolio-source {
    font-size: 0.8125rem;
    color: var(--muted);
}

.portfolio-source a {
    color: var(--black);
    font-weight: 600;
    border-bottom: 1px solid var(--yellow);
}

.portfolio-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.25rem;
}

.portfolio-item {
    position: relative;
    grid-column: span 4;
    min-height: 18rem;
    overflow: hidden;
    background: var(--charcoal);
    cursor: pointer;
    border: none;
    padding: 0;
    text-align: left;
    font: inherit;
    color: inherit;
    width: 100%;
}

.portfolio-item--hero {
    grid-column: span 8;
    min-height: 22rem;
}

.portfolio-item.is-hidden { display: none; }

/* Projekt ohne eigenes Foto: Schraffur statt Stockbild */
.portfolio-item--noimg {
    background:
        repeating-linear-gradient(135deg, rgba(255, 200, 0, 0.07) 0 2px, transparent 2px 18px),
        var(--charcoal);
}

.portfolio-modal-media[hidden] { display: none; }

.portfolio-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 1.5rem 0;
    color: var(--muted, #6b6b6b);
}

.portfolio-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, rgba(255, 200, 0, 0.12) 0%, transparent 45%, rgba(0, 0, 0, 0.82) 100%);
    z-index: 2;
    transition: background 0.45s var(--ease);
}

.portfolio-item:hover::before,
.portfolio-item:focus-visible::before {
    background: linear-gradient(165deg, rgba(255, 200, 0, 0.28) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.92) 100%);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    display: block;
    transition: transform 0.65s var(--ease);
}

.portfolio-item:hover .portfolio-img,
.portfolio-item:focus-visible .portfolio-img {
    transform: scale(1.05);
}

.portfolio-photos {
    position: absolute;
    top: 3.15rem;
    left: 1rem;
    z-index: 3;
    padding: 0.35rem 0.6rem;
    background: rgba(10, 10, 10, 0.78);
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
}

.portfolio-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    padding: 0.35rem 0.65rem;
    background: var(--yellow);
    color: var(--black);
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.portfolio-num {
    position: absolute;
    top: 1rem;
    left: 1rem;
    /* Chip statt nackter Schrift: bleibt auf hellen Fotos lesbar */
    padding: 0.35rem 0.6rem;
    background: rgba(10, 10, 10, 0.78);
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--yellow);
    z-index: 3;
}

.portfolio-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 3;
    transform: translateY(0.35rem);
    transition: transform 0.4s var(--ease);
}

.portfolio-item:hover .portfolio-content,
.portfolio-item:focus-visible .portfolio-content {
    transform: translateY(0);
}

.portfolio-content h3 {
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 0.35rem;
    letter-spacing: 0.04em;
    line-height: 1.25;
}

.portfolio-content p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.55;
}

.portfolio-meta {
    display: grid;
    gap: 0.35rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transition: max-height 0.45s var(--ease), opacity 0.35s, margin-top 0.35s;
}

.portfolio-item:hover .portfolio-meta,
.portfolio-item:focus-visible .portfolio-meta {
    max-height: 8rem;
    opacity: 1;
    margin-top: 0.75rem;
}

.portfolio-meta dt {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--yellow);
}

.portfolio-meta dd {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 0.35rem;
}

.portfolio-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.portfolio-more {
    max-width: 100%;
    padding: 0.85rem 1.75rem;
    border: 2px solid var(--black);
    background: transparent;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    line-height: 1.45;
    text-align: center;
    white-space: normal;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.portfolio-more:hover {
    background: var(--black);
    color: var(--white);
}

.portfolio-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(10, 10, 10, 0.78);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
}

.portfolio-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.portfolio-modal-panel {
    width: min(920px, 100%);
    max-height: min(90vh, 760px);
    overflow: auto;
    background: var(--white);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    transform: translateY(1rem) scale(0.98);
    transition: transform 0.4s var(--ease);
}

.portfolio-modal.is-open .portfolio-modal-panel {
    transform: translateY(0) scale(1);
}

.portfolio-modal-media {
    position: relative;
    min-height: 18rem;
    background: var(--charcoal);
}

.portfolio-modal-nav {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.75rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0 0.75rem;
}

.portfolio-modal-nav[hidden] { display: none; }

.portfolio-modal-nav button {
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    background: rgba(10, 10, 10, 0.78);
    color: var(--yellow);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.portfolio-modal-nav span {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.portfolio-modal-media img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    display: block;
}

.portfolio-gallery-src { display: none; }

.portfolio-modal-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.portfolio-modal-body h3 {
    font-size: 1.35rem;
    text-transform: uppercase;
}

.portfolio-modal-list {
    list-style: none;
    display: grid;
    gap: 0.85rem;
}

.portfolio-modal-list li {
    border-left: 3px solid var(--yellow);
    padding-left: 0.85rem;
}

.portfolio-modal-list strong {
    display: block;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 0.2rem;
}

.portfolio-modal-list span {
    font-size: 0.9375rem;
    line-height: 1.55;
}

.portfolio-modal-close {
    align-self: flex-start;
    margin-top: auto;
    padding: 0.7rem 1.25rem;
    border: none;
    background: var(--black);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
}

/* CAREERS */
.careers {
    padding: 7rem 0;
    background: var(--white);
}

.careers-intro-note {
    font-size: 0.875rem;
    color: var(--muted);
    margin-top: -1.5rem;
    margin-bottom: 2.5rem;
}

.careers-intro-note a {
    color: var(--black);
    font-weight: 600;
    border-bottom: 1px solid var(--yellow);
}

.careers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.job-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 3px solid var(--yellow);
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
}

.job-card-media {
    aspect-ratio: 16/7;
    overflow: hidden;
    background: var(--charcoal);
}

.job-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s var(--ease);
}

.job-card:hover .job-card-media img { transform: scale(1.03); }

.job-card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex: 1;
}

.job-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.job-card-head h3,
.job-card-head .job-card-title {
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    max-width: none; /* volle Kartenbreite, lange Titel zweizeilig statt schmaler Spalte */
}

.job-badge {
    padding: 0.35rem 0.7rem;
    background: var(--yellow-soft);
    border: 1px solid rgba(255, 200, 0, 0.35);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--black);
    white-space: nowrap;
}

.job-lists {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.job-list h4,
.job-list .job-list-title {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 0.65rem;
}

.job-list ul {
    list-style: none;
    display: grid;
    gap: 0.45rem;
}

.job-list li {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--slate);
    padding-left: 0.85rem;
    position: relative;
}

.job-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 4px;
    height: 4px;
    background: var(--yellow);
    border-radius: 50%;
}

.job-card-link {
    margin-top: auto;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--black);
    border-bottom: 1px solid var(--yellow);
    align-self: flex-start;
}

.careers-apply,
.contact-apply {
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) 1.15fr;
    gap: 0;
}

.careers-apply {
    background: var(--black);
    color: var(--white);
    border: 3px solid var(--yellow);
}

.contact-apply {
    background: var(--white);
    color: var(--black);
    border: 1px solid var(--line);
}

.careers-apply-info,
.contact-apply-info {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
}

.careers-apply-info::after,
.contact-apply-info::after {
    content: '';
    position: absolute;
    top: -3rem;
    right: -3rem;
    width: 10rem;
    height: 10rem;
    background: var(--yellow);
    opacity: 0.08;
    border-radius: 50%;
}

.careers-apply-info > *,
.contact-apply-info > * { position: relative; z-index: 1; }

.careers-apply-info .section-label,
.contact-apply-info .section-label,
.contact-apply-form .section-label { color: var(--yellow); }

.careers-apply-info h3,
.careers-apply-info .careers-apply-title,
.contact-apply-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    text-transform: uppercase;
    max-width: 14ch;
    font-family: var(--font-display);
    font-weight: 600;
    margin: 0;
}

.careers-apply-info p {
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.7;
    font-size: 0.9375rem;
}

.contact-apply-info p {
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.9375rem;
}

.careers-contact {
    list-style: none;
    display: grid;
    gap: 0.85rem;
}

.careers-contact li {
    border-left: 3px solid var(--yellow);
    padding-left: 0.85rem;
}

.careers-contact strong {
    display: block;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.15rem;
}

.careers-contact span,
.careers-contact a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.92);
}

.careers-contact a:hover { color: var(--yellow); }

.contact-apply .careers-contact strong { color: var(--muted); }
.contact-apply .careers-contact span,
.contact-apply .careers-contact a { color: var(--black); }
.contact-apply .careers-contact a {
    border-bottom: 1px solid var(--yellow);
}
.contact-apply .careers-contact a:hover { color: var(--slate); }

.careers-apply-form,
.contact-apply-form {
    padding: 2.5rem;
    display: grid;
    gap: 1rem;
}

.careers-apply-form {
    background: var(--charcoal);
}

.contact-apply-form {
    background: var(--white);
    border-left: 1px solid var(--line);
}

.careers-apply-form .form-row,
.contact-apply-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.careers-apply-form .form-group label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.55);
}

.careers-apply-form .form-group input,
.careers-apply-form .form-group select,
.careers-apply-form .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    transition: border-color 0.25s, background 0.25s;
}

.careers-apply-form .form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ffc800' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.careers-apply-form .form-group select option {
    background: var(--charcoal);
    color: var(--white);
}

.careers-apply-form .form-group input::placeholder,
.careers-apply-form .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.28);
}

.careers-apply-form .form-group input:focus,
.careers-apply-form .form-group select:focus,
.careers-apply-form .form-group textarea:focus {
    outline: none;
    border-color: var(--yellow);
    background: rgba(255, 255, 255, 0.09);
}

.careers-apply-form .btn-primary {
    justify-self: start;
    margin-top: 0.25rem;
}

.contact-form-lead {
    margin: -0.35rem 0 0.25rem;
    color: var(--muted);
    font-size: 0.9375rem;
}

.contact-people-link {
    align-self: flex-start;
    margin-top: auto;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--black);
    background: var(--yellow);
    padding: 0.7rem 1rem;
}

.contact-people-link:hover {
    background: #ffe033;
}

/* TESTIMONIALS / STIMMEN */
.testimonials {
    padding: 7rem 0;
    background: var(--white);
}

.testimonial--featured {
    display: block;
    background: var(--yellow-soft);
    border: 1px solid var(--line);
    padding: 2.25rem 2rem 2.5rem;
    margin: 0 0 2.5rem;
}

.testimonial--featured .testimonial-kicker {
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--black);
    margin-bottom: 1rem;
}

.testimonial--featured .testimonial-text {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.4vw, 1.85rem);
    font-weight: 500;
    line-height: 1.4;
    color: var(--black);
    max-width: 38ch;
    flex: none;
    margin-bottom: 1.5rem;
}

.testimonial--featured footer {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.testimonial--featured footer strong {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.testimonial--featured footer span {
    font-size: 0.8125rem;
    color: var(--muted);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin-bottom: 2.5rem;
}

.testimonial {
    background: var(--white);
    padding: 2rem 1.75rem 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 0;
    transition: background 0.35s var(--ease);
}

.testimonial:hover { background: #f7f7f5; }

.testimonial-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.testimonial-avatar {
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    background: var(--black);
    color: var(--yellow);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.05em;
}

.testimonial-meta { min-width: 0; }

.testimonial-meta strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--black);
    line-height: 1.3;
}

.testimonial-meta span {
    font-size: 0.75rem;
    color: var(--muted);
}

.testimonial-stars {
    color: var(--yellow);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    line-height: 1;
}

.testimonial-text {
    color: var(--slate);
    font-size: 0.95rem;
    line-height: 1.7;
    flex: 1;
}

.testimonial-tag {
    align-self: flex-start;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 0.3rem 0.6rem;
    background: var(--yellow-soft);
    color: var(--black);
    border: 1px solid rgba(255, 200, 0, 0.35);
}

.testimonials-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin-bottom: 2.5rem;
}

.testimonials-metric {
    background: var(--white);
    padding: 1.5rem 1.75rem;
    text-align: center;
    color: inherit;
    display: block;
}

a.testimonials-metric:hover { background: #f7f7f5; }

.testimonials-metric strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--black);
    line-height: 1.1;
    margin-bottom: 0.35rem;
}

.testimonials-metric span {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

a.testimonials-metric span {
    border-bottom: 2px solid var(--yellow);
}

.trust-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    padding-top: 0.5rem;
}

.trust-strip-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted);
    white-space: nowrap;
}

.trust-strip-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.75rem;
    flex: 1;
    justify-content: flex-end;
}

.trust-strip-logos span {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate);
    position: relative;
    padding-left: 1.25rem;
}

.trust-strip-logos span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    background: var(--yellow);
    transform: translateY(-50%) rotate(45deg);
}

/* CONTACT */
.contact {
    padding: 7rem 0 5rem;
    background: var(--white);
    color: var(--black);
}

.contact .section-subtitle {
    max-width: 54ch;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group { display: grid; gap: 0.4rem; }

.form-group label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
}

.form-group input,
.form-group textarea {
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--black);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.3s, background 0.3s;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--yellow);
    background: var(--yellow-soft);
}

.contact-apply-form .btn-primary {
    background: var(--yellow);
    color: var(--black);
    width: 100%;
    justify-self: stretch;
    margin-top: 0.5rem;
    padding: 1.1rem;
}

.contact-apply-form .btn-primary:hover {
    background: #ffe033;
    color: var(--black);
    transform: none;
}

/* FOOTER */
body > footer {
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid var(--line);
    padding: 2.5rem 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: auto minmax(14rem, 1fr) auto;
    grid-template-areas:
        "logo nap links"
        "copy nap links";
    align-items: start;
    column-gap: 2.5rem;
    row-gap: 0.75rem;
}

.footer-logo {
    grid-area: logo;
}

.footer-logo {
    display: block;
}

/* Logo so breit wie die Copyright-Zeile darunter (gleiche Spalte); width:0 + min-width:100%,
   damit das große Logo-Bild die Spalte nicht selbst verbreitert. */
.footer-logo img {
    display: block;
    width: 0;
    min-width: 100%;
    height: auto;
    max-width: none;
}

/* NAP: Straße, Ort, Telefon, Fax, E-Mail */
.footer-nap {
    grid-area: nap;
    font-style: normal;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--slate);
}

.footer-nap-addr {
    margin: 0 0 0.7rem;
    font-weight: 600;
    color: var(--black);
}

.footer-nap-contact {
    margin: 0;
    display: grid;
    gap: 0.2rem;
}

.footer-nap-contact > span {
    display: grid;
    grid-template-columns: 5.25rem minmax(0, 1fr);
    gap: 0.35rem 0.6rem;
    align-items: baseline;
}

.footer-nap-value {
    min-width: 0;
}

.footer-nap-label {
    font-weight: 600;
    color: var(--muted);
}

.footer-nap-label::after {
    content: ':';
}

.footer-nap a {
    font-weight: 600;
    color: var(--slate);
    transition: color 0.25s;
}

.footer-nap a:hover { color: var(--black); }

.footer-copy {
    grid-area: copy;
    font-size: 0.8125rem;
    color: var(--muted);
    align-self: end;
}

.footer-links {
    grid-area: links;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    max-width: 28rem;
    justify-content: flex-end;
}

.footer-links a {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--slate);
    transition: color 0.25s;
}

.footer-links a:hover { color: var(--black); }


/* LEGAL PAGES (Impressum, Datenschutz, Sitemap) */
.legal-page {
    padding: 5rem 0;
    background: var(--white);
    scroll-margin-top: var(--header-h);
}

.legal-page + .legal-page { padding-top: 0; }

.legal-card {
    max-width: 52rem;
    margin-inline: auto;
    background: var(--white);
    border-top: 3px solid var(--yellow);
    padding: 2.5rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
}

.legal-card--wide { max-width: 56rem; }

.legal-card h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 2rem;
    line-height: 1.15;
}

.legal-card h2 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 2rem 0 0.75rem;
}

.legal-card h2:first-of-type { margin-top: 0; }

.legal-card p,
.legal-card li {
    font-size: 0.9375rem;
    color: var(--slate);
    line-height: 1.75;
}

.legal-card p { margin-bottom: 1rem; }

.legal-card ul {
    list-style: none;
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.legal-card li {
    padding-left: 1rem;
    position: relative;
}

.legal-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 4px;
    height: 4px;
    background: var(--yellow);
    border-radius: 50%;
}

.legal-card a {
    color: var(--black);
    font-weight: 600;
    border-bottom: 1px solid var(--yellow);
}

.legal-meta {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.legal-meta-block {
    border-left: 3px solid var(--yellow);
    padding-left: 1rem;
}

.legal-meta-block strong {
    display: block;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.sitemap-list {
    list-style: none;
    display: grid;
    gap: 0.65rem;
}

.sitemap-list > li > a {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sitemap-sub {
    list-style: none;
    margin: 0.5rem 0 0.75rem 1.25rem;
    display: grid;
    gap: 0.35rem;
}

.sitemap-sub a {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--slate);
}

.footer-links a.is-active { color: var(--black); }

/* ANIMATIONS — sparsam, seriös */
.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
    transition-delay: var(--reveal-delay, 0s);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-left > * {
    opacity: 0;
    transform: translateY(20px);
    animation: heroIn 0.9s var(--ease) forwards;
}

.hero-left .hero-rail-logo { animation-delay: 0.05s; }
.hero-left .eyebrow         { animation-delay: 0.15s; }
.hero-left h1               { animation-delay: 0.2s; }
.hero-left .hero-subtitle   { animation-delay: 0.35s; }
.hero-left .hero-ctas       { animation-delay: 0.5s; }
.hero-left .hero-tags       { animation-delay: 0.65s; }

.hero-right {
    opacity: 0;
    transform: scale(0.96);
    animation: heroLogoIn 1s var(--ease) 0.3s forwards;
}

.hero--rail .hero-rail-figure {
    opacity: 0;
    /* Nur Opacity: Transform + clip-path auf demselben Element ignoriert Firefox oft. */
    animation: heroRailFade 1.05s var(--ease) 0.18s forwards;
}

@keyframes heroIn {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroRailFade {
    to { opacity: 1; }
}

@keyframes heroLogoIn {
    to { opacity: 1; transform: scale(1); }
}

/* RESPONSIVE */
@media (max-width: 1360px) {
    .site-nav { display: none; }
    .menu-toggle { display: flex; }
    .header-inner { grid-template-columns: 1fr auto; }
}

@media (max-width: 1100px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-accent {
        width: 100%;
        height: 13.5rem;
        top: 0;
        bottom: auto;
        right: 0;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 72%);
    }

    .hero-right {
        order: 1;
        width: 100%;
        padding: 2rem 1.5rem 0.35rem;
        justify-content: center;
    }

    .hero-left {
        order: 2;
        padding: 1rem 1.5rem 2.75rem;
    }

    .hero-left .eyebrow {
        margin-bottom: 1.15rem;
        flex-wrap: wrap;
        max-width: 100%;
    }

    .hero h1 {
        max-width: none;
        width: auto;
        font-size: clamp(1.5rem, 6.6vw, 3.25rem);
    }

    .hero--rail h1 {
        width: auto;
        white-space: normal;
    }

    .hero-logo-wrap {
        margin-inline: auto;
        padding: 1.25rem 1.5rem;
    }

    .hero-logo-wrap img {
        max-height: 6.25rem;
    }

    .hero--rail {
        --rail-band: 0.9rem;
        --mobile-photo-h: 14.75rem;
    }

    .hero--rail .hero-left {
        position: relative;
        padding: calc(var(--mobile-photo-h) + 0.85rem) 1.5rem 2.75rem;
    }

    .hero-rail-logo {
        --logo-inline: 1.5rem;
        --toggle-w: 2.75rem;
        position: absolute;
        top: 1.15rem;
        left: var(--logo-inline);
        /* Option 1: rechte gelbe Ecke unter der linken Kante des Hamburger-Icons */
        width: calc(100% - (2 * var(--logo-inline)) - var(--toggle-w));
        margin: 0;
        z-index: 3;
        filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.55));
    }

    /* Option 2 (Admin): rechts denselben Innenabstand wie links */
    .hero-rail-logo--wide {
        width: calc(100% - (2 * var(--logo-inline)));
    }

    .hero--rail .hero-right {
        display: none;
    }

    .hero--rail .hero-accent {
        top: 0;
        right: 0;
        width: 100%;
        height: var(--mobile-photo-h);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 72%);
    }

    .hero-rail-figure {
        clip-path: polygon(
            0 0,
            100% 0,
            100% calc(100% - var(--rail-band)),
            0 calc(72% - var(--rail-band))
        );
    }

    .hero-rail-figure img {
        object-position: 55% 62%;
    }

    .hero-rail-caption {
        display: none;
    }
}

@media (max-width: 1024px) {
    .usp-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .usp-card--accent { grid-column: span 2; }
    .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .portfolio-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .portfolio-item,
    .portfolio-item--hero { grid-column: span 6; min-height: 16rem; }
    .portfolio-modal-panel { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .careers-grid { grid-template-columns: 1fr; }
    .job-lists { grid-template-columns: 1fr; }
    .careers-apply,
    .contact-apply { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root {
        --header-h: 4.75rem;
        --logo-h: 3.15rem;
    }

    .logo-wordmark {
        --wordmark-h: 1.35rem;
    }

    #header.scrolled .logo-wordmark,
    body:not(.page-home) .logo-wordmark {
        max-width: min(11rem, 48vw);
        margin-left: -0.75rem;
    }

    .logo-mark {
        max-width: min(6.5rem, 32vw);
    }

    body.page-home--rail #header.scrolled .logo-mark {
        max-width: min(6.5rem, 32vw);
    }

    .wrap { width: min(1280px, calc(100% - 2rem)); }
    .header-inner { width: min(1440px, calc(100% - 2rem)); }

    .hero-right { padding: 1.5rem 1.25rem 0.2rem; }
    .hero-left { padding: 0.85rem 1.25rem 2.25rem; }
    .hero-accent { height: 11.5rem; }

    .hero--rail {
        --mobile-photo-h: 13.25rem;
    }
    .hero--rail .hero-left {
        padding: calc(var(--mobile-photo-h) + 0.75rem) 1.25rem 2.25rem;
    }
    .hero-rail-logo {
        --logo-inline: 1rem;
        top: 1rem;
    }
    .hero--rail .hero-accent { height: var(--mobile-photo-h); }

    .stats-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat { padding: 1.75rem 0.85rem; }
    .stat + .stat::before { display: none; }
    .stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.08); }

    .usp-bento { grid-template-columns: 1fr; }
    .usp-card--accent { grid-column: auto; }

    .services-grid { grid-template-columns: minmax(0, 1fr); }
    .service-card { padding: 1.75rem 1.25rem 2rem; }
    .portfolio { padding: 4.5rem 0 3.5rem; }
    .portfolio-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .portfolio-stat { padding: 1rem 0.5rem; }
    .portfolio-stat strong { font-size: clamp(0.95rem, 4.2vw, 1.35rem); }
    .portfolio-stat span {
        font-size: 0.625rem;
        letter-spacing: 0.06em;
        display: block;
        line-height: 1.35;
    }
    /* 12-Spalten-Bento auf Mobil: volle Karten statt schmaler Streifen */
    .portfolio-bento { grid-template-columns: 1fr; gap: 1rem; }
    .portfolio-item,
    .portfolio-item--hero {
        grid-column: auto;
        min-height: 16.5rem;
    }
    .portfolio-content { padding: 1.15rem 1.1rem; }
    .portfolio-toolbar { flex-direction: column; align-items: stretch; }
    .portfolio-filters { justify-content: flex-start; }
    .portfolio-filter { padding: 0.5rem 0.75rem; }
    .portfolio-more { padding: 0.8rem 1.1rem; letter-spacing: 0.08em; }
    .portfolio-modal {
        align-items: flex-end;
        padding: 0;
    }
    .portfolio-modal-panel {
        max-height: min(92dvh, 760px);
        width: 100%;
    }
    .portfolio-modal-media { min-height: 12rem; }
    .portfolio-modal-body { padding: 1.25rem 1.25rem 1.5rem; }

    .process-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem 1.5rem;
    }
    .process-steps--media {
        grid-template-columns: 1fr;
    }
    .process-steps::before { display: none; }
    .process-lead img { max-height: 16rem; }

    .testimonials-grid { grid-template-columns: 1fr; }
    .testimonials-metrics { grid-template-columns: 1fr; }
    .trust-strip { flex-direction: column; align-items: flex-start; }
    .trust-strip-logos { justify-content: flex-start; }

    .form-row { grid-template-columns: 1fr; }
    .careers-apply-form .form-row { grid-template-columns: 1fr; }
    .careers-apply-info,
    .careers-apply-form,
    .contact-apply-info,
    .contact-apply-form { padding: 1.75rem 1.5rem; }
    .contact-apply-form {
        border-left: none;
        border-top: 1px solid var(--line);
    }
    .contact-apply-form .form-row { grid-template-columns: 1fr; }
    .legal-card { padding: 1.75rem 1.25rem; }

    .footer-inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "logo"
            "nap"
            "copy"
            "links";
        justify-items: stretch;
        text-align: center;
        row-gap: 1.35rem;
    }
    .footer-logo {
        justify-self: center;
    }
    .footer-logo img {
        width: min(18rem, 80vw);
        min-width: 0;
        height: auto;
    }
    .footer-nap {
        width: 100%;
        max-width: 22rem;
        justify-self: center;
    }
    .footer-nap-contact {
        gap: 0.7rem;
    }
    .footer-nap-contact > span {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.12rem;
        text-align: center;
    }
    .footer-nap-label::after {
        content: none;
    }
    .footer-nap-value,
    .footer-nap-value a {
        white-space: normal;
        overflow-wrap: anywhere;
        font-weight: 600;
        color: var(--black);
    }
    .footer-copy {
        max-width: 22rem;
        justify-self: center;
        line-height: 1.55;
        padding-inline: 0.25rem;
    }
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
        width: 100%;
        gap: 0.7rem 1.1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--line);
    }
}

@media (max-width: 480px) {
    .process-steps { grid-template-columns: 1fr; }
}

/* Ansprechpartner: Wegeleitung + Karten nach Abteilung */
.page-people .people-main {
    background: var(--white);
    color: var(--black);
}

.people {
    padding: 7rem 0 4rem;
    background: var(--white);
}

.people .section-subtitle {
    max-width: 54ch;
}

.people-routes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin: 0 0 3rem;
}

.people-route {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.5rem 1.4rem 1.4rem;
    background: var(--white);
    color: var(--black);
    min-height: 8.5rem;
}

.people-route:hover {
    background: var(--yellow-soft);
}

.people-route-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--yellow);
}

.people-route strong {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.15;
}

.people-route span:last-child {
    color: var(--muted);
    font-size: 0.9375rem;
}

#team {
    scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.people-empty {
    color: var(--muted);
    margin: 2rem 0;
}

.people-empty a {
    color: var(--black);
    font-weight: 600;
    border-bottom: 1px solid var(--yellow);
}

.people-groups {
    display: grid;
    gap: 2.5rem;
}

.people-group-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--line);
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
    gap: 1.25rem;
}

.person-card {
    border: 1px solid var(--line);
    border-top: 3px solid var(--yellow);
    background: var(--white);
    padding: 1.5rem 1.4rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 9.5rem;
}
.person-card--has-photo {
    padding-top: 0;
}
.person-photo {
    margin: 0 -1.4rem 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #111;
}
.person-card--has-photo .person-photo {
    margin-left: -1.4rem;
    margin-right: -1.4rem;
}
.person-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.person-row--has-photo {
    grid-template-columns: 3.5rem minmax(10rem, 0.9fr) minmax(14rem, 1.4fr);
    align-items: center;
}
.person-row .person-photo {
    margin: 0;
    width: 3.5rem;
    height: 3.5rem;
    aspect-ratio: 1;
    border-radius: 2px;
}
.person-row .person-photo img {
    object-position: center 18%;
}

.person-name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    text-transform: none;
    margin: 0;
}

.person-actions {
    list-style: none;
    display: grid;
    gap: 0.45rem;
    margin-top: auto;
}

.person-actions a,
.person-actions span {
    color: var(--black);
    font-size: 0.9375rem;
    word-break: break-word;
}

.person-actions a {
    border-bottom: 1px solid var(--yellow);
}

.person-actions a:hover { color: var(--slate); }

/* Listenansicht: eine Zeile pro Person statt Kacheln. */
.people-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--line);
}

.person-row {
    display: grid;
    grid-template-columns: minmax(10rem, 0.9fr) minmax(14rem, 1.4fr);
    gap: 0.5rem 1.5rem;
    align-items: baseline;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--line);
}

.person-row .person-name {
    font-size: 1.15rem;
}

.person-actions--inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.35rem;
    margin-top: 0;
}

@media (max-width: 640px) {
    .person-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
        padding: 0.85rem 0;
    }
    .person-row--has-photo {
        grid-template-columns: 3.5rem 1fr;
        align-items: center;
    }
    .person-row--has-photo .person-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .people-routes { grid-template-columns: 1fr; }
}

/* Legal subpages */
.page-legal .legal-main {
    margin-top: var(--header-h);
    padding: 4rem 0 5rem;
    background: var(--white);
    min-height: calc(100vh - var(--header-h) - 6rem);
}

.page-legal .footer-links a.is-active { color: var(--black); }


/* Kit CMS / Cookie overlay remains usable on this design */
.cms-edit-bar {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 9999;
  display: flex; gap: 0.5rem; align-items: center;
  background: #111; color: #fff; padding: 0.5rem 0.75rem; border-radius: 4px;
  font-family: system-ui, sans-serif; font-size: 0.85rem;
}
.cms-edit-bar a, .cms-edit-btn { color: #fff; background: transparent; border: 0; cursor: pointer; text-decoration: none; }
.cms-edit-link--muted { opacity: 0.7; }
.cms-edit-mode [contenteditable="true"] { outline: 1px dashed var(--yellow); }
.cms-save-toast {
  position: fixed; bottom: 4.5rem; right: 1rem; background: #111; color: #fff;
  padding: 0.4rem 0.7rem; font-family: system-ui, sans-serif;
}
.form-flash { margin: 0 0 1rem; padding: 0.85rem 1rem; border: 1.5px solid var(--black); }
.form-flash--ok { background: var(--yellow); }
.form-flash--err { background: #fff; }
.hp-field {
    position: absolute;
    left: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}
a.cta-btn, a.btn-primary, a.btn-secondary, a.btn-career { display: inline-flex; align-items: center; justify-content: center; }

.landing .btn { display: inline-flex; align-items: center; justify-content: center; }
.landing .btn,
a.btn {
    padding: 0.95rem 1.75rem;
    background: var(--black);
    color: var(--white);
    border: none;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}
.landing__usp {
    display: grid;
    gap: 1rem;
    padding: 0;
    list-style: none;
    margin: 1.5rem 0;
}
.landing__usp li {
    background: #fff;
    padding: 1rem 1.15rem;
    border: 1.5px solid var(--black);
}
.landing__usp strong { display: block; font-family: var(--font-display); margin-bottom: 0.25rem; }

/* Unterseiten statt Onepager */
body.page-inner main > section:first-of-type {
    margin-top: var(--header-h);
}

/* Nach dem Hero weniger Leerraum als bei einer reinen Text-Überschrift */
body.page-inner .page-hero + section {
    padding-top: 4rem;
}

.leistung-head {
    padding: 3rem var(--content-inset) 1.5rem;
    background: var(--white);
}
.leistung-head .wrap {
    width: 100%;
    max-width: none;
    margin: 0;
}
.leistung-head .section-intro {
    margin-bottom: 0;
}
.leistung-head .section-subtitle {
    max-width: 46rem;
}

.crumbs {
    margin: 0 0 1.5rem;
    font-size: 0.8125rem;
}
.crumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    color: var(--muted);
}
.crumbs li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--line);
}
.crumbs a { color: inherit; }
.crumbs a:hover { color: var(--black); }
.crumbs [aria-current="page"] { color: var(--black); }

.usp .crumbs {
    color: rgba(255, 255, 255, 0.45);
}
.usp .crumbs [aria-current="page"] {
    color: var(--white);
}
.usp .crumbs a:hover {
    color: var(--yellow);
}

.cta-band {
    padding: 3.5rem 0;
    background: var(--yellow);
    color: var(--black);
}
.cta-band-inner {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 2rem;
    flex-wrap: wrap;
}
.cta-band--dual .cta-band-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 0;
}
.cta-track {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    min-width: 0;
}
.cta-band--dual .cta-track {
    padding-right: 2.5rem;
}
.cta-track--career {
    padding-left: 2.5rem;
    padding-right: 0;
    border-left: 1px solid rgba(0, 0, 0, 0.18);
}
.cta-band .section-label { color: var(--black); }
.cta-band-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    text-transform: uppercase;
    margin: 0.15rem 0 0.4rem;
    overflow-wrap: break-word;
    max-width: 100%;
}
.cta-band-text { margin: 0 0 1.15rem; max-width: 36rem; }
.cta-band .btn-primary {
    background: var(--black);
    color: var(--white);
    margin-top: auto;
}
.cta-band .btn-career {
    background: transparent;
    margin-top: auto;
}
.cta-band .btn-career:hover {
    background: var(--black);
    color: var(--yellow);
}

/* Nach den Desktop-2-Spalten, sonst gewinnt 1fr 1fr auf dem Handy */
@media (max-width: 1024px) {
    .cta-band--dual .cta-band-inner {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .cta-band--dual .cta-track {
        padding-right: 0;
    }
    .cta-track--career {
        padding-left: 0;
        padding-top: 1.75rem;
        border-left: 0;
        border-top: 1px solid rgba(0, 0, 0, 0.18);
    }
}

.stimmen-cross {
    padding: 3rem 0 3.5rem;
    background: var(--white);
    border-top: 1px solid var(--line);
}
.stimmen-cross-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem 2rem;
    flex-wrap: wrap;
}
.stimmen-cross-title {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    text-transform: uppercase;
    margin: 0.15rem 0 0.4rem;
}
.stimmen-cross-text {
    margin: 0;
    max-width: 40rem;
    color: var(--muted);
}

/* Hauptseiten-Hero: gleicher Aufbau wie Startseite (weiß + gelber Keil), Zahl in Karte */
.page-hero {
    position: relative;
    background: var(--white);
    color: var(--black);
    overflow: hidden;
    padding: 0;
    min-height: 0;
}
.page-hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, transparent 42%, var(--yellow-soft) 42%, var(--yellow-soft) 58%, transparent 58%),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 79px,
            rgba(0, 0, 0, 0.03) 79px,
            rgba(0, 0, 0, 0.03) 80px
        ),
        linear-gradient(180deg, var(--white) 0%, #f0f0ee 100%);
    z-index: 0;
}
.page-hero-accent {
    position: absolute;
    top: -20%;
    right: -8%;
    width: 55%;
    height: 140%;
    background: var(--yellow);
    clip-path: polygon(28% 0%, 100% 0%, 100% 100%, 0% 100%);
    z-index: 0;
    opacity: 0.95;
}
.page-hero-accent::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -12deg,
        transparent,
        transparent 3px,
        rgba(0, 0, 0, 0.04) 3px,
        rgba(0, 0, 0, 0.04) 4px
    );
}
/* Volle Viewport-Breite wie .hero, sonst sitzt die Zahl neben dem Keil */
.page-hero-inner.wrap {
    width: 100%;
    max-width: none;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: center;
    position: relative;
    z-index: 1;
}
.page-hero-copy {
    padding: 3rem 2rem 3.25rem var(--content-inset);
    min-width: 0;
}
.page-hero-title {
    font-size: clamp(1.85rem, 4.2vw, 3.15rem);
    text-transform: uppercase;
    max-width: 100%;
    margin: 0 0 1.15rem;
    position: relative;
    isolation: isolate;
    overflow-wrap: break-word;
    hyphens: manual;
}
.page-hero-title em {
    font-style: normal;
    color: var(--black);
    position: relative;
}
.page-hero-title em::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0.05em;
    width: 100%;
    height: 0.35em;
    background: var(--yellow);
    z-index: -1;
    opacity: 0.85;
}
.page-hero-lead {
    max-width: 38rem;
    font-size: 1.0625rem;
    color: var(--muted);
    margin: 0 0 1.5rem;
}
.page-hero-ctas {
    margin-top: 1.75rem;
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    /* Höhe eines .btn-primary (padding + Schrift), auch wenn der Slot leer ist */
    min-height: calc(1.9rem + 0.75rem * 1.65);
}
.page-hero-figure {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    min-width: 0;
}
.page-hero-card {
    background: var(--white);
    padding: 2.25rem 2.75rem 1.85rem;
    text-align: center;
    position: relative;
    z-index: 0;
    isolation: isolate;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.06),
        0 24px 64px rgba(0, 0, 0, 0.1),
        0 4px 16px rgba(0, 0, 0, 0.04);
}
.page-hero-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: 3px;
    bottom: 3px;
    border: 2px solid var(--black);
    z-index: -1;
}
.page-hero-kv {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 5.5vw, 4.75rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.03em;
    color: var(--black);
    margin: 0;
    white-space: nowrap;
}
.page-hero-kv-label {
    margin: 0.7rem 0 0;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--muted);
}
.page-hero-figure .service-icon {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 0.75rem;
    color: var(--black);
}
.page-hero-card--photo {
    padding: 0;
    width: min(100%, 27rem);
    overflow: hidden;
}
.page-hero-card--photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: var(--hero-photo-pos, center 60%);
}

.leistung-gallery {
    padding: 1.5rem 0 3.5rem;
    background: var(--white);
}
.leistung-gallery-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
}
.leistung-gallery-grid--1 {
    grid-template-columns: minmax(0, 28rem);
}
.leistung-gallery-grid--6 {
    grid-template-columns: repeat(3, 1fr);
}
.leistung-gallery-grid--5 {
    grid-template-columns: repeat(6, 1fr);
}
.leistung-gallery-grid--5 > li:nth-child(-n+3) {
    grid-column: span 2;
}
.leistung-gallery-grid--5 > li:nth-child(n+4) {
    grid-column: span 3;
}
.leistung-gallery-grid figure {
    margin: 0;
    background: var(--white);
    border: 1px solid var(--line);
}
.leistung-gallery-grid img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
}
.leistung-gallery-grid figcaption {
    padding: 0.7rem 0.9rem 0.85rem;
    font-size: 0.8125rem;
    color: var(--muted);
    line-height: 1.45;
}

.leistung-chain { padding: 5rem 0; }

.leistung {
    padding: 5rem 0 4.5rem;
    background: var(--white);
}
.leistung-layout {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 0;
}
.leistung-copy h2 {
    font-size: 1.15rem;
    text-transform: uppercase;
    margin: 0 0 0.6rem;
}
.leistung-copy p { color: var(--slate); }
.leistung-copy section + section { margin-top: 2.25rem; }
.leistung-aside {
    background: var(--black);
    color: var(--white);
    padding: 2.15rem 1.85rem 2rem;
    position: sticky;
    top: calc(var(--header-h) + 1.25rem);
}
.leistung-aside .section-label { margin-bottom: 0.35rem; }
.leistung-aside h2 {
    font-size: 1.15rem;
    text-transform: uppercase;
    margin: 0 0 1.15rem;
    color: var(--white);
}
.leistung-aside ul {
    list-style: none;
    margin: 0 0 1.75rem;
}
.leistung-aside li {
    padding: 0.7rem 0 0.7rem 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
    position: relative;
}
.leistung-aside li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.15rem;
    width: 0.45rem;
    height: 0.45rem;
    background: var(--yellow);
}
.leistung-aside .btn-primary {
    background: var(--yellow);
    color: var(--black);
    width: 100%;
}

.leistung-faq {
    padding: 0 0 4rem;
    background: var(--white);
}
.leistung-faq h2,
.leistung-more h2 {
    font-size: 1.35rem;
    text-transform: uppercase;
    margin: 0 0 1.35rem;
}
.faq-list { display: grid; gap: 0; max-width: 48rem; }
.faq-item {
    border-bottom: 1px solid var(--line);
}
.faq-item summary {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.02rem;
    cursor: pointer;
    padding: 1.15rem 2.5rem 1.15rem 0;
    list-style: none;
    position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 1.05rem;
    color: var(--yellow);
    font-family: var(--font-display);
    font-size: 1.35rem;
    line-height: 1;
}
.faq-item[open] summary::after { content: '–'; }
.faq-item p {
    color: var(--muted);
    margin: 0 0 1.2rem;
    padding-right: 2rem;
    max-width: 42rem;
}

.leistung-more {
    padding: 0 0 5rem;
    background: var(--white);
}
.leistung-more-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}
.leistung-more-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    background: var(--white);
    padding: 1.5rem 1.25rem 1.6rem;
    min-height: 8.5rem;
    position: relative;
    overflow: hidden;
    transition: background 0.35s var(--ease);
}
.leistung-more-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--yellow);
    transition: width 0.45s var(--ease);
}
.leistung-more-card:hover { background: #f7f7f5; }
.leistung-more-card:hover::after { width: 100%; }
.leistung-more-card .service-icon {
    width: 1.75rem;
    height: 1.75rem;
    margin: 0;
}
.leistung-more-card span {
    font-family: var(--font-display);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

@media (max-width: 900px) {
    .page-hero-inner.wrap {
        width: min(1280px, calc(100% - 3rem));
        margin-inline: auto;
        grid-template-columns: 1fr;
        gap: 0;
        padding: 1.75rem 0 2.5rem;
    }
    .page-hero-accent {
        width: 100%;
        height: 38%;
        top: auto;
        bottom: 0;
        right: 0;
        clip-path: polygon(0 38%, 100% 0, 100% 100%, 0 100%);
    }
    .page-hero-copy {
        order: 1;
        padding: 0;
    }
    .leistung-head {
        padding: 1.75rem 0 1.5rem;
    }
    .leistung-head .wrap {
        width: min(1280px, calc(100% - 3rem));
        margin-inline: auto;
    }
    .page-hero-figure {
        order: 2;
        padding: 1.75rem 0 0.5rem;
    }
    .page-hero-title {
        font-size: clamp(1.4rem, 6.6vw, 2.05rem);
    }
    .page-hero-card {
        padding: 1.5rem 1.6rem 1.25rem;
    }
    .page-hero-card--photo {
        padding: 0;
        width: 100%;
    }
    .page-hero-card--photo img { aspect-ratio: 16 / 9; }
    /* Zahlkarte („02 / Leistungen“) trägt mobil nichts bei */
    .page-hero-figure--kv { display: none; }
    .leistung-gallery {
        padding: 0 0 3rem;
    }
    .leistung-gallery-grid,
    .leistung-gallery-grid--5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .leistung-gallery-grid--5 > li:nth-child(-n+3),
    .leistung-gallery-grid--5 > li:nth-child(n+4) {
        grid-column: auto;
    }
    .leistung-layout { grid-template-columns: 1fr; }
    .leistung-aside { position: static; }
    .leistung-more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .leistung-facts .stats-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .leistung-facts .stat { padding: 1.75rem 1rem; }
}
@media (max-width: 600px) {
    .leistung-more-grid { grid-template-columns: 1fr; }
    .leistung-gallery-grid,
    .leistung-gallery-grid--5 {
        grid-template-columns: 1fr;
    }
}



/* Auftraggeber-Liste (Referenzen) */
.client-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.client-list li {
    padding: 0.45rem 0.8rem;
    border: 1px solid var(--line, rgba(0, 0, 0, 0.12));
    background: #fff;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Leistungskarten mit Foto */
.service-card--media { padding-top: 0; }
.service-card--media::before { display: none; }
.service-card-media {
    display: block;
    margin: 0 -2rem 1.5rem;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--charcoal);
}
.service-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s var(--ease);
}
.service-card--media:hover .service-card-media img { transform: scale(1.04); }
@media (max-width: 768px) {
    .service-card-media { margin: 0 -1.25rem 1.25rem; }
}

/* Startseite: Teaser-Sektionen */
.home-more {
    margin: 2.5rem 0 0;
    text-align: center;
}
.home-refs .portfolio-bento { margin-top: 0.5rem; }
a.portfolio-item { display: block; }
.home-clients-label { margin: 3rem 0 0; }
.home-refs { background: #f7f7f5; }
.home-refs .client-list li { background: var(--white); }

/* Formulare: optionale Felder, Datenschutzhinweis */
.form-optional {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    opacity: 0.7;
}
.form-privacy {
    margin: 0 0 1rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    opacity: 0.75;
}
.form-privacy a { color: inherit; text-decoration: underline; }

/* Hero-Foto: schräge Maske auf Inhaltsbreite, Bild etwas höher als die Maske (Scroll-Versatz per site.js) */
.page-hero-photo {
    position: absolute;
    top: 0;
    bottom: 0;
    right: var(--content-inset);
    width: calc((100% - 2 * var(--content-inset)) * 0.46);
    clip-path: polygon(24% 0%, 100% 0%, 100% 100%, 0% 100%);
    overflow: hidden;
    background: var(--charcoal);
    z-index: 0;
}
.page-hero-photo-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 135%;
    object-fit: cover;
    object-position: center top;
    will-change: transform;
}
@media (max-width: 900px) {
    .page-hero--photo .page-hero-inner.wrap { padding-bottom: 15rem; }
    .page-hero--photo .page-hero-accent {
        height: 13.75rem;
        clip-path: polygon(0 3rem, 100% 0, 100% 100%, 0 100%);
    }
    .page-hero-photo {
        top: auto;
        bottom: 0;
        right: 1.5rem;
        width: calc(100% - 3rem);
        height: 12.25rem;
        clip-path: polygon(0 3rem, 100% 0, 100% 100%, 0 100%);
    }
}
@media (max-width: 768px) {
    .stats-proof .stat-number { font-size: 1.75rem; white-space: nowrap; }
}
/* Startseiten-Referenzen: feste Kachelhöhe, Bild füllt die Kachel */
.home-refs .portfolio-item { height: 18rem; min-height: 0; }
.home-refs .portfolio-item--hero,
.home-refs .portfolio-item--hero + .portfolio-item { height: 24rem; }
.home-refs .portfolio-img { position: absolute; inset: 0; min-height: 0; }
@media (max-width: 768px) {
    .home-refs .portfolio-item,
    .home-refs .portfolio-item--hero { height: 16rem; }
}

/* width/height an <img> nur fürs Seitenverhältnis (kein Layout-Sprung); Spezifität 0, Klassenregeln gewinnen. */
:where(img[width][height]) {
    height: auto;
}
