/* service-qm · Lieferanten-Lagebild. Gestaltung nach dem Muster der service-Instanzen (cremiger Grund, Serifen-Überschriften,
   viel Luft), dazu als Hinweis die Farbwelt des ersten Anwendungsfalls (Telko-Blau #0050ff / #00008c / #82dcfa) für Marke,
   Knöpfe und Banner. Ampelfarben sind reserviert für Zustände, Lieferanten tragen feste eigene Farben. Hell und dunkel eigens abgestimmt. */
:root {
  --bg: #F5F3EE; --bg-2: #EEEBE3; --paper: #FBFAF7; --ink: #1F1E1C; --ink-2: #4B4945; --ink-3: #7A776F; --line: #E4E0D6; --line-2: #D6D1C4;
  --o2: #0050FF; --o2-deep: #00008C; --o2-light: #82DCFA; --o2-soft: #E8EEFF; --o2-ink: #003DC3;
  --amp-gruen: #0CA30C; --amp-gelb: #FAB219; --amp-rot: #D03B3B; --amp-grau: #9A9A96;
  --amp-gruen-soft: #E3F3E3; --amp-gelb-soft: #FDF1D6; --amp-rot-soft: #F7DEDE; --amp-grau-soft: #ECECEA;
  --l1: #2A78D6; --l2: #EB6834; --l3: #1BAF7A;
  --sch1: #C7D7F0; --sch2: #8FB0E0; --sch3: #4A7CC4; --sch4: #1F3F80;
  --radius: 14px; --radius-s: 9px;
  --shadow: 0 1px 2px rgba(31, 30, 28, .04), 0 8px 24px -16px rgba(31, 30, 28, .18);
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}
html[data-theme="dunkel"] {
  --bg: #1A1A19; --bg-2: #262624; --paper: #222221; --ink: #F1EFE9; --ink-2: #C9C5BB; --ink-3: #908C82; --line: #34332F; --line-2: #45443F;
  --o2: #4E86FF; --o2-deep: #0A0A6B; --o2-light: #82DCFA; --o2-soft: #1B2342; --o2-ink: #79A3FF;
  --amp-gruen: #22B822; --amp-gelb: #F6B733; --amp-rot: #E04E4E; --amp-grau: #6B6B67;
  --amp-gruen-soft: #16301A; --amp-gelb-soft: #3A2E10; --amp-rot-soft: #3E1A1A; --amp-grau-soft: #2B2B29;
  --l1: #3987E5; --l2: #D95926; --l3: #199E70;
  --sch1: #2C3A55; --sch2: #3F5A8A; --sch3: #5E86C7; --sch4: #9DBDF0;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -16px rgba(0, 0, 0, .6);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; margin: 0 0 .4em; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); } h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); } h3 { font-size: 1.25rem; } h4 { font-size: 1rem; font-family: var(--sans); font-weight: 600; }
p { margin: 0 0 1em; } .lead { font-size: 1.15rem; color: var(--ink-2); max-width: 46em; } .muted { color: var(--ink-3); } .small { font-size: .875rem; } .mono { font-family: var(--mono); font-size: .88em; }
.wrap { width: 100%; margin: 0 auto; padding: 0 clamp(12px, 1.5vw, 24px); max-width: 1440px; }
.narrow { max-width: 820px; }
abbr, .fach { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }

/* Banner: immer, oben, in der Hinweisfarbe */
.banner { background: var(--o2-deep); color: #fff; font-size: .82rem; letter-spacing: .02em; text-align: center; padding: 6px 12px; }
.banner b { color: var(--o2-light); font-weight: 700; margin-right: 6px; }

/* Kopf */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 14px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.1rem; white-space: nowrap; }
.brand .mark { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--o2) 0%, var(--o2-deep) 100%); display: grid; place-items: center; color: #fff; font-family: var(--sans); font-weight: 700; font-size: .78rem; letter-spacing: .02em; }
.brand small { font-family: var(--sans); color: var(--ink-3); font-size: .78rem; margin-left: 2px; }
.top .stand { margin-left: auto; font-size: .82rem; color: var(--ink-3); white-space: nowrap; }
.top .knopfreihe { display: flex; gap: 6px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); font: inherit; font-size: .93rem; cursor: pointer; transition: transform .08s ease, background .15s ease; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); } .btn.ghost:hover { background: var(--bg-2); }
.btn.o2 { background: var(--o2); border-color: var(--o2); color: #fff; } .btn.o2:hover { background: var(--o2-ink); }
.btn.small { padding: 5px 11px; font-size: .83rem; } .btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.icon { padding: 6px 9px; }

/* Rahmen der Dashboards: Navigation links, Inhalt rechts */
.rahmen { display: grid; grid-template-columns: 210px 1fr; gap: 22px; align-items: start; padding-top: 16px; }
.seitennav { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 2px; }
.seitennav a { padding: 8px 12px; border-radius: 9px; font-size: .9rem; color: var(--ink-2); display: flex; gap: 8px; align-items: center; }
.seitennav a .nr { font-family: var(--mono); font-size: .72rem; color: var(--ink-3); width: 22px; }
.seitennav a:hover { background: var(--bg-2); text-decoration: none; color: var(--ink); }
.seitennav a.active { background: var(--o2-soft); color: var(--o2-ink); font-weight: 600; } .seitennav a.active .nr { color: var(--o2-ink); }
.seitennav hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }
.seitennav .ampelpunkt { margin-left: auto; width: 9px; height: 9px; border-radius: 50%; }
@media (max-width: 900px) { .rahmen { grid-template-columns: 1fr; } .seitennav { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px; } .seitennav hr { display: none; } .seitennav a { padding: 6px 10px; font-size: .85rem; } .seitennav a .nr { width: auto; } .seitennav .ampelpunkt { margin-left: 4px; } }

/* Filterzeile */
.filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-s); margin-bottom: 16px; font-size: .9rem; }
.filter label { display: flex; align-items: center; gap: 6px; color: var(--ink-3); }
.filter select { font: inherit; font-size: .9rem; padding: 6px 28px 6px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); }
.filter .reset { margin-left: auto; }
.filter .aktiv { color: var(--o2-ink); font-weight: 600; }

/* Kopfzeile: Ampel, Gesamtwert, ein Satz */
.kopf { display: grid; grid-template-columns: auto 1fr; gap: 18px 26px; align-items: center; margin-bottom: 16px; }
.kopf .gesamt { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); min-width: 240px; }
.kopf .gesamt .zahl { font-family: var(--serif); font-size: 2.8rem; line-height: 1; }
.kopf .gesamt .was { font-size: .82rem; color: var(--ink-3); }
.kopf .satz { font-size: 1.12rem; color: var(--ink); max-width: 46em; }
.kopf .satz .small { display: block; margin-top: 4px; }
.kopf h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; grid-column: 1 / -1; }
@media (max-width: 900px) { .kopf { grid-template-columns: 1fr; } }

/* Ampel-Abzeichen: immer Farbe, Symbol und Wort */
.ampel { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; line-height: 1.3; }
.ampel .sym { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .72rem; font-weight: 800; }
.ampel.gruen { background: var(--amp-gruen-soft); color: #15601A; } .ampel.gruen .sym { background: var(--amp-gruen); }
.ampel.gelb { background: var(--amp-gelb-soft); color: #7A4F00; } .ampel.gelb .sym { background: var(--amp-gelb); color: #2a1a00; }
.ampel.rot { background: var(--amp-rot-soft); color: #8E1E1E; } .ampel.rot .sym { background: var(--amp-rot); }
.ampel.grau { background: var(--amp-grau-soft); color: var(--ink-3); } .ampel.grau .sym { background: var(--amp-grau); }
.ampel.info { background: var(--o2-soft); color: var(--o2-ink); } .ampel.info .sym { background: var(--o2); }
html[data-theme="dunkel"] .ampel.gruen { color: #9BE09B; } html[data-theme="dunkel"] .ampel.gelb { color: #FFD57A; } html[data-theme="dunkel"] .ampel.rot { color: #FFA3A3; }
.ampel.gross { font-size: .95rem; padding: 6px 14px 6px 10px; } .ampel.gross .sym { width: 24px; height: 24px; font-size: .9rem; }
.punkt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; }
.punkt.gruen { background: var(--amp-gruen); } .punkt.gelb { background: var(--amp-gelb); } .punkt.rot { background: var(--amp-rot); } .punkt.grau { background: var(--amp-grau); }
.lief { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; margin-right: 5px; }
.kz { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 6px; font-size: .74rem; font-weight: 600; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; }
.kz.vermutet { background: var(--bg-2); color: var(--ink-3); border: 1px dashed var(--line-2); } .kz.bestritten { background: var(--amp-gelb-soft); color: #7A4F00; } .kz.vorgeschlagen { background: var(--o2-soft); color: var(--o2-ink); } .kz.aufgehoben { text-decoration: line-through; } .kz.belegt { background: var(--amp-gruen-soft); color: #15601A; }
html[data-theme="dunkel"] .kz.bestritten { color: #FFD57A; } html[data-theme="dunkel"] .kz.belegt { color: #9BE09B; }

/* Kacheln */
.kacheln { display: grid; gap: 14px; grid-template-columns: repeat(12, 1fr); }
.kachel { grid-column: span 4; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.kachel.b6 { grid-column: span 6; } .kachel.b8 { grid-column: span 8; } .kachel.b12 { grid-column: span 12; } .kachel.b3 { grid-column: span 3; }
@media (max-width: 1100px) { .kachel, .kachel.b3 { grid-column: span 6; } .kachel.b8 { grid-column: span 12; } }
@media (max-width: 680px) { .kachel, .kachel.b3, .kachel.b6, .kachel.b8 { grid-column: span 12; } }
.kachel .kopfzeile { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.kachel .kopfzeile h3 { font-size: 1.02rem; margin: 0; font-family: var(--sans); font-weight: 600; }
.kachel .kopfzeile h3 a:hover { text-decoration: underline; }
.kachel .wert { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.kachel .wert .zahl { font-family: var(--serif); font-size: 2.2rem; line-height: 1; } .kachel .wert .zahl a:hover { text-decoration: none; color: var(--o2-ink); }
.kachel .wert .delta { font-size: .85rem; color: var(--ink-3); } .kachel .wert .delta.schlecht { color: var(--amp-rot); } .kachel .wert .delta.gut { color: var(--amp-gruen); }
.kachel .was { font-size: .9rem; color: var(--ink-2); margin: 0; } .kachel .was b { font-weight: 600; color: var(--ink); }
.kachel .schwelle { font-size: .8rem; color: var(--ink-3); margin: 0; }
.kachel .pfad { margin-top: auto; display: flex; gap: 12px; flex-wrap: wrap; font-size: .82rem; padding-top: 6px; } .kachel .pfad a { color: var(--o2-ink); }
.kachel .pfad a::after { content: " ▸"; } .kachel.grau { background: var(--amp-grau-soft); border-style: dashed; }
.kachel figure.ch { margin: 4px 0 0; } .kachel .liste { margin: 0; padding: 0; list-style: none; } .kachel .liste li { padding: 8px 0; border-top: 1px dashed var(--line); font-size: .9rem; display: flex; gap: 10px; align-items: flex-start; }
.kachel .liste li:first-child { border-top: 0; } .kachel .liste .datum { margin-left: auto; color: var(--ink-3); white-space: nowrap; font-size: .8rem; }
.kachel .hinweis { font-size: .78rem; color: var(--ink-3); }
.kachel .haken { display: flex; gap: 12px; flex-wrap: wrap; font-size: .85rem; } .kachel .haken span.ja::before { content: "✓ "; color: var(--amp-gruen); font-weight: 700; } .kachel .haken span.nein::before { content: "✕ "; color: var(--amp-rot); font-weight: 700; }
.zaehler { display: flex; gap: 16px; } .zaehler > div { flex: 1; padding: 12px 14px; border-radius: var(--radius-s); border: 1px solid var(--line); } .zaehler .zahl { font-family: var(--serif); font-size: 2rem; line-height: 1; } .zaehler .zahl.rot { color: var(--amp-rot); }

/* Ampelmatrix */
.matrix { width: 100%; border-collapse: separate; border-spacing: 6px; }
.matrix th { font-size: .78rem; hyphens: auto; overflow-wrap: anywhere; font-weight: 600; color: var(--ink-3); text-align: center; padding: 4px; text-transform: none; letter-spacing: 0; border: 0; }
.matrix th.zeile { text-align: left; white-space: nowrap; } .matrix td { padding: 0; border: 0; }
.matrix a.zelle { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 64px; border-radius: 10px; font-weight: 700; font-size: 1.3rem; font-family: var(--serif); gap: 2px; border: 1px solid transparent; }
.matrix a.zelle:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.matrix a.zelle .u { font-size: .72rem; font-family: var(--sans); font-weight: 600; }
.matrix .zelle.gruen { background: var(--amp-gruen-soft); color: #15601A; } .matrix .zelle.gelb { background: var(--amp-gelb-soft); color: #7A4F00; } .matrix .zelle.rot { background: var(--amp-rot-soft); color: #8E1E1E; }
html[data-theme="dunkel"] .matrix .zelle.gruen { color: #9BE09B; } html[data-theme="dunkel"] .matrix .zelle.gelb { color: #FFD57A; } html[data-theme="dunkel"] .matrix .zelle.rot { color: #FFA3A3; }
.matrix .leer { display: grid; place-items: center; min-height: 64px; border-radius: 10px; border: 1px dashed var(--line-2); color: var(--ink-3); font-size: .8rem; }

/* Bereiche auf einen Blick */
.bereiche { display: grid; gap: 6px; } .bereiche a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); font-size: .9rem; } .bereiche a:hover { text-decoration: none; background: var(--bg-2); } .bereiche a .ampel { margin-left: auto; }

/* Raster Aktivität */
.raster { display: grid; gap: 4px; font-size: .78rem; } .raster .zeile { display: grid; grid-template-columns: 90px repeat(var(--n), 1fr); gap: 4px; align-items: center; }
.raster .zeile span.n { color: var(--ink-2); font-size: .82rem; } .raster .zelle { height: 22px; border-radius: 4px; background: var(--sch1); display: grid; place-items: center; color: var(--ink); font-size: .72rem; }
.raster .zelle.s2 { background: var(--sch2); } .raster .zelle.s3 { background: var(--sch3); color: #fff; } .raster .zelle.s4 { background: var(--sch4); color: #fff; } .raster .zelle.leer { background: var(--bg-2); color: var(--ink-3); }
.raster .kopfz span { text-align: center; color: var(--ink-3); }

/* Agentenkarten */
.agenten { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; }
.agent { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--paper); text-align: center; }
.agent:hover { text-decoration: none; box-shadow: var(--shadow); }
.avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 1.35rem; color: #fff; position: relative; overflow: hidden; flex: 0 0 auto; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.agent .avatar { width: 64px; height: 64px; box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--line-2); }
.agent b { font-size: .95rem; } .agent .rolle { font-size: .78rem; color: var(--ink-3); line-height: 1.3; } .agent .lauf { font-size: .76rem; color: var(--ink-3); }
.agent.koord { border-color: var(--o2); box-shadow: inset 0 0 0 1px var(--o2); }

/* Tabellen, Listen */
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; font-weight: 600; color: var(--ink-3); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; padding: 9px 10px; border-bottom: 1px solid var(--line); }
td { padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; } tr:last-child td { border-bottom: 0; } td.r, th.r { text-align: right; } .table-wrap { overflow-x: auto; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.card + .card { margin-top: 14px; } .card.tight { padding: 16px 18px; } .card.blau { background: var(--o2-soft); border-color: transparent; }
.grid { display: grid; gap: 14px; } .grid.c2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } .grid.c3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } .grid.c4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid > .card { margin-top: 0; }
.lebenslauf { list-style: none; padding: 0; margin: 0; position: relative; } .lebenslauf::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line-2); }
.lebenslauf li { position: relative; padding: 0 0 14px 30px; font-size: .92rem; } .lebenslauf li::before { content: ""; position: absolute; left: 1px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--o2); border: 2px solid var(--paper); }
.lebenslauf li.offen::before { background: var(--paper); border: 2px solid var(--line-2); } .lebenslauf li.rot::before { background: var(--amp-rot); } .lebenslauf li.gruen::before { background: var(--amp-gruen); }
.lebenslauf .wann { color: var(--ink-3); font-size: .8rem; margin-left: 6px; }
.brot { font-size: .82rem; color: var(--ink-3); margin: 10px 0 2px; } .brot a { color: var(--o2-ink); }
.kette { font-family: var(--mono); font-size: .8rem; } .kette td { padding: 6px 8px; }
.hash { font-family: var(--mono); font-size: .78rem; color: var(--ink-3); word-break: break-all; }

/* Figuren */
figure.ch { margin: 0; width: 100%; } figure.ch svg { display: block; width: 100%; height: auto; max-width: 100%; } figure.ch figcaption { font-size: .82rem; color: var(--ink-3); text-align: center; margin-top: 2px; }
figure.ch a:hover { text-decoration: none; }
.ch-legende { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: var(--ink-2); margin-top: 6px; }
.ch-legende span { display: inline-flex; align-items: center; gap: 6px; } .ch-legende i { width: 14px; height: 10px; border-radius: 2px; background: var(--c, var(--ink-3)); display: inline-block; }
.ch-legende i.linie { height: 3px; border-radius: 2px; } .ch-legende i.gestrichelt { height: 0; border-top: 2px dashed var(--c); background: none; } .ch-legende i.band { opacity: .3; }
.ch-legende i.schraffiert { background: repeating-linear-gradient(45deg, var(--c) 0 2px, transparent 2px 5px); } .ch-legende i.umriss { background: none; border: 1.5px dashed var(--c); }
.ch-legende i.hohl { width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--c); } .ch-legende i.voll { width: 12px; height: 12px; border-radius: 50%; }
.ch-legende i.gestrichelt-rand { border-style: dashed; } .ch-legende i.strich { width: 3px; height: 14px; background: var(--ink); }
.ch-legende i.form-dreieck { width: 0; height: 0; background: none; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 12px solid var(--c); border-radius: 0; } .ch-legende i.form-quadrat { width: 11px; height: 11px; border-radius: 0; } .ch-legende i.form-kreis { width: 12px; height: 12px; border-radius: 50%; }
.ch-tab { margin-top: 6px; font-size: .85rem; } .ch-tab summary { cursor: pointer; color: var(--ink-3); font-size: .8rem; } .ch-tab table { font-size: .82rem; margin-top: 6px; } .ch-tab td, .ch-tab th { padding: 5px 8px; }
figure.ch.tacho-fig { display: inline-flex; flex-direction: column; align-items: center; width: auto; } .tacho-fig svg { width: auto; max-width: 100%; }
.tachos { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-around; align-items: flex-end; }
.spark { display: block; }
.fortschritt { height: 14px; background: var(--bg-2); border-radius: 999px; overflow: hidden; } .fortschritt > span { display: block; height: 100%; border-radius: 999px; }
#ch-tip { position: fixed; z-index: 50; display: none; max-width: 300px; padding: 7px 10px; background: var(--ink); color: var(--bg); font-size: .8rem; border-radius: 8px; pointer-events: none; box-shadow: var(--shadow); line-height: 1.35; }

/* Chat */
.chat { display: grid; grid-template-rows: auto 1fr auto; gap: 12px; min-height: 60vh; }
.chat .vorschlaege { display: flex; flex-wrap: wrap; gap: 6px; } .chat .vorschlaege button { font: inherit; font-size: .85rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink-2); cursor: pointer; } .chat .vorschlaege button:hover { border-color: var(--o2); color: var(--o2-ink); }
.chat .verlauf { display: flex; flex-direction: column; gap: 10px; } .nachricht { max-width: 760px; padding: 12px 16px; border-radius: 14px; font-size: .95rem; }
.nachricht.sie { align-self: flex-end; background: var(--o2-soft); color: var(--ink); border-bottom-right-radius: 4px; } .nachricht.quinn { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.nachricht .wer { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 4px; } .nachricht ol, .nachricht ul { margin: 6px 0; padding-left: 20px; } .nachricht .belege { margin-top: 8px; font-size: .8rem; color: var(--ink-3); } .nachricht .belege a { color: var(--o2-ink); }
.nachricht blockquote { margin: 6px 0; padding: 6px 10px; border-left: 3px solid var(--line-2); color: var(--ink-2); font-size: .88rem; background: var(--bg-2); border-radius: 0 6px 6px 0; }
.chat form { display: flex; gap: 8px; } .chat input { flex: 1; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; }

/* Startseite */
.hero { padding: clamp(40px, 7vw, 90px) 0 clamp(28px, 5vw, 60px); display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.hero h1 { max-width: 14em; } .hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; color: var(--o2-ink); font-weight: 700; margin-bottom: 12px; }
section.block { padding: clamp(28px, 5vw, 56px) 0; } section.block + section.block { border-top: 1px solid var(--line); }
.mini-lage { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.mini-lage .matrix a.zelle { min-height: 56px; font-size: 1.15rem; }
.prozess { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; counter-reset: s; }
.prozess div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 16px 14px; position: relative; }
.prozess div::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--o2); color: #fff; font-weight: 700; font-size: .8rem; margin-bottom: 8px; }
.prozess div b { display: block; margin-bottom: 4px; } .prozess div span { font-size: .85rem; color: var(--ink-2); } .prozess div .wer { display: inline-block; margin-top: 8px; font-size: .74rem; padding: 2px 8px; border-radius: 999px; background: var(--bg-2); color: var(--ink-3); }
.prozess div .wer.agent { background: var(--o2-soft); color: var(--o2-ink); }
@media (max-width: 900px) { .prozess { grid-template-columns: 1fr 1fr; } } @media (max-width: 560px) { .prozess { grid-template-columns: 1fr; } }
.preise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; } @media (max-width: 900px) { .preise { grid-template-columns: 1fr 1fr; } } @media (max-width: 560px) { .preise { grid-template-columns: 1fr; } }
.preis { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; } .preis .stufe { font-size: .74rem; color: var(--o2-ink); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.preis h3 { margin: 0; } .preis .dauer { font-size: .85rem; color: var(--ink-3); } .preis p { font-size: .9rem; color: var(--ink-2); margin: 0; } .preis .betrag { margin-top: auto; font-family: var(--serif); font-size: 1.3rem; padding-top: 8px; }
.zusagen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; } @media (max-width: 900px) { .zusagen { grid-template-columns: 1fr 1fr; } }
.zusagen div { padding: 16px; border-radius: var(--radius-s); background: var(--paper); border: 1px solid var(--line); font-size: .92rem; } .zusagen div::before { content: "✓"; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--amp-gruen-soft); color: #15601A; font-weight: 800; margin-bottom: 8px; }
.waage { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: center; } @media (max-width: 700px) { .waage { grid-template-columns: 1fr; } }
.boards8 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; } @media (max-width: 900px) { .boards8 { grid-template-columns: 1fr 1fr; } }
.boards8 a { display: block; padding: 14px; border-radius: var(--radius-s); background: var(--paper); border: 1px solid var(--line); } .boards8 a:hover { text-decoration: none; border-color: var(--o2); }
.boards8 a .nr { font-family: var(--mono); font-size: .72rem; color: var(--o2-ink); } .boards8 a b { display: block; margin: 2px 0 4px; } .boards8 a span { font-size: .82rem; color: var(--ink-2); }
.infografik { width: 100%; height: auto; display: block; } .infografik text { font-family: var(--sans); }
.kontakt form { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; } .kontakt form textarea, .kontakt form .voll { grid-column: 1 / -1; }
.kontakt input, .kontakt textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-s); background: var(--paper); color: var(--ink); font: inherit; } .kontakt textarea { min-height: 100px; resize: vertical; }
@media (max-width: 640px) { .kontakt form { grid-template-columns: 1fr; } }

/* Nachweis-Mappe */
.mappe { background: #fff; color: #1a1a1a; border: 1px solid var(--line); border-radius: 8px; padding: 28px 32px; box-shadow: var(--shadow); font-family: var(--serif); }
html[data-theme="dunkel"] .mappe { background: #f6f4ef; }
.mappe .mk { display: flex; justify-content: space-between; font-family: var(--sans); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: #666; border-bottom: 1px solid #ddd; padding-bottom: 8px; }
.mappe h3 { font-size: 1.5rem; margin: 14px 0 4px; color: #1a1a1a; } .mappe .unter { font-family: var(--sans); font-size: .85rem; color: #555; margin-bottom: 14px; }
.mappe ol { padding-left: 22px; } .mappe ol li { margin-bottom: 6px; } .mappe .empf { margin-top: 12px; padding: 10px 12px; background: #f1efe8; border-radius: 6px; font-family: var(--sans); font-size: .9rem; }
.mappe .ampel { font-family: var(--sans); }
.druck-seite { max-width: 900px; margin: 0 auto; }
.druck-seite .mappe { box-shadow: none; } .druck-seite h2 { font-size: 1.3rem; margin-top: 22px; }
@media print {
  .banner, .top, footer, .seitennav, .filter, .nicht-drucken, #ch-tip { display: none !important; }
  body { background: #fff; color: #000; } .rahmen { display: block; } .mappe { border: 0; box-shadow: none; padding: 0; } .card { box-shadow: none; break-inside: avoid; } table { font-size: 10.5pt; }
  .druck-seite { max-width: none; } a { color: inherit; } .ch-tab { display: none; }
}

/* Sonstiges */
footer { margin-top: 56px; padding: 26px 0 40px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-3); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.leer { color: var(--ink-3); font-size: .9rem; padding: 10px 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: .9rem; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 60; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.rollen { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; } .rollen div { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); font-size: .88rem; } .rollen b { display: block; margin-bottom: 4px; }
.hint { font-size: .85rem; padding: 10px 14px; border-radius: var(--radius-s); background: var(--o2-soft); color: var(--ink-2); border-left: 4px solid var(--o2); }
.themen { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.themen div { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--paper); font-size: .9rem; }

/* Kanban-Board der Befunde */
.kanban { display: grid; grid-template-columns: repeat(6, minmax(190px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
@media (max-width: 1200px) { .kanban { grid-template-columns: repeat(3, minmax(220px, 1fr)); } } @media (max-width: 700px) { .kanban { grid-template-columns: 1fr 1fr; } }
.spalte { background: var(--bg-2); border-radius: var(--radius-s); padding: 10px; min-height: 200px; border: 1px solid transparent; }
.spalte.ziel { border-color: var(--o2); background: var(--o2-soft); } .spalte h4 { margin: 0 0 2px; display: flex; justify-content: space-between; font-size: .9rem; }
.karten { display: flex; flex-direction: column; gap: 8px; min-height: 60px; max-height: 68vh; overflow-y: auto; padding-right: 2px; }
.karte { background: var(--paper); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font-size: .86rem; cursor: grab; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); }
.karte:active { cursor: grabbing; } .karte.zieht { opacity: .5; } .karte .k-kopf { display: flex; justify-content: space-between; align-items: center; } .karte b { font-weight: 600; line-height: 1.3; }

/* Demodaten: Katalog der Datenarten und Tabellen der Rohdaten */
.daten-gruppe { margin-top: 26px; } .daten-gruppe h2 { font-family: var(--serif); font-size: 1.35rem; margin: 0 0 4px; } .daten-gruppe h2 .muted { font-family: var(--sans); font-size: .85rem; font-weight: 400; margin-left: 8px; }
.daten-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 12px; }
.daten-karte { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); color: inherit; }
.daten-karte:hover { text-decoration: none; border-color: var(--o2); } .daten-karte .kopfzeile { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; } .daten-karte p { margin: 6px 0 0; color: var(--ink-2); } .daten-karte .quelle { color: var(--ink-3); }
.daten-karte .felder { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; } .daten-karte .felder span { font-size: .72rem; padding: 2px 7px; border-radius: 999px; background: var(--bg-2); color: var(--ink-3); }
.daten-tabelle td { white-space: nowrap; max-width: 320px; overflow: hidden; text-overflow: ellipsis; font-size: .86rem; padding: 7px 9px; } .daten-tabelle th { white-space: nowrap; padding: 7px 9px; }
.daten-obj summary { cursor: pointer; list-style: none; color: var(--ink-3); } .daten-obj summary::-webkit-details-marker { display: none; } .daten-obj[open] summary { color: var(--o2-ink); }
.daten-obj pre { white-space: pre-wrap; font-size: .76rem; margin: 6px 0 0; padding: 8px 10px; background: var(--bg-2); border-radius: var(--radius-s); max-width: 480px; max-height: 260px; overflow: auto; }
.daten-tabelle td:has(.daten-obj[open]) { white-space: normal; overflow: visible; }
.rahmen > .inhalt { min-width: 0; } .daten-tabelle { min-width: 0; }
