/* NextRD – Farben und Schrift aus der NextRD-CIRS-Tutorialseite übernommen */
:root {
  --himmel: #e8f3f7;
  --flaeche: #ffffff;
  --marine: #0a2c52;
  --schild: #245b8a;
  --petrol: #1d5b6e;
  --petrol-text: #ffffff;
  --linie: #c3d9e4;
  --leise: #4d6680;
  --gruen: #2f7a57;
  --gruen-flaeche: #e1f1e8;
  --markiert: #d7e9f3;
  --schrift: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --himmel: #0d1c2b; --flaeche: #13263a; --marine: #e3eef6; --schild: #8cc0ea;
    --petrol: #123d4c; --linie: #28425b; --leise: #9db3c7; --gruen: #6cc79a;
    --gruen-flaeche: #173a2c; --markiert: #1c3a57;
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .logo-dunkel { display: none; }
  :root:not([data-theme="light"]) .logo-hell { display: block; }
}
:root[data-theme="dark"] {
  --himmel: #0d1c2b; --flaeche: #13263a; --marine: #e3eef6; --schild: #8cc0ea;
  --petrol: #123d4c; --linie: #28425b; --leise: #9db3c7; --gruen: #6cc79a;
  --gruen-flaeche: #173a2c; --markiert: #1c3a57;
  color-scheme: dark;
}
:root[data-theme="dark"] .logo-dunkel { display: none; }
:root[data-theme="dark"] .logo-hell { display: block; }
.logo-hell { display: none; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--himmel);
  color: var(--marine);
  font: 17px/1.55 var(--schrift);
}
img { max-width: 100%; }
a { color: var(--schild); }
:focus-visible { outline: 3px solid var(--schild); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sprung { position: absolute; left: -9999px; }
.sprung:focus { left: 16px; top: 16px; background: var(--flaeche); padding: 8px 12px; z-index: 20; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; text-wrap: balance; margin: 0; }
p { margin: 0; }
.breite { max-width: 1180px; margin: 0 auto; padding-inline: 24px; }

/* ---------- Kopfleiste ---------- */
.leiste {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: color-mix(in srgb, var(--himmel) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linie);
}
.leiste .breite { display: flex; align-items: center; gap: 32px; min-height: 68px; }
.marke-link { display: block; flex: none; }
.marke-link img { height: 42px; width: auto; }
.hauptnav { display: flex; gap: 24px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.hauptnav a { color: var(--marine); text-decoration: none; font-weight: 500; font-size: 0.97rem; }
.hauptnav a:hover { color: var(--schild); text-decoration: underline; }

.knopf {
  display: inline-block;
  font: inherit; font-weight: 600; font-size: 0.98rem;
  padding: 10px 20px; border-radius: 999px;
  background: var(--marine); color: var(--himmel);
  border: 1.5px solid var(--marine); text-decoration: none; white-space: nowrap;
}
.knopf:hover { background: var(--schild); border-color: var(--schild); }
.knopf.zweit { background: var(--flaeche); color: var(--schild); border-color: var(--schild); }
.knopf.zweit:hover { background: var(--schild); color: var(--flaeche); }
.hauptnav .knopf { color: var(--himmel); padding: 8px 18px; }
.hauptnav .knopf:hover { text-decoration: none; }

/* ---------- Einstieg ---------- */
.einstieg {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  padding-block: 64px 72px;
  align-items: start;
}
.zeile-oben { font-size: 0.98rem; font-weight: 600; color: var(--schild); margin-bottom: 12px; }
.einstieg h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1.04; margin-bottom: 22px; }
.einstieg h1 span { display: block; color: var(--schild); }
.einstieg .einleitung { font-size: 1.15rem; max-width: 52ch; margin-bottom: 30px; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Abschnitte ---------- */
.abschnitt { padding-block: 72px; border-top: 1px solid var(--linie); }
.abschnitt-kopf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 56px; align-items: end; margin-bottom: 36px; }
.abschnitt-kopf h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.abschnitt-kopf p { color: var(--leise); max-width: 58ch; }

/* Vorzeige-Anwendung */
.vorzeige {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
}
.vorzeige-bild { position: relative; background: var(--markiert); padding: 32px 0 32px 32px; display: flex; align-items: center; }
.vorzeige-bild img { display: block; width: 100%; height: auto; border-radius: 10px 0 0 10px; box-shadow: 0 10px 30px rgba(10, 44, 82, 0.18); }
.vorzeige-text { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.vorzeige-text h3 { font-size: 1.8rem; }
.vorzeige-text .unterzeile { font-weight: 500; color: var(--schild); }
.vorzeige-text .knoepfe { margin-top: auto; padding-top: 8px; }

/* Betrieb */
.betrieb { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.betrieb-karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.betrieb-karte h3 { font-size: 1.45rem; }
.betrieb-karte .fuer { font-weight: 500; color: var(--schild); }
.gleich { margin-top: 20px; padding: 16px 20px; border-radius: 12px; background: var(--markiert); font-size: 0.97rem; }

/* Schulung – Band in der Farbe der App-Kopfleiste */
.band { background: var(--petrol); color: var(--petrol-text); }
.band .breite { padding-block: 64px; }
.band-kopf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 56px; align-items: end; margin-bottom: 32px; }
.band h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.band p { opacity: 0.92; max-width: 56ch; }
.band :focus-visible { outline-color: #fff; }
.filme { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
.film { display: grid; gap: 12px; }
.film video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: #0a2c52; }
.film h3 { font-size: 1.15rem; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.film h3 span { font-size: 0.85rem; font-weight: 500; opacity: 0.8; font-variant-numeric: tabular-nums; white-space: nowrap; }
.film p { font-size: 0.95rem; }
.band .hinweis { margin-top: 28px; font-size: 0.92rem; opacity: 0.85; }
.band .hinweis a { color: #fff; }
.band .knoepfe { margin-top: 28px; }
.band .knopf.hell { background: #fff; color: var(--petrol); border-color: #fff; }
.band .knopf.hell:hover { background: transparent; color: #fff; }

/* Kontakt */
.kontakt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.kontakt h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 14px; }
.kontakt > div > p { color: var(--leise); max-width: 52ch; }
.adresse { font-size: 1.15rem; font-weight: 600; user-select: all; }

.fuss { border-top: 1px solid var(--linie); padding-block: 28px 40px; color: var(--leise); font-size: 0.9rem; }
.fuss .breite { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.fuss img { height: 30px; width: auto; }
.fuss nav { display: flex; gap: 20px; margin-left: auto; }
.fuss a { color: var(--leise); }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 960px) {
  .einstieg, .kontakt { grid-template-columns: 1fr; gap: 36px; }
  .band-kopf { grid-template-columns: 1fr; }
  .vorzeige { grid-template-columns: 1fr; }
  .abschnitt-kopf { grid-template-columns: 1fr; }
  .hauptnav a:not(.knopf) { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .breite { padding-inline: 16px; }
  .marke-link img { height: 34px; }
  .einstieg { padding-block: 36px 48px; }
  .abschnitt { padding-block: 52px; }
  .betrieb, .filme { grid-template-columns: 1fr; }
  .vorzeige-text, .betrieb-karte { padding: 22px; }
  .fuss nav { margin-left: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .knopf { transition: background-color .15s, border-color .15s, color .15s; }
}

/* ---------- Rechtsseiten (Impressum, Datenschutz) ---------- */
.rechtstext { max-width: 760px; padding-block: 56px 72px; }
.rechtstext h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); margin-bottom: 12px; }
.rechtstext .einleitung { color: var(--leise); margin-bottom: 36px; }
.rechtstext h2 { font-size: 1.3rem; margin: 40px 0 12px; }
.rechtstext h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.rechtstext p, .rechtstext ul { margin: 0 0 12px; }
.rechtstext address { font-style: normal; margin: 0 0 12px; }
.rechtstext ul { padding-left: 1.2em; }
.rechtstext li { margin-bottom: 6px; }
.rechtstext .stand { margin-top: 40px; color: var(--leise); font-size: 0.9rem; }
.vertrauen .abschnitt-kopf a { color: var(--schild); }


/* ---------- Häufige Fragen ---------- */
.abschnitt-kopf p a { color: var(--schild); }
.fragen { max-width: 900px; }
.fragen summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; font-weight: 600; font-size: 1.05rem; position: relative; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--schild); }
.fragen details[open] summary::after { content: "–"; }
.fragen details p { padding: 0 0 20px; color: var(--leise); max-width: 70ch; }

/* ---------- Einstieg: Verzeichnis der Dienste ---------- */
.verzeichnis { border-top: 2px solid var(--marine); padding-top: 14px; }
.verzeichnis h2 { font-size: 0.98rem; color: var(--leise); margin-bottom: 4px; }
.verzeichnis ol { list-style: none; margin: 0; padding: 0; }
.verzeichnis li { border-bottom: 1px solid var(--linie); }
.verzeichnis a { display: grid; gap: 2px; padding: 14px 0; text-decoration: none; color: var(--marine); }
.verzeichnis b { font-size: 1.15rem; font-weight: 600; }
.verzeichnis span { color: var(--leise); font-size: 0.93rem; }
.verzeichnis a:hover b { color: var(--schild); text-decoration: underline; }
.verzeichnis > p { margin-top: 14px; font-size: 0.88rem; color: var(--leise); }

/* ---------- Projekte ---------- */
.stand { color: var(--gruen); font-weight: 600; font-size: 0.95rem; }
.liste { margin: 0; padding-left: 1.15em; display: grid; gap: 6px; font-size: 0.95rem; }
.liste li::marker { color: var(--schild); }
.nebenbei { font-size: 0.92rem; color: var(--leise); }
.weitere { display: grid; gap: 56px; margin-top: 64px; }
.projekt { display: grid; gap: 48px; align-items: center; padding-top: 48px; border-top: 1px solid var(--linie); }
.projekt.hoch { grid-template-columns: minmax(0, 1fr) 280px; }
.projekt.breit { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.projekt h3 { font-size: 1.8rem; }
.projekt .unterzeile { font-weight: 500; color: var(--schild); margin: 4px 0 14px; }
.projekt-text > p { margin-bottom: 14px; max-width: 62ch; }
.steckbrief { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; margin: 20px 0; font-size: 0.95rem; }
.steckbrief dt { font-weight: 600; }
.steckbrief dd { margin: 0; color: var(--leise); }
.verweise { font-weight: 600; }
.projekt-bild { margin: 0; }
.projekt-bild img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--linie); }
.projekt-bild.handy img { border-radius: 24px; }
.projekt-bild figcaption { font-size: 0.85rem; color: var(--leise); margin-top: 10px; }
.auch { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--linie); max-width: 80ch; }

/* ---------- Vertrauen und Entwicklung: Text statt Kacheln ---------- */
.grundsatz-liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin: 0; }
.grundsatz-liste div { border-top: 1px solid var(--linie); padding: 18px 0 28px; }
.grundsatz-liste dt { font-weight: 600; font-size: 1.08rem; margin-bottom: 6px; }
.grundsatz-liste dd { margin: 0; color: var(--leise); font-size: 0.95rem; }
.zwei-spalten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 56px; }
.zwei-spalten h3 { font-size: 1.2rem; margin-bottom: 8px; }
.zwei-spalten p { color: var(--leise); max-width: 56ch; }

/* ---------- Kontaktwege ---------- */
.wege { margin: 0; }
.wege div { border-top: 1px solid var(--linie); padding: 12px 0; display: grid; gap: 2px; }
.wege div:last-child { border-bottom: 1px solid var(--linie); }
.wege dt { color: var(--leise); font-size: 0.85rem; }
.wege dd { margin: 0; font-weight: 600; }
.wege a { color: var(--marine); }

@media (max-width: 960px) {
  .projekt.hoch, .projekt.breit { grid-template-columns: 1fr; gap: 28px; }
  .projekt-bild.handy { max-width: 280px; }
  .projekt.breit .projekt-bild { order: 2; }
  .grundsatz-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grundsatz-liste, .zwei-spalten { grid-template-columns: 1fr; }
  .steckbrief { grid-template-columns: 1fr; gap: 2px; }
  .steckbrief dd { margin-bottom: 8px; }
  .projekt h3 { font-size: 1.5rem; }
}

/* ---------- Videos ---------- */
.film.gross { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.film-text { display: grid; gap: 10px; align-content: start; }
.film.gross h3 { font-size: 1.5rem; }
@media (max-width: 960px) { .film.gross { grid-template-columns: 1fr; } }
.film-rolle { font-size: 0.85rem; font-weight: 600; color: #bfe3ee; }
.film .mitlesen summary { cursor: pointer; font-size: 0.9rem; font-weight: 600; color: #fff; }
.film .mitlesen p { margin-top: 10px; font-size: 0.9rem; line-height: 1.6; opacity: 0.88; max-width: none; }

/* ---------- Projekt mit Bild rechts (KI112) ---------- */
.projekt.quer { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }

/* ---------- Datenschutz-Kacheln ---------- */
.de-linie {
  display: block; width: 132px; height: 6px; margin-top: 18px; border-radius: 1px;
  background: linear-gradient(90deg, #000 0 33.34%, #dd0000 33.34% 66.67%, #ffce00 66.67%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--marine) 18%, transparent);
}
.flagge {
  display: inline-block; width: 21px; height: 14px; margin-left: 6px; vertical-align: 1px; border-radius: 2px;
  background: linear-gradient(#000 0 33.34%, #dd0000 33.34% 66.67%, #ffce00 66.67%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--marine) 22%, transparent);
}
.kacheln { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.kacheln li { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; padding: 24px 24px 26px; }
.kacheln li.de { border-color: color-mix(in srgb, var(--marine) 45%, var(--linie)); }
.kachel-zeichen { display: block; width: 30px; height: 30px; color: var(--schild); margin-bottom: 14px; }
.kachel-zeichen svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.kacheln h3 { font-size: 1.12rem; margin-bottom: 8px; display: flex; align-items: center; }
.kacheln p { color: var(--leise); font-size: 0.95rem; }
@media (max-width: 960px) {
  .kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projekt.quer { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .kacheln { grid-template-columns: 1fr; }
}

/* ---------- Kapitelstruktur ---------- */
.abschnitt.kapitel { border-top: 2px solid var(--marine); }
#cirs { padding-top: 64px; }
#projekte .weitere { margin-top: 0; }
#projekte .weitere > .projekt:first-child { border-top: 0; padding-top: 0; }

/* Häufige Fragen nach Themen: Thema links, Fragen rechts */
.fragen { max-width: none; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 0 48px; }
.fragen-gruppe { font-size: 1.05rem; color: var(--schild); padding-top: 18px; margin-bottom: 12px; }
.fragen-liste { margin-bottom: 36px; }
.fragen-liste details { border-top: 1px solid var(--linie); }
.fragen-liste details:last-child { border-bottom: 1px solid var(--linie); }
@media (max-width: 760px) {
  .fragen { grid-template-columns: 1fr; }
  .fragen-gruppe { padding-top: 0; }
}

/* ---------- Blog: Übersicht ---------- */
.blog { padding-block: 56px 72px; }
.blog-kopf { max-width: 760px; margin-bottom: 40px; }
.blog-kopf h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); margin-bottom: 12px; }
.blog-einleitung p { color: var(--leise); font-size: 1.1rem; max-width: 58ch; }
.beitraege { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--marine); }
.beitrag { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px 32px; padding: 22px 0 24px; border-bottom: 1px solid var(--linie); }
.beitrag time { color: var(--leise); font-size: 0.92rem; font-variant-numeric: tabular-nums; padding-top: 4px; }
.beitrag h2, .beitrag h3 { font-size: 1.35rem; margin-bottom: 6px; }
.beitrag h2 a, .beitrag h3 a { color: var(--marine); text-decoration: none; }
.beitrag h2 a:hover, .beitrag h3 a:hover { color: var(--schild); text-decoration: underline; }
.beitrag p { color: var(--leise); max-width: 70ch; font-size: 0.97rem; }
.alle-beitraege { margin-top: 20px; font-weight: 600; }
.blaettern { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; font-weight: 600; }
.blaettern a[rel="next"] { margin-left: auto; }
.feed-hinweis { margin-top: 40px; font-size: 0.9rem; color: var(--leise); }
.feed-hinweis a { color: var(--leise); }

/* ---------- Blog: Artikel ---------- */
.artikel-rahmen { padding-block: 56px 72px; }
.artikel { max-width: 720px; }
.artikel-zeile { color: var(--leise); font-size: 0.92rem; margin-bottom: 14px; }
.artikel-zeile a { color: var(--leise); }
.artikel-kopf h1 { font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.08; margin-bottom: 16px; }
.artikel-vorspann { font-size: 1.18rem; color: var(--leise); max-width: 58ch; }
.artikel-bild { margin: 36px 0 0; }
.artikel-bild img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--linie); }
.artikel-bild figcaption, .artikel-text figcaption { font-size: 0.85rem; color: var(--leise); margin-top: 10px; }
.artikel-text { margin-top: 36px; font-size: 1.06rem; line-height: 1.68; }
.artikel-text > * + * { margin-top: 1.1em; }
.artikel-text h2 { font-size: 1.55rem; margin-top: 2em; }
.artikel-text h3 { font-size: 1.2rem; margin-top: 1.6em; }
.artikel-text ul, .artikel-text ol { padding-left: 1.3em; }
.artikel-text li + li { margin-top: 0.35em; }
.artikel-text li::marker { color: var(--schild); }
.artikel-text blockquote { margin-inline: 0; padding-left: 20px; border-left: 2px solid var(--marine); font-size: 1.12rem; }
.artikel-text img { display: block; height: auto; border-radius: 10px; border: 1px solid var(--linie); }
.artikel-text figure { margin-inline: 0; }
.artikel-text hr { border: 0; border-top: 1px solid var(--linie); margin-block: 2em; }
.artikel-text code { font-size: 0.92em; background: var(--markiert); padding: 1px 5px; border-radius: 4px; }
.artikel-text pre { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; padding: 16px; overflow-x: auto; }
.artikel-text pre code { background: none; padding: 0; }
.artikel-text table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.artikel-text th, .artikel-text td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--linie); }
.artikel-weiter { max-width: 720px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 56px; padding-top: 20px; border-top: 2px solid var(--marine); }
.artikel-weiter a { display: grid; gap: 2px; text-decoration: none; color: var(--marine); font-weight: 600; }
.artikel-weiter a span { color: var(--leise); font-weight: 400; font-size: 0.85rem; }
.artikel-weiter a:hover { color: var(--schild); text-decoration: underline; }
.artikel-weiter a[rel="next"] { grid-column: 2; text-align: right; }
@media (max-width: 640px) {
  .beitrag { grid-template-columns: 1fr; gap: 4px; }
  .blog, .artikel-rahmen { padding-block: 36px 52px; }
  .artikel-weiter { grid-template-columns: 1fr; }
  .artikel-weiter a[rel="next"] { grid-column: auto; text-align: left; }
}

/* ---------- Beratung: Leistungsfelder ---------- */
.felder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.feld { border-top: 2px solid var(--marine); padding: 20px 0 40px; display: grid; gap: 12px; align-content: start; }
.feld h3 { font-size: 1.45rem; }
.feld h3 a { color: var(--marine); text-decoration: none; }
.feld h3 a:hover { color: var(--schild); text-decoration: underline; }
.feld > p { max-width: 58ch; }
.feld .liste { color: var(--leise); }
.feld .werkzeug { font-size: 0.93rem; color: var(--leise); padding-top: 4px; }
.feld .werkzeug a { font-weight: 600; }

/* ---------- Beratung: Vorgehen ---------- */
.schritte { list-style: none; margin: 0; padding: 0; counter-reset: schritt; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 28px; }
.schritte li { counter-increment: schritt; border-top: 1px solid var(--linie); padding-top: 16px; }
.schritte li::before { content: counter(schritt); display: block; font-size: 2.2rem; font-weight: 600; line-height: 1; color: var(--schild); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.schritte h3 { font-size: 1.1rem; margin-bottom: 8px; }
.schritte p { color: var(--leise); font-size: 0.95rem; }

/* ---------- Beratung: Person ---------- */
.person { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: start; }
.person h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 18px; }
.person-name { font-size: 1.3rem; font-weight: 600; margin-bottom: 16px; }
.person-name span { display: block; font-size: 1rem; font-weight: 500; color: var(--schild); }
.person-text > p:not(.person-name) { max-width: 60ch; margin-bottom: 12px; }
.person .steckbrief { margin-top: 0; border-top: 2px solid var(--marine); padding-top: 16px; }
.person-bild { margin: 0 0 24px; max-width: 320px; }
.person-bild img { display: block; width: 100%; height: auto; border-radius: 10px; }

/* ---------- Projekte als Beleg, drei Grundsätze ---------- */
.projekt .beleg { font-size: 0.95rem; color: var(--schild); font-weight: 500; margin-bottom: 14px; max-width: 62ch; }
.zwei-spalten.drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.blog .knoepfe { margin-top: 32px; }
.beitrag.ohne-datum { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 960px) {
  .schritte { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .person { grid-template-columns: 1fr; gap: 32px; }
  .zwei-spalten.drei { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .felder, .schritte { grid-template-columns: 1fr; }
  .feld { padding-bottom: 28px; }
}

/* ---------- Themenseite Leistungsfeld ---------- */
.leistung { padding-bottom: 24px; }
.leistung-kopf { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; padding-block: 48px 56px; }
.leistung-titel h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.05; margin-bottom: 18px; }
.leistung-vorspann { font-size: 1.2rem; color: var(--leise); max-width: 40ch; }

/* Schaubild */
.tafel { margin: 0; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; padding: 22px 22px 16px; }
.tafel svg { display: block; width: 100%; height: auto; overflow: visible; }
.tafel figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-top: 12px; font-size: 0.85rem; color: var(--leise); }
.tafel-knoepfe { display: flex; gap: 8px; }
.tafel button { font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--schild); background: none; border: 1px solid var(--linie); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.tafel button:hover { border-color: var(--schild); }
.tafel button[aria-pressed="true"] { background: var(--marine); border-color: var(--marine); color: var(--himmel); }
.t-messung { margin-top: 10px; font-weight: 600; font-size: 0.95rem; min-height: 1.4em; font-variant-numeric: tabular-nums; }
.tafel text { font-family: var(--schrift); }
.t-text { font-size: 12.5px; fill: var(--leise); }
.t-titel { font-size: 14px; font-weight: 600; fill: var(--marine); }
.t-raum { font-weight: 600; fill: var(--marine); }

/* Meldeweg */
.t-weg { fill: none; stroke-width: 2; }
.t-gestrichelt { stroke: var(--leise); stroke-dasharray: 5 6; }
.t-digital { stroke: var(--schild); }
.t-knoten { fill: var(--flaeche); stroke: var(--leise); stroke-width: 2; transition: fill .3s, stroke .3s; }
.t-knoten.an { fill: var(--markiert); stroke: var(--schild); }
.t-knoten.da { fill: var(--gruen); stroke: var(--gruen); }
.t-punkt { fill: var(--schild); }
.t-punkt.t-papier { fill: var(--marine); }

/* Spaghetti */
.t-wand { fill: none; stroke: var(--marine); stroke-width: 2; }
.t-fahrzeug { fill: var(--markiert); stroke: var(--schild); stroke-width: 1.5; }
.t-lauf { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: opacity .3s; }
.t-vorher { stroke: #c0392b; }
.t-nachher { stroke: var(--gruen); stroke-width: 3; opacity: 0; }
.t-start { fill: var(--marine); }
.t-wagen { opacity: 0; transition: opacity .4s; }
.t-wagen rect { fill: var(--gruen-flaeche); stroke: var(--gruen); stroke-width: 1.5; }
.ist-nachher .t-wagen { opacity: 1; }

/* CIRS-Kreislauf */
.t-ring { fill: none; stroke: var(--linie); stroke-width: 6; }
.t-fortschritt { fill: none; stroke: var(--schild); stroke-width: 6; stroke-linecap: round; }
.t-schritt circle { fill: var(--flaeche); stroke: var(--linie); stroke-width: 2; transition: fill .3s, stroke .3s; }
.t-nummer { font-size: 13px; font-weight: 600; fill: var(--leise); }
.t-schritt.an circle { fill: var(--schild); stroke: var(--schild); }
.t-schritt.an .t-nummer { fill: #fff; }
.t-schritt.an .t-text { fill: var(--marine); font-weight: 600; }
.t-mitte { font-size: 17px; font-weight: 600; fill: var(--marine); }
.t-mitte-klein { font-size: 13px; }

/* Erreichbarkeit */
.t-bereich { fill: color-mix(in srgb, var(--schild) 9%, transparent); stroke: var(--schild); stroke-width: 1.2; stroke-dasharray: 4 4; }
.t-einwohner circle, .t-einwohner-muster { fill: var(--linie); transition: fill .25s; }
.t-einwohner circle.t-erreicht, .t-einwohner-muster.t-erreicht { fill: var(--schild); }
.t-wache { fill: var(--marine); }
.t-luecke { opacity: 0; transition: opacity .6s; }
.t-luecke ellipse { fill: none; stroke: #c0392b; stroke-width: 1.8; stroke-dasharray: 5 4; }
.t-luecke text { fill: #c0392b; font-weight: 600; }
.fertig .t-luecke { opacity: 1; }

/* Abschnitte */
.leistung-teil { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px 48px; padding-block: 44px; border-top: 1px solid var(--linie); }
.leistung-teil h2 { font-size: 1.15rem; color: var(--schild); padding-top: 6px; }
.leistung-einstieg { grid-template-columns: minmax(0, 1fr); border-top: 2px solid var(--marine); }
.leistung-einstieg p { font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.45; max-width: 46ch; font-weight: 500; }
.zitat-fragen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.zitat-fragen li { position: relative; padding-left: 30px; font-size: 1.15rem; line-height: 1.45; font-weight: 500; }
.zitat-fragen li::before { content: "„"; position: absolute; left: 0; top: -0.35em; font-size: 2.6rem; line-height: 1; font-weight: 600; color: var(--schild); }
.leistung-vorgehen p { max-width: 64ch; font-size: 1.06rem; line-height: 1.65; }

/* Werkzeug-Band */
.werkzeug-band { background: var(--petrol); color: var(--petrol-text); margin-top: 24px; }
.werkzeug-band .breite { padding-block: 56px; display: grid; gap: 40px; align-items: center; }
.werkzeug-band .mit-bild { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.werkzeug-band figure { margin: 0; }
.werkzeug-band img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28); }
.werkzeug-band h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-bottom: 14px; }
.werkzeug-band p { max-width: 52ch; opacity: 0.94; }
.werkzeug-band a { color: #fff; font-weight: 600; }
.werkzeug-band :focus-visible { outline-color: #fff; }

/* Schluss */
.leistung-schluss { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 56px; padding-block: 56px 48px; }
.leistung-schluss h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-bottom: 10px; }
.leistung-schluss > div > p { color: var(--leise); margin-bottom: 22px; }
.leistung-weiter h2 { font-size: 0.98rem; color: var(--leise); margin-bottom: 8px; }
.leistung-weiter ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); }
.leistung-weiter li { border-bottom: 1px solid var(--linie); }
.leistung-weiter a { display: block; padding: 12px 0; font-weight: 600; font-size: 1.08rem; color: var(--marine); text-decoration: none; }
.leistung-weiter a:hover { color: var(--schild); text-decoration: underline; }

@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .t-vorher, :root:not([data-theme="light"]) .t-luecke ellipse { stroke: #ff8a7a; } :root:not([data-theme="light"]) .t-luecke text { fill: #ff8a7a; } }
@media (max-width: 960px) {
  .leistung-kopf, .leistung-schluss, .werkzeug-band .mit-bild { grid-template-columns: 1fr; }
  .leistung-teil { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .leistung-kopf { padding-block: 32px 40px; gap: 32px; }
  .tafel { padding: 14px 12px 12px; }
  .zitat-fragen { grid-template-columns: 1fr; }
  .leistung-teil { padding-block: 36px; }
}
.tafel-legende { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; width: 100%; }
.tafel-legende i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: -8px; }
.tafel-legende .l-wache { border-radius: 2px; background: var(--marine); }
.tafel-legende .l-erreicht { background: var(--schild); }
.tafel-legende .l-offen { background: var(--linie); }
