/* express one Versandportal — Gestaltung
 *
 * Die Marke gehört zum Produkt: Der Versender meldet sich bei seinem
 * Dienstleister an, nicht bei einer Software. Farben, Wortmarke und Tonfall
 * sind deshalb die von express one und keine eigenen.
 *
 * Blau #0078B3 trägt Struktur und Beschriftung, Grün #74AC25 ist die
 * Handlungsfarbe. Grün bleibt knapp — wenn alles grün ist, ist nichts mehr
 * die Handlung. Der schmale grüne Streifen über der Kopfzeile ist aus dem
 * Webauftritt übernommen; er ist dort das Erste, was man sieht.
 *
 * Leitgedanke: Die Oberfläche soll ruhig sein und an den zwei, drei Stellen
 * laut werden, an denen etwas zu entscheiden ist. Ein Versandportal wird den
 * ganzen Tag benutzt; was blinkt, nervt am Nachmittag.
 *
 * Erklärungen stehen als Sprechblase am Begriff (``data-tipp``), nicht als
 * Fließtext daneben. Volumengewicht, Gurtmaß, Abrechnungsgewicht — das sind
 * Begriffe, die der Versender beim ersten Mal nicht kennt und beim zehnten
 * Mal nicht mehr lesen will.
 *
 * Aufbau: Marken → Grundlagen → Bausteine → Buchungsstrecke → Druck.
 */

/* ======================================================= Marken */

:root {
  /* Marke */
  --blau: #0078b3;
  --blau-hell: #2e97cd;
  --blau-dunkel: #005a86;
  --blau-tief: #06374f;
  --blau-blass: #e9f4fa;
  --blau-rand: #c9e3f1;

  --gruen: #74ac25;
  --gruen-hell: #8cc23a;
  --gruen-dunkel: #5b8a1a;
  --gruen-blass: #f1f8e6;
  --gruen-rand: #d5e9b6;

  /* Neutral — leicht ins Blaue gezogen, damit es zur Marke passt */
  --text: #14242e;
  --text-leise: #566a77;
  --text-still: #8398a5;
  --linie: #e1eaf0;
  --linie-stark: #c6d6e0;
  --flaeche: #ffffff;
  --flaeche-leise: #f7fafc;
  --grund: #f2f6f9;
  --grund-tief: #e5edf2;

  /* Signal */
  --warn: #a8690a;
  --warn-blass: #fdf5e6;
  --warn-rand: #f2dfb6;
  --fehler: #b93a2c;
  --fehler-blass: #fdefed;
  --fehler-rand: #f1cac4;

  /* Maße */
  --radius: 12px;
  --radius-klein: 8px;
  --radius-winzig: 5px;

  --schatten-flach: 0 1px 2px rgba(6, 55, 79, .05);
  --schatten: 0 1px 2px rgba(6, 55, 79, .05), 0 4px 14px rgba(6, 55, 79, .05);
  --schatten-hoch: 0 2px 6px rgba(6, 55, 79, .08), 0 14px 36px rgba(6, 55, 79, .12);
  --ring: 0 0 0 3px rgba(0, 120, 179, .22);

  --tempo: .14s;
}

/* Wer Bewegung abgestellt hat, bekommt keine. */
@media (prefers-reduced-motion: reduce) {
  :root { --tempo: 0s; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* =================================================== Grundlagen */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* Jede eigene display-Regel schlägt die Vorgabe von [hidden] — ein
   Hinweiskasten mit display:flex blieb dadurch als leerer Streifen stehen,
   obwohl er versteckt war. Einmal zentral durchsetzen statt an jeder
   Komponente daran denken. */
[hidden] { display: none !important; }

body {
  margin: 0;
  /* Bewusst die Schriften des Systems: Ein deutsches B2B-Portal soll keine
   * Schriftdateien von einem fremden Server nachladen — das ist schneller,
   * spart eine Abhängigkeit und erspart die Datenschutzdiskussion, die
   * eingebundene Google-Schriften hierzulande verlässlich auslösen. */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--grund);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blau); text-decoration-color: var(--blau-rand); }
a:hover { color: var(--blau-dunkel); text-decoration-color: currentColor; }

/* Ein sichtbarer Fokusring überall — Tastaturbedienung ist kein Sonderfall. */
:focus-visible {
  outline: 2px solid var(--blau);
  outline-offset: 2px;
  border-radius: var(--radius-winzig);
}

h1, h2, h3, h4 {
  color: var(--blau-tief);
  line-height: 1.22;
  margin: 0 0 .5rem;
  font-weight: 700;
  letter-spacing: -.015em;
}
h1 { font-size: 1.7rem; }
h2 { font-size: 1.18rem; }
h3 { font-size: .98rem; }

p { margin: 0 0 .75rem; }
code {
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: .88em;
  background: var(--grund-tief);
  padding: .1em .35em;
  border-radius: var(--radius-winzig);
}

.leise { color: var(--text-leise); }
.sehr-leise { color: var(--text-still); font-size: .84rem; line-height: 1.45; }
.klein { font-size: .86rem; }
.zahl { font-variant-numeric: tabular-nums; }
/* In einer Tabelle wird ein Betrag nie umgebrochen — „162,05“ über der
   Zeile und „€“ darunter liest sich als zwei Zahlen. */
td.zahl, th.zahl { white-space: nowrap; }
.rechts { text-align: right; }
.mitte { text-align: center; }
.nowrap { white-space: nowrap; }

/* ======================================================= Icons */

.icon {
  width: 1em; height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -.125em;
}
.icon.gross { width: 1.25em; height: 1.25em; }
.icon.riesig { width: 2.2rem; height: 2.2rem; stroke-width: 1.4; }

/* ==================================================== Tooltips */

/* Sprechblase am Begriff. Erscheint bei Mauszeiger **und** bei Tastaturfokus;
 * auf Geräten ohne Mauszeiger wird sie beim Antippen gezeigt, weil das
 * Element fokussierbar ist. */
[data-tipp] { position: relative; }
/* Nur ein erklaerter Begriff bekommt die gepunktete Linie. An einem Knopf,
   einem Schild oder der Statuskette sah sie aus wie ein Rendering-Fehler. */
.erklaert[data-tipp], th[data-tipp], label[data-tipp] {
  border-bottom: 1px dotted var(--linie-stark);
  cursor: help;
}
[data-tipp]::after,
[data-tipp]::before {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--tempo) ease, transform var(--tempo) ease;
  pointer-events: none;
  z-index: 60;
}
[data-tipp]::after {
  content: attr(data-tipp);
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translate(-50%, 4px);
  width: max-content;
  max-width: 260px;
  padding: .5rem .65rem;
  background: var(--blau-tief);
  color: #fff;
  font-size: .8rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  text-align: left;
  border-radius: var(--radius-klein);
  box-shadow: var(--schatten-hoch);
  white-space: normal;
}
[data-tipp]::before {
  content: "";
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translate(-50%, 4px);
  border: 5px solid transparent;
  border-top-color: var(--blau-tief);
}
[data-tipp]:hover::after, [data-tipp]:hover::before,
[data-tipp]:focus-visible::after, [data-tipp]:focus-visible::before {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* Am linken oder rechten Rand würde die Blase aus dem Bild laufen. */
[data-tipp-pos="links"]::after { left: auto; right: -4px; transform: translate(0, 4px); }
[data-tipp-pos="links"]:hover::after,
[data-tipp-pos="links"]:focus-visible::after { transform: translate(0, 0); }
[data-tipp-pos="rechts"]::after { left: -4px; transform: translate(0, 4px); }
[data-tipp-pos="rechts"]:hover::after,
[data-tipp-pos="rechts"]:focus-visible::after { transform: translate(0, 0); }

/* Das kleine Fragezeichen, das eine Erklärung ankündigt. */
.hilfe {
  display: inline-grid;
  place-items: center;
  width: 15px; height: 15px;
  border: 0;
  padding: 0;
  margin-left: .25rem;
  border-radius: 50%;
  background: var(--grund-tief);
  color: var(--text-leise);
  font-size: .68rem;
  font-weight: 800;
  line-height: 1;
  cursor: help;
  vertical-align: .06em;
}
.hilfe:hover { background: var(--blau-blass); color: var(--blau-dunkel); }
[data-tipp].hilfe { border-bottom: 0; }
/* Fragezeichen oben rechts im Kartenkopf: erklärt die ganze Karte statt
   einer eigenen Spalte mit Fließtext daneben (Import). */
.karte-hilfe { margin-left: auto; display: inline-flex; align-items: center; }

/* =================================================== Wortmarke */

.wortmarke {
  display: inline-flex;
  align-items: baseline;
  gap: .12em;
  font-weight: 300;
  letter-spacing: -.005em;
  line-height: 1;
  color: var(--blau);
  white-space: nowrap;
}
.wortmarke .wm-eins, .wortmarke .wm-zwei { font-weight: 300; }
.wortmarke.hell { color: #fff; }

.wortmarke .wm-globus {
  width: 1em; height: 1em;
  align-self: center;
  margin: 0 .1em;
  flex: none;
}
/* Der Globus trägt eigene Farben und erbt sie nicht: Er bleibt grün, auch
   wenn die Wortmarke weiß auf Blau steht. */
.wortmarke .wm-globus circle { fill: var(--gruen); stroke: none; }
.wortmarke .wm-globus .wm-netz {
  fill: none; stroke: #fff; stroke-width: 1.2;
  stroke-linecap: butt; opacity: .8;
}
.wortmarke .wm-globus .wm-band { fill: #fff; }

/* Der Produktname steht mittig neben dem Globus, abgesetzt durch einen Strich
   in dessen Höhe. */
.wortmarke .wm-zusatz {
  display: inline-flex;
  align-items: center;
  align-self: center;
  height: 1em;
  margin-left: .5em;
  padding-left: .5em;
  border-left: 1px solid currentColor;
  font-size: .66em;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
  opacity: .8;
}

/* Nur für Vorlesewerkzeuge — die Wortmarke ist sonst eine Folge von
   Bruchstücken. */
.nur-vorlesen {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Zweifarbige Überschrift wie im Webauftritt: erstes Wort blau, letztes
   grün. „Express Versand <em>Vergleich</em>“. */
h1 em, h2 em, .zweifarbig em {
  font-style: normal;
  color: var(--gruen-dunkel);
}

/* ======================================================== Gerüst */

/* Der grüne Streifen über allem — das Erste, was man auf express-one.de
   sieht. */
.markenstreifen {
  height: 4px;
  background: linear-gradient(90deg, var(--gruen) 0%, var(--gruen-hell) 100%);
}

/* Links die Seitenleiste mit allen Bereichen, rechts Kopfzeile, Bänder,
   Seite und Fuß. Die Leiste steht fest, während die Seite rollt. */
.geruest {
  --leiste-breite: 244px;
  display: grid;
  grid-template-columns: var(--leiste-breite) minmax(0, 1fr);
  min-height: calc(100vh - 4px);
}
.spalte-rechts { min-width: 0; display: flex; flex-direction: column; }
.spalte-rechts > main { flex: 1 0 auto; width: 100%; box-sizing: border-box; }

.marke { display: flex; align-items: center; text-decoration: none; flex: none; }
.marke:hover .wortmarke { color: var(--blau-dunkel); }

/* ------------------------------------------------- Seitenleiste */

.leiste {
  position: sticky; top: 0; height: 100vh; box-sizing: border-box;
  overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column;
  padding: 0 .7rem 1.4rem;
  background: var(--flaeche);
  border-right: 1px solid var(--linie);
  z-index: 45;
}
/* Die Wortmarke steht so hoch wie die Kopfzeile daneben; der Produktname
   rückt unter die Marke, damit er in die Leiste passt. */
.leiste > .marke {
  min-height: 62px; box-sizing: border-box;
  margin: 0 -.7rem .8rem; padding: .55rem 1.15rem;
  border-bottom: 1px solid var(--linie);
}
.leiste .wortmarke { flex-wrap: wrap; row-gap: .28rem; }
.leiste .wortmarke .wm-zusatz {
  flex-basis: 100%; margin-left: 0; padding-left: 0; border-left: 0;
  height: auto; font-size: .5em; letter-spacing: .16em;
}
.leiste > .buchenknopf { justify-content: center; margin: 0 .1rem .5rem; }

.navi { display: flex; flex-direction: column; gap: .7rem; }
.navi-gruppe { display: flex; flex-direction: column; gap: .08rem; }
.navi-titel {
  padding: .35rem .65rem .25rem;
  font-size: .64rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-still);
}
.navi a {
  position: relative;
  display: flex; align-items: center; gap: .65rem;
  padding: .48rem .65rem;
  border-radius: var(--radius-klein);
  color: var(--text);
  text-decoration: none;
  font-weight: 550;
  font-size: .89rem;
  transition: background var(--tempo) ease, color var(--tempo) ease;
}
.navi a .icon { width: 17px; height: 17px; flex: none; color: var(--text-still); }
.navi a .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navi a:hover { background: var(--flaeche-leise); color: var(--blau-dunkel); }
.navi a:hover .icon { color: var(--blau); }
/* Die aktive Seite trägt den grünen Strich auf der Kante — dieselbe Marke
   wie der Streifen oben. */
.navi a.aktiv { background: var(--blau-blass); color: var(--blau-tief); font-weight: 700; }
.navi a.aktiv .icon { color: var(--blau); }
.navi a.aktiv::before {
  content: ""; position: absolute; left: -.7rem; top: .4rem; bottom: .4rem;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--gruen);
}
/* Unterpunkt: eine Seite, die zu einem Bereich gehört (Vergleich unter
   Verträge) — eingerückt, ohne eigenes Symbol, mit einem Haken zum Eltern. */
.navi a.unterpunkt { padding-left: 2.55rem; font-size: .84rem; font-weight: 500; color: var(--text-leise); }
.navi a.unterpunkt::after {
  content: ""; position: absolute; left: 1.35rem; top: 0; bottom: 50%; width: .7rem;
  border-left: 1.5px solid var(--linie-stark); border-bottom: 1.5px solid var(--linie-stark);
  border-bottom-left-radius: 6px;
}
.navi a.unterpunkt.aktiv { color: var(--blau-tief); font-weight: 650; }
/* Zahl am Punkt: was unterwegs ist (ruhig), was überfällig ist (rot). */
.navi-zahl {
  flex: none; min-width: 1.4rem; padding: .1rem .4rem; box-sizing: border-box;
  border-radius: 99px; text-align: center;
  font-size: .7rem; font-weight: 750; line-height: 1.35;
  background: var(--grund); color: var(--text-leise);
  font-variant-numeric: tabular-nums;
}
.navi-zahl.warn { background: var(--fehler-blass); color: var(--fehler); }

/* ------------------------------------------------------- Kopf */

.kopf {
  background: var(--flaeche);
  border-bottom: 1px solid var(--linie);
  position: sticky;
  top: 0;
  z-index: 40;
}
.kopf-innen {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 62px;
  box-sizing: border-box;
}
/* Die kleine Wortmarke im Kopf gibt es nur, wenn die Leiste eingeklappt ist. */
.kopf .marke.klein { display: none; }

/* Wo bin ich: Gruppe › Bereich. */
.krumen {
  display: flex; align-items: center; gap: .4rem; min-width: 0;
  margin-right: auto;
  font-size: .86rem; color: var(--text-still); white-space: nowrap;
}
.krumen .icon { width: 13px; height: 13px; flex: none; }
.krumen strong { color: var(--blau-tief); font-weight: 700; }
.krumen a { color: var(--blau-dunkel); font-weight: 600; text-decoration: none; }
.krumen a:hover { text-decoration: underline; }

.kopf-rechts { display: flex; align-items: center; gap: .7rem; flex: none; }

/* Die Hauptaktion: der einzige farbige Knopf, oben in der Leiste. */
.buchenknopf { padding: .55rem .85rem; font-size: .88rem; }
.buchenknopf.aktiv { background: var(--gruen-dunkel); }

/* ------------------------------------------------ Benutzermenü */

.benutzermenue { position: relative; flex: none; }
.benutzermenue > summary {
  display: flex; align-items: center; gap: .55rem;
  padding: .25rem .5rem .25rem .25rem;
  border: 1px solid var(--linie); border-radius: 99px;
  background: var(--flaeche); cursor: pointer; list-style: none;
  transition: background var(--tempo) ease, border-color var(--tempo) ease;
}
.benutzermenue > summary::-webkit-details-marker { display: none; }
.benutzermenue > summary:hover { background: var(--flaeche-leise); border-color: var(--linie-stark); }
.benutzermenue[open] > summary { background: var(--blau-blass); border-color: var(--blau-rand); }

.benutzerbild {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blau) 0%, var(--blau-hell) 100%);
  color: #fff; font-size: .78rem; font-weight: 800; letter-spacing: .02em;
}
.benutzerwort { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.benutzerwort .wer {
  font-size: .84rem; font-weight: 700; color: var(--blau-tief);
  max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.benutzerwort .was {
  font-size: .68rem; color: var(--text-still);
  max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.benutzermenue .klapp-pfeil {
  width: 14px; height: 14px; color: var(--text-still);
  transition: transform var(--tempo) ease;
}
.benutzermenue[open] .klapp-pfeil { transform: rotate(180deg); }

.benutzerklappe {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 270px; padding: .4rem;
  background: var(--flaeche);
  border: 1px solid var(--linie); border-radius: var(--radius);
  box-shadow: var(--schatten-hoch);
  z-index: 60;
  animation: einblenden .14s ease;
}
.benutzerklappe .kopfteil {
  padding: .55rem .65rem .7rem;
  border-bottom: 1px solid var(--linie); margin-bottom: .35rem;
}
.benutzerklappe .kopfteil strong { font-size: .92rem; color: var(--blau-tief); }
.benutzerklappe .gruppe {
  padding: .4rem .65rem .3rem;
  font-size: .64rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-still);
}
.benutzerklappe a {
  display: flex; align-items: center; gap: .55rem;
  padding: .45rem .65rem; border-radius: var(--radius-klein);
  font-size: .88rem; font-weight: 600; color: var(--text); text-decoration: none;
}
.benutzerklappe a .icon { color: var(--text-still); flex: none; }
.benutzerklappe a:hover { background: var(--flaeche-leise); color: var(--blau-dunkel); }
.benutzerklappe a:hover .icon { color: var(--blau); }
.benutzerklappe a.aktiv { background: var(--blau-blass); color: var(--blau-dunkel); }
.benutzerklappe a.aktiv .icon { color: var(--blau); }
.benutzerklappe a.abmelden { color: var(--fehler); }
.benutzerklappe a.abmelden .icon { color: var(--fehler); }
.benutzerklappe a.abmelden:hover { background: var(--fehler-blass); color: var(--fehler); }
.benutzerklappe hr { border: 0; border-top: 1px solid var(--linie); margin: .35rem 0; }

/* Ansicht des Betreibers: zwei Hälften, die gewählte hell abgesetzt. */
.ansichtwahl {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px;
  margin: 0 .5rem .45rem; padding: 3px;
  background: var(--grund); border-radius: 9px;
}
.ansichtwahl button {
  border: 0; background: none; border-radius: 7px; padding: .42rem 0;
  font: inherit; font-size: .8rem; font-weight: 650; color: var(--text-leise); cursor: pointer;
}
.ansichtwahl button:hover:not(.aktiv) { color: var(--blau-dunkel); }
.ansichtwahl button.aktiv { background: var(--flaeche); color: var(--blau-tief); box-shadow: var(--schatten-flach); }

.rollenschild {
  display: inline-block;
  font-size: .66rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; padding: .2rem .5rem; border-radius: 99px;
  background: var(--gruen-blass); color: var(--gruen-dunkel);
  text-decoration: none; white-space: nowrap;
}

/* Menüknopf für schmale Bildschirme */
.menueknopf { display: none; }

/* Unter 1100 px klappt die Leiste ein: Der Menüknopf im Kopf schiebt sie
   als Tafel über den Inhalt, ein Klick daneben schließt sie wieder. */
@media (max-width: 1100px) {
  .geruest { display: block; }
  .kopf-innen { gap: .75rem; padding: 0 1rem; }
  .kopf .marke.klein { display: flex; }
  .menueknopf {
    display: inline-grid; place-items: center;
    width: 38px; height: 38px; flex: none;
    border: 1px solid var(--linie-stark); border-radius: var(--radius-klein);
    background: var(--flaeche); color: var(--blau-dunkel); cursor: pointer;
  }
  .leiste {
    position: fixed; left: 0; top: 0; bottom: 0; height: auto;
    width: var(--leiste-breite); z-index: 70;
    box-shadow: var(--schatten-hoch);
    transform: translateX(-105%); transition: transform var(--tempo) ease;
  }
  body.navi-offen .leiste { transform: none; }
}

@media (max-width: 760px) {
  .krumen { display: none; }
  .kopf .marke.klein { margin-right: auto; }
  .benutzerwort { display: none; }
  .benutzermenue > summary { padding: .25rem; }
  .benutzermenue .klapp-pfeil { display: none; }
  .benutzerklappe { width: min(270px, calc(100vw - 2rem)); }
}

@media (max-width: 700px) {
  .nur-breit { display: none; }
  .stufe { min-width: 92px; font-size: .76rem; padding: .4rem .45rem; gap: .35rem; }
  .stufe .nr { width: 20px; height: 20px; font-size: .72rem; }
}

/* ======================================================= Seite */

.seite { max-width: 1340px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.seite.schmal { max-width: 980px; }

.seitenkopf {
  display: flex; align-items: flex-start; gap: 1rem;
  flex-wrap: wrap; margin-bottom: 1.25rem;
}
.seitenkopf .text { flex: 1 1 320px; min-width: 0; }
.seitenkopf p { margin: 0; color: var(--text-leise); }
.seitenkopf .werkzeuge { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ====================================================== Karten */

.karte {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
}
.karte > h2:first-child, .karte > h3:first-child { margin-top: 0; }
.karte.flach { box-shadow: none; }
.karte.eng { padding: .9rem 1rem; }

.karte-kopf {
  display: flex; align-items: center; gap: .75rem;
  margin: -.1rem 0 1rem; flex-wrap: wrap;
}
.karte-kopf h2, .karte-kopf h3 { margin: 0; }
.karte-kopf .fuellt { flex: 1; }

.raster { display: grid; gap: 1rem; }
.raster.zwei { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.raster.drei { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.raster.vier { grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); }
.raster.haupt-neben { grid-template-columns: minmax(0, 1fr) 350px; align-items: start; }
@media (max-width: 1040px) { .raster.haupt-neben { grid-template-columns: 1fr; } }

.klebrig { position: sticky; top: 76px; }
@media (max-width: 1040px) { .klebrig { position: static; } }

/* ===================================================== Kacheln */

.kachel {
  background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: .95rem 1.05rem;
  box-shadow: var(--schatten);
  display: flex; flex-direction: column; gap: .1rem;
}
.kachel .beschriftung {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--text-still); font-weight: 800;
  display: flex; align-items: center; gap: .3rem;
}
.kachel .wert {
  font-size: 1.6rem; font-weight: 700; color: var(--blau-tief);
  font-variant-numeric: tabular-nums; line-height: 1.15; letter-spacing: -.02em;
}
.kachel .wert.gruen { color: var(--gruen-dunkel); }
/* Der Fuß sitzt unten, damit vier Kacheln nebeneinander eine Linie bilden,
 * auch wenn eine davon zweizeilig beschriftet ist. */
.kachel .fuss { font-size: .8rem; color: var(--text-leise); margin-top: auto; padding-top: .35rem; }

a.kachel { text-decoration: none; color: inherit; transition: border-color var(--tempo) ease, box-shadow var(--tempo) ease; }
a.kachel:hover { border-color: var(--linie-stark); box-shadow: var(--schatten-hoch); }
a.kachel.gewaehlt { border-color: var(--blau); box-shadow: 0 0 0 1px var(--blau), var(--schatten); }

/* ==================================================== Schalter */

.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .45rem;
  padding: .58rem 1.05rem;
  border-radius: var(--radius-klein);
  border: 1px solid transparent;
  background: var(--gruen); color: #fff;
  font: inherit; font-weight: 700; font-size: .92rem;
  text-decoration: none; cursor: pointer;
  box-shadow: var(--schatten-flach);
  transition: background var(--tempo) ease, box-shadow var(--tempo) ease,
              transform var(--tempo) ease;
}
.knopf:hover { background: var(--gruen-dunkel); color: #fff; }
.knopf:active { transform: translateY(1px); }
.knopf:disabled, .knopf[aria-disabled="true"] {
  background: var(--linie-stark); cursor: not-allowed; color: #fff;
  box-shadow: none; transform: none;
}
/* „gross" heißt größer, nicht randlos: Ein Knopf über 1100 px Kartenbreite
   sieht nach unfertigem Layout aus. In schmalen Spalten füllt er dank
   max-width trotzdem die Breite. */
.knopf.gross {
  padding: .78rem 1.6rem; font-size: 1rem;
  width: 100%; max-width: 340px;
}
.knopf.gross.randlos { max-width: none; }
.knopf.blau { background: var(--blau); }
.knopf.blau:hover { background: var(--blau-dunkel); }
.knopf.schlicht {
  background: var(--flaeche); color: var(--blau-dunkel);
  border-color: var(--linie-stark); box-shadow: none;
}
.knopf.schlicht:hover { background: var(--flaeche-leise); color: var(--blau-dunkel); }
.knopf.leer {
  background: transparent; color: var(--text-leise); border-color: transparent;
  box-shadow: none;
}
.knopf.leer:hover { background: var(--grund-tief); color: var(--blau-dunkel); }
.knopf.gefahr { background: var(--flaeche); color: var(--fehler); border-color: var(--fehler-rand); box-shadow: none; }
.knopf.gefahr:hover { background: var(--fehler-blass); color: var(--fehler); }
.knopf.klein { padding: .33rem .65rem; font-size: .83rem; }

.knopfreihe { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* =================================================== Formulare */

label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: .22rem; }
label .optional { font-weight: 400; color: var(--text-still); }
label .pflicht { color: var(--fehler); font-weight: 700; }

input[type="text"], input[type="number"], input[type="email"], input[type="tel"],
input[type="password"], input[type="date"], input[type="search"], select, textarea {
  width: 100%;
  padding: .52rem .65rem;
  border: 1px solid var(--linie-stark);
  border-radius: var(--radius-klein);
  font: inherit; font-size: .93rem;
  background: var(--flaeche); color: var(--text);
  transition: border-color var(--tempo) ease, box-shadow var(--tempo) ease;
}
input:hover:not(:disabled), select:hover:not(:disabled) { border-color: var(--blau-hell); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blau);
  box-shadow: var(--ring);
}
input:disabled, select:disabled {
  background: var(--flaeche-leise); color: var(--text-leise); cursor: not-allowed;
}
input[aria-invalid="true"] { border-color: var(--fehler); background: var(--fehler-blass); }
textarea { min-height: 76px; resize: vertical; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23566a77' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .55rem center;
  background-size: 12px;
  padding-right: 1.8rem;
}

.feld { margin-bottom: .8rem; }
.feld .feldhinweis { font-size: .8rem; color: var(--text-still); margin: .22rem 0 0; }
.feldreihe { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* Das Dateifeld des Browsers lässt sich nicht gestalten — der Knopf darin
   schon. So passt es zu den übrigen Schaltern statt daneben zu stehen. */
input[type="file"] {
  width: 100%; padding: .5rem .65rem;
  border: 1px dashed var(--linie-stark); border-radius: var(--radius-klein);
  background: var(--flaeche-leise); font: inherit; font-size: .9rem;
  color: var(--text-leise); cursor: pointer;
}
input[type="file"]:hover { border-color: var(--blau); background: var(--blau-blass); }
input[type="file"]::file-selector-button {
  margin-right: .7rem; padding: .4rem .8rem;
  border: 1px solid var(--linie-stark); border-radius: var(--radius-winzig);
  background: var(--flaeche); color: var(--blau-dunkel);
  font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer;
}
input[type="file"]::file-selector-button:hover { background: var(--grund-tief); }

/* Einheit im Feld statt daneben — spart eine Zeile und ist eindeutig. */
.mit-einheit { position: relative; }
.mit-einheit input { padding-right: 2.4rem; }
.mit-einheit .einheit {
  position: absolute; right: .6rem; top: 50%; transform: translateY(-50%);
  font-size: .82rem; color: var(--text-still); pointer-events: none;
  font-variant-numeric: tabular-nums;
}

.haken {
  display: flex; align-items: flex-start; gap: .55rem;
  font-weight: 500; font-size: .9rem; margin-bottom: .4rem;
  padding: .45rem .55rem; border-radius: var(--radius-klein);
  border: 1px solid transparent; cursor: pointer;
  transition: background var(--tempo) ease, border-color var(--tempo) ease;
}
.haken:hover { background: var(--flaeche-leise); border-color: var(--linie); }
.haken input { width: auto; margin: .22rem 0 0; flex: none; accent-color: var(--gruen-dunkel); }
.haken:has(input:checked) { background: var(--gruen-blass); border-color: var(--gruen-rand); }

fieldset { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
legend {
  font-weight: 700; color: var(--blau-tief); padding: 0; margin-bottom: .5rem;
  display: flex; align-items: center; gap: .35rem;
}

/* ==================================================== Tabellen */

.tabellenrahmen { overflow-x: auto; border-radius: var(--radius); }
/* Lieber seitwärts schieben als Spalten auf sechs Zeilen quetschen: Unter
   dieser Breite wird eine Sendungszeile unlesbar. */
.tabellenrahmen > table { min-width: 720px; }
.tabellenrahmen.eng > table { min-width: 0; }

table { width: 100%; border-collapse: collapse; font-size: .9rem; }
thead th {
  text-align: left; font-size: .7rem; text-transform: uppercase;
  letter-spacing: .07em; color: var(--text-still); font-weight: 800;
  padding: .5rem .6rem; border-bottom: 1px solid var(--linie-stark);
  white-space: nowrap; background: var(--flaeche);
  position: sticky; top: 0; z-index: 1;
}
tbody td { padding: .6rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background var(--tempo) ease; }
tbody tr:hover { background: var(--flaeche-leise); }
tbody tr.ohne-treffer:hover { background: transparent; }
tfoot td { padding: .55rem .6rem; border-top: 1px solid var(--linie-stark); font-weight: 700; }
table .zahl, table .rechts { text-align: right; font-variant-numeric: tabular-nums; }

/* Zeilenaktionen: Symbolknöpfe, die erst beim Überfahren der Zeile
   hervortreten. Ein rotes „Löschen" auf jeder Zeile schreit den Nutzer an,
   obwohl er meistens etwas anderes will. */
.zeilenaktionen { display: inline-flex; gap: .15rem; white-space: nowrap; }
.zeilenaktionen .knopf { opacity: .55; transition: opacity var(--tempo) ease; }
tr:hover .zeilenaktionen .knopf,
.zeilenaktionen .knopf:focus-visible { opacity: 1; }
.zeilenaktionen .knopf.gefahr:hover { opacity: 1; }

/* ==================================================== Schilder */

.schild {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .74rem; font-weight: 700; padding: .18rem .5rem;
  border-radius: 99px; white-space: nowrap;
  background: var(--grund-tief); color: var(--text-leise);
  border: 1px solid transparent;
}
.schild.blau { background: var(--blau-blass); color: var(--blau-dunkel); border-color: var(--blau-rand); }
.schild.gruen { background: var(--gruen-blass); color: var(--gruen-dunkel); border-color: var(--gruen-rand); }
.schild.grau { background: var(--grund-tief); color: var(--text-leise); }
.schild.rot { background: var(--fehler-blass); color: var(--fehler); border-color: var(--fehler-rand); }
.schild.warn { background: var(--warn-blass); color: var(--warn); border-color: var(--warn-rand); }
/* Standardpreise: kein Vertrag, sondern Maßstab — gestrichelt, nie verwechselt. */
.schild.standard { background: transparent; color: var(--text); border: 1px dashed var(--text-leise); }
a.schild { text-decoration: none; }
a.schild:hover { filter: brightness(.96); }

.punkt { width: 6px; height: 6px; border-radius: 99px; background: currentColor; flex: none; }

/* ==================================================== Hinweise */

.hinweis {
  display: flex; gap: .7rem; align-items: flex-start;
  padding: .75rem .9rem; border-radius: var(--radius-klein);
  font-size: .89rem; margin-bottom: .9rem;
  background: var(--blau-blass); color: var(--blau-tief);
  border: 1px solid var(--blau-rand);
}
.hinweis.warn { background: var(--warn-blass); color: #70470a; border-color: var(--warn-rand); }
.hinweis.fehler { background: var(--fehler-blass); color: #8b2b20; border-color: var(--fehler-rand); }
.hinweis.gruen { background: var(--gruen-blass); color: var(--gruen-dunkel); border-color: var(--gruen-rand); }
.hinweis .icon { margin-top: .12rem; width: 1.1rem; height: 1.1rem; }
.hinweis p:last-child { margin-bottom: 0; }

/* Leerer Zustand — nicht einfach nichts, sondern ein nächster Schritt. */
.leerzustand {
  text-align: center; padding: 2.2rem 1rem; color: var(--text-leise);
}
.leerzustand .icon { color: var(--linie-stark); margin-bottom: .5rem; }
.leerzustand strong { display: block; color: var(--blau-tief); margin-bottom: .2rem; }
.leerzustand p { max-width: 38ch; margin: 0 auto .9rem; font-size: .88rem; }
.leerzustand .sperrgruende { max-width: 52ch; margin: 0 auto .9rem; padding-left: 1.1rem; text-align: left; font-size: .88rem; }
.leerzustand .sperrgruende li { margin-bottom: .25rem; }

/* =============================================== Dienstleister */

.carrier { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .9rem; }
.carrier .kuerzel {
  display: grid; place-items: center;
  min-width: 42px; height: 22px; padding: 0 5px; border-radius: 5px;
  font-size: .66rem; font-weight: 800; letter-spacing: -.01em;
  line-height: 1; white-space: nowrap; color: #fff; flex: none;
}
.carrier .kuerzel.ups { background: #4b2b17; color: #ffb500; }
.carrier .kuerzel.fedex { background: #4d148c; }
.carrier .kuerzel.fedex em { font-style: normal; color: #ff6600; }
.carrier .kuerzel.dhl { background: #ffcc00; color: #d40511; font-style: italic; }

/* ============================================ Buchungsstrecke */

.stufen {
  display: flex; gap: .25rem; margin-bottom: 1.25rem;
  background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: .45rem; box-shadow: var(--schatten);
  overflow-x: auto;
}
.stufe {
  flex: 1 1 0; min-width: 118px;
  display: flex; align-items: center; gap: .5rem;
  padding: .45rem .6rem; border-radius: var(--radius-klein);
  font-size: .82rem; font-weight: 700; color: var(--text-still);
  background: none; border: 0; font-family: inherit; text-align: left;
  transition: background var(--tempo) ease, color var(--tempo) ease;
}
.stufe .nr {
  display: grid; place-items: center; flex: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--grund-tief); color: var(--text-still);
  font-size: .76rem; font-weight: 800;
}
.stufe .nr .icon { width: 13px; height: 13px; stroke-width: 2.6; }
.stufe.erledigt { color: var(--blau-dunkel); cursor: pointer; }
.stufe.erledigt:hover { background: var(--blau-blass); }
.stufe.erledigt .nr { background: var(--blau); color: #fff; }
.stufe.aktiv { color: var(--blau-tief); background: var(--gruen-blass); }
.stufe.aktiv .nr { background: var(--gruen); color: #fff; }

/* Auf dem Telefon passen fünf Beschriftungen nicht nebeneinander. Dort
   bleiben die Nummern stehen und nur die laufende Stufe trägt ihr Wort —
   vorher scrollte die Leiste seitwärts und Stufe 5 lag außerhalb. */
@media (max-width: 640px) {
  .stufen { gap: .2rem; padding: .3rem; overflow-x: visible; }
  .stufe { flex: 0 0 auto; min-width: 0; gap: 0; padding: .4rem .45rem; }
  .stufe .wort { display: none; }
  .stufe.aktiv { flex: 1 1 auto; gap: .45rem; }
  .stufe.aktiv .wort { display: inline; }
}

.strecke-abschnitt { display: none; }
.strecke-abschnitt.offen { display: block; animation: einblenden .22s ease; }
@keyframes einblenden { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* „Ihre Sendung“: die Schritte der Buchung als kurze Leiste mit ihrem Stand.
   Der Schritt, der links offen ist, ist grün hinterlegt; die übrigen tragen
   „ändern“. Darunter Preis und Buchen — bearbeitet wird links, nicht hier. */
.nb-kasse h3 { margin-bottom: .55rem; }
.nb-vor {
  display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em;
  font-weight: 800; color: var(--text-still); margin-bottom: .25rem;
}
.nb-kasse select { width: 100%; }
.nb-kasse.laedt .nb-summe strong { opacity: .45; transition: opacity .15s; }
.nb-schritte { margin-top: .5rem; }
.nb-schritt {
  position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr);
  column-gap: .65rem; padding: .55rem .5rem .7rem; margin: 0 -.5rem;
  border-radius: var(--radius-klein);
}
.nb-schritt:not(:last-child)::before {
  content: ""; position: absolute; left: calc(.5rem + 10px); top: 2.05rem; bottom: -.15rem;
  border-left: 2px solid var(--linie);
}
.nb-schritt .nr {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--grund-tief); color: var(--text-still); font-size: .76rem; font-weight: 800;
  position: relative; z-index: 1; margin-top: .05rem;
}
.nb-schritt .nr .icon { width: 13px; height: 13px; stroke-width: 2.6; }
.nb-schritt.erledigt .nr { background: var(--blau); color: #fff; }
.nb-schritt.aktiv .nr { background: var(--gruen); color: #fff; }
.nb-schritt.hier { background: var(--gruen-blass); }
.nb-kopf { display: flex; align-items: baseline; gap: .5rem; min-height: 22px; }
.nb-kopf .t { flex: 1; font-size: .82rem; font-weight: 700; color: var(--text-still); }
.nb-schritt.erledigt .nb-kopf .t { color: var(--blau-dunkel); }
.nb-schritt.aktiv .nb-kopf .t, .nb-schritt.hier .nb-kopf .t { color: var(--blau-tief); }
.nb-kopf .hier-wort { font-size: .72rem; font-weight: 700; color: var(--gruen-dunkel); }
.nb-wert { font-size: .86rem; margin-top: .15rem; overflow-wrap: anywhere; }
.nb-wert strong { color: var(--blau-tief); }
.nb-wert .schild { margin-left: .25rem; }
.nb-unter { display: flex; gap: .5rem; margin-top: .3rem; font-size: .82rem; }
.nb-unter .t {
  width: 4.4rem; flex: none; font-size: .7rem; text-transform: uppercase; letter-spacing: .07em;
  font-weight: 800; color: var(--text-still); padding-top: .1rem;
}
button.nb-aend {
  border: 0; background: none; color: var(--blau); font: 600 .78rem/1 inherit; font-family: inherit;
  cursor: pointer; padding: .2rem; flex: none;
}
button.nb-aend:hover { text-decoration: underline; }
.nb-grund { color: var(--gruen-dunkel); display: flex; align-items: center; gap: .25rem; }
.nb-grund .icon { width: .85rem; height: .85rem; }
.nb-summe { display: flex; justify-content: space-between; align-items: baseline; margin-top: .15rem; }
.nb-summe strong { font-size: 1.45rem; letter-spacing: -.02em; color: var(--blau-tief); }
.nb-kasse .knopf.gross { width: 100%; justify-content: center; margin-top: .7rem; }
.nb-kasse .hinweis { margin: .7rem 0 0; }
/* Warnung als eine Zeile, Einzelheiten in der Sprechblase */
.nb-warn {
  display: flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 700;
  color: var(--warn); margin: .2rem 0 .3rem;
}
.nb-warn > .icon { width: 15px; height: 15px; flex: none; }
.nb-warn .nb-tipp { display: inline-grid; place-items: center; color: var(--text-still); cursor: help; }
.nb-warn .nb-tipp .icon { width: 14px; height: 14px; }
.nb-warn .nb-aend { margin-left: auto; }
/* Warum „Buchen“ noch gesperrt ist — direkt unter dem Knopf. */
.nb-sperre {
  display: flex; align-items: flex-start; gap: .35rem; margin: .5rem 0 0;
  font-size: .8rem; line-height: 1.35; color: var(--warn);
}
.nb-sperre > .icon { width: 14px; height: 14px; flex: none; margin-top: .1rem; }
.nb-check {
  display: flex; align-items: flex-start; gap: .45rem; font-size: .82rem; font-weight: 500;
  color: var(--text); margin: 0 0 .7rem; cursor: pointer;
}
.nb-check input { width: auto; margin: .15rem 0 0; accent-color: var(--gruen-dunkel); }

/* Packstückzeilen */
.packstueck-zeile {
  display: grid;
  grid-template-columns: 1.25fr .85fr .85fr .85fr .9fr .7fr .95fr auto;
  gap: .45rem; align-items: end;
  padding: .55rem; margin-bottom: .4rem;
  border: 1px solid var(--linie); border-radius: var(--radius-klein);
  background: var(--flaeche-leise);
}
.packstueck-zeile label { font-size: .74rem; color: var(--text-leise); }
.packstueck-zeile input, .packstueck-zeile select { background: var(--flaeche); }
@media (max-width: 900px) {
  .packstueck-zeile { grid-template-columns: repeat(2, 1fr); }
  .packstueck-zeile .loeschen { grid-column: 2; justify-self: end; }
}
.packstueck-zeile .loeschen {
  background: none; border: 0; color: var(--text-still);
  cursor: pointer; padding: .4rem; line-height: 1; border-radius: var(--radius-winzig);
}
.packstueck-zeile .loeschen:hover { color: var(--fehler); background: var(--fehler-blass); }

.art-waehler { display: flex; gap: .4rem; margin-bottom: .9rem; flex-wrap: wrap; }
.art-waehler button {
  flex: 1 1 130px;
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .7rem .5rem; border: 1px solid var(--linie-stark);
  background: var(--flaeche); border-radius: var(--radius-klein);
  font: inherit; font-weight: 700; font-size: .9rem; color: var(--text-leise);
  cursor: pointer; transition: all var(--tempo) ease;
}
.art-waehler button:hover { border-color: var(--blau-hell); color: var(--blau-dunkel); }
.art-waehler button[aria-pressed="true"] {
  border-color: var(--blau); background: var(--blau-blass); color: var(--blau-dunkel);
  box-shadow: inset 0 0 0 1px var(--blau);
}

/* Angebotskarten */
.angebot {
  border: 1px solid var(--linie); border-radius: var(--radius);
  background: var(--flaeche); margin-bottom: .6rem; overflow: hidden;
  transition: border-color var(--tempo) ease, box-shadow var(--tempo) ease;
}
.angebot:hover { border-color: var(--linie-stark); box-shadow: var(--schatten); }
.angebot.empfohlen { border-color: var(--gruen-rand); }
.angebot.gewaehlt { border-color: var(--gruen); box-shadow: 0 0 0 1px var(--gruen), var(--schatten); }

.band {
  padding: .3rem 1rem; font-size: .74rem; font-weight: 800;
  letter-spacing: .02em;
  background: var(--gruen-blass); color: var(--gruen-dunkel);
  border-bottom: 1px solid var(--gruen-rand);
  display: flex; gap: .4rem; align-items: center; flex-wrap: wrap;
}
.band.blau { background: var(--blau-blass); color: var(--blau-dunkel); border-bottom-color: var(--blau-rand); }

.angebot-kopf {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto auto;
  gap: .9rem; align-items: center; padding: .85rem 1rem;
}
@media (max-width: 760px) {
  .angebot-kopf { grid-template-columns: auto 1fr; }
  .angebot-kopf .angebot-preis { grid-column: 2; text-align: left; }
  .angebot-kopf .waehlen { grid-column: 1 / -1; }
  .angebot-kopf .waehlen .knopf { width: 100%; }
}
.angebot-kopf .titel {
  font-weight: 700; color: var(--blau-tief); font-size: 1rem;
  display: flex; align-items: center; gap: .4rem; flex-wrap: wrap;
}
.angebot-kopf .laufzeit {
  font-size: .85rem; color: var(--text-leise);
  display: flex; align-items: center; gap: .35rem; margin-top: .1rem;
}
.angebot-preis {
  text-align: right; font-size: 1.32rem; font-weight: 700;
  color: var(--blau-tief); font-variant-numeric: tabular-nums;
  line-height: 1.15; letter-spacing: -.02em;
}
.angebot-preis small { display: block; font-size: .7rem; font-weight: 500; color: var(--text-still); letter-spacing: 0; }
.angebot .einkaufszeile {
  font-size: .78rem; color: var(--text-still); margin-top: .2rem;
  display: flex; gap: .5rem; flex-wrap: wrap;
}

.rechenweg { border-top: 1px solid var(--linie); background: var(--flaeche-leise); padding: .8rem 1rem; }
.rechenweg table { font-size: .85rem; }
.rechenweg thead th { background: transparent; position: static; }
.rechenweg tbody td { padding: .32rem .4rem; border-bottom: 1px dashed var(--linie); }
.rechenweg tbody tr:hover { background: transparent; }
.rechenweg tfoot td { padding: .45rem .4rem; }

details.aufklapp > summary {
  cursor: pointer; font-size: .84rem; font-weight: 600; color: var(--blau);
  padding: .45rem 1rem; list-style: none; border-top: 1px solid var(--linie);
  display: flex; align-items: center; gap: .35rem;
}
details.aufklapp > summary::-webkit-details-marker { display: none; }
details.aufklapp > summary:hover { background: var(--flaeche-leise); }
details.aufklapp > summary .klapp-pfeil { transition: transform var(--tempo) ease; }
details.aufklapp[open] > summary .klapp-pfeil { transform: rotate(180deg); }

/* ================================================= Zeitstrahl */

.zeitstrahl { list-style: none; padding: 0; margin: 0; }
.zeitstrahl li {
  position: relative; padding: 0 0 1.15rem 1.65rem;
  border-left: 2px solid var(--linie); margin-left: 5px;
}
.zeitstrahl li:last-child { border-left-color: transparent; padding-bottom: 0; }
.zeitstrahl li::before {
  content: ""; position: absolute; left: -7px; top: .3rem;
  width: 12px; height: 12px; border-radius: 99px;
  background: var(--flaeche); border: 2px solid var(--linie-stark);
}
.zeitstrahl li.erledigt::before { background: var(--blau); border-color: var(--blau); }
.zeitstrahl li.ziel::before { background: var(--gruen); border-color: var(--gruen); }
.zeitstrahl li.storno::before { background: var(--fehler); border-color: var(--fehler); }
.zeitstrahl li.offen { opacity: .62; }
.zeitstrahl .wann { font-size: .76rem; color: var(--text-still); font-variant-numeric: tabular-nums; }
.zeitstrahl .was { font-weight: 700; color: var(--blau-tief); }
.zeitstrahl .wo { font-size: .85rem; color: var(--text-leise); }

/* Fortschritt in der Liste: beschriftete Stufen statt nackter Punkte. */
.kette { display: inline-flex; gap: 3px; align-items: center; }
.kette i {
  display: block; height: 5px; width: 15px; border-radius: 99px;
  background: var(--grund-tief); font-style: normal;
}
.kette i.an { background: var(--blau); }
.kette i.ziel { background: var(--gruen); }
.kette.storno i { background: var(--fehler-rand); }

/* ============================================= Kundenseite */

/* Der Weg zurück. Eine Kundenseite erreicht man aus der Betreibersicht —
   ohne Spur dorthin landet man im Kundenkonto und weiß nicht mehr, wie man
   herauskommt. */
.brotkrume {
  display: flex; align-items: center; gap: .3rem; flex-wrap: wrap;
  margin-bottom: .35rem;
  font-size: .78rem; color: var(--text-still);
}
.brotkrume .icon { width: 11px; height: 11px; opacity: .6; }
.brotkrume a { color: var(--text-leise); text-decoration: none; font-weight: 600; }
.brotkrume a:hover { color: var(--blau-dunkel); text-decoration: underline; }

/* Zweispaltige Merkmalslisten in der Seitenspalte. */
table.paare { width: 100%; font-size: .85rem; }
table.paare td { padding: .35rem 0; border-bottom: 1px solid var(--linie); vertical-align: top; }
table.paare tr:last-child td { border-bottom: 0; }
table.paare td:first-child { color: var(--text-leise); }
table.paare td.rechts { text-align: right; font-weight: 600; color: var(--blau-tief); }

/* ================================================ Arbeitsband */

/* Der Betreiber bucht für einen Kunden. Das steht sichtbar über der Arbeit,
   nicht als Zustand in einem Menü — ein Band, das man liest, statt eines
   Auswahlfelds, das man vergisst. */
.arbeitsband {
  background: var(--blau-blass);
  border-bottom: 1px solid var(--blau-rand);
  color: var(--blau-tief);
  font-size: .84rem;
}
.arbeitsband .innen {
  max-width: 1340px; margin: 0 auto; padding: .5rem 1.25rem;
  display: flex; align-items: center; gap: .5rem;
}
.arbeitsband .icon { width: 15px; height: 15px; flex: none; opacity: .75; }
.arbeitsband .fuellt { flex: 1; }
.arbeitsband a { font-weight: 700; white-space: nowrap; margin-left: .9rem; }
.arbeitsband .sehr-leise { color: var(--text-leise); }
@media (max-width: 640px) {
  .arbeitsband .sehr-leise { display: none; }
}
.arbeitsband.kundenansicht { background: var(--gruen-blass); color: var(--gruen-dunkel); border-bottom-color: var(--linie); }
.arbeitsband .bandknopf {
  border: 0; background: none; cursor: pointer; padding: 0; margin-left: .9rem;
  font: inherit; font-weight: 700; color: inherit; text-decoration: underline;
  white-space: nowrap;
}

/* ================================================== Ersparnis */

/* Die Zahl, wegen der der Kunde hier bucht. Sie steht einmal groß und
   daneben als Verlauf — eine Summe allein beantwortet „lohnt sich das?“
   nicht, ein Verlauf ohne Summe beantwortet „wie viel denn?“ nicht. */
.kachel.heraus {
  border-color: var(--gruen-rand);
  background: linear-gradient(180deg, var(--gruen-blass) 0%, var(--flaeche) 62%);
}

.ersparnisschild {
  display: inline-flex; align-items: center; gap: .25rem;
  margin-top: .3rem; padding: .16rem .45rem;
  border-radius: 99px; border: 1px solid var(--gruen-rand);
  background: var(--gruen-blass); color: var(--gruen-dunkel);
  font-size: .72rem; font-weight: 800; white-space: nowrap;
}
.ersparnisschild .icon { width: 12px; height: 12px; }

.ersparniszeile-klein {
  display: flex; align-items: flex-start; gap: .45rem;
  margin-top: .7rem; padding: .55rem .65rem;
  border: 1px solid var(--gruen-rand); border-radius: var(--radius-klein);
  background: var(--gruen-blass);
  font-size: .82rem; color: var(--gruen-dunkel);
}
.ersparniszeile-klein .icon { width: 15px; height: 15px; margin-top: .1rem; flex: none; }
.ersparniszeile-klein .sehr-leise { color: var(--text-leise); font-weight: 500; }

.ersparniszeile {
  display: grid; grid-template-columns: minmax(200px, 250px) minmax(0, 1fr);
  gap: 1.2rem; align-items: center;
}
@media (max-width: 760px) {
  .ersparniszeile { grid-template-columns: 1fr; }
}
.ersparniszeile .grosszahl .wert {
  display: block;
  font-size: 2.3rem; font-weight: 800; letter-spacing: -.02em;
  color: var(--gruen-dunkel); line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.ersparniszeile .grosszahl .dazu {
  display: block; margin-top: .35rem;
  font-size: .82rem; color: var(--text-leise); line-height: 1.45;
}
.ersparniskarte .diagrammteil { min-width: 0; }

/* =================================================== Diagramme */

/* Gezeichnet wird mit Inline-SVG; die Geometrie kommt aus ``diagramme.py``.
   Hier steht nur, wie es aussieht — und zwei Regeln, die mehr sind als
   Aussehen: Gestapelte Abschnitte tragen zwischen sich eine Lücke, und
   jedes Diagramm hat darunter dieselben Zahlen als Tabelle. Beides,
   damit das Bild auch ohne Farbunterscheidung lesbar bleibt. */

.verlauf {
  display: block; width: 100%; height: auto;
  margin-top: .3rem;
  overflow: visible;
}
.verlauf .gitter { stroke: var(--linie); stroke-width: 1; }
.verlauf .achse {
  fill: var(--text-still); font-size: 11px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.verlauf .wertlabel {
  fill: var(--blau-tief); font-size: 11.5px; font-weight: 800;
  font-variant-numeric: tabular-nums;
}
/* Die Reihen tragen Entitätsfarben, keine Rangfarben: Einkauf bleibt blau,
   auch wenn er einmal die kleinere Fläche ist. */
.verlauf .seg-ek, .verlauf .seg-vk { fill: var(--blau); }
.verlauf .seg-marge { fill: var(--gruen-dunkel); }
.verlauf .seg-ersparnis { fill: var(--gruen-dunkel); }
.verlauf .saeule:hover .seg { fill-opacity: .82; }

.legende {
  display: flex; flex-wrap: wrap; gap: .25rem 1.1rem;
  margin-top: .5rem; padding-left: 52px;
  font-size: .78rem; color: var(--text-leise);
}
.legende .eintrag { display: inline-flex; align-items: center; gap: .4rem; }
.legende i, .anteilsfeld .beschriftung i {
  width: 10px; height: 10px; border-radius: 3px; display: inline-block;
}
.punkt-ek, .punkt-vk, .punkt-inland { background: var(--blau); }
.punkt-marge, .punkt-ersparnis { background: var(--gruen-dunkel); }
.punkt-eu { background: var(--blau-hell); }
.punkt-drittland { background: var(--gruen-dunkel); }

/* Anteilsband: ein Balken, drei Abschnitte, 2 px Luft dazwischen. */
.anteilsband {
  display: flex; gap: 2px; height: 18px; border-radius: 99px;
  overflow: hidden; background: var(--grund-tief);
}
.anteilsband .stueck { height: 100%; }
.anteilsband .stueck-inland { background: var(--blau); }
.anteilsband .stueck-eu { background: var(--blau-hell); }
.anteilsband .stueck-drittland { background: var(--gruen-dunkel); }

.anteilsfeld {
  border: 1px solid var(--linie); border-radius: var(--radius-klein);
  padding: .6rem .7rem; background: var(--flaeche-leise);
}
.anteilsfeld .beschriftung {
  display: flex; align-items: center; gap: .4rem;
  font-size: .7rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-leise);
}
.anteilsfeld .wert {
  font-size: 1.15rem; font-weight: 800; color: var(--blau-tief);
  margin-top: .15rem;
}
.anteilsfeld .fuss { font-size: .74rem; color: var(--text-still); }

/* Die Zeitraumwahl: eine Zeile über allem, nicht je Diagramm eine. */
.filterleiste {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: .7rem;
  margin-bottom: 1.1rem; padding: .85rem 1rem;
}
.filterleiste .feld { margin: 0; min-width: 150px; }
.filterleiste .feld label { font-size: .68rem; }
.filterleiste > .knopf { margin-left: auto; }

/* ================================================== Balkenmaß */

.balken { background: var(--grund-tief); border-radius: 99px; height: 7px; overflow: hidden; }
.balken > i { display: block; height: 100%; background: var(--blau); border-radius: 99px; transition: width .3s ease; }
.balken > i.gruen { background: var(--gruen); }

/* =================================================== Anmeldung */

.anmeldeseite {
  min-height: 100vh; display: grid; place-items: center; padding: 1.5rem;
  /* Das Blau des Auftritts, nach unten ins Grün laufend — dieselbe
     Reihenfolge wie auf der Website. */
  background:
    radial-gradient(1100px 600px at 12% -15%, rgba(0, 120, 179, .55), transparent 62%),
    radial-gradient(900px 600px at 105% 115%, rgba(116, 172, 37, .5), transparent 60%),
    linear-gradient(165deg, #0a6d9e 0%, #2a93c4 45%, #6aa93a 100%);
}
.anmeldeblock { width: 100%; max-width: 430px; }
.anmeldeblock .kopfzeile {
  text-align: center; margin-bottom: 1.1rem; color: #fff;
}
.anmeldeblock .kopfzeile .heim { text-decoration: none; display: inline-flex; }
.anmeldeblock .kopfzeile .claim {
  margin-top: .5rem; font-size: 1.05rem; font-weight: 500;
  opacity: .92; letter-spacing: .01em;
}
.anmeldekarte {
  width: 100%; background: var(--flaeche);
  border-radius: 16px; box-shadow: var(--schatten-hoch); padding: 1.8rem;
}
.anmeldefuss {
  margin-top: 1rem; text-align: center; color: rgba(255, 255, 255, .9);
  font-size: .8rem; line-height: 1.6;
}
.anmeldefuss a { color: #fff; }

/* ======================================================== Fuß */

/* Der Fuß trägt die Marke, nicht nur eine Zeile Kleingedrucktes: Grünband
   wie im Webauftritt, darin Firmierung und Durchwahl. */
footer.fuss {
  margin-top: 2.5rem;
  background: var(--gruen);
  color: #fff;
  font-size: .82rem;
}
.fuss-innen {
  max-width: 1340px; margin: 0 auto; padding: 1.5rem 1.25rem;
  display: flex; gap: 2rem; flex-wrap: wrap; align-items: flex-start;
  justify-content: space-between;
}
footer.fuss a { color: #fff; text-decoration-color: rgba(255,255,255,.5); }
footer.fuss .spalte { line-height: 1.6; }
footer.fuss .spalte strong { display: block; margin-bottom: .2rem; }
footer.fuss .klein-weiss { opacity: .85; font-size: .76rem; }
.fuss-unten {
  border-top: 1px solid rgba(255, 255, 255, .25);
  padding: .7rem 1.25rem; text-align: center;
  font-size: .72rem; opacity: .9;
}

/* =================================================== Attrappe */

/* Der Prototyp-Hinweis muss bleiben, darf aber nicht das Lauteste auf dem
   Bildschirm sein: schmaler Streifen in gedecktem Ton statt Warnbalken. */
.attrappenband {
  background: var(--flaeche-leise); border-bottom: 1px solid var(--linie);
  color: var(--text-leise); font-size: .74rem; padding: .3rem 1rem;
  font-weight: 600; letter-spacing: .01em;
  display: flex; align-items: center; justify-content: center; gap: .4rem;
}
.attrappenband .icon { width: 13px; height: 13px; color: #c9a24a; }

/* ====================================================== Druck */

@media print {
  .kopf, .leiste, .fuss, .attrappenband, .knopfreihe, .werkzeuge, .stufen,
  .menueknopf { display: none !important; }
  .geruest { display: block; }
  body { background: #fff; }
  .karte { box-shadow: none; border-color: #999; break-inside: avoid; }
  .seite { padding: 0; max-width: none; }
  [data-tipp]::after, [data-tipp]::before { display: none; }
  [data-tipp] { border-bottom: 0; }
  a { text-decoration: none; color: inherit; }
}


/* Anmeldung über Google und Apple */
.anmeldewege { display: grid; gap: .55rem; }
/* „oder“ zwischen Passwort und den Anbietern: eine Linie mit dem Wort darin. */
.anmeldetrenner {
  display: flex; align-items: center; gap: .8rem; margin: 1.2rem 0 1rem;
  color: var(--text-still); font-size: .8rem;
}
.anmeldetrenner::before, .anmeldetrenner::after {
  content: ""; flex: 1; height: 1px; background: var(--linie);
}
.anbieterknopf {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  width: 100%; padding: .7rem 1rem; font: inherit; font-weight: 600;
  color: #1f2933; background: #fff; border: 1px solid var(--linie);
  border-radius: 8px; cursor: pointer;
}
.anbieterknopf:hover { background: #f5f7f9; }
.anbieterknopf:disabled { opacity: .6; cursor: wait; }
.anbieterknopf svg { width: 18px; height: 18px; flex: none; }

/* ---- Neuer Kunde: Onboarding-Maske -------------------------------------- */
.onboarding { max-width: 860px; }
.onboarding section { padding: .2rem 0 1.1rem; border-bottom: 1px solid var(--linie); margin-bottom: 1.1rem; }
.onboarding section:last-of-type { border-bottom: 0; }
.onboarding h2 { display: flex; align-items: center; gap: .55rem; font-size: 1.05rem; margin: 0 0 .8rem; }
.schrittnr {
  display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--blau-blass); color: var(--blau-dunkel); font-size: .85rem; font-weight: 700;
  border: 1px solid var(--blau-rand);
}
@media (max-width: 640px) { .onboarding .feld[style*="span 2"] { grid-column: auto !important; } }

/* ---- Zugänge und Einladungen auf der Kundenseite ------------------------ */
.einladeform { display: grid; gap: .6rem; grid-template-columns: 2fr 1.4fr 1.2fr auto; align-items: end; margin-top: .9rem; }
.einladeform .feld { margin: 0; }
.einladeform.team { grid-template-columns: 2fr 1.6fr auto; }
@media (max-width: 760px) { .einladeform, .einladeform.team { grid-template-columns: 1fr; } }
.onboarding > section > .feldhinweis { font-size: .8rem; color: var(--text-still); margin: .35rem 0 0; }

/* Stornierte Sendung: Betrag bleibt lesbar, zählt aber sichtbar nicht. */
.storno-betrag, .storno-betrag strong { text-decoration: line-through; color: var(--text-leise) !important; font-weight: 400; }

/* ===================================================== Fenster (Pop-up) */
/* Anlegen, Einladen, Ändern: immer ein Knopf oben rechts und ein Fenster
   davor — nie ein Formular, das neben der Liste mitläuft. */

dialog.fenster {
  border: 1px solid var(--linie); border-radius: var(--radius);
  box-shadow: var(--schatten-hoch); padding: 0; color: var(--text);
  background: var(--flaeche);
  width: min(560px, calc(100vw - 2rem)); max-height: calc(100vh - 3rem);
  overflow: auto;
}
dialog.fenster.breit { width: min(860px, calc(100vw - 2rem)); }
dialog.fenster::backdrop { background: rgba(6, 55, 79, .38); backdrop-filter: blur(1.5px); }
dialog.fenster[open] { animation: fenster-auf .16s ease-out; }
@keyframes fenster-auf { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
.fenster-kopf {
  display: flex; align-items: flex-start; gap: .75rem; justify-content: space-between;
  padding: 1rem 1.25rem .8rem; border-bottom: 1px solid var(--linie);
  position: sticky; top: 0; background: var(--flaeche); z-index: 1;
}
.fenster-kopf h2 { margin: 0; font-size: 1.12rem; }
.fenster-kopf p { margin: .15rem 0 0; }
.fenster-rumpf { padding: 1rem 1.25rem 1.15rem; }
.fenster-rumpf > form > section + section { border-top: 1px solid var(--linie); margin-top: 1rem; padding-top: .9rem; }
.fenster-rumpf h3 { margin: 0 0 .6rem; font-size: .95rem; }
.fenster-fuss {
  display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap;
  margin: 1.1rem -1.25rem -1.15rem; padding: .8rem 1.25rem;
  border-top: 1px solid var(--linie); background: var(--flaeche-leise);
  position: sticky; bottom: -1.15rem;
}
.fenster-fuss .links { margin-right: auto; }
.fenster-abschnitt { border-top: 1px solid var(--linie); margin-top: 1.1rem; padding-top: .9rem; }
.fenster-abschnitt h3 { display: flex; align-items: center; gap: .35rem; }
@media (max-width: 560px) {
  dialog.fenster, dialog.fenster.breit { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; margin: 0; }
}

/* Was gerade angelegt wurde, leuchtet kurz in der Liste auf. */
tr.zeile-neu > td { animation: zeile-neu 2.4s ease-out; }
tr.zeile-neu > td:first-child { box-shadow: inset 3px 0 0 var(--gruen); }
@keyframes zeile-neu { 0%, 35% { background: var(--gruen-blass); } 100% { background: transparent; } }
.schild.neu { background: var(--gruen); color: #fff; border-color: var(--gruen); }
tr.zeile-aktuell > td { background: var(--blau-blass); }

/* ===================================================== Einführung */

.beispielband { background: var(--blau); color: #fff; font-size: .8rem; }
.beispielband .icon { color: #fff; }
.beispielband .bandknopf {
  border: 1px solid rgba(255,255,255,.6); background: none; color: #fff; cursor: pointer;
  font: inherit; font-weight: 700; padding: .05rem .55rem; border-radius: 999px;
}
.beispielband .bandknopf:hover { background: rgba(255,255,255,.15); }

dialog.tour {
  position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden;
}
dialog.tour::backdrop { background: transparent; }
dialog.tour.ohne-ziel { background: rgba(6, 55, 79, .5); }
.tour-licht {
  position: absolute; border-radius: 10px; pointer-events: none;
  box-shadow: 0 0 0 4px rgba(116, 172, 37, .9), 0 0 0 9999px rgba(6, 55, 79, .5);
  transition: top .25s ease, left .25s ease, width .25s ease, height .25s ease;
}
dialog.tour.ohne-ziel .tour-licht { display: none; }
.tour-karte {
  position: absolute; width: min(380px, calc(100vw - 24px));
  background: var(--flaeche); color: var(--text); border-radius: var(--radius);
  box-shadow: var(--schatten-hoch); border: 1px solid var(--linie);
  transition: top .25s ease, left .25s ease;
}
.tour-karte.gross { width: min(620px, calc(100vw - 24px)); }
.tour-kopf { display: flex; align-items: center; gap: .5rem; padding: .85rem 1rem 0; }
.tour-kopf .zaehler { font-size: .75rem; color: var(--text-still); font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.tour-kopf .fuellt { flex: 1; }
.tour-rumpf { padding: .4rem 1rem .9rem; }
.tour-rumpf h2 { margin: 0 0 .35rem; font-size: 1.08rem; }
.tour-rumpf p { margin: 0; color: var(--text-leise); line-height: 1.5; }
.tour-rumpf .hinweis { margin: .7rem 0 0; }
.tour-fuss { display: flex; gap: .5rem; align-items: center; padding: .7rem 1rem; border-top: 1px solid var(--linie); background: var(--flaeche-leise); border-radius: 0 0 var(--radius) var(--radius); }
.tour-fuss .fuellt { flex: 1; }
.tour-punkte { display: flex; gap: 4px; }
.tour-punkte i { width: 7px; height: 7px; border-radius: 50%; background: var(--linie-stark); }
.tour-punkte i.an { background: var(--blau); }
.tour-band { background: linear-gradient(135deg, var(--blau), var(--blau-tief)); color: #fff; padding: 1.1rem 1.25rem; border-radius: var(--radius) var(--radius) 0 0; }
.tour-band h2 { margin: 0; font-size: 1.25rem; color: #fff; }
.tour-band p { margin: .3rem 0 0; color: rgba(255,255,255,.85); font-size: .9rem; }
.tour-kapitel { list-style: none; margin: 0; padding: .5rem; max-height: min(52vh, 460px); overflow: auto; }
.tour-kapitel button {
  width: 100%; display: flex; gap: .75rem; align-items: center; text-align: left;
  background: none; border: 1px solid transparent; border-radius: var(--radius-klein);
  padding: .6rem .7rem; cursor: pointer; font: inherit; color: inherit;
}
.tour-kapitel button:hover, .tour-kapitel button:focus-visible { background: var(--blau-blass); border-color: var(--blau-rand); outline: none; }
.tour-kapitel .nr {
  flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blau-blass); color: var(--blau-dunkel);
}
.tour-kapitel .erledigt .nr { background: var(--gruen); color: #fff; }
.tour-kapitel strong { display: block; font-size: .93rem; }
.tour-kapitel span.zeile { display: block; font-size: .8rem; color: var(--text-leise); }
.tour-kapitel .dauer { margin-left: auto; font-size: .75rem; color: var(--text-still); white-space: nowrap; }
@keyframes tour-anstoss { 0%, 100% { transform: none; } 30% { transform: translateX(-5px); } 60% { transform: translateX(5px); } }
.tour-karte.anstoss { animation: tour-anstoss .3s ease; }
@media (max-width: 640px) {
  .tour-karte { left: 12px !important; right: 12px; bottom: 12px; top: auto !important; width: auto; }
}

/* Übersicht des Betreibers: was auf ihn wartet. */
ul.aufgaben { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
ul.aufgaben a {
  display: grid; grid-template-columns: 2.2rem 1fr auto; align-items: center; gap: .6rem;
  padding: .55rem .65rem; border: 1px solid var(--linie); border-radius: 10px;
  color: inherit; text-decoration: none; background: var(--flaeche);
}
ul.aufgaben a:hover { border-color: var(--blau-rand); }
ul.aufgaben strong { display: block; font-size: .9rem; }
ul.aufgaben .sehr-leise { display: block; font-size: .78rem; }
ul.aufgaben .zahl {
  display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 8px;
  font-weight: 700; background: var(--blau-blass); color: var(--blau-dunkel);
}
ul.aufgaben li.warn .zahl { background: var(--warn-blass); color: var(--warn); }
ul.aufgaben li.rot .zahl { background: var(--fehler-blass); color: var(--fehler); }
ul.aufgaben .icon { width: 1rem; height: 1rem; opacity: .5; }

/* ===================================== Buchung: Adressen und Vorgaben */

/* Der Absender als fertige Adresse mit einem Knopf daneben — in der Buchung
   wie im Profil. Ein leeres Formular an dieser Stelle hieße, jeden Tag
   dieselbe Adresse zu bestätigen. */
.absenderkarte {
  display: flex; gap: .8rem; align-items: flex-start; justify-content: space-between;
  padding: .7rem .8rem; border: 1px solid var(--linie);
  border-radius: var(--radius-klein); background: var(--flaeche-leise);
}
.absenderkarte > :first-child { min-width: 0; line-height: 1.5; }
.absenderkarte .knopf { flex: none; }
.adressblock { line-height: 1.5; }

/* Das große Auswahlfeld für Adressen. Zugeklappt zeigt es die gewählte
   Adresse in voller Länge — nicht eine Zeile „Hauptlager — 20539 Hamburg“,
   an der niemand prüfen kann, ob es die richtige ist. Aufgeklappt stehen
   alle zur Wahl, ganz unten der Weg zu einer neuen. Ein <details>, damit es
   auch ohne Skript auf- und zugeht. */
.adresswahl { position: relative; }
.adresswahl > summary {
  list-style: none; display: flex; align-items: center; gap: .8rem;
  padding: .75rem .85rem; cursor: pointer; user-select: none;
  border: 1px solid var(--linie-stark); border-radius: var(--radius-klein);
  background: var(--flaeche);
  transition: border-color var(--tempo) ease, box-shadow var(--tempo) ease;
}
.adresswahl > summary::-webkit-details-marker { display: none; }
.adresswahl > summary:hover { border-color: var(--blau-hell); }
.adresswahl > summary:focus-visible { outline: none; border-color: var(--blau); box-shadow: var(--ring); }
.adresswahl[open] > summary { border-color: var(--blau); box-shadow: var(--ring); }
.adresswahl .bild {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; flex: none;
  border-radius: 10px; background: var(--blau-blass); color: var(--blau-dunkel);
}
.adresswahl .bild .icon { width: 1.3rem; height: 1.3rem; }
.adresswahl .gewaehlt { flex: 1; min-width: 0; display: grid; gap: .15rem; }
.adresswahl .kopfzeile { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.adresswahl .kopfzeile strong { font-size: 1rem; color: var(--blau-tief); }
.adresswahl .kopfzeile .schild .icon { width: .75rem; height: .75rem; }
.adresswahl .anschrift { display: grid; font-size: .86rem; line-height: 1.45; color: var(--text-leise); }
.adresswahl .anschrift > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adresswahl .pfeil {
  flex: none; width: 1.1rem; height: 1.1rem; color: var(--text-still);
  transition: transform var(--tempo) ease;
}
.adresswahl[open] .pfeil { transform: rotate(180deg); color: var(--blau); }

/* Adresssuche beim Eintippen: die Vorschläge unter dem Straßenfeld. */
.sucht-adresse { position: relative; }
.adressvorschlaege {
  position: absolute; z-index: 45; left: 0; right: 0; top: calc(100% + 4px);
  min-width: min(300px, 86vw);
  max-height: min(340px, 50vh); overflow-y: auto;
  list-style: none; margin: 0; padding: .3rem;
  background: var(--flaeche); border: 1px solid var(--linie-stark);
  border-radius: var(--radius-klein); box-shadow: var(--schatten-hoch);
  animation: einblenden .14s ease;
}
.adressvorschlaege[hidden] { display: none; }
/* Solange gesucht wird: ein kleiner Kreisel am rechten Rand des Feldes. */
input[data-adresssuche].sucht {
  padding-right: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%23c6d6e0' stroke-width='3'/%3E%3Cpath d='M12 3a9 9 0 0 1 9 9' fill='none' stroke='%230078b3' stroke-width='3' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='.8s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center; background-size: 1rem;
}
.adressvorschlaege li[role="option"] {
  display: grid; gap: .05rem; padding: .5rem .65rem;
  border-radius: 6px; cursor: pointer;
}
.adressvorschlaege li[role="option"] + li[role="option"] { margin-top: 1px; }
.adressvorschlaege li.aktiv { background: var(--blau-blass); }
.adressvorschlaege strong { font-size: .92rem; font-weight: 600; color: var(--blau-tief); }
.adressvorschlaege span { font-size: .82rem; color: var(--text-leise); }
.adressvorschlaege .quelle {
  margin-top: .3rem; padding: .35rem .65rem .15rem;
  border-top: 1px solid var(--linie);
  font-size: .72rem; color: var(--text-still);
}

.adresswahl-liste {
  position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 5px);
  max-height: min(380px, 60vh); overflow-y: auto; padding: .3rem;
  background: var(--flaeche); border: 1px solid var(--linie-stark);
  border-radius: var(--radius-klein); box-shadow: var(--schatten-hoch);
  animation: einblenden .14s ease;
}
.adresswahl-liste form { margin: 0; }
.adresswahl-liste .eintrag {
  display: flex; align-items: center; gap: .7rem; width: 100%; text-align: left;
  padding: .6rem .65rem; border: 0; border-radius: 6px; background: none;
  font: inherit; color: var(--text); cursor: pointer;
}
.adresswahl-liste .eintrag + .eintrag { margin-top: 1px; }
.adresswahl-liste .eintrag:hover,
.adresswahl-liste .eintrag:focus-visible { background: var(--flaeche-leise); outline: none; }
.adresswahl-liste .eintrag.gewaehlt { background: var(--blau-blass); }
.adresswahl-liste .eintrag .text { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.adresswahl-liste .eintrag strong { font-size: .92rem; color: var(--blau-tief); }
.adresswahl-liste .gewaehlt-zeichen { width: 1.05rem; height: 1.05rem; color: var(--blau); flex: none; stroke-width: 2.4; }
.adresswahl-liste .neu {
  display: flex; align-items: center; gap: .45rem; width: 100%;
  margin-top: .3rem; padding: .7rem .65rem; border: 0;
  border-top: 1px solid var(--linie); border-radius: 0 0 6px 6px;
  background: none; font: inherit; font-weight: 700; font-size: .9rem;
  color: var(--blau-dunkel); cursor: pointer; text-align: left;
}
.adresswahl-liste .neu:hover,
.adresswahl-liste .neu:focus-visible { background: var(--blau-blass); outline: none; }
.adresswahl-liste .neu .icon { width: 1rem; height: 1rem; }

/* Dasselbe Feld für Paketvorlagen: Überschriften zwischen eigenen Vorlagen
   und üblichen Formaten, ein kleines Bild je Eintrag — und im Profil neben
   jedem Eintrag Stift und Mülleimer. */
.adresswahl-liste .gruppentitel {
  display: block; padding: .5rem .65rem .25rem; font-size: .68rem;
  text-transform: uppercase; letter-spacing: .07em; font-weight: 800; color: var(--text-still);
}
.adresswahl-liste .eintrag + .gruppentitel,
.adresswahl-liste .zeile + .gruppentitel { border-top: 1px solid var(--linie); margin-top: .3rem; padding-top: .6rem; }
.adresswahl .bildklein {
  display: grid; place-items: center; width: 2rem; height: 2rem; flex: none;
  border-radius: 8px; background: var(--grund-tief); color: var(--text-leise);
}
.adresswahl .bildklein .icon { width: 1.05rem; height: 1.05rem; }
.adresswahl-liste .eintrag.gewaehlt .bildklein,
.adresswahl-liste .zeile.gewaehlt .bildklein { background: var(--flaeche); color: var(--blau-dunkel); }
.adresswahl .anschrift .zahl { font-variant-numeric: tabular-nums; color: var(--text); }
.adresswahl-liste .zeile { display: flex; align-items: center; gap: .15rem; border-radius: 6px; }
.adresswahl-liste .zeile + .zeile { margin-top: 1px; }
.adresswahl-liste .zeile.gewaehlt { background: var(--blau-blass); }
.adresswahl-liste .zeile .wahl { flex: 1; min-width: 0; }
.adresswahl-liste .zeile .zeilenaktionen { align-items: center; padding-right: .3rem; }
.adresswahl-liste .zeile .zeilenaktionen form { display: inline-flex; }
.adresswahl-liste .zeile:hover .zeilenaktionen .knopf { opacity: 1; }
.adresswahl-liste div.eintrag { cursor: default; }
.adresswahl-liste .eintrag.ohne { border-top: 1px solid var(--linie); border-radius: 0; margin-top: .3rem; }
.adresswahl-liste .eintrag.ohne strong { color: var(--text-leise); font-weight: 600; }

/* Das Formular für einen neuen Absender, direkt unter dem Auswahlfeld. */
.absender-neu {
  margin-top: .7rem; padding: .9rem .9rem .3rem;
  border: 1px dashed var(--linie-stark); border-radius: var(--radius-klein);
  background: var(--flaeche-leise);
}
.absender-neu h3 { margin: 0; font-size: .95rem; }
.absender-neu .knopfreihe { justify-content: flex-end; margin: .3rem 0 .6rem; }

.textknopf {
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
  color: var(--blau); font-weight: 600; text-decoration: underline; text-underline-offset: 2px;
}
.textknopf:hover { color: var(--blau-dunkel); }

.adressen fieldset + fieldset { margin-top: 1.2rem; }
.adressen fieldset:last-child { margin-bottom: .6rem; }
.strassenzeile { grid-template-columns: 2fr 1fr; }
@media (max-width: 520px) { .strassenzeile { grid-template-columns: 1fr; } }
.adresszeile { grid-template-columns: 1.15fr .75fr 1.3fr; }
@media (max-width: 520px) { .adresszeile { grid-template-columns: 1fr 1fr; } .adresszeile > :first-child { grid-column: 1 / -1; } }

/* ============================================= Buchung: Packstück */

/* Ein Packstück: oben das Auswahlfeld mit Vorlage oder Format, darunter die
   Zeile mit Einstufung und Anzahl. Die Felder für Maße und Gewicht stehen
   nur da, wenn „Andere Paketgröße“ gewählt ist — die drei Maße als ein Feld,
   weil sie eine Angabe sind. */
#packstuecke { counter-reset: packstueck; }
/* Jedes Packstück ist eine eigene Card; „Weiteres Packstück“ legt darunter
   eine neue im selben Format an. */
.packstueck {
  counter-increment: packstueck; margin-bottom: .7rem; padding: .8rem .9rem .9rem;
  border: 1px solid var(--linie); border-radius: var(--radius); background: var(--flaeche);
}
.packstueck::before {
  content: "Packstück " counter(packstueck);
  display: block; margin-bottom: .5rem; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .07em; font-weight: 800; color: var(--text-still);
}

.ps-felder {
  display: grid; gap: .6rem; align-items: end; margin-top: .7rem;
  grid-template-columns: minmax(120px, .9fr) minmax(250px, 2fr) minmax(100px, .75fr);
  animation: einblenden .16s ease;
}
.ps-felder[hidden] { display: none; }
.ps-feld label { font-size: .74rem; color: var(--text-leise); }
.ps-felder .ps-sortier { grid-column: 1 / -1; }
/* Schmal: die Maße bekommen die ganze erste Zeile. ``minmax(0, …)``, weil
   ein Eingabefeld sonst seine Wunschbreite durchsetzt und die Karte über den
   Bildschirmrand schiebt. */
@media (max-width: 860px) {
  .ps-felder { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ps-mass-feld { grid-column: 1 / -1; grid-row: 1; }
}

.masse-eingabe {
  display: flex; align-items: center;
  border: 1px solid var(--linie-stark); border-radius: var(--radius-klein);
  background: var(--flaeche);
  transition: border-color var(--tempo) ease, box-shadow var(--tempo) ease;
}
.masse-eingabe:hover { border-color: var(--blau-hell); }
.masse-eingabe:focus-within { border-color: var(--blau); box-shadow: var(--ring); }
.masse-eingabe input[type="number"] {
  flex: 1 1 0; min-width: 0; width: auto; border: 0; background: none; box-shadow: none;
  text-align: center; padding: .52rem .2rem; font-variant-numeric: tabular-nums;
  appearance: textfield; -moz-appearance: textfield;
}
.masse-eingabe input::-webkit-outer-spin-button,
.masse-eingabe input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.masse-eingabe input:focus { box-shadow: none; background: var(--blau-blass); border-radius: 6px; }
.masse-eingabe .mal { color: var(--text-still); font-size: .85rem; flex: none; }
.masse-eingabe .einheit { color: var(--text-still); font-size: .82rem; padding: 0 .65rem 0 .3rem; flex: none; }

.zaehler {
  display: flex; align-items: stretch;
  border: 1px solid var(--linie-stark); border-radius: var(--radius-klein);
  background: var(--flaeche); overflow: hidden;
}
.zaehler:focus-within { border-color: var(--blau); box-shadow: var(--ring); }
.zaehler input[type="number"] {
  width: 2.6rem; border: 0; text-align: center; padding: .52rem 0; box-shadow: none;
  font-variant-numeric: tabular-nums; appearance: textfield; -moz-appearance: textfield;
}
.zaehler input::-webkit-outer-spin-button,
.zaehler input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.zaehler button {
  width: 2rem; border: 0; background: var(--flaeche-leise); color: var(--text-leise);
  font: inherit; font-size: 1.05rem; line-height: 1; cursor: pointer;
}
.zaehler button:hover { background: var(--blau-blass); color: var(--blau-dunkel); }

.packstueck .loeschen {
  background: none; border: 0; color: var(--text-still); cursor: pointer;
  padding: .4rem; line-height: 1; border-radius: var(--radius-winzig);
}
.packstueck .loeschen:hover { color: var(--fehler); background: var(--fehler-blass); }
.packstueck:only-child .loeschen { display: none; }
/* Am Packstück ein Knopf mit Wort statt eines nackten Kreuzes: rechts im
   Fuß, sichtbar umrandet, damit man ihn findet, ohne ihn zu suchen. */
.ps-fuss .ps-entfernen {
  margin-left: auto; display: inline-flex; align-items: center; gap: .3rem;
  padding: .3rem .6rem; border: 1px solid var(--linie-stark);
  color: var(--text-leise); font: inherit; font-size: .8rem; font-weight: 600;
}
.ps-fuss .ps-entfernen .icon { width: .8rem; height: .8rem; }
.ps-fuss .ps-entfernen:hover { border-color: var(--fehler); }

/* Unter dem Karton: Einstufung und Anzahl als einfache Zeile, kein Kasten.
   Ein Zuschlag zeigt sich am Schild, nicht an einem eingefärbten Rahmen. */
.ps-fuss {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  margin-top: .6rem; font-size: .8rem; color: var(--text-leise);
}
.packstueck.gesperrt .ps-fuss { color: #8b2b20; }
.ps-menge-feld {
  display: inline-flex; align-items: center; gap: .45rem; margin: 0;
  font-size: .8rem; font-weight: 600; color: var(--text-leise);
}
.ps-menge-feld .zaehler { display: inline-flex; }
.ps-menge-feld .zaehler input[type="number"] { padding: .3rem 0; width: 2.3rem; }
.ps-stufe:empty { display: none; }
.ps-stufe .schild .icon { width: .8rem; height: .8rem; }
.ps-werte { flex: 1 1 260px; font-variant-numeric: tabular-nums; }
.ps-werte strong { color: var(--text); }
.ps-sortier {
  display: inline-flex; align-items: center; gap: .35rem; margin: 0;
  font-size: .8rem; font-weight: 500; color: var(--text-leise); cursor: pointer;
}
.ps-sortier input { width: auto; margin: 0; accent-color: var(--gruen-dunkel); }


/* Innerhalb der EU nur Inhalt und Warenwert, eine Zeile, freiwillig. */
.ps-inhalt .nur-eu, .ps-inhalt.eu .nur-zoll { display: none; }
.ps-inhalt.eu .nur-eu { display: inline; }
.ps-inhalt.eu .packstueck-zeile.zollzeile { grid-template-columns: minmax(0, 1fr) 11rem; }
.ps-inhalt.eu .ps-position-hinzu, .packstueck .ps-inhalt.eu .zollzeile .loeschen,
.ps-inhalt.eu .zollzeile:not(:first-child) { display: none; }
@media (max-width: 900px) {
  .ps-inhalt.eu .packstueck-zeile.zollzeile { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
/* Was für die ganze Sendung gilt, in derselben Karte unter den Packstücken. */
.sendung-ganz { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--linie); }
.sendung-ganz h3 { margin-bottom: .2rem; }
.sendung-ganz #zollhinweis { margin: 0 0 .8rem; }
.sendung-ganz #zollblock { margin-bottom: .4rem; }

/* Die Warenzeile der Handelsrechnung. Das Raster stand vorher als Stil am
   Element und galt damit auch auf dem Telefon — sechs Spalten auf 340 Pixeln. */
.packstueck-zeile.zollzeile { grid-template-columns: 2.2fr .6fr .9fr 1fr 1fr auto; }
@media (max-width: 900px) {
  .packstueck-zeile.zollzeile { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .packstueck-zeile.zollzeile > :first-child { grid-column: 1 / -1; }
}

/* Inhalt und Wert eines Packstücks — nur wenn die Sendung die EU verlässt.
   Hängt sichtbar am Packstück darüber: gleiche Breite, kein eigener Kasten
   mit Überschrift, sondern die Fortsetzung der Zeile mit der Einstufung. */
.ps-inhalt { margin-top: .8rem; animation: einblenden .16s ease; }
/* Die Warenzeilen im Packstück: Felder nebeneinander, ohne eigenen Kasten. */
.packstueck .packstueck-zeile.zollzeile {
  padding: 0; border: 0; border-radius: 0; background: none; margin-bottom: .6rem;
}
/* Innerhalb der EU sprechen die beiden Felder für sich. */
.ps-inhalt.eu .ps-inhalt-kopf { display: none; }
.ps-inhalt[hidden] { display: none; }
.ps-inhalt-kopf {
  display: flex; align-items: center; gap: .45rem; flex-wrap: wrap;
  margin-bottom: .5rem; font-size: .85rem;
}
.ps-inhalt-summe {
  margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums;
}
.ps-inhalt .knopf .icon { width: .85rem; height: .85rem; }
/* Das Kreuz am Packstück verschwindet, wenn es das einzige ist — das an der
   Warenzeile darf davon nicht mitgerissen werden. */
.packstueck .ps-positionen .zollzeile .loeschen { display: block; }
.packstueck .ps-positionen .zollzeile:only-child .loeschen { visibility: hidden; }
/* In der Prüfung: der Inhalt eingerückt unter seinem Packstück. */
.ps-inhalt-kurz {
  display: flex; justify-content: space-between; gap: .8rem;
  padding: 0 0 .1rem 1.55rem; color: var(--text-leise);
}
.ps-inhalt-kurz .zahl { white-space: nowrap; }

.sendungszeile { display: flex; gap: .4rem; align-items: center; padding: .15rem 0; flex-wrap: wrap; }
.sendungszeile .schild { font-size: .68rem; padding: .08rem .4rem; }

/* ====================================== Buchung: Zusatzleistungen */

/* In Schritt 2 unter den Packstücken: je Leistung eine Zeile mit Zeichen,
   einem Satz Erklärung, Listenwert und Schalter. Eine Liste statt Chips,
   weil die Wahl jetzt vor dem Preis fällt — man sieht am Angebot nicht
   mehr, was eine Leistung ist, also muss es hier stehen. */
/* ---- Übergabe an UPS: Abholung oder selbst übergeben ------------------- */
/* ---- Übergabe an UPS (Schritt 2) ---- */
.uebergabe { margin: 0 0 1.6rem; }
.uebergabe .karte-kopf h3 { margin: 0; }
.ue-kurz { font-size: .8rem; font-weight: 700; color: var(--gruen-dunkel); }
.ue-kurz.leer { color: var(--warn); }
.ue-wahl { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin: .7rem 0 0; }
.ue-karte {
  position: relative; display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto; gap: .2rem .75rem;
  align-items: start; padding: .85rem 1rem; border: 1.5px solid var(--linie-stark); border-radius: var(--radius-klein);
  background: var(--flaeche); cursor: pointer; text-align: left; font: inherit; color: var(--text);
}
.ue-karte:hover { background: var(--flaeche-leise); }
.ue-karte .ue-ikon {
  grid-row: span 2; width: 2.2rem; height: 2.2rem; border-radius: var(--radius-klein); display: grid; place-items: center;
  background: var(--blau-blass); color: var(--blau-dunkel);
}
.ue-karte strong { font-size: .95rem; color: var(--blau-tief); }
.ue-karte small { grid-column: 2 / 4; color: var(--text-leise); font-size: .8rem; line-height: 1.4; }
.ue-karte .ue-preis { font-weight: 700; font-size: .88rem; color: var(--text); white-space: nowrap; }
.ue-karte .ue-preis.frei { color: var(--gruen-dunkel); }
.ue-karte.an { border-color: var(--gruen); background: var(--gruen-blass); box-shadow: 0 0 0 3px rgba(116, 172, 37, .14); }
.ue-karte.an .ue-ikon { background: var(--gruen-rand); color: var(--gruen-dunkel); }
.ue-karte.an::after {
  content: ""; position: absolute; top: .55rem; right: .55rem; width: .9rem; height: .9rem; border-radius: 50%;
  background: var(--gruen) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 62% no-repeat;
}
.ue-karte.an .ue-preis { margin-right: 1.1rem; }
.ue-detail { margin-top: .8rem; padding: .95rem 1rem 1rem; border: 1px solid var(--linie); border-radius: var(--radius-klein); background: var(--flaeche-leise); }
.ue-detail .ue-zeile { display: grid; grid-template-columns: 8.2rem minmax(0, 1fr); gap: .3rem 1rem; align-items: start; padding: .45rem 0; }
.ue-detail .ue-zeile + .ue-zeile { border-top: 1px solid var(--linie); }
.ue-detail .ue-t { font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-leise); padding-top: .35rem; }
.ue-tage { display: flex; flex-wrap: wrap; gap: .4rem; }
.ue-tag {
  font: inherit; font-size: .84rem; padding: .38rem .7rem; border-radius: 999px; border: 1px solid var(--linie-stark);
  background: var(--flaeche); color: var(--text); cursor: pointer; line-height: 1.2; text-align: left;
}
.ue-tag small { display: block; font-size: .7rem; color: var(--text-leise); }
.ue-tag:hover { border-color: var(--blau-rand); }
.ue-tag.an { background: var(--blau-dunkel); border-color: var(--blau-dunkel); color: #fff; }
.ue-tag.an small { color: #cfe6f3; }
.ue-tag[disabled] { cursor: not-allowed; color: var(--text-still); background: var(--grund); border-style: dashed; }
.ue-tag[disabled] small { color: var(--text-still); }
.ue-tag.mit { border-color: var(--gruen); }
.ue-tag.mit small { color: var(--gruen-dunkel); }
.ue-tag.an.mit small { color: #e2f2c9; }
.ue-wert { font-size: .9rem; padding-top: .3rem; }
.ue-wert .sehr-leise { font-size: .8rem; }
.ue-detail .hinweis { margin: .6rem 0 0; font-size: .84rem; }

/* ---- Schritt 3: Übergabe als Zeile statt Auswahlfeld ---- */
.ue-zeile3 {
  display: flex; align-items: center; gap: .6rem; padding: .55rem .85rem; border-radius: var(--radius-klein);
  border: 1px solid var(--blau-rand); background: var(--blau-blass); color: var(--blau-tief); font-size: .88rem; flex: 1 1 360px; min-width: 340px;
}
.ue-zeile3 .icon { color: var(--blau-dunkel); }
.ue-zeile3 .sehr-leise { display: block; font-size: .76rem; }
.ue-zeile3 button { margin-left: auto; font: inherit; font-size: .85rem; font-weight: 700; color: var(--blau); background: none; border: 0; cursor: pointer; }

/* ---- Bestätigung nach der Buchung ---- */
.abholbox { border: 1.5px solid var(--gruen-rand); background: var(--gruen-blass); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin: 0 0 1rem; }
.abholbox.warn { border-color: var(--warn-rand); background: var(--warn-blass); }
.abholbox.blau { border-color: var(--blau-rand); background: var(--blau-blass); }
.abholbox .ab-kopf { display: flex; gap: .9rem; align-items: flex-start; }
.abholbox .ab-ikon { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--gruen); color: #fff; flex: none; }
.abholbox.warn .ab-ikon { background: var(--warn); }
.abholbox.blau .ab-ikon { background: var(--blau); }
.abholbox .ab-ikon .icon { width: 1.3rem; height: 1.3rem; }
.abholbox .ab-eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--gruen-dunkel); margin: 0 0 .1rem; }
.abholbox.warn .ab-eyebrow { color: var(--warn); }
.abholbox.blau .ab-eyebrow { color: var(--blau-dunkel); }
.abholbox .ab-titel { font-size: 1.22rem; font-weight: 800; color: var(--blau-tief); margin: 0; line-height: 1.25; }
.abholbox .ab-unter { color: var(--text-leise); font-size: .88rem; margin: .25rem 0 0; }
.abholbox .ab-fakten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: .9rem 0 0; }
.abholbox .ab-fakt { background: rgba(255, 255, 255, .7); border-radius: var(--radius-klein); padding: .5rem .7rem; }
.abholbox .ab-fakt span { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-leise); }
.abholbox .ab-fakt b { font-size: .92rem; color: var(--text); }
.abholbox .ab-liste { margin: .85rem 0 0; padding: 0; list-style: none; display: grid; gap: .3rem; font-size: .86rem; }
.abholbox .ab-liste li { display: flex; gap: .5rem; align-items: flex-start; }
.abholbox .ab-liste .icon { color: var(--gruen-dunkel); margin-top: .15rem; flex: none; }
.abholbox .knopfreihe { margin-top: .9rem; }
.abholbox .ab-fuss { margin: .4rem 0 0; font-size: .78rem; }
.abholbox .ab-meldung { display: flex; gap: .4rem; align-items: center; margin: 0 0 .7rem; font-size: .86rem; font-weight: 700; color: var(--gruen-dunkel); }
.abholbox .feldfehler { margin: .5rem 0 0; }
.abholkarte form { margin-top: .6rem; display: grid; gap: .45rem; }

/* ---- Sendungsliste / Sendungsseite ---- */
.abholmarke { display: inline-flex; align-items: center; gap: .3rem; margin-top: .3rem; font-size: .74rem; font-weight: 700; color: var(--gruen-dunkel); white-space: nowrap; }
.abholmarke.selbst { color: var(--text-leise); font-weight: 600; }
.abholmarke.warn { color: var(--warn); }
.abholmarke .icon { width: .95rem; height: .95rem; }
.abholkarte h3 { display: flex; align-items: center; gap: .5rem; }
.abholkarte .ak-zeilen { display: grid; gap: .1rem; margin: .5rem 0 .2rem; font-size: .88rem; }
.abholkarte .ak-zeilen div { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-bottom: 1px solid var(--linie); }
.abholkarte .ak-zeilen div:last-child { border-bottom: 0; }
.abholkarte .ak-zeilen span:first-child { color: var(--text-leise); }
#ue_wahl[aria-invalid="true"] .ue-karte { border-color: var(--fehler); background: var(--fehler-blass); }
.ue-gemerkt { margin: .5rem 0 0; font-size: .78rem; color: var(--text-leise); }
.abholkarte { border: 1.5px solid var(--gruen-rand); background: var(--gruen-blass); }
.abholkarte.warn { border-color: var(--warn-rand); background: var(--warn-blass); }
.abholkarte.blau { border-color: var(--blau-rand); background: var(--blau-blass); }
.abholkarte h3 .icon { color: var(--gruen-dunkel); }
.abholkarte.warn h3 .icon { color: var(--warn); }
.abholkarte.blau h3 .icon { color: var(--blau-dunkel); }
.abholkarte p { margin: .3rem 0; }
@media (max-width: 720px) {
  .ue-wahl, .abholbox .ab-fakten { grid-template-columns: 1fr; }
  .ue-detail .ue-zeile { grid-template-columns: 1fr; }
  .ue-zeile3 { min-width: 0; }
}

.zusatzblock { margin: 0 0 1.2rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--linie); }
.zusatzblock .karte-kopf { margin-bottom: .3rem; }
.zusatzblock h3 { margin: 0; }
.zusatzblock > p { margin: 0 0 .7rem; }
.zl-summe { font-size: .82rem; font-weight: 700; color: var(--gruen-dunkel); }
.zl-liste { border: 1px solid var(--linie); border-radius: var(--radius-klein); overflow: hidden; }
.zl-gruppe {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800;
  color: var(--text-still); padding: .55rem .9rem .35rem;
  background: var(--flaeche-leise); border-top: 1px solid var(--linie);
}
.zl-liste > div:first-child > .zl-gruppe:first-child { border-top: 0; }
.zl-gruppe .sehr-leise { text-transform: none; letter-spacing: 0; font-weight: 500; margin-left: .3rem; }
label.zl-zeile {
  display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto 2.6rem; align-items: center; gap: .7rem;
  margin: 0; padding: .6rem .9rem; border-top: 1px solid var(--linie); border-bottom: 0;
  cursor: pointer; font-weight: 500; position: relative;
  transition: background var(--tempo) ease;
}
.zl-zeile:hover { background: var(--flaeche-leise); }
.zl-ikon {
  width: 2rem; height: 2rem; border-radius: var(--radius-klein);
  background: var(--blau-blass); color: var(--blau-dunkel); display: grid; place-items: center;
}
.zl-ikon .icon { width: 1rem; height: 1rem; }
.zl-text { display: grid; gap: .1rem; min-width: 0; }
.zl-text strong { font-size: .9rem; color: var(--blau-tief); display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.zl-text small { font-size: .78rem; color: var(--text-leise); line-height: 1.35; }
.zl-preis {
  display: grid; justify-items: end; font-size: .84rem; font-weight: 700; color: var(--text-leise);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.zl-preis small { font-size: .7rem; font-weight: 500; color: var(--text-still); }
.zl-zeile input { position: absolute; opacity: 0; pointer-events: none; }
.zl-schalter {
  width: 2.4rem; height: 1.4rem; border-radius: 99px; background: var(--linie-stark);
  position: relative; justify-self: end; transition: background var(--tempo) ease;
}
.zl-schalter::after {
  content: ""; position: absolute; top: .17rem; left: .17rem; width: 1.06rem; height: 1.06rem;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(6, 55, 79, .25);
  transition: transform var(--tempo) ease;
}
.zl-zeile:has(input:checked) { background: var(--gruen-blass); }
.zl-zeile:has(input:checked) .zl-schalter { background: var(--gruen); }
.zl-zeile:has(input:checked) .zl-schalter::after { transform: translateX(1rem); }
.zl-zeile:has(input:checked) .zl-ikon { background: var(--gruen-rand); color: var(--gruen-dunkel); }
.zl-zeile:has(input:checked) .zl-preis { color: var(--gruen-dunkel); }
.zl-zeile:has(input:focus-visible) .zl-schalter { box-shadow: var(--ring); }
/* Versicherung und Nachnahme ohne Warenwert: sichtbar, aber nicht wählbar —
   der Satz darunter sagt, was fehlt. */
.zl-zeile.aus { cursor: not-allowed; }
.zl-zeile.aus:hover { background: none; }
.zl-zeile.aus .zl-text strong, .zl-zeile.aus .zl-preis { color: var(--text-still); }
.zl-zeile.aus .zl-schalter { opacity: .45; }
.zl-zeile.aus .zl-ikon { background: var(--grund-tief); color: var(--text-still); }
@media (max-width: 640px) {
  label.zl-zeile { grid-template-columns: 2rem minmax(0, 1fr) 2.6rem; }
  .zl-preis { grid-column: 2; grid-row: 2; justify-items: start; }
}

/* Schritt 3: über den Preisen, was aus Schritt 2 mitkommt */
.preis-kopfzeile { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; margin-bottom: .9rem; }
.preis-extras {
  flex: 1 1 260px; display: flex; gap: .5rem; align-items: center;
  font-size: .82rem; color: var(--text-leise); padding: .5rem .7rem;
  border-radius: var(--radius-klein); background: var(--flaeche-leise); border: 1px solid var(--linie);
}
.preis-extras > .icon { flex: none; color: var(--gruen-dunkel); }
.preis-extras strong { color: var(--blau-tief); }
.preis-extras button {
  margin-left: auto; background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--blau); font: inherit; font-weight: 700;
}
.preis-extras button:hover { color: var(--blau-dunkel); text-decoration: underline; }
/* An der Angebotskarte: was diese Dienstleistung von der Wahl nicht kann */
.ohne-extra { display: flex; align-items: center; gap: .3rem; margin-top: .25rem; font-size: .78rem; color: var(--warn); }
.ohne-extra .icon { width: .85rem; height: .85rem; }

#angebote { transition: opacity var(--tempo) ease; }
#angebote.laedt { opacity: .45; pointer-events: none; }

/* ============================================ Vorlagen */

/* Drei Reiter mit je einer Tabelle, dazu das Fenster der Sendungsvorlage
   und in der Buchung der Hinweis, aus welcher Vorlage sie kommt. */
.vl-erkl { margin: 0 0 .9rem; }
.vl-tabelle td { vertical-align: top; }
.vl-tabelle td > .knopf.klein + .zeilenaktionen { margin-left: .35rem; }
.vl-weg { display: flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--blau-tief); flex-wrap: wrap; }
.vl-weg .icon { width: .85rem; height: .85rem; color: var(--text-still); }
.vl-art { width: .95rem; height: .95rem; vertical-align: -2px; color: var(--text-still); }
.vl-verweis { color: var(--blau); font-weight: 600; text-decoration: none; }
.vl-verweis:hover { text-decoration: underline; }
.vl-klein { font-size: .78rem; display: inline-block; margin-top: .3rem; }
.vl-ps-zeile { display: grid; grid-template-columns: minmax(0, 1fr) 130px auto; gap: .5rem; align-items: center; margin-bottom: .45rem; }
.vl-menge input { padding-right: 3.4rem; }
.vl-extras { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .4rem; }
.vl-extras .haken, .vl-dienst .haken { margin: 0; }
.vl-dienst { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.vl-dienst select { margin-top: .35rem; }
.vl-verweis-hinweis { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; margin: .8rem 0 0; }
.vl-verweis-hinweis .icon { width: .9rem; height: .9rem; }
.vl-aktiv { align-items: center; }
.vl-aktiv > div { flex: 1; }
.vl-aktiv-wege { white-space: nowrap; }
.vl-aktiv-wege a { font-weight: 700; color: var(--gruen-dunkel); }
@media (max-width: 640px) {
  .vl-dienst { grid-template-columns: 1fr; }
  .vl-ps-zeile { grid-template-columns: 1fr 110px auto; }
  .vl-aktiv { flex-wrap: wrap; }
}

/* ======================================= Übersicht: Statusmatrix */

/* Kunden als Zeilen, Stufen als Spalten. Jede Zelle ist getönt nach dem,
   was in ihr liegt: Ein Blick zeigt, bei wem sich etwas staut, ohne dass
   man Zahlen vergleichen muss. */
.statusmatrix .st-MANIFEST { --f: #7c8e9a; }
.statusmatrix .st-ABGEHOLT { --f: var(--blau-hell); }
.statusmatrix .st-WEITERGELEITET { --f: var(--blau); }
.statusmatrix .st-IN_ZUSTELLUNG { --f: var(--blau-tief); }
.statusmatrix .st-ZUGESTELLT { --f: var(--gruen); }

.statusmatrix thead th.spalte, .statusmatrix td.spalte { text-align: center; width: 13%; }
.statusmatrix thead th.spalte { white-space: normal; line-height: 1.3; vertical-align: bottom; }
.statusmatrix thead th small {
  display: block; text-transform: none; letter-spacing: 0; font-weight: 500;
  font-size: .72rem; color: var(--text-still);
}
.statusmatrix .kopfpunkt {
  display: inline-block; width: 8px; height: 8px; border-radius: 99px;
  background: var(--f); margin-right: .35rem; vertical-align: .02em;
}
.statusmatrix tbody td { vertical-align: middle; padding: .5rem .45rem; }
.statusmatrix tbody tr:hover { background: transparent; }
.statusmatrix tbody tr:hover td:first-child strong { color: var(--blau-dunkel); }
.statusmatrix .zelle {
  display: grid; place-items: center; min-height: 2.5rem; border-radius: var(--radius-klein);
  font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums;
  text-decoration: none; color: var(--blau-tief);
  background: color-mix(in srgb, var(--f) calc(9% + var(--a, 0) * 30%), var(--flaeche));
  border: 1px solid color-mix(in srgb, var(--f) calc(18% + var(--a, 0) * 30%), var(--flaeche));
  transition: transform var(--tempo) ease, box-shadow var(--tempo) ease;
}
.statusmatrix a.zelle:hover { transform: translateY(-1px); box-shadow: var(--schatten); border-color: var(--f); }
.statusmatrix .zelle.leer {
  background: none; border-color: transparent; color: var(--linie-stark); font-weight: 500;
}
.statusmatrix .st-ZUGESTELLT .zelle:not(.leer) { color: var(--gruen-dunkel); }
.statusmatrix th.verteilung, .statusmatrix td.verteilung { width: 17%; padding-left: 1rem; }
.statusmatrix .gesamt { display: flex; align-items: center; gap: .6rem; }
.statusmatrix .gesamt strong { font-size: 1.05rem; min-width: 1.6rem; text-align: right; }
.statusmatrix .stapel {
  display: flex; flex: 1; height: 8px; min-width: 60px; gap: 2px;
  border-radius: 99px; overflow: hidden;
}
.statusmatrix .stapel i { display: block; background: var(--f); min-width: 4px; }
.statusmatrix tfoot td { text-align: center; font-variant-numeric: tabular-nums; }
.statusmatrix tfoot td:first-child { text-align: left; }
.statusmatrix tfoot td.verteilung { text-align: left; }
.statusmatrix tfoot a { color: inherit; }

/* -------------------------------------------------------------------------
   Vertragsvergleich: je Feld der günstigste Vertrag.
   Jeder Vertrag hat eine Farbe UND einen Buchstaben — die Farbe allein trüge
   nicht, weder im Druck noch für jemanden, der Rot und Grün nicht trennt.
   ------------------------------------------------------------------------- */
.vg { --vf: var(--text-leise); --vb: var(--grund-tief); }
.vg.v0 { --vf: #005a86; --vb: #e3f1fa; }
.vg.v1 { --vf: #9a4a00; --vb: #fdebd8; }
.vg.v2 { --vf: #44690f; --vb: #e7f4d6; }
.vg.v3 { --vf: #5c3691; --vb: #efe6f8; }
.vg.v4 { --vf: #0e6b62; --vb: #dcf3f0; }
.vg.v5 { --vf: #96275a; --vb: #fbe4ee; }

.vg-marke {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.35rem; height: 1.35rem; padding: 0 .3rem; border-radius: var(--radius-winzig);
  background: var(--vf); color: #fff; font-size: .72rem; font-weight: 700; line-height: 1;
}
.vg-legende { display: flex; flex-wrap: wrap; gap: .7rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.vg-legende li {
  flex: 1 1 230px; display: flex; gap: .6rem; align-items: flex-start;
  padding: .65rem .8rem; border: 1px solid var(--linie);
  border-radius: var(--radius-klein); background: var(--flaeche);
}
.vg-legende .name { font-weight: 700; color: var(--blau-tief); }
.vg-legende .anteil { font-size: 1.15rem; font-weight: 700; color: var(--vf); font-variant-numeric: tabular-nums; }
.vg-balken { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--grund-tief); margin: 0 0 1rem; }
.vg-balken i { display: block; background: var(--vf); }

.vg-wahl { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .7rem; }
.vg-wahl a {
  padding: .3rem .7rem; border: 1px solid var(--linie-stark); border-radius: 99px;
  font-size: .85rem; text-decoration: none; color: var(--text-leise); background: var(--flaeche);
}
.vg-wahl a:hover { border-color: var(--blau); color: var(--blau-dunkel); }
.vg-wahl a.aktiv { background: var(--blau); border-color: var(--blau); color: #fff; font-weight: 600; }

table.vg-matrix { border-collapse: separate; border-spacing: 2px; width: 100%; }
table.vg-matrix thead th { text-align: center; white-space: nowrap; font-size: .78rem; }
table.vg-matrix tbody th { text-align: left; white-space: nowrap; font-weight: 600; padding: .3rem .5rem; }
table.vg-matrix td { padding: 0; border: 0; }
table.vg-matrix tbody tr:hover { background: transparent; }
.vg-feld {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem;
  min-height: 2.9rem; padding: .25rem .35rem; border-radius: var(--radius-winzig);
  background: var(--vb); color: var(--text); text-decoration: none;
  font-variant-numeric: tabular-nums; line-height: 1.15;
}
.vg-feld .oben { display: flex; align-items: center; gap: .3rem; font-weight: 600; font-size: .82rem; white-space: nowrap; }
.vg-feld .unten { font-size: .7rem; color: var(--vf); white-space: nowrap; }
.vg-feld.gleich { background: var(--flaeche-leise); border: 1px dashed var(--linie-stark); }
.vg-feld.gleich .unten { color: var(--text-still); }
.vg-feld.leer { background: none; color: var(--linie-stark); }
a.vg-feld:hover { box-shadow: 0 0 0 2px var(--vf); }
.vg-feld .vg-marke { min-width: 1.1rem; height: 1.1rem; font-size: .66rem; }


/* --------------------------------------------------------------------------
   Reiter: die Unterseiten eines Gegenstands, etwa eines Kunden.
   -------------------------------------------------------------------------- */
.reiter {
  /* Kein Scrollen: Die Reiter brechen um, statt eine Rollleiste zu zeigen. */
  display: flex; flex-wrap: wrap; gap: .2rem; margin: 0 0 1.1rem;
  border-bottom: 1px solid var(--linie-stark);
}
.reiter a {
  display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
  padding: .55rem .95rem; margin-bottom: -1px;
  font-size: .9rem; font-weight: 600; color: var(--text-leise);
  text-decoration: none; border-bottom: 2px solid transparent;
  border-radius: var(--radius-winzig) var(--radius-winzig) 0 0;
}
.reiter a:hover { color: var(--blau-dunkel); background: var(--flaeche-leise); }
.reiter a.aktiv { color: var(--blau-dunkel); border-bottom-color: var(--blau); }
.reiter .icon { width: 1rem; height: 1rem; }
.reiter .zaehler {
  font-size: .72rem; font-weight: 700; padding: .05rem .4rem; border-radius: 999px;
  background: var(--grund-tief); color: var(--text-leise);
}
.reiter a.aktiv .zaehler { background: var(--blau-blass); color: var(--blau-dunkel); }

/* Aufschläge je Leistung: ein schmales Prozentfeld in der Tabellenzeile. */
.aufschlagstabelle td { vertical-align: middle; }
.aufschlagstabelle td.leistung { min-width: 12rem; }
.aufschlagstabelle td.leistung label { margin: 0; font-size: inherit; }
.aufschlagstabelle .herkunft { white-space: normal; max-width: 15rem; margin-left: auto; }
.aufschlagstabelle .satzfeld { width: 7.2rem; margin-left: auto; }
.aufschlagstabelle .satzfeld input { text-align: right; font-variant-numeric: tabular-nums; }
.aufschlagstabelle .satzfeld input.ungueltig { border-color: var(--fehler); }
.reiter .zaehler.offen { background: var(--warn-blass); color: var(--warn); }

/* Der Aufschlag auf alle Leistungen: die eine Zahl, die den Preis macht. */
.grundaufschlag {
  display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap;
  padding: .9rem 1rem; margin-top: .9rem;
  background: var(--blau-blass); border: 1px solid var(--blau-rand);
  border-radius: var(--radius-klein);
}
.grundaufschlag .feld { margin: 0; }
.grundaufschlag .mit-einheit { display: block; width: 9rem; }
.grundaufschlag input {
  text-align: right; font-size: 1.15rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.grundaufschlag input.ungueltig { border-color: var(--fehler); }
.grundaufschlag .feldhinweis { flex: 1; min-width: 14rem; margin: 0 0 .35rem; color: var(--text-leise); }

/* ============================================== Klickbare Zeilen */

/* Eine Zeile, die als Ganzes zu einer Seite führt (``tr.zeilenlink`` mit
   ``data-href``, Klick in ``portal.js``). Beim Überfahren hebt sie sich
   deutlich ab — blasser Grund, Balken links, Pfeil rechts —, damit klar
   ist, dass der Klick irgendwo in die Zeile reicht. */
tr.zeilenlink { cursor: pointer; }
tr.zeilenlink > td { transition: background var(--tempo) ease, box-shadow var(--tempo) ease; }
tr.zeilenlink:hover > td { background: var(--blau-blass); }
tr.zeilenlink:hover > td:first-child { box-shadow: inset 3px 0 0 var(--blau); }
tr.zeilenlink:hover > td:first-child a strong { text-decoration: underline; text-underline-offset: 2px; }
tr.zeilenlink:active > td { background: var(--blau-rand); }
.zeilenpfeil {
  display: inline-grid; place-items: center; width: 28px; color: var(--text-still);
  opacity: .35; transition: opacity var(--tempo) ease, transform var(--tempo) ease, color var(--tempo) ease;
}
tr.zeilenlink:hover .zeilenpfeil { opacity: 1; color: var(--blau); transform: translateX(3px); }

/* Angeheftete Zeilen über der Liste: der eigene Kunde des Betreibers. */
tbody.angeheftet > tr > td { background: var(--flaeche-leise); }
tbody.angeheftet > tr:last-child > td { border-bottom: 1px solid var(--linie-stark); }
tbody.angeheftet > tr.zeilenlink:hover > td { background: var(--blau-blass); }

/* ==================================================== Blättern */

.blaettern {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .5rem; margin-top: .9rem; font-size: .85rem;
}
.blaettern-knoepfe { display: inline-flex; flex-wrap: wrap; gap: .25rem; }
.blaettern-knoepfe .knopf { min-width: 2.1rem; justify-content: center; }

/* ======================================= Sprechblase über Rändern */

/* In Tabellen schneidet der Rahmen (``overflow-x: auto``) die Blase ab, und
   die klebende Kopfzeile liegt darüber. Dort zeichnet ``portal.js`` die
   Blase deshalb als eigenes Element über der Seite. */
.tipp-schwebend::after, .tipp-schwebend::before { display: none !important; }
.tippblase {
  position: fixed; z-index: 200; max-width: 260px; width: max-content;
  padding: .5rem .65rem; background: var(--blau-tief); color: #fff;
  font-size: .8rem; font-weight: 500; line-height: 1.4; text-align: left;
  border-radius: var(--radius-klein); box-shadow: var(--schatten-hoch);
  pointer-events: none; opacity: 0; transition: opacity var(--tempo) ease;
}
.tippblase.zu-sehen { opacity: 1; }
.tippblase::after {
  content: ""; position: absolute; left: var(--spitze, 50%); transform: translateX(-50%);
  border: 5px solid transparent;
}
.tippblase.oben::after { top: 100%; border-top-color: var(--blau-tief); }
.tippblase.unten::after { bottom: 100%; border-bottom-color: var(--blau-tief); }
@media print { .tippblase { display: none; } }

/* ================================================= Testbereich */

/* Testkennzeichen: Bernstein, schraffiert — überall gleich, damit man es
   nicht übersieht und nie für Produktiv hält. */
.schild.test {
  display: inline-block; padding: .1rem .45rem; border: 1px solid var(--warn-rand);
  border-radius: 5px; font-size: .72rem;
  background: repeating-linear-gradient(-45deg, var(--warn-blass) 0 6px, #fbecd0 6px 12px);
  color: var(--warn); font-weight: 800; letter-spacing: .06em;
}
.kopf .umgebung { margin-right: .6rem; }
.testband {
  background: repeating-linear-gradient(-45deg, #fdf1d8 0 10px, #fbe7c1 10px 20px);
  border-bottom: 1px solid var(--warn-rand); color: #6b4308; font-size: .8rem; font-weight: 600;
}
.testband .innen {
  max-width: 1340px; margin: 0 auto; padding: .45rem 1.25rem;
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.testband .icon { width: 15px; height: 15px; color: var(--warn); }
.testband .fuellt { flex: 1; }
.testband .stand { font-weight: 500; color: #7a5410; }
.testband .bandknopf {
  border: 1px solid var(--warn-rand); background: #fff8ea; border-radius: 6px;
  padding: .2rem .6rem; cursor: pointer; font: inherit; font-weight: 700; color: #6b4308;
}
.testband .bandknopf:hover { background: #fff; }

/* Schalter Produktiv / Test in der Kopfzeile */
.umgebungswahl {
  display: inline-flex; gap: .2rem; padding: .18rem; margin: 0 .8rem 0 0;
  border: 1px solid var(--linie-stark); border-radius: 999px; background: var(--flaeche-leise);
}
.umgebungswahl button {
  border: 0; background: none; border-radius: 999px; padding: .3rem .75rem;
  font: inherit; font-size: .8rem; font-weight: 700; color: var(--text-leise); cursor: pointer;
}
.umgebungswahl button:hover:not(.aktiv) { color: var(--text); }
.umgebungswahl button.aktiv { background: var(--blau-tief); color: #fff; }
.umgebungswahl button.aktiv.test { background: var(--warn); }

/* Testkunde anlegen: Zugang mit Benutzername und Passwort */
.testzugang { border: 1px solid var(--warn-rand); background: var(--warn-blass);
  border-radius: 8px; padding: .7rem .8rem; margin: .4rem 0 .6rem; }
.testzugang .feldreihe { grid-template-columns: 1fr 1fr 1fr; }

@media print { .testband, .umgebungswahl { display: none; } }

/* Zugangsdaten: Eingabe mit Auge zum Ansehen (Verträge → Zugang zu UPS). */
.geheimfeld { position: relative; }
.geheimfeld input { width: 100%; padding-right: 2.6rem; }
.geheimfeld .auge {
  position: absolute; right: .3rem; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: var(--radius-winzig);
  background: none; color: var(--text-leise); cursor: pointer;
}
.geheimfeld .auge:hover { color: var(--blau-dunkel); background: var(--flaeche-leise); }
.geheimfeld .auge:focus-visible { outline: 2px solid var(--blau); outline-offset: 1px; }
.geheimfeld .auge[aria-pressed="true"] { color: var(--blau-dunkel); }
.geheimfeld .auge:disabled { opacity: .5; cursor: progress; }
.geheimfeld .auge .icon { width: 1.1rem; height: 1.1rem; }
.zugang-ergebnis:not(:empty) { margin-top: .6rem; }
.zugang-ergebnis .hinweis { margin: 0; }


/* ==================================================== Verträge */

/* Der Stand eines Vertrags in einer Zeile: Laufzeit, Tabelle, Kundennummer … */
.kennzeile {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border: 1px solid var(--linie); border-radius: var(--radius-klein);
  background: var(--flaeche-leise); margin: 0 0 1rem;
}
.kennzeile > div { padding: .55rem .8rem; border-left: 1px solid var(--linie); min-width: 0; }
.kennzeile > div:first-child { border-left: 0; }
.kennzeile .was {
  display: block; font-size: .66rem; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: var(--text-still);
}
.kennzeile .wert {
  display: block; font-size: .9rem; font-weight: 700; color: var(--blau-tief); margin-top: .1rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kennzeile .wert.gruen { color: var(--gruen-dunkel); }
.kennzeile .wert.warn { color: var(--warn); }

/* Vertrag wechseln: der Name oben ist ein Menü mit Suche. */
.vertragswahl { position: relative; display: block; max-width: 100%; }
.vertragswahl > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .6rem;
  padding: .2rem .5rem .2rem .3rem; margin-left: -.3rem; border-radius: var(--radius-klein);
  border: 1px solid transparent; max-width: 100%;
}
.vertragswahl > summary::-webkit-details-marker { display: none; }
.vertragswahl > summary:hover, .vertragswahl[open] > summary { background: var(--flaeche); border-color: var(--linie-stark); }
.vertragswahl > summary h1 { margin: 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vertragswahl > summary .icon { color: var(--text-leise); flex: none; }
.vertragswahl .klappe {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 50;
  width: min(480px, calc(100vw - 2rem)); background: var(--flaeche);
  border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten-hoch); padding: .4rem;
}
.vertragswahl .klappe input { margin: .2rem 0 .35rem; }
.vertragswahl .klappe a {
  display: flex; gap: .6rem; align-items: center; padding: .5rem .6rem; border-radius: var(--radius-klein);
  text-decoration: none; color: var(--text);
}
.vertragswahl .klappe a:hover, .vertragswahl .klappe a:focus { background: var(--blau-blass); outline: none; }
.vertragswahl .klappe a .name { font-weight: 700; color: var(--blau-tief); font-size: .88rem; display: block; }
.vertragswahl .klappe a .icon.gewaehlt { margin-left: auto; color: var(--blau); }
.vertragswahl .klappe hr { border: 0; border-top: 1px solid var(--linie); margin: .3rem 0; }
.blaettern { display: inline-flex; gap: .25rem; vertical-align: middle; margin-left: .3rem; }
.blaettern .knopf { padding: .2rem .35rem; }
.vertragsstand { display: block; max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.zeile-link { color: inherit; text-decoration: none; }

/* Tariftabelle: Länder einer Zone unter dem Kopf; breite Tabellen enger. */
.tarifkopf small {
  display: block; font-weight: 500; text-transform: none; letter-spacing: 0;
  color: var(--text-still); font-size: .66rem; white-space: nowrap;
  max-width: 7.5rem; overflow: hidden; text-overflow: ellipsis; margin-left: auto;
}
.tarifkopf { cursor: help; }
.tariftabelle.eng table { font-size: .74rem; min-width: 0; }
.tariftabelle.eng td, .tariftabelle.eng th { padding-left: .14rem; padding-right: .14rem; }
.tariftabelle.eng thead th { letter-spacing: 0; }
.tariftabelle.eng .tarifkopf small { max-width: 3.4rem; font-size: .6rem; }
.zonenliste { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .4rem .9rem; font-size: .84rem; }
.zonenliste > div { padding: .4rem .55rem; border-radius: var(--radius-winzig); background: var(--flaeche-leise); }
.zonenliste b { color: var(--blau-tief); margin-right: .35rem; }
.angaben { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.1rem; font-size: .9rem; margin: 0; }
.angaben dt { color: var(--text-leise); }
.angaben dd { margin: 0; font-weight: 600; min-width: 0; }
.pruefliste { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; font-size: .88rem; }
.pruefliste li { display: flex; gap: .5rem; align-items: center; }
.pruefliste li .icon { width: 1rem; height: 1rem; flex: none; }
.pruefliste li.ok .icon { color: var(--gruen-dunkel); }
.pruefliste li.offen .icon { color: var(--warn); }
.pruefliste li .rechts { margin-left: auto; font-size: .82rem; }

/* Zusatzleistung × Dienstleistung eines Vertrags: Haken je Feld. */
.leistungsmatrix th.mitte, .leistungsmatrix td.mitte { text-align: center; }
.leistungsmatrix th.mitte { white-space: nowrap; }
.leistungsmatrix td.mitte input { width: 1.05rem; height: 1.05rem; }

/* Vergleich nach Land */
.laendervergleich .klassenkopf th { background: var(--flaeche-leise); font-weight: 600; text-align: left; }
.laendervergleich tr.liste td { color: var(--text-leise, #6b7280); font-style: italic; }
.laendervergleich td.bester { background: var(--gruen-blass); font-weight: 600; }
.laendervergleich td small { display: block; font-size: .68rem; }

/* Vertragsliste: die Standardpreise unter einer eigenen Trennzeile. */
.vertragsliste tr.trennzeile > td {
  background: var(--grund-tief); color: var(--text-leise); font-size: .8rem;
  padding-top: .55rem; padding-bottom: .55rem;
}
.vertragsliste tr.trennzeile strong { color: var(--text); }
.vertragsliste tr.standardzeile > td { background: var(--grund); }

/* ---------- Preise eines Kunden: Rabatt auf die Standardpreise */
.rabattseite { display: flex; flex-direction: column; gap: 1rem; }
.rabattseite > .karte { margin: 0; }
.rabatt-nebenreihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; }
.rabatt-nebenreihe .karte { margin: 0; }
.rabatt-grund { align-items: center; }
.rabatt-grund-ek { display: flex; gap: .55rem; align-items: flex-start; font-size: .84rem; color: var(--blau-tief);
  padding-left: 1rem; border-left: 1px solid var(--blau-rand); }
.rabatt-grund-ek .icon { margin-top: .15rem; flex: none; }
.rabatttabelle td { padding-top: .6rem; padding-bottom: .6rem; }
.rabatttabelle .rabatt-ek-zelle { min-width: 150px; }
.rabatttabelle td.leistung { min-width: 10rem; }
.rabatttabelle .satzfeld { width: 5.6rem; }
.rabatttabelle tr.rot td { background: var(--fehler-blass); }
.rabatttabelle tr.rot td:first-child { box-shadow: inset 4px 0 0 var(--fehler); }
.rabatttabelle tr.rot .satzfeld input { border-color: var(--fehler); color: var(--fehler); font-weight: 700; background: #fff; }
.rabatttabelle tr.gelb .satzfeld input { border-color: var(--warn); }
.rabatttabelle tr.gelb td:first-child { box-shadow: inset 4px 0 0 var(--warn); }
.rabatt-unter > span { display: flex; gap: .3rem; align-items: flex-start; font-size: .76rem; margin-top: .3rem;
  max-width: 19rem; line-height: 1.3; }
.rabatt-unter .icon { width: .85rem; height: .85rem; flex: none; margin-top: .1rem; }
.rabatt-unter .rot { color: var(--fehler); font-weight: 600; }
.rabatt-unter .gelb { color: var(--warn); }
.rabatt-spanne .minus, .rabattrisiko .minus { color: var(--fehler); font-weight: 700; }
.rabatt-spanne .schild { margin-top: .25rem; }
.schild .icon { width: .8rem; height: .8rem; margin-right: .2rem; vertical-align: -.1rem; }

/* Band 0–100 % Rabatt: grün bis zur Verlustgrenze, schraffiert der Einkauf,
   rot darüber; der Strich ist der Rabatt des Kunden. */
.rabattband { position: relative; height: 12px; border-radius: 6px; background: var(--fehler-blass);
  border: 1px solid var(--linie); margin: .9rem 0 .25rem; min-width: 140px; }
.rabattband .sicher { position: absolute; left: 0; top: 0; bottom: 0; background: var(--gruen-blass);
  border-radius: 6px 0 0 6px; border-right: 1px solid var(--gruen-rand); }
.rabattband .einkauf { position: absolute; top: -1px; bottom: -1px; border: 1px solid var(--blau); border-radius: 3px;
  background: repeating-linear-gradient(135deg, var(--blau-rand) 0 4px, var(--blau-blass) 4px 8px); }
.rabattband .strich { position: absolute; top: -5px; bottom: -5px; width: 3px; margin-left: -1.5px;
  border-radius: 2px; background: var(--blau-tief); z-index: 2; }
.rabattband .strich span { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 1px;
  font-size: .66rem; font-weight: 800; white-space: nowrap; color: var(--blau-tief); }
.rabattband .strich.rot { background: var(--fehler); } .rabattband .strich.rot span { color: var(--fehler); }
.rabattband .strich.gelb { background: var(--warn); } .rabattband .strich.gelb span { color: var(--warn); }
.rabatt-ek-text { font-size: .74rem; color: var(--text-leise); white-space: nowrap; }
.rabatt-ek-text strong { color: var(--blau-tief); }
.rabatt-tabfuss { display: flex; gap: 1.2rem; align-items: center; font-size: .76rem; color: var(--text-leise);
  margin-top: .5rem; flex-wrap: wrap; }
.rabatt-legende { display: inline-flex; gap: .9rem; flex-wrap: wrap; font-weight: 600; color: var(--text-still); }
.rabatt-legende i { display: inline-block; width: .7rem; height: .5rem; border-radius: 2px; margin-right: .25rem; }
.rabatt-legende i.s { background: var(--gruen-blass); border: 1px solid var(--gruen-rand); }
.rabatt-legende i.e { background: repeating-linear-gradient(135deg, var(--blau-rand) 0 3px, var(--blau-blass) 3px 6px);
  border: 1px solid var(--blau); }
.rabatt-legende i.k { width: 3px; background: var(--blau-tief); }
.rabatt-legende i.v { background: var(--fehler-blass); border: 1px solid var(--linie); }
.rabatt-fuss { display: flex; gap: .8rem; align-items: center; margin-top: 1rem; flex-wrap: wrap; }

/* Sicherheitsabfrage vor dem Speichern */
.rabattrisiko { width: 100%; border-collapse: collapse; font-size: .86rem; margin: .4rem 0 .8rem; }
.rabattrisiko th { text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-still); padding: .35rem .4rem; border-bottom: 1px solid var(--linie); }
.rabattrisiko td { padding: .5rem .4rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
.rabattrisiko .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rabattrisiko tr.rot td { background: var(--fehler-blass); }
.rabatt-bestaetigen { border-color: var(--linie); background: var(--flaeche-leise); padding: .65rem .8rem; }
.rabatt-fensterfuss { display: flex; gap: .6rem; align-items: center; justify-content: flex-end;
  flex-wrap: wrap; margin-top: 1rem; }
.rabatt-fensterfuss .fuellt { flex: 1; }

/* Preisliste: Optionen links, Vorschau rechts */
dialog.fenster.preislistenfenster { width: min(1120px, calc(100vw - 2rem)); }
.preisliste-wahl { display: grid; grid-template-columns: 280px 1fr; gap: 1.2rem; align-items: start; }
.preisliste-wahl .rabatt-fensterfuss { grid-column: 1 / -1; margin-top: 0; }
.preisliste-optionen .feld { margin-bottom: .8rem; }
.preisliste-optionen .beschriftung { display: block; font-size: .8rem; font-weight: 700; margin-bottom: .3rem; }
.preisliste-buehne { background: var(--grund-tief, #e7eef2); border-radius: var(--radius-klein); overflow: hidden; }
.preisliste-buehne iframe { display: block; width: 100%; height: 62vh; border: 0; }
@media (max-width: 760px) { .preisliste-wahl { grid-template-columns: 1fr; } }

/* ---------- Gebietszuschläge */
.gz-titel { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; margin: .2rem 0 .6rem; }
.gz-titel h2 { margin: 0; font-size: 1.05rem; }
.gz-titel .fuellt, .gz-leiste .fuellt { flex: 1; }
.gz-satz td { background: var(--flaeche-leise); }
.gz-satz.leise td { color: var(--text-leise); font-size: .8rem; }
.gz-min { color: var(--text-still); }
.gz-md { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.gz-md > .karte { margin: 0; }
.gz-laender { display: flex; flex-direction: column; max-height: 560px; overflow: auto; }
.gz-laender a { display: flex; justify-content: space-between; gap: .5rem; padding: .45rem .6rem; border-radius: var(--radius-klein);
  font-size: .87rem; color: inherit; text-decoration: none; }
.gz-laender a:hover { background: var(--flaeche-leise); }
.gz-laender a.aktiv { background: var(--blau-blass); color: var(--blau-tief); font-weight: 700; }
.gz-leiste { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .8rem; }
.gz-treffer td { background: var(--gruen-blass); }
.gz-treffer td:first-child { box-shadow: inset 4px 0 0 var(--gruen-dunkel); }
.gz-delta { display: inline-block; font-size: .74rem; font-weight: 700; padding: .1rem .45rem; border-radius: 99px;
  background: var(--grund-tief); color: var(--text-leise); white-space: nowrap; }
.gz-delta.plus { background: var(--gruen-blass); color: var(--gruen-dunkel); }
.gz-delta.minus { background: var(--warn-blass); color: rgb(112, 71, 10); }
.gz-zahlen { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; margin: .8rem 0; }
.gz-zahlen > div { border: 1px solid var(--linie); border-radius: var(--radius-klein); padding: .55rem .7rem; }
.gz-zahlen b { font-size: 1.3rem; color: var(--blau-tief); margin-right: .25rem; }
.gz-zahlen b.gz-gruen { color: var(--gruen-dunkel); }
.gz-zahlen b.gz-gelb { color: var(--warn); }
.gz-zahlen b.gz-rot { color: var(--fehler); }
.gz-seg { display: inline-flex; background: var(--grund); border: 1px solid var(--linie); border-radius: 99px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.gz-seg button { border: 0; background: none; padding: .3rem .8rem; border-radius: 99px; font: inherit; font-size: .83rem;
  font-weight: 600; color: var(--text-leise); cursor: pointer; }
.gz-seg button.an { background: var(--flaeche); color: var(--blau-tief); box-shadow: var(--schatten-flach); }
.gz-aenderungen { max-height: 340px; overflow: auto; }
@media (max-width: 900px) {
  .gz-md { grid-template-columns: 1fr; }
  .gz-laender { max-height: 220px; }
  .gz-zahlen { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Buchung: Was fehlt ----------
   Nach dem Klick auf „Buchen“ oben links alles, was fehlt; jeder Eintrag
   führt zu seinem Feld, das kurz aufleuchtet. */
.luecken-uebersicht {
  margin: 0 0 1rem; padding: .9rem 1rem .7rem; border: 1px solid var(--fehler-rand);
  border-left: 4px solid var(--fehler); border-radius: var(--radius); background: var(--flaeche);
  box-shadow: var(--schatten); scroll-margin-top: 84px;
}
.luecken-uebersicht.fertig { border-color: var(--gruen-rand); border-left-color: var(--gruen); }
.lu-kopf { display: flex; gap: .6rem; align-items: flex-start; color: var(--fehler); }
.lu-kopf strong { color: var(--text); }
.lu-kopf .icon { width: 1.15rem; height: 1.15rem; margin-top: .1rem; flex: none; }
.luecken-uebersicht.fertig .lu-kopf { color: var(--gruen-dunkel); }
.luecken-liste {
  list-style: none; margin: .35rem 0 0 1.4rem; padding: 0; display: grid; gap: .15rem;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.luecke-link {
  display: flex; align-items: center; gap: .5rem; width: 100%; text-align: left;
  padding: .38rem .55rem; border: 0; border-radius: 7px; background: transparent;
  font: inherit; font-size: .82rem; line-height: 1.3; color: var(--blau-dunkel); cursor: pointer;
}
.luecke-link > span { flex: 1; }
.luecke-link strong { font-weight: 700; color: var(--blau-tief); }
.luecke-link .icon { width: 13px; height: 13px; flex: none; opacity: .55; transition: transform .12s; }
.luecke-link:hover, .luecke-link:focus-visible { background: var(--blau-blass); outline: none; }
.luecke-link:hover .icon, .luecke-link:focus-visible .icon { opacity: 1; transform: translateX(2px); }
.luecke-schritt {
  display: block; font-size: .66rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-still); margin-bottom: .05rem;
}
.feldfehler { margin: .25rem 0 0; font-size: .76rem; font-weight: 600; color: var(--fehler); }
.luecke-puls { animation: luecke-puls 2.2s ease-out; border-radius: 8px; }
@keyframes luecke-puls {
  0%, 30% { box-shadow: 0 0 0 4px rgba(168, 105, 10, .35); background: var(--warn-blass); }
  100% { box-shadow: 0 0 0 4px rgba(168, 105, 10, 0); }
}

/* ---------- Buchung: Entwurf im Tab ----------
   Punkt am Buchungsknopf auf anderen Seiten; bei der Rückkehr die Frage. */
.buchenknopf { position: relative; }
.entwurf-marke {
  position: absolute; top: -4px; right: -4px; width: 12px; height: 12px; border-radius: 50%;
  background: #f2a33a; box-shadow: 0 0 0 2px #fff;
}
dialog.entwurf-frage form { padding: 1.4rem 1.5rem 1.2rem; }
dialog.entwurf-frage h2 { margin: 0 0 .3rem; font-size: 1.2rem; }
dialog.entwurf-frage .knopfreihe { justify-content: flex-end; }
.entwurf-kurz {
  display: flex; gap: .7rem; align-items: center; margin: .8rem 0 1.1rem; padding: .75rem .9rem;
  border: 1px solid var(--linie); border-radius: 10px; background: var(--flaeche-leise);
}
.entwurf-kurz > .icon { width: 1.4rem; height: 1.4rem; color: var(--blau); }

/* ---- Änderungsprotokoll ---------------------------------------------- */
.aenderungen td { vertical-align: top; }
.aenderungen details > summary { cursor: pointer; list-style: none; }
.aenderungen details > summary::-webkit-details-marker { display: none; }
.aenderungen details > summary .ae-titel { display: block; font-size: .9rem; }
.aenderungen details > summary::after { content: "Details ▸"; font-size: .74rem; color: var(--blau); }
.aenderungen details[open] > summary::after { content: "Details ▾"; }
.ae-teil { margin-top: .55rem; }
.ae-teilkopf { font-size: .8rem; font-weight: 700; color: var(--text-leise); margin-bottom: .2rem; }
.ae-diff { width: 100%; font-size: .82rem; border: 1px solid var(--linie); border-radius: var(--radius-klein); overflow: hidden; background: var(--flaeche); }
.ae-diff th { font-size: .66rem; padding: .3rem .6rem; background: var(--flaeche-leise); text-align: left; }
.ae-diff td { padding: .35rem .6rem; border-top: 1px solid var(--linie); word-break: break-word; }
.ae-diff td:first-child { color: var(--text-leise); width: 30%; }
.ae-diff .ae-alt { color: var(--fehler); text-decoration: line-through; }
.ae-diff .ae-neu { color: var(--gruen-dunkel); font-weight: 700; }
.ae-mini { list-style: none; margin: 0; padding: 0; font-size: .82rem; }
.ae-mini li { padding: .45rem 0; border-top: 1px solid var(--linie); display: grid; grid-template-columns: 1fr auto; gap: .1rem .5rem; }
.ae-mini li:first-child { border-top: 0; }
.ae-mini .wer { grid-column: 1 / 3; font-size: .72rem; color: var(--text-still); }

/* ---- Adresse: drei Zeilen, Zähler, Provinz (Feedback Testlauf 30.11.) ---- */
.adresszeilen input + input { margin-top: .35rem; }
.adresszeilen .optional { margin-left: .25rem; }
.adresshinweis:empty { display: none; }
.adresshinweis.warn { color: var(--warn); }
.zeichen { font-size: .72rem; color: var(--text-still); text-align: right; margin: .1rem 0 0; font-variant-numeric: tabular-nums; }
.zeichen.voll { color: var(--warn); font-weight: 600; }
.zeichen.zuviel { color: var(--fehler); font-weight: 600; }
.provinzfeld { max-width: 22rem; }

/* ---- Seite Abholungen ---- */
.abholtabelle td { vertical-align: top; }
.abholaktionen { display: inline-flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
.import-uebergabe { border: 0; padding: 0; margin: 0 0 .9rem; }
.import-uebergabe legend { font-weight: 700; padding: 0; }
.ue-karte:has(input:checked) { border-color: var(--gruen); background: var(--gruen-blass); box-shadow: 0 0 0 3px rgba(116, 172, 37, .14); }
.ue-karte:has(input:checked) .ue-ikon { background: var(--gruen-rand); color: var(--gruen-dunkel); }
.ue-karte:has(input:focus-visible) { box-shadow: var(--ring); }

/* ============================================ Kundenliste: Suche */

/* Suchfeld im Kopf der Karte; kundenliste.js filtert beim Tippen. */
.kundensuche { position: relative; width: min(380px, 100%); margin: 0; }
.kundensuche .icon.lupe {
  position: absolute; left: .7rem; top: 50%; transform: translateY(-50%);
  color: var(--text-still); pointer-events: none;
}
.kundensuche input[type="search"] {
  width: 100%; padding-left: 2.15rem; padding-right: 2.3rem; margin: 0;
}
.kundensuche input[type="search"]::-webkit-search-cancel-button { display: none; }
.kundensuche .taste, .kundensuche .leeren {
  position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
}
.kundensuche .taste {
  min-width: 1.35rem; padding: .05rem .35rem; border: 1px solid var(--linie-stark); border-radius: var(--radius-winzig);
  font: 600 .72rem/1.2 inherit; color: var(--text-still); background: var(--flaeche-leise); text-align: center;
  pointer-events: none;
}
.kundensuche .leeren {
  display: inline-flex; text-decoration: none; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem;
  border: 0; border-radius: 999px; background: none; color: var(--text-still); cursor: pointer; padding: 0;
}
.kundensuche .leeren:hover { background: var(--grund-tief); color: var(--blau-dunkel); }
.kundensuche .leeren .icon { width: 14px; height: 14px; }
.kundensuche.hat-text .taste, .kundensuche:not(.hat-text) .leeren { display: none; }

/* Überschrift: Treffer groß, die Gesamtzahl daneben leise. */
.kundenzahl .gesamt { font-weight: 500; color: var(--text-leise); font-size: .9em; margin-left: .3rem; }

/* Treffer markieren */
.kundenliste mark {
  background: #fff1b8; color: inherit; border-radius: 3px; padding: 0 .08em; margin: 0 -.08em;
  box-shadow: 0 0 0 1px #f2dc85 inset;
}
.kundenliste .treffer-feld { display: block; margin-top: .1rem; }
.kundenliste .treffer-feld .feldname { color: var(--text-still); }

/* Keine Treffer */
.kundenliste tr.ohne-treffer td { padding: 2.2rem 1rem 2.4rem; text-align: center; }
.ohne-treffer .leer-ikon {
  display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem;
  border-radius: 999px; background: var(--grund); color: var(--text-still); margin-bottom: .6rem;
}
.ohne-treffer .leer-titel { display: block; font-weight: 700; color: var(--blau-tief); font-size: 1rem; }
.ohne-treffer .leer-text { display: block; color: var(--text-leise); font-size: .86rem; margin: .25rem auto .9rem; max-width: 34rem; }
.ohne-treffer .knopfreihe { justify-content: center; gap: .4rem; display: inline-flex; flex-wrap: wrap; }

/* ===================================== Kundenliste: Seitenwahl */

/* Eigene Klasse statt .blaettern: Diesen Namen setzt stil.css weiter unten ein
   zweites Mal für die kleinen Pfeile an Vertrag und Gebietszuschlägen; die
   zweite Regel machte die Kundenliste zur gequetschten Knopfreihe. */
.seitenwahl {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.25rem;
  flex-wrap: wrap; margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--linie);
  font-size: .86rem;
}
.seitenwahl-stand { color: var(--text-leise); }
.seitenwahl-stand strong { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.seitenwahl-knoepfe { display: inline-flex; align-items: center; gap: .2rem; }

.sw {
  display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
  min-width: 2.15rem; height: 2.15rem; padding: 0 .55rem;
  border: 1px solid transparent; border-radius: var(--radius-klein); background: none;
  font: inherit; font-weight: 600; color: var(--text); text-decoration: none; cursor: pointer;
  font-variant-numeric: tabular-nums; transition: background var(--tempo), color var(--tempo);
}
.sw:hover { background: var(--grund); color: var(--blau-dunkel); }
.sw:focus-visible { outline: none; box-shadow: var(--ring); }
.sw .icon { width: 16px; height: 16px; }
.sw.rand { border-color: var(--linie-stark); color: var(--text-leise); }
.sw.rand:hover { border-color: var(--blau-rand); background: var(--blau-blass); color: var(--blau-dunkel); }
.sw.aktuell, .sw.aktuell:hover { background: var(--blau-tief); color: #fff; cursor: default; }
.sw[aria-disabled="true"], .sw[aria-disabled="true"]:hover {
  opacity: .38; background: none; cursor: default; border-color: var(--linie);
}
.sw.luecke { min-width: 1.4rem; padding: 0; color: var(--text-still); cursor: default; letter-spacing: .08em; }
.sw.luecke:hover { background: none; }
.sw-trenner { width: .35rem; }

@media (max-width: 720px) {
  .seitenwahl { justify-content: center; }
  .sw .text { display: none; }
  .kundensuche { width: 100%; }
}

/* Abrechnungslauf: Stand des UPS-Abgleichs je Kunde */
.lauf-tabelle .lauf-status { min-width: 15rem; }
.lauf-tabelle .lauf-status .sehr-leise { margin-top: .2rem; }
.lauf-freigabe { display: inline-flex; align-items: center; gap: .35rem; margin-top: .35rem; font-size: .8rem; color: var(--text-leise, #5b6470); cursor: pointer; }

/* E-Rechnung auf der Rechnungsseite */
.erechnung-knoepfe { display: flex; gap: .4rem; flex-wrap: wrap; }
.erechnung-knoepfe .knopf:first-child { flex: 1; justify-content: center; }
.erechnung-storno { margin-top: .7rem; padding-top: .6rem; border-top: 1px solid var(--linie); display: grid; gap: .4rem; }
.erechnung-zwischen { margin: .9rem 0 .35rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-leise); }
.erechnung-abrufe, .erechnung-pruefung { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: .82rem; }
.erechnung-abrufe li { display: flex; justify-content: space-between; gap: .5rem; }
.erechnung-abrufe .wer { color: var(--text-leise); font-size: .78rem; text-align: right; }
.erechnung-pruefung li { display: grid; grid-template-columns: 16px 1fr; gap: .35rem; align-items: start; line-height: 1.35; }
.erechnung-pruefung .icon { width: 14px; height: 14px; margin-top: 2px; }
.erechnung-pruefung .ok .icon { color: var(--gruen-dunkel, #4d7a14); }
.erechnung-pruefung .warn .icon { color: var(--warn, #b45309); }
.erechnung-pruefung .fehler { color: var(--fehler, #b91c1c); }
.erechnung-pruefung .info .icon { color: var(--text-leise); }
