/* Gruendungsberatung CRM
   Farben: Kiefer (Aktionen, Wachstum), Ocker (offene Anfragen), sonst ruhiges Grau-Gruen.
   Schrift: Source Sans 3 fuer alles Arbeitende, Source Serif 4 fuer Namen und Seitentitel. */

@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("fonts/source-sans-3-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }

:root {
  --papier: #F2F5F3;
  --flaeche: #FFFFFF;
  --tinte: #18282A;
  --tinte-2: #4B5D5A;
  --tinte-3: #76888A;
  --linie: #D6DEDA;
  --linie-2: #E7ECE9;
  --kiefer: #2C5B4C;
  --kiefer-dunkel: #1D3F34;
  --kiefer-mittel: #7FB096;
  --kiefer-hell: #E0ECE6;
  --ocker: #A06F17;
  --ocker-hell: #F6ECD6;
  --rot: #9E3A30;
  --rot-hell: #F7E4E0;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--papier); color: var(--tinte);
  font: 400 15px/1.5 var(--sans); font-feature-settings: "kern";
}
a { color: var(--kiefer); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--kiefer-dunkel); }
h1, h2, h3 { margin: 0; font-weight: 600; }
h1 { font: 600 28px/1.2 var(--serif); letter-spacing: -0.005em; }
h2 { font: 600 17px/1.3 var(--sans); margin: 28px 0 10px; }
h3 { font: 600 14px/1.3 var(--sans); color: var(--tinte-2); margin: 18px 0 8px; }
p { margin: 0 0 10px; }
:focus-visible { outline: 2px solid var(--kiefer); outline-offset: 2px; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.leise { color: var(--tinte-3); }
.klein { font-size: 13px; }
.nowrap { white-space: nowrap; }
.umbruch { overflow-wrap: anywhere; }
.text { white-space: pre-line; overflow-wrap: anywhere; }
.zahl { font-variant-numeric: tabular-nums; }
th.zahl, td.zahl { text-align: right; }
.inline { display: inline; }

/* ---------- Rahmen ---------- */
.rahmen { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.seitenleiste {
  background: var(--kiefer-dunkel); color: #DCE8E2; padding: 22px 16px 18px;
  display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.marke { color: #fff; text-decoration: none; display: block; padding: 0 6px; }
.marke:hover { color: #fff; }
.marke-name { display: block; font: 600 21px/1.15 var(--serif); hyphens: manual; }
.marke-zusatz { display: block; font-size: 12.5px; line-height: 1.35; color: #A9C3B7; margin-top: 4px; }
.hauptnav { display: flex; flex-direction: column; gap: 1px; }
.hauptnav a {
  color: #DCE8E2; text-decoration: none; padding: 7px 10px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.hauptnav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.hauptnav a[aria-current="page"] { background: rgba(255,255,255,.13); color: #fff; font-weight: 600; }
.zaehler {
  background: var(--ocker-hell); color: #5E420C; font-size: 12px; font-weight: 700;
  border-radius: 999px; padding: 0 7px; line-height: 19px; font-variant-numeric: tabular-nums;
}
.seitenleiste .fuss { margin-top: auto; display: flex; flex-direction: column; gap: 6px; padding: 0 10px; font-size: 13.5px; }
.seitenleiste .fuss a, .seitenleiste .fuss .link { color: #A9C3B7; }
.seitenleiste .fuss a:hover, .seitenleiste .fuss .link:hover { color: #fff; }

.arbeitsflaeche { padding: 18px 36px 64px; max-width: 1360px; width: 100%; }
.globalsuche { margin-bottom: 18px; }
.globalsuche input {
  width: min(520px, 100%); padding: 8px 12px; border: 1px solid var(--linie); border-radius: var(--radius);
  background: var(--flaeche); font: inherit;
}

/* ---------- Knoepfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: 600 14.5px/1 var(--sans); padding: 9px 14px; border-radius: var(--radius);
  border: 1px solid var(--kiefer); background: var(--kiefer); color: #fff; text-decoration: none; cursor: pointer;
  white-space: nowrap;
}
.knopf:hover { background: var(--kiefer-dunkel); border-color: var(--kiefer-dunkel); color: #fff; }
.knopf.zweit { background: var(--flaeche); color: var(--kiefer-dunkel); border-color: var(--linie); }
.knopf.zweit:hover { border-color: var(--kiefer); background: var(--kiefer-hell); }
.knopf.gefahr { background: var(--flaeche); color: var(--rot); border-color: #E3C3BD; }
.knopf.gefahr:hover { background: var(--rot-hell); border-color: var(--rot); }
.knopf.hell { background: #fff; color: var(--kiefer-dunkel); border-color: #fff; }
.knopf.hell:hover { background: var(--kiefer-hell); }
.knopf.klein { padding: 6px 10px; font-size: 13px; }
.erfassen { width: 100%; padding: 10px 14px; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--kiefer); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Kopfzeile ---------- */
.kopfzeile { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 20px; margin-bottom: 18px; }
.kopfzeile .anzahl { color: var(--tinte-3); margin: 0 0 3px; font-variant-numeric: tabular-nums; }
.kopfzeile .aktionen { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.brotkrumen { margin: 0 0 4px; font-size: 13.5px; }
.brotkrumen a { color: var(--tinte-3); }
.untertitel { margin: 6px 0 0; color: var(--tinte-2); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
h1.akte { font-size: 34px; }
.einleitung { max-width: 70ch; color: var(--tinte-2); }

/* ---------- Meldungen ---------- */
.meldungen { margin-bottom: 16px; display: grid; gap: 6px; }
.meldung { margin: 0; padding: 10px 14px; border-radius: var(--radius); border-left: 4px solid var(--kiefer); background: var(--kiefer-hell); }
.meldung.fehler { border-color: var(--rot); background: var(--rot-hell); }
.meldung.hinweis { border-color: var(--ocker); background: var(--ocker-hell); }

/* ---------- Chips, Phase ---------- */
.chip {
  display: inline-block; font-size: 12.5px; line-height: 20px; padding: 0 8px; border-radius: 999px;
  background: var(--linie-2); color: var(--tinte-2); white-space: nowrap; vertical-align: 1px;
}
.chip.erst { background: var(--kiefer-hell); color: var(--kiefer-dunkel); }
.chip.offen { background: var(--ocker-hell); color: #5E420C; }
.berater { font-size: 12.5px; color: var(--tinte-2); border: 1px solid var(--linie); border-radius: 4px; padding: 0 6px; line-height: 19px; }
.phase { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.phase .stufen { display: inline-flex; gap: 2px; align-items: flex-end; }
.phase .stufen i { display: block; width: 4px; background: var(--linie); border-radius: 1px; }
.phase .stufen i:nth-child(1) { height: 6px; }
.phase .stufen i:nth-child(2) { height: 9px; }
.phase .stufen i:nth-child(3) { height: 12px; }
.phase[data-stufe="1"] i:nth-child(-n+1),
.phase[data-stufe="2"] i:nth-child(-n+2),
.phase[data-stufe="3"] i:nth-child(-n+3) { background: var(--kiefer); }

/* ---------- Tabellen ---------- */
.tabellen-rahmen { overflow-x: auto; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 8px; }
.tabelle { width: 100%; border-collapse: collapse; background: var(--flaeche); }
.tabellen-rahmen .tabelle { background: transparent; }
.tabelle th, .tabelle td { text-align: left; padding: 9px 12px; vertical-align: top; border-bottom: 1px solid var(--linie-2); }
.tabelle thead th {
  font-size: 13px; font-weight: 600; color: var(--tinte-2); background: #F7F9F8;
  border-bottom: 1px solid var(--linie); position: sticky; top: 0; white-space: nowrap;
}
.tabelle tbody tr:last-child td { border-bottom: 0; }
.tabelle tr[data-href] { cursor: pointer; }
.tabelle tr[data-href]:hover td { background: #F5F8F6; }
.tabelle td a { font-weight: 600; text-decoration: none; }
.tabelle td a:hover { text-decoration: underline; }
.tabelle td.leer { text-align: center; color: var(--tinte-3); padding: 28px; }
.tabelle .zeile-offen td:first-child { box-shadow: inset 3px 0 0 var(--ocker); }
.tabelle.kompakt th, .tabelle.kompakt td { padding: 6px 10px; }
.kurz { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 46ch; }
.beratungs-tabelle td:nth-child(6), .beratungs-tabelle td:nth-child(7) { min-width: 220px; }
.vergleich tr.abweichend td { background: var(--ocker-hell); }
.vergleich th { font-weight: 600; }

.seiten { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; color: var(--tinte-2); }

/* ---------- Filter ---------- */
.filter {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin-bottom: 16px;
}
.filter .feld { width: 160px; }
.filter .feld.breit2 { width: 300px; }
.filter-knoepfe { display: flex; gap: 8px; }
.haken-gruppe { display: flex; flex-wrap: wrap; gap: 4px 14px; padding-bottom: 8px; }
.schnellwahl { flex-basis: 100%; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13.5px; }

/* ---------- Formulare ---------- */
.feld { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.feld > span { font-size: 13px; font-weight: 600; color: var(--tinte-2); }
.feld small { font-size: 12.5px; color: var(--tinte-3); }
.feld input, .feld select, .feld textarea {
  font: inherit; color: var(--tinte); background: var(--flaeche); width: 100%;
  border: 1px solid #C7D1CD; border-radius: var(--radius); padding: 7px 10px; min-height: 38px;
}
.feld textarea { resize: vertical; line-height: 1.45; }
.feld input:focus, .feld select:focus, .feld textarea:focus { outline: 2px solid var(--kiefer); outline-offset: 0; border-color: var(--kiefer); }
fieldset:disabled .feld input, fieldset:disabled .feld select, fieldset:disabled .feld textarea { background: var(--linie-2); color: var(--tinte-3); }
.haken { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.haken input { width: 17px; height: 17px; accent-color: var(--kiefer); margin: 0; }

.formular { max-width: 1040px; }
.formular > fieldset {
  border: 1px solid var(--linie); border-radius: 8px; background: var(--flaeche);
  padding: 18px 22px 22px; margin: 0 0 18px;
}
.formular legend { font: 600 19px/1.2 var(--serif); padding: 0 6px; margin-left: -6px; }
.formular fieldset.unterfeld { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
.raster { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 16px; }
.raster .breit2 { grid-column: span 2; }
.raster .breit { grid-column: 1 / -1; }
.formular-fuss { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.personwahl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 16px; margin-bottom: 16px; position: relative; }
.personwahl .gewaehlt { grid-column: 1 / -1; margin: 0; padding: 10px 12px; background: var(--kiefer-hell); border-radius: var(--radius); }

/* Vorschlagsliste der Suchfelder */
.feld { position: relative; }
.vorschlaege {
  position: absolute; z-index: 20; top: 100%; left: 0; right: 0; margin: 4px 0 0; padding: 4px; list-style: none;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(24, 40, 42, .14); max-height: 340px; overflow-y: auto;
}
.vorschlaege li { padding: 7px 10px; border-radius: 4px; cursor: pointer; display: flex; flex-direction: column; }
.vorschlaege li span { font-size: 12.5px; color: var(--tinte-3); }
.vorschlaege li[aria-selected="true"], .vorschlaege li:hover { background: var(--kiefer-hell); }
.vorschlaege li.nichts { color: var(--tinte-3); cursor: default; background: none; }

/* ---------- Ueberblick ---------- */
.kennzahlen {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 0 0 10px;
  border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie);
}
.kennzahlen > div { padding: 14px 18px 14px 0; }
.kennzahlen > div + div { padding-left: 18px; border-left: 1px solid var(--linie); }
.kennzahlen dt { font-size: 13.5px; color: var(--tinte-2); }
.kennzahlen dd { margin: 0; }
.kennzahlen dd:not(.neben) { font: 600 32px/1.15 var(--serif); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.kennzahlen dd a { color: var(--tinte); text-decoration: none; }
.kennzahlen dd a:hover { color: var(--kiefer); }
.kennzahlen .neben { font-size: 13px; color: var(--tinte-3); }
.kennzahlen .achtung dd:not(.neben) a { color: var(--ocker); }

.zweispaltig { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 0 40px; }
.zweispaltig.breit-links { grid-template-columns: minmax(0, 1fr) 260px; }
.diagramm { margin: 0; }
.diagramm svg { width: 100%; height: auto; max-height: 260px; display: block; }
.diagramm .erst { fill: var(--kiefer); }
.diagramm .folge { fill: var(--kiefer-mittel); }
.diagramm .basis { stroke: var(--linie); stroke-width: 1; }
.diagramm text { font: 12px var(--sans); fill: var(--tinte-2); text-anchor: middle; }
.diagramm text.wert { font-weight: 600; fill: var(--tinte); font-variant-numeric: tabular-nums; }
.diagramm figcaption { font-size: 13px; color: var(--tinte-2); display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.legende { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.legende.erst { background: var(--kiefer); }
.legende.folge { background: var(--kiefer-mittel); margin-left: 12px; }

.anfragen h2 { display: flex; align-items: center; gap: 8px; }
.anfragen h2::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ocker); }
.anfrage-liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); }
.anfrage-liste li { padding: 12px 0; border-bottom: 1px solid var(--linie); display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.anfrage-name { font-weight: 600; text-decoration: none; }
.anfrage-liste .kurz { font-size: 13.5px; color: var(--tinte-2); }
.anfrage-liste .knopf { margin-top: 4px; }

/* ---------- Detailseiten ---------- */
.detail { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 0 44px; align-items: start; }
.stammdaten h2:first-child, .hauptteil h2:first-child { margin-top: 4px; }
.stammdaten dl, .hauptteil dl { margin: 0; }
.stammdaten dl > div { padding: 7px 0; border-bottom: 1px solid var(--linie-2); }
.stammdaten dt, .hauptteil dt { font-size: 12.5px; color: var(--tinte-3); }
.stammdaten dd, .hauptteil dd { margin: 0; overflow-wrap: anywhere; }
.stammdaten .gross { font: 600 19px/1.3 var(--serif); margin: 0 0 6px; }
.stammdaten .gross a { text-decoration: none; }
.hauptteil dl.lang > div { padding: 12px 0; border-bottom: 1px solid var(--linie); }
.hauptteil dl.lang dt { font-size: 13px; font-weight: 600; color: var(--tinte-2); margin-bottom: 3px; }
.hauptteil dl.lang dd { max-width: 75ch; }
.projekt-liste { list-style: none; margin: 0; padding: 0; }
.projekt-liste li { padding: 6px 0; border-bottom: 1px solid var(--linie-2); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.projekt-liste a { font-weight: 600; text-decoration: none; }
.randaktionen { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--linie); display: flex; flex-wrap: wrap; gap: 8px; }
.team-hinzu { margin-top: 10px; }
.original { margin-top: 24px; padding: 12px 16px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 8px; }
.original summary { cursor: pointer; font-weight: 600; color: var(--tinte-2); }
.original dl > div { display: grid; grid-template-columns: 200px 1fr; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--linie-2); }

/* Zeitleiste: das Beratungsbuch einer Person / eines Projekts */
.verlauf { list-style: none; margin: 8px 0 0; padding: 0; }
.verlauf > li { display: grid; grid-template-columns: 76px 28px minmax(0, 1fr); }
.verlauf .wann { text-align: right; padding-top: 1px; }
.verlauf .tag { display: block; font: 600 16px/1.2 var(--serif); white-space: nowrap; }
.verlauf .jahr { display: block; font-size: 12.5px; color: var(--tinte-3); font-variant-numeric: tabular-nums; }
.verlauf .spur { position: relative; }
.verlauf .spur::before { content: ""; position: absolute; left: 13px; top: 0; bottom: 0; width: 2px; background: var(--linie); }
.verlauf > li:first-child .spur::before { top: 8px; }
.verlauf > li:last-child .spur::before { bottom: auto; height: 10px; }
.verlauf .knoten {
  position: absolute; left: 7px; top: 5px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--flaeche); border: 2px solid var(--kiefer);
}
.verlauf .ist-erst .knoten { background: var(--kiefer); }
.verlauf .ist-offen .knoten { border-color: var(--ocker); border-style: dashed; }
.verlauf .was { padding: 0 0 22px 6px; min-width: 0; }
.verlauf .kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 4px; }
.verlauf .kopf a { font-weight: 600; text-decoration: none; }
.verlauf .kopf a.mehr { font-weight: 400; font-size: 13px; margin-left: auto; color: var(--tinte-3); }
.verlauf .kopf a.mehr:hover { color: var(--kiefer); }
.verlauf p { margin: 0 0 6px; max-width: 75ch; white-space: pre-line; overflow-wrap: anywhere; }
.verlauf .anliegen { font-weight: 600; }
.verlauf .beratungsinhalt { color: var(--tinte); }
.verlauf .ausgang { color: var(--tinte-2); padding-left: 12px; border-left: 2px solid var(--kiefer-hell); }
.verlauf .ausgang span { display: block; font-size: 12px; font-weight: 600; color: var(--tinte-3); }
.verlauf .leer { display: block; color: var(--tinte-3); }

/* ---------- Auswertung, Verteiler ---------- */
.auswertungs-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 0 28px; }
.balken-tabelle td:first-child { width: 70%; }
.minibalken { display: block; width: 100%; height: 4px; margin-top: 4px; }
.minibalken rect { fill: var(--kiefer-mittel); }
.verteiler { max-width: 900px; }
.verteiler-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.verteiler textarea { width: 100%; font: 13.5px/1.5 var(--sans); padding: 10px 12px; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--flaeche); margin: 10px 0 6px; }
.verteiler details { margin-top: 14px; }
.verteiler summary { cursor: pointer; color: var(--kiefer); }
.spalten-liste { columns: 3 220px; padding-left: 18px; }

/* ---------- Anmeldung ---------- */
body.anmeldung { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.anmelde-rahmen {
  display: grid; grid-template-columns: 1fr 1fr; width: min(860px, 100%);
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; overflow: hidden;
}
.anmelde-bild { background: var(--kiefer-dunkel); color: #DCE8E2; padding: 44px 40px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px;
  background-image: linear-gradient(var(--kiefer-dunkel), var(--kiefer-dunkel)); position: relative; }
.anmelde-bild::before {
  /* drei wachsende Balken: dieselbe Phasenmarke wie in der App */
  content: ""; position: absolute; left: 40px; top: 44px; width: 64px; height: 56px;
  background:
    linear-gradient(#CFE3D8, #CFE3D8) 0 100% / 16px 40% no-repeat,
    linear-gradient(#8FBFA5, #8FBFA5) 24px 100% / 16px 70% no-repeat,
    linear-gradient(#fff, #fff) 48px 100% / 16px 100% no-repeat;
}
.anmelde-marke { font: 600 34px/1.1 var(--serif); color: #fff; margin: 0 0 12px; hyphens: manual; }
.anmelde-text { color: #A9C3B7; margin: 0; max-width: 32ch; }
.anmelde-form { padding: 44px 40px; display: flex; flex-direction: column; gap: 14px; }
.anmelde-form h1 { margin-bottom: 4px; }
.anmelde-form .knopf { align-self: flex-start; padding: 10px 22px; }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 1100px) {
  .zweispaltig, .zweispaltig.breit-links, .detail { grid-template-columns: minmax(0, 1fr); }
  .raster, .personwahl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .rahmen { grid-template-columns: 1fr; }
  .seitenleiste { position: static; height: auto; padding: 14px 16px; gap: 12px; }
  .hauptnav { flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  .hauptnav a { white-space: nowrap; }
  .seitenleiste .fuss { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; margin-top: 0; }
  .erfassen { width: auto; align-self: flex-start; }
  .arbeitsflaeche { padding: 16px 16px 48px; }
  .anmelde-rahmen { grid-template-columns: 1fr; }
  .anmelde-bild { min-height: 200px; padding: 28px; }
  .anmelde-bild::before { left: 28px; top: 28px; }
  .anmelde-form { padding: 28px; }
  .filter .feld, .filter .feld.breit2 { width: calc(50% - 6px); }
  h1.akte { font-size: 28px; }
}
@media (max-width: 520px) {
  .raster, .personwahl { grid-template-columns: minmax(0, 1fr); }
  .raster .breit2 { grid-column: auto; }
  .filter .feld, .filter .feld.breit2 { width: 100%; }
  .kennzahlen > div + div { border-left: 0; padding-left: 0; }
  .kennzahlen dd:not(.neben) { font-size: 26px; }
  .verlauf > li { grid-template-columns: 62px 24px minmax(0, 1fr); }
  .original dl > div { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print {
  .seitenleiste, .globalsuche, .aktionen, .filter, .randaktionen, .formular-fuss { display: none !important; }
  .rahmen { display: block; }
  body { background: #fff; }
}
