/* FamilienWölkchen – gemeinsame dunkle Grundoberfläche (SPEC.md 10.1, T22).
   Keine fremden Schriften oder Ressourcen; Kontraste mindestens 4.5:1. */
:root {
  color-scheme: dark;
  --grund: #101317;
  --flaeche: #1a1f26;
  --rand: #333b46;
  --text: #e8ebf0;
  --leise: #b0b8c4;
  --akzent: #8ccaff;
  --akzent-text: #0b1520;
  --gut: #86e09b;
  --warn: #ffd37f;
  --schlecht: #ff9b9b;
}
* { box-sizing: border-box; }
html { font-size: 100%; }
body {
  margin: 0; background: var(--grund); color: var(--text);
  font: 1rem/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
a { color: var(--akzent); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--akzent); outline-offset: 2px;
}
.kopf {
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between;
  padding: .9rem 1rem; border-bottom: 1px solid var(--rand); background: var(--flaeche);
}
.marke { color: var(--text); text-decoration: none; font-weight: 700; }
.marke span { color: var(--leise); font-weight: 400; margin-left: .35rem; }
nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: center; }
nav form { margin: 0; }
main { max-width: 46rem; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
h1 { font-size: 1.5rem; line-height: 1.25; margin: .5rem 0 1rem; }
h2 { font-size: 1.15rem; margin: 2rem 0 .75rem; }
p, ul, ol { margin: 0 0 1rem; }
.leise { color: var(--leise); }
.karte { background: var(--flaeche); border: 1px solid var(--rand); border-radius: .6rem; padding: 1rem; margin: 0 0 1rem; }
label { display: block; font-weight: 600; margin: .9rem 0 .3rem; }
input[type=text], input[type=password] {
  width: 100%; max-width: 30rem; padding: .65rem .75rem; font: inherit; color: var(--text);
  background: var(--grund); border: 1px solid var(--rand); border-radius: .4rem;
}
.code-eingabe { font-family: ui-monospace, "DejaVu Sans Mono", monospace; letter-spacing: .08em; }
button {
  font: inherit; font-weight: 600; cursor: pointer; margin-top: 1rem; padding: .6rem 1.1rem;
  color: var(--akzent-text); background: var(--akzent); border: 0; border-radius: .4rem;
}
button.zweit { color: var(--text); background: transparent; border: 1px solid var(--rand); }
button.link { margin: 0; padding: 0; color: var(--akzent); background: none; text-decoration: underline; font-weight: 400; }
.meldung { padding: .75rem 1rem; border-radius: .4rem; border-left: .35rem solid; background: var(--flaeche); }
.meldung.fehler { border-color: var(--schlecht); }
.meldung.hinweis { border-color: var(--akzent); }
.meldung.warnung { border-color: var(--warn); }
.geheim {
  font-family: ui-monospace, "DejaVu Sans Mono", monospace; font-size: 1.05rem; word-break: break-all;
  background: var(--grund); border: 1px dashed var(--rand); border-radius: .4rem; padding: .6rem .8rem;
}
ol.codes { columns: 2 16rem; font-family: ui-monospace, "DejaVu Sans Mono", monospace; }
.qr { background: #fff; padding: .6rem; border-radius: .4rem; display: inline-block; line-height: 0; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1rem; }
th, td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--rand); vertical-align: top; }
th { color: var(--leise); font-weight: 600; }
.zustand::before { display: inline-block; width: 1.1em; font-weight: 700; }
.zustand.gut::before { content: "✓"; color: var(--gut); }
.zustand.warn::before { content: "!"; color: var(--warn); }
.zustand.schlecht::before { content: "✗"; color: var(--schlecht); }
details { margin: .25rem 0 1rem; }
summary { cursor: pointer; }
footer { max-width: 46rem; margin: 0 auto; padding: 0 1rem 2rem; color: var(--leise); font-size: .9rem; }
.links { list-style: none; padding: 0; display: grid; gap: .75rem; }
.links a { display: block; padding: 1rem; background: var(--flaeche); border: 1px solid var(--rand); border-radius: .6rem; text-decoration: none; }
.links a strong { display: block; color: var(--text); }
.links a span { color: var(--leise); }
@media (max-width: 30rem) { h1 { font-size: 1.3rem; } }
.anzeigen { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .75rem; margin: 0 0 1rem; }
.anzeige { margin: 0; background: var(--flaeche); border: 1px solid var(--rand); border-radius: .6rem; padding: .8rem 1rem; }
.anzeige figcaption { font-weight: 600; }
.anzeige svg { display: block; width: 100%; max-width: 12rem; margin: .4rem auto 0; }
.anzeige .spur, .anzeige .bogen { fill: none; stroke-width: 10; stroke-linecap: round; }
.anzeige .spur { stroke: var(--rand); }
.bogen.gut, .balken .wert { stroke: var(--gut); fill: var(--gut); }
.bogen.warn { stroke: var(--warn); }
.bogen.schlecht { stroke: var(--schlecht); }
.anzeige .bogen { fill: none; }
.anzeigewert { font-size: 1.15rem; font-weight: 700; text-align: center; margin: .2rem 0 .4rem; }
.klein { font-size: .9rem; }
.balken { display: block; width: 100%; height: .6rem; margin: .4rem 0; }
.balken .spur { fill: var(--rand); }
.balken .wert { fill: var(--akzent); stroke: none; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
td form { margin: 0; }
td button { margin-top: 0; }
select { font: inherit; color: var(--text); background: var(--grund); border: 1px solid var(--rand); border-radius: .4rem; padding: .5rem .6rem; }
form + form { margin-top: .5rem; }
button[disabled] { opacity: .55; cursor: not-allowed; }
button.gefahr { color: #fff; background: #b3261e; border-color: #b3261e; }
/* VPN-Oberfläche (S6) */
.klein { font-size: .9rem; }
a.knopf { display: inline-block; padding: .6rem 1.1rem; font-weight: 600; color: var(--akzent-text); background: var(--akzent); border-radius: .4rem; text-decoration: none; }
button.gefahr { color: #1a0b0b; background: var(--schlecht); }
fieldset { border: 1px solid var(--rand); border-radius: .4rem; margin: 1rem 0 0; padding: .25rem 1rem 1rem; }
legend { font-weight: 600; padding: 0 .3rem; }
label.wahl { font-weight: 400; display: flex; gap: .5rem; align-items: baseline; }
input[type=date], textarea {
  padding: .55rem .7rem; font: inherit; color: var(--text); background: var(--grund);
  border: 1px solid var(--rand); border-radius: .4rem;
}
textarea { width: 100%; max-width: 30rem; font-family: ui-monospace, "DejaVu Sans Mono", monospace; }
pre.geheim { white-space: pre-wrap; font-size: .9rem; }
.qr canvas, .qr svg { width: 17rem; max-width: 100%; height: auto; display: block; image-rendering: pixelated; }
form.zeile { display: flex; flex-wrap: wrap; gap: .5rem; }
form.zeile button { margin-top: .25rem; }
svg.verlauf { display: block; width: 100%; height: 5rem; margin: 0 0 1rem; background: var(--flaeche); border-radius: .4rem; }
svg.verlauf .balken { fill: var(--akzent); }
svg.verlauf .ungefaehr { fill: var(--warn); opacity: .6; }
svg.verlauf .grundlinie { stroke: var(--rand); stroke-width: 1; }
code { overflow-wrap: anywhere; }
.karte.hinweis-karte { border-left: .35rem solid var(--warn); }
