/* Metz Bau – Stylesheet
   Layout: Bauplan-Raster. Ruhige Flächen, Planzeichen (Maßkette, Plankopf, Höhenkoten) als einziges Ornament.
   Farben aus dem Logo (Cyan, Grau), Signalgelb nur für Markierungen. Hell/Dunkel über Tokens. */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("../fonts/archivo-var.woff2") format("woff2-variations"), url("../fonts/archivo-var.woff2") format("woff2"); }
@font-face { font-family: "Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/plex-mono-500.woff2") format("woff2"); }

:root {
  --bg: #F6F8F9;          /* Seitengrund */
  --surface: #FFFFFF;     /* Karten, Formularfelder */
  --muted: #E8EDF0;       /* Flächen, Bildplatzhalter */
  --ink: #0F1D29;         /* Text */
  --ink-2: #4A5764;       /* Sekundärtext */
  --line: #C9D2D9;        /* Planlinien */
  --brand: #00A7DE;       /* Logo-Cyan: Grafik, große Flächen */
  --link: #006E99;        /* Links auf hellem Grund */
  --btn: #00698F;         /* Primärbutton */
  --btn-ink: #FFFFFF;
  --signal: #D8E536;      /* Warnweste: Markierungen */
  --band: #0B1620;        /* dunkle Bänder (in beiden Modi dunkel) */
  --band-ink: #D7E3EC;
  --band-ink-2: #9DB0C0;
  --band-accent: #5FCBF2;
  --band-line: rgba(215, 227, 236, 0.22);
  --blueband: #00698F;
  --blueband-ink: #DCEFF8;
  --logo-b: #00A7DE;
  --logo-g: #706F6D;
  --map-land: #E8EDF0;
  --map-line: #C9D2D9;
  --map-border: #7D8A96;
  --shadow: 0 1px 2px rgba(15, 29, 41, .06), 0 8px 24px rgba(15, 29, 41, .06);

  --f-display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --f-text: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --sektion: clamp(64px, 9vw, 128px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C141B; --surface: #121D26; --muted: #1A2732; --ink: #E7EEF3; --ink-2: #A3B2BF; --line: #2A3946;
    --brand: #19B6EA; --link: #5FCBF2; --btn: #5FCBF2; --btn-ink: #0C141B;
    --band: #060C11; --blueband: #0B3A50; --blueband-ink: #DCEFF8;
    --logo-b: #19B6EA; --logo-g: #BDBCB9;
    --map-land: #16222C; --map-line: #2A3946; --map-border: #6B7B89;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C141B; --surface: #121D26; --muted: #1A2732; --ink: #E7EEF3; --ink-2: #A3B2BF; --line: #2A3946;
  --brand: #19B6EA; --link: #5FCBF2; --btn: #5FCBF2; --btn-ink: #0C141B;
  --band: #060C11; --blueband: #0B3A50; --blueband-ink: #DCEFF8;
  --logo-b: #19B6EA; --logo-g: #BDBCB9;
  --map-land: #16222C; --map-line: #2A3946; --map-border: #6B7B89;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-text); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; box-shadow: 0 0 0 6px var(--ink); border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; text-wrap: balance; color: inherit; }
h1 { font-size: clamp(2.5rem, 7.2vw, 6.2rem); font-weight: 820; font-stretch: 120%; line-height: .95; letter-spacing: -.025em; }
h2 { font-size: clamp(1.9rem, 4.1vw, 3.2rem); font-weight: 780; font-stretch: 116%; line-height: 1.03; letter-spacing: -.02em; }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); font-weight: 720; font-stretch: 108%; line-height: 1.18; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.kicker { font-family: var(--f-mono); font-size: .78rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
  display: flex; align-items: center; gap: .6em; }
.kicker::before { content: ""; width: .7em; height: .7em; background: var(--signal); box-shadow: inset 0 0 0 1px rgba(15,29,41,.35); flex: none; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; max-width: 48ch; }
.text { max-width: 64ch; color: var(--ink-2); }
.text + .text { margin-top: 1em; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--signal); color: #0F1D29; padding: 10px 14px; z-index: 100; font-weight: 600; }
.skip:focus { left: 12px; top: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .6em; font: 650 1rem/1.2 var(--f-text); font-stretch: 108%; padding: .9em 1.3em;
  border: 2px solid var(--ink); background: transparent; color: var(--ink); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn--voll { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.btn--voll:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn .pfeil { font-family: var(--f-mono); }
.aktionen { display: flex; flex-wrap: wrap; gap: 12px; }

/* Kopf */
.kopf { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.kopf__innen { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.marke { display: block; flex: none; line-height: 0; }
.marke svg { width: clamp(118px, 13vw, 150px); height: auto; }
.logo-b { fill: var(--logo-b); } .logo-g { fill: var(--logo-g); }
.hauptnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(12px, 1.8vw, 26px); }
.hauptnav a { color: var(--ink); text-decoration: none; font-weight: 560; font-stretch: 104%; font-size: .97rem; padding-block: 6px; border-bottom: 2px solid transparent; }
.hauptnav a:hover, .hauptnav a[aria-current="page"] { border-bottom-color: var(--brand); }
.kopf__tools { display: flex; align-items: center; gap: 8px; }
.sprachen { display: flex; gap: 2px; font-family: var(--f-mono); font-size: .78rem; }
.sprachen a { color: var(--ink-2); text-decoration: none; padding: 6px 6px; border: 1px solid transparent; }
.sprachen a[aria-current="true"] { color: var(--ink); border-color: var(--line); background: var(--surface); }
.sprachen a:hover { color: var(--ink); }
.thema { width: 38px; height: 38px; display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; padding: 0; }
.thema svg { width: 18px; height: 18px; }
.thema .icon-sonne { display: none; }
:root[data-theme="dark"] .thema .icon-mond { display: none; }
:root[data-theme="dark"] .thema .icon-sonne { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .thema .icon-mond { display: none; } :root:not([data-theme="light"]) .thema .icon-sonne { display: block; } }
.kopf__tel { font-family: var(--f-mono); font-size: .86rem; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap; border: 1px solid var(--line); padding: 8px 10px; background: var(--surface); }
.nav-toggle { display: none; }
@media (max-width: 1080px) { .kopf__tel { display: none; } }
@media (max-width: 920px) {
  .js .nav-toggle { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--ink);
    font-family: var(--f-mono); font-weight: 500; font-size: .8rem; line-height: 1; letter-spacing: .08em; text-transform: uppercase; padding: 11px 10px; cursor: pointer; }
  .nav-toggle__striche { width: 16px; height: 10px; border-block: 2px solid currentColor; position: relative; }
  .nav-toggle__striche::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid currentColor; }
  .hauptnav ul { overflow-x: auto; }
  .js .hauptnav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .js .hauptnav.ist-offen { display: block; }
  .js .hauptnav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; }
  .js .hauptnav li + li { border-top: 1px solid var(--line); }
  .js .hauptnav a { display: block; padding-block: 14px; font-size: 1.15rem; border-bottom: 0; }
}
.nav-sprachen { display: none; }
@media (max-width: 420px) {
  .sprachen a:not([aria-current="true"]) { display: none; }
  .js .hauptnav li.nav-sprachen { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 14px; }
  .js .hauptnav .nav-sprachen a { font-family: var(--f-mono); font-size: .85rem; font-weight: 500; padding: 8px 10px; border: 1px solid var(--line); }
  .js .hauptnav .nav-sprachen a[aria-current="true"] { background: var(--surface); }
}

/* Hero */
.hero { padding-top: clamp(36px, 6vw, 84px); }
.hero__text { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--brand); }
.masskette { display: grid; grid-template-columns: auto 1fr auto; align-items: end; font-family: var(--f-mono); font-size: .82rem; color: var(--ink-2); max-width: 980px; margin-top: 6px; }
.mk__ende { padding-bottom: 4px; padding-inline: 2px; }
.mk__strecke { position: relative; height: 34px; margin-inline: 10px; }
.mk__strecke::before { content: ""; position: absolute; left: 0; right: 0; bottom: 9px; border-top: 1px solid var(--ink); }
.mk__strecke i { position: absolute; bottom: 0; width: 0; height: 22px; border-left: 1px solid var(--ink); }
.mk__strecke i:first-of-type { left: 0; } .mk__strecke i:last-of-type { right: 0; }
.mk__strecke i::after { content: ""; position: absolute; left: -6px; bottom: 8px; width: 12px; border-top: 2px solid var(--ink); transform: rotate(-45deg); }
.mk__wert { position: absolute; left: 50%; bottom: 13px; transform: translateX(-50%); background: var(--bg); padding-inline: 10px; color: var(--ink); font-weight: 500; white-space: nowrap; }
.hero__unten { display: grid; gap: 24px; align-items: end; }
@media (min-width: 860px) { .hero__unten { grid-template-columns: minmax(0, 1fr) auto; } }
.vertrauen { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--f-mono); font-size: .8rem; color: var(--ink-2); }
.vertrauen li { display: flex; align-items: center; gap: .55em; }
.vertrauen li::before { content: ""; width: 9px; height: 9px; border: 1.5px solid var(--brand); transform: rotate(45deg); flex: none; }

/* Video */
.video { margin-top: clamp(36px, 5vw, 64px); }
.video__rahmen { position: relative; background: var(--muted); overflow: hidden; margin-inline: auto; width: min(100% - 2 * var(--gutter), var(--max)); border-radius: 6px; }
.video__rahmen video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 700px) { .video__rahmen video { aspect-ratio: 4 / 5; } }
.video__pause { position: absolute; right: 14px; bottom: 14px; width: 42px; height: 42px; display: grid; place-items: center; border: 0; cursor: pointer;
  background: rgba(11, 22, 32, .62); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 50%; }
.video__pause svg { width: 16px; height: 16px; }
.video__pause .i-play { display: none; }
.video__pause[aria-pressed="true"] .i-play { display: block; }
.video__pause[aria-pressed="true"] .i-pause { display: none; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
    .video__rahmen { animation: video-auf linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    @keyframes video-auf { from { width: min(100% - 2 * var(--gutter), 920px); border-radius: 14px; } to { width: 100%; border-radius: 0; } }
    .einblenden { animation: einblenden linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    @keyframes einblenden { from { opacity: .001; transform: translateY(28px); } to { opacity: 1; transform: none; } }
  }
}

/* Sektionen */
.sektion { padding-block: var(--sektion); }
.sektion--anschluss { padding-top: 0; }
.sektion__kopf { display: grid; gap: 16px; align-content: start; margin-bottom: clamp(32px, 4.5vw, 56px); }
@media (min-width: 900px) {
  .sektion__kopf--zwei { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; column-gap: 48px; }
  .sektion__kopf--zwei .kicker { grid-column: 1 / -1; }
}

/* Auf einen Blick */
.profil { display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 980px) { .profil { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
.profil__liste { margin: 0; display: grid; border-top: 2px solid var(--ink); }
.profil__liste > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .profil__liste > div { grid-template-columns: 11rem minmax(0, 1fr); } }
.profil__liste dt { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding-top: .2em; }
.profil__liste dd { margin: 0; }

/* Dunkles Band */
.band { background: var(--band); color: var(--band-ink); }
.band .kicker { color: var(--band-ink-2); }
.band .text, .band p { color: var(--band-ink); }
.band h2, .band h3 { color: #fff; }
.kern { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 980px) { .kern { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.kern__text { display: grid; gap: 20px; }
.haken { list-style: none; padding: 0; margin: 4px 0 0; display: grid; border-top: 1px solid var(--band-line); }
.haken li { padding: 12px 0; border-bottom: 1px solid var(--band-line); display: grid; grid-template-columns: 1.4em minmax(0, 1fr); gap: 10px; color: #fff; font-weight: 520; }
.haken li::before { content: "▸"; color: var(--band-accent); font-family: var(--f-mono); }
.kern__bilder { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.kern__bilder figure { margin: 0; background: #16222c; overflow: hidden; }
.kern__bilder figure:first-child { grid-column: 1 / -1; }
.kern__bilder img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.prinzipien { display: grid; gap: 0; margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--band-line); }
@media (min-width: 720px) { .prinzipien { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; } }
@media (min-width: 1100px) { .prinzipien { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.prinzip { padding: 22px 0 24px; border-bottom: 1px solid var(--band-line); display: grid; gap: 8px; align-content: start; }
.prinzip p { color: var(--band-ink-2); }

/* Leistungen */
.leistungen { display: grid; gap: clamp(20px, 2.4vw, 28px); }
@media (min-width: 640px) { .leistungen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .leistungen { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.leistung { display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; align-content: start; background: var(--surface); border: 1px solid var(--line); }
.leistung figure { margin: 0; background: var(--muted); overflow: hidden; }
.leistung img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.leistung h3, .leistung > p, .leistung details { padding-inline: 18px; }
.leistung > p { color: var(--ink-2); font-size: .98rem; }
.leistung details { padding-bottom: 18px; }
.leistung summary { cursor: pointer; font-family: var(--f-mono); font-size: .8rem; letter-spacing: .04em; color: var(--link); list-style: none; display: flex; align-items: center; gap: .5em; padding-top: 4px; }
.leistung summary::-webkit-details-marker { display: none; }
.leistung summary::before { content: "+"; font-weight: 500; width: 1em; }
.leistung details[open] summary::before { content: "−"; }
.leistung details ul { padding-left: 1.1em; margin-top: 10px; color: var(--ink-2); font-size: .95rem; display: grid; gap: 4px; }
.leistung details .hinweis-klein { margin-top: 10px; font-size: .88rem; color: var(--ink-2); border-left: 2px solid var(--signal); padding-left: 10px; }
.nicht-dabei { margin-top: clamp(28px, 3vw, 40px); display: grid; gap: 20px; padding: clamp(22px, 3vw, 36px); border: 2px solid var(--ink); background: var(--surface); }
@media (min-width: 900px) { .nicht-dabei { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr) auto; align-items: start; column-gap: 40px; } .nicht-dabei h3 { margin: 0; } }
.nicht-dabei p { color: var(--ink-2); }
.nicht-dabei .klein { font-size: .92rem; }

/* Referenzen */
.refs { display: grid; gap: clamp(20px, 2.4vw, 28px); }
@media (min-width: 700px) { .refs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .refs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ref { display: grid; gap: 10px; align-content: start; }
.ref figure { margin: 0 0 4px; background: var(--muted); overflow: hidden; }
.ref img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; }
.ref:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .ref img { transition: none; } .ref:hover img { transform: none; } }
.ref__meta { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .04em; color: var(--ink-2); text-transform: uppercase; }
.ref p { color: var(--ink-2); font-size: .98rem; }
.kennzahl { margin-top: clamp(36px, 5vw, 64px); display: grid; gap: 12px 40px; padding-top: 28px; border-top: 2px solid var(--ink); }
@media (min-width: 860px) { .kennzahl { grid-template-columns: auto minmax(0, 1fr); align-items: end; } }
.kennzahl__wert { font-family: var(--f-display); font-weight: 820; font-stretch: 120%; font-size: clamp(3.2rem, 8vw, 6rem); line-height: .9; letter-spacing: -.03em; color: var(--brand); }
.kennzahl__text { max-width: 46ch; font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.kennzahl__quelle { font-family: var(--f-mono); font-size: .74rem; color: var(--ink-2); margin-top: 8px; }
.refs__mehr { margin-top: 28px; color: var(--ink-2); }

/* Kreislauf */
.kreis { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 980px) { .kreis { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; } }
.kreis__text { display: grid; gap: 18px; }
.fakten { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.fakten { grid-template-columns: max-content minmax(0, 1fr); column-gap: 20px; }
.fakten li { grid-column: 1 / -1; display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); grid-template-columns: subgrid; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.fakten b { font-family: var(--f-display); font-weight: 800; font-stretch: 115%; font-size: 1.6rem; color: var(--brand); line-height: 1; }
.kreis__bilder { display: grid; gap: 10px; }
.kreis__bilder figure { margin: 0; background: var(--muted); overflow: hidden; }
.kreis__bilder img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Karte */
.region { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 980px) { .region { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.region__text { display: grid; gap: 18px; }
.karte-rahmen { background: var(--surface); border: 1px solid var(--line); padding: clamp(8px, 1.5vw, 16px); }
.karte { width: 100%; height: auto; }
.k-kreis { fill: var(--map-land); stroke: var(--map-line); stroke-width: 1; }
.k-land { fill: none; stroke: var(--map-border); stroke-width: 1.6; }
.k-ring { fill: none; stroke: var(--link); stroke-width: 1.6; stroke-dasharray: 6 6; }
.k-mass { stroke: var(--ink); stroke-width: 1.2; }
.k-masstext { font: 500 15px var(--f-mono); fill: var(--ink); }
.k-region { font: italic 500 17px var(--f-text); fill: var(--ink-2); letter-spacing: .06em; }
.k-orient { fill: var(--ink-2); }
.k-label { font: 400 14px var(--f-mono); fill: var(--ink); }
.k-label--leise { fill: var(--ink-2); }
.k-label--stark { font-weight: 500; font-size: 17px; }
.k-frueher { fill: var(--surface); stroke: var(--link); stroke-width: 2; }
.k-umsatz { fill: var(--brand); fill-opacity: .55; stroke: var(--link); stroke-width: 1.5; }
.legende { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-family: var(--f-mono); font-size: .76rem; color: var(--ink-2); }
.legende li { display: flex; align-items: center; gap: 8px; }
.legende svg { width: 26px; height: 26px; flex: none; }
.orte { font-size: .95rem; color: var(--ink-2); }

/* Über uns */
.firma { display: grid; gap: clamp(36px, 5vw, 72px); }
@media (min-width: 980px) { .firma { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.firma__text { display: grid; gap: 20px; align-content: start; }
.chronik { list-style: none; margin: 0; padding: 0; position: relative; }
.chronik::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; border-left: 1px dashed var(--ink-2); }
.chronik li { position: relative; padding: 0 0 28px 40px; display: grid; gap: 4px; }
.chronik li:last-child { padding-bottom: 0; }
.chronik li::before { content: ""; position: absolute; left: 0; top: 6px; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 12px solid var(--ink); }
.chronik li.heute::before { border-top-color: var(--brand); }
.chronik__marke { font-family: var(--f-mono); font-size: .82rem; font-weight: 500; letter-spacing: .06em; color: var(--link); }
.chronik h3 { font-size: 1.2rem; }
.chronik p { color: var(--ink-2); max-width: 52ch; }
.firma__bild { grid-column: 1 / -1; margin: 0; background: var(--muted); }
.firma__bild img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 45%; }
@media (max-width: 700px) { .firma__bild img { aspect-ratio: 4 / 3; } }
.platzhalter { background: var(--signal); color: #0F1D29; padding: 0 .25em; font-family: var(--f-mono); font-size: .88em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Karriere-Band */
.blauband { background: var(--blueband); color: var(--blueband-ink); }
.blauband .kicker { color: var(--blueband-ink); }
.blauband .kicker::before { box-shadow: none; }
.blauband p { color: var(--blueband-ink); }
.blauband h2, .blauband h3 { color: #fff; }
.karriere { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 980px) { .karriere { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.karriere figure { margin: 0; background: rgba(0,0,0,.2); }
.karriere img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 30% 40%; }
.karriere__text { display: grid; gap: 20px; }
.stellen { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.35); }
.stellen a { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.35); color: #fff; text-decoration: none; font-weight: 600; font-stretch: 106%; }
.stellen a:hover { text-decoration: underline; }
.stellen span { font-family: var(--f-mono); font-weight: 400; font-size: .8rem; color: var(--blueband-ink); white-space: nowrap; }
.vorteile { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.vorteile li { font-family: var(--f-mono); font-size: .78rem; padding: 6px 10px; border: 1px solid rgba(255,255,255,.45); color: #fff; }
.blauband .btn { border-color: #fff; color: #fff; }
.blauband .btn:hover { background: #fff; color: var(--blueband); }
.blauband .btn--hell { background: #fff; color: #00698F; }
.blauband .btn--hell:hover { background: var(--band); border-color: var(--band); color: #fff; }
.blauband a:not(.btn) { color: #fff; }

/* FAQ */
.faq { display: grid; border-top: 2px solid var(--ink); max-width: 980px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-family: var(--f-display); font-weight: 680; font-stretch: 106%; font-size: 1.12rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-family: var(--f-mono); font-size: 1.3rem; color: var(--link); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 20px; color: var(--ink-2); max-width: 70ch; display: grid; gap: .8em; }

/* Kontakt & Formulare */
.kontakt { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 980px) { .kontakt { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.kontakt__text { display: grid; gap: 20px; }
.kontaktdaten { margin: 0; display: grid; border-top: 2px solid var(--ink); }
.kontaktdaten div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.kontaktdaten dt { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding-top: .25em; }
.kontaktdaten dd { margin: 0; font-size: 1.08rem; font-weight: 560; font-stretch: 104%; overflow-wrap: anywhere; }
.kontaktdaten dd a { color: var(--ink); }
.kontaktdaten dd small { display: block; font-size: .9rem; font-weight: 400; color: var(--ink-2); }
.formular h2, .formular h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.15; }
.formular { scroll-margin-top: 90px; display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); padding: clamp(18px, 3vw, 32px); box-shadow: var(--shadow); }
.felder { display: grid; gap: 16px; }
@media (min-width: 640px) { .felder--zwei { grid-template-columns: 1fr 1fr; } }
.feld { display: grid; gap: 6px; min-width: 0; }
.feld label, .feld legend { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.feld label .pflicht { color: var(--link); }
.feld input, .feld select, .feld textarea { font: 1rem/1.4 var(--f-text); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 0; padding: 12px 12px; width: 100%; }
.feld textarea { min-height: 140px; resize: vertical; }
.feld input:focus, .feld select:focus, .feld textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.feld input[type="file"] { padding: 10px; }
.feld .hilfe { font-size: .85rem; color: var(--ink-2); }
.formular .datenschutz { font-size: .88rem; color: var(--ink-2); }
.formular .meldung { padding: 12px 14px; border-left: 3px solid var(--signal); background: var(--bg); font-size: .95rem; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* Plankopf */
.plankopf-wrap { padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); }
.plankopf { border: 2px solid var(--ink); display: grid; font-family: var(--f-mono); font-size: .8rem; color: var(--ink); background: var(--surface); grid-template-columns: minmax(0, 1fr); }
.plankopf > div { padding: 12px 14px; border-bottom: 1px solid var(--ink); display: grid; gap: 2px; align-content: start; min-width: 0; }
.plankopf > div:last-child { border-bottom: 0; }
.plankopf .feld-n { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.plankopf .wert { overflow-wrap: anywhere; }
.plankopf a { color: var(--ink); }
.plankopf .firma-name { font-family: var(--f-display); font-weight: 760; font-stretch: 112%; font-size: 1rem; }
@media (min-width: 860px) {
  .plankopf { grid-template-columns: 2.2fr 1.5fr 1.4fr 1fr; }
  .plankopf > div { border-bottom: 0; border-right: 1px solid var(--ink); }
  .plankopf > div:nth-child(4) { border-right: 0; }
  .plankopf .zeile2 { grid-column: 1 / -1; border-top: 1px solid var(--ink); border-right: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
}
.plankopf .zeile2 nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* Stellenseiten */
.stelle-kopf { padding-top: clamp(36px, 6vw, 80px); padding-bottom: clamp(24px, 3vw, 40px); display: grid; gap: 18px; }
.stelle-kopf h1 { font-size: clamp(2.2rem, 5.6vw, 4.4rem); max-width: 18ch; }
.zurueck { font-family: var(--f-mono); font-size: .82rem; }
.stelle-kopf .aktionen { margin-top: 4px; }
@media (min-width: 980px) { .stelle-kopf .nur-mobil { display: none; } }
.eckdaten { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.eckdaten li { font-family: var(--f-mono); font-size: .8rem; padding: 6px 10px; border: 1px solid var(--line); background: var(--surface); }
.stelle { display: grid; gap: clamp(32px, 5vw, 64px); padding-bottom: var(--sektion); }
@media (min-width: 1000px) { .stelle { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; } .stelle__form { position: sticky; top: 92px; } }
.stelle__inhalt { display: grid; gap: 34px; }
.stelle__inhalt section { display: grid; gap: 12px; }
.stelle__inhalt h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.liste { list-style: none; padding: 0; margin: 0; display: grid; border-top: 1px solid var(--line); }
.liste li { padding: 10px 0 10px 28px; border-bottom: 1px solid var(--line); position: relative; color: var(--ink); }
.liste li::before { content: ""; position: absolute; left: 4px; top: 1.05em; width: 9px; height: 9px; border: 1.5px solid var(--brand); transform: rotate(45deg); }
.liste--min li::before { background: var(--brand); }
.hinweisbox { border: 2px solid var(--ink); padding: 18px 20px; display: grid; gap: 8px; background: var(--surface); }
.hinweisbox strong { font-family: var(--f-display); font-stretch: 108%; font-size: 1.1rem; }
.jobliste { display: grid; gap: 14px; }
@media (min-width: 760px) { .jobliste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.jobkarte { display: grid; gap: 8px; padding: 22px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.jobkarte:hover { border-color: var(--ink); }
.jobkarte h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.jobkarte p { color: var(--ink-2); font-size: .98rem; }
.jobkarte .mehr { font-family: var(--f-mono); font-size: .8rem; color: var(--link); }

/* Rechtstexte */
.rechtstext { padding-block: clamp(48px, 7vw, 96px); }
.rechtstext .wrap > * + * { margin-top: 1.1em; }
.rechtstext h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.rechtstext h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-stretch: 108%; margin-top: 2em; }
.rechtstext p, .rechtstext li { max-width: 70ch; color: var(--ink-2); }
.rechtstext address { font-style: normal; color: var(--ink); }
.hinweis { border: 2px solid var(--ink); background: var(--signal); color: #0F1D29; padding: 14px 16px; font-family: var(--f-mono); font-size: .85rem; max-width: 70ch; }

/* Leistungskarten: Bild, Überschrift, Text und „Das gehört dazu“ stehen in jeder Kartenreihe auf gleicher Höhe */
@supports (grid-template-rows: subgrid) {
  .leistung { grid-row: span 4; grid-template-rows: subgrid; row-gap: 12px; }
}
.leistung > p { text-align: justify; -webkit-hyphens: manual; hyphens: manual; }
/* „Das gehört dazu“: Liste erscheint in der Karte, die Karte behält ihre Größe */
.leistung { position: relative; }
.leistung summary { min-height: 24px; position: relative; z-index: 3; }
.leistung details .dazu { position: absolute; z-index: 2; top: 0; left: 0; right: 0; bottom: calc(24px + 18px + 6px); overflow-y: auto;
  background: var(--surface); padding: 22px 18px 12px; border-bottom: 1px solid var(--line); }
.leistung details .dazu ul { margin-top: 0; }
.leistung details[open] summary { color: var(--ink); }
/* Zeitachse im Hero: Vergangenheit als Maßkette, Zukunft als gestrichelte Verlängerung */
.masskette.mk--zeit { grid-template-columns: auto minmax(0, 5fr) auto minmax(0, 3fr); row-gap: 8px; max-width: 1080px; }
.mk__strecke--zukunft { margin-right: 0; }
.mk__strecke--zukunft::before { right: 10px; border-top: 0; height: 1px; bottom: 9px;
  background: repeating-linear-gradient(90deg, var(--brand) 0 7px, transparent 7px 12px); }
.mk__strecke--zukunft::after { content: ""; position: absolute; right: 0; bottom: 4px; border-left: 11px solid var(--brand); border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent; }
.mk__strecke--zukunft .mk__wert { color: var(--brand); }
.mk__tugend { margin: 0; text-align: center; font-size: .76rem; letter-spacing: .02em; line-height: 1.4; padding-inline: 10px; }
.mk__tugend--gestern { grid-column: 2; color: var(--ink-2); }
.mk__tugend--morgen { grid-column: 4; color: var(--brand); }
@media (max-width: 640px) {
  .mk__tugend { grid-column: 1 / -1; text-align: left; padding-inline: 0; }
  .mk__tugend--gestern { margin-top: 2px; }
  .mk__tugend--morgen::before { content: "→ "; }
}
/* Zeitachse: Pfeil links, Punkt bei heute */
.mk--zeit .mk__strecke:not(.mk__strecke--zukunft)::before { left: 2px; }
.mk--zeit .mk__strecke:not(.mk__strecke--zukunft) i { border-left: 0; }
.mk--zeit .mk__strecke:not(.mk__strecke--zukunft) i:first-of-type::after { left: 0; bottom: 4px; width: 0; border: 0; transform: none;
  border-right: 11px solid var(--ink); border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent; }
.mk--zeit .mk__strecke:not(.mk__strecke--zukunft) i:last-of-type::after { left: -5px; bottom: 4.5px; width: 10px; height: 10px; border: 0; transform: none;
  border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--bg); }
.mk__tugend { align-self: start; }
/* Zeitachse v3: Grundwerte als Gesamtmaß unter der ganzen Achse, Zukunftsthemen kommen oben drauf */
.mk--zeit > .mk__ende, .mk--zeit > .mk__strecke { grid-row: 2; }
.masskette.mk--zeit { grid-template-columns: auto minmax(0, 4fr) auto minmax(0, 3fr); }
.mk__plus { grid-row: 1; grid-column: 2 / 5; list-style: none; margin: 0 0 -2px; padding: 0 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-self: end; }
.mk__plus li { font-size: .74rem; line-height: 1.3; color: var(--brand); border: 1px solid var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--bg)); padding: 3px 8px; white-space: nowrap; }
.mk__plus li::before { content: "+ "; font-weight: 600; }
.mk__gesamt { grid-row: 3; grid-column: 2 / 5; position: relative; margin: 2px 0 0; padding: 12px 10px 0; text-align: center; color: var(--ink-2); font-size: .78rem; letter-spacing: .02em; line-height: 1.45; }
.mk__gesamt::before { content: ""; position: absolute; left: 10px; right: 10px; top: 0; height: 9px; border: 1px solid var(--ink-2); border-top: 0; opacity: .7; }
@media (max-width: 640px) {
  .mk__plus { grid-row: 4; grid-column: 1 / -1; justify-content: flex-start; padding: 0; margin: 6px 0 0; }
  .mk__gesamt { grid-row: 3; grid-column: 1 / -1; text-align: left; padding: 10px 0 0; }
  .mk__gesamt::before { left: 0; right: 0; }
}

/* Zeitachse v4: Jahreszahlen hochkant über Pfeil und Punkt, Startpfeil nach rechts, Wertepfeil mit offenen Spitzen */
.masskette.mk--zeit { grid-template-columns: 0 minmax(0, 5fr) 0 minmax(0, 4fr); }
.mk--zeit > .mk__ende { grid-row: 2; writing-mode: vertical-rl; transform: rotate(180deg); line-height: 1; padding: 0; margin-bottom: 21px; white-space: nowrap; }
.mk--zeit > .mk__ende:not(.mk__bis):not(.mk__jetzt) { grid-column: 1; justify-self: start; margin-left: 4px; }
.mk--zeit > .mk__bis, .mk--zeit > .mk__jetzt { grid-column: 3; justify-self: center; }
.mk--zeit .mk__strecke:not(.mk__strecke--zukunft) { margin-left: 5px; margin-right: 0; }
.mk--zeit .mk__strecke:not(.mk__strecke--zukunft)::before { left: 0; }
.mk--zeit .mk__strecke:not(.mk__strecke--zukunft) i:first-of-type::after { border-right: 0; border-left: 11px solid var(--ink); }
.mk--zeit .mk__strecke--zukunft { margin-left: 0; grid-column: 4; }
.mk--zeit .mk__strecke:not(.mk__strecke--zukunft) { grid-column: 2; }
.mk--zeit .mk__strecke--zukunft::before { left: 9px; }
.mk--zeit .mk__plus { grid-row: 2; grid-column: 4; align-self: start; justify-content: flex-start; padding: 0 0 0 10px; margin: 0; }
.mk--zeit .mk__gesamt { padding-top: 18px; }
.mk--zeit .mk__gesamt::before { left: 5px; right: 0; top: 0; height: 11px; border: 0; opacity: .85; background: var(--ink-2); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 11'%3E%3Cpath d='M1.6 1 L10.8 5.5 L1.6 10' fill='none' stroke='%23000' stroke-width='1.2' stroke-linejoin='miter'/%3E%3C/svg%3E") left center / 12px 11px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 11'%3E%3Cpath d='M1.6 1 L10.8 5.5 L1.6 10' fill='none' stroke='%23000' stroke-width='1.2' stroke-linejoin='miter'/%3E%3C/svg%3E") right center / 12px 11px no-repeat, linear-gradient(90deg, transparent 10px, #000 10px, #000 calc(100% - 1.5px), transparent calc(100% - 1.5px)) center / 100% 1px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 11'%3E%3Cpath d='M1.6 1 L10.8 5.5 L1.6 10' fill='none' stroke='%23000' stroke-width='1.2' stroke-linejoin='miter'/%3E%3C/svg%3E") left center / 12px 11px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 11'%3E%3Cpath d='M1.6 1 L10.8 5.5 L1.6 10' fill='none' stroke='%23000' stroke-width='1.2' stroke-linejoin='miter'/%3E%3C/svg%3E") right center / 12px 11px no-repeat, linear-gradient(90deg, transparent 10px, #000 10px, #000 calc(100% - 1.5px), transparent calc(100% - 1.5px)) center / 100% 1px no-repeat; }
@media (max-width: 640px) {
  .mk--zeit .mk__plus { grid-row: 4; grid-column: 1 / -1; padding: 0; margin: 8px 0 0; }
  .mk--zeit .mk__gesamt { text-align: left; padding: 16px 0 0; }
}
/* Karte: 90-Minuten-Fahrzeitfläche ab Köln, endet an der Staatsgrenze */
.k-iso { fill: color-mix(in srgb, var(--brand) 14%, transparent); stroke: var(--link); stroke-width: 1.8; stroke-dasharray: 7 5; stroke-linejoin: round; }
.k-staat { fill: none; stroke: var(--ink-2); stroke-width: 2.4; stroke-linejoin: round; }
.k-ausland { font: italic 500 15px var(--f-text); letter-spacing: .14em; fill: var(--ink-2); opacity: .75; }
.k-isotext { font: 500 16px var(--f-mono); fill: var(--link); }
.karte .k-label, .karte .k-region, .karte .k-isotext, .karte .k-ausland { paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
/* Prinzipien: Blocksatz, vier Zeilen (vier Spalten erst ab 1280 px) */
.prinzip p { text-align: justify; -webkit-hyphens: manual; hyphens: manual; }
@media (min-width: 1100px) and (max-width: 1279.98px) { .prinzipien { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Karte: Einsatzgebiet als Verlauf nach Fahrzeit, ohne feste Grenze */
.k-zone path { fill: var(--brand); }
.k-zone { opacity: .34; }
.k-verlauf-a { stop-color: var(--brand); stop-opacity: .34; }
.k-verlauf-b { stop-color: var(--brand); stop-opacity: 0; }
/* Karte: ein Punkt je Projekt */
.k-projekte circle, .k-projekt-leg { fill: var(--link); fill-opacity: .85; stroke: var(--surface); stroke-width: .9; }
/* Neue Bauweisen: Blocksatz, Bilderspalte schließt bündig mit Text und Fakten ab */
.kreis__text p.text { text-align: justify; -webkit-hyphens: manual; hyphens: manual; }
.kreis__bilder { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "a a" "b d" "c d"; }
.kreis__bilder .kb-a { grid-area: a; } .kreis__bilder .kb-b { grid-area: b; } .kreis__bilder .kb-c { grid-area: c; } .kreis__bilder .kb-d { grid-area: d; contain: size; }
.kreis__bilder .kb-d img { height: 100%; aspect-ratio: auto; object-position: 55% 62%; }
.kreis__bilder .kb-b img { object-position: 50% 60%; }
.kreis__bilder .kb-c img { object-position: 57% 50%; }
@media (min-width: 980px) {
  .kreis { align-items: stretch; }
  .kreis__bilder { contain: size; grid-template-rows: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); }
  .kreis__bilder figure { min-height: 0; }
  .kreis__bilder img { height: 100%; aspect-ratio: auto; }
}
/* Neue Bauweisen: Betonage unten so groß wie das obere Bild, Stützenfuß kleiner */
.kreis__bilder { grid-template-areas: "a a" "b d" "c c"; }
.kreis__bilder .kb-c img { object-position: 50% 72%; }
.kreis__bilder .kb-d img { object-position: 50% 55%; }
@media (min-width: 980px) { .kreis__bilder { grid-template-rows: minmax(0, 1.15fr) minmax(0, .8fr) minmax(0, 1.15fr); } }
/* Kernkompetenz: Bilder schließen unten mit dem Strich unter der letzten Haken-Zeile ab */
@media (min-width: 980px) {
  .kern { align-items: stretch; }
  .kern__bilder { contain: size; grid-template-rows: minmax(0, 1.5fr) minmax(0, 1fr); }
  .kern__bilder figure { min-height: 0; }
  .kern__bilder img { aspect-ratio: auto; }
}
/* Referenzen: Beschreibungen im Blocksatz, fünf Zeilen (drei Spalten erst ab 1280 px) */
.ref > p:not(.ref__meta) { text-align: justify; -webkit-hyphens: manual; hyphens: manual; }
@media (min-width: 1100px) and (max-width: 1279.98px) { .refs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Auf einen Blick: zu, geöffnet über den Eckdaten-Knopf in der Vertrauenszeile (Inhalt bleibt im HTML für Suchmaschinen und KI) */
.vertrauen li.vertrauen__eckdaten::before { content: none; }
.eckdaten-knopf { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 10px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font: inherit; line-height: 1.3; }
.eckdaten-knopf:hover { border-color: var(--ink); }
.eckdaten-knopf:focus-visible, .eckdaten-zu:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.eckdaten-knopf i, .eckdaten-zu i { position: relative; width: 16px; height: 16px; flex: none; }
.eckdaten-knopf i::before, .eckdaten-knopf i::after, .eckdaten-zu i::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.eckdaten-knopf i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .2s ease; }
.eckdaten-knopf.ist-offen i::after { transform: translate(-50%, -50%) rotate(0deg); }
.eckdaten-knopf__aus { display: none; } .eckdaten-knopf.ist-offen .eckdaten-knopf__aus { display: inline; } .eckdaten-knopf.ist-offen .eckdaten-knopf__an { display: none; }
#profil:has(.profil-auf:not([open])) { padding-block: 0; }
.profil-auf__kopf { list-style: none; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.profil-auf__kopf::-webkit-details-marker { display: none; }
.profil-auf { border-top: 2px solid var(--ink); }
.profil-auf__titel { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; }
.profil-auf__titel h2 { margin: 0; }
.eckdaten-zu { display: inline-flex; align-items: center; gap: 10px; background: none; border: 1px solid var(--line); padding: 6px 8px 6px 12px; font-family: var(--f-mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); cursor: pointer; }
.eckdaten-zu:hover { color: var(--ink); border-color: var(--ink); }
.profil-auf .profil__liste { border-top: 1px solid var(--line); }
@media (min-width: 980px) { .profil-auf .profil__liste { margin-left: calc(33.333% + 20px); } }
.profil-auf:not([open]) { border-top: 0; }
/* Hero: Eckdaten-Knopf unter dem Einleitungstext (Vertrauenszeile entfällt, steht in den Eckdaten) */
.hero__lead { display: grid; gap: 16px; justify-items: start; }
.hero__lead .eckdaten-knopf { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .02em; }
.hero { padding-bottom: clamp(40px, 5.5vw, 76px); }
/* Kernkompetenz: vier gleich große Bilder (OP-Bild unten rechts) */
.kern__bilder--vier figure:first-child { grid-column: auto; }
.kern__bilder--vier img { aspect-ratio: 4 / 3; }
.kern__bilder--vier figure:first-child img { object-position: 52% 50%; }
@media (min-width: 980px) {
  .kern__bilder--vier { grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
  .kern__bilder--vier img { aspect-ratio: auto; }
}
/* Einsatzgebiet: Blocksatz */
.region__text p.text, .region__text .orte { text-align: justify; -webkit-hyphens: manual; hyphens: manual; }
/* Einsatzgebiet: Karte schließt bündig mit dem Text ab (zwei Spalten erst ab 1200 px) */
@media (min-width: 980px) and (max-width: 1199.98px) { .region { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 1200px) {
  .region { align-items: stretch; }
  .karte-rahmen { contain: size; display: flex; flex-direction: column; min-height: 0; }
  .karte-rahmen .karte { flex: 1 1 auto; min-height: 0; height: 100%; }
  .karte-rahmen .legende { flex: none; }
}
/* Kernkompetenz: Strich über der Liste fluchtet mit der Oberkante der unteren Bildreihe */
@media (min-width: 980px) {
  .kern { grid-template-columns: minmax(0, 1fr) clamp(32px, 5vw, 64px) minmax(0, .5fr) 10px minmax(0, .5fr); grid-template-rows: auto auto auto auto; column-gap: 0; row-gap: 20px; align-items: stretch; }
  .kern__text, .kern__bilder.kern__bilder--vier { display: contents; }
  .kern__text > * { grid-column: 1; }
  .kern__text > .kicker { grid-row: 1; } .kern__text > h2 { grid-row: 2; } .kern__text > .text { grid-row: 3; } .kern__text > .haken { grid-row: 4; margin-top: 0; }
  .kern__bilder--vier figure { contain: size; min-height: 0; }
  .kern__bilder--vier figure:nth-child(1) { grid-column: 3; grid-row: 1 / 4; margin-bottom: -10px; }
  .kern__bilder--vier figure:nth-child(2) { grid-column: 5; grid-row: 1 / 4; margin-bottom: -10px; }
  .kern__bilder--vier figure:nth-child(3) { grid-column: 3; grid-row: 4; }
  .kern__bilder--vier figure:nth-child(4) { grid-column: 5; grid-row: 4; }
  .kern__bilder--vier img { height: 100%; aspect-ratio: auto; }
}

/* Eckdaten-Knopf inline am Ende des Hero-Leads */
.hero__lead .lead { max-width: 54ch; }
.hero__lead .lead .eckdaten-knopf { margin-left: 6px; white-space: nowrap; vertical-align: .1em; }

/* Hero: hervorgehobenes Wort erscheint beim Laden von links nach rechts.
   Die Vorderkante ist schräg im Winkel des Logos (Unterstriche und z: 0,626 waagerecht je 1 senkrecht, ca. 32° gegen die Senkrechte).
   Höhe der Kante 1,45em (.95em Zeile + 2 × .1em Innenabstand + 2 × .15em) -> Versatz oben .91em. */
@keyframes weiter-rein {
  from { clip-path: polygon(-1.2em -.15em, -.02em -.15em, -.93em calc(100% + .15em), -1.2em calc(100% + .15em)); }
  to { clip-path: polygon(-1.2em -.15em, calc(100% + 1.01em) -.15em, calc(100% + .1em) calc(100% + .15em), -1.2em calc(100% + .15em)); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1 em { display: inline-block; animation: weiter-rein 1.1s cubic-bezier(.7, 0, .25, 1) .35s backwards; }
}

/* Sehr schmale Handys: Menü-Knopf nur mit Symbol, damit die Kopfzeile nicht breiter als der Bildschirm wird */
@media (max-width: 374px) {
  .js .nav-toggle { font-size: 0; gap: 0; width: 38px; height: 38px; padding: 0; justify-content: center; }
}

/* Eckdaten aufgeklappt: kompakter, Titel links neben der Liste */
#profil:has(.profil-auf[open]) { padding-top: 0; padding-bottom: clamp(56px, 7vw, 96px); }
.profil-auf__titel { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 14px; padding: 18px 0 16px; }
.eckdaten-zu { white-space: nowrap; }
@media (min-width: 980px) {
  .profil-auf__titel { float: left; width: calc(33.333% - 20px); padding: 16px 0 0; gap: 18px; }
  .profil-auf .profil__liste { border-top: 0; }
}
.hero__lead .lead .zus { white-space: nowrap; }

/* Eckdaten: Foto in der linken Spalte, bündig mit dem Ende der Liste */
.profil-auf__bild { margin: 28px 0 0; overflow: hidden; }
.profil-auf__bild img { display: block; width: 100%; aspect-ratio: 4 / 5; max-height: 72vh; object-fit: cover; object-position: 45% 62%; }
@media (min-width: 980px) {
  .profil-auf__inhalt { display: grid; grid-template-columns: calc(33.333% - 20px) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 40px; }
  .profil-auf__titel { float: none; width: auto; grid-column: 1; grid-row: 1; }
  .profil-auf .profil__liste { margin-left: 0; grid-column: 2; grid-row: 1 / 3; }
  .profil-auf__bild { grid-column: 1; grid-row: 2; margin: 28px 0 0; contain: size; min-height: 0; }
  .profil-auf__bild img { height: 100%; aspect-ratio: auto; max-height: none; object-position: 42% 50%; }
}
/* Dom-Foto: oben möglichst wenig, unten mehr abschneiden */
.profil-auf__bild img { aspect-ratio: 3 / 4; max-height: none; object-position: 45% 22%; }
@media (max-width: 979.98px) { .profil-auf__bild { max-width: 560px; } }
@media (min-width: 980px) {
  .profil-auf__bild img { height: 109%; aspect-ratio: auto; object-position: 42% 0; }
}
.nw { white-space: nowrap; }

/* FAQ: Fragen erst nach Klick auf „FAQ“ sichtbar */
.faq-auf { max-width: 980px; }
.faq-auf__kopf { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); cursor: pointer; }
.faq-auf__kopf::-webkit-details-marker { display: none; }
.faq-auf__kopf h2 { margin: 0; }
.faq-auf__kopf:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
.faq-auf__knopf { display: inline-flex; align-items: center; gap: 10px; flex: none; white-space: nowrap; border: 1px solid var(--line); padding: 6px 8px 6px 12px; font-family: var(--f-mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.faq-auf__kopf:hover .faq-auf__knopf { color: var(--ink); border-color: var(--ink); }
.faq-auf__knopf i { position: relative; width: 16px; height: 16px; flex: none; }
.faq-auf__knopf i::before, .faq-auf__knopf i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq-auf__knopf i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-auf[open] .faq-auf__knopf i::after { transform: translate(-50%, -50%); }
.faq-auf__aus, .faq-auf[open] .faq-auf__an { display: none; }
.faq-auf[open] .faq-auf__aus { display: inline; }
.faq-auf .faq { border-top: 0; }
/* FAQ steht unter dem Kontakt: volle Breite wie Formular */
.faq-auf { max-width: none; }
.faq-auf .faq { max-width: none; }

/* Hero mit Foto (Domturm mit Kran) im Hintergrund, dunkle Abdunklung, helle Schrift */
.hero {
  position: relative; isolation: isolate; overflow: hidden; background: var(--band);
  --bg: #0B1620; --ink: #F1F5F8; --ink-2: #C3D0DA; --line: rgba(231, 238, 243, .4); --brand: #5FCBF2; --link: #8ADAF6;
  color: var(--ink);
  padding-top: clamp(48px, 7.5vw, 112px); padding-bottom: clamp(48px, 6.5vw, 96px);
}
.hero__bild { position: absolute; inset: 0; z-index: -1; }
.hero__bild img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 62% 72%; }
.hero__bild::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11, 22, 32, .88) 0%, rgba(11, 22, 32, .78) 38%, rgba(11, 22, 32, .45) 68%, rgba(11, 22, 32, .3) 100%),
              linear-gradient(0deg, rgba(11, 22, 32, .45) 0%, rgba(11, 22, 32, 0) 35%); }
@media (max-width: 859.98px) {
  .hero__bild img { object-position: 52% 60%; }
  .hero__bild::after { background: rgba(11, 22, 32, .74); }
}
.hero .kicker { color: var(--ink-2); }
.hero .eckdaten-knopf { color: var(--ink); border-color: var(--line); }
.hero .eckdaten-knopf:hover { border-color: var(--ink); }
/* Eckdaten: nach dem dunklen Hero wieder Abstand nach oben */
#profil:has(.profil-auf[open]) { padding-top: clamp(40px, 5vw, 72px); }
@media (min-width: 1500px) { .hero__bild img { object-position: 62% calc(130px - 22.66vw); } }

/* Leichter Zoom beim Überfahren wie bei den Referenzen, jetzt für alle Fotos */
.karriere figure { overflow: hidden; }
.leistung img, .kern__bilder img, .kreis__bilder img, .karriere figure img, .profil-auf__bild img { transition: transform .6s ease; }
@media (hover: hover) {
  .leistung:hover img, .kern__bilder figure:hover img, .kreis__bilder figure:hover img, .karriere figure:hover img, .profil-auf__bild:hover img { transform: scale(1.03); }
}
@media (prefers-reduced-motion: reduce) {
  .leistung img, .kern__bilder img, .kreis__bilder img, .karriere figure img, .profil-auf__bild img { transition: none; transform: none !important; }
}
/* Hero-Foto: ebenfalls leichter Zoom beim Überfahren */
.hero__bild { overflow: hidden; }
.hero__bild img { transition: transform .9s ease; }
@media (hover: hover) { .hero:hover .hero__bild img { transform: scale(1.03); } }
@media (prefers-reduced-motion: reduce) { .hero__bild img { transition: none; transform: none !important; } }

/* Karriere: zwei Fotos, oben und unten bündig mit dem Text */
.karriere__bilder { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.karriere__bilder img { aspect-ratio: 4 / 3; }
.karriere__bilder figure:last-child img { object-position: 55% 45%; }
@media (min-width: 980px) {
  .karriere { align-items: stretch; }
  .karriere__bilder { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); contain: size; min-height: 0; }
  .karriere__bilder figure { min-height: 0; }
  .karriere__bilder img { height: 100%; aspect-ratio: auto; }
}

/* Karriere: Block „So ist es bei uns“ */
.liste--so li strong { font-family: var(--f-display); font-weight: 680; }
.so-bei-uns--seite { display: grid; gap: 14px; margin-top: clamp(40px, 5vw, 64px); max-width: 860px; }
.so-bei-uns--seite h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* Sprachwahl als Dropdown */
.sprachwahl { position: relative; }
.sprachwahl > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-family: var(--f-mono); font-size: .8rem; font-weight: 500; cursor: pointer; user-select: none; }
.sprachwahl > summary::-webkit-details-marker { display: none; }
.sprachwahl > summary:hover { border-color: var(--ink); }
.sprachwahl > summary:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.sprachwahl > summary i { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.sprachwahl[open] > summary i { transform: translateY(1px) rotate(-135deg); }
.sprachwahl .sprachen { position: absolute; right: 0; top: calc(100% + 6px); z-index: 80; display: grid; gap: 0; min-width: 230px; padding: 6px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .82rem; }
.sprachwahl .sprachen a, .sprachwahl .sprachen a:not([aria-current="true"]) { display: flex; align-items: baseline; gap: 12px; padding: 9px 10px; border: 0; color: var(--ink); background: none; }
.sprachwahl .sprachen a:hover { background: var(--muted); }
.sprachwahl .sprachen a[aria-current="true"] { background: var(--muted); font-weight: 500; }
.sprachwahl .sw-code { width: 2.2em; color: var(--ink-2); }
.sprachwahl .sw-name { font-family: var(--f-text); font-size: .95rem; }
.sprachwahl .sprachen { min-width: max-content; }
.sprachwahl .sw-name { white-space: nowrap; }
@media (max-width: 520px) {
  .sprachwahl .sprachen { position: fixed; left: var(--gutter); right: var(--gutter); top: 74px; min-width: 0; }
}

/* Hero: helles Design mit heller Abtönung und dunkler Schrift, dunkles Design wie bisher */
.hero { --bg: #F6F8F9; --ink: #0F1D29; --ink-2: #4A5764; --line: #C9D2D9; --brand: #00A7DE; --link: #006E99; background: var(--bg); }
.hero__bild::after {
  background: linear-gradient(90deg, rgba(246, 248, 249, .96) 0%, rgba(246, 248, 249, .9) 40%, rgba(246, 248, 249, .62) 68%, rgba(246, 248, 249, .3) 100%),
              linear-gradient(0deg, rgba(246, 248, 249, .5) 0%, rgba(246, 248, 249, 0) 30%);
}
.hero h1 em { color: #0094C6; }
@media (max-width: 859.98px) { .hero__bild::after { background: rgba(246, 248, 249, .86); } }
:root[data-theme="dark"] .hero { --bg: #0B1620; --ink: #F1F5F8; --ink-2: #C3D0DA; --line: rgba(231, 238, 243, .4); --brand: #5FCBF2; --link: #8ADAF6; background: var(--band); }
:root[data-theme="dark"] .hero h1 em { color: var(--brand); }
:root[data-theme="dark"] .hero__bild::after {
  background: linear-gradient(90deg, rgba(11, 22, 32, .88) 0%, rgba(11, 22, 32, .78) 38%, rgba(11, 22, 32, .45) 68%, rgba(11, 22, 32, .3) 100%),
              linear-gradient(0deg, rgba(11, 22, 32, .45) 0%, rgba(11, 22, 32, 0) 35%);
}
@media (max-width: 859.98px) { :root[data-theme="dark"] .hero__bild::after { background: rgba(11, 22, 32, .74); } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero { --bg: #0B1620; --ink: #F1F5F8; --ink-2: #C3D0DA; --line: rgba(231, 238, 243, .4); --brand: #5FCBF2; --link: #8ADAF6; background: var(--band); }
  :root:not([data-theme="light"]) .hero h1 em { color: var(--brand); }
  :root:not([data-theme="light"]) .hero__bild::after {
    background: linear-gradient(90deg, rgba(11, 22, 32, .88) 0%, rgba(11, 22, 32, .78) 38%, rgba(11, 22, 32, .45) 68%, rgba(11, 22, 32, .3) 100%),
                linear-gradient(0deg, rgba(11, 22, 32, .45) 0%, rgba(11, 22, 32, 0) 35%);
  }
}
@media (prefers-color-scheme: dark) and (max-width: 859.98px) { :root:not([data-theme="light"]) .hero__bild::after { background: rgba(11, 22, 32, .74); } }
/* Hero hell: Kran-Ausleger sichtbar lassen, kleine Schrift mit hellem Lichthof */
.hero__bild img { filter: brightness(1.12) saturate(1.2); }
.hero__bild::after, .hero .hero__bild::after {
  background: radial-gradient(ellipse 55% 42% at 38% 80%, rgba(246, 248, 249, .8) 0%, rgba(246, 248, 249, 0) 100%),
              linear-gradient(90deg, rgba(246, 248, 249, .72) 0%, rgba(246, 248, 249, .62) 42%, rgba(246, 248, 249, .4) 70%, rgba(246, 248, 249, .15) 100%),
              linear-gradient(0deg, rgba(246, 248, 249, .45) 0%, rgba(246, 248, 249, 0) 30%);
}
@media (max-width: 859.98px) {
  .hero .hero__bild::after { background: linear-gradient(90deg, rgba(246, 248, 249, .74) 0%, rgba(246, 248, 249, .58) 100%); }
}
.hero .kicker, .hero .mk__ende, .hero .mk__gesamt, .hero .lead { text-shadow: 0 0 2px rgba(246, 248, 249, .9), 0 0 10px rgba(246, 248, 249, .9); }
:root[data-theme="dark"] .hero__bild img { filter: none; }
:root[data-theme="dark"] .hero .kicker, :root[data-theme="dark"] .hero .mk__ende, :root[data-theme="dark"] .hero .mk__gesamt, :root[data-theme="dark"] .hero .lead { text-shadow: none; }
:root[data-theme="dark"] .hero .hero__bild::after {
  background: linear-gradient(90deg, rgba(11, 22, 32, .88) 0%, rgba(11, 22, 32, .78) 38%, rgba(11, 22, 32, .45) 68%, rgba(11, 22, 32, .3) 100%),
              linear-gradient(0deg, rgba(11, 22, 32, .45) 0%, rgba(11, 22, 32, 0) 35%);
}
@media (max-width: 859.98px) { :root[data-theme="dark"] .hero .hero__bild::after { background: rgba(11, 22, 32, .74); } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero__bild img { filter: none; }
  :root:not([data-theme="light"]) .hero .kicker, :root:not([data-theme="light"]) .hero .mk__ende, :root:not([data-theme="light"]) .hero .mk__gesamt, :root:not([data-theme="light"]) .hero .lead { text-shadow: none; }
  :root:not([data-theme="light"]) .hero .hero__bild::after {
    background: linear-gradient(90deg, rgba(11, 22, 32, .88) 0%, rgba(11, 22, 32, .78) 38%, rgba(11, 22, 32, .45) 68%, rgba(11, 22, 32, .3) 100%),
                linear-gradient(0deg, rgba(11, 22, 32, .45) 0%, rgba(11, 22, 32, 0) 35%);
  }
}
@media (prefers-color-scheme: dark) and (max-width: 859.98px) { :root:not([data-theme="light"]) .hero .hero__bild::after { background: rgba(11, 22, 32, .74); } }

/* Bänder (Kernkompetenz, Neue Bauweisen): im hellen Design hell, im dunklen Design wie bisher */
:root { --band: #E3EAEF; --band-ink: #0F1D29; --band-ink-2: #4A5764; --band-accent: #00698F; --band-line: rgba(15, 29, 41, .16); --band-head: #0F1D29; }
:root[data-theme="dark"] { --band: #060C11; --band-ink: #D7E3EC; --band-ink-2: #9DB0C0; --band-accent: #5FCBF2; --band-line: rgba(215, 227, 236, .22); --band-head: #FFFFFF; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --band: #060C11; --band-ink: #D7E3EC; --band-ink-2: #9DB0C0; --band-accent: #5FCBF2; --band-line: rgba(215, 227, 236, .22); --band-head: #FFFFFF; }
}
.band h2, .band h3 { color: var(--band-head); }
.haken li { color: var(--band-head); }
.blauband .btn--hell:hover { background: #0B1620; border-color: #0B1620; color: #fff; }
/* Leistungskarten: Inhalt bleibt in der Karte, lange Überschriften trennen statt überzustehen */
.leistung { grid-template-columns: minmax(0, 1fr); }
.leistung h3 { overflow-wrap: break-word; -webkit-hyphens: manual; hyphens: manual; }
/* Stellenliste im Karriere-Band: auf schmalen Bildschirmen steht die Arbeitszeit unter dem Titel */
@media (max-width: 640px) { .stellen a { flex-direction: column; gap: 2px; } .stellen span { white-space: normal; } }
/* Fotos: Dateien sind auf gleiche Helligkeit und gleichen Kontrast abgestimmt.
   Hell: leicht frischer, dunkel: etwas zurückgenommen, damit nichts blendet. */
:root { --foto-filter: brightness(1.04) saturate(1.04); }
:root[data-theme="dark"] { --foto-filter: brightness(.86) contrast(1.05) saturate(.92); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --foto-filter: brightness(.86) contrast(1.05) saturate(.92); } }
.leistung img, .kern__bilder img, .kreis__bilder img, .karriere figure img, .profil-auf__bild img, .ref img { filter: var(--foto-filter); }
/* Stellenseiten mit Foto im Kopf (wie der Hero der Startseite): hell mit heller Abtönung, dunkel mit dunkler */
.stelle-hero { position: relative; isolation: isolate; overflow: hidden;
  --bg: #F6F8F9; --ink: #0F1D29; --ink-2: #4A5764; --line: #C9D2D9; --surface: rgba(255, 255, 255, .78); --link: #006E99;
  background: var(--bg); color: var(--ink); }
.stelle-hero .stelle-kopf { padding-bottom: clamp(36px, 5vw, 64px); }
.stelle-hero .zurueck { color: var(--link); }
.stelle-hero .kicker { color: var(--ink-2); }
.stelle-hero__bild { position: absolute; inset: 0 0 0 38%; z-index: -1; overflow: hidden; }
.stelle-hero__bild img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 40% 45%;
  filter: brightness(1.04) saturate(1.05); transition: transform .9s ease; }
.stelle-hero__bild::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(246, 248, 249, 1) 0%, rgba(246, 248, 249, .82) 22%, rgba(246, 248, 249, .35) 52%, rgba(246, 248, 249, .08) 100%),
              linear-gradient(0deg, rgba(246, 248, 249, .5) 0%, rgba(246, 248, 249, 0) 28%); }
.stelle-hero .lead, .stelle-hero .kicker, .stelle-hero .zurueck { text-shadow: 0 0 2px rgba(246, 248, 249, .9), 0 0 10px rgba(246, 248, 249, .9); }
@media (hover: hover) { .stelle-hero:hover .stelle-hero__bild img { transform: scale(1.03); } }
@media (prefers-reduced-motion: reduce) { .stelle-hero__bild img { transition: none; transform: none !important; } }
@media (max-width: 859.98px) {
  .stelle-hero__bild { inset: 0; }
  .stelle-hero__bild img { object-position: 35% 50%; }
  .stelle-hero__bild::after { background: rgba(246, 248, 249, .84); }
}
.stelle-hero + .wrap .stelle { margin-top: clamp(28px, 4vw, 48px); }
:root[data-theme="dark"] .stelle-hero { --bg: #0B1620; --ink: #F1F5F8; --ink-2: #C3D0DA; --line: rgba(231, 238, 243, .4); --surface: rgba(11, 22, 32, .6); --link: #8ADAF6; background: var(--band); }
:root[data-theme="dark"] .stelle-hero__bild img { filter: brightness(.9); }
:root[data-theme="dark"] .stelle-hero__bild::after {
  background: linear-gradient(90deg, rgba(6, 12, 17, 1) 0%, rgba(11, 22, 32, .85) 22%, rgba(11, 22, 32, .5) 52%, rgba(11, 22, 32, .25) 100%),
              linear-gradient(0deg, rgba(11, 22, 32, .5) 0%, rgba(11, 22, 32, 0) 30%); }
:root[data-theme="dark"] .stelle-hero .lead, :root[data-theme="dark"] .stelle-hero .kicker, :root[data-theme="dark"] .stelle-hero .zurueck { text-shadow: none; }
@media (max-width: 859.98px) { :root[data-theme="dark"] .stelle-hero__bild::after { background: rgba(11, 22, 32, .78); } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .stelle-hero { --bg: #0B1620; --ink: #F1F5F8; --ink-2: #C3D0DA; --line: rgba(231, 238, 243, .4); --surface: rgba(11, 22, 32, .6); --link: #8ADAF6; background: var(--band); }
  :root:not([data-theme="light"]) .stelle-hero__bild img { filter: brightness(.9); }
  :root:not([data-theme="light"]) .stelle-hero__bild::after {
    background: linear-gradient(90deg, rgba(6, 12, 17, 1) 0%, rgba(11, 22, 32, .85) 22%, rgba(11, 22, 32, .5) 52%, rgba(11, 22, 32, .25) 100%),
                linear-gradient(0deg, rgba(11, 22, 32, .5) 0%, rgba(11, 22, 32, 0) 30%); }
  :root:not([data-theme="light"]) .stelle-hero .lead, :root:not([data-theme="light"]) .stelle-hero .kicker, :root:not([data-theme="light"]) .stelle-hero .zurueck { text-shadow: none; }
}
@media (prefers-color-scheme: dark) and (max-width: 859.98px) { :root:not([data-theme="light"]) .stelle-hero__bild::after { background: rgba(11, 22, 32, .78); } }
/* Foto-Kopf: Bildausschnitt je Seite über --pos (Desktop) und --pos-m (Handy) */
.stelle-hero__bild img { object-position: var(--pos, 40% 45%); }
@media (max-width: 859.98px) { .stelle-hero__bild img { object-position: var(--pos-m, 35% 50%); } }
/* Karriere-Übersicht: Kopf mit Teamfoto */
.stelle-hero--uebersicht .sektion__kopf { margin-bottom: 0; padding-top: clamp(36px, 6vw, 80px); padding-bottom: clamp(36px, 5vw, 64px); max-width: 640px; }
.stelle-hero--uebersicht + .sektion { padding-top: clamp(36px, 5vw, 64px); }
.stelle-hero .hinweisbox { border-color: var(--ink); }
/* Foto-Kopf mit Personen über die ganze Bildbreite: Abtönung nur am linken Rand */
.stelle-hero--weit .stelle-hero__bild::after {
  background: linear-gradient(90deg, rgba(246, 248, 249, 1) 0%, rgba(246, 248, 249, .55) 12%, rgba(246, 248, 249, .12) 32%, rgba(246, 248, 249, 0) 100%),
              linear-gradient(0deg, rgba(246, 248, 249, .45) 0%, rgba(246, 248, 249, 0) 26%); }
:root[data-theme="dark"] .stelle-hero--weit .stelle-hero__bild::after {
  background: linear-gradient(90deg, rgba(6, 12, 17, 1) 0%, rgba(11, 22, 32, .6) 12%, rgba(11, 22, 32, .25) 32%, rgba(11, 22, 32, .15) 100%),
              linear-gradient(0deg, rgba(11, 22, 32, .5) 0%, rgba(11, 22, 32, 0) 30%); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .stelle-hero--weit .stelle-hero__bild::after {
    background: linear-gradient(90deg, rgba(6, 12, 17, 1) 0%, rgba(11, 22, 32, .6) 12%, rgba(11, 22, 32, .25) 32%, rgba(11, 22, 32, .15) 100%),
                linear-gradient(0deg, rgba(11, 22, 32, .5) 0%, rgba(11, 22, 32, 0) 30%); }
}
@media (max-width: 859.98px) {
  .stelle-hero--weit .stelle-hero__bild::after { background: rgba(246, 248, 249, .84); }
  :root[data-theme="dark"] .stelle-hero--weit .stelle-hero__bild::after { background: rgba(11, 22, 32, .78); }
}
@media (prefers-color-scheme: dark) and (max-width: 859.98px) { :root:not([data-theme="light"]) .stelle-hero--weit .stelle-hero__bild::after { background: rgba(11, 22, 32, .78); } }
/* Bildbeschreibung mit Herkunft: erscheint beim Überfahren mit der Maus (Touch: Antippen) */
figure:has(> .bu) { position: relative; }
.bu { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; margin: 0; padding: 36px 14px 12px; display: grid; gap: 4px;
  color: #fff; font-size: .86rem; line-height: 1.4; text-align: left; text-shadow: none;
  background: linear-gradient(0deg, rgba(8, 16, 24, .9) 0%, rgba(8, 16, 24, .74) 55%, rgba(8, 16, 24, 0) 100%);
  opacity: 0; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease; pointer-events: none; }
.bu__herkunft { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .02em; color: rgba(255, 255, 255, .8); }
@media (hover: hover) { figure:hover > .bu { opacity: 1; transform: none; } }
figure.bu-an > .bu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .bu { transition: none; transform: none; } }

/* Referenzen: Meta, Überschrift und Absätze stehen in jeder Reihe auf gleicher Höhe */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 700px) {
    .ref { grid-row: span 5; grid-template-rows: subgrid; row-gap: 10px; align-content: stretch; }
    .ref > h3 { align-self: start; }
  }
}

/* Fußzeile: nur die untere Zeile (Impressum, Datenschutz, Telefon, E-Mail, ©) */
.plankopf > div:not(.zeile2) { display: none; }
.plankopf { grid-template-columns: minmax(0, 1fr); }
.plankopf .zeile2 { grid-column: 1 / -1; border: 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; }

/* Hero: Überschrift erscheint beim Laden Wort für Wort, danach „weiterläuft.“ wie bisher */
@keyframes wort-rein { from { opacity: 0; transform: translateY(.3em); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .wort { display: inline-block; animation: wort-rein .55s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(.15s + var(--i, 0) * .16s); }
  .hero h1 .wort:nth-of-type(2) { --i: 1; }
  .hero h1 .wort:nth-of-type(3) { --i: 2; }
  .hero h1 .wort:nth-of-type(4) { --i: 3; }
  .hero h1 .wort:nth-of-type(5) { --i: 4; }
  .hero h1 .wort:nth-of-type(6) { --i: 5; }
  .hero h1 em { animation-delay: 1s, 1s; }
}

/* Impressum: Kontaktangaben als Liste, Nummern und E-Mail bündig untereinander */
.rechtstext .kontaktliste { display: grid; grid-template-columns: max-content 1fr; gap: 0 1.2em; margin: 0; margin-top: 1.1em; color: var(--ink-2); }
.rechtstext .kontaktliste dt, .rechtstext .kontaktliste dd { margin: 0; }

/* Hinweis auf englischen Rechtsseiten: nur die deutsche Fassung ist verbindlich */
.rechtstext .uebersetzt { margin-top: 1.1em; padding-left: 12px; border-left: 2px solid var(--brand); color: var(--ink-2); max-width: 70ch; }

/* Dateiauswahl in Seitensprache: der native Knopf folgt sonst der Browsersprache */
.datei-wahl { display: none; }
.feld--datei { position: relative; }
.js .feld--datei input[type="file"] { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; opacity: 0; }
.js .datei-wahl { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 9px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; font: 1rem/1.4 var(--f-text); letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.datei-knopf { flex: none; font: 600 .92rem/1.2 var(--f-text); font-stretch: 104%; padding: 8px 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.js .datei-wahl:hover .datei-knopf { border-color: var(--ink); }
.datei-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
.datei-name.ist-gewaehlt { color: var(--ink); }
.js .feld--datei input[type="file"]:focus-visible + .datei-wahl { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }

/* Hinweis auf weitere, nur deutsch ausgeschriebene Stellen */
.stellen-weitere { margin-top: 20px; max-width: 70ch; color: var(--ink-2); }

/* Hero: mit dem Einblenden weht einmal ein Glanz über das hervorgehobene Wort (startet gleichzeitig, folgt der Kante und läuft kurz danach aus), schräg im Winkel des Logos (122deg = Band ca. 32° gegen die Senkrechte).
   Die Schrift wird dafür über den Hintergrund gefärbt (currentColor = bisherige Farbe); Innenabstand, damit Ober- und Unterlängen nicht abgeschnitten werden. */
@keyframes weiter-glanz {
  from { background-position: 100% 0, 0 0; }
  to { background-position: 0% 0, 0 0; }
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  @media (prefers-reduced-motion: no-preference) {
    .hero h1 em {
      padding: .1em .05em; margin: -.1em -.05em;
      background-image: linear-gradient(122deg, transparent 0 43%, rgba(255, 255, 255, .85) 50%, transparent 57% 100%), linear-gradient(currentColor, currentColor);
      background-size: 250% 100%, 100% 100%; background-repeat: no-repeat; background-position: 0% 0, 0 0;
      -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
      animation: weiter-rein 1.1s cubic-bezier(.7, 0, .25, 1) 1s backwards, weiter-glanz 1.3s cubic-bezier(.7, 0, .25, 1) 1s backwards;
    }
  }
}

/* Karriere-Übersicht: Überschrift wie auf der Startseite. Erster Satz Wort für Wort, zweiter Satz in Blau;
   dessen Wörter erscheinen nacheinander mit schräger Kante im Logo-Winkel und Glanz (Wörter einzeln, damit der Satz umbrechen darf). */
.stelle-hero h1 em { font-style: normal; color: #0094C6; }
:root[data-theme="dark"] .stelle-hero h1 em { color: var(--brand); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stelle-hero h1 em { color: var(--brand); } }
@media (prefers-reduced-motion: no-preference) {
  .stelle-hero h1 .wort { display: inline-block; animation: wort-rein .55s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(.15s + var(--i, 0) * .16s); }
  .stelle-hero h1 .wort:nth-of-type(2) { --i: 1; }
  .stelle-hero h1 .wort:nth-of-type(3) { --i: 2; }
  .stelle-hero h1 .ew { display: inline-block; animation: weiter-rein .65s cubic-bezier(.6, 0, .3, 1) calc(var(--em-start, .55s) + var(--j, 0) * .2s) backwards; }
  .stelle-hero h1 .ew:nth-of-type(2) { --j: 1; }
  .stelle-hero h1 .ew:nth-of-type(3) { --j: 2; }
  .stelle-hero h1 .ew:nth-of-type(4) { --j: 3; }
  .stelle-hero h1 .ew:nth-of-type(5) { --j: 4; }
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  @media (prefers-reduced-motion: no-preference) {
    .stelle-hero h1 .ew {
      padding: .1em .05em; margin: -.1em -.05em;
      background-image: linear-gradient(122deg, transparent 0 43%, rgba(255, 255, 255, .85) 50%, transparent 57% 100%), linear-gradient(currentColor, currentColor);
      background-size: 250% 100%, 100% 100%; background-repeat: no-repeat; background-position: 0% 0, 0 0;
      -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
      animation: weiter-rein .65s cubic-bezier(.6, 0, .3, 1) calc(var(--em-start, .55s) + var(--j, 0) * .2s) backwards,
                 weiter-glanz .8s cubic-bezier(.6, 0, .3, 1) calc(var(--em-start, .55s) + var(--j, 0) * .2s) backwards;
    }
  }
}
