/* ===== Schrift: Inter (SIL Open Font License, siehe schrift/OFL.txt) ===== */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/schrift/inter.woff2") format("woff2");
}

/* ===== Grundwerte (hell) ===== */
:root {
  --bg: #F5F6F8; --karte: #FFFFFF; --karte-2: #F9FAFB; --flaeche: #F2F4F7;
  --linie: #EAECF0; --linie-stark: #D0D5DD;
  --text: #101828; --text-mittel: #475467; --text-leise: #667085;
  --akzent: #1F7A3F; --akzent-hell: #EAF5EE; --akzent-dunkel: #17602F;
  --gut: #067647; --gut-hell: #ECFDF3; --schlecht: #B42318; --schlecht-hell: #FEF3F2;
  --radius: 14px; --radius-mittel: 10px; --radius-klein: 8px;
  --schatten: 0 1px 2px rgba(16, 24, 40, .05);
  --schatten-hoch: 0 4px 8px -2px rgba(16, 24, 40, .08), 0 2px 4px -2px rgba(16, 24, 40, .04);
  --schrift: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 var(--schrift); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
.zahlen { font-variant-numeric: tabular-nums; }

/* ===== Knöpfe ===== */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--linie-stark); background: var(--karte); border-radius: var(--radius-klein); padding: 9px 14px; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; box-shadow: var(--schatten); transition: background .12s; }
.knopf:hover { background: var(--karte-2); }
.knopf.haupt { background: var(--akzent); border-color: var(--akzent); color: #fff; }
.knopf.haupt:hover { background: var(--akzent-dunkel); }
.knopf:disabled { opacity: .6; cursor: default; }

/* ===== Karten und Kleinteile ===== */
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten); }
.leise { color: var(--text-leise); }
.mittel { color: var(--text-mittel); }
.delta { display: inline-flex; align-items: center; gap: 2px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.delta.gut { color: var(--gut); background: var(--gut-hell); }
.delta.schlecht { color: var(--schlecht); background: var(--schlecht-hell); }
.delta.null, .delta.leer { color: var(--text-mittel); background: var(--flaeche); font-weight: 500; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--flaeche); color: var(--text-mittel); font-variant-numeric: tabular-nums; }
.badge.trust { background: var(--akzent-hell); color: var(--akzent); }
.badge.spam { background: var(--schlecht-hell); color: var(--schlecht); }
.hinweis { padding: 12px 14px; border-radius: var(--radius-mittel); background: var(--flaeche); color: var(--text-mittel); font-size: 13px; }
.hinweis.fehler { background: var(--schlecht-hell); color: var(--schlecht); }

/* Umschalter wie in Dashboards üblich */
.schalter { display: inline-flex; background: var(--flaeche); border-radius: var(--radius-klein); padding: 3px; gap: 2px; }
.schalter button { border: 0; background: transparent; padding: 6px 12px; border-radius: 6px; cursor: pointer; color: var(--text-mittel); font-weight: 500; font-size: 13px; white-space: nowrap; }
.schalter button[aria-pressed="true"] { background: var(--karte); color: var(--text); font-weight: 600; box-shadow: var(--schatten-hoch); }

/* Kippschalter (Keyword-Messung) */
.kipp { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: var(--text-mittel); font-weight: 500; }
.kipp input { appearance: none; width: 36px; height: 20px; border-radius: 999px; background: var(--linie-stark); position: relative; cursor: pointer; transition: background .15s; flex: none; }
.kipp input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .2); transition: transform .15s; }
.kipp input:checked { background: var(--akzent); }
.kipp input:checked::after { transform: translateX(16px); }

/* Kürzel-Kreis je Kunde, Farbe aus dem Namen */
.kuerzel { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; }
.kuerzel.f0 { background: #1F7A3F; } .kuerzel.f1 { background: #2E6FD8; } .kuerzel.f2 { background: #7A4FD6; }
.kuerzel.f3 { background: #D9822B; } .kuerzel.f4 { background: #0E8A8A; } .kuerzel.f5 { background: #C2417A; }

/* Trust als Balken 0–100 */
.trust-balken { display: flex; align-items: center; gap: 10px; }
.trust-balken .spur { flex: 1; height: 6px; border-radius: 999px; background: var(--flaeche); overflow: hidden; min-width: 60px; }
.trust-balken .fuell { display: block; height: 100%; border-radius: 999px; background: var(--akzent); }
.trust-balken b { min-width: 24px; text-align: right; font-variant-numeric: tabular-nums; }

/* ===== Anmeldung ===== */
.anmeldung { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.anmeldung form { width: 100%; max-width: 380px; padding: 32px; display: grid; gap: 16px; box-shadow: var(--schatten-hoch); }
.anmeldung .marke { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.anmeldung .marke img { width: 36px; height: 36px; border-radius: 9px; }
.anmeldung h1 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.anmeldung label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text-mittel); }
.anmeldung input { border: 1px solid var(--linie-stark); border-radius: var(--radius-klein); padding: 11px 13px; background: #fff; font-size: 16px; box-shadow: var(--schatten); }
.anmeldung input:focus { outline: 2px solid var(--akzent-hell); border-color: var(--akzent); }
.anmeldung .knopf { padding: 12px; font-size: 15px; }

/* ===== Noten, Paare, Linien ===== */
.note.gruen { color: var(--gut); } .note.gelb { color: #B54708; } .note.rot { color: var(--schlecht); }
.trust-balken .fuell.gelb { background: #F79009; } .trust-balken .fuell.rot { background: var(--schlecht); } .trust-balken .fuell.gruen { background: var(--akzent); }
.paar { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.wert-zelle { display: inline-flex; align-items: center; gap: 8px; }
.wert-zelle b { font-variant-numeric: tabular-nums; min-width: 22px; }
svg.linie { width: 100%; height: 32px; display: block; overflow: visible; }
svg.linie path { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
svg.linie .steigt { stroke: var(--gut); } svg.linie .faellt { stroke: var(--schlecht); } svg.linie .flach { stroke: var(--text-leise); }
.bewegung { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--linie); text-decoration: none; }
.bewegung:first-child { border-top: 0; }
.bewegung .pfeil { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.bewegung .pfeil.gut { background: var(--gut-hell); color: var(--gut); } .bewegung .pfeil.schlecht { background: var(--schlecht-hell); color: var(--schlecht); }
.bewegung .text { min-width: 0; display: grid; }
.bewegung .text b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bewegung .text span { color: var(--text-mittel); font-size: 13px; }
.bewegung .bereich { margin-left: auto; flex: none; font-size: 11px; font-weight: 600; color: var(--text-leise); text-transform: uppercase; letter-spacing: .04em; }
.schwere { display: inline-flex; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; }
.schwere.fehler { background: var(--schlecht-hell); color: var(--schlecht); } .schwere.warnung { background: #FFFAEB; color: #B54708; } .schwere.hinweis { background: var(--flaeche); color: var(--text-mittel); }
.nowrap { white-space: nowrap; }

/* ===== Projekt-Icon (Favicon oder Kürzel) ===== */
.icon-box { flex: none; width: 24px; height: 24px; border-radius: 7px; background: #fff; border: 1px solid var(--linie); display: inline-grid; place-items: center; overflow: hidden; }
.icon-box img { width: 16px; height: 16px; object-fit: contain; display: block; }
.icon-box .kuerzel { width: 24px; height: 24px; border-radius: 0; font-size: 9.5px; }
