/* ectool – gemeinsames Stylesheet
   CI-Farben: #1fbba6 (Türkis), #334155 (Schiefer), #eff2f5 (Nebel)
   Schrift: Instrument Sans, selbst gehostet aus /assets/fonts/ (SIL Open Font License, siehe fonts/OFL.txt).
   Es wird keine Verbindung zu Google Fonts oder einem anderen fremden Server aufgebaut. */

@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/InstrumentSans-Regular.woff") format("woff"); }
@font-face { font-family: "Instrument Sans"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/InstrumentSans-Italic.woff") format("woff"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/InstrumentSans-Bold.woff") format("woff"); }

:root {
  --teal: #1fbba6;          /* CI: Flächen, Linien, Markierungen */
  --teal-ink: #0b7468;      /* abgeleitet: Türkis für Text/Links (Kontrast ≥ 4,5:1) */
  --teal-soft: #e3f6f3;
  --slate: #334155;         /* CI: Text, Kopf- und Fußbereich */
  --slate-soft: #5b6779;
  --mist: #eff2f5;          /* CI: Hintergrundflächen */
  --line: #d6dde5;
  --white: #ffffff;
  --radius: 6px;
  --wrap: 72rem;
  --measure: 44rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0; hyphens: manual; background: var(--white); color: var(--slate);
  font: 400 1.0625rem/1.6 "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal-ink); text-underline-offset: .18em; }
a:hover { color: var(--slate); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--slate); color: var(--white); padding: .5rem 1rem; z-index: 20; }
.skip:focus { left: 1rem; }

h1, h2, h3 { line-height: 1.2; font-weight: 700; letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem); margin-top: 2.4em; }
h3 { font-size: 1.2rem; margin-top: 1.8em; }
p, ul, ol, dl { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.measure { max-width: var(--measure); }

/* Unternehmensleiste über dem Hauptmenü */
.topbar { background: var(--slate); font-size: .875rem; }
.topbar ul { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: .35rem 0; }
.topbar a { color: #e3e8ee; text-decoration: none; border-bottom: 1px solid transparent; }
.topbar a:hover, .topbar a[aria-current="page"] { color: var(--white); border-bottom-color: var(--teal); }

/* Kopfbereich */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 2rem; min-height: 4.25rem; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { display: block; height: 30px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-left: auto; padding: 0; list-style: none; font-size: .975rem; }
.nav a { color: var(--slate); text-decoration: none; padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--teal); }
.btn { display: inline-block; padding: .7rem 1.2rem; border-radius: var(--radius); font-weight: 700; text-decoration: none; line-height: 1.2; }
.btn-primary { background: var(--teal); color: var(--slate); }
.btn-primary:hover { background: #18a391; color: var(--slate); }
.btn-ghost { border: 1.5px solid var(--slate); color: var(--slate); }
.btn-ghost:hover { background: var(--slate); color: var(--white); }

/* Brotkrumen */
.crumbs { font-size: .9rem; color: var(--slate-soft); margin: 1.5rem 0 1rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }
.crumbs a { color: var(--slate-soft); }

/* Artikel */
.article { padding-bottom: 4rem; }
.article-meta { color: var(--slate-soft); font-size: .95rem; margin-bottom: 2rem; }
.summary { background: var(--mist); border-left: 4px solid var(--teal); padding: 1.25rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 2rem; }
.summary h2 { font-size: 1.1rem; margin: 0 0 .5rem; }
.summary ul { margin: 0; padding-left: 1.2rem; }
.summary li + li { margin-top: .35rem; }
.note { font-size: .95rem; color: var(--slate-soft); }
.group-tag { display: inline-block; min-width: 1.6em; text-align: center; font-weight: 700; background: var(--teal-soft); color: var(--teal-ink); border-radius: 3px; padding: 0 .35em; margin-right: .4em; }

/* Vergleichsmatrix – das zentrale Element des Artikels */
.matrix-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin: 1rem 0 .75rem; }
.seg { display: inline-flex; border: 1.5px solid var(--slate); border-radius: var(--radius); overflow: hidden; }
.seg button { font: inherit; font-size: .95rem; padding: .45rem .9rem; border: 0; background: var(--white); color: var(--slate); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--slate); color: var(--white); }
.matrix-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.matrix { border-collapse: collapse; width: 100%; font-size: .95rem; font-variant-numeric: tabular-nums; }
.matrix th, .matrix td { padding: .55rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.matrix thead th { background: var(--white); text-align: left; font-weight: 700; border-bottom: 2px solid var(--slate); }
.matrix tbody th { text-align: left; }
.matrix tbody th { font-weight: 400; }
.matrix .num { width: 2.5rem; color: var(--slate-soft); text-align: right; }
.matrix .why { color: var(--slate-soft); width: 45%; }
.matrix tr.grp th { background: var(--mist); color: var(--slate); font-weight: 700; padding-top: .9rem; border-bottom: 2px solid var(--teal); }
.matrix tbody + tbody tr.grp th { border-top: 1rem solid var(--white); }
.matrix tr:target th, .matrix tr:target td { background: var(--teal-soft); }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; line-height: 1.4; color: var(--teal-ink); background: var(--teal-soft); border: 1px solid #b5e7df; border-radius: 3px; padding: 0 .4em; margin-left: .35em; vertical-align: .1em; white-space: nowrap; }
.article h3 + p + .matrix-wrap { margin-bottom: 1.5rem; }
.legend { font-size: .9rem; color: var(--slate-soft); margin-top: .6rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: .9rem 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details[open] summary { margin-bottom: .5rem; }

/* CTA */
.cta { background: var(--slate); color: var(--white); border-radius: var(--radius); padding: 2rem; margin-top: 3rem; }
.cta h2 { margin-top: 0; color: var(--white); }
.cta a.btn-primary { margin-top: .5rem; }

/* Startseite */
.hero { padding: 4rem 0 3rem; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.hero p.lead { font-size: 1.2rem; max-width: 36rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.wheel { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; position: relative; aspect-ratio: 1; max-width: 26rem; justify-self: center; width: 100%; container-type: inline-size; }
/* Text sitzt nah an der Mitte, knapp außerhalb des Kerns. Prozentwerte beziehen sich hier auf das jeweilige Viertel. */
.wheel a { display: flex; flex-direction: column; gap: .15em; min-width: 0; text-decoration: none; color: var(--slate); background: var(--mist);
  font-weight: 700; font-size: 1.05rem; font-size: clamp(.74rem, 4.1cqi, 1.1rem); line-height: 1.2; hyphens: manual; overflow-wrap: normal; }
.wheel a span { font-weight: 400; font-size: .82rem; font-size: clamp(.62rem, 3.1cqi, .85rem); line-height: 1.25; color: var(--slate-soft); }
.wheel a:nth-child(1) { border-radius: 100% 0 0 0; justify-content: flex-end; align-items: flex-end; text-align: right; padding: 8% 21% 21% 7%; }
.wheel a:nth-child(2) { border-radius: 0 100% 0 0; justify-content: flex-end; align-items: flex-start; text-align: left; padding: 8% 7% 21% 21%; }
.wheel a:nth-child(3) { border-radius: 0 0 0 100%; justify-content: flex-start; align-items: flex-end; text-align: right; padding: 21% 21% 8% 7%; }
.wheel a:nth-child(4) { border-radius: 0 0 100% 0; justify-content: flex-start; align-items: flex-start; text-align: left; padding: 21% 7% 8% 21%; }
.wheel a:hover { background: var(--teal-soft); }
.wheel .core { position: absolute; inset: 37%; background: var(--teal); color: var(--slate); border-radius: 50%; display: grid; place-items: center; text-align: center; font-weight: 700; font-size: .85rem; font-size: clamp(.6rem, 3cqi, .85rem); line-height: 1.2; padding: .4rem; border: 6px solid var(--white); }

.band { background: var(--mist); padding: 3.5rem 0; }
.section { padding: 3.5rem 0; }
.section > .wrap > h2:first-child, .band > .wrap > h2:first-child { margin-top: 0; }
.place { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.place h3 { margin-top: 0; }
.place ul { padding-left: 1.2rem; }
.place .is li::marker { color: var(--teal); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.5rem; margin: 2.5rem 0 0; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.facts dt { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.facts dd { margin: 0; color: var(--slate-soft); }
.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.areas section { border-top: 3px solid var(--teal); padding-top: 1rem; }
.areas h3 { margin-top: 0; }
.areas ul { padding-left: 1.1rem; font-size: .975rem; }
.laws { list-style: none; padding: 0; margin: 0; }
.laws li { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.laws + p { margin-top: 1rem; }
.laws time { font-weight: 700; font-variant-numeric: tabular-nums; }
.laws p { margin: .2rem 0 0; color: var(--slate-soft); }
.status { display: inline-block; font-size: .85rem; font-weight: 700; padding: .1rem .5rem; border-radius: 3px; margin-left: .4rem; }
.status.done { background: var(--teal-soft); color: var(--teal-ink); }
.status.wip { background: #fdf3dc; color: #7a5300; }
.status.info { background: var(--mist); color: var(--slate); border: 1px solid var(--line); }

/* Steckbrief (Gesetzes- und Produktseiten) */
.facts-box { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .4rem 1.25rem; background: var(--mist); padding: 1.25rem 1.5rem; border-radius: var(--radius); margin: 0 0 2rem; }
.facts-box dt { font-weight: 700; }
.facts-box dd { margin: 0; overflow-wrap: break-word; hyphens: auto; }

/* Karriere */
.lead-text { font-size: 1.15rem; }
.job { border-top: 3px solid var(--teal); padding-top: 1rem; margin-bottom: 2rem; }
.job h3 { margin-top: 0; }
.job h4 { font-size: 1rem; margin: 1.2rem 0 .4rem; }
.job-meta { color: var(--slate-soft); }

/* Downloads */
.files { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.files li { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.files a { font-weight: 700; }
.files .file-meta { display: block; font-size: .9rem; color: var(--slate-soft); }
.files p { margin: .4rem 0 0; font-size: .95rem; }

/* Produktseiten */
.pnr { display: inline-block; font-variant-numeric: tabular-nums; font-weight: 700; font-size: .85em; color: var(--teal-ink); background: var(--teal-soft); border-radius: 3px; padding: .05em .4em; margin-right: .3em; vertical-align: .05em; }
.howto { background: var(--mist); border-radius: var(--radius); padding: .9rem 1.2rem; margin: 1rem 0 1.5rem; font-size: .975rem; max-width: var(--measure); }
.howto p { margin: 0; }
.toc ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.toc a { display: inline-block; text-decoration: none; color: var(--slate); border: 1.5px solid var(--line); border-radius: 999px; padding: .3rem .8rem; font-size: .925rem; background: var(--white); }
.toc a:hover { border-color: var(--teal); }
.toc a span, .count { font-variant-numeric: tabular-nums; color: var(--slate-soft); font-weight: 400; }
.count { font-size: .7em; margin-left: .25em; }
.finder { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 0 0 1rem; }
.finder label { font-weight: 700; }
.finder input { font: inherit; padding: .55rem .8rem; border: 1.5px solid var(--slate); border-radius: var(--radius); min-width: min(100%, 22rem); flex: 0 1 22rem; color: var(--slate); background: var(--white); }
.finder-count { margin: 0; color: var(--slate-soft); font-size: .95rem; }
.pgroup { scroll-margin-top: 5rem; }
.pgroup > h2, .pgroup > h3 { margin-top: 2.2em; padding-top: .8rem; border-top: 3px solid var(--teal); font-size: clamp(1.25rem, 1.05rem + .7vw, 1.55rem); }
.pgroup-intro { color: var(--slate-soft); max-width: var(--measure); }
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.product { background: var(--mist); border-radius: var(--radius); padding: 1.1rem 1.25rem; scroll-margin-top: 5rem; font-size: .975rem; }
.product:target { outline: 3px solid var(--teal); }
.product h3 { font-size: 1.08rem; margin: 0 0 .5rem; line-height: 1.3; }
.product p { margin: 0 0 .6rem; }
.product ul { margin: 0 0 .6rem; padding-left: 1.1rem; }
.product li + li { margin-top: .2rem; }
.product li::marker { color: var(--teal-ink); }
.product .pex { color: var(--slate-soft); }
.ptag { display: inline-block; font-size: .78rem; font-weight: 700; border-radius: 3px; padding: .05rem .45rem; margin: -.15rem 0 .5rem !important; }
.ptag-only { background: var(--slate); color: var(--white); }
.ptag-both { background: var(--teal-soft); color: var(--teal-ink); border: 1px solid #b5e7df; }
.product .phint { font-size: .85rem; font-weight: 700; color: #7a5300; }
.product > :last-child { margin-bottom: 0; }
.prereq { border-left: 4px solid var(--slate); padding: .6rem 1rem; background: var(--white); outline: 1px solid var(--line); border-radius: 0 var(--radius) var(--radius) 0; }
.flow { list-style: none; counter-reset: step; padding: 0; display: grid; gap: .75rem; }
.flow li { counter-increment: step; position: relative; padding: .8rem 1rem .8rem 3.2rem; background: var(--mist); border-radius: var(--radius); }
.flow li::before { content: counter(step); position: absolute; left: 1rem; top: .75rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--teal); color: var(--slate); font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.matrix.compare th[scope="row"] { font-weight: 700; width: 12rem; }
.matrix.compare thead th:not(:first-child) { font-size: 1.05rem; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0 1rem; }
.choice-card { display: flex; flex-direction: column; gap: .3rem; padding: 1.25rem 1.4rem; border-radius: var(--radius); border: 1.5px solid var(--line); border-top: 4px solid var(--teal); text-decoration: none; color: var(--slate); }
.choice-card:hover { border-color: var(--teal); }
.choice-card strong { font-size: 1.15rem; }
.choice-k { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-ink); }
.choice-card span:last-child { color: var(--teal-ink); }
@media (max-width: 48rem) { .pgrid, .choice { grid-template-columns: 1fr; } .matrix.compare th[scope="row"] { width: auto; } }
@media print { .finder, .toc { display: none; } .product { break-inside: avoid; } }

/* Gesetzesänderungen */
.laws-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.law { background: var(--mist); border-radius: var(--radius); padding: 1.1rem 1.25rem; scroll-margin-top: 5rem; font-size: .975rem; }
.law:target { outline: 3px solid var(--teal); }
.law h3 { font-size: 1.1rem; margin: 0 0 .6rem; line-height: 1.35; }
.law h3 .status { margin-left: .3rem; vertical-align: .1em; }
.law p { margin: 0 0 .6rem; }
.law > :last-child { margin-bottom: 0; }
.law-ectool { border-left: 3px solid var(--teal); padding-left: .75rem; }
.legend-status { font-size: .9rem; color: var(--slate-soft); }
.legend-status .status { margin: 0 .2rem 0 .6rem; }
.legend-status .status:first-child { margin-left: 0; }
.two-col, .cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.cases { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.two-col > div, .cases > div { background: var(--mist); border-radius: var(--radius); padding: 1rem 1.15rem; }
.two-col h3, .cases h3 { margin-top: 0; font-size: 1.02rem; }
.two-col ul { margin: 0; padding-left: 1.1rem; }
.cases p { margin: 0; font-size: .95rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--mist); padding: .15em .4em; border-radius: 3px; overflow-wrap: anywhere; }
@media (max-width: 48rem) { .laws-grid, .two-col { grid-template-columns: 1fr; } }

/* Rechtstexte */
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal .facts-box { grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); }
.legal h3 { font-size: 1.05rem; margin-top: 1.6em; }
.legal p, .legal li { font-size: 1rem; }
.legal li + li { margin-top: .5rem; }

/* Wissen */
.wfilter button { font: inherit; font-size: .925rem; color: var(--slate); background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; padding: .3rem .8rem; cursor: pointer; }
.wfilter button span { color: var(--slate-soft); }
.wfilter button[aria-pressed="true"] { background: var(--slate); border-color: var(--slate); color: var(--white); }
.wfilter button[aria-pressed="true"] span { color: #c9d2dd; }
.wlist { display: grid; gap: 1rem; max-width: 52rem; margin: 1rem 0 1.5rem; }
.wcard { border-top: 3px solid var(--teal); background: var(--mist); border-radius: 0 0 var(--radius) var(--radius); padding: 1.1rem 1.4rem 1.2rem; }
.wcard h2 { font-size: 1.25rem; margin: .3rem 0 .5rem; }
.wcard h2 a { color: var(--slate); text-decoration: none; }
.wcard h2 a:hover { color: var(--teal-ink); text-decoration: underline; }
.wcard p { margin: 0; }
.wmeta { font-size: .875rem; color: var(--slate-soft); }
.wcat { font-weight: 700; color: var(--teal-ink); margin-right: .5rem; }

.footer-base { border-top: 1px solid #4a5568; margin-top: 1.5rem; padding-top: 1rem; font-size: .85rem; color: #b8c2cf; }
.footer-base p { margin: 0; }

/* Kontakt */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem; align-items: start; padding-bottom: 1rem; }
.contact-intro h2 { font-size: 1.1rem; margin-top: 1.8em; }
.contact-ways { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .75rem; }
.contact-ways li { display: grid; gap: .1rem; }
.cw-label { font-size: .85rem; font-weight: 700; color: var(--slate-soft); text-transform: uppercase; letter-spacing: .05em; }
.contact-ways a { font-size: 1.35rem; font-weight: 700; color: var(--slate); text-decoration: none; }
.contact-ways a:hover { color: var(--teal-ink); text-decoration: underline; }
.contact-form { background: var(--mist); border-top: 4px solid var(--teal); border-radius: 0 0 var(--radius) var(--radius); padding: 1.5rem; display: grid; gap: 1rem; margin-top: 1rem; }
.field { display: grid; gap: .3rem; }
.field label { font-weight: 700; font-size: .95rem; }
.field input, .field textarea { font: inherit; color: var(--slate); background: var(--white); border: 1.5px solid #b9c3cf; border-radius: var(--radius); padding: .6rem .75rem; width: 100%; }
.field input:focus, .field textarea:focus { border-color: var(--teal-ink); outline: 2px solid var(--teal); outline-offset: 0; }
.field textarea { resize: vertical; min-height: 8rem; }
.contact-form .note { margin: 0; }
.contact-form .btn { justify-self: start; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 48rem) { .contact { grid-template-columns: 1fr; gap: 1rem; } }

/* Zeitstrahl Unternehmen */
.timeline { list-style: none; padding: 0; margin: 1.25rem 0 2rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5rem; top: .4rem; bottom: .4rem; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 4rem 1fr; gap: 2rem; padding: .45rem 0; position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(5rem - 5px); top: .55rem; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 2px solid #9aa6b5; box-sizing: border-box; }
.timeline li.tl-dev::before { background: var(--teal); border-color: var(--teal); }
.timeline li.tl-cert::before { background: var(--slate); border-color: var(--slate); }
.timeline time { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; padding-top: .1rem; }
.timeline li div { padding-left: .4rem; }
.timeline p { margin: 0 0 .25rem; }
.timeline li.tl-dev p, .timeline li.tl-cert p { font-weight: 700; }
.tl-legend { font-size: .9rem; color: var(--slate-soft); display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.tl-key { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-left: .6rem; }
.tl-key:first-child { margin-left: 0; }
.tl-key-dev { background: var(--teal); }
.tl-key-cert { background: var(--slate); }

.cases.cases-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 36rem) { .cases.cases-2 { grid-template-columns: 1fr; } }
.claim { font-size: 1.25rem; font-weight: 700; color: var(--teal-ink); border-left: 4px solid var(--teal); padding: .2rem 0 .2rem 1rem; margin: 1.5rem 0 0; }

/* Download / App */
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-ink); margin: 2.4rem 0 .3rem; }
.eyebrow + h1, .eyebrow + h2 { margin-top: 0; }
.app-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; margin-bottom: 1rem; }
.app-hero .eyebrow { margin-top: .5rem; }
.stores { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-width: 10.5rem; padding: .5rem 1.1rem; border-radius: 8px; background: var(--slate); color: var(--white); text-decoration: none; font-weight: 700; font-size: 1.15rem; line-height: 1.15; }
.store:hover { background: #1f2937; color: var(--white); }
.store-small { font-size: .72rem; font-weight: 400; letter-spacing: .02em; }
.direct { background: var(--mist); border-top: 4px solid var(--teal); border-radius: 0 0 var(--radius) var(--radius); padding: 1.25rem 1.5rem; }
.direct h2 { font-size: 1.15rem; margin: 0 0 .75rem; }
.dl-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.dl-list li { display: grid; grid-template-columns: 1fr auto; gap: .1rem 1rem; align-items: center; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.dl-name { font-weight: 700; }
.dl-btn { grid-column: 2; grid-row: 1 / span 2; font-weight: 700; font-size: .9rem; color: var(--slate); background: var(--teal); padding: .4rem .8rem; border-radius: var(--radius); text-decoration: none; white-space: nowrap; }
.dl-btn:hover { background: #18a391; color: var(--slate); }
.dl-hint { font-size: .875rem; color: var(--slate-soft); }
.direct > p { margin: 0; }
.app-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.app-download { background: var(--mist); border-radius: var(--radius); padding: .5rem 1.5rem 1.25rem; margin: 2rem 0; }
.app-download .eyebrow { margin-top: 1rem; }
.dl-plain { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.newsletter { margin-top: 2rem; }
.newsletter .eyebrow { margin-top: 0; }
.newsletter h2 { margin: 0; font-size: 1.25rem; }
.nl-form { display: grid; gap: 1rem; }
.nl-form .btn { justify-self: start; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 48rem) { .app-hero, .app-features { grid-template-columns: 1fr; gap: 1rem; } }

/* Kompatible Hardware */
.hw { margin: 3rem 0 1rem; }
.hw h2 { margin-top: 0; }
.hw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.hw-card { display: flex; flex-direction: column; background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 1.25rem 1.4rem; }
.hw-card h3 { font-size: 1.6rem; margin: .1rem 0 .5rem; }
.hw-card p { margin: 0 0 1rem; }
.hw-tag { font-size: .78rem !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-soft); margin: 0 !important; }
.hw-flow { margin: auto 0 0 !important; background: var(--mist); border-radius: var(--radius); padding: .55rem .8rem; font-weight: 700; font-size: .95rem; }
.hw-new { background: var(--teal); border-color: var(--teal); color: var(--slate); }
.hw-new .hw-tag { display: inline-block; align-self: flex-start; background: var(--white); color: var(--slate); border-radius: 999px; padding: .2rem .7rem; }
.hw-new .hw-flow { background: #d3f1ec; }
.hw-new p { color: var(--slate); }
.hw-note { max-width: var(--measure); margin-top: 1rem; }
.hw-datafox { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; align-items: center; background: var(--mist); border-radius: 10px; padding: 1.5rem 1.75rem; margin-top: 1.5rem; }
.hw-datafox .eyebrow { margin-top: 0; }
.hw-datafox h3 { font-size: 1.45rem; margin: 0 0 1rem; }
.hw-points { margin: 0; display: grid; gap: .9rem; }
.hw-points dt { font-weight: 700; font-size: 1.05rem; }
.hw-points dd { margin: .1rem 0 0; color: var(--slate-soft); }
.hw-points div { border-left: 3px solid var(--teal); padding-left: .85rem; }
.hw-figure { margin: 0; background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 1rem; text-align: center; }
.hw-figure img { display: block; margin: 0 auto; height: auto; }
@media (max-width: 60rem) { .hw-grid, .hw-datafox { grid-template-columns: 1fr; } }

/* Stellen aus dem Bewerbermanagement */
.jobs-embed, .jobs-embed + .note { max-width: 56rem; }
.jobs-embed { border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: 0 0 10px 10px; overflow: hidden; background: var(--white); margin: .5rem 0 .75rem; }
.jobs-embed iframe { display: block; width: 100%; height: 900px; border: 0; }
@media (max-width: 36rem) { .jobs-embed iframe { height: 1100px; } }

/* Karriere: Videos, Academy, Erfolgsgeschichten */
.videos { max-width: 56rem; margin: 1.5rem 0 2rem; }
.video-tabs { margin-bottom: .75rem; }
.video-tabs button[aria-selected="true"] { background: var(--slate); color: var(--white); }
.video-panel { margin-bottom: 1rem; }
.video-panel video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #0f172a; border-radius: 10px; }
.video-title { font-size: 1.05rem; margin: 0 0 .5rem; }
.academy { background: var(--mist); border-radius: 10px; padding: .25rem 1.5rem 1.5rem; margin: 2.5rem 0; }
.academy .eyebrow { margin-top: 1.5rem; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.story-card { background: var(--white); border-radius: 10px; border-top: 4px solid var(--teal); padding: 1.1rem 1.25rem; display: flex; flex-direction: column; }
.story-card blockquote { margin: 0 0 .9rem; font-size: 1rem; }
.story-card blockquote p { margin: 0; }
.story-label { font-weight: 700; margin: auto 0 .3rem !important; }
.story-quote { margin: 1.5rem 0; padding: .4rem 0 .4rem 1.2rem; border-left: 4px solid var(--teal); font-size: 1.2rem; font-weight: 700; color: var(--slate); }
.story-quote p { margin: 0; }
.story-tip { background: var(--mist); border-radius: var(--radius); padding: 1rem 1.2rem; }
@media (max-width: 60rem) { .story-grid { grid-template-columns: 1fr; } }

/* Fotos Karriere */
.gallery { margin: 2.5rem 0; }
.gallery .eyebrow { margin-top: 0; }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(9rem, 16vw, 13rem); grid-auto-flow: dense; gap: .75rem; margin-top: 1rem; }
.photo-grid figure { margin: 0; overflow: hidden; border-radius: 10px; background: var(--mist); grid-row: span 2; }
.photo-grid .ph-wide { grid-column: span 2; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 48rem) {
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 9rem; }
}

/* Standort mit Gebäudefoto */
.site-location { display: grid; gap: 1rem; }
.site-photo { margin: .5rem 0 0; }
.site-photo img { display: block; width: 100%; height: auto; border-radius: 10px; background: var(--mist); }
.site-photo figcaption { font-size: .9rem; color: var(--slate-soft); margin-top: .5rem; }

/* ===== Bewegung (nur wenn site.js aktiv ist und keine reduzierte Bewegung gewünscht) ===== */

/* 1) Rad auf der Startseite: Bereiche leuchten im Uhrzeigersinn auf, dann pulsiert die Mitte – dreimal nach dem Laden */
@keyframes wheel-glow { 0%, 19%, 100% { background: var(--mist); } 5%, 13% { background: #c4ece6; } }
@keyframes wheel-core { 0%, 22%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(31,187,166,0); }
                        8% { transform: scale(1.07); box-shadow: 0 0 0 0 rgba(31,187,166,.5); }
                        18% { transform: scale(1); box-shadow: 0 0 0 22px rgba(31,187,166,0); } }
.motion .wheel a { animation: wheel-glow 8s ease-in-out 3; }
.motion .wheel a:nth-child(1) { animation-delay: .6s; }
.motion .wheel a:nth-child(2) { animation-delay: 1.4s; }
.motion .wheel a:nth-child(4) { animation-delay: 2.2s; }
.motion .wheel a:nth-child(3) { animation-delay: 3s; }
.motion .wheel .core { animation: wheel-core 8s ease-out 3.9s 3; }
.motion .wheel a:hover { animation: none; background: var(--teal-soft); }

/* 2) Sanftes Einblenden beim Scrollen */
.motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--reveal-delay, 0ms); }
.motion .reveal.is-in { opacity: 1; transform: none; }

/* 4) Datenfluss bei Datafox: ein Lichtpunkt wandert durch „Terminal → ectool“ */
.hw-new .hw-flow { position: relative; overflow: hidden; }
@keyframes flow-dot { 0% { left: -12px; opacity: 0; } 10% { opacity: 1; } 55% { left: calc(100% + 12px); opacity: 1; } 56%, 100% { left: calc(100% + 12px); opacity: 0; } }
.motion .hw-new .hw-flow::after { content: ""; position: absolute; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 10px 3px rgba(31,187,166,.55); animation: flow-dot 3.2s ease-in-out infinite; }

/* 5) Zeitstrahl: Punkte füllen sich beim Lesen */
.motion .timeline.tl-anim li::before { transition: background-color .5s ease, border-color .5s ease, transform .5s ease; }
.motion .timeline.tl-anim li.tl-dev:not(.tl-on)::before,
.motion .timeline.tl-anim li.tl-cert:not(.tl-on)::before { background: var(--white); border-color: #9aa6b5; }
.motion .timeline.tl-anim li.tl-on::before { transform: scale(1.15); }
.motion .timeline.tl-anim li p { transition: color .5s ease; }
.motion .timeline.tl-anim li:not(.tl-on) p { color: var(--slate-soft); }

/* 6) Karten heben sich beim Überfahren leicht an */
.product, .law, .wcard, .story-card, .hw-card, .choice-card { transition: transform .2s ease, box-shadow .2s ease; }
@media (hover: hover) {
  .product:hover, .law:hover, .wcard:hover, .story-card:hover, .hw-card:hover, .choice-card:hover {
    transform: translateY(-3px); box-shadow: 0 10px 24px -12px rgba(51,65,85,.35); }
}
.motion .reveal.is-in:hover { transition: opacity .6s ease, transform .2s ease, box-shadow .2s ease; transition-delay: 0ms; }

@media (prefers-reduced-motion: reduce) {
  .wheel a, .wheel .core, .hw-new .hw-flow::after { animation: none !important; }
  .product:hover, .law:hover, .wcard:hover, .story-card:hover, .hw-card:hover, .choice-card:hover { transform: none; }
}

/* ===== Schaubilder ===== */
.diagram { margin: 1.75rem 0; padding: clamp(.8rem, 3vw, 1.25rem) clamp(.7rem, 3vw, 1.4rem) clamp(.9rem, 3vw, 1.4rem); background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; }
.dg-cap { font-weight: 700; font-size: 1.15rem; margin: 0 0 1rem; display: flex; flex-direction: column; gap: .15rem; }
.dg-kicker { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-ink); }
.dg-note { font-size: .9rem; color: var(--slate-soft); margin: 1rem 0 0; }
.pill { display: inline-block; min-width: 4.5rem; text-align: center; font-size: .85rem; font-weight: 700; border-radius: 999px; padding: .2rem .7rem; }
.pill-ec { background: var(--teal); color: var(--slate); }
.pill-you { background: var(--slate); color: var(--white); }
.pill-none { background: transparent; color: var(--slate-soft); border: 1.5px dashed #9aa6b5; font-weight: 400; }

/* 1 Wer macht was */
.dg-roles { width: 100%; border-collapse: separate; border-spacing: 0 .4rem; }
.dg-roles thead th { font-size: .95rem; text-align: center; padding: 0 .5rem .2rem; }
.dg-roles tbody th { text-align: left; font-weight: 400; padding: .55rem .9rem; background: var(--white); border-radius: 8px 0 0 8px; border: 1px solid var(--line); border-right: 0; }
.dg-roles td { text-align: center; padding: .55rem .5rem; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); width: 8.5rem; }
.dg-roles td:last-child { border-right: 1px solid var(--line); border-radius: 0 8px 8px 0; }

/* 2 Datenfluss */
.dgf { display: grid; grid-template-columns: minmax(0, 1fr) 2.5rem minmax(0, 1fr) 2.5rem minmax(0, 1fr); align-items: center; gap: .5rem; }
.dgf-head { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-soft); margin: 0 0 .5rem; text-align: center; }
.dgf-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.dgf-box, .dgf-hub { display: flex; flex-direction: column; gap: .1rem; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: .6rem .8rem; }
.dgf-box span, .dgf-hub span { font-size: .85rem; color: var(--slate-soft); }
.dgf-hub { background: var(--teal); border-color: var(--teal); text-align: center; padding: 1.4rem 1rem; border-radius: 14px; }
.dgf-hub strong { font-size: 1.2rem; }
.dgf-hub span { color: var(--slate); }
.dgf-arrow { height: 2px; background: var(--teal); position: relative; margin-top: 1.4rem; }
.dgf-arrow::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 8px solid var(--teal); border-right: 0; }

/* 3 Module-Raster */
.dgm-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: .35rem; }
.dgm { display: grid; place-items: center; aspect-ratio: 1; border-radius: 6px; font-size: .8rem; font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; }
.dgm:hover { outline: 2px solid var(--slate); outline-offset: 1px; }
.dgm-ok { background: var(--teal); color: var(--slate); }
.dgm-sonder { background: #b8c2ce; color: var(--slate); }
.dgm-bau { background: #e7c873; color: var(--slate); }
.dgm-fibu { background: #8fa3bb; color: var(--white); }
.dgm-einzel { background: var(--white); color: var(--slate); border: 2px dashed #9aa6b5; }
.dgm-legend { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: .9rem; }
.dgm-legend li { display: flex; align-items: center; gap: .4rem; }
.dgm-key { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.dgm-key.dgm-einzel { border-width: 1.5px; }
.dgm-n { font-weight: 700; font-variant-numeric: tabular-nums; }

/* 4 Zeitachse Gesetze */
.dgt { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; position: relative; }
.dgt::before { content: ""; position: absolute; left: 0; right: 0; top: .55rem; height: 3px; background: linear-gradient(90deg, var(--teal), #b8c2ce); border-radius: 2px; }
.dgt-col { position: relative; padding-top: 1.6rem; }
.dgt-col::before { content: ""; position: absolute; top: .15rem; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 3px solid var(--teal); }
.dgt-date { font-weight: 700; font-size: 1.05rem; margin: 0 0 .6rem; }
.dgt-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.dgt-item { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; padding: .55rem .75rem; border-radius: 8px; background: var(--white); border: 1px solid var(--line); color: var(--slate); text-decoration: none; font-size: .95rem; line-height: 1.3; }
.dgt-item:hover { border-color: var(--teal); }
.dgt-item .status { margin: 0; font-size: .72rem; }

/* 5 Entscheidungsbaum */
.dgd-q { background: var(--white); border: 2px solid var(--slate); border-radius: 10px; padding: .75rem 1rem; position: relative; }
.dgd-n { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--slate); color: var(--white); font-weight: 700; font-size: .85rem; margin-right: .5rem; }
.dgd-branches { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 1rem; margin-top: .75rem; }
.dgd-inner { grid-template-columns: 1fr 1fr; }
.dgd-branch { border-top: 3px solid var(--line); padding-top: .5rem; }
.dgd-label { font-weight: 700; font-size: .9rem; margin: 0 0 .4rem; }
.dgd-yes { color: var(--teal-ink); }
.dgd-no { color: var(--slate-soft); }
.dgd-a { border-radius: 10px; padding: .7rem .9rem; font-size: .95rem; }
.dgd-good { background: var(--teal-soft); border: 1px solid #b5e7df; }
.dgd-warn { background: #fdf3dc; border: 1px solid #f0d9a0; }

/* 6 Werkstudentin */
.dgs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; position: relative; }
.dgs li { overflow-wrap: break-word; hyphens: auto; }
.dgs li { background: var(--white); border: 1px solid var(--line); border-top: 4px solid #b8c2ce; border-radius: 8px; padding: .6rem .7rem; }
.dgs p { margin: 0; }
.dgs-date { font-weight: 700; font-variant-numeric: tabular-nums; font-size: .9rem; }
.dgs-what { font-size: .9rem; margin-top: .2rem !important; }
.dgs-sub { font-size: .8rem; color: var(--slate-soft); }
.dgs-band { background: repeating-linear-gradient(135deg, #f1f4f7, #f1f4f7 6px, #e6ebf0 6px, #e6ebf0 12px) !important; }
.dgs-key { border-top-color: var(--teal) !important; background: var(--teal-soft) !important; }
.dgs-doc { border-top-color: var(--slate) !important; }
.dgs-results { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: .9rem; }
.dgs-res { border-radius: 10px; padding: .75rem 1rem; }
.dgs-res p { margin: 0; }
.dgs-res-doc { font-weight: 700; }
.dgs-res-may { background: var(--white); border: 1px solid var(--line); }
.dgs-res-must { background: var(--teal); }

/* 7 Zutritt */
.dga { display: flex; flex-wrap: wrap; align-items: stretch; gap: .5rem; }
.dga-box { flex: 1 1 9rem; display: flex; flex-direction: column; gap: .15rem; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: .7rem .85rem; }
.dga-box span { font-size: .85rem; color: var(--slate-soft); }
.dga-key { background: var(--teal); border-color: var(--teal); }
.dga-key span { color: var(--slate); }
.dga-op { align-self: center; font-size: 1.5rem; font-weight: 700; color: var(--teal-ink); padding: 0 .1rem; }
.dga-sub { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-soft); margin: 1.1rem 0 .5rem; }
.dga-special { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .5rem; }
.dga-special li { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 8px; padding: .55rem .75rem; font-size: .9rem; }
.dga-special strong { display: block; }

/* 8 Genehmigungsweg */
.dgp { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.dgp li { position: relative; display: flex; flex-direction: column; gap: .2rem; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1rem; }
.dgp li:not(:last-child)::after { content: ""; position: absolute; right: -1.6rem; top: 50%; border: 8px solid transparent; border-left: 10px solid var(--teal); border-right: 0; transform: translateY(-50%); }
.dgp-n { width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--teal); display: grid; place-items: center; font-weight: 700; margin-bottom: .3rem; }
.dgp-what { font-size: .95rem; }
.dgp-sub { font-size: .85rem; color: var(--slate-soft); }

/* 9 Berichtspflicht */
.dgr { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.dgr-barwrap { height: 7rem; display: flex; align-items: flex-end; margin-bottom: .6rem; border-bottom: 2px solid var(--slate); }
.dgr li { display: flex; flex-direction: column; }
.dgr p { margin: 0; }
.dgr-bar { width: 100%; border-radius: 8px 8px 0 0; background: var(--teal); }
.dgr-1 .dgr-bar { height: 2.2rem; background: #b8c2ce; }
.dgr-2 .dgr-bar { height: 4.5rem; background: #7fd6ca; }
.dgr-3 .dgr-bar { height: 7rem; }
.dgr-size { font-weight: 700; }
.dgr-duty { font-size: .95rem; }
.dgr-sub { font-size: .82rem; color: var(--slate-soft); margin-top: .2rem !important; }

/* Schaubilder auf schmalen Bildschirmen */
@media (max-width: 52rem) {
  .dgf { grid-template-columns: 1fr; }
  .dgf-arrow { width: 2px; height: 1.6rem; margin: 0 auto; }
  .dgf-arrow::after { right: -5px; top: auto; bottom: -2px; border: 6px solid transparent; border-top: 8px solid var(--teal); border-bottom: 0; }
  .dgm-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .dgt { grid-template-columns: 1fr; }
  .dgt::before { left: .55rem; right: auto; top: 0; bottom: 0; width: 3px; height: auto; background: linear-gradient(180deg, var(--teal), #b8c2ce); }
  .dgt-col { padding: 0 0 0 2rem; }
  .dgt-col::before { top: .2rem; }
  .dgd-branches, .dgd-inner, .dgs-results { grid-template-columns: 1fr; }
  .dgs { grid-template-columns: 1fr 1fr; }
  .dgp { grid-template-columns: 1fr; gap: 1.6rem; }
  .dgp li:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -1.4rem; border: 8px solid transparent; border-top: 10px solid var(--teal); border-bottom: 0; transform: translateX(-50%); }
  .dga-op { flex-basis: 100%; text-align: center; line-height: 1; }
  .dga-arrow { transform: rotate(90deg); }
}
@media (max-width: 30rem) {
  .dg-roles { table-layout: fixed; }
  .dg-roles thead th:first-child { width: 42%; }
  .dg-roles thead th { font-size: .78rem; padding: 0 .1rem .2rem; overflow-wrap: anywhere; hyphens: auto; }
  .dg-roles tbody th { font-size: .88rem; padding: .5rem .55rem; overflow-wrap: break-word; hyphens: auto; }
  .dg-roles td { width: auto; padding: .5rem .2rem; }
  .pill { min-width: 0; padding: .2rem .45rem; font-size: .78rem; }
  .dgs { grid-template-columns: 1fr; }
  .dgr { grid-template-columns: 1fr; align-items: stretch; }
  .dgr-barwrap { height: auto; border-bottom: 0; margin-bottom: .4rem; }
  .dgr-bar { height: .5rem !important; width: 30%; border-radius: 4px; }
  .dgr-2 .dgr-bar { width: 60%; } .dgr-3 .dgr-bar { width: 100%; }
}

/* ===== Illustrationen und Fotos im Text ===== */
.page-hero { display: grid; grid-template-columns: minmax(0, 44rem) minmax(0, 1fr); gap: 2rem; align-items: start; }
.hero-illu { justify-self: center; width: 100%; max-width: 340px; margin-top: 3.5rem; }
.hero-illu svg { display: block; width: 100%; height: auto; }
.hero-illu-inline { max-width: 260px; margin: 1rem 0 0; justify-self: start; }
@media (max-width: 64rem) {
  .page-hero { grid-template-columns: 1fr; gap: 0; }
  .hero-illu { max-width: 240px; margin: .5rem auto 1rem; }
}
.photo-inline { margin: 1.75rem 0; }
.photo-inline img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; background: var(--mist); }
.photo-inline figcaption { font-size: .9rem; color: var(--slate-soft); margin-top: .5rem; }
.benefits { list-style: none; padding: 0; margin: .5rem 0 1.5rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.benefits li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; background: var(--mist); border-radius: 10px; padding: 1rem .75rem; font-weight: 700; font-size: .95rem; }
.benefit-icon { width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--teal-soft); display: grid; place-items: center; }
.benefit-icon svg { width: 1.8rem; height: 1.8rem; }
@media (max-width: 40rem) { .benefits { grid-template-columns: 1fr 1fr; } }

/* dezente Bewegung in den Illustrationen */
@keyframes illu-spin { to { transform: rotate(360deg); } }
@keyframes illu-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes illu-glow { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.12); opacity: .55; } }
@keyframes illu-dot { 0%, 60%, 100% { transform: translateY(0); opacity: 1; } 30% { transform: translateY(-6px); opacity: .6; } }
.motion .illu-spin { transform-box: view-box; transform-origin: 228px 82px; animation: illu-spin 60s linear infinite; }
.motion .illu-blink { animation: illu-blink 2.6s ease-in-out infinite; }
.motion .illu-glow { transform-box: fill-box; transform-origin: center; animation: illu-glow 4s ease-in-out infinite; }
.motion .illu-dot { transform-box: fill-box; transform-origin: center; animation: illu-dot 1.6s ease-in-out infinite; }
.motion .illu-dot.d2 { animation-delay: .2s; } .motion .illu-dot.d3 { animation-delay: .4s; }

.form-status { border-radius: var(--radius); padding: .8rem 1rem; font-size: .95rem; }
.form-status ul { margin: 0 0 .4rem; padding-left: 1.1rem; }
.form-status p { margin: 0; }
.form-ok { background: var(--teal-soft); border: 1px solid #b5e7df; }
.form-error { background: #fdecea; border: 1px solid #f3b8b0; color: #7a1f14; }
.contact-form button[disabled] { opacity: .6; cursor: progress; }

/* Einwilligung (Cookie-Einstellungen) */
.consent { position: fixed; z-index: 60; left: 1rem; right: 1rem; bottom: 1rem; max-width: 40rem; margin: 0 auto; background: var(--white); color: var(--slate);
  border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: 12px; box-shadow: 0 18px 40px -12px rgba(15, 23, 42, .35); padding: 1.1rem 1.25rem 1rem; }
.consent h2 { font-size: 1.1rem; margin: 0 0 .4rem; }
.consent p { font-size: .92rem; margin: 0 0 .75rem; }
.consent-details { display: grid; gap: .5rem; margin: 0 0 .75rem; }
.consent-opt { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; background: var(--mist); border-radius: 8px; padding: .55rem .7rem; }
.consent-opt input { margin-top: .2rem; width: 1.05rem; height: 1.05rem; accent-color: var(--teal-ink); }
.consent-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.consent-btn { font: inherit; font-weight: 700; font-size: .95rem; padding: .6rem 1rem; border-radius: var(--radius); border: 1.5px solid var(--slate); background: var(--slate); color: var(--white); cursor: pointer; }
.consent-btn:hover { background: #1f2937; }
.consent-link, .link-btn { font: inherit; background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.consent-link { color: var(--teal-ink); font-size: .95rem; margin-left: .25rem; }
.consent-legal { font-size: .82rem !important; margin: .75rem 0 0 !important; color: var(--slate-soft); }
.site-footer .link-btn { color: var(--white); font-size: inherit; }
@media (max-width: 30rem) { .consent { left: .5rem; right: .5rem; bottom: .5rem; padding: 1rem; } .consent-btn { flex: 1 1 100%; } }
@media print { .consent { display: none; } }

/* Statusseite */
.st-list { list-style: none; padding: 0; margin: 1.5rem 0 .75rem; display: grid; gap: .6rem; }
.st-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1.1rem; }
.st-name { font-weight: 700; font-size: 1.1rem; }
.st-pill { display: inline-flex; align-items: center; gap: .45rem; border-radius: 999px; padding: .25rem .75rem; font-size: .9rem; font-weight: 700; }
.st-dot { width: .6rem; height: .6rem; border-radius: 50%; background: currentColor; }
.st-online { background: #dcf5ef; color: #0b6b5c; }
.st-gestoert { background: #fdf0d5; color: #8a5a00; }
.st-offline { background: #fde4e1; color: #a1271a; }
.st-unbekannt { background: var(--mist); color: var(--slate-soft); }
.motion .st-online .st-dot { animation: st-puls 2.4s ease-in-out infinite; }
@keyframes st-puls { 0%, 100% { box-shadow: 0 0 0 0 rgba(11,107,92,.45); } 50% { box-shadow: 0 0 0 5px rgba(11,107,92,0); } }
.st-note { flex-basis: 100%; margin: .1rem 0 0; font-size: .92rem; color: var(--slate-soft); }
.st-meta { font-size: .9rem; color: var(--slate-soft); }
.st-meta .link-btn { color: var(--teal-ink); }
.st-meta .link-btn[disabled] { opacity: .5; cursor: progress; }
.facts-box .st-pill { font-size: .82rem; }

.footer-certs { margin: 0 0 .4rem; }
.footer-certs a { color: inherit; }
.certs h3 { margin-top: 0; }

.checklist { list-style: none; padding: 0; display: grid; gap: .6rem; }
.checklist li { position: relative; padding: .75rem 1rem .75rem 2.6rem; background: var(--mist); border-radius: 10px; }
.checklist li::before { content: ""; position: absolute; left: 1rem; top: 1.05rem; width: .9rem; height: .5rem; border-left: 3px solid var(--teal-ink); border-bottom: 3px solid var(--teal-ink); transform: rotate(-45deg); }
.so-ectool { display: block; margin-top: .3rem; font-size: .92rem; color: var(--teal-ink); }
.measure-h { margin-top: 2rem; }

/* Familienunternehmen */
.gf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 15rem)); gap: 1rem; margin: 1.25rem 0 1.5rem; }
.gf-card { margin: 0; }
.gf-card img, .family-photos img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; background: var(--mist); }
.gf-card figcaption { display: flex; flex-direction: column; margin-top: .5rem; }
.gf-card figcaption span { font-size: .9rem; color: var(--slate-soft); }
.family-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.family-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.family-facts dt { font-size: 1.5rem; font-weight: 700; color: var(--teal-ink); }
.family-facts dd { margin: .2rem 0 0; font-size: .9rem; color: var(--slate-soft); }
.family-photos { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.family-photos figure { margin: 0; }
.family-photos figcaption { font-size: .9rem; font-weight: 700; margin-top: .4rem; text-align: center; }
@media (max-width: 52rem) {
  .family-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .family-photos { max-width: 24rem; }
  .family-facts { grid-template-columns: 1fr; gap: .6rem; }
}
@media (max-width: 30rem) { .gf-grid { grid-template-columns: 1fr 1fr; } }

.gf-quote { margin: .5rem 0 0; padding: 0 0 0 .75rem; border-left: 3px solid var(--teal); font-weight: 400; font-style: italic; font-size: .92rem; line-height: 1.45; color: var(--slate); text-align: left; }
.gf-quote p { margin: 0; }

.tarif-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; margin: 1rem 0 .5rem; }
.tarif-gruppe { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: 10px; padding: .9rem 1.1rem; }
.tarif-gruppe h3 { font-size: 1.02rem; margin: 0 0 .5rem; display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.tarif-n { font-size: .8rem; font-weight: 700; color: var(--teal-ink); background: var(--teal-soft); border-radius: 999px; padding: .05rem .55rem; }
.tarif-gruppe ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .25rem; font-size: .95rem; }

.schnitt-info { font-size: .9rem; color: var(--slate-soft); margin: 0 0 .5rem; }
.schnitt-mehr { list-style: none; margin-left: -1.1rem; font-style: italic; color: var(--slate-soft); }

/* Fußbereich */
.site-footer { background: var(--slate); color: #d9e0e8; padding: 3rem 0 2rem; font-size: .95rem; }
.site-footer a { color: var(--white); }
.site-footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer h2 { font-size: 1rem; color: var(--white); margin: 0 0 .6rem; }

.todo { background: #fff6d6; outline: 1px dashed #c99a00; padding: 0 .2em; }

@media (max-width: 60rem) {
  .hero .wrap, .place { grid-template-columns: 1fr; }
  .areas { grid-template-columns: 1fr 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 36rem) {
  .site-header .wrap { padding-top: .7rem; padding-bottom: .3rem; }
  .facts-box, .legal .facts-box { grid-template-columns: 1fr; gap: 0; }
  .facts-box dd { margin-bottom: .6rem; }
  .matrix.stack, .matrix.stack tbody, .matrix.stack tr { display: block; }
  .matrix.stack thead { display: none; }
  .matrix.stack tr:not(.grp) { display: grid; grid-template-columns: 2.2rem 1fr; border-bottom: 1px solid var(--line); padding: .5rem 0; }
  .matrix.stack tr:not(.grp) > * { border: 0; padding: .1rem .5rem; width: auto; }
  .matrix.stack .why { grid-column: 2; }
  .matrix.stack tr.grp th { display: block; }
  .areas, .facts { grid-template-columns: 1fr; }
  .laws li { grid-template-columns: 1fr; gap: .2rem; }
  .nav { margin-left: 0; }
  .site-header { position: static; }
  .topbar ul { justify-content: flex-start; }
  .site-footer .cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .site-header, .matrix-tools, .cta, .site-footer { display: none; } }
