/* Leadwerk Pace Sales: gemeinsame Gestaltung für Verwaltung und Kundenboxen, abgestimmt auf das Control Center von
   Leadwerk Pace (dunkler Grund, Orange #FF9100, Inter, Seitenleiste, Karten mit feiner oranger Kante). Keine Schriften
   oder Bilder von außen: Inter und das Logo liefert die Anwendung selbst aus. */
@font-face {
  font-family: 'Inter';
  src: url('/s/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --grund: #0e0e16;
  --flaeche: #16161f;
  --flaeche-2: #1c1c28;
  --eingabe: #22222e;
  --text: #f8fafc;
  --leise: #a6a6b8;
  --leiser: #7a7a8c;
  --linie: rgba(255, 145, 0, 0.12);
  --linie-hell: rgba(255, 255, 255, 0.08);
  --akzent: #ff9100;
  --akzent-hell: #ffb347;
  --akzent-dunkel: #e07800;
  --akzent-text: #0e0e16;
  --akzent-zart: rgba(255, 145, 0, 0.10);
  --akzent-hauch: rgba(255, 145, 0, 0.06);
  --ok: #34d399;
  --ok-zart: rgba(52, 211, 153, 0.12);
  --fehler: #f87171;
  --fehler-zart: rgba(248, 113, 113, 0.12);
  --warn: #fbbf24;
  --warn-zart: rgba(251, 191, 36, 0.12);
  --info: #60a5fa;
  --info-zart: rgba(96, 165, 250, 0.12);
  --radius: 12px;
  --radius-klein: 8px;
  --seite: 176px;
  --seite-eng: 56px;
  --kopf: 64px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font: 15px/1.55 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-feature-settings: 'rlig' 1, 'calt' 1;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(255, 145, 0, 0.35); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--grund); }
::-webkit-scrollbar-thumb { background: rgba(255, 145, 0, 0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 145, 0, 0.35); }

a { color: var(--akzent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { letter-spacing: -0.01em; }
h2 { font-size: 17px; font-weight: 600; margin: 28px 0 10px; display: flex; align-items: center; gap: 8px; }
h2 .ic { color: var(--akzent); }
h3 { font-size: 15px; font-weight: 600; margin: 20px 0 8px; }
.leise { color: var(--leise); }
small { font-size: 12.5px; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; border-radius: 6px; }

/* ------------------------------------------------------------------ Rahmen: Kopf, Seitenleiste, Inhalt */
.pace-kopf {
  position: fixed; inset: 0 0 auto 0; height: var(--kopf); z-index: 50;
  display: flex; align-items: center; gap: 12px; padding: 0 16px;
  background: rgba(14, 14, 22, 0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 145, 0, 0.08); box-shadow: 0 1px 0 0 rgba(255, 145, 0, 0.06);
}
.pace-marke { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-width: 0; }
.pace-marke:hover { text-decoration: none; }
.pace-marke img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.pace-marke strong { font-size: 15px; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; }
.pace-marke strong span { color: var(--akzent); }
.pace-kontext { font-size: 13px; color: var(--leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 12px; border-left: 1px solid var(--linie-hell); }
.pace-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
  background: rgba(255, 145, 0, 0.18); color: var(--akzent); border: 1px solid rgba(255, 145, 0, 0.35);
}
.pace-menueknopf { display: none; }

.pace-seite {
  position: fixed; top: var(--kopf); bottom: 0; left: 0; width: var(--seite); z-index: 45;
  display: flex; flex-direction: column; padding: 10px 8px;
  background: rgba(14, 14, 22, 0.95); border-right: 1px solid rgba(255, 145, 0, 0.08);
  overflow-y: auto; overflow-x: hidden; transition: width .2s ease;
}
.pace-seite nav { display: flex; flex-direction: column; gap: 4px; }
.pace-seite-unten { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--linie-hell); display: flex; flex-direction: column; gap: 6px; position: relative; }
.pace-seite nav.unten { margin: 0; padding: 0; border: 0; }
.pace-ich {
  display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 8px; border-radius: var(--radius-klein);
  background: var(--flaeche-2); border: 1px solid var(--linie-hell); min-width: 0;
}
.pace-ich .pace-avatar { width: 30px; height: 30px; }
.pace-ich-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pace-abmelden {
  flex: none; width: 30px; height: 30px; padding: 0; display: grid; place-items: center; border-radius: 8px;
  background: transparent; border: 1px solid transparent; color: var(--leise);
}
.pace-abmelden:hover { color: var(--fehler); border-color: rgba(248, 113, 113, 0.4); background: var(--fehler-zart); }
.pace-eng .pace-ich { flex-direction: column; gap: 6px; padding: 8px 0; background: transparent; border-color: transparent; }
.pace-eng .pace-ich-name { display: none; }
.pace-punkt {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 7px 10px; border-radius: var(--radius-klein); border: 1px solid transparent;
  background: transparent; color: var(--leise); font-family: inherit; font-size: 13.5px; font-weight: 500; line-height: 1.3;
  cursor: pointer; white-space: nowrap;
}
.pace-punkt:hover { background: var(--akzent-hauch); color: var(--text); }
.pace-punkt[aria-current="page"] { background: var(--akzent-zart); color: var(--akzent); }
.pace-punkt.betont { color: var(--akzent); border-color: rgba(255, 145, 0, 0.35); margin: 6px 0; }
.pace-eng .pace-punkt.betont { margin: 6px 0; }
.pace-punkt.betont:hover { background: var(--akzent-zart); border-color: rgba(255, 145, 0, 0.5); }
.pace-punkt .ic { width: 16px; height: 16px; flex: none; }
.pace-punkt span { overflow: hidden; text-overflow: ellipsis; }
.pace-einklappen {
  margin-top: 8px; align-self: flex-end; width: 28px; height: 28px; border-radius: 6px;
  display: grid; place-items: center; background: transparent; border: 0; color: var(--leiser); cursor: pointer;
}
.pace-einklappen:hover { color: var(--text); background: var(--akzent-hauch); }
.pace-eng .pace-seite { width: var(--seite-eng); }
.pace-eng .pace-punkt { justify-content: center; padding: 10px 0; }
.pace-eng .pace-punkt span { display: none; }
.pace-eng .pace-punkt .ic { width: 18px; height: 18px; }
.pace-eng .pace-einklappen { align-self: center; transform: rotate(180deg); }

.pace-inhalt { margin-left: var(--seite); padding: calc(var(--kopf) + 24px) 32px 48px; transition: margin-left .2s ease; }
.pace-eng .pace-inhalt { margin-left: var(--seite-eng); }

/* Ziehgriff am Rand der Seitenleiste; beim Ziehen ohne Übergang, damit die Leiste der Maus folgt */
.pace-griff {
  position: fixed; top: var(--kopf); bottom: 0; left: calc(var(--seite) - 3px); width: 7px; z-index: 46;
  cursor: col-resize; touch-action: none; transition: left .2s ease;
}
.pace-eng .pace-griff { left: calc(var(--seite-eng) - 3px); }
.pace-griff::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: 3px; width: 1px; background: transparent; transition: background .15s ease;
}
.pace-griff:hover::after, .pace-griff:focus-visible::after, .pace-ziehen .pace-griff::after { background: var(--akzent); width: 2px; left: 2px; }
.pace-griff:focus-visible { outline: none; }
.pace-ziehen, .pace-ziehen * { cursor: col-resize !important; user-select: none; }
.pace-ziehen .pace-seite, .pace-ziehen .pace-inhalt, .pace-ziehen .pace-griff,
.pace-start .pace-seite, .pace-start .pace-inhalt, .pace-start .pace-griff { transition: none; }
.pace-breite { max-width: 1120px; margin: 0 auto; }

/* Anmeldung und Einrichtung: ohne Seitenleiste, Karte in der Mitte */
.pace-leer { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.pace-leer-karte { width: 100%; max-width: 440px; }
.pace-leer-marke { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 20px; text-align: center; }
.pace-leer-marke img { width: 88px; height: 88px; }
.pace-leer-marke strong { font-size: 18px; letter-spacing: 0.02em; }
.pace-leer-marke strong span { color: var(--akzent); }
.pace-leer-marke small { color: var(--leise); }
.pace-leer form { max-width: none; }
.pace-leer .seitenkopf h1 { font-size: 20px; }

/* ------------------------------------------------------------------ Seitenkopf */
.seitenkopf { margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 145, 0, 0.2); }
.seitenkopf h1 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.seitenkopf .meldung { margin: 12px 0 0; }
.plakette {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; line-height: 1.4;
  padding: 2px 10px; border-radius: 999px; border: 1px solid rgba(255, 145, 0, 0.35); background: var(--akzent-hauch); color: var(--akzent);
  white-space: nowrap;
}

.seitenkopf-zeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.seitenkopf .aktionen button { padding: 8px 14px; font-size: 13.5px; }
.plakette.klein { font-size: 11px; padding: 1px 8px; margin-left: 6px; }
.seitenkopf-hinweise .meldung { margin: 12px 0 0; }

/* Abschnitte einer Seite als Karten; was darin liegt, wird eine Stufe heller statt eine zweite Karte */
.abschnitt { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 2px 20px 20px; margin: 16px 0; }
.abschnitt > h2 { margin: 16px 0 12px; }
.abschnitt form, .abschnitt table, .abschnitt dl, .abschnitt .codekarte { background: var(--flaeche-2); }
.abschnitt form { border-color: var(--linie-hell); }
.abschnitt table th { background: rgba(255, 255, 255, 0.03); }

/* ------------------------------------------------------------------ Karten, Formulare, Knöpfe */
form, .karte {
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 18px 20px; max-width: 680px;
}
.karte { max-width: none; margin: 12px 0; }
.feld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.feld > span { font-weight: 500; font-size: 13px; color: var(--text); }
.feld small { color: var(--leise); font-size: 12.5px; }
.haken { display: flex; flex-direction: row; gap: 10px; align-items: flex-start; margin: 4px 0 14px; font-size: 14px; cursor: pointer; }
.haken input { margin-top: 3px; flex: none; }
.haken span { flex: 1 1 auto; }
input, select, textarea {
  font: inherit; font-size: 14px; color: var(--text); background: var(--eingabe);
  border: 1px solid var(--linie-hell); border-radius: var(--radius-klein); padding: 9px 12px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--leiser); }
input:hover, select:hover, textarea:hover { border-color: rgba(255, 145, 0, 0.25); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--akzent); box-shadow: 0 0 0 3px rgba(255, 145, 0, 0.18); }
textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
select { appearance: none; padding-right: 32px;
  background-image: linear-gradient(45deg, transparent 50%, var(--leise) 50%), linear-gradient(135deg, var(--leise) 50%, transparent 50%);
  background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--akzent); padding: 0; }
input[type=file] { border: 0; padding: 0; margin-bottom: 14px; background: transparent; color: var(--leise); }
input[type=file]::file-selector-button { font: inherit; font-size: 13px; margin-right: 10px; padding: 7px 12px; border-radius: var(--radius-klein);
  border: 1px solid rgba(255, 145, 0, 0.35); background: transparent; color: var(--akzent); cursor: pointer; }
input[type=date] { color-scheme: dark; }

button, a.knopf {
  font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; cursor: pointer; border-radius: var(--radius-klein); padding: 9px 16px;
  border: 1px solid var(--akzent); background: var(--akzent); color: var(--akzent-text); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; transition: background .15s, border-color .15s, color .15s;
}
button:hover, a.knopf:hover { background: var(--akzent-hell); border-color: var(--akzent-hell); text-decoration: none; }
button.leise { background: transparent; color: var(--akzent); border-color: rgba(255, 145, 0, 0.35); font-weight: 500; }
button.leise:hover { background: var(--akzent-zart); border-color: rgba(255, 145, 0, 0.5); }
button.gefahr { background: transparent; color: var(--fehler); border-color: rgba(248, 113, 113, 0.45); font-weight: 500; }
button.gefahr:hover { background: var(--fehler-zart); }
button:disabled { opacity: .55; cursor: wait; }
.zeile { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.aktionen { display: flex; gap: 6px; flex-wrap: wrap; }
.aktionen button { padding: 5px 10px; font-size: 12.5px; }
td .aktionen button:not(.gefahr) { background: transparent; color: var(--akzent); border-color: rgba(255, 145, 0, 0.35); font-weight: 500; }
td .aktionen button:not(.gefahr):hover { background: var(--akzent-zart); }

.meldung { padding: 10px 14px; border-radius: var(--radius-klein); border: 1px solid var(--linie-hell); max-width: 680px; font-size: 14px; background: var(--flaeche); }
.meldung.ok { border-color: rgba(52, 211, 153, 0.4); color: var(--ok); background: var(--ok-zart); }
.meldung.fehler { border-color: rgba(248, 113, 113, 0.45); color: var(--fehler); background: var(--fehler-zart); }
.meldung.hinweis { border-color: rgba(255, 145, 0, 0.3); color: var(--akzent-hell); background: var(--akzent-hauch); }
.ausgabe:empty { display: none; }
.ausgabe { margin-top: 10px; }
.befunde, .vergleich { margin: 6px 0 0; padding-left: 20px; font-size: 14px; }

/* ------------------------------------------------------------------ Tabellen und Plaketten */
table { border-collapse: separate; border-spacing: 0; width: 100%; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); font-size: 14px; overflow: hidden; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--linie-hell); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-size: 12px; color: var(--leise); font-weight: 500; background: var(--flaeche-2); letter-spacing: 0.02em; }
td.zahl, th.zahl { text-align: right; font-variant-numeric: tabular-nums; }
td.warn { color: var(--fehler); font-weight: 600; }
td.daten { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; word-break: break-all; color: var(--leise); }
td a { font-weight: 500; }
.zustand, .auftrag, .phase {
  display: inline-flex; align-items: center; font-size: 12px; font-weight: 500; padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--linie-hell); background: var(--flaeche-2); color: var(--leise); white-space: nowrap;
}
.zustand.aktiv, .auftrag.zugestellt, .phase.gewonnen, .phase.uebergeben { border-color: rgba(52, 211, 153, 0.4); color: var(--ok); background: var(--ok-zart); }
.zustand.demo, .auftrag.offen { border-color: rgba(251, 191, 36, 0.4); color: var(--warn); background: var(--warn-zart); }
.zustand.ruhend { border-color: rgba(96, 165, 250, 0.4); color: var(--info); background: var(--info-zart); }
.zustand.geloescht, .auftrag.fehler, .phase.verloren { border-color: rgba(248, 113, 113, 0.45); color: var(--fehler); background: var(--fehler-zart); }
.phase { border-color: rgba(255, 145, 0, 0.3); color: var(--akzent-hell); background: var(--akzent-hauch); }

dl.eckdaten, dl.messung { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 16px 20px; }
dl.eckdaten dt, dl.messung dt { color: var(--leise); font-size: 13px; }
dl.eckdaten dd, dl.messung dd { margin: 0; overflow-wrap: anywhere; }

.codekarte { border: 1px solid rgba(255, 145, 0, 0.5); background: var(--akzent-hauch); padding: 14px 18px; margin: 12px 0; border-radius: var(--radius); max-width: 680px; }
.codekarte .code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 26px; letter-spacing: .08em; margin: 6px 0; color: var(--akzent); user-select: all; }

/* ------------------------------------------------------------------ Kundenbox */
.filter { display: flex; flex-wrap: wrap; gap: 8px; max-width: none; padding: 14px; margin-bottom: 14px;
  position: sticky; top: var(--kopf); z-index: 20; transition: padding .15s, box-shadow .15s; }
.filter.angedockt { padding: 8px; border-top-left-radius: 0; border-top-right-radius: 0; background: rgba(22, 22, 31, 0.96); backdrop-filter: blur(8px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); border-color: rgba(255, 145, 0, 0.25); }
.filter.angedockt > :not(input[type=search]) { display: none; }
.filter.angedockt input[type=search] { flex: 1 1 100%; }
.filter-marke { height: 1px; }
.filter select, .filter input[type=search] { width: auto; min-width: 140px; flex: 1 1 160px; }
.filter .haken { margin: 0; align-items: center; }
.rollen { overflow-x: auto; }
table.liste tbody tr { cursor: pointer; transition: background .12s; }
table.liste tbody tr:hover, table.liste tbody tr:focus { background: var(--akzent-hauch); outline: none; }
tr.ueber td:first-child { box-shadow: inset 3px 0 0 var(--fehler); }
.marke-beispiel, .marke-pflicht { font-size: 11px; color: var(--warn); font-weight: 600; letter-spacing: 0.02em; }
.vorlage { white-space: pre-wrap; font-size: 14px; color: var(--leise); }

/* Liste: sortierbare Spalten, Ampel */
th button.sortieren { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font: inherit; color: inherit; white-space: nowrap; }
th button.sortieren:hover, th button.sortieren.aktiv { color: var(--text); }
th button.sortieren:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; border-radius: 4px; }
th button.sortieren .pfeil { font-size: 11px; color: var(--leiser); }
th button.sortieren.aktiv .pfeil { color: var(--akzent); }
td.stand { text-align: center; vertical-align: middle; }
.ampel { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; vertical-align: middle; }
.ampel.rot { background: var(--fehler); box-shadow: 0 0 0 3px var(--fehler-zart), 0 0 10px rgba(248, 113, 113, 0.5); }
.ampel.gelb { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-zart), 0 0 10px rgba(251, 191, 36, 0.45); }
.ampel.gruen { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-zart); }

/* Vorgang: Kopfkarte, Reiter, Aktionskarten, Phasen-Fortschritt (Aufbau wie im Control Center) */
.vorgang-kopf {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: start; margin: 4px 0 18px;
  background: linear-gradient(135deg, rgba(255, 145, 0, 0.07), transparent 55%), var(--flaeche);
  border: 1px solid var(--linie); border-radius: var(--radius); padding: 18px 20px;
}
.vorgang-zeichen {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 19px; font-weight: 700;
  background: rgba(255, 145, 0, 0.14); color: var(--akzent); border: 1px solid rgba(255, 145, 0, 0.35);
}
.vorgang-mitte { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.vorgang-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--linie-hell); background: var(--flaeche-2); color: var(--leise); white-space: nowrap;
}
.chip .ic { width: 13px; height: 13px; }
.chip .ampel { width: 9px; height: 9px; box-shadow: none; }
.vorgang-wichtig { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; }
.vorgang-wichtig div { min-width: 0; }
.vorgang-wichtig dt { font-size: 12px; color: var(--leise); }
.vorgang-wichtig dd { margin: 2px 0 0; font-size: 17px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.vorgang-kontakt { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 220px; }
a.knopf.kontakt {
  display: inline-flex; align-items: center; gap: 8px; justify-content: flex-start; text-decoration: none;
  background: var(--akzent-hauch); color: var(--akzent); border: 1px solid rgba(255, 145, 0, 0.4); font-weight: 600;
}
a.knopf.kontakt { max-width: 100%; min-width: 0; }
a.knopf.kontakt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
a.knopf.kontakt .ic { flex: none; }
a.knopf.kontakt:hover { background: var(--akzent-zart); border-color: var(--akzent); text-decoration: none; }

.reiter { display: flex; gap: 2px; border-bottom: 1px solid var(--linie); margin: 0 0 18px; overflow-x: auto; }
.reiter button {
  all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: 14px; font-weight: 500;
  color: var(--leise); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.reiter button:hover { color: var(--text); }
.reiter button.aktiv { color: var(--text); border-bottom-color: var(--akzent); }
.reiter button:focus-visible { outline: 2px solid var(--akzent); outline-offset: -2px; border-radius: 6px; }
.reiter .zahl { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--flaeche-2); border: 1px solid var(--linie-hell); color: var(--leise); }

.phase-karte {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px;
}
.phase-karte-links { display: flex; flex-direction: column; gap: 2px; }
.phase-karte-links small { color: var(--leise); font-size: 12.5px; }
.phase-karte-links strong { font-size: 18px; }
.fortschritt { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.fortschritt .balken { width: 110px; height: 6px; border-radius: 999px; background: var(--flaeche-2); overflow: hidden; display: block; }
.fortschritt .balken span { display: block; height: 100%; border-radius: 999px; background: var(--ok); transition: width .5s ease; }
.weiter { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.weiter-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.weiter button { display: inline-flex; align-items: center; gap: 6px; }
.weiter button.gesperrt { opacity: .55; cursor: not-allowed; background: transparent; color: var(--leise); border-color: var(--linie-hell); }
.weiter small { font-size: 11.5px; color: var(--leise); }
.sperre {
  display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; padding: 12px 16px; border-radius: var(--radius);
  border: 1px solid rgba(255, 145, 0, 0.35); background: var(--akzent-hauch); color: var(--akzent-hell);
}
.sperre[hidden] { display: none; }
.sperre > .ic { width: 20px; height: 20px; color: var(--akzent); flex: none; margin-top: 2px; }
.sperre p { margin: 2px 0 8px; font-size: 14px; }
.sperre button { margin-right: 6px; }

.aktion-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-bottom: 18px; }
.aktion-karte {
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s;
  border-left: 3px solid rgba(255, 145, 0, 0.55);
}
.aktion-karte.optional { border-left-color: var(--linie-hell); }
.aktion-karte.ueber { border-left-color: var(--fehler); }
.aktion-karte.erledigt { border-color: rgba(52, 211, 153, 0.3); border-left-color: rgba(52, 211, 153, 0.6); background: rgba(52, 211, 153, 0.05); }
.aktion-karte:not(.erledigt):hover { border-color: rgba(255, 145, 0, 0.35); box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25); }
.aktion-oben { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; }
.aktion-oben[role="button"] { cursor: pointer; }
.aktion-oben:focus-visible { outline: 2px solid var(--akzent); outline-offset: -2px; border-radius: var(--radius); }
.aktion-symbol { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--akzent-zart); color: var(--akzent); }
.aktion-symbol .ic { width: 19px; height: 19px; }
.aktion-karte.erledigt .aktion-symbol { background: var(--ok-zart); color: var(--ok); }
.aktion-text { flex: 1; min-width: 0; }
.aktion-titel { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.aktion-titel strong { font-size: 15px; }
.aktion-karte.erledigt .aktion-titel strong { color: var(--ok); text-decoration: line-through; text-decoration-color: rgba(52, 211, 153, 0.45); }
.aktion-text small { display: block; margin-top: 3px; color: var(--leise); font-size: 13px; }
.aktion-text small.warn { color: var(--fehler); font-weight: 600; }
.aktion-auf { color: var(--leiser); transition: transform .15s; margin-top: 10px; }
.aktion-karte.offen .aktion-auf { transform: rotate(90deg); color: var(--akzent); }
.marke { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 999px; letter-spacing: 0.02em; }
.marke .ic { width: 11px; height: 11px; }
.marke.pflicht { border: 1px solid rgba(251, 191, 36, 0.45); color: var(--warn); }
.marke.optional { border: 1px solid var(--linie-hell); color: var(--leise); background: var(--flaeche-2); }
.marke.erledigt { border: 1px solid rgba(52, 211, 153, 0.4); color: var(--ok); }
.aktion-kontakt { padding: 0 18px 14px 72px; }
.aktion-bereich { display: none; padding: 0 18px 16px 72px; }
.aktion-karte.offen .aktion-bereich { display: block; }
.aktion-bereich .zeile { margin-top: 0; margin-bottom: 8px; }
.aktion-bereich .zeile select, .aktion-bereich .zeile input { width: auto; flex: 1 1 140px; }
.aktion-bereich .eintraege { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--leise); }

.phasen-fortschritt { margin: 6px 0 18px; }
.phasen-fortschritt > small { display: block; color: var(--leise); font-size: 13px; margin-bottom: 8px; }
.pillen { display: flex; flex-wrap: wrap; gap: 6px; }
.pille {
  all: unset; cursor: default; font-size: 12px; font-weight: 500; padding: 4px 12px; border-radius: 999px;
  background: var(--flaeche-2); color: var(--leiser); border: 1px solid transparent;
}
.pille.vergangen { background: rgba(255, 145, 0, 0.16); color: var(--akzent); }
.pille.aktuell { background: var(--akzent); color: #16161f; font-weight: 600; }
.pille.frei { cursor: pointer; color: var(--text); border-color: rgba(255, 145, 0, 0.45); }
.pille.frei:hover { background: var(--akzent-zart); }
.pille.gesperrt { opacity: .45; cursor: not-allowed; }
.pille.aus { opacity: .4; }
.pille:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
details.verloren { margin-top: 8px; }
details.verloren > summary { color: var(--leise); font-size: 13.5px; }
details.verloren form { margin-top: 10px; }

.angaben-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.angaben-kopf h2 { margin-top: 4px; }
.angaben { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 8px; }
.angabe { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius-klein); padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.angabe.breit { grid-column: 1 / -1; }
/* Angaben einer Anfrage in Karten wie bei „Neue Anfrage“: zwei Karten nebeneinander, darin zwei bis drei Spalten */
.angaben-karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 0 14px; align-items: start; max-width: 1180px; }
.angaben-karte { padding-bottom: 12px; }
.angaben-karte .angaben-kopf h2 { margin: 14px 0 12px; }
.angaben-karte .angaben { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-bottom: 4px; }
.angaben-karte .angabe { background: var(--flaeche-2); border-color: var(--linie-hell); }
.formraster .feld.hervor { border-radius: var(--radius-klein); outline: 2px solid var(--akzent); outline-offset: 5px; }
.formkarte > .formraster:first-child { padding-top: 14px; }
.angabe span { font-size: 12px; color: var(--leise); }
.angabe strong { font-size: 15.5px; font-weight: 600; overflow-wrap: anywhere; white-space: pre-wrap; }
.angabe.leer strong { color: var(--leiser); font-weight: 400; }
.abstand { margin-top: 28px; }
.verlauf { list-style: none; padding: 0; margin: 0; font-size: 14px; display: grid; gap: 0; max-width: 780px;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); }
.verlauf li { padding: 10px 16px; border-bottom: 1px solid var(--linie-hell); }
.verlauf li:last-child { border-bottom: 0; }
.verlauf small { color: var(--leise); }
.mehrfach { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 12px 0; max-width: 900px; }
.kachel { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.kachel strong { font-size: 28px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.kachel span { color: var(--leise); font-size: 13px; }
pre.json { font-size: 12px; overflow-x: auto; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 14px; }
details { margin: 10px 0; }
summary { cursor: pointer; color: var(--leise); }
summary:hover { color: var(--text); }

/* ------------------------------------------------------------------ Schmal (Handy, Tablet) */
@media (max-width: 900px) {
  .pace-menueknopf { display: inline-flex; padding: 8px; background: transparent; border-color: var(--linie-hell); color: var(--text); }
  .pace-menueknopf:hover { background: var(--akzent-hauch); }
  .pace-kontext { display: none; }
  .pace-seite, .pace-eng .pace-seite { transform: translateX(-100%); transition: transform .2s ease; width: 240px; box-shadow: 8px 0 24px rgba(0, 0, 0, 0.4); }
  .pace-menue-offen .pace-seite { transform: none; }
  .pace-eng .pace-punkt { justify-content: flex-start; padding: 9px 12px; }
  .pace-griff { display: none; }
  .pace-eng .pace-punkt span { display: inline; }
  .pace-einklappen { display: none; }
  .pace-inhalt, .pace-eng .pace-inhalt { margin-left: 0; padding: calc(var(--kopf) + 16px) 16px 40px; }
  table { display: block; overflow-x: auto; }
  .vorgang-kopf { grid-template-columns: auto 1fr; }
  .vorgang-kontakt { grid-column: 1 / -1; min-width: 0; }
  .aktion-raster { grid-template-columns: 1fr; }
  .aktion-kontakt, .aktion-bereich { padding-left: 18px; }
  .weiter { align-items: stretch; }
  dl.eckdaten, dl.messung { grid-template-columns: 1fr; gap: 2px; }
  dl.eckdaten dd, dl.messung dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ------------------------------------------------------------------ Score der Anfrage */
.score-plakette {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 3px 4px 3px 10px; border-radius: 999px;
  border: 1px solid var(--linie-hell); background: var(--flaeche-2); color: var(--leise); white-space: nowrap;
}
.score-plakette b { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: inherit; }
.score-plakette.a { border-color: rgba(52, 211, 153, 0.45); color: var(--ok); background: var(--ok-zart); }
.score-plakette.b { border-color: rgba(251, 191, 36, 0.45); color: var(--warn); background: var(--warn-zart); }
.score-plakette.c { color: var(--leise); }
.score-plakette.vorlaeufig { border-style: dashed; }
.score-plakette.leer { padding-right: 10px; color: var(--leiser); border-style: dashed; }
.score-plakette.klein { font-size: 12px; padding: 1px 3px 1px 8px; }
.score-plakette.klein b { font-size: 10px; padding: 0 6px; }
.score-karte {
  display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: start; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(255, 145, 0, 0.06), transparent 50%), var(--flaeche);
  border: 1px solid var(--linie); border-radius: var(--radius); padding: 20px;
}
.score-links { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.score-links p { margin: 0; font-size: 13px; color: var(--leise); }
.score-ring { width: 150px; height: 150px; }
.score-ring .spur { fill: none; stroke: var(--flaeche-2); stroke-width: 9; }
.score-ring .bogen { fill: none; stroke: var(--leise); stroke-width: 9; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .8s ease; }
.score-ring.a .bogen { stroke: var(--ok); }
.score-ring.b .bogen { stroke: var(--warn); }
.score-ring.c .bogen { stroke: var(--akzent); }
.score-ring .zahl { fill: var(--text); font-size: 26px; font-weight: 700; font-family: inherit; }
.score-ring .klasse { fill: var(--leise); font-size: 10px; font-family: inherit; }
.merkmale { display: grid; gap: 10px; }
.merkmal { padding: 12px 14px; border-radius: var(--radius-klein); background: var(--flaeche-2); border: 1px solid var(--linie-hell); }
.merkmal.offen { border-color: rgba(255, 145, 0, 0.3); }
.merkmal-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 8px; }
.merkmal-kopf .gewicht { font-size: 11.5px; color: var(--leise); padding: 0 7px; border: 1px solid var(--linie-hell); border-radius: 999px; }
.merkmal-kopf small { flex-basis: 100%; color: var(--leiser); font-size: 12px; }
.merkmal-wert { font-weight: 600; }
.merkmal-wert small { font-weight: 400; color: var(--leise); }
.merkmal-wert.offen { font-weight: 400; color: var(--akzent-hell); font-size: 13.5px; }
.stufen { display: flex; flex-wrap: wrap; gap: 6px; }
.stufen button.stufe {
  font-size: 13px; font-weight: 500; padding: 6px 12px; background: var(--flaeche); color: var(--leise); border: 1px solid var(--linie-hell);
}
.stufen button.stufe:hover:not(:disabled) { color: var(--text); border-color: rgba(255, 145, 0, 0.45); }
.stufen button.stufe.gewaehlt { background: var(--akzent); color: #16161f; border-color: var(--akzent); font-weight: 600; }
@media (max-width: 900px) {
  .score-karte { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ Formular in Karten (Neue Anfrage) */
form.form-karten { background: transparent; border: 0; padding: 0; max-width: 1040px; }
.formkarte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 4px 20px 6px; margin-bottom: 14px; }
.formkarte > h2 { margin: 14px 0 12px; flex-wrap: wrap; }
.formkarte > h2 small { flex-basis: 100%; font-size: 12.5px; font-weight: 400; color: var(--leise); margin-left: 24px; }
.formraster { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 16px; }
.formraster .feld.breit { grid-column: 1 / -1; }
.feld.pflicht > span::after { content: ' *'; color: var(--akzent); }
.feld.fehlt input, .feld.fehlt select, .feld.fehlt textarea { border-color: var(--fehler); box-shadow: 0 0 0 3px var(--fehler-zart); }
.feld.fehlt > span { color: var(--fehler); }
form.form-karten > .zeile { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--grund) 35%); }
form.form-karten textarea { font-family: inherit; font-size: 14px; }

/* ------------------------------------------------------------------ Feiern (Konfetti) und Begrüßung */
.pace-feier { position: fixed; inset: 0; z-index: 200; pointer-events: none; display: grid; place-items: center; animation: pace-ein .25s ease; }
.pace-feier canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pace-feier-karte {
  position: relative; pointer-events: auto; cursor: pointer; text-align: center; padding: 28px 40px 26px; max-width: min(520px, calc(100vw - 32px));
  background: rgba(22, 22, 31, 0.94); border: 1px solid rgba(255, 145, 0, 0.45); border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 0 6px rgba(255, 145, 0, 0.08); animation: pace-pop .5s cubic-bezier(.2, 1.4, .4, 1);
}
.pace-feier-zeichen { font-size: 64px; line-height: 1; margin-bottom: 10px; }
.pace-feier-karte strong { display: block; font-size: 32px; font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(90deg, #FFB347, #FF9100); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pace-feier-karte p { margin: 8px 0 0; font-size: 17px; color: var(--text); }
.pace-feier.gross .pace-feier-karte strong { font-size: 40px; }
.pace-feier.gross .pace-feier-zeichen { font-size: 84px; }
.pace-feier.klein .pace-feier-karte { padding: 18px 28px; }
.pace-feier.klein .pace-feier-karte strong { font-size: 24px; }
.pace-feier.klein .pace-feier-zeichen { font-size: 44px; }
.pace-feier.aus, .pace-hallo.aus { opacity: 0; transition: opacity .45s ease; }

.pace-hallo {
  position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; cursor: pointer;
  background: rgba(14, 14, 22, 0.55); backdrop-filter: blur(14px) saturate(120%); -webkit-backdrop-filter: blur(14px) saturate(120%);
  animation: pace-ein .35s ease;
}
.pace-hallo-karte { text-align: center; padding: 16px; }
.pace-bizeps { font-size: 128px; line-height: 1; display: inline-block; transform-origin: 70% 80%; animation: pace-anspannen 1.6s ease-in-out both;
  filter: drop-shadow(0 12px 30px rgba(255, 145, 0, 0.35)); }
.pace-hallo-titel { font-size: clamp(34px, 6vw, 56px); font-weight: 800; letter-spacing: -0.02em; margin-top: 18px; color: var(--text); animation: pace-hoch .5s .2s ease both; }
.pace-hallo-los { font-size: clamp(42px, 8vw, 76px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; animation: pace-hoch .5s .35s ease both;
  background: linear-gradient(90deg, #FFB347, #FF9100 60%, #ff6a00); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pace-hallo-karte p { font-size: 19px; color: var(--leise); margin: 14px 0 0; animation: pace-hoch .5s .5s ease both; }
.pace-hallo.ruhig .pace-bizeps, .pace-hallo.ruhig .pace-hallo-titel, .pace-hallo.ruhig .pace-hallo-los, .pace-hallo.ruhig p { animation: none; }
@keyframes pace-ein { from { opacity: 0; } to { opacity: 1; } }
@keyframes pace-pop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
@keyframes pace-hoch { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pace-anspannen {
  0% { opacity: 0; transform: scale(.5) rotate(-18deg); }
  18% { opacity: 1; transform: scale(1.05) rotate(0); }
  32% { transform: scale(.98) rotate(-8deg); }
  46% { transform: scale(1.22) rotate(6deg); }
  60% { transform: scale(1.02) rotate(-6deg); }
  74% { transform: scale(1.2) rotate(4deg); }
  88% { transform: scale(1.05) rotate(-2deg); }
  100% { transform: scale(1.12) rotate(0); }
}
@media (prefers-reduced-motion: reduce) {
  .pace-feier, .pace-feier-karte, .pace-hallo, .pace-bizeps, .pace-hallo-titel, .pace-hallo-los, .pace-hallo-karte p { animation: none !important; }
}

/* ------------------------------------------------------------------ Historie (Box): Filter mit Kategorien, Zeitleiste nach Tagen
   Symbol je Art im Kreis, Farbe nach Ton (ok, warn, fehler) oder Kategorie, eine feine Linie verbindet die Symbole eines
   Tages. Anfrage-Einträge sind Knöpfe, die die Anfrage öffnen. */
.historie-filter { align-items: center; }
.historie-kategorien {
  display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; flex: 0 0 auto;
  background: var(--eingabe); border: 1px solid var(--linie-hell); border-radius: var(--radius-klein);
}
.historie-kategorie {
  all: unset; cursor: pointer; font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 6px; color: var(--leise);
  transition: background .12s, color .12s;
}
.historie-kategorie:hover { color: var(--text); background: var(--akzent-hauch); }
.historie-kategorie.aktiv { background: var(--akzent-zart); color: var(--akzent); }
.historie-kategorie:focus-visible { outline: 2px solid var(--akzent); outline-offset: 1px; }
.historie-filter input[type=date] { width: auto; flex: 0 1 170px; }
.zeitleiste-wurzel { max-width: 860px; }
h2.zeitleiste-tag { font-size: 13px; font-weight: 600; color: var(--leise); letter-spacing: 0.01em; margin: 22px 0 8px; }
h2.zeitleiste-tag:first-child { margin-top: 6px; }
.zeitleiste { list-style: none; margin: 0; padding: 0; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; }
.zeitleiste-eintrag { --gross: 34px; --rand: 16px; --oben: 12px; position: relative; border-bottom: 1px solid var(--linie-hell); }
.zeitleiste-eintrag:last-child { border-bottom: 0; }
.zeitleiste-eintrag::before {
  content: ''; position: absolute; left: calc(var(--rand) + var(--gross) / 2); top: 0; bottom: 0; width: 1px; background: var(--linie-hell);
}
.zeitleiste-eintrag:first-child::before { top: calc(var(--oben) + var(--gross) / 2); }
.zeitleiste-eintrag:last-child::before { bottom: calc(100% - var(--oben) - var(--gross) / 2); }
.zeitleiste-eintrag:only-child::before { display: none; }
/* Knopf zuerst zurücksetzen, dann bekommt er dasselbe Raster wie ein Eintrag */
.zeitleiste-knopf { all: unset; box-sizing: border-box; display: grid; width: 100%; cursor: pointer; transition: background .12s; }
.zeitleiste-eintrag, .zeitleiste-knopf {
  display: grid; grid-template-columns: var(--gross) minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: var(--oben) var(--rand);
}
.zeitleiste-eintrag.klickbar { display: block; padding: 0; }
.zeitleiste-knopf:hover { background: var(--akzent-hauch); }
.zeitleiste-knopf:focus-visible { outline: 2px solid var(--akzent); outline-offset: -2px; border-radius: var(--radius-klein); }
.zeitleiste-symbol {
  --ton: transparent; position: relative; z-index: 1; width: var(--gross); height: var(--gross); border-radius: 50%; display: grid; place-items: center;
  background-color: var(--flaeche); background-image: linear-gradient(var(--ton), var(--ton)); border: 1px solid var(--linie-hell); color: var(--leise);
}
.zeitleiste-symbol .ic { width: 16px; height: 16px; }
.zeitleiste-symbol.ton-anfragen { --ton: var(--akzent-zart); border-color: rgba(255, 145, 0, 0.3); color: var(--akzent); }
.zeitleiste-symbol.ton-einstellungen { --ton: var(--info-zart); border-color: rgba(96, 165, 250, 0.35); color: var(--info); }
.zeitleiste-symbol.ton-system { background-color: var(--flaeche-2); }
.zeitleiste-symbol.ton-ok { --ton: var(--ok-zart); border-color: rgba(52, 211, 153, 0.35); color: var(--ok); }
.zeitleiste-symbol.ton-warn { --ton: var(--warn-zart); border-color: rgba(251, 191, 36, 0.4); color: var(--warn); }
.zeitleiste-symbol.ton-fehler { --ton: var(--fehler-zart); border-color: rgba(248, 113, 113, 0.45); color: var(--fehler); }
.zeitleiste-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding-top: 1px; }
.zeitleiste-was { font-size: 14px; font-weight: 500; color: var(--text); overflow-wrap: anywhere; }
.zeitleiste-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12.5px; color: var(--leise); }
.zeitleiste-meta time { font-variant-numeric: tabular-nums; color: var(--text); }
.zeitleiste-meta .chip { font-size: 11.5px; padding: 1px 8px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.zeitleiste-meta .chip .ic { width: 12px; height: 12px; flex: none; }
.zeitleiste-pfeil { color: var(--leiser); margin-top: 9px; transition: color .12s, transform .12s; }
.zeitleiste-knopf:hover .zeitleiste-pfeil { color: var(--akzent); transform: translateX(2px); }
@media (max-width: 900px) {
  .historie-kategorien { flex: 1 1 100%; }
  .historie-kategorie { flex: 1 1 auto; text-align: center; }
  .zeitleiste-eintrag { --gross: 30px; --rand: 12px; --oben: 10px; }
  .zeitleiste-eintrag, .zeitleiste-knopf { gap: 10px; }
}

/* ------------------------------------------------------------------ Avatarbild (0.5.0)
   Im Kopf statt der Initialen, unter „Mein Zugang“ groß mit Wahl, Vorschau und Entfernen (PaceShell.avatarWaehler). */
.pace-avatar.mit-bild { overflow: hidden; background: var(--flaeche-2); }
.pace-avatar.mit-bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pace-avatar.gross { width: 96px; height: 96px; font-size: 32px; border-width: 2px; }
.avatar-waehler {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px; max-width: 680px; padding: 18px 20px; margin: 12px 0;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius);
}
.avatar-steuerung { flex: 1 1 260px; min-width: 0; }
.avatar-steuerung p.leise { margin: 0 0 10px; font-size: 14px; }
.avatar-steuerung input[type=file] { margin-bottom: 4px; max-width: 100%; }
.avatar-waehler [hidden] { display: none; }

/* ------------------------------------------------------------------ Vorführbox: Hinweis auf das Zurücksetzen
   Dezent unter dem Seitenkopf, nur solange etwas geändert ist (leer heißt unsichtbar). */
.vorfuehrung-hinweis { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 12.5px; color: var(--leise); }
.vorfuehrung-hinweis::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--akzent); opacity: 0.7; }
.vorfuehrung-hinweis:empty { display: none; }

/* ------------------------------------------------------------------ Diagramme und Kennzahlen (PaceShell.diagramm)
   Stil des Control Center: Achsentext #9ca3af 11 px ohne Achsenlinien, Raster gestrichelt und kaum sichtbar, Linien
   2 px, Flächen mit Verlauf, Tooltip dunkel mit feiner heller Kante. Reihenfarbe kommt als --f, Reihenfolge der
   Aufbauanimation als --i (beides per CSSOM aus pace.js). */
.pace-kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 16px 0; }
.pace-kennzahl {
  --f: var(--akzent);
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 2px; min-width: 0;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 16px 18px;
  animation: pace-dia-hoch .5s cubic-bezier(.2, .7, .2, 1) both;
}
.pace-kennzahl.mit-verlauf { padding-bottom: 44px; }
.pace-kennzahl.ton-ok { --f: var(--ok); }
.pace-kennzahl.ton-fehler { --f: var(--fehler); }
.pace-kennzahl.ton-warn { --f: var(--warn); }
.pace-kennzahl.ton-info { --f: var(--info); }
.pace-kennzahl-kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.pace-kennzahl-kopf > span:first-child { font-size: 11.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--leise); padding-top: 2px; }
.pace-kennzahl-symbol {
  width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center;
  color: var(--f); background: var(--akzent-zart); background: color-mix(in srgb, var(--f) 15%, transparent);
}
.pace-kennzahl-symbol .ic { width: 17px; height: 17px; }
.pace-kennzahl-wert { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin-top: 4px; color: var(--text); overflow-wrap: anywhere; }
.pace-kennzahl small { color: var(--leise); font-size: 12.5px; }
.pace-kennzahl-trend { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 12px; font-weight: 500; color: var(--leise); }
.pace-kennzahl-trend .ic { width: 14px; height: 14px; }
.pace-kennzahl-trend.gut { color: var(--ok); }
.pace-kennzahl-trend.schlecht { color: var(--fehler); }
.pace-kennzahl-verlauf { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 36px; display: block; }
.pace-kennzahl-linie { fill: none; stroke: var(--f); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }

.pace-dia-filter { margin: 0 0 4px; gap: 12px; }
.pace-dia-filter select { width: auto; min-width: 180px; }
.pace-dia-filter .haken { margin: 0; align-items: center; }
.pace-dia-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 16px 0; }
.pace-dia-karte {
  min-width: 0; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 16px 20px 14px;
}
.pace-dia-karte.breit { grid-column: 1 / -1; }
.pace-dia-raster + .pace-dia-karte, .pace-dia-karte + .pace-dia-raster { margin-top: 16px; }
.pace-dia-karte > header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 12px; }
.pace-dia-karte > header h2 { margin: 0; font-size: 15px; }
.pace-dia-karte > header small { color: var(--leiser); font-size: 12px; }
.pace-dia-karte table { background: var(--flaeche-2); }

.pace-dia { margin: 0; min-width: 0; }
.pace-dia-flaeche { position: relative; min-width: 0; border-radius: var(--radius-klein); touch-action: pan-y; }
.pace-dia-flaeche:focus-visible { outline: 2px solid var(--akzent); outline-offset: 4px; }
.pace-dia-flaeche svg { display: block; width: 100%; height: auto; overflow: visible; }
.pace-dia-achse text { fill: #9ca3af; font-size: 11px; font-variant-numeric: tabular-nums; }
.pace-dia-gitter line { stroke: rgba(255, 255, 255, 0.06); stroke-width: 1; stroke-dasharray: 3 3; shape-rendering: crispEdges; }
.pace-dia-linie { fill: none; stroke: var(--f); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pace-dia-punkt, .pace-dia-marke { fill: var(--f); stroke: var(--flaeche); stroke-width: 2; }
.pace-dia-kreuz { stroke: rgba(255, 255, 255, 0.18); stroke-width: 1; }
.pace-dia-hover { opacity: 0; transition: opacity .12s ease; pointer-events: none; }
.pace-dia-hover.an { opacity: 1; }
.pace-dia-fang { fill: transparent; cursor: crosshair; }
.pace-dia-zeile .pace-dia-fang { cursor: default; }
.pace-dia-balken { fill: var(--f); }
.pace-dia-spur { fill: rgba(255, 255, 255, 0.04); }
.pace-dia-name { fill: var(--text); font-size: 12.5px; font-weight: 500; }
.pace-dia-wert { fill: var(--leise); font-size: 12px; font-variant-numeric: tabular-nums; }
.pace-dia-verbindung { fill: var(--f); opacity: 0.08; }
.pace-dia-zeile, .pace-dia-stueck { transition: opacity .15s ease; }
.pace-dia-zeile.blass, .pace-dia-stueck.blass { opacity: 0.4; }
.pace-dia-stueck { fill: var(--f); stroke: var(--f); }
path.pace-dia-stueck { stroke: none; }
circle.pace-dia-stueck { fill: none; }
.pace-dia-summe { fill: var(--text); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.pace-dia-mitte { fill: var(--leise); font-size: 12px; }

.pace-dia-tipp {
  position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; opacity: 0; transition: opacity .12s ease;
  max-width: 280px; background: #1a1a2e; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; padding: 8px 12px;
  font-size: 12px; line-height: 1.45; color: #d1d5db; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.pace-dia-tipp.sichtbar { opacity: 1; }
.pace-dia-tipp strong { display: block; color: #ccc; font-weight: 500; margin-bottom: 4px; white-space: nowrap; }
.pace-dia-tipp-zeile { display: flex; align-items: center; gap: 8px; }
.pace-dia-tipp-zeile i { width: 8px; height: 8px; border-radius: 2px; flex: none; background: var(--f); }
.pace-dia-tipp-zeile span { flex: 1 1 auto; }
.pace-dia-tipp-zeile b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; margin-left: 12px; text-align: right; }

.pace-dia-legende { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0; margin: 10px 0 0; font-size: 12px; color: var(--leise); }
.pace-dia-legende li { display: inline-flex; align-items: center; gap: 6px; }
.pace-dia-legende i { width: 10px; height: 10px; border-radius: 3px; background: var(--f); }

.pace-dia-donut { display: grid; grid-template-columns: minmax(150px, 200px) minmax(0, 1fr); gap: 8px 24px; align-items: center; }
.pace-dia-donut .pace-dia-tabelle { grid-column: 1 / -1; }
.pace-dia-anteile { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 13px; }
.pace-dia-anteile li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 44px; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 6px; transition: background .12s; }
.pace-dia-anteile li.hervor { background: rgba(255, 255, 255, 0.05); }
.pace-dia-anteile i { width: 10px; height: 10px; border-radius: 3px; background: var(--f); }
.pace-dia-anteile span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pace-dia-anteile b { font-weight: 600; font-variant-numeric: tabular-nums; }
.pace-dia-anteile small { color: var(--leise); text-align: right; font-variant-numeric: tabular-nums; }

.pace-dia-tabelle { margin: 12px 0 0; }
.pace-dia-tabelle > summary { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--leiser); }
.pace-dia-tabelle > summary .ic { width: 13px; height: 13px; }
.pace-dia-tabelle > summary:hover { color: var(--text); }
.pace-dia-tabelle table { margin-top: 8px; font-size: 13px; }
.pace-dia-tabelle th, .pace-dia-tabelle td { padding: 7px 12px; }
.pace-dia-tabelle tbody th { font-size: 13px; font-weight: 400; color: var(--text); background: transparent; letter-spacing: 0; }
.pace-dia-leer { display: flex; align-items: center; gap: 10px; margin: 6px 0; padding: 22px 16px; border: 1px dashed var(--linie-hell); border-radius: var(--radius-klein);
  color: var(--leise); font-size: 13.5px; justify-content: center; text-align: center; }
.pace-dia-leer .ic { color: var(--leiser); flex: none; }

/* Ruhiger Aufbau beim ersten Zeichnen: Linien ziehen sich, Flächen blenden ein, Balken wachsen, der Ring dreht ein */
@keyframes pace-dia-hoch { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes pace-dia-ein { from { opacity: 0; } to { opacity: 1; } }
@keyframes pace-dia-ziehen { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pace-dia-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pace-dia-ring { from { opacity: 0; transform: rotate(-24deg) scale(.94); } to { opacity: 1; transform: none; } }
.pace-dia-auf .pace-dia-linie { stroke-dasharray: 1; animation: pace-dia-ziehen 1.1s cubic-bezier(.3, .7, .2, 1) both; }
.pace-dia-auf .pace-dia-fuellung { animation: pace-dia-ein .9s ease .3s both; }
.pace-dia-auf .pace-dia-wx, .pace-dia-auf .pace-dia-wm {
  transform-box: fill-box; transform-origin: left center;
  animation: pace-dia-x .8s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 60ms);
}
.pace-dia-auf .pace-dia-wm { transform-origin: center; }
.pace-dia-auf .pace-dia-verbindung { animation: pace-dia-ein .6s ease .5s both; }
.pace-dia-auf .pace-dia-ring { transform-box: fill-box; transform-origin: center; animation: pace-dia-ring .9s cubic-bezier(.2, .7, .2, 1) both; }

@media (max-width: 900px) {
  .pace-dia-raster { grid-template-columns: minmax(0, 1fr); }
  .pace-dia-karte { padding: 14px 14px 12px; }
}
@media (max-width: 520px) {
  .pace-dia-donut { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .pace-dia-donut .pace-dia-flaeche { width: 180px; }
  .pace-dia-anteile { width: 100%; }
  .pace-kennzahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pace-kennzahl-wert { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .pace-dia *, .pace-kennzahl, .pace-kennzahl * { animation: none !important; }
}

/* ------------------------------------------------------------------ Zeichen der Interessenten und Markenzeichen der Box
   Favicon der Website im hellen Rahmen (dunkle Icons bleiben sichtbar), sonst Initialen auf einer ruhigen Farbe aus dem
   Namen (acht Töne, gedämpft wie die Plaketten). Das Markenzeichen der Box liegt groß und kaum sichtbar hinter der
   Navigation, nicht anklickbar, eingeklappt und am Handy ausgeblendet. */
.name-zelle { display: flex; align-items: center; gap: 10px; min-width: 0; }
.zeichen-klein {
  width: 26px; height: 26px; border-radius: 7px; flex: none; display: inline-grid; place-items: center;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em; line-height: 1; border: 1px solid transparent;
}
.zeichen-logo { background: #f4f4f7; border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(14, 14, 22, 0.06); overflow: hidden; }
.zeichen-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.zeichen-klein.zeichen-logo { padding: 4px; }
.vorgang-zeichen.zeichen-logo { padding: 11px; background: #f4f4f7; border-color: rgba(255, 255, 255, 0.18); }
.zeichen-platz.farbe-0 { background: rgba(96, 165, 250, 0.14); color: #93c5fd; border-color: rgba(96, 165, 250, 0.30); }
.zeichen-platz.farbe-1 { background: rgba(45, 212, 191, 0.13); color: #5eead4; border-color: rgba(45, 212, 191, 0.28); }
.zeichen-platz.farbe-2 { background: rgba(134, 239, 172, 0.12); color: #a7f3c0; border-color: rgba(134, 239, 172, 0.26); }
.zeichen-platz.farbe-3 { background: rgba(167, 139, 250, 0.14); color: #c4b5fd; border-color: rgba(167, 139, 250, 0.30); }
.zeichen-platz.farbe-4 { background: rgba(244, 114, 182, 0.12); color: #f9a8d4; border-color: rgba(244, 114, 182, 0.26); }
.zeichen-platz.farbe-5 { background: rgba(214, 185, 140, 0.13); color: #e3cba6; border-color: rgba(214, 185, 140, 0.28); }
.zeichen-platz.farbe-6 { background: rgba(103, 232, 249, 0.12); color: #a5f3fc; border-color: rgba(103, 232, 249, 0.26); }
.zeichen-platz.farbe-7 { background: rgba(148, 163, 184, 0.14); color: #cbd5e1; border-color: rgba(148, 163, 184, 0.30); }

/* Markenzeichen des Kunden in der Seitenleiste: Favicon oder Anfangsbuchstaben, halb durchsichtig, mit weichem
   Verlauf nach oben und unten und einem Hauch Orange dahinter. Liegt unter der Navigation und fängt keine Klicks. */
.pace-markenzeichen {
  position: absolute; left: 0; right: 0; bottom: 96px; height: 230px; z-index: 0; pointer-events: none;
  display: grid; place-items: center; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 34%, #000 66%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 34%, #000 66%, transparent 100%);
}
.pace-markenzeichen::before {
  content: ''; position: absolute; inset: 8% -20%;
  background: radial-gradient(closest-side, rgba(255, 145, 0, 0.13), rgba(255, 145, 0, 0.04) 60%, transparent);
}
.pace-markenzeichen img {
  position: relative; width: min(128px, calc(100% - 32px)); aspect-ratio: 1; object-fit: contain;
  opacity: 0.2; filter: saturate(0.7) drop-shadow(0 0 18px rgba(255, 145, 0, 0.18));
}
.pace-markenzeichen.kuerzel span {
  position: relative; font-size: 76px; font-weight: 800; line-height: 1; letter-spacing: -0.03em;
  background: linear-gradient(165deg, rgba(255, 177, 71, 0.55) 0%, rgba(255, 145, 0, 0.22) 45%, rgba(255, 255, 255, 0.05) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pace-markenzeichen.kuerzel.lang span { font-size: 50px; }
.pace-seite.mit-marke > :not(.pace-markenzeichen) { position: relative; z-index: 1; }
.pace-eng .pace-markenzeichen { display: none; }
@media (max-width: 900px) {
  .pace-markenzeichen { display: none; }
}

/* ------------------------------------------------------------------ Postfächer (Microsoft 365) und Reiter Mails
   Einstellungen: Verbinden links, Anleitung als Karte mit nummerierten Schritten rechts. Reiter Mails: Liste mit Richtung,
   Betreff, Vorschau und Postfach; die Mail selbst als reiner Text (nie HTML aus der Mail). */
.postfach-raster { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
.postfach-links { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.postfach-start { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px;
  background: linear-gradient(135deg, rgba(255, 145, 0, 0.08), transparent 60%), var(--flaeche-2);
  border: 1px solid var(--linie); border-radius: var(--radius); padding: 16px 18px; }
.postfach-start p { margin: 0; flex: 1 1 260px; color: var(--leise); font-size: 14px; }
button.ms-knopf { display: inline-flex; align-items: center; gap: 10px; background: #ffffff; color: #1f1f1f; border: 1px solid #8c8c8c;
  border-radius: 4px; padding: 9px 14px; font-weight: 600; font-size: 14px; }
button.ms-knopf:hover { background: #f3f3f3; border-color: #5e5e5e; color: #1f1f1f; }
button.ms-knopf:disabled { opacity: 0.5; cursor: not-allowed; background: #ffffff; border-color: #8c8c8c; }
.ms-logo { display: grid; grid-template-columns: 9px 9px; grid-template-rows: 9px 9px; gap: 2px; flex: none; }
.ms-logo i { display: block; }
.ms-logo i:nth-child(1) { background: #f25022; }
.ms-logo i:nth-child(2) { background: #7fba00; }
.ms-logo i:nth-child(3) { background: #00a4ef; }
.ms-logo i:nth-child(4) { background: #ffb900; }
.postfach-karte { background: var(--flaeche-2); border: 1px solid var(--linie-hell); border-radius: var(--radius); padding: 14px 16px; }
.postfach-karte.fehler { border-color: rgba(248, 113, 113, 0.45); }
.postfach-kopf { display: flex; align-items: center; gap: 12px; }
.postfach-kopf .zustand { margin-left: auto; }
.postfach-wer { display: flex; flex-direction: column; min-width: 0; }
.postfach-wer small { color: var(--leise); overflow-wrap: anywhere; }
.postfach-liste { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; }
.postfach-zeile { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--linie-hell); }
.postfach-zeile > .ic { color: var(--akzent); flex: none; }
.postfach-zeile button { margin-left: auto; padding: 5px 10px; font-size: 12.5px; }
.postfach-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.postfach-text strong { overflow-wrap: anywhere; }
.postfach-text small { color: var(--leise); }
.postfach-text small.warn, .postfach-neu small.warn { color: var(--fehler); }
.postfach-neu { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.postfach-freigabe { margin: 8px 0 0; }
.postfach-freigabe form { margin-top: 10px; background: var(--flaeche); }
.anleitung { background: var(--flaeche-2); border: 1px solid rgba(255, 145, 0, 0.3); border-radius: var(--radius); padding: 16px 18px; }
.anleitung h3 { margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.anleitung h3 .ic { color: var(--akzent); }
.anleitung > ol { list-style: none; counter-reset: schritt; margin: 0; padding: 0; display: grid; gap: 14px; }
.anleitung > ol > li { counter-increment: schritt; position: relative; padding-left: 38px; font-size: 13.5px; }
.anleitung > ol > li::before { content: counter(schritt); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12.5px; font-weight: 700; background: var(--akzent-zart); color: var(--akzent);
  border: 1px solid rgba(255, 145, 0, 0.45); }
.anleitung > ol > li > strong { display: block; margin-bottom: 4px; font-size: 14px; }
.anleitung p { margin: 0 0 6px; color: var(--leise); line-height: 1.5; }
.anleitung code, .mail-text code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--akzent-hell);
  background: var(--akzent-hauch); border-radius: 4px; padding: 1px 5px; }
.anleitung ul.rechte { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 5px; color: var(--leise); }
.postfach-link { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 8px; }
.postfach-link code { flex: 1 1 100%; overflow-wrap: anywhere; user-select: all; padding: 6px 8px; }
.postfach-link button { padding: 5px 10px; font-size: 12.5px; }
td .haken { margin: 0; align-items: center; font-size: 13px; }

.mails-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.mails-kopf button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: 13px; }
.mails-liste { list-style: none; margin: 0; padding: 0; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; }
.mails-liste li + li { border-top: 1px solid var(--linie-hell); }
button.mail-zeile { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px;
  align-items: start; width: 100%; padding: 12px 16px; transition: background .12s; }
button.mail-zeile:hover { background: var(--akzent-hauch); }
button.mail-zeile:focus-visible { outline: 2px solid var(--akzent); outline-offset: -2px; }
.mail-richtung { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; margin-top: 2px; }
.mail-zeile.gesendet .mail-richtung { background: var(--akzent-zart); color: var(--akzent); }
.mail-zeile.empfangen .mail-richtung { background: var(--info-zart); color: var(--info); }
.mail-mitte { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mail-oben { display: flex; align-items: center; gap: 6px; min-width: 0; }
.mail-oben strong { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-klammer { color: var(--leise); flex: none; width: 14px; height: 14px; }
.mail-mitte small { color: var(--leise); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-vorschau { color: var(--leiser); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mail-rechts { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap; }
.mail-rechts small { color: var(--leise); font-size: 12.5px; }
.mail-rechts .mail-postfach { color: var(--leiser); font-size: 11.5px; }
.mails-stand { display: block; margin-top: 10px; }
.mail-lesen { margin-top: 12px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 4px 22px 18px; max-width: 900px; }
.mail-lesen h2 { margin: 16px 0 12px; overflow-wrap: anywhere; }
dl.mail-kopf { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0 0 12px; font-size: 13.5px; }
dl.mail-kopf dt { color: var(--leise); }
dl.mail-kopf dd { margin: 0; overflow-wrap: anywhere; }
.mail-anhaenge { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; color: var(--leise); }
.mail-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.6; border-top: 1px solid var(--linie-hell); padding-top: 14px; }
.mail-hinweis { margin: 14px 0 0; font-size: 12.5px; }
@media (max-width: 900px) {
  .postfach-raster { grid-template-columns: 1fr; }
  button.mail-zeile { grid-template-columns: auto minmax(0, 1fr); }
  .mail-rechts { grid-column: 2; align-items: flex-start; }
  dl.mail-kopf { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ Einstellungen: Datenkarten (Export, Import) */
.daten-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.daten-karte {
  display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: start; padding: 18px;
  background: linear-gradient(135deg, rgba(255, 145, 0, 0.08), transparent 60%), var(--flaeche-2);
  border: 1px solid var(--linie-hell); border-radius: var(--radius); transition: border-color .15s, transform .15s;
}
.daten-karte:hover { border-color: rgba(255, 145, 0, 0.4); transform: translateY(-1px); }
.daten-symbol { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--akzent-zart); color: var(--akzent); }
.daten-symbol .ic { width: 22px; height: 22px; }
.daten-text strong { font-size: 16px; }
.daten-text p { margin: 4px 0 0; color: var(--leise); font-size: 13.5px; }
.daten-knoepfe { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.abschnitt.nur-leadwerk { border-style: dashed; border-color: rgba(255, 145, 0, 0.3); }
.abschnitt .angaben-kopf h2 { margin: 16px 0 12px; }
a.knopf { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }

/* ------------------------------------------------------------------ Diktat an langen Textfeldern */
.mit-diktat { display: flex; flex-direction: column; gap: 6px; }
.diktat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.diktat-knopf { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 6px 12px; }
.diktat-knopf.aktiv { background: var(--fehler-zart); color: var(--fehler); border-color: rgba(248, 113, 113, 0.5); animation: pace-puls 1.4s ease-in-out infinite; }
.diktat-hinweis { color: var(--leise); font-size: 12.5px; flex-basis: 100%; }
.diktat-hinweis[hidden] { display: none; }
@keyframes pace-puls { 0%, 100% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.35); } 50% { box-shadow: 0 0 0 6px rgba(248, 113, 113, 0); } }
@media (prefers-reduced-motion: reduce) { .diktat-knopf.aktiv { animation: none; } }

/* Fassungen: Abweichung vom aktuellen Standard */
.warnung-text { color: var(--warn); font-weight: 600; }

/* ------------------------------------------------------------------ Score-Merkmale: Übersicht in der Box, Editor in der Verwaltung */
.score-merkmale { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; margin-bottom: 8px; }
.score-merkmale .angabe small { margin-top: 4px; line-height: 1.45; }
form.form-breit { max-width: 1040px; }
.score-editor { display: flex; flex-direction: column; gap: 12px; margin: 8px 0 4px; }
.merkmal-karte { background: var(--flaeche-2); border: 1px solid var(--linie-hell); border-radius: var(--radius); padding: 14px 16px 10px; }
.merkmal-felder { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 0 14px; }
.mit-anteil { display: flex; align-items: center; gap: 10px; }
.mit-anteil .anteil { color: var(--leise); font-size: 13px; white-space: nowrap; }
input.schmal { max-width: 110px; }
.stufen-tabelle { width: 100%; margin: 4px 0 8px; }
.stufen-tabelle td, .stufen-tabelle th { padding: 4px 8px 4px 0; vertical-align: middle; }
.stufen-tabelle input, .stufen-tabelle select { width: 100%; }
.stufen-tabelle td:last-child { width: 1%; white-space: nowrap; }
.klassen-felder { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: flex-end; }
.klasse-feld { display: flex; gap: 10px; align-items: flex-end; }
.klasse-feld .feld { margin-bottom: 0; }

