/* =============================================================================
 *  ABU Arbeitssicherheit & SiGeKo — Frontend-Stylesheet
 *  Erstellt durch DOSIGNY — Dominik Baurhenn — https://www.dosigny.com
 *  -------------------------------------------------------------------------
 *  Gestaltungsidee: Die Website übernimmt die Sprache der Baustelle und des
 *  Logos — Signalrot und Anthrazit, harte Kanten, Absperrband als Trenner,
 *  Leistungen als nummeriertes Prüfregister und die rote Kante der
 *  Visitenkarte als wiederkehrendes Erkennungszeichen.
 *
 *  Farben, Schrift und Maße kommen als Custom Properties aus data/theme.json.
 * ========================================================================== */

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

:root {
    --rand: clamp(1rem, 4vw, 2.5rem);
    --kopf-h: 4.5rem;
    --schatten: 0 1.25rem 2.5rem -1rem rgba(17, 18, 20, .22);
    --raster-hell: rgba(25, 26, 28, .055);
    --raster-dunkel: rgba(255, 255, 255, .045);
    /* WhatsApp-Grün mit dunkler Schrift — weiße Schrift hätte zu wenig Kontrast */
    --c-wa: #25D366;
    --c-wa-dunkel: #1DB954;
    /* Schild-Häkchen als Listenmarke — dekorativ, per Maske eingefärbt */
    --haken: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.8 4.5 5.6v5.6c0 4.6 3.1 8.6 7.5 10 4.4-1.4 7.5-5.4 7.5-10V5.6Z'/%3E%3Cpath d='m8.6 12 2.4 2.4 4.4-4.6'/%3E%3C/svg%3E");
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--kopf-h) + 1.5rem);
}

body {
    font-family: var(--f-text);
    font-size: var(--f-basis);
    font-stretch: 100%;
    line-height: 1.6;
    color: var(--c-text);
    background: var(--c-flaeche);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-wrap: break-word;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.012em;
    text-wrap: balance;
    overflow-wrap: anywhere;
    hyphens: auto;
    -webkit-hyphens: auto;
}
h1 { font-size: clamp(2.05rem, 1.25rem + 3.4vw, 4rem); font-stretch: 112%; line-height: 1.03; }
h2 { font-size: clamp(1.7rem, 1.15rem + 2.2vw, 2.75rem); font-stretch: 110%; }
h3 { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); font-stretch: 104%; font-weight: 750; line-height: 1.25; }
p  { text-wrap: pretty; }

a { color: var(--c-rot); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--c-rot-dunkel); }

strong, b { font-weight: 750; }

[id] { scroll-margin-top: calc(var(--kopf-h) + 1.5rem); }

/* Sichtbarer Fokus — auf hellen Flächen rot, auf dunklen und roten weiß. */
:focus-visible {
    outline: 3px solid var(--c-rot);
    outline-offset: 3px;
}
.hero--start :focus-visible,
.kennzahlen :focus-visible,
.abschnitt--dunkel :focus-visible,
.cta :focus-visible,
.fuss :focus-visible,
.oberleiste :focus-visible {
    outline-color: #fff;
}
main:focus { outline: none; }

/* Wer reduzierte Bewegung eingestellt hat, bekommt keine. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

.nur-screenreader {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: .75rem; top: .75rem; z-index: 200;
    padding: .8rem 1.2rem;
    background: var(--c-schwarz); color: #fff; font-weight: 700; text-decoration: none;
    transform: translateY(-200%);
    transition: transform .15s;
}
.skip-link:focus { transform: none; color: #fff; }

.behaelter { width: min(100% - 2 * var(--rand), var(--breite)); margin-inline: auto; }
.behaelter--schmal { width: min(100% - 2 * var(--rand), 50rem); }

/* --- Abschnitte ----------------------------------------------------------- */
.abschnitt { padding-block: clamp(3.5rem, 2rem + 6vw, var(--abstand)); }
.abschnitt--eng { padding-block: clamp(2.5rem, 1.5rem + 3vw, 3.5rem); }
.abschnitt--grau { background: var(--c-flaeche-soft); }
.abschnitt--dunkel { background: var(--c-schwarz); color: #fff; }
.abschnitt--dunkel a:not(.knopf) { color: #fff; }

.abschnitt__kopf { max-width: 48rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.abschnitt__kopf > * + * { margin-top: 1rem; }
.abschnitt__kopf--zeile {
    max-width: none;
    display: grid; gap: 1.25rem 4rem; align-items: end;
}
.abschnitt__kopf--zeile > * + * { margin-top: 0; }
@media (min-width: 60rem) {
    .abschnitt__kopf--zeile { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}
.abschnitt__einleitung { color: var(--c-text-leise); max-width: 40rem; }

/* Überzeile mit roter Kante und optionaler Nummer */
.oberzeile {
    display: flex; flex-wrap: wrap; align-items: center; gap: .75rem;
    margin-bottom: 1rem;
    font-size: .8rem; font-weight: 750; font-stretch: 112%;
    letter-spacing: .16em; text-transform: uppercase;
    color: var(--c-rot);
}
.oberzeile::before {
    content: ""; width: 2rem; height: 3px; background: currentColor; flex: none;
}
.oberzeile:has(.oberzeile__nr)::before { display: none; }
.oberzeile__nr {
    display: inline-grid; place-items: center;
    min-width: 2.4rem; height: 1.8rem; padding-inline: .45rem;
    background: var(--c-rot); color: #fff;
    letter-spacing: .04em; font-variant-numeric: tabular-nums;
}
.oberzeile--hell { color: var(--c-rot-hell); }
.abschnitt--dunkel .oberzeile { color: var(--c-rot-hell); }

/* Absperrband — das wiederkehrende Baustellen-Motiv */
.absperrband {
    height: 14px;
    background: repeating-linear-gradient(-45deg, var(--c-rot) 0 12px, #fff 12px 24px);
}

/* --- Fließtext ------------------------------------------------------------ */
.fliesstext > * + * { margin-top: 1rem; }
.fliesstext h3 { margin-top: 2rem; }
.fliesstext h3 + p { margin-top: .5rem; }
.fliesstext ul, .fliesstext ol { padding: 0; list-style: none; }
.fliesstext li { position: relative; padding-inline-start: 2rem; }
.fliesstext li + li { margin-top: .5rem; }
.fliesstext ul > li::before,
.hakenliste > li::before {
    content: ""; position: absolute; inset-inline-start: 0; top: .2em;
    width: 1.3rem; height: 1.3rem;
    background: var(--c-rot);
    -webkit-mask: var(--haken) center / contain no-repeat;
            mask: var(--haken) center / contain no-repeat;
}
.fliesstext ol { counter-reset: punkt; }
.fliesstext ol > li { counter-increment: punkt; }
.fliesstext ol > li::before {
    content: counter(punkt) "."; position: absolute; inset-inline-start: 0;
    font-weight: 800; color: var(--c-rot);
}

.hakenliste { list-style: none; padding: 0; display: grid; gap: .8rem; }
.hakenliste > li { position: relative; padding-inline-start: 2.1rem; min-width: 0; }
@media (min-width: 48rem) {
    .hakenliste--zweispaltig { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2.5rem; }
}

/* --- Knöpfe --------------------------------------------------------------- */
.knopfreihe { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

.knopf {
    display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
    min-height: 3.1rem; padding: .8rem 1.45rem;
    border: 2px solid transparent; border-radius: var(--radius);
    font: inherit; font-weight: 750; font-stretch: 104%; line-height: 1.2;
    text-decoration: none; text-align: center; cursor: pointer;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.knopf { max-width: 100%; }
.knopf > span { min-width: 0; overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
.knopf .icon { width: 1.15em; height: 1.15em; transition: transform .18s ease; }
.knopf:hover .icon:last-child { transform: translateX(3px); }
.knopf--rot { background: var(--c-rot); color: #fff; }
.knopf--rot:hover { background: var(--c-rot-dunkel); color: #fff; }
.knopf--rahmen { border-color: var(--c-schwarz); color: var(--c-schwarz); background: transparent; }
.knopf--rahmen:hover { background: var(--c-schwarz); color: #fff; }
.knopf--rahmen-hell { border-color: rgba(255, 255, 255, .7); color: #fff; background: transparent; }
.knopf--rahmen-hell:hover { background: #fff; color: var(--c-schwarz); border-color: #fff; }
.knopf--weiss { background: #fff; color: var(--c-schwarz); }
.knopf--weiss:hover { background: var(--c-schwarz); color: #fff; }
.knopf--text { min-height: 2.75rem; padding: .4rem 0; color: var(--c-rot); }
.knopf--text:hover { color: var(--c-rot-dunkel); }
.knopf--gross { min-height: 3.5rem; padding-inline: 1.9rem; font-size: 1.05rem; }

/* Rundes Kontakt-Symbol wie auf der Visitenkarte */
.rundicon {
    display: inline-grid; place-items: center; flex: none;
    width: 2.4rem; height: 2.4rem; border-radius: 50%;
    background: var(--c-rot); color: #fff;
}
.rundicon .icon { width: 1.1rem; height: 1.1rem; }
.rundicon--hell { background: #fff; color: var(--c-rot); }
.rundicon--wa { background: var(--c-wa); color: var(--c-schwarz); }
.knopf--whatsapp { background: var(--c-wa); color: var(--c-schwarz); }
.knopf--whatsapp:hover { background: var(--c-wa-dunkel); color: var(--c-schwarz); }

/* --- Oberleiste ------------------------------------------------------------ */
.oberleiste {
    display: none;
    background: var(--c-schwarz-tief); color: var(--c-text-hell);
    font-size: .84rem;
}
@media (min-width: 62rem) { .oberleiste { display: block; } }
.oberleiste__innen { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 2.5rem; }
.oberleiste__claim { letter-spacing: .02em; }
.oberleiste__kontakt { display: flex; gap: 1.75rem; list-style: none; padding: 0; }
.oberleiste__kontakt a { display: inline-flex; align-items: center; gap: .5rem; color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; }
/* Bei schmaleren Desktops nur die Kontaktwege zeigen */
@media (max-width: 80rem) { .oberleiste__claim { display: none; } .oberleiste__innen { justify-content: flex-end; } }
.oberleiste__kontakt a:hover { text-decoration: underline; }
.oberleiste__kontakt .icon { color: var(--c-rot-hell); width: 1.05rem; height: 1.05rem; }
.oberleiste__kontakt a[href^="https://wa.me"] .icon { color: var(--c-wa); }

/* --- Kopfbereich ----------------------------------------------------------- */
.kopf {
    position: sticky; top: 0; z-index: 60;
    background: var(--c-flaeche);
    border-bottom: 1px solid var(--c-linie);
    transition: box-shadow .2s ease;
}
.kopf.ist-gescrollt { box-shadow: 0 .5rem 1.5rem -.75rem rgba(17, 18, 20, .25); }
.kopf__innen { display: flex; align-items: center; gap: 2rem; min-height: var(--kopf-h); }

.marke { display: block; flex: none; line-height: 0; }
.marke__logo { height: 2.75rem; width: auto; }
@media (min-width: 62rem) {
    :root { --kopf-h: 5.5rem; }
    .marke__logo { height: 3.35rem; }
}

.hauptmenue { margin-inline-start: auto; display: flex; align-items: center; gap: 2rem; }
.hauptmenue__liste { display: flex; align-items: center; gap: 1.9rem; list-style: none; padding: 0; }
.hauptmenue__punkt { position: relative; display: flex; align-items: center; gap: .15rem; }
.hauptmenue__link {
    position: relative; display: block; padding-block: .6rem;
    color: var(--c-text); text-decoration: none; font-weight: 700; font-stretch: 104%;
}
.hauptmenue__link::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: .1rem; height: 3px;
    background: var(--c-rot); transform: scaleX(0); transform-origin: left;
    transition: transform .2s ease;
}
.hauptmenue__link:hover { color: var(--c-text); }
.hauptmenue__link:hover::after,
.hauptmenue__link[aria-current="page"]::after,
.ist-im-zweig > .hauptmenue__link::after { transform: scaleX(1); }

.hauptmenue__auf {
    display: inline-grid; place-items: center;
    width: 2rem; height: 2rem; padding: 0;
    background: none; border: 0; cursor: pointer; color: var(--c-text);
}
.hauptmenue__auf .icon { width: 1rem; height: 1rem; transition: transform .2s ease; }
.hauptmenue__auf[aria-expanded="true"] .icon { transform: rotate(180deg); }

.hauptmenue__unterliste { list-style: none; padding: 0; display: grid; gap: .15rem; }
.hauptmenue__unterliste a {
    display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: .8rem;
    padding: .7rem .8rem; min-height: 3rem;
    color: var(--c-text); text-decoration: none; font-weight: 650; line-height: 1.3;
}
.hauptmenue__unterliste a:hover,
.hauptmenue__unterliste a[aria-current="page"] { background: var(--c-flaeche-soft); color: var(--c-text); }
.hauptmenue__unterliste a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--c-rot); }
.hauptmenue__nr { font-size: .75rem; font-weight: 800; color: var(--c-text-leise); font-variant-numeric: tabular-nums; }
.hauptmenue__icon { color: var(--c-rot); line-height: 0; }
.hauptmenue__icon .icon { width: 1.35rem; height: 1.35rem; }
.hauptmenue__alle {
    display: flex; align-items: center; gap: .5rem;
    margin-top: .5rem; padding: .9rem .8rem .4rem;
    border-top: 1px solid var(--c-linie);
    font-weight: 750; text-decoration: none;
}

.hauptmenue__aktionen { display: flex; align-items: center; gap: 1.25rem; }
.kopf__telefon {
    display: inline-flex; align-items: center; gap: .6rem;
    color: var(--c-text); text-decoration: none; font-weight: 750; white-space: nowrap;
}
.kopf__telefon:hover { color: var(--c-rot); }
.kopf__whatsapp { display: inline-flex; align-items: center; gap: .6rem; color: var(--c-text); text-decoration: none; font-weight: 750; white-space: nowrap; }
.kopf__whatsapp:hover { color: var(--c-text); }
.kopf__whatsapp:hover .rundicon { background: var(--c-wa-dunkel); }
@media (min-width: 62.01rem) {
    .kopf__whatsapp-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .hauptmenue__aktionen { gap: .9rem; }
    .hauptmenue__aktionen .knopf { margin-inline-start: .35rem; }
}

.menue-schalter { display: none; }

/* Desktop: Leistungen als aufklappendes Register */
@media (min-width: 62.01rem) {
    /* Das Panel hängt am Kopfbereich, nicht am Menüpunkt — so bleibt es
       auch auf schmalen Desktops vollständig im Viewport. */
    .kopf__innen { position: relative; }
    .hat-untermenue { position: static; }
    .hauptmenue__panel {
        position: absolute; top: calc(100% - .25rem); right: 0; z-index: 5;
        width: min(44rem, 100%);
        padding: 1rem;
        background: var(--c-flaeche);
        border-top: 4px solid var(--c-rot);
        box-shadow: var(--schatten);
        opacity: 0; visibility: hidden; transform: translateY(.5rem);
        transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
    }
    /* Brücke, damit der Mauszeiger auf dem Weg ins Panel nicht abreißt */
    .hauptmenue__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -2rem; height: 2rem; }
    .hauptmenue__unterliste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hat-untermenue:hover > .hauptmenue__panel,
    .hat-untermenue.ist-offen > .hauptmenue__panel {
        opacity: 1; visibility: visible; transform: none;
        transition: opacity .18s ease, transform .18s ease;
    }
}
@media (min-width: 62.01rem) and (max-width: 76rem) {
    .kopf__telefon > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .hauptmenue { gap: 1.5rem; }
    .hauptmenue__liste { gap: 1.4rem; }
}

/* Mobil: Off-Canvas-Navigation. Der geschlossene Drawer bleibt innerhalb
   des Viewports und wird per clip-path ausgeblendet — keine positive
   Verschiebung nach rechts, die ältere Browser zur Seitenbreite zählen. */
@media (max-width: 62rem) {
    .menue-schalter {
        display: inline-flex; align-items: center; gap: .65rem;
        margin-inline-start: auto; min-height: 2.9rem; padding: .5rem .9rem;
        background: var(--c-flaeche); color: var(--c-text);
        border: 2px solid var(--c-schwarz); border-radius: var(--radius);
        font: inherit; font-weight: 750; cursor: pointer;
    }
    .menue-schalter__balken { position: relative; display: block; width: 1.25rem; height: 14px; }
    .menue-schalter__balken::before,
    .menue-schalter__balken::after,
    .menue-schalter__balken > span {
        content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
        transition: transform .2s ease, opacity .2s ease, top .2s ease;
    }
    .menue-schalter__balken::before { top: 0; }
    .menue-schalter__balken > span { top: 6px; }
    .menue-schalter__balken::after { top: 12px; }
    .menue-schalter[aria-expanded="true"] .menue-schalter__balken::before { top: 6px; transform: rotate(45deg); }
    .menue-schalter[aria-expanded="true"] .menue-schalter__balken::after { top: 6px; transform: rotate(-45deg); }
    .menue-schalter[aria-expanded="true"] .menue-schalter__balken > span { opacity: 0; }

    .hauptmenue {
        position: fixed; z-index: 2;
        top: var(--kopf-unten, calc(var(--kopf-h) + 1px)); right: 0; bottom: 0;
        width: min(100%, 26rem);
        flex-direction: column; align-items: stretch; gap: 1.5rem;
        padding: 1rem var(--rand) 2rem;
        background: var(--c-flaeche);
        border-inline-start: 1px solid var(--c-linie);
        overflow-y: auto; overscroll-behavior: contain;
        clip-path: inset(0 0 0 100%);
        visibility: hidden;
        transition: clip-path .28s ease, visibility 0s linear .28s;
    }
    .hauptmenue.ist-offen {
        clip-path: inset(0 0 0 0);
        visibility: visible;
        transition: clip-path .28s ease;
    }
    .hauptmenue__liste { flex-direction: column; align-items: stretch; gap: 0; }
    .hauptmenue__punkt { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-bottom: 1px solid var(--c-linie); }
    .hauptmenue__link { padding-block: 1rem; font-size: 1.2rem; }
    .hauptmenue__link::after { display: none; }
    .hauptmenue__link[aria-current="page"] { color: var(--c-rot); }
    .hauptmenue__auf { width: 3rem; height: 3rem; border-inline-start: 1px solid var(--c-linie); }
    .hauptmenue__panel { grid-column: 1 / -1; display: none; padding-bottom: .75rem; }
    .hat-untermenue.ist-offen > .hauptmenue__panel { display: block; }
    .hauptmenue__aktionen { flex-direction: column; align-items: stretch; gap: 1rem; }
    .hauptmenue__aktionen .knopf { width: 100%; }

    body.menue-ist-offen { overflow: hidden; }
    body.menue-ist-offen::before {
        content: ""; position: fixed; z-index: 55;
        inset: var(--kopf-unten, calc(var(--kopf-h) + 1px)) 0 0 0;
        background: rgba(17, 18, 20, .55);
    }
}

/* --- Seitenkopf ------------------------------------------------------------ */
.hero { position: relative; }
.hero__raster { display: grid; gap: 2.5rem; align-items: center; }
.hero__text { min-width: 0; }
.hero__titel { max-width: 18ch; }
.hero__einleitung { margin-top: 1.5rem; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); max-width: 38rem; }

/* Startseite: dunkle Bühne, Porträt steht auf dem Absperrband */
.hero--start {
    color: #fff;
    background-color: var(--c-schwarz);
    background-image:
        radial-gradient(48rem 34rem at 82% 35%, rgba(221, 1, 11, .34), transparent 65%),
        linear-gradient(var(--raster-dunkel) 1px, transparent 1px),
        linear-gradient(90deg, var(--raster-dunkel) 1px, transparent 1px);
    background-size: auto, 3rem 3rem, 3rem 3rem;
    overflow: hidden;
}
.hero--start .hero__raster { align-items: end; }
.hero--start .hero__text { padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(1rem, 4vw, 6rem); }
.hero--start .hero__titel { color: #fff; }
.hero--start .hero__einleitung { color: var(--c-text-hell); }
.hero--start .absperrband { position: relative; z-index: 2; }

.hero__nachweise {
    display: flex; flex-wrap: wrap; gap: .6rem 1.5rem;
    margin-top: 2.25rem; padding: 1.25rem 0 0;
    border-top: 1px solid var(--c-linie-dunkel);
    list-style: none; font-size: .92rem; font-weight: 600;
}
.hero__nachweise li { display: inline-flex; align-items: center; gap: .5rem; }
.hero__nachweise .icon { color: var(--c-rot-hell); }

.hero__portraet { position: relative; margin: 0; min-width: 0; }
.hero--start .hero__portraet { width: min(100%, 30rem); justify-self: center; }
.hero__bildrahmen { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.hero__bildrahmen img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
/* Der rote Hintergrund des Fotos läuft weich in die dunkle Bühne aus */
.hero--start .hero__bildrahmen img {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%, #000 90%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 14%);
    -webkit-mask-composite: source-in;
            mask-image: linear-gradient(to right, transparent 0, #000 22%, #000 90%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 14%);
            mask-composite: intersect;
}

/* Ausweiskarte — nach dem Vorbild der Visitenkarte */
.ausweis {
    position: absolute; z-index: 3; left: 0; bottom: 1.5rem;
    display: grid; gap: .1rem;
    min-width: 15rem; max-width: calc(100% - 1rem);
    padding: .9rem 1.2rem .95rem 1.1rem;
    background: #fff; color: var(--c-text);
    border-inline-start: 5px solid var(--c-rot);
    box-shadow: var(--schatten);
}
.ausweis__kopf {
    display: flex; align-items: center; gap: .4rem;
    font-size: .7rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--c-text-leise);
}
.ausweis__kopf .icon { width: 1rem; height: 1rem; color: var(--c-rot); }
.ausweis__name { font-size: 1.15rem; font-weight: 800; font-stretch: 106%; line-height: 1.25; }
.ausweis__rolle { font-size: .9rem; font-weight: 600; color: var(--c-text-leise); }

@media (min-width: 60rem) {
    .hero--start .hero__raster { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 3rem; }
    .hero--start .hero__portraet { justify-self: end; }
    .ausweis { left: -2rem; bottom: 3rem; }
}

/* Über mich: helle Bühne, Porträt im Rahmen mit roter Kante */
.hero--profil {
    background-color: var(--c-flaeche-soft);
    background-image:
        linear-gradient(var(--raster-hell) 1px, transparent 1px),
        linear-gradient(90deg, var(--raster-hell) 1px, transparent 1px);
    background-size: 3rem 3rem;
}
.hero--profil .hero__raster { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.hero--profil .hero__portraet { width: min(100% - 1.25rem, 26rem); justify-self: start; margin-top: 1.25rem; }
.hero--profil .hero__bildrahmen { overflow: visible; }
.hero--profil .hero__bildrahmen::before {
    content: ""; position: absolute; inset: 0;
    transform: translate(1.25rem, -1.25rem);
    background: var(--c-schwarz);
}
.hero--profil .hero__bildrahmen img { position: relative; }
@media (min-width: 60rem) {
    .hero--profil .hero__raster { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 5rem; }
    .hero--profil .hero__portraet { order: -1; margin-top: 0; }
    .hero--profil .ausweis { left: auto; right: -2.5rem; }
}

/* Unterseiten: kompakter Kopf mit Nummer, Symbol und Normen */
.hero--seite {
    background-color: var(--c-flaeche-soft);
    background-image:
        linear-gradient(var(--raster-hell) 1px, transparent 1px),
        linear-gradient(90deg, var(--raster-hell) 1px, transparent 1px);
    background-size: 3rem 3rem;
    border-bottom: 1px solid var(--c-linie);
}
.hero--seite .hero__raster { padding-block: clamp(2.5rem, 1.5rem + 3.5vw, 4.75rem); }
.hero--seite .hero__titel {
    max-width: 22ch;
    padding-inline-start: clamp(1rem, .6rem + 1vw, 1.5rem);
    border-inline-start: 6px solid var(--c-rot);
    font-size: clamp(1.95rem, 1.2rem + 2.9vw, 3.5rem);
}
.hero--seite .knopfreihe { margin-top: 1.75rem; }

.brotkrumen { margin-bottom: 1.75rem; font-size: .88rem; }
.brotkrumen ol { list-style: none; padding: 0; line-height: 1.7; }
.brotkrumen li { display: inline; color: var(--c-text-leise); }
.brotkrumen li + li::before { content: "/"; margin-inline: .5rem; color: #9A9DA3; font-weight: 700; }
.brotkrumen a { color: var(--c-text-leise); }
.brotkrumen a:hover { color: var(--c-rot); }
.brotkrumen [aria-current] { color: var(--c-text); font-weight: 650; }

.hero__marke { display: none; }
@media (min-width: 60rem) {
    .hero--seite .hero__raster { grid-template-columns: minmax(0, 1fr) auto; gap: 4rem; }
    .hero__marke {
        display: grid; justify-items: end; align-content: center; gap: 1.25rem;
        min-width: 14rem;
    }
    .hero__symbol {
        display: grid; place-items: center;
        width: 6.5rem; height: 6.5rem;
        background: var(--c-rot); color: #fff;
        box-shadow: 1rem 1rem 0 var(--c-schwarz);
    }
    .hero__symbol .icon { width: 3.25rem; height: 3.25rem; stroke-width: 1.5; }
    .hero__nummer {
        font-size: clamp(5rem, 3rem + 4vw, 8rem); font-weight: 900; font-stretch: 125%;
        line-height: .85; letter-spacing: -.03em;
        color: transparent; -webkit-text-stroke: 2px var(--c-schwarz);
    }
    .hero__normen { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; max-width: 18rem; }
    .hero__normen span {
        padding: .3rem .6rem; background: var(--c-schwarz); color: #fff;
        font-size: .76rem; font-weight: 700; letter-spacing: .04em;
    }
}

/* --- Leistungsregister ---------------------------------------------------- */
.register__liste {
    display: grid; grid-template-columns: minmax(0, 1fr);
    list-style: none; padding: 0;
    border-top: 1px solid var(--c-linie);
    border-inline-start: 1px solid var(--c-linie);
}
@media (min-width: 40rem) { .register__liste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .register__liste { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.register__eintrag {
    display: flex; min-width: 0;
    border-inline-end: 1px solid var(--c-linie);
    border-bottom: 1px solid var(--c-linie);
}
.register__link {
    position: relative; display: flex; flex-direction: column; gap: .85rem; width: 100%;
    padding: 1.6rem 1.5rem 1.5rem;
    background: var(--c-flaeche); color: var(--c-text); text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}
.register__link::before {
    content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 4px;
    background: var(--c-rot); transform: scaleX(0); transform-origin: left;
    transition: transform .25s ease;
}
.register__kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; }
.register__nr { font-size: 2rem; font-weight: 900; font-stretch: 125%; line-height: 1; color: var(--c-linie); font-variant-numeric: tabular-nums; transition: color .2s ease; }
.register__icon { display: grid; place-items: center; width: 3.1rem; height: 3.1rem; background: var(--c-schwarz); color: #fff; transition: background-color .2s ease; }
.register__icon .icon { width: 1.6rem; height: 1.6rem; }
.register__titel { font-size: 1.12rem; }
.register__text { flex: 1; color: var(--c-text-leise); font-size: .95rem; line-height: 1.55; transition: color .2s ease; }
.register__mehr { display: inline-flex; align-items: center; gap: .45rem; font-weight: 750; color: var(--c-rot); }
.register__mehr .icon { transition: transform .2s ease; }
.register__link:hover, .register__link:focus-visible { background: var(--c-schwarz); color: #fff; }
.register__link:hover::before, .register__link:focus-visible::before { transform: scaleX(1); }
.register__link:hover .register__nr, .register__link:focus-visible .register__nr { color: var(--c-rot-hell); }
.register__link:hover .register__icon, .register__link:focus-visible .register__icon { background: var(--c-rot); }
.register__link:hover .register__text, .register__link:focus-visible .register__text { color: var(--c-text-hell); }
.register__link:hover .register__mehr, .register__link:focus-visible .register__mehr { color: #fff; }
.register__link:hover .register__mehr .icon { transform: translateX(4px); }
.register__link:focus-visible { outline-offset: -3px; outline-color: #fff; }

/* --- Schwerpunkt (Kleinbetriebe) ----------------------------------------- */
.fokus__raster { display: grid; gap: 3rem; align-items: start; }
.fokus__text, .fokus__liste { min-width: 0; }
.fokus__text h2 { margin-bottom: 1.25rem; }
@media (min-width: 62rem) { .fokus__raster { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 5rem; } }

.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; list-style: none; padding: 0; }
.chips li {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .55rem .9rem;
    background: var(--c-flaeche); border: 2px solid var(--c-schwarz);
    font-weight: 700; font-size: .95rem;
}
.chips .icon { color: var(--c-rot); }
.fokus__schluss {
    margin-top: 1.75rem; padding-inline-start: 1rem;
    border-inline-start: 4px solid var(--c-rot);
    font-weight: 700;
}

.fokus__liste {
    background: var(--c-flaeche);
    border-top: 6px solid var(--c-rot);
    padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    box-shadow: var(--schatten);
}
.fokus__listentitel {
    margin-bottom: 1.5rem; padding-bottom: 1rem;
    border-bottom: 1px solid var(--c-linie);
    font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-text-leise);
}

/* --- Kennzahlen ------------------------------------------------------------ */
.kennzahlen { background: var(--c-schwarz); color: #fff; padding-block: clamp(2.75rem, 2rem + 3vw, 4rem); }
.kennzahlen__titel { margin-bottom: 2rem; }
.kennzahlen__liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
/* Ungerade Anzahl im Zweierraster: letzter Wert über die volle Breite */
@media (max-width: 47.99rem) { .kennzahl:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 48rem) { .kennzahlen__liste { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Ab Desktop alle Kennzahlen in einer Reihe, egal ob vier oder fünf */
@media (min-width: 72rem) { .kennzahlen__liste { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } }
.kennzahl {
    display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .5rem;
    min-width: 0; padding-inline-start: 1.1rem;
    border-inline-start: 3px solid var(--c-rot);
}
.kennzahl__wert {
    font-size: clamp(1.55rem, .9rem + 2.1vw, 2.6rem); font-weight: 900; font-stretch: 106%;
    line-height: 1; white-space: nowrap;
}
.kennzahl__label { color: var(--c-text-hell); font-size: .95rem; line-height: 1.45; }

/* --- Einsatzfelder --------------------------------------------------------- */
.felder__raster { display: grid; gap: 2.5rem 5rem; align-items: start; }
.felder__kopf, .felder__liste { min-width: 0; }
.felder__kopf h2 { margin-bottom: 1.25rem; }
@media (min-width: 62rem) {
    .felder__raster { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
    .felder__kopf { position: sticky; top: calc(var(--kopf-h) + 2rem); }
}
.felder__liste {
    display: grid; grid-template-columns: minmax(0, 1fr); list-style: none; padding: 0;
    border-top: 1px solid var(--c-linie);
}
@media (min-width: 36rem) { .felder__liste { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; } }
.feld {
    display: flex; align-items: center; gap: 1rem;
    min-height: 5rem; padding-block: 1.1rem;
    border-bottom: 1px solid var(--c-linie);
}
.feld__icon {
    display: grid; place-items: center; flex: none;
    width: 3rem; height: 3rem;
    border: 2px solid var(--c-rot); color: var(--c-rot);
}
.feld__icon .icon { width: 1.5rem; height: 1.5rem; }
.feld__text { display: grid; gap: .15rem; min-width: 0; }
.feld__name { font-weight: 750; line-height: 1.3; hyphens: auto; -webkit-hyphens: auto; }
.feld__beschreibung { color: var(--c-text-leise); font-size: .92rem; }
.abschnitt--dunkel .felder__liste,
.abschnitt--dunkel .feld { border-color: var(--c-linie-dunkel); }
.abschnitt--dunkel .feld__icon { border-color: var(--c-rot-hell); color: var(--c-rot-hell); }
.abschnitt--dunkel .fliesstext { color: var(--c-text-hell); }
.abschnitt--dunkel.felder {
    background-image:
        linear-gradient(var(--raster-dunkel) 1px, transparent 1px),
        linear-gradient(90deg, var(--raster-dunkel) 1px, transparent 1px);
    background-size: 3rem 3rem;
}

/* --- Zitat ----------------------------------------------------------------- */
.zitat { padding-block: clamp(3rem, 2rem + 4vw, 5rem); border-block: 1px solid var(--c-linie); }
.zitat__raster { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 48rem) { .zitat__raster { grid-template-columns: auto minmax(0, 1fr); gap: 3.5rem; } }
.zitat__bild { position: relative; width: 9rem; aspect-ratio: 1; }
.zitat__bild::before { content: ""; position: absolute; inset: 0; transform: translate(.6rem, .6rem); background: var(--c-rot); }
.zitat__bild img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
@media (min-width: 48rem) { .zitat__bild { width: 11rem; } }
.zitat__inhalt { margin: 0; min-width: 0; }
.zitat__text p {
    font-size: clamp(1.3rem, 1rem + 1.3vw, 2rem); font-weight: 650; font-stretch: 104%;
    line-height: 1.32; max-width: 46ch;
}
.zitat__text p::before { content: "„"; color: var(--c-rot); }
.zitat__text p::after { content: "“"; color: var(--c-rot); }
.zitat__quelle { display: grid; gap: .1rem; margin-top: 1.5rem; padding-inline-start: 1rem; border-inline-start: 4px solid var(--c-rot); }
.zitat__quelle span { color: var(--c-text-leise); font-size: .92rem; }
.zitat .knopfreihe { margin-top: 1rem; }

/* --- Ablauf ---------------------------------------------------------------- */
.prozess__liste {
    counter-reset: schritt;
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.25rem 2rem;
    list-style: none; padding: 0;
}
@media (min-width: 44rem) { .prozess__liste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .prozess__liste { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.prozess__schritt { counter-increment: schritt; position: relative; min-width: 0; padding-top: 4.5rem; }
.prozess__schritt::before {
    content: counter(schritt, decimal-leading-zero);
    position: absolute; top: 0; left: 0;
    display: grid; place-items: center; width: 3.4rem; height: 3.4rem;
    background: var(--c-rot); color: #fff;
    font-weight: 900; font-stretch: 118%; font-size: 1.1rem;
}
@media (min-width: 72rem) {
    .prozess__schritt:not(:last-child)::after {
        content: ""; position: absolute; top: 1.7rem; left: 4.4rem; right: -1rem; height: 2px;
        background: repeating-linear-gradient(90deg, var(--c-schwarz) 0 8px, transparent 8px 14px);
    }
}
.prozess__name { margin-bottom: .6rem; }
.prozess__text { color: var(--c-text-leise); }

/* --- Häufige Fragen ------------------------------------------------------- */
.faq__raster { display: grid; gap: 2rem 5rem; align-items: start; }
.faq__kopf, .faq__liste { min-width: 0; }
.faq__kopf h2 { margin-bottom: 1rem; }
.faq__kopf .fliesstext { color: var(--c-text-leise); }
@media (min-width: 62rem) {
    .faq__raster { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
    .faq__kopf { position: sticky; top: calc(var(--kopf-h) + 2rem); }
}
.faq__liste { border-top: 2px solid var(--c-schwarz); }
.faq__eintrag { border-bottom: 1px solid var(--c-linie); }
.faq__eintrag summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
    min-height: 3.5rem; padding-block: 1.2rem;
    cursor: pointer; list-style: none;
    font-weight: 750; font-stretch: 103%; font-size: 1.07rem; line-height: 1.35;
}
.faq__eintrag summary::-webkit-details-marker { display: none; }
.faq__eintrag summary:hover { color: var(--c-rot); }
.faq__zeichen {
    position: relative; flex: none; width: 2.1rem; height: 2.1rem;
    border: 2px solid var(--c-schwarz);
    transition: background-color .2s ease, border-color .2s ease;
}
.faq__zeichen::before, .faq__zeichen::after {
    content: ""; position: absolute; left: 50%; top: 50%;
    width: .85rem; height: 2px; margin: -1px 0 0 -.425rem;
    background: var(--c-schwarz); transition: transform .2s ease, background-color .2s ease;
}
.faq__zeichen::after { transform: rotate(90deg); }
.faq__eintrag[open] .faq__zeichen { background: var(--c-rot); border-color: var(--c-rot); }
.faq__eintrag[open] .faq__zeichen::before,
.faq__eintrag[open] .faq__zeichen::after { background: #fff; }
.faq__eintrag[open] .faq__zeichen::after { transform: rotate(0deg); }
.faq__antwort { padding: 0 3.5rem 1.5rem 0; color: var(--c-text-leise); max-width: 62ch; }

/* --- Leistungsumfang ------------------------------------------------------- */
.detail__raster { display: grid; gap: 3rem; align-items: start; }
.detail__haupt, .pruefkarte { min-width: 0; }
.detail__haupt h2 { margin-bottom: 1.25rem; }
.detail__haupt .fliesstext { color: var(--c-text-leise); max-width: 46rem; margin-bottom: 2rem; font-size: 1.05rem; }
.detail__schluss { margin-top: 2rem; padding-inline-start: 1rem; border-inline-start: 4px solid var(--c-rot); font-weight: 700; }
@media (min-width: 64rem) {
    .detail__raster { grid-template-columns: minmax(0, 1.6fr) minmax(0, .9fr); gap: 4.5rem; }
    .pruefkarte { position: sticky; top: calc(var(--kopf-h) + 1.5rem); }
}

.pruefkarte { background: var(--c-flaeche); border: 2px solid var(--c-schwarz); box-shadow: var(--schatten); overflow-wrap: anywhere; }
.pruefkarte__kopf {
    display: flex; align-items: center; gap: .6rem;
    padding: .85rem 1.25rem;
    background: var(--c-schwarz); color: #fff;
    font-size: .8rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase;
}
.pruefkarte__kopf .icon { color: var(--c-rot-hell); }
.pruefkarte__inhalt { display: grid; gap: 1.25rem; padding: 1.5rem 1.25rem; }
.normen { list-style: none; padding: 0; }
.normen li {
    position: relative; padding: .65rem 0 .65rem 1.4rem;
    border-bottom: 1px dashed var(--c-linie);
    font-weight: 650; line-height: 1.35;
    overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto;
}
.normen li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: .55rem; height: .55rem; background: var(--c-rot); }
.pruefkarte__text { color: var(--c-text-leise); font-size: .95rem; }
.pruefkarte .knopf { width: 100%; }
.pruefkarte__tel { display: flex; align-items: center; gap: .8rem; color: var(--c-text); text-decoration: none; font-size: .9rem; line-height: 1.35; }
.pruefkarte__tel strong { font-size: 1.05rem; }
.pruefkarte__tel:hover strong { color: var(--c-rot); }

/* --- Textblock ------------------------------------------------------------- */
.textblock__raster { display: grid; gap: 1.5rem 5rem; }
.textblock__kopf, .textblock__text { min-width: 0; }
.textblock--schmal .textblock__kopf h2 { margin-bottom: .5rem; }
.textblock__text { font-size: 1.04rem; }
.textblock__text > p:first-child { font-size: 1.12rem; }
@media (min-width: 62rem) {
    .textblock--zweispaltig .textblock__raster { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
    .textblock--zweispaltig .textblock__kopf { position: sticky; top: calc(var(--kopf-h) + 2rem); align-self: start; }
}
.textblock--schmal .textblock__text h3 { font-size: 1.15rem; padding-top: 1.5rem; border-top: 1px solid var(--c-linie); }
.textblock--schmal .textblock__text h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* --- Qualifikationen ------------------------------------------------------- */
.nachweise__liste {
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem;
    list-style: none; padding: 0; counter-reset: nachweis;
}
@media (min-width: 44rem) { .nachweise__liste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .nachweise__liste { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.nachweis {
    counter-increment: nachweis;
    position: relative; display: flex; align-items: flex-start; gap: 1.1rem; min-width: 0;
    padding: 1.5rem 1.4rem;
    background: var(--c-flaeche); border: 1px solid var(--c-linie);
    border-top: 4px solid var(--c-schwarz);
}
.nachweis::after {
    content: counter(nachweis, decimal-leading-zero);
    position: absolute; right: 1rem; top: .75rem;
    font-size: .78rem; font-weight: 800; color: var(--c-text-leise); font-variant-numeric: tabular-nums;
}
.nachweis__icon { display: grid; place-items: center; flex: none; width: 3rem; height: 3rem; background: var(--c-rot); color: #fff; }
.nachweis__icon .icon { width: 1.5rem; height: 1.5rem; }
.nachweis__text { display: grid; gap: .3rem; min-width: 0; padding-inline-end: 1.5rem; }
.nachweis__name { font-weight: 750; line-height: 1.3; hyphens: auto; -webkit-hyphens: auto; }
.nachweis__info { color: var(--c-text-leise); font-size: .92rem; }

/* --- Weitere Leistungen ---------------------------------------------------- */
.verwandte { border-top: 1px solid var(--c-linie); }
.verwandte__titel { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); margin-bottom: 1.5rem; }
.verwandte__liste { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; list-style: none; padding: 0; }
@media (min-width: 40rem) { .verwandte__liste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .verwandte__liste { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.verwandte__liste li { display: flex; min-width: 0; }
.verwandte__liste a {
    display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: .75rem;
    width: 100%; min-height: 4rem; padding: .85rem 1rem;
    border: 1px solid var(--c-linie); background: var(--c-flaeche);
    color: var(--c-text); text-decoration: none; font-weight: 700; line-height: 1.3;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.verwandte__nr { font-size: .78rem; font-weight: 800; color: var(--c-text-leise); font-variant-numeric: tabular-nums; }
.verwandte__icon { color: var(--c-rot); line-height: 0; }
.verwandte__name { hyphens: auto; -webkit-hyphens: auto; }
.verwandte__pfeil { width: 1.1rem; height: 1.1rem; color: var(--c-rot); }
.verwandte__liste a:hover { background: var(--c-schwarz); border-color: var(--c-schwarz); color: #fff; }
.verwandte__liste a:hover .verwandte__nr { color: var(--c-text-hell); }
.verwandte__liste a:hover .verwandte__icon,
.verwandte__liste a:hover .verwandte__pfeil { color: var(--c-rot-hell); }

/* --- Handlungsaufruf ------------------------------------------------------- */
.cta {
    position: relative; overflow: hidden;
    padding-block: clamp(3.25rem, 2rem + 4vw, 5rem);
    background: var(--c-rot); color: #fff;
}
.cta::after {
    content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 38%;
    background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .09) 0 18px, transparent 18px 36px);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 60%);
            mask-image: linear-gradient(to right, transparent, #000 60%);
    pointer-events: none;
}
.cta__raster { position: relative; z-index: 1; display: grid; gap: 2rem; align-items: center; }
.cta__text, .cta__aktionen { min-width: 0; }
.cta h2 { color: #fff; max-width: 24ch; }
.cta__text p { margin-top: 1rem; max-width: 40rem; font-size: 1.07rem; }
.cta__aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }
.cta__tel { display: inline-flex; align-items: center; gap: .85rem; color: #fff; text-decoration: none; }
.cta__tel:hover { color: #fff; }
.cta__tel > span:last-child { display: grid; line-height: 1.25; }
.cta__tel-label { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; opacity: .95; }
.cta__tel strong { font-size: 1.2rem; }
.cta__tel:hover strong { text-decoration: underline; }
@media (min-width: 62rem) { .cta__raster { grid-template-columns: minmax(0, 1.3fr) auto; gap: 4rem; } }

/* --- Kontakt und Formular ------------------------------------------------- */
.kontakt { outline: none; }
.kontakt__raster { display: grid; gap: 3rem; align-items: start; }
.kontakt__formular, .visitenkarte { min-width: 0; }
.kontakt__formular h2 { margin-bottom: 1rem; }
.kontakt__formular > .fliesstext { color: var(--c-text-leise); margin-bottom: 1.5rem; }
@media (min-width: 64rem) {
    .kontakt__raster { grid-template-columns: minmax(0, 1.5fr) minmax(0, .85fr); gap: 4.5rem; }
    .visitenkarte { position: sticky; top: calc(var(--kopf-h) + 1.5rem); }
}

.formular__hinweis { font-size: .9rem; color: var(--c-text-leise); margin-bottom: 1.5rem; }
.formular__raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.35rem 1.5rem; }
@media (min-width: 40rem) {
    .formular__raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .formular__feld--breit { grid-column: 1 / -1; }
}
.formular__feld { display: grid; gap: .45rem; min-width: 0; align-content: start; }
.formular__feld > label { font-weight: 700; font-size: .98rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .6rem; }
.pflicht, .optional {
    font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.pflicht { color: var(--c-rot); }
.optional { color: var(--c-text-leise); }
.formular__hilfe { font-size: .88rem; color: var(--c-text-leise); margin-top: -.15rem; }

.formular input[type="text"],
.formular input[type="email"],
.formular input[type="tel"],
.formular select,
.formular textarea {
    width: 100%; min-height: 3.15rem; padding: .8rem 1rem;
    font: inherit; font-size: 1rem; color: var(--c-text);
    background: var(--c-flaeche);
    border: 2px solid #8A8C90; border-radius: var(--radius);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.formular textarea { min-height: 10rem; resize: vertical; line-height: 1.5; }
.formular input:hover, .formular select:hover, .formular textarea:hover { border-color: var(--c-schwarz); }
.formular input:focus-visible, .formular select:focus-visible, .formular textarea:focus-visible {
    outline: none; border-color: var(--c-schwarz); box-shadow: 0 0 0 3px var(--c-rot);
}
.formular [aria-invalid="true"] { border-color: var(--c-fehler); background: #FFF6F6; }

.auswahl { position: relative; }
.auswahl select { appearance: none; -webkit-appearance: none; padding-inline-end: 3rem; cursor: pointer; }
.auswahl .icon { position: absolute; right: 1rem; top: 50%; width: 1.1rem; height: 1.1rem; transform: translateY(-50%); pointer-events: none; color: var(--c-text); }

.einwilligung,
.formular__datenschutz {
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .9rem; align-items: start;
    padding: 1rem 1.1rem;
    background: var(--c-flaeche-soft); border: 1px solid var(--c-linie);
}
.einwilligung.ist-fehlerhaft { border-color: var(--c-fehler); background: #FFF6F6; }
.einwilligung input { width: 1.45rem; height: 1.45rem; margin-top: .1rem; accent-color: var(--c-rot); cursor: pointer; }
.einwilligung label { font-size: .95rem; line-height: 1.5; cursor: pointer; }
.einwilligung .pflicht { margin-inline-start: .35rem; }

.formular__fehler { display: flex; align-items: flex-start; gap: .45rem; color: var(--c-fehler); font-size: .92rem; font-weight: 650; }
.formular__fehler .icon { width: 1.1rem; height: 1.1rem; margin-top: .15rem; }

.formular .knopf { margin-top: 1.75rem; }

.honigtopf {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap; opacity: 0;
}

.meldung {
    display: flex; align-items: flex-start; gap: .75rem;
    margin-bottom: 1.5rem; padding: 1rem 1.2rem;
    border-inline-start: 5px solid currentColor;
    font-weight: 650; line-height: 1.5;
}
.meldung .icon { margin-top: .1rem; }
.meldung:focus { outline: none; }
.meldung--erfolg { background: #EAF5EE; color: var(--c-erfolg); }
.meldung--fehler { background: #FDECEC; color: var(--c-fehler); }

/* Visitenkarte — nach dem Vorbild der gedruckten Karte */
.visitenkarte {
    display: grid; gap: 1.5rem;
    padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
    background: var(--c-flaeche); border: 1px solid var(--c-linie);
    box-shadow: var(--schatten);
}
.visitenkarte__logo { width: min(100%, 13rem); height: auto; }
.visitenkarte__person { padding-inline-start: 1rem; border-inline-start: 5px solid var(--c-rot); }
.visitenkarte__name { font-size: 1.3rem; font-weight: 850; font-stretch: 106%; line-height: 1.2; }
.visitenkarte__rolle { margin-top: .3rem; font-weight: 600; color: var(--c-text-leise); }
.visitenkarte__gebiet { display: flex; align-items: center; gap: .4rem; margin-top: .5rem; font-size: .9rem; font-weight: 650; }
.visitenkarte__gebiet .icon { width: 1rem; height: 1rem; color: var(--c-rot); }
.visitenkarte__kontakt { list-style: none; padding: 1.25rem 0 0; border-top: 1px solid var(--c-linie); display: grid; gap: .9rem; }
.visitenkarte__kontakt a { display: flex; align-items: center; gap: .9rem; color: var(--c-text); text-decoration: none; font-weight: 700; overflow-wrap: anywhere; }
.visitenkarte__kontakt a > span:last-child { display: grid; line-height: 1.3; min-width: 0; }
.visitenkarte__art { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-text-leise); font-weight: 700; }
.visitenkarte__kontakt a:hover { color: var(--c-rot); }
.visitenkarte__hinweis { font-size: .9rem; color: var(--c-text-leise); padding: 1rem; background: var(--c-flaeche-soft); }

/* --- Wartungsmodus -------------------------------------------------------- */
/* Vorschauseite vor dem Livegang: dieselbe dunkle Bühne wie die Startseite,
   dazu eine drehende Prüfplakette und ein laufendes Absperrband. */
.ist-wartung { background: var(--c-schwarz); }
.wartungsseite {
    display: grid; grid-template-rows: auto 1fr auto;
    min-height: 100vh; min-height: 100dvh;
    background: var(--c-schwarz); color: #fff;
}
.wartungsseite__kopf { background: var(--c-flaeche); border-bottom: 1px solid var(--c-linie); color: var(--c-text); }
.wartungsseite__kopfinnen { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--kopf-h); }
.wartungsseite__logo { height: 2.75rem; width: auto; }
@media (min-width: 62rem) { .wartungsseite__logo { height: 3.35rem; } }
@media (max-width: 26rem) { .wartungsseite__kopf .kopf__telefon > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }

.wartungsseite__buehne {
    position: relative; display: flex; flex-direction: column; overflow: hidden;
    background-color: var(--c-schwarz);
    background-image:
        radial-gradient(48rem 34rem at 82% 40%, rgba(221, 1, 11, .36), transparent 65%),
        linear-gradient(var(--raster-dunkel) 1px, transparent 1px),
        linear-gradient(90deg, var(--raster-dunkel) 1px, transparent 1px);
    background-size: auto, 3rem 3rem, 3rem 3rem;
}
.wartungsseite__raster { flex: 1; display: grid; gap: 1.5rem 3rem; align-items: end; }
.wartungsseite__text, .wartungsseite__portraet { min-width: 0; }
.wartungsseite__text { align-self: center; padding-block: clamp(2.75rem, 2rem + 4vw, 5.5rem) clamp(.5rem, 3vw, 4rem); }
.wartungsseite__titel {
    max-width: 13ch; color: #fff;
    font-size: clamp(2.3rem, 1.3rem + 4.4vw, 4.75rem); font-stretch: 114%; line-height: 1;
}
.wartungsseite__einleitung { margin-top: 1.5rem; max-width: 36rem; color: var(--c-text-hell); font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); }
.wartungsseite__leistungen { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--c-linie-dunkel); }
.wartungsseite__untertitel {
    margin-bottom: 1rem; color: #fff;
    font-size: .8rem; font-weight: 750; font-stretch: 110%; letter-spacing: .16em; text-transform: uppercase;
}
.wartungsseite__chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; }
.wartungsseite__chips li {
    display: inline-flex; align-items: center; gap: .45rem; max-width: 100%;
    padding: .45rem .75rem;
    background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .22);
    font-size: .9rem; font-weight: 600; line-height: 1.3;
}
.wartungsseite__chips .icon { color: var(--c-rot-hell); }

.wartungsseite__portraet { position: relative; margin: 0; width: min(100%, 30rem); justify-self: center; }
.wartungsseite__bildrahmen { aspect-ratio: 4 / 5; overflow: hidden; }
.wartungsseite__bildrahmen img {
    width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%, #000 90%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 14%);
    -webkit-mask-composite: source-in;
            mask-image: linear-gradient(to right, transparent 0, #000 22%, #000 90%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 14%);
            mask-composite: intersect;
}
.wartungsseite .ausweis { bottom: 1.5rem; }
@media (min-width: 60rem) {
    .wartungsseite__raster { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
    .wartungsseite__portraet { justify-self: end; }
    .wartungsseite .ausweis { left: -2rem; bottom: 3rem; }
}

/* Prüfplakette — angelehnt an die Prüfmarke nach DGUV Vorschrift 3 */
.pruefplakette {
    position: absolute; z-index: 3; top: 6%; right: 0;
    display: flex; align-items: center; justify-content: center;
    width: clamp(6.75rem, 5rem + 6vw, 9.5rem); aspect-ratio: 1;
    background: #fff; border-radius: 50%;
    box-shadow: 0 0 0 5px var(--c-rot), var(--schatten);
}
.pruefplakette__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: abu-drehen 28s linear infinite; }
.pruefplakette__ring text { font-family: var(--f-text); font-size: 15px; font-weight: 800; letter-spacing: 4.5px; fill: var(--c-schwarz); }
.pruefplakette__mitte {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 46%; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--c-rot);
}
.pruefplakette__mitte img { width: 58%; height: auto; }
@keyframes abu-drehen { to { transform: rotate(360deg); } }

/* Laufendes Absperrband */
.absperrband--laufend { position: relative; z-index: 2; overflow: hidden; background: none; }
.absperrband--laufend::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: -34px; right: -34px;
    background: repeating-linear-gradient(-45deg, var(--c-rot) 0 12px, #fff 12px 24px);
    animation: abu-band 1.8s linear infinite;
}
@keyframes abu-band { to { transform: translateX(33.94px); } }

.wartungsseite__fuss { background: var(--c-schwarz-tief); color: var(--c-text-hell); font-size: .85rem; }
.wartungsseite__fussinnen { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.25rem 1.5rem; }
.wartungsseite__fuss a { color: #fff; }
.wartungsseite__fuss .fuss__signatur a { text-decoration-color: var(--c-rot-hell); }
.wartungshinweis {
    position: relative; z-index: 70; padding: .7rem var(--rand);
    background: #FFE08A; color: #3B2B00; font-weight: 700; font-size: .92rem; text-align: center;
}

/* --- Schnellkontakt: Anrufen und WhatsApp ---------------------------------- */
/* Mobil eine feste Leiste am unteren Rand, ab Tablet zwei runde Buttons unten
   rechts. Steht auf jeder Seite und auch auf der Wartungsseite. */
.schnellkontakt {
    position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--c-schwarz-tief);
    box-shadow: 0 -.5rem 1.5rem -.5rem rgba(17, 18, 20, .35);
}
.schnellkontakt__knopf {
    display: flex; align-items: center; justify-content: center; gap: .6rem;
    min-height: 3.5rem; padding: .5rem 1rem;
    font-weight: 800; font-stretch: 106%; font-size: 1.02rem; text-decoration: none;
}
.schnellkontakt__knopf--tel { background: var(--c-rot); color: #fff; }
.schnellkontakt__knopf--tel:hover { background: var(--c-rot-dunkel); color: #fff; }
.schnellkontakt__knopf--wa { background: var(--c-wa); color: var(--c-schwarz); }
.schnellkontakt__knopf--wa:hover { background: var(--c-wa-dunkel); color: var(--c-schwarz); }
.schnellkontakt__symbol { line-height: 0; }
.schnellkontakt__symbol .icon { width: 1.4rem; height: 1.4rem; }
.schnellkontakt :focus-visible { outline: 3px solid var(--c-schwarz); outline-offset: -6px; }
.schnellkontakt__knopf--tel:focus-visible { outline-color: #fff; }
/* Platz schaffen, damit die Leiste nichts verdeckt */
body.hat-schnellkontakt { padding-bottom: calc(3.5rem + env(safe-area-inset-bottom)); }

@media (min-width: 48rem) {
    body.hat-schnellkontakt { padding-bottom: 0; }
    .schnellkontakt {
        left: auto; right: 1.25rem; bottom: 1.25rem;
        display: flex; flex-direction: column-reverse; gap: .75rem;
        padding: 0; background: none; box-shadow: none;
    }
    .schnellkontakt__knopf {
        position: relative; justify-content: center;
        width: 3.75rem; height: 3.75rem; min-height: 0; padding: 0;
        border-radius: 50%;
        box-shadow: 0 .75rem 1.5rem -.5rem rgba(17, 18, 20, .45);
        transition: transform .18s ease, background-color .18s ease;
    }
    .schnellkontakt__knopf:hover { transform: translateY(-2px); }
    .schnellkontakt__symbol .icon { width: 1.65rem; height: 1.65rem; }
    /* Beschriftung als Fähnchen links neben dem Button */
    .schnellkontakt__text {
        position: absolute; right: calc(100% + .75rem); top: 50%;
        padding: .45rem .8rem; white-space: nowrap;
        background: var(--c-schwarz); color: #fff;
        font-size: .88rem; font-weight: 700;
        opacity: 0; transform: translate(.5rem, -50%);
        transition: opacity .18s ease, transform .18s ease;
        pointer-events: none;
    }
    .schnellkontakt__knopf:hover .schnellkontakt__text,
    .schnellkontakt__knopf:focus-visible .schnellkontakt__text { opacity: 1; transform: translate(0, -50%); }
    .schnellkontakt :focus-visible { outline-offset: 3px; outline-color: var(--c-schwarz); }
    .schnellkontakt__knopf--wa { animation: abu-puls 2.4s ease-out 1.5s 3; }
    /* Fußleiste nicht von den Buttons verdecken lassen */
    .fuss__leiste, .wartungsseite__fussinnen { padding-right: 5.5rem; }
}
@keyframes abu-puls {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55), 0 .75rem 1.5rem -.5rem rgba(17, 18, 20, .45); }
    70%  { box-shadow: 0 0 0 1rem rgba(37, 211, 102, 0), 0 .75rem 1.5rem -.5rem rgba(17, 18, 20, .45); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 .75rem 1.5rem -.5rem rgba(17, 18, 20, .45); }
}
.wartungsseite__kopfaktionen { display: flex; align-items: center; gap: .9rem; }

/* --- Fußbereich ------------------------------------------------------------ */
.fuss { background: var(--c-schwarz-tief); color: var(--c-text-hell); font-size: .95rem; }
.fuss a { color: var(--c-text-hell); text-decoration: none; }
.fuss a:hover { color: #fff; text-decoration: underline; }
.fuss__raster {
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem;
    padding-block: clamp(3rem, 2rem + 3vw, 4.5rem);
}
@media (min-width: 44rem) { .fuss__raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .fuss__raster { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, .7fr); gap: 3rem; } }
.fuss__marke, .fuss__spalte { min-width: 0; }

.fuss__wortmarke { display: inline-flex; align-items: center; gap: 1rem; }
.fuss__wortmarke:hover { text-decoration: none; }
.fuss__plakette {
    display: block; flex: none;
    width: 4.1rem; height: 4.1rem; padding: .45rem;
    background: #fff;
}
/* Feste Box statt Grid: sonst wächst die Zeile auf die Originalhöhe des Bildes */
.fuss__plakette img { display: block; width: 100%; height: 100%; object-fit: contain; }
.fuss__schrift { display: grid; line-height: 1; }
.fuss__abu { color: #fff; font-size: 2.3rem; font-weight: 900; font-stretch: 122%; letter-spacing: -.01em; }
.fuss__zusatz { margin-top: .35rem; color: #fff; font-size: .9rem; font-weight: 650; letter-spacing: .01em; }
.fuss__zusatz span { color: var(--c-rot-hell); }
.fuss__claim { margin-top: 1.5rem; max-width: 22rem; line-height: 1.55; }

.fuss__titel {
    margin-bottom: 1.1rem;
    color: #fff; font-size: .8rem; font-weight: 750; font-stretch: 110%;
    letter-spacing: .16em; text-transform: uppercase;
}
.fuss__liste { list-style: none; padding: 0; display: grid; gap: .55rem; }
.fuss__liste a { display: inline-block; padding-block: .1rem; }
.fuss__person { margin-bottom: 1.1rem; line-height: 1.5; }
.fuss__person strong { color: #fff; }
.fuss__kontakt { list-style: none; padding: 0; display: grid; gap: .8rem; }
.fuss__kontakt a { display: inline-flex; align-items: center; gap: .75rem; overflow-wrap: anywhere; }
.fuss__kontakt .rundicon { width: 2.2rem; height: 2.2rem; }
.fuss__adresse { margin-top: 1rem; font-style: normal; }
.fuss__gebiet { display: flex; align-items: center; gap: .75rem; line-height: 1.4; }
.fuss__gebiet .rundicon { width: 2.2rem; height: 2.2rem; background: transparent; border: 1.5px solid var(--c-rot-hell); color: var(--c-rot-hell); }

.fuss__leiste {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem;
    padding-block: 1.5rem 2rem;
    border-top: 1px solid var(--c-linie-dunkel);
    font-size: .85rem;
}
.fuss__signatur a { color: #fff; text-decoration: underline; text-decoration-color: var(--c-rot-hell); }

/* --- Einblenden beim Scrollen --------------------------------------------- */
.bewegung-bereit [data-einblenden] {
    opacity: 0; transform: translateY(1.25rem);
    transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
    transition-delay: var(--einblend-verzoegerung, 0ms);
}
.bewegung-bereit [data-einblenden].ist-sichtbar { opacity: 1; transform: none; }

/* --- Druck ----------------------------------------------------------------- */
@media print {
    .oberleiste, .kopf, .fuss, .cta, .verwandte, .knopfreihe, .absperrband, .skip-link, .schnellkontakt { display: none !important; }
    .hero--start { background: none; color: #000; }
    .hero--start .hero__titel, .hero--start .hero__einleitung { color: #000; }
    .faq__antwort { display: block; }
    a { color: #000; }
}
