/* Hunting — Oberflaeche.
   Ruhig, dicht, ohne Zierrat. Eine Beraterin sitzt den ganzen Tag darin.

   Neu gefasst am 24.08.2026 mit dem Anspruch, dass das Werkzeug so
   sorgfaeltig aussieht, wie es rechnet: EINE Akzentfarbe, warme
   neutrale Flaechen, Tabellenziffern, ein Bewegungsmass von 120 ms.
   ⚠ Alle Klassen- und Variablennamen sind BESTAND -- die Vorlagen
   benutzen sie inline, die Waechter pruefen sie. Hier wird gestimmt,
   nicht umbenannt. */

:root {
  /* Tinte und Neutraltoene: warmes, tiefes Graublau statt Druckerschwarz. */
  /* ⭐ Apple-Anmutung: fast schwarze Tinte statt Blauschwarz, zwei
     graue Stufen, Haarlinien in Grau statt Blau, EINE Akzentfarbe.
     Die Namen sind BESTAND -- gestimmt werden nur die Werte. */
  --tinte: #1d1d1f;
  --grau: #6e6e73;
  --hellgrau: #86868b;
  --linie: #d2d2d7;
  --flaeche: #f5f5f7;
  --weiss: #fff;
  --blau: #0071e3;
  --blau-dunkel: #0058b0;
  --blau-hell: #e8f1fd;
  --gruen: #1d7a48;
  --gruen-hell: #e7f6ed;
  --rot: #c1271e;
  --rot-hell: #fdeeed;
  --gelb: #8a6100;
  --gelb-hell: #fdf3df;
  --rand: 16px;
  --rand-klein: 10px;
  /* ⭐ Eine Schattenleiter statt eines Schattens: Tiefe entsteht durch
     gestaffelte, sehr weiche Lagen -- nicht durch einen harten Rand. */
  --schatten: 0 1px 3px rgba(0, 0, 0, .04), 0 0 0 .5px rgba(0, 0, 0, .05);
  --schatten-hoch: 0 4px 16px rgba(0, 0, 0, .07), 0 0 0 .5px rgba(0, 0, 0, .06);
  --schatten-schwebend: 0 16px 48px rgba(0, 0, 0, .14), 0 0 0 .5px rgba(0, 0, 0, .06);
  --fokusring: 0 0 0 4px rgba(0, 113, 227, .22);
  --zack: 120ms cubic-bezier(.2, .6, .3, 1);
  --zack-ruhig: 220ms cubic-bezier(.2, .6, .3, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
               "SF Pro Display", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  font-size: 14.5px;
  line-height: 1.58;
  color: var(--tinte);
  /* ⚠ Apple faerbt Flaechen nicht, es ordnet sie. Eine ruhige, flache
     Grundflaeche; die Tiefe entsteht aus Weiss auf Grau, nicht aus
     Verlaeufen. */
  background: var(--flaeche);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* ⭐ Zahlen stehen in dieser App staendig untereinander (Listen,
     Zaehlwerke, Preise). Tabellenziffern lassen sie fluchten. */
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "calt" 1;
}

a { color: var(--blau); text-decoration: none; transition: color var(--zack); }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

::selection { background: #b3d7ff; }

/* --- Kopfleiste --------------------------------------------------- */

#hauptnav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 20px;
  /* ⚠⚠ KEIN backdrop-filter auf der klebenden Leiste: die Kombination
     mit position:sticky zerriss beim Scrollen die Darstellung (weisse
     Flaeche, Leiste mitten auf der Seite) -- reproduzierbar beobachtet
     am 25.08. Eine Gestaltung, die beim Scrollen zerfaellt, ist keine. */
  background: #1d1d1f;
  color: #fff;
  height: 54px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: none;
}
#hauptnav .marke {
  font-weight: 700;
  letter-spacing: -.01em;
  margin-right: 22px;
  font-size: 15.5px;
}
/* Das Zeichen der Marke: ein Punkt in der Akzentfarbe. */
#hauptnav .marke::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-left: 3px;
  border-radius: 50%;
  background: var(--blau);
  vertical-align: 2px;
}
#hauptnav a {
  color: #aebbc8;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  transition: background var(--zack), color var(--zack);
}
#hauptnav a:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
#hauptnav a.aktiv { background: rgba(255,255,255,.12); color: #fff; }
#hauptnav .rechts { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; color: #a1a1a6; }

/* --- Grundgeruest -------------------------------------------------- */

main { max-width: 1180px; margin: 0 auto; padding: 34px 28px 88px; }
.schmal { max-width: 720px; }

/* ⭐ Eine echte Stufenleiter. Vorher lagen h1 und h2 nur 8,5 px
   auseinander -- eine Seite ohne Rangfolge liest sich wie eine Wand. */
h1 { font-size: 32px; font-weight: 600; letter-spacing: -.024em; margin: 0 0 6px; line-height: 1.14; }
h2 {
  font-size: 20px; font-weight: 600; letter-spacing: -.018em;
  margin: 36px 0 13px; line-height: 1.25;
}
/* ⚠ Der Akzentstrich vor jedem Abschnitt war Zierrat -- Rangfolge
   entsteht bei Apple aus Groesse und Luft, nicht aus Farbmarken. */
h3 { font-size: 12px; margin: 20px 0 8px; text-transform: uppercase; letter-spacing: .06em; color: var(--hellgrau); font-weight: 600; }
.unterzeile { color: var(--grau); margin: 0 0 24px; font-size: 13.5px; line-height: 1.55; }

.karte {
  background: var(--weiss);
  border: 1px solid transparent;
  border-radius: var(--rand);
  padding: 22px 24px;
  margin-bottom: 18px;
  box-shadow: var(--schatten);
  /* ⚠⚠ Breite Tabellen liefen aus der Karte HERAUS statt darin zu
     scrollen: auf der Kundenseite war die Spalte "bearbeiten" am
     rechten Rand abgeschnitten -- der Knopf war da, aber unerreichbar. */
  overflow-x: auto;
}
.karte.eng { padding: 15px 18px; }
/* Eine Karte, in der etwas passiert, hebt sich beim Darueberfahren --
   eine reine Anzeigekarte bleibt ruhig liegen. */


.zeile { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.zeile.oben { align-items: flex-start; }
.wachsen { flex: 1; }
.rechtsbuendig { margin-left: auto; }

/* --- Formulare ------------------------------------------------------ */

label { display: block; font-size: 12px; color: var(--grau); margin-bottom: 5px; font-weight: 600; letter-spacing: .01em; }
/* input:not([type]) gehoert unbedingt dazu: ein <input> ohne type ist
   nach HTML ein Textfeld, aber input[type=text] greift dann NICHT. */
input:not([type]),
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], select, textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--linie);
  border-radius: var(--rand-klein);
  font-size: 14px;
  font-family: inherit;
  color: var(--tinte);
  background: var(--weiss);
  transition: border-color var(--zack), box-shadow var(--zack);
}
textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
input:hover:not(:focus), select:hover:not(:focus), textarea:hover:not(:focus) { border-color: #b0b0b6; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blau);
  box-shadow: var(--fokusring);
}
::placeholder { color: #a6afb9; }
.feld { margin-bottom: 14px; }
.feldpaar { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hinweis { font-size: 12px; color: var(--hellgrau); margin-top: 4px; }

button, .knopf {
  /* ⚠⚠ Ohne display:inline-block zerfaellt ein UMBRECHENDER Knopf in
     versetzte Bloecke. */
  display: inline-block;
  text-align: center;
  padding: 9px 17px;
  border: none;
  border-radius: var(--rand-klein);
  line-height: 1.35;
  /* Ein Knopf bricht nie um -- "loeschen ..." zerfiel sonst in zwei
     Zeilen, sobald die Karte eng wurde. */
  white-space: nowrap;
  background: var(--blau);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -.01em;
  font-family: inherit;
  cursor: pointer;
  /* ⚠ Kein Verlauf, kein Schein, kein Anheben: ein Apple-Knopf ist eine
     ruhige Flaeche, die auf Beruehrung nur leicht nachdunkelt. */
  box-shadow: none;
  transition: background var(--zack), opacity var(--zack);
}
button:hover:not(:disabled), .knopf:hover {
  background: #0077ed; text-decoration: none; color: #fff;
}
button:active:not(:disabled), .knopf:active { background: var(--blau-dunkel); }
button:disabled { background: rgba(0,0,0,.09); color: var(--hellgrau); cursor: not-allowed; box-shadow: none; }
/* Die stille Fassung: kein Rahmen, sondern eine graue Flaeche -- so
   loest Apple sekundaere Handlungen. */
button.still, .knopf.still {
  background: rgba(0, 0, 0, .05); color: var(--tinte);
  border: none; box-shadow: none; font-weight: 500;
}
button.still:hover, .knopf.still:hover {
  background: rgba(0, 0, 0, .085); color: var(--tinte);
}
button.still:active, .knopf.still:active { background: rgba(0, 0, 0, .12); }

/* ⚠⚠ Zerstoerende Handlungen sehen anders aus als speichernde. */
button.gefahr, .knopf.gefahr { background: var(--rot); box-shadow: none; }
button.gefahr:hover, .knopf.gefahr:hover { background: #a81f18; }
button.klein, .knopf.klein { padding: 5.5px 12px; font-size: 12.5px; border-radius: 8px; }

:focus-visible { outline: 2px solid var(--blau); outline-offset: 2px; border-radius: 5px; }
button:focus-visible, .knopf:focus-visible { outline-offset: 3px; }

/* --- Laenderauswahl -------------------------------------------------- */

.laenderfeld {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 10px; border: 1px solid var(--linie); border-radius: var(--rand-klein); background: var(--weiss);
}
.landknopf {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border: 1px solid var(--linie); border-radius: 999px;
  background: var(--weiss); font-size: 13px; cursor: pointer; user-select: none;
  color: var(--tinte); font-weight: 500;
  transition: border-color var(--zack), background var(--zack), color var(--zack);
}
.landknopf:hover { border-color: var(--blau); background: var(--blau-hell); }
.landknopf.gewaehlt { background: var(--blau); border-color: var(--blau); color: #fff; }
.landknopf input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.landknopf:focus-within { outline: 2px solid var(--blau); outline-offset: 2px; }
.landknopf .orte { font-size: 11px; opacity: .65; }

/* --- Tabellen -------------------------------------------------------- */

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th {
  text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .085em;
  color: var(--hellgrau); font-weight: 700; padding: 0 12px 10px 0;
  border-bottom: .5px solid var(--linie);
  white-space: nowrap;
}
td { padding: 12px 12px 12px 0; border-bottom: .5px solid var(--linie); vertical-align: top; }
/* Jede Zeile antwortet leise -- man sieht, wo der Zeiger steht. */
tbody tr:not(.ausklapp):hover > td { background: rgba(0, 0, 0, .018); }
tr:last-child td { border-bottom: none; }
tr.klickbar { transition: background var(--zack); }
tr.klickbar:hover { background: #f7f9fc; cursor: pointer; }

tr.ausklapp > td {
  background: var(--flaeche);
  padding: 16px 18px;
  border-bottom: 1px solid var(--linie);
}
table.profil td { vertical-align: top; }
table.profil tbody tr:not(.ausklapp):hover { background: #fafbfd; }

tr.streitig td { background: var(--gelb-hell); }

/* --- Marken ---------------------------------------------------------- */

.marke-punkt, .kennzeichen {
  display: inline-block; padding: 2.5px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 640; white-space: nowrap;
  letter-spacing: .012em; line-height: 1.5;

}
.kennzeichen.gruen { background: var(--gruen-hell); color: var(--gruen); }
.kennzeichen.rot { background: var(--rot-hell); color: var(--rot); }
.kennzeichen.gelb { background: var(--gelb-hell); color: var(--gelb); }
.kennzeichen.grau { background: rgba(0,0,0,.055); color: var(--grau); }

.ja { color: var(--gruen); font-weight: 700; }
.nein { color: var(--rot); font-weight: 700; }
.offen { color: var(--hellgrau); font-weight: 700; }

.wertepaar { display: flex; gap: 10px; align-items: baseline; }
.wertepaar .punkte { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.wertepaar .sicherheit { font-size: 12px; color: var(--grau); }
.balken { height: 4px; background: var(--linie); border-radius: 2px; overflow: hidden; width: 60px; margin-top: 3px; }
.balken > i { display: block; height: 100%; background: linear-gradient(90deg, #4b83ff, var(--blau)); border-radius: 2px; transition: width .3s ease; }
.balken.duenn > i { background: var(--gelb); }

/* --- Meldungen -------------------------------------------------------- */

.meldung {
  padding: 12px 16px; border-radius: var(--rand); margin-bottom: 18px;
  font-size: 13.5px; position: relative; line-height: 1.5;
}
/* ⚠ Auch hier kein Balken mehr: die getoente Flaeche traegt den Zustand
   schon, ein Streifen daneben wiederholt ihn nur laut. */
.meldung.gut { background: var(--gruen-hell); color: var(--gruen); }
.meldung.fehler { background: var(--rot-hell); color: var(--rot); }
.meldung.warnung { background: var(--gelb-hell); color: var(--gelb); }
.meldung.info { background: var(--blau-hell); color: #17418f; }

.leer { padding: 48px 24px; text-align: center; color: var(--hellgrau); }
.leer p { margin: 0 0 16px; font-size: 14.5px; }

/* --- Anmeldung --------------------------------------------------------- */

body.anmeldeseite {
  display: flex; align-items: center; justify-content: center; min-height: 100vh;
  background: var(--flaeche);
}
.anmeldekasten { width: 360px; }
.anmeldekasten h1 { text-align: center; margin-bottom: 20px; }
.anmeldekasten .karte { box-shadow: var(--schatten-hoch); }

/* --- Eingeklappte Abschnitte ------------------------------------------ */
/* <details>: der Inhalt bleibt im Dokument (die Seitensuche findet ihn),
   steht aber nicht im Weg. */

details.abschnitt {
  border: 1px solid var(--linie); border-radius: var(--rand);
  background: #fff; margin-bottom: 10px;
  box-shadow: var(--schatten);
}
details.abschnitt > summary {
  padding: 14px 18px; cursor: pointer; list-style: none;
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  border-radius: var(--rand);
  transition: background var(--zack);
}
details.abschnitt > summary::-webkit-details-marker { display: none; }
details.abschnitt > summary::before {
  content: "▸"; color: var(--hellgrau); font-size: 11px;
  transition: transform var(--zack); display: inline-block;
  align-self: center;
}
details.abschnitt[open] > summary::before { transform: rotate(90deg); }
details.abschnitt > summary:hover { background: #fafbfc; }
details.abschnitt[open] > summary { border-bottom: 1px solid var(--linie); border-radius: var(--rand) var(--rand) 0 0; }
details.abschnitt > summary strong { font-size: 15px; letter-spacing: -.01em; }
details.abschnitt > summary h2 { margin: 0; }
.fasszeile { color: var(--grau); font-size: 13px; }
details.abschnitt > *:not(summary) { padding: 0 18px; }
details.abschnitt > .karte {
  border: none; box-shadow: none; margin: 0; padding: 16px 18px;
}
details.abschnitt > h3 { padding: 0 18px; margin-top: 16px; }
details.abschnitt > p { padding: 0 18px; }

/* Raster- und Quellenpillen: gesetzt oder Vorschlag, ein Klick schaltet um.
   Bewusst ein <button> und kein <span> -- was klickbar aussieht, muss
   klickbar sein. */
.pille {
  display: inline-block;
  padding: 3px 11px;
  margin: 0 4px 4px 0;
  border: 1px solid var(--linie);
  border-radius: 999px;
  background: #fff;
  color: var(--grau);
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color var(--zack), color var(--zack), background var(--zack);
}
.pille:hover { border-color: var(--blau); color: var(--blau); background: var(--blau-hell); }
.pille.gewaehlt {
  background: var(--gruen-hell);
  border-color: #9fd4b6;
  color: #14603a;
  font-weight: 600;
}

/* Herkunftsmarken. Je Netz eine eigene Toenung -- beim Ueberfliegen einer
   Liste zaehlt die Farbe, nicht das Lesen. */
.kennzeichen.netz-linkedin { background: #e8f0fb; color: #0a4fb4; }
.kennzeichen.netz-github { background: #ecebf3; color: #3b3560; }
.kennzeichen.netz-freelancermap { background: #eaf4f1; color: #1d6a5a; }
.kennzeichen.netz-xing { background: #e9f2ee; color: #14675a; }
a.kennzeichen { transition: filter var(--zack); }
a.kennzeichen:hover { filter: brightness(.96); text-decoration: none; }

/* --- Ruhe fuer alle, die Bewegung meiden ------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* --- Die Kandidatenakte: komponierte Seite ---------------------------- */
/* Links der Inhalt, rechts die feste Handlungsspalte. Auf schmalen
   Fenstern EINE Spalte, Handlungen zuerst -- dafuer oeffnet man die
   Akte. */

.akte {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 0 20px;
  align-items: start;
}
.akte-haupt { grid-column: 1; grid-row: 1; min-width: 0; }
.akte-seite { grid-column: 2; grid-row: 1; position: sticky; top: 66px; }
.akte-seite .karte { padding: 16px 18px; }

.akte-kopf h1 { font-size: 27px; letter-spacing: -.022em; }
.akte-kopf img { box-shadow: 0 0 0 1px var(--linie), var(--schatten); }

@media (max-width: 1020px) {
  .akte { display: block; }
  .akte-seite { position: static; }
}

/* ---- Hover-Hilfe -------------------------------------------------------- */
/* Die Blase des Hilfesystems (hilfe.js). Dunkel wie die Kopfleiste,
   damit sie als Erklaerung der App lesbar ist, nicht als Teil der Seite. */
#hilfe-blase {
  position: fixed;
  z-index: 300;
  /* ⚠ Ohne max-content schrumpft die feste Blase auf die Breite, die
     ihre Startposition gerade zulaesst -- gemessen 113px statt 360. */
  width: max-content;
  background: #131a22;
  color: #f0f3f6;
  padding: 10px 13px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 8px 28px rgba(9, 14, 20, .35);
  pointer-events: none;
}
#hilfe-blase .hilfe-zusatz {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid rgba(240, 243, 246, .22);
  color: #b9c2cb;
}

/* ---- Kennzahl-Kacheln ---------------------------------------------------- */
/* ⭐ Die Zahlenzeile ist auf Arbeitstag, Mandat und Projekten das ERSTE,
   was jemand liest. Vorher war sie dreimal inline gebaut -- drei
   Groessen, drei Abstaende. Eine Klasse, eine Sprache. */

.kachelzeile {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.kachel {
  padding: 2px 30px 2px 0;
  margin-right: 30px;
  position: relative;
}
/* Ein Haarstrich zwischen den Zahlen statt bloss Abstand: die Kachel
   wird ablesbar als eigene Einheit. */
.kachel + .kachel::before {
  content: "";
  position: absolute;
  left: -30px; top: 3px; bottom: 3px;
  width: 1px;
  background: var(--linie);
}
.kachel:last-child { margin-right: 0; padding-right: 0; }
.kachel .zahl {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.022em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.kachel .zahl a { color: inherit; }
.kachel .zahl a:hover { color: var(--blau); text-decoration: none; }
.kachel .zahl .neben { font-size: 14px; color: var(--grau); font-weight: 500; letter-spacing: 0; }
.kachel .marke-zeile {
  color: var(--grau);
  font-size: 12.5px;
  margin-top: 3px;
  letter-spacing: .004em;
}
.kachel.warnend .zahl { color: var(--rot); }
.kachel.rechts { margin-left: auto; text-align: right; margin-right: 0; padding-right: 0; }
.kachel.rechts::before { display: none; }

@media (max-width: 720px) {
  .kachel { padding-right: 20px; margin-right: 20px; }
  .kachel + .kachel::before { left: -20px; }
  .kachel .zahl { font-size: 24px; }
}

/* ---- Lesbare Zeilenlaenge ------------------------------------------------ */
/* ⭐ In einer 1180 px breiten Karte laufen Fliesstext-Zeilen auf ~120
   Zeichen -- das Auge verliert beim Ruecksprung die Zeile. Nur echter
   Fliesstext wird begrenzt; Zeilen mit Knoepfen und Tabellen nicht. */
.karte > p:not(.hinweis):not(.zeile),
.karte > div > p:not(.hinweis):not(.zeile),
details.abschnitt > p {
  max-width: 78ch;
}
.unterzeile { max-width: 92ch; }

/* ---- Projektgruppen ------------------------------------------------------ */
/* ⭐ Der Anlass, sinngemaess: "leicht unterschiedliche Hintergrundfarben,
   so dass klar wird, was zu jedem Projekt gehoert."
   Bauart wie eine gruppierte Liste in iOS: EIN Behaelter je Auftrag --
   oben der getoente Kopf (Auftrag, Zahlen, Handlungen), darunter die
   Suchen auf Weiss. Die Toenung wechselt je Projekt in sehr kleinen
   Schritten; sie ordnet zu, sie schmueckt nicht. */

.projektgruppe {
  border-radius: var(--rand);
  box-shadow: var(--schatten);
  background: var(--weiss);
  margin-bottom: 20px;
  overflow: hidden;
}
.projektgruppe > .kopf {
  padding: 20px 24px 16px;
  background: var(--gruppe-ton, rgba(0, 0, 0, .028));
  border-bottom: .5px solid var(--linie);
}
.projektgruppe > .rumpf { padding: 6px 24px 16px; }
.projektgruppe > .rumpf table { margin-top: 4px; }
.projektgruppe > .rumpf > .werkzeuge {
  padding-top: 14px;
  border-top: .5px solid var(--linie);
  margin-top: 4px;
}
/* Der Auftraggeber traegt die Tonmarke -- ein Punkt, kein Balken. */
.projektgruppe .tonpunkt {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gruppe-marke, var(--hellgrau));
  margin-right: 7px; vertical-align: 1px;
}
.projektgruppe.geschlossen { opacity: .72; }

/* Sechs sehr leise Toene. Kein Farbcode mit Bedeutung -- eine
   Zuordnungshilfe, damit beim Blaettern klar bleibt, wo ein Auftrag
   anfaengt und der naechste aufhoert. */
.ton-1 { --gruppe-ton: #eef3fb; --gruppe-marke: #0071e3; }
.ton-2 { --gruppe-ton: #edf6f0; --gruppe-marke: #1d7a48; }
.ton-3 { --gruppe-ton: #faf3ec; --gruppe-marke: #b4622a; }
.ton-4 { --gruppe-ton: #f3f0fa; --gruppe-marke: #6b4fb8; }
.ton-5 { --gruppe-ton: #ecf5f7; --gruppe-marke: #17707d; }
.ton-6 { --gruppe-ton: #fbf0f3; --gruppe-marke: #ab3355; }

/* ---- Zustandskarten ------------------------------------------------------ */
/* ⭐ Der Anlass, sinngemäß: „diese Klammern (braun) finde ich nicht schön —
   bitte aus der ganzen App entfernen und hübscher machen."
   Ein 3-px-Balken am Rand war die Notlösung, um einer weissen Karte einen
   Zustand anzusehen. Apple faerbt stattdessen die FLAECHE sehr leise und
   setzt die Ueberschrift in die Zustandsfarbe -- ruhiger und deutlicher
   zugleich. Die Klasse traegt den Zustand, nicht ein Inline-Rand. */

.karte.warnend, .karte.dringend, .karte.gelungen, .karte.ruhig {
  border: none;
}
.karte.warnend  { background: var(--gelb-hell); box-shadow: 0 0 0 .5px rgba(138, 97, 0, .16); }
.karte.dringend { background: var(--rot-hell);  box-shadow: 0 0 0 .5px rgba(193, 39, 30, .16); }
.karte.gelungen { background: var(--gruen-hell); box-shadow: 0 0 0 .5px rgba(29, 122, 72, .16); }
.karte.ruhig    { background: rgba(0, 0, 0, .028); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .05); }

.karte.warnend  > h2:first-child, .karte.warnend  > h3:first-child { color: var(--gelb); }
.karte.dringend > h2:first-child, .karte.dringend > h3:first-child { color: var(--rot); }
.karte.gelungen > h2:first-child, .karte.gelungen > h3:first-child { color: var(--gruen); }

/* Karten in diesen Zuständen tragen ihre eigene Flaeche -- eine weisse
   Karte darin waere ein Kasten im Kasten. */
.karte.warnend .kennzeichen.gelb,
.karte.dringend .kennzeichen.rot { background: rgba(255, 255, 255, .7); }

/* Zitate und eingerueckte Belege: eine Flaeche statt eines Balkens. */
blockquote.beleg, .beleg-block {
  background: rgba(0, 0, 0, .03);
  border-radius: var(--rand-klein);
  padding: 12px 14px;
  margin: 10px 0;
  border: none;
}

/* ---- Sortierbare Tabellenköpfe ------------------------------------------- */
/* ⭐ „warum kann man nicht in die Tabellenüberschriften klicken?" — jetzt
   geht es. Der Pfeil zeigt die Richtung; ein zweiter Klick dreht sie. */

/* ⚠⚠ Der Verweis darf die Zelle NICHT verändern: Mit eigener Polsterung
   und inline-flex sass ein sortierbarer Kopf 10 px höher als ein
   stiller daneben ("Mandate" war nicht auf gleicher Höhe wie "Name") --
   gemessen 26,6 px gegen 36,8 px Zellhöhe. Die Polsterung gehört der
   Zelle, für BEIDE Sorten gleich; der Verweis ist nur Text. */
th.sortierbar > a {
  display: inline; color: inherit; font: inherit; letter-spacing: inherit;
  text-transform: inherit; padding: 0;
  transition: color var(--zack);
}
th.sortierbar .pfeil { margin-left: 4px; }
th.sortierbar > a:hover { color: var(--tinte); text-decoration: none; }
th.sortierbar .pfeil { font-size: 10px; line-height: 1; opacity: .9; }
/* Ungeklickt gibt es einen leisen Hinweis, dass hier etwas geht --
   sichtbar erst beim Darüberfahren, damit die Kopfzeile ruhig bleibt. */
th.sortierbar:not(.sortiert) > a::after {
  content: "↕"; font-size: 10px; opacity: 0;
  transition: opacity var(--zack);
}
th.sortierbar:not(.sortiert) > a:hover::after { opacity: .45; }
th.sortiert > a { color: var(--tinte); }
