/* massnahmenwerk.de – Farben nur über Tokens mit light-dark(), color-scheme am <html> aus dem Keks „thema“
   (Doktrin: Hell/Dunkel/Gerät). Keine Fremdschriften.
   Palette seit 11.11.2026: Tintenblau + Kupfer (vorher Waldgrün/Gold der Gründer-Schmiede). Grund: Die Plattform ist der
   neutrale Rahmen, auf dem jeder Anbieter mit SEINER Farbe auftritt (--anbieter, aus /anbieter.css); trüge die Plattform
   selbst Grün, sähe jedes Profil wie die Gründer-Schmiede aus. Blau steht für Verlässlichkeit gegenüber Behörden und
   Trägern, Kupfer für das „Werk“. Kontrast gemessen: Kupfer #b4541f auf Weiß 5,0 : 1, auf dem Grund 4,6 : 1. */
:root { color-scheme: light; }
:root[data-thema="dunkel"] { color-scheme: dark; }
:root[data-thema="geraet"] { color-scheme: light dark; }
:root {
  --grund: light-dark(#f5f6f8, #10161f);
  --flaeche: light-dark(#ffffff, #18202b);
  --linie: light-dark(#d9dee6, #2c3746);
  --text: light-dark(#18212e, #e6e9ee);
  --leise: light-dark(#566173, #9aa6b5);
  --haupt: light-dark(#1e3a5f, #9ec1e6);
  --zart: light-dark(#e7edf5, #1d2a3a);
  --akzent: light-dark(#b4541f, #e8a070);
  --knopf: light-dark(#1e3a5f, #9ec1e6);
  --auf-knopf: light-dark(#ffffff, #0d1520);
  --fehler: light-dark(#9b2c1f, #f0a596);
  --fehler-grund: light-dark(#fbe9e5, #3a211c);
  --anbieter: var(--haupt);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grund); color: var(--text); font: 17px/1.6 "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }
a { color: var(--haupt); }
.breit { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.eng { max-width: 720px; }
h1, h2, h3 { color: var(--haupt); line-height: 1.25; font-weight: 600; }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.7rem); margin: .2em 0 .5em; }
h2 { font-size: 1.35rem; margin: 1.6em 0 .5em; }
h3 { font-size: 1.12rem; margin: 0 0 .4em; }
.leise { color: var(--leise); }
.klein { font-size: .88rem; }
.gross { font-size: 1.15rem; max-width: 46em; }

.kopf { border-bottom: 1px solid var(--linie); background: var(--flaeche); }
.kopf .breit { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.marke { font-size: 1.35rem; text-decoration: none; color: var(--text); letter-spacing: .01em; }
.marke b { color: var(--haupt); }
.marke span { color: var(--akzent); }
.thema { display: flex; gap: 4px; font: 14px/1 system-ui, sans-serif; }
.thema a { padding: 6px 10px; border-radius: 999px; text-decoration: none; color: var(--leise); border: 1px solid transparent; }
.thema a[aria-current] { border-color: var(--linie); color: var(--text); background: var(--grund); }

.held { padding: 48px 0 24px; }
.vorzeile { font: 600 13px/1.3 system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--akzent); margin: 0; }

.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; padding: 20px 22px; }
.karte h2 { margin-top: 0; }
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 16px; }
.zwei-spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.schritte { padding-left: 1.2em; }
.schritte li { margin-bottom: .5em; }

.knopf { display: inline-block; background: var(--knopf); color: var(--auf-knopf); border: 0; border-radius: 8px; padding: 12px 22px; font: 600 16px/1.2 system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.knopf:hover { filter: brightness(1.08); }
.knopf:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .pille input:focus-visible + span { outline: 3px solid var(--akzent); outline-offset: 2px; }

.formular { display: grid; gap: 16px; margin-bottom: 48px; }
.formular label { display: block; font: 15px/1.4 system-ui, sans-serif; }
.formular label > input:not([type=radio]):not([type=checkbox]), .formular label > select, .formular label > textarea { display: block; margin-top: 6px; }
.formular input:not([type=radio]):not([type=checkbox]), .formular select, .formular textarea {
  width: 100%; font: 16px/1.4 system-ui, sans-serif; padding: 10px 12px; color: var(--text);
  background: var(--grund); border: 1px solid var(--linie); border-radius: 6px; }
.zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font: 15px/1.4 system-ui, sans-serif; margin-bottom: 8px; padding: 0; }
.pillen { display: flex; flex-wrap: wrap; gap: 8px; }
.pille { display: inline-flex !important; cursor: pointer; position: relative; }
.pille input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pille span { padding: 8px 14px; border: 1px solid var(--linie); border-radius: 999px; background: var(--grund); }
.pille input:checked + span { background: var(--zart); border-color: var(--haupt); color: var(--haupt); font-weight: 600; }
.formular .haken { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.haken input { margin-top: 4px; width: 18px; height: 18px; }
.pflicht { color: var(--fehler); }
.falle { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.meldung { margin: 0; padding: 10px 14px; border-radius: 6px; font: 15px/1.4 system-ui, sans-serif; }
.meldung.fehler { background: var(--fehler-grund); color: var(--fehler); }

.rechtstext { padding-top: 24px; padding-bottom: 48px; }
.rechtstext h2 { font-size: 1.15rem; }
section.eng { padding-top: 40px; padding-bottom: 60px; }

/* ---------- Anbieterprofil (/anbieter/<kennung>) ----------
   Rahmen und Schrift bleiben massnahmenwerk; nur --anbieter (aus /anbieter.css) färbt Band, Titel und Hauptknopf. */
.beispielhinweis { margin-top: 20px; margin-bottom: 0; padding-top: 10px; padding-bottom: 10px; font: 14px/1.5 system-ui, sans-serif;
  background: var(--zart); border: 1px dashed var(--haupt); border-radius: 8px; max-width: 1008px; }
.pfad { font: 14px/1.4 system-ui, sans-serif; color: var(--leise); padding-top: 18px; padding-bottom: 12px; }
.pfad a { color: var(--leise); }
.profilkopf { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; border-top: 6px solid var(--anbieter); }
.profilkopf h1 { color: var(--anbieter); margin-bottom: .3em; }
.profilkopf .gross { margin-top: 0; }
/* Das Logo ist dunkle Schrift ohne Grund: im Dunkelmodus verschwände es, deshalb steht es immer auf einer hellen Insel. */
.logoinsel { justify-self: start; background: #ffffff; border: 1px solid var(--linie); border-radius: 8px; padding: 12px 16px; color-scheme: light; }
.logoinsel img { display: block; width: 280px; max-width: 100%; height: auto; }
.knopfzeile { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 0; }
.anbieterknopf { background: var(--anbieter); }
.zweitknopf { background: transparent; color: var(--haupt); border: 1px solid var(--linie); }
.siegel { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.siegel li { padding: 14px 18px; display: grid; gap: 2px; font: 15px/1.4 system-ui, sans-serif; border-left: 4px solid var(--akzent); }
.siegel b { font-size: 1.02rem; color: var(--text); }
.profilraster { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; padding-bottom: 24px; }
.massnahme { margin-bottom: 14px; }
.massnahme p { margin: 0 0 .6em; }
.pillen.statisch { list-style: none; padding: 0; margin: 0; }
.pillen.statisch li { padding: 5px 12px; border: 1px solid var(--linie); border-radius: 999px; background: var(--zart); font: 14px/1.3 system-ui, sans-serif; }
.haken-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.haken-liste li { position: relative; padding-left: 28px; }
.haken-liste li::before { content: "✓"; position: absolute; left: 4px; top: 0; color: var(--akzent); font-weight: 700; }
.zahlen { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.zahlen li { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; padding: 14px 16px; display: grid; }
.zahlen b { font-size: 1.7rem; line-height: 1.1; color: var(--anbieter); }
.zahlen span { font: 14px/1.4 system-ui, sans-serif; color: var(--leise); }
.seitenspalte { display: grid; gap: 16px; padding-top: 28px; }
.seitenspalte h2 { font-size: 1.1rem; margin-bottom: .6em; }
.seitenspalte p { margin: 0 0 .8em; }
.eckdaten { margin: 0; display: grid; gap: 2px; }
.eckdaten dt { font: 600 13px/1.3 system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--leise); margin-top: 10px; }
.eckdaten dt:first-child { margin-top: 0; }
.eckdaten dd { margin: 0; }
.kontaktliste { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; overflow-wrap: anywhere; }
.kontaktliste .leise { display: block; font: 13px/1.3 system-ui, sans-serif; }
.quellzeile { padding-bottom: 32px; }
/* Titelbild: liegt oben in der Kopfkarte, randlos; das Logo rückt halb darüber. */
.profilkopf.mit-titelbild { padding-top: 0; overflow: hidden; }
.titelbild { display: block; justify-self: stretch; width: auto; min-width: 0; max-width: none; margin: 0 -22px; height: clamp(110px, 22vw, 200px); object-fit: cover; }
.mit-titelbild .logoinsel { margin-top: -48px; position: relative; box-shadow: 0 2px 10px rgb(0 0 0 / .12); }
/* Personen: Foto oder Avatar, gleich groß, damit niemand ohne Foto „kleiner“ wirkt. */
.team { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.team li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 16px; }
.team li > span { display: grid; gap: 2px; }
.team .leise { font: 14px/1.4 system-ui, sans-serif; }
.avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.avatar-initialen { display: grid; place-items: center; background: var(--anbieter); color: var(--auf-knopf); font: 600 24px/1 system-ui, sans-serif; letter-spacing: .04em; }
/* Galerie: Raster, Bilder gleich hoch beschnitten; Unterschrift sagt, was zu sehen ist. */
.galerie { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.galerie figure { margin: 0; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; overflow: hidden; }
.galerie img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.galerie figcaption { padding: 8px 12px; font: 14px/1.4 system-ui, sans-serif; color: var(--leise); }
@media (max-width: 800px) {
  .profilraster { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

.fuss { border-top: 1px solid var(--linie); padding: 20px 0 32px; font-size: .9rem; color: var(--leise); }
.fuss p { margin: .3em 0; }
.fuss a { color: var(--leise); }
