/* Netzmangel: einfache, handytaugliche Gestaltung. Keine externen Schriften. */
:root {
  --text: #1b1f24;
  --grau: #5a6470;
  --hell: #f3f5f8;
  --rand: #c9d0d9;
  --blau: #0b5cab;
  --blau-dunkel: #08427c;
  --warn-bg: #fff4d6;
  --warn-rand: #d19b00;
  --fehler-bg: #fde8e8;
  --fehler-rand: #c0392b;
  --ok-bg: #e6f5ea;
  --ok-rand: #2e8b57;
}
* { box-sizing: border-box; }
html { font-size: 112.5%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.55;
}
a { color: var(--blau); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #ffbf00;
  outline-offset: 2px;
}
.kopf { background: var(--blau-dunkel); color: #fff; }
.kopf a { color: #fff; }
.kopf .innen { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; justify-content: space-between; padding: .75rem 1rem; }
.kopf .logo { font-weight: 700; text-decoration: none; font-size: 1.1rem; }
.kopf nav a { margin-right: 1rem; }
main { max-width: 46rem; margin: 0 auto; padding: 1rem; }
.fuss { background: var(--hell); border-top: 1px solid var(--rand); margin-top: 2rem; }
.fuss .innen { max-width: 46rem; margin: 0 auto; padding: 1rem; color: var(--grau); font-size: .9rem; }
.fuss a { margin-right: 1rem; }
h1 { font-size: 1.7rem; line-height: 1.25; }
h2 { font-size: 1.3rem; margin-top: 0; }
h3 { font-size: 1.1rem; }
.abschnitt { border: 1px solid var(--rand); border-radius: .6rem; padding: 1rem; margin: 1.25rem 0; background: #fff; }
.hinweis { background: var(--hell); border-left: 4px solid var(--blau); padding: .6rem .8rem; margin: .8rem 0; }
.warnung { background: var(--warn-bg); border-left: 4px solid var(--warn-rand); padding: .6rem .8rem; margin: .8rem 0; }
[aria-invalid="true"] { border-color: var(--fehler-rand); outline-color: var(--fehler-rand); }
.zahl-hinweis { display: block; color: var(--fehler-rand); font-size: .9rem; margin-top: .2rem; }
.fehler { background: var(--fehler-bg); border-left: 4px solid var(--fehler-rand); padding: .6rem .8rem; margin: .8rem 0; }
.ok { background: var(--ok-bg); border-left: 4px solid var(--ok-rand); padding: .6rem .8rem; margin: .8rem 0; }
.klein { font-size: .9rem; color: var(--grau); }
.schritte { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1rem; counter-reset: s; position: sticky; top: 0; background: #fff; z-index: 5; padding-block: .5rem; border-bottom: 1px solid var(--rand); }
.schritte li { counter-increment: s; }
.schritte a { display: inline-block; min-height: 2.75rem; padding: .5rem .7rem; border: 1px solid var(--rand); border-radius: 2rem; text-decoration: none; font-size: .85rem; color: var(--text); background: var(--hell); }
.schritte a::before { content: counter(s) ". "; font-weight: 700; }
label { display: block; font-weight: 600; margin-top: .8rem; }
label .opt { font-weight: 400; color: var(--grau); }
input[type="text"], input[type="date"], input[type="time"], input[type="number"], select, textarea {
  width: 100%; min-height: 2.9rem; padding: .5rem .6rem; font: inherit; border: 1px solid #7b8794; border-radius: .4rem; background: #fff; color: var(--text);
}
textarea { min-height: 7rem; }
.gitter { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .8rem; }
.gitter3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 .6rem; }
@media (max-width: 34rem) { .gitter, .gitter3 { grid-template-columns: 1fr; } }
.check, .radio { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; min-height: 2.75rem; padding: .35rem 0; }
.check input, .radio input { width: 1.5rem; height: 1.5rem; flex: none; margin-top: .15rem; }
button, .knopf {
  display: inline-block; min-height: 2.9rem; padding: .6rem 1.1rem; margin: .5rem .5rem 0 0;
  font: inherit; font-weight: 600; color: #fff; background: var(--blau); border: 2px solid var(--blau);
  border-radius: .5rem; cursor: pointer; text-decoration: none;
}
button:hover, .knopf:hover { background: var(--blau-dunkel); }
button.zweit, .knopf.zweit { background: #fff; color: var(--blau); }
button.gefahr { background: #fff; color: var(--fehler-rand); border-color: var(--fehler-rand); }
button[disabled] { opacity: .5; cursor: not-allowed; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { border: 1px solid var(--rand); padding: .35rem .5rem; text-align: left; }
th { background: var(--hell); }
td.unsicher { background: var(--warn-bg); }
.tabelle { overflow-x: auto; }
ul.luftig li { margin: .3rem 0; }
.brief { white-space: pre-wrap; font-family: Georgia, "Times New Roman", serif; background: #fff; border: 1px solid var(--rand); padding: 1rem; border-radius: .4rem; }
.gross { font-size: 1.6rem; font-weight: 700; }
.start { text-align: center; padding: 1.5rem 0; }
.drei { display: grid; gap: .8rem; grid-template-columns: repeat(3, 1fr); padding: 0; list-style: none; }
.drei li { border: 1px solid var(--rand); border-radius: .6rem; padding: .8rem; background: var(--hell); }
@media (max-width: 34rem) { .drei { grid-template-columns: 1fr; } }
.startbereich { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; padding: 3rem 0 2.5rem; }
.startbereich h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); line-height: 1.08; letter-spacing: -.035em; margin: .35rem 0 1rem; }
.dachzeile { color: var(--blau); font-size: .8rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; margin: 0; }
.einstieg { font-size: 1.08rem; color: var(--grau); max-width: 34rem; }
.startbereich .start { text-align: left; padding: .5rem 0; }
.startbereich .knopf { box-shadow: 0 6px 18px #0b5cab35; }
.vertrauen { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: .5rem 0 0; list-style: none; }
.vertrauen li { font-size: .78rem; color: #315244; background: #e6f5ea; padding: .25rem .55rem; border-radius: 2rem; }
.ablaufbild { position: relative; overflow: hidden; border: 1px solid #d7e2ef; border-radius: 1.2rem; padding: 1.1rem; background: radial-gradient(ellipse at 80% 10%, #d9ebff 0, transparent 46%), linear-gradient(145deg,#f5f9ff,#edf4f7); box-shadow: 0 16px 42px #17324d14; }
.bildkopf { display: flex; align-items: center; gap: .55rem; font-size: .9rem; font-weight: 700; margin-bottom: 1rem; }
.bildpunkt { width: .65rem; height: .65rem; border-radius: 50%; background: #31a678; box-shadow: 0 0 0 4px #31a67820; }
.messkarte { background: white; border: 1px solid #e1e8ef; border-radius: .75rem; padding: .85rem; box-shadow: 0 5px 15px #17324d0c; }
.messkopf,.balkenbeschriftung { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.messkopf { font-weight: 700; font-size: .85rem; }
.messstatus { color: #46725f; background: #e6f5ea; font-weight: 600; font-size: .7rem; padding: .15rem .45rem; border-radius: 1rem; }
.balken { height: 5rem; display: flex; align-items: end; justify-content: space-around; gap: .25rem; padding: .7rem .2rem .1rem; border-bottom: 1px solid #dce4ec; background: repeating-linear-gradient(to bottom,transparent 0,transparent 18px,#edf1f5 19px); }
.balken i { width: 6%; border-radius: .2rem .2rem 0 0; background: linear-gradient(180deg,#55a9e8,#1573bb); }
.balken i:nth-child(3n) { height: 52%; }.balken i:nth-child(3n + 1) { height: 78%; }.balken i:nth-child(3n + 2) { height: 64%; }
.balkenbeschriftung { padding-top: .4rem; color: var(--grau); font-size: .68rem; }
.bildschritte { display: grid; grid-template-columns: repeat(3,1fr); list-style: none; margin: 1rem 0 0; padding: 0; gap: .4rem; }
.bildschritte li { display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; min-width: 0; }
.bildnummer { display: grid; place-items: center; flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--blau); color: #fff; font-size: .75rem; font-weight: 700; }
.bildschritte strong,.bildschritte small { display: block; }.bildschritte strong { font-size: .72rem; }.bildschritte small { color: var(--grau); font-size: .61rem; line-height: 1.25; }
.ablauf { padding: 1.5rem 0; }.ablauf h2 { margin: .35rem 0 1rem; }.ablauf .drei li { background: #fff; padding: 1rem; box-shadow: 0 4px 14px #17324d0a; }.drei li strong { display:block; font-size: 1.05rem; margin-top: .3rem; }.drei li p { color: var(--grau); font-size: .9rem; margin: .4rem 0 0; }.kartennummer { color: var(--blau); font-size: .75rem; font-weight: 750; letter-spacing: .08em; }
@media (max-width: 38rem) { .startbereich { grid-template-columns: 1fr; gap: 1rem; padding: 2rem 0; }.startbereich h1 { font-size: 2.25rem; }.ablaufbild { max-width: 30rem; width: 100%; margin: 0 auto; }.bildschritte small { font-size: .57rem; } }
[hidden] { display: none !important; }
.sr { position: absolute; left: -9999px; }

/* Druck: nur der Brief */
@media print {
  body * { visibility: hidden; }
  #brief-ansicht, #brief-ansicht * { visibility: visible; }
  #brief-ansicht { position: absolute; left: 0; top: 0; width: 100%; border: 0; padding: 0; font-size: 12pt; }
}

/* Werkzeug: Ergebnis-Grafiken */
.schritte li.fertig a { border-color: var(--ok-rand); background: var(--ok-bg); }
.schritte li.fertig a::after { content: " ✓"; color: #1d6b40; font-weight: 700; }
.kriterien-zeile h3 { margin: 1rem 0 .4rem; font-size: 1rem; }
.karten { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.karte { border: 1px solid var(--rand); border-left-width: 6px; border-radius: .5rem; padding: .55rem .7rem; background: #fff; }
.karte p { margin: 0; }
.karte .klein { margin-top: .25rem; color: var(--text); }
.karte-kopf { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.karte .symbol { font-weight: 800; font-size: 1.1rem; }
.karte .wort { font-size: .8rem; font-weight: 700; margin-left: auto; }
.karte.erfuellt { border-color: var(--ok-rand); background: var(--ok-bg); }
.karte.erfuellt .symbol, .karte.erfuellt .wort { color: #1d6b40; }
.karte.verletzt { border-color: var(--fehler-rand); background: var(--fehler-bg); }
.karte.verletzt .symbol, .karte.verletzt .wort { color: #962d22; }
.karte.offen { border-color: var(--rand); background: var(--hell); }
.karte.offen .symbol, .karte.offen .wort { color: var(--grau); }
.diagramm { margin: 1.2rem 0; padding: 0; }
.diagramm figcaption { font-weight: 700; margin-bottom: .3rem; }
.diagramm-svg, .minderung-svg { display: block; width: 100%; height: auto; }
.diagramm-svg .achse-text, .minderung-svg .achse-text { font-size: 11px; fill: var(--grau); }
.diagramm-svg .gitter-linie { stroke: #e3e8ee; stroke-width: 1; }
.diagramm-svg .tag-linie { stroke: var(--grau); stroke-width: 1; }
.balken-gut, .balken-gut-bg { fill: var(--ok-rand); background: var(--ok-rand); }
.balken-mittel, .balken-mittel-bg { fill: #e0a800; background: #e0a800; }
.balken-schlecht, .balken-schlecht-bg { fill: var(--fehler-rand); background: var(--fehler-rand); }
.balken-neutral, .balken-neutral-bg { fill: var(--blau); background: var(--blau); }
.linie { stroke-width: 1.5; fill: none; }
.linie-max90 { stroke: var(--blau-dunkel); stroke-dasharray: 6 4; }
.linie-normal { stroke: var(--text); }
.linie-min { stroke: var(--fehler-rand); stroke-dasharray: 1.5 3; stroke-linecap: round; stroke-width: 2; }
.linie-text { font-size: 10.5px; fill: var(--text); paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.legende { display: flex; flex-wrap: wrap; gap: .3rem 1rem; list-style: none; margin: .4rem 0 0; padding: 0; font-size: .85rem; }
.legende .muster { display: inline-block; width: .9rem; height: .9rem; border-radius: 2px; vertical-align: -.1rem; }
.mb-rest { fill: #c9d6e6; }
.mb-minderung { fill: #23784a; } /* dunkler als --ok-rand: weiße Schrift darauf braucht 4,5:1 */
.minderung-svg { margin: .3rem 0 .6rem; }
@media (max-width: 38rem) {
  .karten { grid-template-columns: 1fr; }
  .diagramm-svg .achse-text, .minderung-svg .achse-text { font-size: 19px; }
  .linie-text { font-size: 18px; }
}

/* Bilder: Startseite und Ratgeber (nutzen die Diagramm-Klassen oben mit) */
.bild-icon { display: block; width: 2.4rem; height: 2.4rem; padding: .45rem; margin-bottom: .5rem; border-radius: .7rem; background: #e8f1fb; color: var(--blau); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.beispiel { padding: 1.5rem 0; }
.beispiel h2 { margin: .35rem 0 .6rem; }
.bild-rahmen { margin: 1rem 0; padding: .9rem; border: 1px solid #d7e2ef; border-radius: .9rem; background: #fbfdff; }
.bild-rahmen figcaption { font-weight: 700; margin-bottom: .4rem; }
.bild-rahmen figcaption .klein { font-weight: 400; }
.bild-rahmen .legende { font-weight: 400; margin: .5rem 0 0; }
.pruefliste { list-style: none; padding: 0; margin: 1rem 0 .3rem; display: grid; gap: .45rem; }
.pruefliste li { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem .7rem; border-radius: .5rem; background: var(--fehler-bg); border-left: 5px solid var(--fehler-rand); }
.pruefliste .zeichen { color: #962d22; font-weight: 800; }
.formel { font-size: 1.05rem; background: var(--hell); border-radius: .5rem; padding: .5rem .7rem; }
.bild-balkentext { font-size: 17px; font-weight: 700; fill: var(--text); }
.bild-balkentext.hell { fill: #fff; }
.kal-mess { fill: var(--blau); }
.kal-frei { fill: #eef2f6; stroke: #d5dde6; }
.kal-text { font-size: 13px; font-weight: 700; fill: var(--grau); }
.kal-text.hell { fill: #fff; }
.mess-punkt { fill: var(--blau); stroke: #fff; stroke-width: 3; }
.minderung-svg .achse-text { font-size: 15px; fill: var(--text); }
.regelkarten { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.regelkarten li { border: 1px solid var(--rand); border-radius: .7rem; padding: .7rem; background: #fff; }
.regelkarten strong { display: block; margin-top: .4rem; }
.regelkarten p { margin: .25rem 0 0; font-size: .9rem; color: var(--grau); }
.mini-svg { display: block; width: 100%; height: auto; }
.mini-svg .achse-text { font-size: 11px; fill: var(--grau); }
.mini-svg .linie-text { font-size: 11px; }
.weg { list-style: none; counter-reset: w; padding: 0; margin: 1rem 0; }
.weg li { counter-increment: w; position: relative; padding: 0 0 1.1rem 3rem; }
.weg li::before { content: counter(w); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; background: var(--blau); color: #fff; font-weight: 700; }
.weg li:not(:last-child)::after { content: ""; position: absolute; left: .95rem; top: 2.2rem; bottom: .2rem; width: 2px; background: var(--rand); }
@media (max-width: 38rem) {
  .regelkarten { grid-template-columns: 1fr; }
  .mini-svg { max-width: 20rem; }
  .mini-svg .linie-text { font-size: 11px; }
  .kal-text { font-size: 17px; }
  .bild-balkentext { font-size: 24px; }
  .diagramm-svg.kal-svg .achse-text { font-size: 15px; }
  .kal-svg .linie-text { font-size: 12px; }
  .minderung-svg .achse-text { font-size: 22px; }
}
