/* wasser.css — „Um drei Uhr früh sollte die Wasseruhr stehen.“ (nur diese Seite).
   Richtung „Nachtlinie“: heller, klarer Grund, tiefes Wasserblau als Hausfarbe, Zitronengelb nur für den Fund
   und immer mit Wort. Zahlen der Überschriften in Archivo Black, Text in Karla. Viel Luft, große Abstände.
   Die Seite ist bewusst nur hell. */

@font-face { font-family: "Karla"; src: url("../../schrift/muster/karla-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Karla"; src: url("../../schrift/muster/karla-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Karla"; src: url("../../schrift/muster/karla-latin-600-normal.woff2") format("woff2"); font-weight: 600 800; font-display: swap; }
@font-face { font-family: "Archivo Black"; src: url("../../schrift/muster/archivo-black-latin-400-normal.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../../schrift/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root, :root[data-theme="light"] {
  color-scheme: light;
  --flaeche-0: #f2f7fb;          /* klarer, heller Grund */
  --flaeche-1: #ffffff;
  --flaeche-2: #e4eef6;
  --linie: #c6d8e6;
  --raster: #e2ecf4;
  --text-1: #071f36;
  --text-2: #33506a;
  --text-3: #536d84;
  --akzent: #0b4a86;             /* tiefes Wasserblau */
  --akzent-text: #0a427a;
  --w-tief: #062b4d;
  --w-haupt: #0b3f73;            /* Hauptzähler, Nachtlinie */
  --w-werk: #1a6db5;             /* Werktag */
  --w-frei: #93c4ea;             /* Samstag, Sonntag, Feiertag */
  --w-vorher: #7d9ab3;           /* Zeitraum vor dem Fund */
  --w-rest: #a3afbb;             /* nicht gemessen */
  --fund: #f5d70c;               /* Zitronengelb: nur der Fund */
  --fund-tief: #c9ae00;
  /* Unterzähler, fest in dieser Reihenfolge */
  --u1: #d0612a; --u2: #12879a; --u3: #7b4cad; --u4: #b23a6f; --u5: #5d6f22; --u6: #8a5a2b;
  --s1: #0b3f73; --s2: #d0612a; --s3: #12879a; --s4: #7b4cad; --s5: #b23a6f; --s6: #5d6f22; --s7: #8a5a2b; --s8: #a3afbb;
  /* Wasser: hell nach dunkel */
  --t0: #eef4f9;
  --q1: #d3e6f5; --q2: #a9cdec; --q3: #79b0df; --q4: #4a90cf; --q5: #2470b4; --q6: #0f5193; --q7: #06325f;
  --gut-text: #0b6a3c; --kritisch-text: #a3261f;
  --schatten: 0 1px 2px rgb(7 31 54 / .04), 0 18px 40px -28px rgb(7 31 54 / .28);
  --zahlschrift: "Archivo Black", "Archivo", system-ui, sans-serif;
  --titelschrift: "Archivo", "Karla", system-ui, sans-serif;
}

html { overflow-x: clip; }
body { overflow-x: clip; font-family: "Karla", system-ui, sans-serif; font-size: 16.5px; line-height: 1.55; background: var(--flaeche-0); }
:focus-visible { outline: 2.5px solid var(--akzent); outline-offset: 2px; border-radius: 6px; }
a:focus-visible, button:focus-visible, .knopf:focus-visible, select:focus-visible, input:focus-visible { outline: 2.5px solid var(--akzent); outline-offset: 2px; }
.knopf:has(input:focus-visible) { outline: 2.5px solid var(--akzent); outline-offset: 2px; }
.breite { width: min(100% - 32px, 1600px); }

/* ---------- Kopfleiste ---------- */
.a-kopf { background: var(--flaeche-1); border-bottom: 1px solid var(--linie); }
.a-kopf .a-name { font-family: var(--zahlschrift); font-weight: 400; font-size: 14px; letter-spacing: .01em; color: var(--w-haupt); }
.a-kopf .a-zurueck { color: var(--text-2); }

/* ---------- Titel ---------- */
.w-titel { padding: 64px 0 36px; }
.w-titel h1 { font-family: var(--zahlschrift); font-weight: 400; font-stretch: normal; font-size: clamp(32px, 5.2vw, 76px); line-height: 1.02; letter-spacing: -.02em; max-width: 15ch; color: var(--w-tief); margin-bottom: 20px; }
.w-titel p { font-size: 19px; max-width: 46ch; color: var(--text-2); }
.a-schild { border-radius: 999px; background: var(--flaeche-1); border: 1px solid var(--linie); font-weight: 600; }
.a-schild i { background: var(--w-frei); }
.a-schild.eigen i { background: var(--w-haupt); }

/* ---------- Hauptdarstellung: die Nachtlinie ---------- */
.w-held {
  background: var(--flaeche-1); border-radius: 26px; padding: 36px 40px 30px; box-shadow: var(--schatten);
  border: 1px solid var(--linie); border-top: 8px solid var(--w-haupt); min-width: 0;
}
.w-held .karte-kopf h2 { font-family: var(--zahlschrift); font-weight: 400; font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -.01em; color: var(--w-tief); }
.w-held .karte-kopf p { font-size: 15px; margin-top: 4px; }
.w-steuer { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 8px 0 18px; }
.w-steuer label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); max-width: 100%; }
.w-steuer select { max-width: min(100%, 300px); }
select.feld { border-radius: 10px; border-color: var(--linie); font-family: inherit; }
.w-fund-text { font-size: 16.5px; border-top: 0; padding-top: 4px; max-width: 95ch; }
.w-fund-text b { font-weight: 700; }

/* Fund-Marke: Zitronengelb nur mit Wort */
.w-fund { display: inline-flex; align-items: center; gap: 6px; padding: 1px 9px 1px 7px; border-radius: 999px; background: var(--fund); color: var(--text-1); font-size: .82em; font-weight: 700; letter-spacing: .02em; white-space: nowrap; vertical-align: .08em; }
.w-fund::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--text-1); }

/* Kennzahlen unter der Nachtlinie: keine Kästen, nur Luft und Trennstriche */
.w-zahlen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 26px 0 0; border-top: 1px solid var(--linie); }
.w-zahl { padding: 20px 24px 6px 0; min-width: 0; }
.w-zahl + .w-zahl { padding-left: 24px; border-left: 1px solid var(--raster); }
.w-zahl dt { font-size: 14px; color: var(--text-2); font-weight: 600; }
.w-zahl dd { margin: 6px 0 2px; font-family: var(--zahlschrift); font-size: clamp(26px, 2.9vw, 42px); line-height: 1.05; letter-spacing: -.02em; color: var(--w-tief); white-space: nowrap; }
.w-zahl dd small { font-family: "Karla", system-ui, sans-serif; font-weight: 600; font-size: .42em; letter-spacing: 0; color: var(--text-2); margin-left: 5px; }
.w-zahl p { margin: 0; font-size: 13.5px; color: var(--text-3); }
.w-zahl.fund dd { box-shadow: inset 0 -.32em 0 var(--fund); display: inline-block; }
@media (max-width: 900px) {
  .w-zahlen { grid-template-columns: 1fr 1fr; }
  .w-zahl:nth-child(3) { padding-left: 0; border-left: 0; }
  .w-zahl:nth-child(n+3) { border-top: 1px solid var(--raster); }
}
@media (max-width: 520px) {
  .w-held { padding: 22px 16px 18px; border-radius: 18px; }
  .w-zahl { padding: 14px 10px 4px 0; }
  .w-zahl + .w-zahl { padding-left: 12px; }
  .w-zahl:nth-child(3) { padding-left: 0; }
  .w-zahl dd { font-size: 24px; white-space: normal; }
}

/* eigene Diagramme */
.w-svg text { font-family: "Karla", system-ui, sans-serif; }
.w-svg .w-achse { fill: var(--text-3); font-size: 12px; }
.w-svg .w-raster { stroke: var(--raster); stroke-width: 1; }
.w-svg .w-null { stroke: var(--w-haupt); stroke-width: 3; }
.w-svg .w-null-text { fill: var(--w-haupt); font-size: 13px; font-weight: 700; paint-order: stroke; stroke: var(--flaeche-1); stroke-width: 5px; stroke-linejoin: round; }
.w-svg .w-linie { fill: none; stroke: var(--w-haupt); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.w-svg .w-punkt { fill: var(--w-haupt); }
.w-svg .w-leckflaeche { fill: var(--fund); opacity: .5; }
.w-svg .w-leckstrich { stroke: var(--text-1); stroke-width: 1.5; stroke-dasharray: 3 3; }
.w-svg .w-marke rect { fill: var(--fund); stroke: var(--fund-tief); stroke-width: 1; }
.w-svg .w-marke text { fill: var(--text-1); font-size: 14px; font-weight: 700; }
.w-svg .w-marke .klein { font-size: 12.5px; font-weight: 600; }
.w-svg .w-faden { stroke: var(--text-2); stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; }
.w-svg .w-treffer { fill: transparent; cursor: crosshair; }
.w-svg .w-leer { fill: var(--text-3); font-size: 14px; }
.w-zeichnen { stroke-dasharray: 1; stroke-dashoffset: 1; animation: w-zeichnen 1.8s cubic-bezier(.3,.6,.2,1) .15s forwards; }
@keyframes w-zeichnen { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .w-zeichnen { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; } }
.w-leer-text { margin: 18px 0; color: var(--text-2); font-size: 15px; }

/* ---------- Ablage, Hinweis, Annahmen ---------- */
.ablage { margin: 40px 0 18px; border-radius: 18px; border-color: var(--w-frei); padding: 22px 24px; }
.ablage svg { color: var(--w-haupt); }
.knopf { border-radius: 999px; font-weight: 700; background: var(--w-haupt); }
.knopf.leise { background: var(--flaeche-1); border-color: var(--linie); color: var(--text-1); }
.ablage .vorlage-satz { display: block; margin-top: 6px; color: var(--text-1); }
.ablage .knoepfe { max-width: 340px; }
.ablage .vorlage-knopf { flex: 1 1 100%; border-style: dashed; border-color: var(--w-werk); }
@media (max-width: 720px) { .ablage .knoepfe { max-width: none; } .ablage .vorlage-knopf { flex: 0 1 auto; } }
.w-hinweis { margin: 0 0 18px; font-size: 15px; color: var(--text-2); max-width: 110ch; }

.w-annahmen { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; padding: 16px 0 0; margin: 0; border-top: 1px solid var(--linie); }
.w-annahmen-titel { flex-basis: 100%; margin: 0; font-size: 14px; font-weight: 700; color: var(--text-2); }
.w-annahmen label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.w-annahmen input { width: 86px; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--linie); background: var(--flaeche-1); color: var(--text-1); font: 600 15px "Karla", system-ui, sans-serif; text-align: right; }

/* ---------- Abschnitte und Karten mit viel Luft ---------- */
.abschnitt { margin-top: 88px; }
.abschnitt > h2 { font-family: var(--zahlschrift); font-weight: 400; font-size: clamp(26px, 2.8vw, 40px); letter-spacing: -.015em; line-height: 1.08; color: var(--w-tief); margin-bottom: 10px; }
.abschnitt > p.unter { max-width: 74ch; margin-bottom: 28px; font-size: 16.5px; }
.gitter { gap: 28px; }
.karte { border-radius: 22px; padding: 28px 30px 24px; box-shadow: var(--schatten); border-color: var(--linie); }
.karte-kopf { margin-bottom: 16px; }
.karte-kopf h2 { font-family: var(--titelschrift); font-weight: 750; font-size: 19px; letter-spacing: -.005em; color: var(--w-tief); }
.karte-kopf p { font-size: 14px; }
.karte-kopf .tabelle-knopf { border-radius: 999px; min-height: 36px; padding: 0 14px; font-size: 13px; font-weight: 600; }
.einsicht { font-size: 15px; margin-top: 16px; padding-top: 14px; }
.einsicht b { font-weight: 700; }
.legende { font-size: 13.5px; gap: 6px 18px; margin-bottom: 12px; }
.legende i { border-radius: 3px; }
.legende .w-fund { font-size: 12px; }
.tipp { border-radius: 12px; font-family: "Karla", system-ui, sans-serif; }
.dia svg text { font-family: "Karla", system-ui, sans-serif; }
.dia .achse text { font-size: 11.5px; }
@media (max-width: 520px) {
  .abschnitt { margin-top: 64px; }
  .karte { padding: 20px 16px 18px; border-radius: 18px; }
  .gitter { gap: 18px; }
}

/* Spitzen als Liste: Zeitpunkt, Balken, Wert */
.w-rang { display: grid; }
.w-zeile { display: grid; grid-template-columns: minmax(0, 190px) minmax(40px, 1fr) minmax(86px, auto); gap: 2px 14px; align-items: center; padding: 9px 0; border-top: 1px solid var(--raster); }
.w-zeile:first-child { border-top: 0; }
.w-zeile .w-wann { font-size: 14px; font-weight: 600; }
.w-zeile .w-wann small { display: block; font-size: 12.5px; font-weight: 400; color: var(--text-3); }
.w-spur { position: relative; height: 16px; border-left: 1px solid var(--linie); }
.w-spur i { position: absolute; inset: 0 auto 0 0; border-radius: 0 4px 4px 0; transform-origin: 0 50%; animation: w-wachsen .8s cubic-bezier(.2,.7,.2,1) both; }
.w-zeile .w-wert { font-family: var(--zahlschrift); font-size: 15px; text-align: right; white-space: nowrap; }
.w-zeile .w-grund { grid-column: 1 / -1; font-size: 13px; color: var(--text-2); }
@keyframes w-wachsen { from { transform: scaleX(0); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .w-spur i { animation: none; } }
@media (max-width: 620px) { .w-zeile { grid-template-columns: minmax(0, 1fr) auto; } .w-zeile .w-wann { grid-column: 1 / -1; } }

/* Kennzahlen je Arbeitsplatz */
.w-liste { margin: 0; }
.w-liste div { padding: 12px 0; border-top: 1px solid var(--raster); }
.w-liste div:first-child { border-top: 0; padding-top: 0; }
.w-liste dt { font-size: 14px; color: var(--text-2); }
.w-liste dd { margin: 2px 0 0; font-family: var(--zahlschrift); font-size: clamp(24px, 2.2vw, 32px); line-height: 1.1; color: var(--w-tief); }
.w-liste dd small { font-family: "Karla", system-ui, sans-serif; font-size: .45em; font-weight: 600; color: var(--text-2); margin-left: 4px; }

/* Farbstufen der Stundenübersicht */
.w-stufen { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; list-style: none; margin: 12px 0 0; padding: 0; font-size: 12.5px; color: var(--text-2); }
.w-stufen li { display: inline-flex; align-items: center; gap: 5px; }
.w-stufen i.schraffur { background: repeating-linear-gradient(45deg, var(--flaeche-1) 0 2px, var(--w-vorher) 2px 3.4px); }
#k-person .w-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 28px; }
#k-person .w-liste div, #k-person .w-liste div:first-child { border-top: 1px solid var(--raster); padding: 14px 0; }
.w-stufen i { width: 14px; height: 12px; border-radius: 2px; border: 1px solid var(--raster); }

/* Tabellen */
.tabelle-huelle, .w-tabelle { position: relative; border-radius: 12px; }
.w-tabelle { overflow: auto; max-height: 460px; }
table.daten td.breit { white-space: normal; min-width: 240px; max-width: 460px; }
table.daten th { background: var(--flaeche-2); }
.status.info { color: var(--text-2); }
.status.fund { color: var(--text-1); }
.status.fund::before { background: var(--fund); box-shadow: 0 0 0 1.5px var(--fund-tief); }
@media (max-width: 720px) {
  #d-qual { max-height: none; }
  #d-qual table.daten, #d-qual tbody, #d-qual tr, #d-qual td { display: block; }
  #d-qual thead { display: none; }
  #d-qual tr { padding: 10px 0; border-top: 1px solid var(--linie); }
  #d-qual td, #d-qual td.breit, #d-qual td.z { border: 0; padding: 2px 4px; white-space: normal; min-width: 0; max-width: none; text-align: left; }
}

.w-zwischen { margin: 22px 0 8px; font-size: 14px; font-weight: 600; color: var(--text-2); }
#a-kosten .gitter { align-items: start; }
.w-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Fuß ---------- */
.a-fuss { background: var(--w-tief); border-top: 0; color: #c9dcec; margin-top: 100px; }
.a-fuss a { color: #f4f9ff; }
.a-fuss .zeichen-link { color: #c9dcec; border-radius: 999px; }
.a-fuss .zeichen-link:hover { color: #f4f9ff; background: rgb(255 255 255 / .1); }
.a-fuss :focus-visible { outline-color: var(--fund); }

.a-titel h1, .abschnitt > h2, .karte-kopf h2 { text-wrap: balance; }
.knopf, .tabelle-knopf { white-space: nowrap; }
.knopf:active { transform: translateY(1px); }

/* Verweis auf „Datei erkennen lassen“ */
.erkennen-satz { display: block; margin-top: 6px; font-size: 14px; color: var(--text-2); }
.erkennen-satz a { color: var(--akzent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
