/* KIplatz Website. Farben und Schrift aus .claude/skills/marke/SKILL.md und aus dem Fenster
   (node-agent/webapp/index.html). Keine Verläufe, flache Karten mit 1-px-Rand; beim Berühren ein kleiner
   weicher Schatten und eine Stufe dunkler (Rainer 16.09.2026). Bauteile: Kopf mit Menü-Knopf am Handy,
   Karten-Raster, Kurz-Kasten, Schaubild, Fenster-Ansicht, Tabellen mit Zebra, Aufklappen, Reiter, Ampel. */

@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/schrift/atkinson-regular.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/schrift/atkinson-bold.woff2) format("woff2"); }

:root {
  --grund: #ffffff; --flaeche: #f4f6f5; --rand: #d9e0dd; --tinte: #1b1f1e; --neben: #5c6663;
  --akzent: #1f6f5b; --akzent-dunkel: #185a4a; --akzent-hell: #e6f1ed; --akzent-linie: #b9d3c9;
  --kopf: #1f3630; --kopf-tinte: #e6ebe9; --kopf-mint: #8fd3bd; --kopf-linie: #35594f;
  --mint: #3f9a7e; --gelb: #b7791f; --rot: #a33a2c;
  --schatten: 0 6px 18px rgba(27, 31, 30, 0.10);
  --radius: 10px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --grund: #15191a; --flaeche: #1e2425; --rand: #2f3a38; --tinte: #e6ebe9; --neben: #a3aeaa;
    --akzent: #3f9a7e; --akzent-dunkel: #8fd3bd; --akzent-hell: #1f3630; --akzent-linie: #35594f;
    --gelb: #d6a24a; --rot: #e07a6c; --schatten: 0 6px 18px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--grund); color: var(--tinte); font-family: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  font-size: 18px; line-height: 1.55; }
::selection { background: var(--akzent-linie); color: #1b1f1e; }
a { color: var(--akzent); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color 120ms ease-out; }
a:hover { color: var(--akzent-dunkel); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 3px; border-radius: 4px; }
img, svg { max-width: 100%; height: auto; }
code { font-family: Consolas, "Cascadia Mono", ui-monospace, monospace; font-size: 0.85em; word-break: break-all; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem); margin: 0 0 16px; letter-spacing: -0.01em; }
h2 { font-size: 1.45rem; margin: 48px 0 12px; }
h3 { font-size: 1.1rem; margin: 28px 0 8px; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 24px; }
li { margin: 6px 0; }
strong { font-weight: 700; }
.klein { font-size: 15px; color: var(--neben); }
.klein a { color: var(--neben); }
hr { border: 0; border-top: 1px solid var(--rand); margin: 40px 0; }

/* Übersprung-Link, nur mit Tastatur sichtbar */
.springen { position: absolute; left: -999px; top: 8px; background: var(--grund); color: var(--tinte); padding: 8px 12px; border: 1px solid var(--rand); border-radius: 6px; z-index: 30; }
.springen:focus { left: 16px; }

/* Kopfleiste: Dunkelgrün über die ganze Breite, Logo, Einträge, Sprache */
.kopf { background: var(--kopf); color: var(--kopf-tinte); border-bottom: 1px solid var(--kopf-linie); position: relative; z-index: 20; }
.kopf-innen { max-width: 1040px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.logo { display: inline-flex; align-items: center; margin-right: auto; }
.logo img { height: 44px; width: auto; display: block; }
.kopf nav { position: relative; }
.kopf nav .liste { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.kopf nav a { color: var(--kopf-tinte); text-decoration: none; padding: 7px 10px; border-radius: 8px; font-size: 15.5px; white-space: nowrap; }
.kopf nav a:hover { background: var(--kopf-linie); color: #fff; }
.kopf nav a[aria-current="page"] { background: var(--kopf-linie); color: var(--kopf-mint); }
.liste-mehr { display: none; }
.menue-knopf { display: none; }
.sprache { font-size: 14px; color: var(--kopf-mint); text-decoration: none; border: 1px solid var(--kopf-linie); padding: 5px 9px; border-radius: 8px; white-space: nowrap; }
.sprache:hover { background: var(--kopf-linie); color: #fff; }
@media (max-width: 860px) {
  .menue-knopf { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--kopf-tinte); border: 1px solid var(--kopf-linie); border-radius: 8px; padding: 6px 12px; font: inherit; font-size: 15px; cursor: pointer; }
  .menue-knopf:hover, .kopf nav.offen .menue-knopf { background: var(--kopf-linie); color: #fff; }
  .kopf nav .liste { display: none; position: absolute; right: 0; top: calc(100% + 8px); background: var(--kopf); border: 1px solid var(--kopf-linie); border-radius: 10px; padding: 6px; min-width: 230px; flex-direction: column; align-items: stretch; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.30); }
  .kopf nav.offen .liste, .ohne-js .kopf nav .liste { display: flex; }
  .ohne-js .kopf nav .liste { position: static; box-shadow: none; border: 0; flex-direction: row; flex-wrap: wrap; }
  .kopf nav .liste a { padding: 10px 12px; font-size: 16px; }
  .liste-mehr { display: flex; flex-direction: column; border-top: 1px solid var(--kopf-linie); margin-top: 6px; padding-top: 6px; }
  .liste-mehr a { color: var(--kopf-mint); font-size: 15px; }
}

/* Seiteninhalt: Lesebreite 70 Zeichen */
main { max-width: 1040px; margin: 0 auto; padding: 40px 16px 64px; }
.text { max-width: 70ch; }
.breit { max-width: none; }
.einleitung { font-size: 1.15em; max-width: 60ch; }

/* Held: Text links, Bild rechts (ab 900 px) */
.held { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; margin-bottom: 8px; }
@media (min-width: 900px) { .held { grid-template-columns: 0.9fr 1.1fr; gap: 40px; } }
.held .fenster-figur { margin: 0; }
.held .fenster { margin: 0 0 8px; }

/* Knöpfe: einer je Fläche in der Akzentfarbe, Nebenknopf mit Rand; klein und ruhig */
.knopf, .knopf-neben { display: inline-block; padding: 9px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; cursor: pointer; border: 1px solid transparent; font-size: 16px; line-height: 1.3; }
.knopf { background: var(--akzent); color: #fff; }
.knopf:hover { background: var(--akzent-dunkel); color: #fff; box-shadow: 0 2px 8px rgba(27, 31, 30, 0.18); transform: translateY(-1px); }
.knopf-neben { background: transparent; color: var(--akzent); border-color: var(--akzent-linie); }
.knopf-neben:hover { background: var(--akzent-hell); color: var(--akzent-dunkel); border-color: var(--akzent); }
.knoepfe { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 8px; }

/* Karten: 1-px-Rand, 20 px innen, eine Sache je Karte; beim Berühren hebt sich die Karte leicht */
.karte { border: 1px solid var(--rand); border-radius: var(--radius); padding: 20px; background: var(--flaeche); margin: 20px 0;
  transition: transform 150ms ease-out, box-shadow 150ms ease-out, border-color 150ms ease-out; }
.karte h2, .karte h3 { margin-top: 0; }
.karte h3 { font-size: 1.15rem; margin-bottom: 6px; }
.karte p:last-child, .karte ul:last-child { margin-bottom: 0; }
a.karte { display: block; color: inherit; text-decoration: none; }
a.karte:hover, .hebt:hover { border-color: var(--akzent-linie); box-shadow: var(--schatten); transform: translateY(-2px); }
a.karte:hover h3, a.karte:hover h2 { color: var(--akzent-dunkel); }
.karte .weiter { color: var(--akzent); font-weight: 700; font-size: 15px; }
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 20px 0; }
.raster .karte { margin: 0; }
.raster.drei { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.zwei { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 720px) { .zwei { grid-template-columns: 1fr 1fr; } }
.symbol { width: 34px; height: 34px; color: var(--akzent); display: block; margin-bottom: 10px; }
.symbol svg { width: 100%; height: 100%; }
.nummer { display: inline-block; width: 30px; height: 30px; border-radius: 50%; background: var(--akzent-hell); color: var(--akzent-dunkel); border: 1px solid var(--akzent-linie); font-weight: 700; text-align: center; line-height: 28px; font-size: 15px; margin-bottom: 8px; }

/* Kurz-Kasten: die drei Sätze, die man mitnimmt */
.kurz { border-left: 4px solid var(--akzent); background: var(--akzent-hell); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin: 20px 0 28px; max-width: 70ch; }
.kurz ul { margin: 0; padding-left: 20px; }
.kurz li { margin: 4px 0; }
.kurz p { margin: 0; }

/* Zahlen der Tagesbilanz: Wort dazu, nie eine nackte Zahl */
.zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 12px 0 4px; }
.zahl { border: 1px solid var(--rand); border-radius: 8px; padding: 12px 14px; background: var(--grund); transition: border-color 150ms; }
.zahl:hover { border-color: var(--akzent-linie); }
.zahl b { display: block; font-size: 1.6rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.zahl span { font-size: 15px; color: var(--neben); }

/* Zustand: Punkt plus Wort */
.punkt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--akzent); margin-right: 6px; vertical-align: middle; }
.punkt.gelb { background: var(--gelb); }
.punkt.rot { background: var(--rot); }

/* Ampel je Satz, wie im Fenster: dünner Unterstrich in der Zustandsfarbe */
.q-gruen, .q-gelb, .q-rot { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.q-gruen { text-decoration-color: var(--mint); }
.q-gelb { text-decoration-color: var(--gelb); }
.q-rot { text-decoration-color: var(--rot); }
.legende { display: flex; gap: 16px; flex-wrap: wrap; font-size: 15px; color: var(--neben); margin: 8px 0 0; }
.legende span::before { content: ""; display: inline-block; width: 22px; height: 3px; margin-right: 6px; vertical-align: middle; border-radius: 2px; }
.legende .gruen::before { background: var(--mint); }
.legende .gelb::before { background: var(--gelb); }
.legende .rot::before { background: var(--rot); }

/* Schritte als Liste mit Nummer */
ol.schritte { counter-reset: s; list-style: none; padding: 0; }
ol.schritte li { counter-increment: s; position: relative; padding-left: 44px; margin: 14px 0; }
ol.schritte li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 30px; height: 30px; border-radius: 50%; background: var(--akzent-hell); color: var(--akzent-dunkel); border: 1px solid var(--akzent-linie); font-weight: 700; text-align: center; line-height: 28px; font-size: 15px; }

/* Tabellen: Zebra, Zeile hebt sich beim Berühren; erste Spalte fett beim Vergleich */
.tabelle { overflow-x: auto; margin: 12px 0 20px; }
table { border-collapse: collapse; width: 100%; margin: 12px 0 20px; font-size: 16px; }
.tabelle table { margin: 0; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--rand); vertical-align: top; }
th { font-weight: 700; color: var(--neben); font-size: 15px; background: var(--flaeche); }
tbody tr:nth-child(even) { background: color-mix(in srgb, var(--flaeche) 55%, var(--grund)); }
tbody tr:hover { background: var(--akzent-hell); }
.vergleich td:first-child { font-weight: 700; width: 30%; }
td .ja { color: var(--akzent); font-weight: 700; }
td .nein { color: var(--rot); font-weight: 700; }

/* Aufklappen: Frage als Zeile, Antwort darunter; Plus dreht sich */
details.frage { border: 1px solid var(--rand); border-radius: var(--radius); margin: 10px 0; background: var(--grund); transition: border-color 150ms; }
details.frage:hover { border-color: var(--akzent-linie); }
details.frage summary { cursor: pointer; padding: 14px 46px 14px 18px; font-weight: 700; list-style: none; position: relative; border-radius: var(--radius); }
details.frage summary::-webkit-details-marker { display: none; }
details.frage summary::after { content: "+"; position: absolute; right: 16px; top: 8px; font-size: 1.6rem; font-weight: 400; color: var(--akzent); transition: transform 200ms ease-out; }
details.frage[open] summary::after { transform: rotate(45deg); }
details.frage summary:hover { background: var(--akzent-hell); }
details.frage[open] summary { border-bottom: 1px solid var(--rand); border-radius: var(--radius) var(--radius) 0 0; }
details.frage summary h2, details.frage summary h3 { display: inline; font-size: 1.05rem; margin: 0; }
details.frage > div { padding: 12px 18px 4px; }
details.frage > div > :last-child { margin-bottom: 12px; }

/* Reiter ohne JavaScript: Auswahlknöpfe, sichtbar ist das gewählte Blatt */
.reiter { border: 1px solid var(--rand); border-radius: var(--radius); overflow: hidden; margin: 20px 0; background: var(--grund); }
.reiter input { position: absolute; opacity: 0; pointer-events: none; }
.reiter .leiste { display: flex; flex-wrap: wrap; background: var(--flaeche); border-bottom: 1px solid var(--rand); }
.reiter label { padding: 10px 16px; cursor: pointer; font-weight: 700; color: var(--neben); border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color 120ms, background-color 120ms; }
.reiter label:hover { color: var(--akzent-dunkel); background: var(--akzent-hell); }
.reiter input:checked + label { color: var(--akzent-dunkel); border-bottom-color: var(--akzent); background: var(--grund); }
.reiter input:focus-visible + label { outline: 3px solid var(--akzent); outline-offset: -3px; }
.reiter section { display: none; padding: 16px 18px 6px; }
.reiter section > :last-child { margin-bottom: 12px; }
.reiter:has(.leiste input:nth-of-type(1):checked) section:nth-of-type(1),
.reiter:has(.leiste input:nth-of-type(2):checked) section:nth-of-type(2),
.reiter:has(.leiste input:nth-of-type(3):checked) section:nth-of-type(3),
.reiter:has(.leiste input:nth-of-type(4):checked) section:nth-of-type(4) { display: block; }
@supports not selector(:has(a)) { .reiter section { display: block; border-top: 1px solid var(--rand); } }

/* Schaubild: eingebettetes SVG, Farben aus dem Stilblatt (auch im Dunkelmodus) */
figure.schaubild { margin: 24px 0; border: 1px solid var(--rand); border-radius: var(--radius); padding: 16px 16px 12px; background: var(--flaeche); }
figure.schaubild svg { width: 100%; height: auto; display: block; font-family: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif; }
figcaption { font-size: 15px; color: var(--neben); margin-top: 10px; }
.sk { fill: var(--grund); stroke: var(--akzent-linie); stroke-width: 1.5; }
.sk.voll { fill: var(--akzent-hell); }
.sk.dunkel { fill: var(--kopf); stroke: var(--kopf-linie); }
.st { fill: var(--tinte); font-size: 15px; }
.st.klein { font-size: 12.5px; fill: var(--neben); }
.st.fett { font-weight: 700; }
.st.hell { fill: var(--kopf-tinte); }
.st.mint { fill: var(--kopf-mint); }
.sp { stroke: var(--akzent); stroke-width: 2; fill: none; }
.sp.gelb { stroke: var(--gelb); }
.sp.rot { stroke: var(--rot); }
.sf { fill: var(--akzent); }
.sf.gelb { fill: var(--gelb); }
.sf.rot { fill: var(--rot); }
.sf.mint { fill: var(--mint); }
.sf.hell { fill: var(--akzent-hell); }
.sf.rand { fill: var(--rand); }

/* Fenster-Ansicht: das Programm, nachgestellt mit den echten Farben, ohne fremde Daten */
.fenster { border: 1px solid var(--rand); border-radius: 12px; overflow: hidden; background: #fff; color: #1b1f1e; font-size: 14px; box-shadow: var(--schatten); margin: 8px 0 24px; }
.fenster-kopf { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #1f3630; color: #e6ebe9; font-size: 13px; }
.fenster-kopf img { width: 18px; height: 18px; }
.fenster-kopf i { margin-left: auto; width: 10px; height: 10px; border-radius: 50%; background: #35594f; display: inline-block; }
.fenster-kopf i + i { margin-left: 0; }
.fenster-innen { display: grid; grid-template-columns: 168px 1fr; min-height: 320px; }
.fenster-seite { background: #e6f1ed; border-right: 1px solid #b9d3c9; padding: 12px; font-size: 13px; }
.fenster-seite b { display: block; font-size: 12px; color: #5c6663; margin: 10px 0 4px; font-weight: 700; }
.fenster-seite span { display: block; padding: 6px 8px; border-radius: 6px; color: #1b1f1e; }
.fenster-seite span.aktiv { background: #fff; border: 1px solid #b9d3c9; }
.fenster-seite .neu { border: 1px solid #b9d3c9; background: #fff; text-align: center; margin-bottom: 6px; font-weight: 700; color: #1f6f5b; }
.fenster-chat { padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 12px; }
.blase { max-width: 88%; padding: 10px 12px; border-radius: 10px; line-height: 1.45; }
.blase.du { align-self: flex-end; background: #1f6f5b; color: #fff; }
.blase.ki { align-self: flex-start; background: #f4f6f5; border: 1px solid #d9e0dd; }
.blase small { display: block; margin-top: 8px; color: #5c6663; font-size: 12px; }
.blase .q-gruen { text-decoration-color: #3f9a7e; }
.blase .q-gelb { text-decoration-color: #b7791f; }
.fenster-eingabe { margin-top: auto; border: 1px solid #d9e0dd; border-radius: 10px; padding: 9px 12px; color: #5c6663; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fenster-eingabe b { color: #1f6f5b; }
.fenster-unten { display: flex; gap: 12px; padding: 0 16px 10px; font-size: 12px; color: #5c6663; }
@media (max-width: 640px) { .fenster-innen { grid-template-columns: 1fr; } .fenster-seite { display: none; } }

/* Platzhalter, die als solche sichtbar sind */
.platzhalter { border: 1px dashed var(--gelb); border-radius: 8px; padding: 12px 14px; color: var(--tinte); background: transparent; }

/* Kapitelliste der Doku als Karten */
.kapitel { margin-top: 48px; border-top: 1px solid var(--rand); padding-top: 8px; }
.kapitel h2 { font-size: 1.1rem; margin-top: 20px; }
.kapitel ol { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; font-size: 15.5px; counter-reset: k; }
.kapitel li { margin: 0; counter-increment: k; }
.kapitel li a { display: block; padding: 8px 10px 8px 38px; border: 1px solid var(--rand); border-radius: 8px; text-decoration: none; color: var(--tinte); position: relative; transition: border-color 150ms, background-color 150ms; }
.kapitel li a::before { content: counter(k); position: absolute; left: 10px; top: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--akzent-hell); color: var(--akzent-dunkel); font-size: 12px; text-align: center; line-height: 20px; font-weight: 700; }
.kapitel li a:hover { border-color: var(--akzent-linie); background: var(--akzent-hell); }
.kapitel li strong a { border-color: var(--akzent); background: var(--akzent-hell); }

/* Prüfzeile am Seitenende */
.pruefzeile { margin-top: 48px; padding-top: 14px; border-top: 1px solid var(--rand); font-size: 15px; color: var(--neben); }

/* Fuß */
footer { border-top: 1px solid var(--rand); background: var(--flaeche); }
.fuss-innen { max-width: 1040px; margin: 0 auto; padding: 24px 16px 32px; font-size: 15px; color: var(--neben); display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.fuss-innen a { color: var(--neben); }
.fuss-innen .absender { margin-right: auto; }

@media (max-width: 560px) {
  body { font-size: 17px; }
  .kopf-innen { gap: 8px; padding: 8px 16px; }
  .logo img { height: 36px; }
  main { padding-top: 28px; }
  h2 { margin-top: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  html { scroll-behavior: auto; }
}
