/* =============================================================================
 *  MB Arbeitsschutz Beratung — Frontend-Stylesheet
 *  Erstellt durch DOSIGNY — Dominik Baurhenn — https://www.dosigny.com
 *  -------------------------------------------------------------------------
 *  Bewusst tokengesteuert: Farben, Schriften, Radien und Abstände kommen als
 *  Custom Properties aus data/theme.json. Dieses Stylesheet legt Struktur und
 *  Verhalten fest, nicht die Identität — die entsteht pro Kunde im Theme.
 * ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    font-family: var(--f-text);
    font-size: var(--f-basis);
    line-height: 1.6;
    color: var(--c-text);
    background: var(--c-flaeche);
    -webkit-font-smoothing: antialiased;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 { font-family: var(--f-kopf); line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { text-wrap: pretty; }

a { color: var(--c-primaer); text-underline-offset: .2em; }
a:hover { color: var(--c-primaer-dunkel); }

/* Sichtbarer Fokus. Ohne ihn ist die Seite mit der Tastatur unbenutzbar —
   und outline:none ist der häufigste Barrierefreiheitsfehler überhaupt.

   Doppelter Ring: der innere Ring in der Akzentfarbe ist auf hellen Flächen
   deutlich, der äußere weiße Halo sorgt dafür, dass der Fokus auch auf
   dunklen Abschnitten wie Fußbereich und Handlungsaufruf sichtbar bleibt.
   Eine einzige Farbe kann beides nicht leisten. */
:focus-visible {
    outline: 3px solid var(--c-akzent);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, .85);
    border-radius: 3px;
}
.fuss :focus-visible,
.cta :focus-visible,
.kennzahlen :focus-visible {
    outline-color: #fff;
    box-shadow: 0 0 0 6px rgba(0, 0, 0, .45);
}

/* Wer Bewegung reduziert eingestellt hat, bekommt keine. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !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: .5rem; top: -4rem; z-index: 100;
    background: var(--c-primaer); color: #fff;
    padding: .75rem 1.25rem; border-radius: var(--radius);
    transition: top .15s;
}
.skip-link:focus { top: .5rem; color: #fff; }

.behaelter { width: min(100% - 2.5rem, var(--breite)); margin-inline: auto; }
.behaelter--schmal { width: min(100% - 2.5rem, 46rem); }

.abschnitt { padding-block: var(--abstand); }
.abschnitt--soft { background: var(--c-flaeche-soft); }
.abschnitt__kopf { max-width: 46rem; margin-bottom: 2.5rem; }

/* --- Kopfbereich ---------------------------------------------------------- */
.kopf {
    position: sticky; top: 0; z-index: 50;
    background: var(--c-flaeche);
    border-bottom: 1px solid var(--c-linie);
}
.kopf__innen { display: flex; align-items: center; gap: 1.5rem; padding-block: .9rem; }
.marke { display: flex; align-items: center; gap: .7rem; font-weight: 600; text-decoration: none; color: inherit; }
.marke__logo { max-height: 48px; width: auto; }
.marke__text { font-family: var(--f-kopf); font-size: 1.15rem; }

.hauptmenue { margin-inline-start: auto; display: flex; align-items: center; gap: 1.75rem; }
.hauptmenue__liste { display: flex; gap: 1.5rem; list-style: none; padding: 0; }
.hauptmenue__liste a { text-decoration: none; font-weight: 500; padding-block: .4rem; }
.hauptmenue__liste a.ist-aktiv { box-shadow: inset 0 -2px 0 var(--c-akzent); }

.sprachwahl { display: flex; gap: .4rem; list-style: none; padding: 0; }
.sprachwahl a {
    display: block; padding: .25rem .5rem; font-size: .85rem; font-weight: 600;
    text-decoration: none; border: 1px solid var(--c-linie); border-radius: 4px;
}
.sprachwahl a.ist-aktiv { background: var(--c-primaer); color: #fff; border-color: var(--c-primaer); }

.menue-schalter { display: none; }

@media (max-width: 60rem) {
    .menue-schalter {
        display: block; margin-inline-start: auto;
        width: 46px; height: 46px; background: none;
        border: 1px solid var(--c-linie); border-radius: var(--radius); cursor: pointer;
    }
    .menue-schalter__balken,
    .menue-schalter__balken::before,
    .menue-schalter__balken::after {
        display: block; width: 20px; height: 2px; background: var(--c-text);
        margin-inline: auto; content: ""; position: relative;
    }
    .menue-schalter__balken::before { top: -6px; }
    .menue-schalter__balken::after  { top: 4px; }

    .hauptmenue {
        position: fixed; inset: 0 0 0 auto; width: min(90vw, 20rem);
        background: var(--c-flaeche); flex-direction: column; align-items: flex-start;
        gap: 1.25rem; padding: 5rem 1.75rem 2rem;
        transform: translateX(100%); transition: transform .2s ease;
        border-inline-start: 1px solid var(--c-linie);
    }
    .hauptmenue.ist-offen { transform: none; }
    .hauptmenue__liste { flex-direction: column; gap: .5rem; }
    .hauptmenue__liste a { font-size: 1.15rem; }
}

/* --- Knöpfe --------------------------------------------------------------- */
.knopf {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .8rem 1.5rem; border-radius: var(--radius);
    font: inherit; font-weight: 600; text-decoration: none;
    border: 1px solid transparent; cursor: pointer;
    min-height: 44px; /* Mindest-Touchfläche */
}
.knopf--primaer { background: var(--c-primaer); color: #fff; }
.knopf--primaer:hover { background: var(--c-primaer-dunkel); color: #fff; }
.knopf--hell { background: #fff; color: var(--c-primaer); }

/* --- Hero ----------------------------------------------------------------- */
.hero { padding-block: calc(var(--abstand) * 1.1); }
.hero__innen { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 55rem) { .hero__innen { grid-template-columns: 1.1fr 1fr; } }
.hero__oberzeile {
    text-transform: uppercase; letter-spacing: .12em; font-size: .82rem;
    font-weight: 700; color: var(--c-akzent); margin-bottom: .9rem;
}
.hero__einleitung { font-size: 1.1rem; color: var(--c-text-leise); margin-block: 1.25rem 2rem; }
.hero__bild img { border-radius: var(--radius); width: 100%; object-fit: cover; }

/* --- Zweispalter ---------------------------------------------------------- */
.zweispalt { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 55rem) { .zweispalt { grid-template-columns: 1fr 1fr; } }
.zweispalt--getauscht .zweispalt__bild { order: -1; }
.zweispalt__bild img { border-radius: var(--radius); }
.fliesstext > * + * { margin-top: 1rem; }

/* --- Karten --------------------------------------------------------------- */
.karten { display: grid; gap: 1.5rem; list-style: none; padding: 0;
          grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.karte {
    background: var(--c-flaeche); border: 1px solid var(--c-linie);
    border-radius: var(--radius); padding: 1.75rem;
}
.karte__icon { display: block; width: 2rem; height: 2rem; color: var(--c-akzent); margin-bottom: 1rem; }
.karte__icon svg { width: 100%; height: 100%; }
.karte__titel { margin-bottom: .5rem; }
.karte__text { color: var(--c-text-leise); font-size: .95rem; }
.karte__link { display: inline-block; margin-top: 1rem; font-weight: 600; }

/* --- Kennzahlen ----------------------------------------------------------- */
.kennzahlen { background: var(--c-primaer); color: #fff; padding-block: 2.5rem; }
.kennzahlen__liste { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); text-align: center; }
.kennzahl__wert { font-family: var(--f-kopf); font-size: 2.4rem; font-weight: 700; }
.kennzahl__label { font-size: .9rem; opacity: .85; }

/* --- FAQ ------------------------------------------------------------------ */
.faq { margin-top: 2rem; }
.faq__eintrag { border-bottom: 1px solid var(--c-linie); }
.faq__eintrag summary {
    cursor: pointer; padding: 1.1rem 0; font-weight: 600;
    font-family: var(--f-kopf); font-size: 1.05rem; list-style: none;
    display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq__eintrag summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--c-akzent); }
.faq__eintrag[open] summary::after { content: "–"; }
.faq__eintrag summary::-webkit-details-marker { display: none; }
.faq__antwort { padding-bottom: 1.25rem; color: var(--c-text-leise); }

/* --- Galerie -------------------------------------------------------------- */
.galerie { display: grid; gap: 1rem; list-style: none; padding: 0; margin-top: 2rem;
           grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.galerie img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* --- Handlungsaufruf ------------------------------------------------------ */
.cta { background: var(--c-primaer); color: #fff; padding-block: var(--abstand); }
.cta__innen { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between; }
.cta h2 { margin-bottom: .5rem; }

/* --- Formulare ------------------------------------------------------------ */
.formular { margin-top: 2rem; display: grid; gap: 1.25rem; }
.formular__feld { display: grid; gap: .4rem; }
.formular__feld label { font-weight: 600; font-size: .95rem; }
.pflicht { font-weight: 400; color: var(--c-text-leise); font-size: .85rem; }
.formular input, .formular textarea, .formular select {
    font: inherit; padding: .8rem .9rem; min-height: 44px;
    border: 1px solid var(--c-linie); border-radius: var(--radius);
    background: var(--c-flaeche); color: var(--c-text); width: 100%;
}
.formular input[aria-invalid="true"], .formular textarea[aria-invalid="true"] {
    border-color: var(--c-fehler); border-width: 2px;
}
.formular__fehler { color: var(--c-fehler); font-size: .9rem; font-weight: 600; }
.formular__hinweis, .formular__hilfe { font-size: .88rem; color: var(--c-text-leise); }
.honigtopf { position: absolute; left: -9999px; }

.meldung { padding: 1rem 1.2rem; border-radius: var(--radius); font-weight: 500; margin-block: 1rem; }
.meldung--erfolg { background: #E8F5EE; color: var(--c-erfolg); border: 1px solid var(--c-erfolg); }
.meldung--fehler { background: #FBEAE9; color: var(--c-fehler); border: 1px solid var(--c-fehler); }

/* --- Fußbereich ----------------------------------------------------------- */
.fuss { background: var(--c-primaer-dunkel); color: #fff; padding-block: 3.5rem 1.5rem; margin-top: var(--abstand); }
.fuss a { color: #fff; }
.fuss__raster { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.fuss__titel { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; opacity: .7; }
.fuss__liste { list-style: none; padding: 0; display: grid; gap: .5rem; }
.fuss__zeiten { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; font-size: .95rem; }
.fuss__zeiten dt { font-weight: 600; }
.fuss address { font-style: normal; }
.fuss__leiste {
    display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
    margin-top: 3rem; padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,.18);
    font-size: .85rem;
}
.fuss__signatur a { font-weight: 600; }

/* --- Rechts-nach-links ---------------------------------------------------- */
.ist-rtl { direction: rtl; }
.ist-rtl .hero__innen,
.ist-rtl .zweispalt { direction: rtl; }

/* =============================================================================
 *  MB Arbeitsschutz Beratung — kundenspezifisches Design
 *  Erstellt durch DOSIGNY — Dominik Baurhenn — https://www.dosigny.com
 * ========================================================================== */

:root {
    --signal: #FFD400;
    --blau-soft: #EAF3FF;
    --nacht: #07182F;
}

html { scroll-padding-top: 88px; }
body { overflow-x: clip; letter-spacing: -.01em; }
h1, h2, h3, h4 { letter-spacing: -.045em; font-weight: 780; }
h1 { font-size: clamp(3rem, 1.7rem + 5.6vw, 6.3rem); line-height: .98; }
h2 { font-size: clamp(2.25rem, 1.45rem + 3.4vw, 4.5rem); line-height: 1.06; }
h3 { letter-spacing: -.025em; }

.kopf {
    color: #fff;
    background: rgba(7, 24, 47, .97);
    border-bottom-color: rgba(255,255,255,.12);
    backdrop-filter: blur(18px);
}
.kopf__innen { min-height: 82px; padding-block: .65rem; }
.marke { width: 270px; height: 62px; color: #fff; line-height: 1.05; }
.marke:hover { color: #fff; }
.logo-ausschnitt { position: relative; display: block; overflow: hidden; }
.logo-ausschnitt img {
    position: absolute; left: 50%; top: 50%; width: 170%; max-width: none; height: auto;
    transform: translate(-50%, -50%);
}
.logo-ausschnitt--kopf { width: 100%; height: 100%; }
.logo-ausschnitt--fuss { width: min(100%, 320px); height: 76px; margin-bottom: .75rem; }
.hauptmenue__liste { gap: 1.7rem; }
.hauptmenue__liste a { color: #DCE8F8; font-size: .83rem; font-weight: 680; }
.hauptmenue__liste a:hover { color: #fff; }
.hauptmenue__liste a.ist-aktiv { color: #fff; box-shadow: inset 0 -2px 0 var(--signal); }
.kopf__telefon { color: #fff; font-size: .78rem; font-weight: 760; text-decoration: none; white-space: nowrap; }
.kopf__telefon:hover { color: var(--signal); }
.sprachwahl a { color: #fff; border-color: rgba(255,255,255,.25); border-radius: 999px; min-width: 42px; min-height: 42px; display: grid; place-items: center; }
.sprachwahl a.ist-aktiv { color: var(--nacht); background: var(--signal); border-color: var(--signal); }
.knopf { border-radius: 7px; font-weight: 800; transition: transform .16s ease, box-shadow .16s ease; }
.knopf:hover { transform: translateY(-2px); }
.knopf--signal { color: var(--nacht); background: var(--signal); }
.knopf--signal:hover { color: var(--nacht); background: #FFE23E; box-shadow: 0 14px 34px rgba(255,212,0,.2); }
.knopf--primaer { color: var(--nacht); background: var(--signal); }
.knopf--primaer:hover { color: var(--nacht); background: #FFE23E; }

.hero {
    position: relative; overflow: hidden; min-height: 710px; padding-block: 0; color: #fff;
    background:
        radial-gradient(circle at 78% 35%, rgba(20,99,211,.32), transparent 30%),
        linear-gradient(135deg, #051226 0%, #081C38 62%, #0B2C5D 100%);
}
.hero::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 9px; background: var(--signal); }
.hero::after {
    content: ""; position: absolute; inset: 0; opacity: .1; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.14) 1px,transparent 1px), linear-gradient(90deg,rgba(255,255,255,.14) 1px,transparent 1px);
    background-size: 72px 72px; mask-image: linear-gradient(to right,#000,transparent 80%);
}
.hero__innen { position: relative; z-index: 2; min-height: 710px; grid-template-columns: 1.05fr .95fr; gap: 5rem; padding-block: 4.5rem; }
.hero__innen:not(:has(.hero__bild)) { grid-template-columns: 1fr; max-width: 920px; margin-inline: auto; }
.hero__oberzeile { color: #A7CBFF; letter-spacing: .16em; font-size: .76rem; }
.hero__oberzeile::before { content: ""; display: inline-block; width: 34px; height: 3px; margin-inline-end: .75rem; vertical-align: middle; background: var(--signal); }
.hero__titel { max-width: 760px; }
.hero__einleitung { max-width: 680px; color: #D0DCEB; font-size: 1.08rem; line-height: 1.8; }
.hero__einleitung strong { display: block; margin-bottom: .3rem; color: var(--signal); font-size: clamp(1.3rem,2vw,2rem); line-height: 1.2; letter-spacing: -.04em; }
.hero__bild { position: relative; height: 570px; overflow: hidden; border-radius: 160px 9px 9px 9px; box-shadow: 0 35px 90px rgba(0,0,0,.32); }
.hero__bild::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent,rgba(3,18,38,.2)); }
.hero__bild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; border-radius: 0; }

.abschnitt { padding-block: clamp(5rem,9vw,8rem); }
.abschnitt__kopf { max-width: 850px; margin-bottom: 3.2rem; }
.abschnitt__kopf .fliesstext { max-width: 680px; margin-top: 1.2rem; color: var(--c-text-leise); }
.abschnitt--soft { background: #F4F8FC; }

.karten { gap: 0; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--c-linie); border-inline-start: 1px solid var(--c-linie); }
.karte {
    min-height: 310px; padding: 2.25rem 2rem; border: 0; border-inline-end: 1px solid var(--c-linie); border-bottom: 1px solid var(--c-linie); border-radius: 0;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.karte:hover { position: relative; z-index: 1; transform: translateY(-5px); background: var(--blau-soft); box-shadow: 0 25px 70px rgba(26,65,113,.13); }
.karte__icon { width: 2.4rem; height: 2.4rem; margin-bottom: 3.2rem; color: var(--c-primaer); }
.karte__titel { margin-bottom: .8rem; font-size: 1.18rem; }
.karte__text { color: var(--c-text-leise); line-height: 1.7; }
.karte__link { color: var(--c-primaer-dunkel); font-size: .84rem; }

.prozess { padding-block: clamp(5rem,9vw,8rem); color: #fff; background: var(--nacht); }
.prozess__innen { display: grid; grid-template-columns: .72fr 1.28fr; gap: 9vw; }
.prozess__kopf { position: sticky; top: 8.8rem; align-self: start; }
.prozess__oberzeile { margin-bottom: 1rem; color: #A7CBFF; font-size: .76rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.prozess__oberzeile::before { content: ""; display: inline-block; width: 34px; height: 3px; margin-inline-end: .75rem; vertical-align: middle; background: var(--signal); }
.prozess__liste { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.16); }
.prozess__liste li { min-height: 176px; display: grid; grid-template-columns: 78px 1fr; gap: 1.4rem; align-items: start; padding-block: 2.2rem; border-bottom: 1px solid rgba(255,255,255,.16); }
.prozess__nummer { width: 52px; height: 52px; display: grid; place-items: center; color: var(--nacht); background: var(--signal); font-weight: 900; }
.prozess__liste h3 { margin-bottom: .5rem; }
.prozess__liste p { color: #B9C7DA; }

.zweispalt { gap: clamp(3rem,7vw,6rem); }
.zweispalt:not(:has(.zweispalt__bild)) { grid-template-columns: 1fr; max-width: 900px; }
.zweispalt__text h2 { margin-bottom: 1.7rem; }
.zweispalt__text .fliesstext { color: var(--c-text-leise); line-height: 1.85; }
.zweispalt__text .fliesstext h3 { margin-top: 2rem; color: var(--c-primaer-dunkel); }
.zweispalt__bild { position: relative; min-height: 680px; overflow: hidden; border-radius: 9px 140px 9px 9px; background: #75B9F3; }
.zweispalt__bild::before { content: ""; position: absolute; z-index: 2; inset: 1.5rem auto auto 1.5rem; width: 70px; height: 70px; border-block-start: 7px solid var(--signal); border-inline-start: 7px solid var(--signal); }
.zweispalt__bild img { width: 100%; height: 100%; min-height: 680px; object-fit: cover; object-position: 50% 18%; border-radius: 0; }

.faq { margin-top: 2.4rem; border-top: 1px solid var(--c-linie); }
.faq__eintrag summary { min-height: 84px; padding: 1.35rem .25rem; font-size: 1.04rem; }
.faq__eintrag summary::after { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #B3C0CE; border-radius: 50%; color: var(--c-primaer); font-weight: 500; }
.faq__antwort { padding: 0 3.7rem 1.8rem 0; line-height: 1.8; }

.cta { position: relative; overflow: hidden; padding-block: clamp(5rem,8vw,7rem); background: linear-gradient(120deg,#004592,#071E43 70%); }
.cta::after { content: ""; position: absolute; inset: -260px -130px auto auto; width: 560px; height: 560px; border: 80px solid rgba(255,212,0,.1); border-radius: 50%; }
.cta__innen { position: relative; z-index: 2; }
.cta h2 { max-width: 760px; }
.cta p { max-width: 680px; margin-top: 1rem; color: #D0DEF0; }
.knopf--hell { color: var(--nacht); background: var(--signal); }
.knopf--hell:hover { color: var(--nacht); background: #FFE23E; }

.formular { padding: 2rem; background: #fff; border: 1px solid var(--c-linie); box-shadow: 0 24px 70px rgba(26,65,113,.1); }
.formular input, .formular textarea, .formular select { border-radius: 5px; background: #FBFDFE; }
.formular input:focus, .formular textarea:focus { border-color: var(--c-primaer); }

.fuss { margin-top: 0; padding-block: 4rem 1.5rem; background: #04101F; }
.fuss__marke strong { font-size: 1.18rem; }
.fuss__marke p { margin-top: .8rem; color: #AEBED1; }
.fuss__titel { color: #B8C6D8; opacity: 1; }
.fuss address { color: #CED8E5; }
.fuss__leiste { color: #92A3B7; }

@media (max-width: 70rem) {
    .hauptmenue { gap: 1rem; }
    .hauptmenue__liste { gap: 1.1rem; }
    .kopf__telefon { display: none; }
    .knopf--signal { display: none; }
    .karten { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 60rem) {
    .kopf__innen { min-height: 72px; }
    .menue-schalter { border-color: rgba(255,255,255,.3); }
    .menue-schalter__balken, .menue-schalter__balken::before, .menue-schalter__balken::after { background: #fff; }
    .hauptmenue { color: var(--c-text); background: #fff; }
    .hauptmenue__liste a { color: var(--c-primaer-dunkel); font-size: 1.05rem; }
    .hauptmenue__liste a:hover { color: var(--c-primaer); }
    .kopf__telefon { display: inline-flex; color: var(--c-primaer-dunkel); font-size: 1rem; }
    .kopf__telefon:hover { color: var(--c-primaer); }
    .knopf--signal { display: inline-flex; }
    .sprachwahl a { color: var(--c-primaer-dunkel); border-color: var(--c-linie); }
    .hero__innen, .prozess__innen { grid-template-columns: 1fr; gap: 3.5rem; }
    .hero__innen { padding-block: 4rem; }
    .hero__bild { max-width: 600px; width: 100%; }
    .prozess__kopf { position: static; }
    .zweispalt__bild { min-height: 580px; }
    .zweispalt__bild img { min-height: 580px; }
}

@media (max-width: 42rem) {
    .behaelter { width: min(100% - 2rem,var(--breite)); }
    .marke { min-width: 0; gap: .45rem; }
    .marke { width: 215px; height: 52px; }
    h1 { font-size: clamp(2.75rem,13vw,4.5rem); overflow-wrap: anywhere; }
    .hero { min-height: auto; }
    .hero__innen { min-height: auto; gap: 3rem; }
    .hero__bild { height: 500px; border-radius: 110px 8px 8px 8px; }
    .karten { grid-template-columns: 1fr; }
    .karte { min-height: 0; padding: 1.9rem 1.5rem; }
    .karte__icon { margin-bottom: 2rem; }
    .prozess__liste li { grid-template-columns: 58px 1fr; gap: 1rem; }
    .prozess__nummer { width: 44px; height: 44px; }
    .zweispalt__bild, .zweispalt__bild img { min-height: 500px; }
    .cta__innen { align-items: stretch; }
    .cta .knopf { width: 100%; }
    .formular { padding: 1.25rem; }
    .fuss__leiste { flex-direction: column; }
}

/* --- Responsive Navigation & Interaktionspolitur ------------------------- */
.kopf { transition: box-shadow .22s ease, background-color .22s ease; }
.kopf.ist-gescrollt { box-shadow: 0 16px 42px rgba(1, 12, 28, .22); }

.hero__einleitung a {
    color: var(--signal);
    font-weight: 760;
    text-decoration-color: rgba(255, 212, 0, .65);
    text-decoration-thickness: 2px;
    text-underline-offset: .28em;
    transition: color .16s ease, text-decoration-color .16s ease, text-shadow .16s ease;
}
.hero__einleitung a:hover,
.hero__einleitung a:focus-visible {
    color: #FFE23E;
    text-decoration-color: #FFE23E;
    text-shadow: 0 0 22px rgba(255, 212, 0, .35);
}

.bewegung-bereit [data-einblenden] {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity .58s cubic-bezier(.2,.75,.25,1) var(--einblend-verzoegerung, 0ms),
        transform .58s cubic-bezier(.2,.75,.25,1) var(--einblend-verzoegerung, 0ms);
}
.bewegung-bereit [data-einblenden].ist-sichtbar { opacity: 1; transform: none; }

@media (max-width: 75rem) {
    html { scroll-padding-top: 74px; }
    body.menue-ist-offen { overflow: hidden; }
    body.menue-ist-offen::before {
        content: "";
        position: fixed;
        z-index: 45;
        inset: 0;
        background: rgba(2, 13, 30, .58);
        backdrop-filter: blur(3px);
    }

    .kopf { z-index: 50; }
    .kopf__innen { min-height: 74px; gap: 1rem; }
    .marke { width: 235px; height: 54px; }

    .menue-schalter {
        position: relative;
        z-index: 72;
        display: grid;
        place-items: center;
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
        margin-inline-start: auto;
        padding: 0;
        background: rgba(255,255,255,.04);
        border: 1px solid rgba(255,255,255,.3);
        border-radius: 8px;
        cursor: pointer;
        transition: background .16s ease, border-color .16s ease;
    }
    .menue-schalter:hover { background: rgba(255,255,255,.1); border-color: var(--signal); }
    .menue-schalter__balken,
    .menue-schalter__balken::before,
    .menue-schalter__balken::after {
        position: absolute;
        left: 50%;
        display: block;
        width: 22px;
        height: 2px;
        margin: 0;
        content: "";
        background: #fff;
        transform: translateX(-50%);
        transition: transform .2s ease, opacity .15s ease, top .2s ease;
    }
    .menue-schalter__balken { top: 23px; }
    .menue-schalter__balken::before { top: -7px; }
    .menue-schalter__balken::after { top: 7px; }
    .menue-schalter[aria-expanded="true"] .menue-schalter__balken { background: transparent; }
    .menue-schalter[aria-expanded="true"] .menue-schalter__balken::before { top: 0; transform: translateX(-50%) rotate(45deg); background: var(--nacht); }
    .menue-schalter[aria-expanded="true"] .menue-schalter__balken::after { top: 0; transform: translateX(-50%) rotate(-45deg); background: var(--nacht); }

    .hauptmenue {
        position: fixed;
        z-index: 70;
        inset: 0 0 0 auto;
        width: min(88vw, 25rem);
        height: 100vh;
        height: 100dvh;
        max-height: none;
        margin: 0;
        padding: 6.8rem 1.5rem 2rem;
        overflow-y: auto;
        overscroll-behavior: contain;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        color: var(--c-text);
        background: #fff;
        border: 0;
        box-shadow: -28px 0 80px rgba(1, 12, 28, .24);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(104%);
        transition: transform .25s cubic-bezier(.2,.75,.25,1), opacity .2s ease, visibility 0s linear .25s;
    }
    .hauptmenue.ist-offen {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        transition-delay: 0s;
    }
    .hauptmenue__liste { width: 100%; display: grid; gap: 0; }
    .hauptmenue__liste li { width: 100%; }
    .hauptmenue__liste a {
        width: 100%;
        min-height: 52px;
        display: flex;
        align-items: center;
        padding: .7rem .25rem;
        color: var(--c-primaer-dunkel);
        font-size: 1.05rem;
        border-bottom: 1px solid var(--c-linie);
    }
    .hauptmenue__liste a:hover { color: var(--c-primaer); }
    .hauptmenue__liste a.ist-aktiv { color: var(--c-primaer-dunkel); box-shadow: inset 4px 0 0 var(--signal); padding-inline-start: .85rem; }
    .kopf__telefon {
        min-height: 48px;
        display: flex;
        align-items: center;
        color: var(--c-primaer-dunkel);
        font-size: .98rem;
    }
    .kopf__telefon:hover { color: var(--c-primaer); }
    .hauptmenue .knopf--signal { width: 100%; display: inline-flex; min-height: 52px; }
    .sprachwahl { margin-top: .25rem; }
    .sprachwahl a { color: var(--c-primaer-dunkel); border-color: var(--c-linie); }

    h1 { font-size: clamp(2.9rem, 6.8vw, 4.8rem); overflow-wrap: normal; hyphens: auto; }
    .hero__innen, .prozess__innen { grid-template-columns: 1fr; gap: 3.5rem; }
    .hero__innen { min-height: auto; padding-block: clamp(3.5rem, 8vw, 5rem); }
    .hero__bild { max-width: 650px; width: 100%; }
    .prozess__kopf { position: static; }
}

@media (max-width: 42rem) {
    .behaelter { width: min(100% - 1.5rem, var(--breite)); }
    .kopf__innen { min-height: 68px; }
    .marke { width: min(190px, calc(100vw - 92px)); height: 46px; }
    .hauptmenue { width: min(92vw, 23rem); padding-inline: 1.25rem; }
    h1 { font-size: clamp(2.35rem, 11.5vw, 3.75rem); line-height: 1.02; overflow-wrap: break-word; }
    h2 { font-size: clamp(2rem, 9vw, 3.35rem); }
    .hero__bild { height: min(125vw, 500px); }
    .hero__einleitung { font-size: 1rem; line-height: 1.72; overflow-wrap: anywhere; }
    .hero__einleitung a { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
    .bewegung-bereit [data-einblenden] { opacity: 1; transform: none; }
}
