/* ===========================================================================
   Kampagnentool: Gestaltung
   ---------------------------------------------------------------------------
   Richtung: Swiss / Minimalism. Gewählt, weil SQMIZE keine Markenfarbe hat,
   die Logosammlung kennt nur „Schwarz" und „Weiss". Ein Werkzeug, das Preise
   verantwortet, braucht ohnehin keine Dekoration, sondern Lesbarkeit.

   Die eine Regel, aus der alles folgt:

       Neutrale tragen die Oberfläche. Farbe bedeutet ausschließlich Zustand.

   Vorher war alles grün: Links, Knöpfe, Abzeichen, positive Zahlen, der
   Live-Zustand. Wenn Grün überall ist, heißt es nichts. Jetzt ist Grün
   „geht durch", Bernstein „sieh hin", Rot „hält auf". Sonst nichts.

   Jedes Farbpaar unten ist nachgerechnet, nicht geschätzt: Text erreicht
   mindestens 4,5:1, Ränder und Fokusringe mindestens 3:1, in beiden Modi.
   =========================================================================== */

/* ---------- Grundwerte ---------- */
:root {
  /* Neutralleiter. Ein einziger Ton, zehn Stufen, daraus alle Flächen. */
  --n-0:   #ffffff;
  --n-25:  #fafaf9;
  --n-50:  #f4f4f2;
  --n-100: #ececeb;
  --n-200: #dbdad8;
  --n-300: #94938f;
  --n-400: #7c7b77;
  --n-500: #6b6a66;
  --n-700: #3c3b38;
  --n-900: #171714;

  /* Flächen und Schrift */
  --grund:       var(--n-25);
  --flaeche:     var(--n-0);
  --flaeche-2:   var(--n-50);
  --rand:        var(--n-200);
  --rand-stark:  var(--n-300);
  --text:        var(--n-900);
  --text-2:      var(--n-500);
  --grau:        var(--n-500);

  /* Interaktion: in einer monochromen Marke ist Schwarz die Hauptfarbe. */
  --akzent:      var(--n-900);
  --auf-akzent:  var(--n-0);
  --akzent-hell: var(--n-100);

  /* Zustände: die einzigen Farben im Werkzeug */
  --gut:        #14683c;   --gut-flaeche:  #e6f2ea;   --gut-rand:  #a9cfba;
  --warn:       #85550a;   --warn-flaeche: #fbf1de;   --warn-rand: #e0c58c;
  --stopp:      #9c261b;   --stopp-flaeche:#fbeae8;   --stopp-rand:#e4b0aa;

  /* Richtungsanzeige in Auswertungen */
  --hoch: var(--gut);
  --runter: var(--stopp);

  /* Abstände: dicht, wie es ein Arbeitswerkzeug verträgt */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;

  /* Schriftgrößen */
  --t-xs: 11px; --t-s: 12px; --t-m: 13px; --t-basis: 15px;
  --t-l: 18px; --t-xl: 22px; --t-xxl: 28px;

  --radius: 4px;
  --radius-klein: 3px;
  --linie: 1px solid var(--rand);
}

@media (prefers-color-scheme: dark) {
  :root {
    --n-0:   #17191b;
    --n-25:  #101113;
    --n-50:  #1e2124;
    --n-100: #262a2e;
    --n-200: #333940;
    --n-300: #616a75;
    --n-400: #8b939c;
    --n-500: #a0a8b1;
    --n-700: #cfd4d9;
    --n-900: #eceef0;

    --grund:      var(--n-25);
    --flaeche:    var(--n-0);
    --flaeche-2:  var(--n-50);
    --rand:       var(--n-200);
    --rand-stark: var(--n-300);
    --text:       var(--n-900);
    --text-2:     var(--n-500);
    --grau:       var(--n-500);

    --akzent:      var(--n-900);
    --auf-akzent:  var(--n-25);
    --akzent-hell: var(--n-100);

    --gut:        #6bcf94;   --gut-flaeche:  #12241a;   --gut-rand:  #2f5b41;
    --warn:       #e0ad5a;   --warn-flaeche: #241c0e;   --warn-rand: #5c4620;
    --stopp:      #f0958a;   --stopp-flaeche:#2a1512;   --stopp-rand:#6b352e;
  }
}

/* ---------- Grundgerüst ---------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font: var(--t-basis)/1.55 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Ziffern laufen in Tabellen sonst auseinander; Preise vergleicht man
     spaltenweise, und das geht nur mit gleich breiten Ziffern. */
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: underline; text-underline-offset: 2px;
    text-decoration-color: var(--rand-stark); }
a:hover { text-decoration-color: currentColor; }

code {
  font: var(--t-s)/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--flaeche-2); border: var(--linie);
  padding: 1px 5px; border-radius: var(--radius-klein);
}

/* Ein Fokusring, überall, sichtbar. Ohne ihn ist das Werkzeug mit der
   Tastatur unbedienbar, und genau das war vorher der Fall. */
:focus-visible {
  outline: 2px solid var(--akzent);
  outline-offset: 2px;
  border-radius: var(--radius-klein);
}
:focus:not(:focus-visible) { outline: none; }

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

/* ---------- Kopfleiste ---------- */
header {
  display: flex; align-items: center; gap: var(--s5);
  padding: 0 var(--s5); height: 52px;
  background: var(--flaeche); border-bottom: var(--linie);
  position: sticky; top: 0; z-index: 20;
}
.marke { font-weight: 650; letter-spacing: -0.02em; color: var(--text);
         text-decoration: none; font-size: var(--t-basis); }
.marke span { color: var(--text-2); font-weight: 400; }
header nav { display: flex; gap: var(--s1); }
header nav a {
  padding: var(--s1) var(--s3); border-radius: var(--radius);
  color: var(--text-2); text-decoration: none; font-size: var(--t-m);
}
header nav a:hover { color: var(--text); background: var(--flaeche-2); }
header nav a.an { background: var(--akzent); color: var(--auf-akzent); font-weight: 550; }
/* Der Wechsel zwischen Kampagnen und Streichliste. Sitzt rechts vor dem
   Profil, nicht in der Navigation: er wechselt nicht die Seite, sondern
   den Arbeitsbereich. */
.bereichswechsel {
  margin-left: auto; font-size: var(--t-m); color: var(--text-2);
  text-decoration: none; padding: var(--s1) var(--s3);
  border: var(--linie); border-radius: var(--radius);
}
.bereichswechsel:hover { color: var(--text); background: var(--flaeche-2); }
.bereichswechsel + .ich { margin-left: 0; }

.ich { margin-left: auto; display: flex; align-items: center; gap: var(--s3);
       color: var(--text-2); font-size: var(--t-m); }
.ich form { margin: 0; }
.rolle {
  font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.06em;
  border: var(--linie); border-radius: 999px; padding: 1px var(--s2); color: var(--text-2);
}

/* Unten Luft, damit die schwebende Speicherleiste nichts verdeckt. */
main { max-width: 1560px; margin: 0 auto; padding: var(--s5) var(--s5) 96px; }

/* ---------- Typografie ---------- */
h1 { font-size: var(--t-xl); margin: 0 0 var(--s1); letter-spacing: -0.02em; font-weight: 600; }
h2 { font-size: var(--t-l); margin: var(--s6) 0 var(--s3); letter-spacing: -0.01em; font-weight: 600; }
h3 { font-size: var(--t-basis); margin: 0 0 var(--s1); font-weight: 600; }
p { margin: var(--s1) 0; }

.kopfzeile {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--s5); flex-wrap: wrap; margin-bottom: var(--s4);
}
.kopfzeile p { margin: 2px 0; }
.aktionen { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; }
.aktionen form { margin: 0; }

.grau, .hinweis { color: var(--text-2); }
.klein { font-size: var(--t-s); line-height: 1.45; }
.r { text-align: right; }
.leer { color: var(--text-2); padding: var(--s5) 0; }
.hoch { color: var(--hoch); font-weight: 600; }
.runter { color: var(--runter); font-weight: 600; }
.warn { color: var(--warn); }
.stopp { color: var(--stopp); }
.abstand { flex: 1 1 var(--s5); }

/* ---------- Knöpfe ---------- */
button, .knopf {
  font: inherit; font-size: var(--t-m); font-variant-numeric: tabular-nums;
  padding: 7px var(--s3); min-height: 32px;
  border: 1px solid var(--rand-stark); border-radius: var(--radius);
  background: var(--flaeche); color: var(--text);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s1); text-decoration: none; white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease;
}
button:hover, .knopf:hover { background: var(--flaeche-2); border-color: var(--text-2); }
button:disabled { opacity: 0.45; cursor: not-allowed; }
button:disabled:hover { background: var(--flaeche); border-color: var(--rand-stark); }

.haupt { background: var(--akzent); border-color: var(--akzent); color: var(--auf-akzent); font-weight: 550; }
.haupt:hover { background: var(--n-700); border-color: var(--n-700); color: var(--auf-akzent); }

/* Scharf heißt: schreibt in den Shop oder löscht etwas. */
button.scharf, .knopf.scharf, a.scharf {
  background: var(--stopp); border-color: var(--stopp);
  /* --n-0 ist hell im Hellmodus und dunkel im Dunkelmodus, die Schrift
     dreht sich also mit dem Untergrund mit, statt in beiden Fällen weiß
     auf Rot zu stehen. Genau daran ist die alte Fassung gescheitert. */
  color: var(--n-0); font-weight: 550;
}
button.scharf:hover, .knopf.scharf:hover { filter: brightness(1.1); }
.gefahr { color: var(--stopp); border-color: var(--stopp-rand); }
.gefahr:hover { background: var(--stopp-flaeche); border-color: var(--stopp); }

/* Textknöpfe bleiben Text: aber mit einer Klickfläche, die man trifft. */
button.link {
  border: 0; background: none; color: var(--text); padding: 0 var(--s1);
  min-height: 24px; min-width: 24px; text-decoration: underline;
  text-underline-offset: 2px; text-decoration-color: var(--rand-stark);
}
button.link:hover { background: var(--flaeche-2); text-decoration-color: currentColor; }

/* ---------- Felder ---------- */
input, select, textarea {
  font: inherit; font-size: var(--t-m); font-variant-numeric: tabular-nums;
  padding: 6px var(--s2); border: 1px solid var(--rand-stark);
  border-radius: var(--radius); background: var(--flaeche); color: var(--text);
  max-width: 100%; min-height: 32px;
}
input[type="checkbox"], input[type="radio"] {
  min-height: 0; width: 15px; height: 15px; accent-color: var(--akzent); cursor: pointer;
}
input:hover, select:hover, textarea:hover { border-color: var(--text-2); }
/* Platzhalter ist Text: 4,5:1, keine Geisterschrift. Die Beschriftung steht
   ohnehin sichtbar daneben, der Platzhalter ist nur das Beispiel. */
input::placeholder, textarea::placeholder { color: var(--n-500); opacity: 1; }

/* Von Hand gesetzt: das ist ein Zustand, also darf er Farbe haben. */
input.manuell {
  border-color: var(--warn); background: var(--warn-flaeche);
  color: var(--text); font-weight: 600;
}

label { display: flex; flex-direction: column; gap: var(--s1); font-size: var(--t-m); }
label > span { color: var(--text-2); }
label.inline {
  display: inline-flex; flex-direction: row; align-items: center;
  gap: var(--s2); font-size: var(--t-m); cursor: pointer;
}
label.inline input { margin: 0; }

.formular { display: flex; flex-direction: column; gap: var(--s3); max-width: 620px; margin: var(--s4) 0; }
.reihe { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: flex-end; }
.reihe > label { flex: 1 1 150px; }
form.inline { display: inline; margin: 0; }

.leiste {
  display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap;
  margin: var(--s4) 0; padding: var(--s3) var(--s4);
  background: var(--flaeche); border: var(--linie); border-radius: var(--radius);
  font-size: var(--t-m);
}
.leiste > span { color: var(--text-2); }
.leiste .klein { color: var(--text-2); }

/* ---------- Meldungen ---------- */
.meldung {
  padding: var(--s3) var(--s4); border-radius: var(--radius);
  margin-bottom: var(--s4); border: 1px solid; border-left-width: 3px;
  font-size: var(--t-m);
}
.meldung.info    { background: var(--flaeche); border-color: var(--rand); border-left-color: var(--text-2); color: var(--text); }
.meldung.warnung { background: var(--warn-flaeche); border-color: var(--warn-rand); border-left-color: var(--warn); color: var(--text); }
.meldung.fehler  { background: var(--stopp-flaeche); border-color: var(--stopp-rand); border-left-color: var(--stopp); color: var(--text); }
.meldung strong { font-weight: 650; }

/* ---------- Kacheln ---------- */
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
           gap: var(--s2); margin: var(--s4) 0 var(--s5); }
.kachel {
  background: var(--flaeche); border: var(--linie); border-radius: var(--radius);
  padding: var(--s3) var(--s4); display: flex; flex-direction: column; gap: 2px;
}
.kachel > span:first-child {
  font-size: var(--t-xs); color: var(--text-2);
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 550;
}
.kachel strong { font-size: var(--t-xl); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.kachel.gross strong { font-size: var(--t-xxl); }
.kachel .klein { color: var(--text-2); }
.kachel.warnt { border-color: var(--warn-rand); background: var(--warn-flaeche); }
.kachel.stoppt { border-color: var(--stopp-rand); background: var(--stopp-flaeche); }

/* ---------- Abzeichen ---------- */
.abzeichen {
  display: inline-block; font-size: var(--t-xs); padding: 2px var(--s2);
  border-radius: var(--radius-klein); font-weight: 650; border: 1px solid;
  text-transform: uppercase; letter-spacing: 0.05em; vertical-align: 2px;
}
.abzeichen.grau  { background: var(--flaeche-2); color: var(--text-2); border-color: var(--rand); }
.abzeichen.gruen { background: var(--gut-flaeche); color: var(--gut); border-color: var(--gut-rand); }
.abzeichen.gelb  { background: var(--warn-flaeche); color: var(--warn); border-color: var(--warn-rand); }
.abzeichen.blau  { background: var(--akzent); color: var(--auf-akzent); border-color: var(--akzent); }
.abzeichen.rot   { background: var(--stopp-flaeche); color: var(--stopp); border-color: var(--stopp-rand); }

.punkt {
  display: inline-block; min-width: 17px; padding: 0 5px; text-align: center;
  background: var(--warn); color: var(--n-0); border-radius: 999px;
  font-size: var(--t-xs); font-weight: 700;
}
@media (prefers-color-scheme: dark) { .punkt { color: var(--n-25); } }

.empfehlung {
  font-size: var(--t-xs); padding: 2px var(--s2); border-radius: var(--radius-klein);
  white-space: nowrap; border: var(--linie); color: var(--text-2);
}
.empfehlung.stark { background: var(--akzent); color: var(--auf-akzent); border-color: var(--akzent); font-weight: 650; }
.empfehlung.solide { color: var(--text); border-color: var(--rand-stark); }

/* ---------- Tabellen ---------- */
.tabelle {
  overflow: auto; max-height: calc(100vh - 140px);
  background: var(--flaeche);
  border: var(--linie); border-radius: var(--radius); margin-bottom: var(--s4);
}
table.liste { width: 100%; border-collapse: collapse; font-size: var(--t-m); }
table.liste th {
  /* top: 0, nicht 52px. Die Hülle .tabelle scrollt selbst (overflow-x macht
     sie zum Scrollbereich), der Kopf klebt also an ihrer Oberkante, ein
     Versatz schöbe ihn über die erste Zeile. */
  position: sticky; top: 0; z-index: 2;
  background: var(--flaeche-2); color: var(--text-2);
  font-size: var(--t-xs); font-weight: 650; text-transform: uppercase; letter-spacing: 0.06em;
  text-align: left; padding: var(--s2) var(--s3); white-space: nowrap;
  border-bottom: 1px solid var(--rand-stark);
}
table.liste th.r { text-align: right; }
table.liste td { padding: var(--s2) var(--s3); border-bottom: var(--linie); vertical-align: top; }
table.liste tbody tr:last-child td { border-bottom: 0; }
table.liste tbody tr:hover td { background: var(--flaeche-2); }
table.liste .nr { font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
                  font-size: var(--t-s); color: var(--text-2); white-space: nowrap; }
table.liste td.artikel { min-width: 240px; }
table.liste td.r, table.liste td .r { white-space: nowrap; }

/* Gestrichene Zeilen: nicht nur blasser, sondern durchgestrichen. Farbe
   allein darf keine Bedeutung tragen. */
tr.gestrichen td { opacity: 0.55; }
tr.gestrichen td.artikel strong { text-decoration: line-through; }
/* Blockiert: linke Kante plus Klartext in der Zeile, nicht nur ein Farbton. */
tr.blockiert td:first-child { box-shadow: inset 3px 0 0 var(--stopp); }
tr.warnt td { background: var(--warn-flaeche); }
table.gesperrt tbody tr:hover td { background: inherit; }

/* Dünne Datenlage: unter fünf Stück je Seite sind Prozentwerte Rauschen.
   Die Zeile wird zurückgenommen, und die Richtungsfarbe verschwindet,
   ein grünes „+340 %" bei drei verkauften Stück wäre eine Behauptung. */
tr.duenn td { color: var(--text-2); }
tr.duenn .hoch, tr.duenn .runter { color: var(--text-2); font-weight: 400; }

tr.gruppenkopf td {
  background: var(--flaeche-2); border-top: 1px solid var(--rand-stark);
  border-bottom: 1px solid var(--rand-stark);
  font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.06em;
  font-weight: 650; color: var(--text-2); padding: var(--s2) var(--s3);
}
tr.gruppenkopf:hover td { background: var(--flaeche-2); }
.gruppenkopf label.inline { text-transform: none; letter-spacing: 0; color: var(--text); }
.gruppenkopf .klein { text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: var(--s2); }

.bild { width: 40px; height: 40px; object-fit: contain; border-radius: var(--radius-klein);
        background: var(--flaeche-2); display: block; }
.bild.leer { border: 1px dashed var(--rand); padding: 0; }
span.bild.leer { width: 40px; height: 40px; }

/* ---------- Zustandsband ---------- */
.taktung {
  display: grid; grid-template-columns: minmax(200px, 230px) 1fr auto;
  gap: var(--s5); align-items: center;
  background: var(--flaeche); border: var(--linie);
  border-left: 3px solid var(--text-2);
  border-radius: var(--radius); padding: var(--s4) var(--s5); margin-bottom: var(--s4);
}
.taktung.laeuft { border-left-color: var(--gut); }
.taktung.offen  { border-left-color: var(--warn); background: var(--warn-flaeche); }
.taktung-uhr { display: flex; flex-direction: column; gap: 2px; }
.taktung-uhr > span:first-child {
  font-size: var(--t-xs); color: var(--text-2);
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 550;
}
.taktung-uhr .zaehler {
  font-size: var(--t-xxl); font-weight: 600; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.taktung-text p { margin: 0 0 var(--s1); }
.taktung-text p:last-child { margin-bottom: 0; }
.taktung-aktion { display: flex; flex-direction: column; align-items: stretch;
                  gap: var(--s2); text-align: center; }
.taktung-aktion form { margin: 0; }
@media (max-width: 1000px) { .taktung { grid-template-columns: 1fr; } }

.herzschlag { margin-top: var(--s1); font-weight: 550; }
.herzschlag.ok { color: var(--text-2); font-weight: 400; }
.herzschlag.warnung { color: var(--warn); }
.herzschlag.fehler { color: var(--stopp); }

/* ---------- Verwalten und Gefahrenzone ---------- */
.verwalten { margin-bottom: var(--s4); border: var(--linie);
             border-radius: var(--radius); background: var(--flaeche); }
.verwalten > summary { cursor: pointer; padding: var(--s3) var(--s4);
                       color: var(--text-2); font-size: var(--t-m); list-style-position: inside; }
.verwalten > summary:hover { color: var(--text); }
.verwalten[open] > summary { border-bottom: var(--linie); }
.verwalten .formular { padding: var(--s4); margin: 0; max-width: 880px; }
.verwalten .reihe { align-items: flex-end; }

/* Die Ablage unter der Liste: aufgeklappt eine zweite Tabelle, zugeklappt
   eine Zeile. Zugeklappt ist die Voreinstellung, sie wächst nur. */
.ablage { margin: var(--s4) 0; border: var(--linie); border-radius: var(--radius);
          background: var(--flaeche); }
.ablage > summary { cursor: pointer; padding: var(--s3) var(--s4);
                    color: var(--text-2); font-size: var(--t-m); list-style-position: inside; }
.ablage > summary:hover { color: var(--text); }
.ablage[open] > summary { border-bottom: var(--linie); font-weight: 600; color: var(--text); }
.ablage > p { padding: var(--s3) var(--s4) 0; margin: 0; }
.ablage .tabelle { margin: var(--s3) var(--s4); }
.ablage .leiste { margin: 0 var(--s4) var(--s4); }

/* Ein Hinweissatz unter einer Knopfreihe, nicht daneben: daneben wird die
   Leiste zweizeilig und die Knöpfe rutschen auseinander. */
.leiste .breit { flex-basis: 100%; margin-top: var(--s2); }

.gefahrenzone {
  border-top: 1px solid var(--stopp-rand); padding: var(--s3) var(--s4) var(--s4);
  background: var(--stopp-flaeche); border-radius: 0 0 var(--radius) var(--radius);
}
.gefahrenzone h3 { color: var(--stopp); }
.gefahrenzone p { margin: 0; }
.gefahrenzone .leiste { margin-bottom: 0; background: none; border: 0; padding: var(--s3) 0 0; }

/* ---------- Stand gegenüber dem Shop ---------- */
.nachtrag {
  display: inline-block; font-size: var(--t-xs); padding: 1px var(--s2);
  border-radius: var(--radius-klein); border: 1px solid var(--rand);
  color: var(--text-2); white-space: nowrap; font-weight: 550;
}
.nachtrag.neu       { background: var(--gut-flaeche); color: var(--gut); border-color: var(--gut-rand); }
.nachtrag.geaendert { background: var(--warn-flaeche); color: var(--warn); border-color: var(--warn-rand); }
.nachtrag.raus      { background: var(--stopp-flaeche); color: var(--stopp); border-color: var(--stopp-rand); }
.nachtrag.steht     { border-style: dashed; font-weight: 400; }

/* ---------- Kundenansicht ---------- */
.kundenansicht { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
                 gap: var(--s3); margin-bottom: var(--s4); }
.karte { background: var(--flaeche); border: var(--linie); border-radius: var(--radius);
         padding: var(--s4); display: flex; flex-direction: column; gap: var(--s2); }
.karte img { width: 100%; height: 130px; object-fit: contain;
             background: var(--flaeche-2); border-radius: var(--radius-klein); }
.karte h3 { font-size: var(--t-m); margin: 0; font-weight: 550; line-height: 1.35; }
.karte .preise { display: flex; align-items: baseline; gap: var(--s2); margin-top: auto; }
.karte .streich { text-decoration: line-through; color: var(--text-2); font-size: var(--t-m); }
.karte .aktionspreis { font-size: var(--t-l); color: var(--stopp); font-weight: 650; }
.karte .sparen { font-size: var(--t-s); color: var(--gut); font-weight: 600; }

/* ---------- Kommentare ---------- */
.kommentare { margin-top: var(--s6); }
.kommentar { border-left: 2px solid var(--rand-stark); padding: var(--s2) 0 var(--s2) var(--s3);
             margin-bottom: var(--s3); }
.kommentar.erledigt { opacity: 0.55; }
.kommentar.erledigt p { text-decoration: line-through; }
.kommentar .meta { display: flex; align-items: center; gap: var(--s2);
                   font-size: var(--t-s); margin-bottom: 2px; }
.kommentar .meta form { margin: 0; }
.kommentar p { margin: 0; }

/* ---------- Anmeldung ---------- */
.anmelden { max-width: 340px; margin: var(--s7) auto; }
.anmelden h1 { margin-bottom: var(--s5); }
.anmelden form { background: var(--flaeche); border: var(--linie);
                 border-radius: var(--radius); padding: var(--s5);
                 display: flex; flex-direction: column; gap: var(--s3); }
.anmelden input { min-height: 36px; }
.anmelden button { min-height: 36px; margin-top: var(--s1); }

/* ---------- Filter, Briefing, Gründe ---------- */
.filterhuelle { margin-bottom: var(--s4); }
.filterhuelle > summary { cursor: pointer; color: var(--text-2); padding: var(--s2) 0;
                          font-size: var(--t-m); list-style-position: inside; }
.filterhuelle > summary:hover { color: var(--text); }
.filter { background: var(--flaeche); border: var(--linie); border-radius: var(--radius);
          padding: var(--s4); display: flex; flex-direction: column; gap: var(--s3); }
.briefing { background: var(--flaeche); border: var(--linie); border-radius: var(--radius);
            padding: var(--s4); margin-bottom: var(--s4); display: flex;
            flex-direction: column; gap: var(--s2); }
.gruende { display: flex; flex-wrap: wrap; gap: var(--s2); font-size: var(--t-s); color: var(--text-2); }

/* ---------- Diagramme ----------
   Hervorhebungsform, nicht zwei Kategorien: es ist eine Reihe in zwei
   Zuständen: davor und währenddessen. Deshalb kein zweiter Farbton,
   sondern derselbe Wert einmal gedämpft und einmal kräftig. */
.diagramm { margin: 0 0 var(--s4); }
.diagramm svg { width: 100%; height: auto; display: block; }
.diagramm figcaption { margin-top: var(--s2); }

.saeule.davor  { fill: var(--n-300); }
.saeule.aktion { fill: var(--akzent); }
.saeule:hover  { fill: var(--warn); }

.achse { fill: var(--text-2); font-size: 10px; }
.gitter { stroke: var(--rand); stroke-width: 1; }
.bezug { stroke: var(--text-2); stroke-width: 1; opacity: 0.7; }
.bezugstext { font-size: 10px; }
.trenner { stroke: var(--rand-stark); stroke-width: 1; }
.textgrund { fill: var(--flaeche); opacity: 0.92; }

svg.mini { width: 104px; height: 26px; display: block; }
svg.mini .davor  { fill: var(--n-300); }
svg.mini .aktion { fill: var(--akzent); }
span.mini.leer { display: block; width: 104px; height: 26px; }

.fortschritt { height: 5px; border-radius: 999px; background: var(--flaeche-2);
               border: var(--linie); overflow: hidden; margin-top: var(--s1); }
.fortschritt-fuellung { height: 100%; background: var(--akzent); }

/* Sprungmarke: für die Tastatur der kürzeste Weg an der Navigation vorbei.
   Sichtbar wird sie erst, wenn sie den Fokus hat. */
.sprungmarke {
  position: absolute; left: var(--s2); top: -48px; z-index: 50;
  background: var(--akzent); color: var(--auf-akzent);
  padding: var(--s2) var(--s4); border-radius: var(--radius);
  text-decoration: none; font-size: var(--t-m); font-weight: 550;
  transition: top 160ms ease;
}
.sprungmarke:focus { top: var(--s2); }

/* ---------- Preise speichern ----------
   Die Leiste klebt unten: in einer langen Liste soll der Knopf erreichbar
   bleiben, ohne dass man ans Ende scrollt. Ruhig, solange nichts offen ist. */
/*
 * Die Tabelle scrollt in ihrem eigenen Kasten (damit der Kopf kleben kann).
 * Wer darin nach unten tippt, scrollt deshalb NICHT die Seite, und bekam
 * den Speichern-Knopf nie zu sehen, der unterhalb der Tabelle steht. Genau
 * daran ist am 08.10.2026 eine ganze Preisrunde verloren gegangen.
 *
 * Sobald etwas offen ist, klebt die Leiste deshalb am unteren Rand des
 * Fensters statt an der Seite. Ist nichts offen, steht sie ruhig im Fluss
 * und nimmt keinen Platz weg.
 */
.speicherleiste {
  position: sticky; bottom: var(--s3); z-index: 10;
  display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap;
  margin: calc(var(--s4) * -1 + var(--s2)) 0 var(--s4);
  padding: var(--s3) var(--s4);
  background: var(--flaeche); border: var(--linie); border-radius: var(--radius);
  font-size: var(--t-m);
  transition: border-color 160ms ease;
}
.speicherleiste.aktiv, .speicherleiste.fehlerhaft {
  position: fixed; bottom: var(--s4); left: 50%; transform: translateX(-50%);
  width: min(1100px, calc(100% - var(--s6))); z-index: 40;
  border-width: 2px;
}
.speicherleiste.aktiv { border-color: var(--warn); background: var(--warn-flaeche); }
.speicherleiste .stand.offen { color: var(--warn); font-weight: 600; }

input.preisfeld.geaendert {
  border-color: var(--warn); box-shadow: 0 0 0 1px var(--warn);
  background: var(--flaeche); font-weight: 600;
}

input.preisfeld.unbrauchbar {
  border-color: var(--stopp); box-shadow: 0 0 0 1px var(--stopp); font-weight: 600;
}
.speicherleiste.fehlerhaft { border-color: var(--stopp); background: var(--stopp-flaeche); }
.speicherleiste .stand.kaputt { color: var(--stopp); font-weight: 650; }

/* Zielfaktor und Notiz stehen im selben Speichern-Formular wie die Preise. */
input.faktorfeld { margin-top: var(--s1); text-align: right; }
/* Die Notiz.
 *
 * In der Zeile eine schmale Zeile, beim Hineinklicken ein Feld, in dem man
 * den ganzen Text sieht. Es legt sich dabei über die Nachbarspalten, statt
 * die Tabellenzeile höher zu machen: sonst springt beim Klick die halbe
 * Liste, und man verliert die Zeile, an der man gerade war.
 */
.notizzelle { position: relative; min-width: 150px; }
textarea.notizfeld {
  width: 100%; min-width: 120px; resize: none; overflow: hidden;
  height: 26px; line-height: 1.4; padding: var(--s1) var(--s2);
  font: var(--t-m)/1.4 inherit; font-family: inherit;
  white-space: nowrap; text-overflow: ellipsis;
}
/* `.offen` setzt das Javascript beim Hineinklicken; `:focus` bleibt als
   Rückfall, falls das Javascript nicht läuft. */
textarea.notizfeld:focus,
textarea.notizfeld.offen {
  position: absolute; right: 0; top: 0; z-index: 20;
  width: 340px; height: 7.5em; max-width: 60vw;
  white-space: pre-wrap; overflow: auto; resize: vertical;
  background: var(--flaeche); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

/* Hing vor der Kampagne im Sale: danach gehört er dorthin zurück. */
.sale-marke {
  display: inline-block; font-size: var(--t-xs); padding: 0 var(--s1);
  border: 1px solid var(--warn-rand); background: var(--warn-flaeche);
  color: var(--warn); border-radius: var(--radius-klein); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
}

/* Produktnamen vollständig. Sie brechen um, statt abgeschnitten zu werden,
   ein Name wie „Power Rack SQMIZE® POWER PACK NE700A mit Latzugstation"
   endete vorher mitten im Wort, und man musste raten, welche Variante
   gemeint ist. Der title zeigt ihn zusätzlich beim Überfahren. */
table.liste td.artikel { min-width: 230px; max-width: 340px; }
table.liste td.artikel strong { font-weight: 600; line-height: 1.3; display: block; }

/* ---------- Ladeanzeige ----------
   Ein Balken am oberen Rand, solange etwas unterwegs ist. Jede Seite kommt
   vom Server, manche Abfragen gehen bis nach Shopware, ohne Anzeige klickt
   man ein zweites Mal oder hält das Werkzeug für hängengeblieben. */
.ladebalken {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100;
  pointer-events: none; opacity: 0; transition: opacity 120ms ease;
  background: transparent;
}
.ladebalken.laeuft { opacity: 1; }
.ladebalken.laeuft::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 0;
  width: 35%; background: var(--akzent); border-radius: 0 2px 2px 0;
  animation: ladebalken-lauf 1.1s cubic-bezier(.45,.05,.55,.95) infinite;
}
@keyframes ladebalken-lauf {
  0%   { left: -35%; width: 35%; }
  55%  { left: 40%;  width: 45%; }
  100% { left: 100%; width: 25%; }
}
/* Bei reduzierter Bewegung bleibt ein ruhiger Streifen stehen: sichtbar,
   aber ohne Lauf. */
@media (prefers-reduced-motion: reduce) {
  .ladebalken.laeuft::before { left: 0; width: 100%; animation: none; opacity: .5; }
}

/* Der Mauszeiger sagt dasselbe noch einmal, ohne Aufhebens. */
html.wartet, html.wartet * { cursor: progress !important; }

/* Ein laufender Knopf bleibt lesbar und zeigt, dass er gedrückt wurde. */
button[data-laeuft] { opacity: 1; background: var(--flaeche-2); border-color: var(--text-2); color: var(--text-2); }
button[data-laeuft].haupt { background: var(--n-700); border-color: var(--n-700); color: var(--auf-akzent); }

/* ---------- Startseite: Bereich wählen ---------- */
.bereichswahl { max-width: 760px; margin: var(--s7) auto; }
.bereichswahl h1 { margin-bottom: var(--s5); }
.bereichskarten {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s4); margin-bottom: var(--s5);
}
.bereichskarte {
  display: flex; flex-direction: column; gap: var(--s2);
  padding: var(--s5); border: var(--linie); border-radius: var(--radius);
  background: var(--flaeche); text-decoration: none; color: var(--text);
}
.bereichskarte:hover { border-color: var(--akzent); background: var(--flaeche-2); }
.bereichskarte strong { font-size: var(--t-l); font-weight: 650; letter-spacing: -0.01em; }

/* Ausnahmen bleiben in der Liste sichtbar, treten aber zurück: sie sind
   entschieden und brauchen keine Aufmerksamkeit mehr. */
tr.ausnahme > td { background: var(--flaeche-2); }

/* Steht auf der Streichliste. Nicht als Warnung gestaltet: es ist eine
   Entscheidung, die schon gefallen ist, und beim Bepreisen eine Chance:
   hier darf der Preis weiter runter. */
.streich-marke {
  display: inline-block; margin-left: var(--s2);
  font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0 5px; border-radius: var(--radius-klein);
  background: var(--stopp-flaeche); color: var(--stopp);
  border: 1px solid var(--stopp-rand);
  text-decoration: none; vertical-align: 1px;
}
a.streich-marke:hover { background: var(--stopp); color: var(--flaeche); }

/* Eine Tabelle innerhalb einer Meldung: die Bestellpositionen zum Zulauf.
   Kein eigener Scrollbereich, sie hat nie viele Zeilen. */
.meldung .liste.schmal { margin-top: var(--s3); background: transparent; }
.meldung .liste.schmal th,
.meldung .liste.schmal td { padding: var(--s1) var(--s3) var(--s1) 0; font-size: var(--t-m); }
.meldung .liste.schmal thead th { border-bottom: var(--linie); }

/* Vormerkung: Artikel, die über mehrere Suchvorgänge gesammelt werden.
   Als Marken, nicht als Tabelle: es ist ein Zwischenstand, keine Liste,
   mit der man arbeitet. */
.vormerkung {
  margin: var(--s4) 0; padding: var(--s3) var(--s4);
  border: var(--linie); border-left: 3px solid var(--akzent);
  border-radius: var(--radius); background: var(--flaeche-2);
}
.vormerkung .leiste { margin: 0 0 var(--s2); padding: 0; border: 0; background: none; }
.marken { display: flex; flex-wrap: wrap; gap: var(--s2); }
.marke-artikel {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: 2px var(--s2) 2px var(--s3); font-size: var(--t-m);
  background: var(--flaeche); border: var(--linie); border-radius: 999px;
}
.marke-artikel.drin { opacity: 0.6; }
.marke-artikel code { background: none; border: 0; padding: 0; font-weight: 550; }
.marke-artikel a {
  text-decoration: none; color: var(--text-2); font-size: var(--t-basis);
  line-height: 1; padding: 0 2px; border-radius: var(--radius-klein);
}
.marke-artikel a:hover { color: var(--stopp); background: var(--stopp-flaeche); }

/* Der Rechenweg: aufgeklappt beantwortet er die Frage „nach welcher Strategie
   wird gerechnet?", zugeklappt steht er niemandem im Weg. */
.rechenweg { margin: var(--s4) 0; border: var(--linie); border-radius: var(--radius); }
.rechenweg > summary {
  cursor: pointer; padding: var(--s3) var(--s4);
  color: var(--text-2); font-size: var(--t-m);
}
.rechenweg > summary:hover { color: var(--text); }
.rechenweg[open] > summary { border-bottom: var(--linie); }
.rechenweg ol { margin: 0; padding: var(--s4) var(--s4) var(--s2) var(--s7); max-width: 900px; }
.rechenweg li { margin-bottom: var(--s2); }
.rechenweg > p { padding: 0 var(--s4) var(--s4); max-width: 900px; margin: 0; }

/* Preise im Stapel setzen. Abgesetzt wie die Vormerkung, weil beides
   Eingriffe sind, die viele Zeilen auf einmal treffen. */
.stapelpreise {
  margin: var(--s4) 0; padding: var(--s3) var(--s4);
  border: var(--linie); border-left: 3px solid var(--akzent);
  border-radius: var(--radius); background: var(--flaeche-2);
}
.stapelpreise .leiste { margin: 0; padding: 0; border: 0; background: none; flex-wrap: wrap; }
.stapelpreise > p { margin: var(--s2) 0 0; max-width: 900px; }

/* Eine Vorgabe, die für diesen einen Artikel gilt. Kein Zustand, sondern
   eine Ansage: deshalb Rahmen statt Fläche. */
.vorgabe {
  display: inline-block; padding: 0 5px; border-radius: var(--radius-klein);
  border: 1px solid var(--rand-stark); color: var(--text);
  font-size: var(--t-xs); font-weight: 550;
}

/* Der Preisblock: zwei Stufen untereinander, die Rangfolge steht in den
   Überschriften. Vorher waren es zwei gleich aussehende Leisten, und dass
   die untere die obere schlägt, stand nur im zugeklappten Rechenweg. */
.preisblock { margin: var(--s4) 0; border: var(--linie); border-radius: var(--radius);
  background: var(--flaeche); overflow: hidden; }
.preisblock .stufe { padding: var(--s4); margin: 0; border: 0; background: none; }
.preisblock .stufe + .stufe { border-top: var(--linie); }
.preisblock h3 { font-size: var(--t-m); font-weight: 650; margin: 0 0 var(--s1); }
.preisblock .hinweis { font-size: var(--t-m); color: var(--text-2); margin: 0 0 var(--s3); }
/* Die Grundlage als Raster: links die Beschriftung, rechts die Felder.
   Als Flex-Zeile zerfiel die Streichlistenzeile, weil ihr Label zwischen
   den anderen Feldern schrumpfte und senkrecht umbrach. */
.grundraster {
  display: grid; grid-template-columns: max-content 1fr;
  gap: var(--s3) var(--s4); align-items: center;
}
.grundraster .wahl,
.grundraster .bez { font-size: var(--t-m); white-space: nowrap; }
/* `flex-direction` ausdrücklich: die allgemeine label-Regel weiter oben
   stellt Formularbeschriftungen auf Spalte, sonst stünde der Punkt über
   dem Text statt daneben. */
.grundraster .wahl { display: inline-flex; flex-direction: row; align-items: center;
  gap: var(--s2); cursor: pointer; }
/* Ohne das klebt der Browser-Außenabstand des Knopfes noch dazu, und der
   Punkt steht einen halben Zentimeter neben seiner Beschriftung. */
.grundraster .wahl input,
.vorgabezeile .wahl input[type="radio"] { margin: 0; }
.grundraster .wert { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); font-size: var(--t-m); }
/* Feste Breiten statt size: die Platzhalter („wie oben", „z. B. 3,2") müssen
   hineinpassen, sonst steht dort „wie" und „z. B. 3,". */
.grundraster input:not([type="radio"]) { width: 104px; }

/* Die Vorgabezeile passt in eine Reihe, braucht aber Luft. */
.vorgabezeile { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); }
.vorgabezeile .wahl { display: inline-flex; flex-direction: row; align-items: center;
  gap: var(--s2); font-size: var(--t-m); white-space: nowrap; cursor: pointer; }
.vorgabezeile input:not([type="radio"]) { width: 104px; }
.vorgabezeile .trenner { width: 1px; align-self: stretch; min-height: 20px;
  background: var(--rand); margin: 0 var(--s1); }

/* Knöpfe stehen in ihrer eigenen Zeile, nicht zwischen den Feldern. */
.preisblock .abschluss {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3);
  margin-top: var(--s4); padding-top: var(--s3); border-top: 1px dashed var(--rand);
}

@media (max-width: 680px) {
  .grundraster { grid-template-columns: 1fr; gap: var(--s1) 0; }
  .grundraster .wert { margin-bottom: var(--s2); }
}
.preisblock .stand {
  padding: var(--s3) var(--s4); background: var(--flaeche-2); border-top: var(--linie);
  font-size: var(--t-m); color: var(--text-2); display: flex; flex-wrap: wrap; gap: var(--s4);
}
.preisblock .stand strong { color: var(--text); font-weight: 600; }
.warntext { color: var(--warn); }
.warntext strong { color: var(--warn); }

/* Sortierbare Spaltenköpfe. Der Pfeil zeigt die Richtung, die gerade gilt,
   nicht die, die ein Klick herstellt: sonst liest man die Tabelle falsch. */
th.sortierbar { padding: 0; }
th.sortierbar a {
  display: flex; align-items: center; justify-content: flex-start; gap: var(--s1);
  padding: var(--s2) var(--s3); text-decoration: none; color: inherit;
  font: inherit; white-space: nowrap;
}
th.sortierbar.r a { justify-content: flex-end; }
th.sortierbar a:hover { color: var(--text); background: var(--akzent-hell); }
th.sortierbar.an a { color: var(--text); }
th.sortierbar .pfeil { font-size: var(--t-s); line-height: 1; }

/* Die eine Suche. Sie grenzt beim Tippen die Liste darunter ein und sucht
   auf Knopfdruck im ganzen Sortiment. Zwei getrennte Felder dafür waren
   eines zu viel. */
.suchleiste { border-left: 3px solid var(--rand-stark); }
.suchleiste input[type="search"] { font-size: var(--t-m); }
.suchleiste #listenstand { min-width: 0; }

/* ===========================================================================
   Analyse
   ---------------------------------------------------------------------------
   Dieselbe Regel wie überall: Farbe heißt Zustand. B2B sicher, wahrscheinlich
   und B2C sind keine Zustände, sondern Stufen einer Einschätzung, deshalb
   drei Töne derselben Neutralleiter, dunkel für sicher. Grün und Rot gibt es
   hier nur an der Veränderung zum Vergleich.
   =========================================================================== */

.zeitleiste { background: var(--flaeche); border: var(--linie); border-radius: var(--radius);
              padding: var(--s3) var(--s4); margin-bottom: var(--s4);
              display: flex; flex-direction: column; gap: var(--s2); }
.zeitleiste p { margin: 0; }
.zeitwahl { display: flex; flex-wrap: wrap; gap: var(--s1); }
.zeitwahl a, .reiter a {
  font-size: var(--t-s); padding: 3px var(--s2); border: var(--linie); border-radius: var(--radius-klein);
  text-decoration: none; color: var(--text-2); background: var(--flaeche);
}
.zeitwahl a:hover, .reiter a:hover { color: var(--text); border-color: var(--rand-stark); }
.zeitwahl a.an, .reiter a.an { background: var(--akzent); color: var(--auf-akzent); border-color: var(--akzent); }
.zeitform { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); font-size: var(--t-s); }
.zeitform label { display: flex; align-items: center; gap: var(--s1); color: var(--text-2); }
.zeitform input[type="date"] { width: auto; }
.zeitform select { width: auto; }
/* Die beiden Felder für einen frei gewählten Vergleich gehören in dieselbe
   Zeile wie der Rest, sonst wächst die Leiste beim Umschalten auf drei
   Zeilen und der Knopf wandert nach unten weg. Ein gesetztes display
   schlägt das hidden-Attribut, deshalb steht es darunter noch einmal. */
.zeitform .vergleichsfelder { display: flex; align-items: center; gap: var(--s2) var(--s3); }
.zeitform .vergleichsfelder[hidden] { display: none; }
.reiter { display: flex; flex-wrap: wrap; gap: var(--s1); margin: 0 0 var(--s3); }

.b2bstreifen {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr) auto; gap: var(--s4); align-items: center;
  background: var(--flaeche); border: var(--linie); border-radius: var(--radius);
  padding: var(--s3) var(--s4); margin-bottom: var(--s5);
}
.b2bstreifen > div { display: flex; flex-direction: column; gap: 3px; }
.b2bstreifen strong { font-size: var(--t-l); font-weight: 600; }
@media (max-width: 1000px) { .b2bstreifen { grid-template-columns: 1fr 1fr; } }

.raster2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 0 var(--s5); }
@media (max-width: 680px) { .raster2 { grid-template-columns: 1fr; } }

/* Kurze Tabellen ohne eigenen Rollbereich. */
.tabelle.flach { max-height: none; }
table.liste tfoot td { padding: var(--s2) var(--s3); border-top: 1px solid var(--rand-stark); }
table.liste tbody tr.an td { background: var(--akzent-hell); }

.stapel.sicher, .feld.sicher { fill: var(--n-900); background: var(--n-900); }
.stapel.wahrscheinlich, .feld.wahrscheinlich { fill: var(--n-500); background: var(--n-500); }
.stapel.b2c, .feld.b2c { fill: var(--n-200); background: var(--n-200); }
.stapel.gesamt, .feld.gesamt { fill: var(--n-700); background: var(--n-700); }
.treffer { fill: transparent; }
g:hover > .treffer { fill: var(--flaeche-2); }
.vergleichslinie { fill: none; stroke: var(--text); stroke-width: 1.5; stroke-dasharray: 4 3; }
.feld.linie { background: none; border-top: 2px dashed var(--text); height: 0; align-self: center; }

.legende { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); color: var(--text-2); margin-top: var(--s2); }
.legende span { display: inline-flex; align-items: center; gap: 6px; }
.legende .feld { display: inline-block; width: 12px; height: 10px; border-radius: 2px; }
.legende .feld.linie { width: 14px; border-radius: 0; }

.anteilbalken, .spannebalken {
  display: inline-flex; width: 56px; height: 6px; background: var(--flaeche-2);
  border-radius: 3px; overflow: hidden; vertical-align: middle; margin-right: var(--s1);
}
.anteilbalken > span { background: var(--n-700); }
.spannebalken { width: 100%; max-width: 220px; height: 8px; margin: 2px 0; }
.spannebalken .sicher { background: var(--n-900); }
.spannebalken .wahrscheinlich { background: var(--n-500); }

/* Knapper oder leerer Bestand in einer Kampagne.
   Eine Kampagne entsteht Wochen vor dem Start, und in der Zwischenzeit wird
   weiter verkauft: was bei der Auswahl zwölfmal dastand, sind am Starttag
   vielleicht zwei Stück. Die Zeile bekommt deshalb eine rote Kante und eine
   leichte Tönung; das Ausrufezeichen und das Wort „knapp" in der
   Bestandsspalte tragen dieselbe Aussage ohne Farbe. */
tr.knapp td { background: var(--stopp-flaeche); }
tr.knapp td:first-child { box-shadow: inset 3px 0 0 var(--stopp); }
