/* specificon UI — Modus B „Intern“ (Standard seit 20.10.2026, 3M). Quelle der Werte: standards/specificon-ui-system.md.
   Übernehmen heißt kopieren, nicht nachempfinden. Erstanwendung: Betriebskonsole (ops.specificon.io).
   Regeln: Farbe nur als Signal. Olive ist der einzige Akzent (Linie, aktive Leiste, Fokus, Kernzahl).
   Rot/Gelb nur für Zustände. Großschrift (Barlow Condensed kursiv) nur für Titel und Kernzahlen. */

:root {
  color-scheme: light;
  --grund: #F6F5F2;          /* Moneypenny bg */
  --flaeche: #FFFFFF;
  --flaeche-2: #F0EFEB;
  --text: #1C1C1E;
  --leise: #6E6E73;
  --blass: #A1A1A6;
  --linie: #E4E2DC;
  --linie-stark: #CFCDC6;
  --tinte: #16181A;          /* dunkle Kernkachel, Titellinie */
  --olive: #6B7A4A;          /* Olive matt — der Akzent */
  --olive-tief: #4F5B35;
  --olive-hell: #C3CFA2;     /* Olive auf Tinte */
  --olive-hauch: #ECEEE4;
  --kritisch: #B3261E; --kritisch-hauch: #FBE5E3;
  --warn: #9A6A12;     --warn-hauch: #FBF1DC;
  --ok: #1F7A45;       --ok-hauch: #E3F3E9;
  --schatten: 0 1px 2px rgba(20,20,20,.05), 0 1px 6px rgba(20,20,20,.04);
  --r: 14px; --r-klein: 9px;
  --schrift: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --gross: "Barlow Condensed", "Arial Narrow", sans-serif;
  --mono: "Azeret Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --grund: #101012; --flaeche: #1A1A1D; --flaeche-2: #232327;
    --text: #ECECEE; --leise: #A0A0A6; --blass: #6F6F76; --linie: #2A2A2F; --linie-stark: #3A3A41;
    --tinte: #262B1D; --olive: #A3B27C; --olive-tief: #BCC99A; --olive-hell: #C3CFA2; --olive-hauch: #252A1C;
    --kritisch: #FF8A80; --kritisch-hauch: #3E1A17; --warn: #E6B452; --warn-hauch: #3A2C0F; --ok: #6FCF97; --ok-hauch: #14301F;
    --schatten: 0 1px 2px rgba(0,0,0,.5);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --grund: #101012; --flaeche: #1A1A1D; --flaeche-2: #232327;
  --text: #ECECEE; --leise: #A0A0A6; --blass: #6F6F76; --linie: #2A2A2F; --linie-stark: #3A3A41;
  --tinte: #262B1D; --olive: #A3B27C; --olive-tief: #BCC99A; --olive-hell: #C3CFA2; --olive-hauch: #252A1C;
  --kritisch: #FF8A80; --kritisch-hauch: #3E1A17; --warn: #E6B452; --warn-hauch: #3A2C0F; --ok: #6FCF97; --ok-hauch: #14301F;
  --schatten: 0 1px 2px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--grund); color: var(--text); font: 400 15px/1.5 var(--schrift);
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
.wrap { max-width: 920px; margin-inline: auto; padding-inline: 20px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
a { color: inherit; }
.mono { font-family: var(--mono); font-size: 12px; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; border-radius: 6px; }

/* ── Kopf: hell, Großschrift, Linie mit Olive-Strecke ── */
.kopf { background: transparent; color: var(--text); }
.kopf .wrap { padding-block: 28px 0; position: relative; }
.kopf .wrap::after { content: ""; display: block; height: 3px; background: var(--text); margin-top: 18px; }
.kopf .wrap::before { content: ""; position: absolute; left: 20px; bottom: -3px; width: 120px; height: 9px; background: var(--olive); z-index: 1; }
.kopf .label { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--leise); margin: 0; font-weight: 600; }
.kopf h1 { font-family: var(--gross); font-style: italic; font-weight: 800; text-transform: uppercase;
  font-size: 46px; line-height: .95; letter-spacing: -.005em; margin-top: 8px; }
.kopf h1 a { text-decoration: none; }
.kopf .lead { margin: 10px 0 0; color: var(--leise); font-size: 14px; max-width: 62ch; }
.zurueck { color: var(--olive-tief); text-decoration: none; font-weight: 600; }
.hinweis { margin: 16px auto 0; max-width: 880px; padding: 10px 14px; background: var(--warn-hauch); color: var(--warn);
  font-size: 13px; border-radius: var(--r-klein); }

main { padding-block: 28px 64px; }
main.mit-leiste { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
section + section { margin-top: 30px; }
section > h2 { font-family: var(--gross); font-style: italic; font-weight: 800; text-transform: uppercase;
  font-size: 24px; letter-spacing: 0; color: var(--text); margin-bottom: 10px; line-height: 1; }
section > h2 .leise { font-family: var(--schrift); font-style: normal; font-weight: 400; text-transform: none; font-size: 13px; color: var(--leise); margin-left: 6px; }

/* ── Kernzahlen: erste Kachel dunkel wie die Ergebniskachel bei Auftrieb ── */
.kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kacheln.drei { grid-template-columns: 1.3fr 1fr 1fr; }
.kachel { background: var(--flaeche); border-radius: var(--r); padding: 14px 16px 12px; text-decoration: none;
  box-shadow: var(--schatten); display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; min-height: 104px; }
.kachel span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--leise); font-weight: 600; }
.kachel b { font-family: var(--gross); font-style: italic; font-weight: 800; font-size: 48px; line-height: .9; font-variant-numeric: tabular-nums; }
.kachel.k b { color: var(--kritisch); } .kachel.w b { color: var(--warn); }
.kacheln.drei .kachel:first-child { background: var(--tinte); color: #F5F5F2; }
.kacheln.drei .kachel:first-child span { color: #A9ADB1; }
.kacheln.drei .kachel:first-child b { color: var(--olive-hell); }
.kacheln.drei .kachel:first-child.k b { color: #FF8A80; }
.kacheln.drei .kachel:first-child.w b { color: #E6B452; }
.kachel:hover { box-shadow: 0 0 0 1px var(--linie-stark), var(--schatten); }

/* ── Listen: weiße Gruppe mit Haarlinien, wie Einstellungen in iOS ── */
.liste { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--flaeche); border-radius: var(--r);
  box-shadow: var(--schatten); overflow: hidden; margin-bottom: 12px; }
.liste > .zeile { padding: 13px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px;
  align-items: center; text-decoration: none; min-height: 52px; border-top: 1px solid var(--linie); }
.liste > .zeile:first-child { border-top: 0; }
.liste > .zeile:hover { background: var(--flaeche-2); }
.zeile .name { font-weight: 600; min-width: 0; }
.zeile .neben { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--leise); min-width: 0; }
.zeile .neben .app { color: var(--text); font-weight: 500; }
.pfeil { color: var(--blass); font-size: 20px; }
.mit-punkt { display: flex; gap: 9px; align-items: flex-start; }
.mit-punkt .punkt { margin-top: .48em; }
.mit-punkt > .umbruch { min-width: 0; }
.punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--blass); flex: none; }
.punkt.k { background: var(--kritisch); } .punkt.w { background: var(--warn); }
.leer { color: var(--leise); padding: 14px 16px; background: var(--flaeche); border-radius: var(--r); box-shadow: var(--schatten); margin: 0; }

.chip { display: inline-flex; align-items: center; font-size: 12px; padding: 2px 9px; border-radius: 99px; background: var(--flaeche-2); color: var(--leise); white-space: nowrap; }
.chip.k { background: var(--kritisch-hauch); color: var(--kritisch); font-weight: 600; }
.chip.w { background: var(--warn-hauch); color: var(--warn); }
.chip.g { background: var(--olive-hauch); color: var(--olive-tief); }

.aufklapp { margin-bottom: 6px; }
.aufklapp > summary { cursor: pointer; color: var(--text); font-size: 14px; min-height: 40px; display: flex; align-items: center; gap: 8px; list-style: none; }
.aufklapp > summary::-webkit-details-marker { display: none; }
.aufklapp > summary::before { content: "›"; color: var(--olive); font-size: 18px; font-weight: 600; transition: transform .15s; }
.aufklapp[open] > summary::before { transform: rotate(90deg); }
.aufklapp .liste { margin-top: 6px; }
.klein { font-size: 13px; } .leise { color: var(--leise); } .umbruch { overflow-wrap: anywhere; }
.klein a { color: var(--olive-tief); }

/* App-Zeilen: sechs Felder */
.ampel { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin-top: 6px; }
.ampel span { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 10.5px; color: var(--leise); padding: 5px 0; border-radius: 8px; background: var(--flaeche-2); min-width: 0; }
.ampel span b { font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--text); }
.ampel span.k { background: var(--kritisch-hauch); } .ampel span.k b { color: var(--kritisch); }
.ampel span.w { background: var(--warn-hauch); } .ampel span.w b { color: var(--warn); }
.ampel span.x { background: transparent; border: 1px dashed var(--linie); }
.ampel span.x b { color: transparent; }

/* ── Leiste unten: Glas wie iOS, aktiver Bereich Olive ── */
.leiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: grid; grid-template-columns: repeat(3, 1fr);
  background: color-mix(in srgb, var(--flaeche) 82%, transparent); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid var(--linie); padding-bottom: env(safe-area-inset-bottom, 0px); }
.leiste a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 10px; font-size: 11px; font-weight: 500; color: var(--leise); text-decoration: none; min-height: 54px; }
.leiste a[aria-current="page"] { color: var(--olive-tief); font-weight: 600; }
.leiste svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.zahl { font-family: var(--mono); font-size: 10.5px; background: var(--kritisch-hauch); color: var(--kritisch); padding: 0 6px; border-radius: 99px; }

.fuss { color: var(--leise); font-size: 12.5px; margin-top: 40px; border-top: 1px solid var(--linie); padding-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; }
.fuss .mono { font-size: 11.5px; }

@media (min-width: 720px) { .kacheln { grid-template-columns: repeat(4, minmax(0, 1fr)); } .kacheln.drei { grid-template-columns: 1.3fr 1fr 1fr; } .kopf h1 { font-size: 56px; } }
@media (max-width: 600px) {
  .wrap { padding-inline: 16px; }
  .kopf .wrap::before { left: 16px; }
  .kopf h1 { font-size: 40px; }
  .kachel { min-height: 92px; padding: 12px; }
  .kachel b { font-size: 40px; }
  .kachel span { font-size: 9.5px; letter-spacing: .1em; }
}
