/* ============================================================================
 * app.css – Kalkulator · Entwurf 2c (Desktop) und 2d (Mobile)
 *
 * Ein System für beides: 8-px-Raster (Abstände 8/12/16/24), feste Spaltenbreiten
 * statt auto-fit, 44 px Feldhöhe überall, EINE Akzentfarbe plus Graustufen.
 * Zahlen laufen in Space Grotesk mit Tabellenziffern, damit Beträge untereinander
 * stehen. Die Aufschläge sind Stufen eines Wasserfalls, keine gleichrangigen
 * Zahlenfelder.
 *
 * FARBEN: Es gibt keine fest verdrahtete Farbe. --ck-acc und die drei
 * abgeleiteten Tonstufen setzt app.js zur Laufzeit aus der Kundenfarbe (--acc);
 * ohne hinterlegte Farbe greift das Standardblau #189eff.
 *
 * THEMES: Das Dashboard kennt body.lightmode. Der Entwurf ist hell gezeichnet,
 * die Standardansicht ist dunkel – beide Fassungen stehen hier, gleiche Struktur,
 * gleiche Maße, nur andere Flächen.
 * ========================================================================== */

#calc-view, .ckm {
  /* Grautöne dunkel (Standard) */
  --ck-card:  #141d28;
  --ck-card2: rgba(255, 255, 255, .045);
  --ck-card3: rgba(255, 255, 255, .07);
  --ck-line:  rgba(255, 255, 255, .07);
  --ck-tx:    #e6edf6;
  --ck-tx2:   #8a96a8;
  --ck-tx3:   #6b7a92;
  --ck-bar1:  rgba(255, 255, 255, .24);
  --ck-bar2:  rgba(255, 255, 255, .13);
  --ck-warn-bg: rgba(251, 191, 36, .14);
  --ck-warn-tx: #fbbf24;
  --ck-fld:   rgba(255, 255, 255, .04);
  /* Grün/Rot sind hier bewusst FEST und folgen nicht der Kundenfarbe:
     sie sagen "günstiger" bzw. "teurer" aus. Würden sie mit der Marke
     mitlaufen, wäre die Aussage bei einer roten Akzentfarbe verloren. */
  --ck-plus-bg: rgba(37, 138, 50, .16); --ck-plus-tx: #4ade80;
  --ck-minus-bg: rgba(196, 26, 58, .16); --ck-minus-tx: #f87171;
}
/* .ck-light setzt das Modul in die helle Fassung, auch wo es kein
   body.lightmode gibt – etwa in der durchgehend hellen mobilen App. */
body.lightmode #calc-view, body.lightmode .ckm, #calc-view.ck-light, .ck-light .ckm {
  --ck-card:  #ffffff;
  --ck-card2: #f7f8fa;
  --ck-card3: #f4f6f9;
  --ck-line:  #e3e7ed;
  --ck-tx:    #1d2a3d;
  --ck-tx2:   #52667c;
  --ck-tx3:   #9aa5b5;
  --ck-bar1:  #b9c4ce;
  --ck-bar2:  #d3dae2;
  --ck-warn-bg: #fff4dc;
  --ck-warn-tx: #c4660a;
  --ck-fld:   #ffffff;
  --ck-plus-bg: #e7f6ea;  --ck-plus-tx: #258a32;
  --ck-minus-bg: #fdeaee; --ck-minus-tx: #c41a3a;
}

/* Zahlen: Tabellenziffern, damit Beträge spaltenweise fluchten */
#calc-view .ck-n, .ckm .ck-n {
  font-family: 'Space Grotesk', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   DESKTOP · 2c – drei Spalten, Verlauf immer sichtbar
   ========================================================================== */
#calc-view .ck-wrap {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr) 372px;
  gap: 16px;
  align-items: start;
}
@media (max-width: 1400px) { #calc-view .ck-wrap { grid-template-columns: 240px minmax(0, 1fr) 336px; } }
@media (max-width: 1180px) { #calc-view .ck-wrap { grid-template-columns: minmax(0, 1fr) 336px; }
                             #calc-view .ck-hist { display: none; } }
@media (max-width: 900px)  { #calc-view .ck-wrap { grid-template-columns: minmax(0, 1fr); } }

#calc-view .ck-card {
  background: var(--ck-card);
  border: 1px solid var(--ck-line);
  border-radius: 16px;
}
#calc-view .ck-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
#calc-view .ck-right { position: sticky; top: 16px; }

#calc-view .ck-lbl {
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ck-tx2);
}
#calc-view .ck-flbl {
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ck-tx3);
}

/* ---- Spalte 1: Verlauf ---- */
#calc-view .ck-hist { display: flex; flex-direction: column; overflow: hidden; align-self: stretch; }
#calc-view .ck-hist-h { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
#calc-view .ck-hist-t { display: flex; justify-content: space-between; align-items: baseline; }
#calc-view .ck-search {
  height: 36px; display: flex; align-items: center; gap: 8px;
  background: var(--ck-card3); border-radius: 10px; padding: 0 12px;
}
#calc-view .ck-search input, #calc-modal .ck-search input {
  flex: 1; min-width: 0; background: none; border: 0; border-radius: 0; padding: 0; margin: 0;
  box-shadow: none; outline: none;
  color: var(--ck-tx); font-size: 12.5px; height: 100%;
}
#calc-view .ck-search input:focus, #calc-modal .ck-search input:focus {
  box-shadow: none; border: 0; background: none;
}
#calc-view .ck-hist-l { flex: 1; overflow-y: auto; max-height: 46vh; }
#calc-view .ck-hrow {
  padding: 14px 16px; display: flex; flex-direction: column; gap: 4px;
  cursor: pointer; border-left: 3px solid transparent; position: relative;
}
#calc-view .ck-hrow:hover { background: var(--ck-card2); }
/* Stand gegenüber dem Wettbewerb auf einen Blick: grün = wir sind günstiger,
   rot = wir sind teurer. Die ausgewählte Zeile behält zusätzlich ihren
   Akzentrahmen, damit beide Aussagen nebeneinander lesbar bleiben. */
#calc-view .ck-hrow.plus  { background: var(--ck-plus-bg);  border-left-color: var(--ck-plus-tx); }
#calc-view .ck-hrow.minus { background: var(--ck-minus-bg); border-left-color: var(--ck-minus-tx); }
#calc-view .ck-hrow.plus:hover  { filter: brightness(.97); }
#calc-view .ck-hrow.minus:hover { filter: brightness(.97); }
#calc-view .ck-hrow.on.plus, #calc-view .ck-hrow.on.minus {
  box-shadow: inset 3px 0 0 var(--ck-acc);
}
.ck-vsflag {
  display: inline-flex; align-items: center; height: 16px; padding: 0 6px;
  border-radius: 5px; font-size: 10px; font-weight: 800; white-space: nowrap; flex-shrink: 0;
}
#calc-view .ck-hrow.plus  .ck-vsflag { background: var(--ck-plus-tx);  color: #fff; }
#calc-view .ck-hrow.minus .ck-vsflag { background: var(--ck-minus-tx); color: #fff; }
/* Löschen bleibt zurückhaltend: erscheint erst beim Überfahren der Zeile,
   damit die Liste ruhig bleibt. Auf Touch-Geräten ist es dauerhaft sichtbar,
   weil es dort kein Überfahren gibt. */
#calc-view .ck-hdel {
  position: absolute; top: 50%; right: 10px; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 8px; border: 0; padding: 0;
  background: var(--ck-card3); color: var(--ck-tx3);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; transition: opacity .12s, color .12s;
}
#calc-view .ck-hrow:hover .ck-hdel { opacity: 1; }
#calc-view .ck-hdel:hover { color: #e5484d; }
@media (hover: none) { #calc-view .ck-hdel { opacity: 1; } }
#calc-view .ck-hrow.on { background: var(--ck-acc-soft); border-left-color: var(--ck-acc); }
#calc-view .ck-hrow-t { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
#calc-view .ck-hrow-n {
  font-size: 12.5px; font-weight: 700; color: var(--ck-tx);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#calc-view .ck-hrow.on .ck-hrow-n { color: var(--ck-acc-tx); }
#calc-view .ck-hrow-p { font-size: 12.5px; font-weight: 700; color: var(--ck-tx2); white-space: nowrap; }
#calc-view .ck-hrow.on .ck-hrow-p { color: var(--ck-acc); font-weight: 800; }
#calc-view .ck-hrow-m {
  font-size: 10.5px; color: var(--ck-tx3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#calc-view .ck-hist-f {
  margin-top: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px;
  border-top: 1px solid var(--ck-line);
}

.ck-badge {
  display: inline-flex; align-items: center; height: 16px; padding: 0 6px;
  border-radius: 5px; font-size: 9px; font-weight: 800; letter-spacing: .04em;
  background: var(--ck-warn-bg); color: var(--ck-warn-tx); white-space: nowrap;
}
.ck-badge-acc { background: var(--ck-acc-soft); color: var(--ck-acc); }

/* ---- Knöpfe ---- */
.ck-btn {
  height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ck-fld); border: 1px solid var(--ck-line); border-radius: 10px;
  font-size: 12px; font-weight: 600; color: var(--ck-tx); cursor: pointer;
  font-family: inherit; padding: 0 14px; transition: border-color .15s, background .15s;
}
.ck-btn:hover { border-color: var(--ck-acc); }
.ck-btn-pri {
  height: 48px; background: var(--ck-acc); color: var(--ck-acc-on);
  border: 0; border-radius: 14px; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; font-family: inherit; width: 100%;
}
.ck-btn-pri:hover { filter: brightness(1.08); }
.ck-btn-pri:disabled { opacity: .5; cursor: default; filter: none; }

/* ---- Segmentierte Umschalter ---- */
.ck-seg {
  height: 44px; display: flex; align-items: center; padding: 4px; gap: 4px;
  background: var(--ck-card3); border-radius: 12px; flex-shrink: 0;
}
.ck-seg > button {
  height: 100%; padding: 0 14px; display: flex; align-items: center; justify-content: center;
  border: 0; background: none; border-radius: 8px; cursor: pointer;
  font-size: 12px; font-weight: 700; color: var(--ck-tx2); font-family: inherit;
  white-space: nowrap;
}
.ck-seg > button.on { background: var(--ck-acc); color: var(--ck-acc-on); }
.ck-seg-sm { height: 40px; padding: 3px; border-radius: 10px; }
.ck-seg-sm > button { flex: 1; padding: 0 8px; border-radius: 7px; }
.ck-seg-sm > button.on { background: var(--ck-fld); color: var(--ck-tx); }

/* ---- Felder ---- */
.ck-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ck-fbox {
  height: 44px; display: flex; align-items: center; gap: 8px;
  background: var(--ck-fld); border: 1px solid var(--ck-line);
  border-radius: 12px; padding: 0 12px; min-width: 0;
  /* overflow riegelt ab, dass der Einheiten-Chip oder ein langer Wert über den
     Kartenrand hinausläuft – im Entwurf waren genau dort Felder abgeschnitten.
     Der Fokusrahmen liegt als box-shadow außen und wird davon nicht berührt. */
  overflow: hidden;
}
.ck-fbox:focus-within { border-color: var(--ck-acc); box-shadow: 0 0 0 3px var(--ck-acc-ring); }
/* Die Eingabe füllt den Rahmen aus, statt einen zweiten Kasten hineinzusetzen.
   Der ID-Präfix ist nötig: das Dashboard bringt mit "body.lightmode input" eine
   Regel höherer Spezifität mit, die einem schlichten ".ck-fbox > input" sonst
   Hintergrund, Rahmen und Innenabstand wieder aufzwingt – daher der Kasten im
   Kasten. Dasselbe gilt in der App für deren eigene Formularregeln. */
#calc-view .ck-fbox > input,
#calc-modal .ck-fbox > input {
  flex: 1; min-width: 0; width: 100%; height: 100%;
  background: none; border: 0; border-radius: 0; padding: 0; margin: 0; box-shadow: none;
  color: var(--ck-tx); font-size: 15px; font-weight: 700; font-family: 'Space Grotesk', inherit;
  font-variant-numeric: tabular-nums; outline: none;
}
#calc-view .ck-fbox > input:focus,
#calc-modal .ck-fbox > input:focus { box-shadow: none; border: 0; background: none; }
#calc-view .ck-fbox > input::placeholder,
#calc-modal .ck-fbox > input::placeholder { color: var(--ck-tx3); font-weight: 500; }
#calc-view .ck-fbox > input::-webkit-outer-spin-button,
#calc-view .ck-fbox > input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#calc-view .ck-fbox > input[type=number] { -moz-appearance: textfield; }
#calc-modal .ck-fbox > input::-webkit-outer-spin-button,
#calc-modal .ck-fbox > input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ck-suf { font-size: 12px; color: var(--ck-tx3); flex-shrink: 0; }
.ck-fbox-ro { background: var(--ck-card2); justify-content: space-between; }
.ck-fbox-ro > span:first-child { font-size: 15px; font-weight: 700; color: var(--ck-tx); }
/* Einheiten-Chip rechts im Feld – darf nie über den Kartenrand hinauslaufen */
.ck-unit {
  height: 42px; margin: -1px -12px -1px 0; padding: 0 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ck-card3); border-radius: 0 11px 11px 0;
  font-size: 13px; font-weight: 700; color: var(--ck-tx2); flex-shrink: 0;
}
#calc-view .ck-unit input {
  width: 34px; background: none; border: 0; border-radius: 0; padding: 0; margin: 0;
  height: 100%; text-align: center; box-shadow: none; outline: none;
  color: var(--ck-tx2); font-size: 13px; font-weight: 700;
}
#calc-view .ck-unit input:focus { box-shadow: none; border: 0; background: none; }

#calc-view .ck-pad { padding: 20px; display: flex; flex-direction: column; gap: 18px; }
#calc-view .ck-pad-s { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
#calc-view .ck-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
#calc-view .ck-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 780px) {
  #calc-view .ck-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #calc-view .ck-2 { grid-template-columns: minmax(0, 1fr); }
}
/* Kopfzeile der Eingabekarte: Name links, Umschalter rechts. Wird es zu eng,
   rutscht der Umschalter in die zweite Zeile, statt aus der Karte zu laufen. */
#calc-view .ck-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
#calc-view .ck-head > .ck-fbox { flex: 1 1 220px; min-width: 0; }
#calc-view .ck-head > .ck-seg { flex: 0 1 auto; max-width: 100%; overflow: hidden; }

/* ---- Aufschläge als Schieberegler ---- */
.ck-sliders {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  padding: 16px; background: var(--ck-card2); border-radius: 14px;
}
@media (max-width: 680px) { .ck-sliders { grid-template-columns: minmax(0, 1fr); } }
.ck-sl { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ck-sl-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ck-sl-l { font-size: 11.5px; font-weight: 700; color: var(--ck-tx2); }
.ck-sl-v { font-size: 14px; font-weight: 800; color: var(--ck-tx); }
.ck-sl.off .ck-sl-l, .ck-sl.off .ck-sl-v, .ck-sl.off .ck-sl-e { color: var(--ck-tx3); }
.ck-sl-e { font-size: 11px; color: var(--ck-tx3); }
.ck-sl.hot .ck-sl-v { color: var(--ck-acc); }
.ck-sl.hot .ck-sl-e { color: var(--ck-acc); font-weight: 700; }
#calc-view .ck-sl input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px;
  padding: 0; margin: 0; border: 0; box-shadow: none;
  background: var(--ck-track); border-radius: 999px; outline: none; cursor: pointer;
}
#calc-view .ck-sl input[type=range]:focus { box-shadow: none; }
.ck-sl input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 1px solid var(--ck-line); box-shadow: 0 1px 3px rgba(0,0,0,.25); cursor: grab;
}
.ck-sl input[type=range]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  border: 1px solid var(--ck-line); box-shadow: 0 1px 3px rgba(0,0,0,.25); cursor: grab;
}

/* ---- Wasserfall ---- */
.ck-wf-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ck-wf {
  display: flex; height: 44px; border-radius: 10px; overflow: hidden;
  background: var(--ck-card2);
}
.ck-wf > div { height: 100%; display: flex; align-items: center; min-width: 0; transition: width .18s; }
.ck-wf-ek   { background: var(--ck-bar1); padding-left: 12px; }
.ck-wf-ver  { background: var(--ck-bar2); }
.ck-wf-mkt  { background: var(--ck-acc-mid); }
.ck-wf-mrg  { background: var(--ck-acc); justify-content: flex-end; padding-right: 12px; }
.ck-wf-auf  { background: var(--ck-acc-dark); }
.ck-wf span { font-size: 12px; font-weight: 800; white-space: nowrap; }
.ck-wf-ek span  { color: var(--ck-tx); }
.ck-wf-mrg span { color: var(--ck-acc-on); }
.ck-leg {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  font-size: 10.5px; font-weight: 600; color: var(--ck-tx3);
}
.ck-leg > span { display: flex; align-items: center; gap: 5px; }
.ck-leg i { width: 8px; height: 8px; border-radius: 2px; display: block; }
.ck-leg-sum { font-weight: 800; color: var(--ck-acc); margin-left: auto; }

/* ---- Konkurrenz ---- */
/* minmax(0,…) statt 1fr: sonst wächst eine Spalte an ihrem längsten Betrag
   auf und schiebt die zweite über den Kartenrand – im Entwurf war genau das
   an mehreren Stellen zu sehen. */
/* Preisvergleich als eigene, breite Zeile unter der Rechnung – so bleiben die
   Karten "Verkauf" und "Konkurrenz" gleich hoch und das Ergebnis steht dort,
   wo man es sucht: direkt bei den Zahlen. */
.ck-vsbar {
  background: var(--ck-card); border: 1px solid var(--ck-line); border-radius: 16px;
  padding: 16px 18px; display: flex; flex-direction: column; gap: 12px;
  border-left: 4px solid var(--vs, var(--ck-acc));
}
.ck-vsbar-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ck-vsbar-v { font-size: 16px; font-weight: 800; color: var(--vs, var(--ck-acc)); }
@media (max-width: 520px) { .ck-vsbar-v { font-size: 14px; } }

.ck-vs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.ck-vs-c { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ck-vs-l { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ck-tx3); }
.ck-vs-v { font-size: 17px; font-weight: 800; }
.ck-vs-bar { height: 6px; border-radius: 999px; }

/* ---- Ergebniskarte (dunkel, aus der Akzentfarbe) ---- */
.ck-hero {
  background: var(--ck-acc-dark); border-radius: 16px; padding: 20px;
  display: flex; flex-direction: column; gap: 16px;
}
.ck-hero-l { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.ck-hero-v { font-size: 40px; font-weight: 700; color: #fff; line-height: 1; }
.ck-hero-s { font-size: 12.5px; color: rgba(255,255,255,.65); }
.ck-hero-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.ck-hero-t {
  background: rgba(255,255,255,.08); border-radius: 10px; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.ck-hero-t span:first-child { font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.ck-hero-t span:last-child { font-size: 15px; font-weight: 700; color: #fff; }

/* ---- Summen ---- */
.ck-sum { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 12.5px; color: var(--ck-tx2); }
.ck-sum b { color: var(--ck-tx); font-weight: 700; }
.ck-sum + .ck-sum { border-top: 1px solid var(--ck-line); }
.ck-sum-end { padding: 12px 0 0; font-size: 13.5px; border-top: 1px solid var(--ck-line); }
.ck-sum-end span { font-weight: 800; color: var(--ck-tx); }
.ck-sum-end b { color: var(--ck-acc); font-size: 17px; }

/* ---- Schalter ---- */
.ck-tog { width: 46px; height: 28px; border-radius: 999px; background: var(--ck-card3); position: relative; flex-shrink: 0; cursor: pointer; border: 0; padding: 0; transition: background .15s; }
.ck-tog.on { background: var(--ck-acc); }
.ck-tog i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left .15s; display: block; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.ck-tog.on i { left: 21px; }
.ck-tog-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ck-tog-row > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ck-tog-row b { font-size: 12px; font-weight: 700; color: var(--ck-tx); }
.ck-tog-row small { font-size: 10.5px; color: var(--ck-tx3); }
.ck-actions { display: flex; gap: 8px; }
.ck-actions > button { flex: 1; height: 40px; border-radius: 12px; font-size: 12.5px; }

/* Notizfeld im Zusatz-Dialog – gleiche Behandlung wie die übrigen Eingaben */
#calc-modal textarea {
  background: var(--ck-fld); border: 1px solid var(--ck-line); border-radius: 12px;
  padding: 10px 12px; color: var(--ck-tx); font-family: inherit; font-size: 13px;
  width: 100%; box-shadow: none; outline: none;
}
#calc-modal textarea:focus { border-color: var(--ck-acc); box-shadow: 0 0 0 3px var(--ck-acc-ring); }

.ck-hint { font-size: 11px; line-height: 1.55; color: var(--ck-tx3); }
.ck-empty { padding: 26px 16px; text-align: center; font-size: 12px; color: var(--ck-tx3); }

/* ==========================================================================
   MOBILE · 2d – Wizard in drei Schritten
   ========================================================================== */
.ckm { display: flex; flex-direction: column; gap: 12px; min-height: 60vh; }
.ckm-top { display: flex; align-items: center; gap: 12px; }
.ckm-back {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px;
  background: var(--ck-card); border: 1px solid var(--ck-line);
  display: flex; align-items: center; justify-content: center;
  color: var(--ck-tx); cursor: pointer; padding: 0;
}
.ckm-ttl { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ckm-ttl b { font-size: 17px; font-weight: 700; color: var(--ck-tx); }
.ckm-ttl small { font-size: 11.5px; color: var(--ck-tx3); }
.ckm-prog { display: flex; gap: 6px; }
.ckm-prog i { flex: 1; height: 4px; border-radius: 999px; background: var(--ck-card3); display: block; }
.ckm-prog i.on { background: var(--ck-acc); }

.ckm-card {
  background: var(--ck-card); border: 1px solid var(--ck-line);
  border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 14px;
}
.ckm-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.ckm-row {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  background: var(--ck-card); border: 1px solid var(--ck-line);
  border-radius: 14px; font-size: 13px; color: var(--ck-tx);
  cursor: pointer; text-align: left; width: 100%; font-family: inherit;
}
.ckm-row-acc { background: var(--ck-acc-soft); border-color: transparent; color: var(--ck-acc-tx); }
.ckm-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ckm-row svg { flex-shrink: 0; opacity: .55; }

/* Fußleiste: Kennzahl links, Weiter rechts – klebt am unteren Rand */
.ckm-foot {
  position: sticky; bottom: 0; z-index: 5;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0 4px; margin-top: auto;
  background: linear-gradient(to top, var(--ck-foot) 62%, transparent);
}
.ckm-foot-kpi { display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; }
.ckm-foot-kpi small { font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ck-tx3); }
.ckm-foot-kpi b { font-size: 17px; font-weight: 800; color: var(--ck-tx); }
.ckm-foot .ck-btn-pri { width: auto; flex: 1; }

/* Verlaufsliste mobil */
.ckm-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.ckm-chip {
  height: 34px; padding: 0 14px; flex-shrink: 0; border-radius: 999px;
  background: var(--ck-card); border: 1px solid var(--ck-line);
  font-size: 12px; font-weight: 600; color: var(--ck-tx2);
  cursor: pointer; font-family: inherit; white-space: nowrap;
}
.ckm-chip.on { background: var(--ck-acc); border-color: transparent; color: var(--ck-acc-on); }
.ckm-warn {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--ck-warn-bg); border-radius: 14px;
}
.ckm-warn div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ckm-warn b { font-size: 12.5px; font-weight: 700; color: var(--ck-warn-tx); }
.ckm-warn small { font-size: 10.5px; color: var(--ck-tx2); }
.ckm-lcard {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--ck-card); border: 1px solid var(--ck-line);
  border-radius: 14px; cursor: pointer;
}
.ckm-lcard.plus  { background: var(--ck-plus-bg);  border-color: transparent; }
.ckm-lcard.minus { background: var(--ck-minus-bg); border-color: transparent; }
.ckm-lcard.plus  .ck-vsflag { background: var(--ck-plus-tx);  color: #fff; }
.ckm-lcard.minus .ck-vsflag { background: var(--ck-minus-tx); color: #fff; }
.ckm-lcard > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ckm-lcard b { font-size: 13.5px; font-weight: 700; color: var(--ck-tx); display: flex; align-items: center; gap: 6px; }
.ckm-lcard b span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ckm-lcard small { font-size: 10.5px; color: var(--ck-tx3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ckm-lp { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; gap: 2px; }
.ckm-lp small { font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ck-tx3); }
.ckm-lp b { font-size: 15px; font-weight: 800; color: var(--ck-tx); }
.ckm-del {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; border: 0; padding: 0;
  background: var(--ck-card3); color: var(--ck-tx3);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.ckm-del:active { color: #e5484d; }

/* Rechenweg mobil: Liste statt Balken */
.ckm-wf { display: flex; flex-direction: column; }
.ckm-wf-r { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 12.5px; color: var(--ck-tx2); }
.ckm-wf-r b { color: var(--ck-tx); font-weight: 700; }
.ckm-wf-r.sum { border-top: 1px solid var(--ck-line); border-bottom: 1px solid var(--ck-line); }
.ckm-wf-r.sum span, .ckm-wf-r.sum b { color: var(--ck-tx); font-weight: 700; }
.ckm-wf-r.fin b { color: var(--ck-acc); font-size: 14px; font-weight: 800; }
.ckm-wf-r.up b { color: var(--ck-acc); }

/* ==========================================================================
 * DESKTOP · Entwurf Standalone666
 *
 * Eigene Fassung der Desktop-Ansicht: eine Karte über die volle Segmenthöhe,
 * KPI-Band mit Wellen, links der Verlauf, rechts das Kalkulationsblatt.
 * Farben kommen aus der Akzentleiter des Dashboards (--acc … --acc4).
 * Der Rechenkern und die Mobilansicht bleiben davon unberührt.
 * ========================================================================== */

#calc-view.ck-desk{padding:0;gap:0;overflow:hidden}
body.lightmode #calc-view.ck-desk{background:#fff;border:1px solid #d8dde5;border-radius:24px;
  box-shadow:0 6px 18px rgba(28,40,60,.07);overflow:hidden;display:flex;flex-direction:column;
  height:var(--ck-seg-h,880px);min-height:690px}
body.lightmode #calc-view.ck-desk #calc-head{flex-shrink:0;display:flex;flex-direction:column}
body.lightmode #calc-view.ck-desk #calc-body{flex:1;min-height:0;display:grid;
  grid-template-columns:minmax(0,300px) minmax(0,1fr)}
@media(max-width:1100px){body.lightmode #calc-view.ck-desk #calc-body{grid-template-columns:minmax(0,240px) minmax(0,1fr)}}

/* ---------- Kopf ---------- */
body.lightmode .ck-d-head{display:flex;justify-content:space-between;align-items:center;gap:18px;
  flex-wrap:wrap;padding:20px 22px 16px;flex-shrink:0}
body.lightmode .ck-d-t{font-size:21px;font-weight:800;color:#1d2a3d;letter-spacing:-.02em;margin-bottom:3px}
body.lightmode .ck-d-s{font-size:12px;color:#8a96a8;font-weight:500}
body.lightmode .ck-d-acts{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
body.lightmode .ck-d-seg{display:flex;align-items:center;background:#f1f4f7;border-radius:999px;padding:3px;gap:2px}
body.lightmode .ck-d-pill{display:inline-flex;align-items:center;padding:7px 14px;border-radius:999px;
  font-size:10.5px;font-weight:700;letter-spacing:.04em;cursor:pointer;text-transform:uppercase;
  transition:all .15s;user-select:none;color:#6b7a8e;border:none;background:transparent;font-family:inherit}
body.lightmode .ck-d-pill.on{background:#fff;color:var(--acc);box-shadow:0 1px 4px rgba(28,40,60,.14)}
body.lightmode .ck-d-out{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid #d8dde5;
  border-radius:999px;padding:9px 15px;font-family:inherit;font-size:11px;font-weight:700;letter-spacing:.04em;
  color:#52667c;cursor:pointer;text-transform:uppercase;transition:all .15s}
body.lightmode .ck-d-out:hover{border-color:var(--acc);color:var(--acc)}
body.lightmode .ck-d-out.verknuepft{border-color:rgba(var(--acc-rgb),.4);color:var(--acc)}
body.lightmode .ck-d-acc{display:inline-flex;align-items:center;gap:8px;background:var(--acc);color:#fff;border:none;
  border-radius:999px;padding:10px 19px;font-family:inherit;font-size:11.5px;font-weight:700;letter-spacing:.05em;
  cursor:pointer;text-transform:uppercase;box-shadow:0 4px 14px rgba(var(--acc-rgb),.3);transition:filter .15s}
body.lightmode .ck-d-acc:hover{filter:brightness(1.18)}

/* ---------- KPI-Band ---------- */
body.lightmode .ck-kpis{min-width:0;max-width:100%;display:grid;grid-template-columns:repeat(4,minmax(176px,1fr));
  gap:10px;padding:14px 22px;border-top:1px solid #eef1f5;border-bottom:1px solid #eef1f5;
  background:#fbfcfd;flex-shrink:0;overflow-x:auto}
body.lightmode .ck-kpi{position:relative;overflow:hidden;border:1px solid #e4e9ef;border-radius:14px;
  box-shadow:0 1px 3px rgba(28,40,60,.04);padding:13px 16px;display:flex;align-items:center;min-height:80px}
body.lightmode .ck-kpi.k1{background:linear-gradient(112deg,rgba(var(--acc-rgb),.155) 0%,rgba(var(--acc-rgb),.05) 46%,#fff 86%)}
body.lightmode .ck-kpi.k2{background:linear-gradient(121deg,rgba(var(--acc2-rgb),.14) 0%,rgba(var(--acc2-rgb),.05) 46%,#fff 86%)}
body.lightmode .ck-kpi.k3{background:linear-gradient(130deg,rgba(var(--acc3-rgb),.125) 0%,rgba(var(--acc3-rgb),.05) 46%,#fff 86%)}
body.lightmode .ck-kpi.k4{background:linear-gradient(139deg,rgba(var(--acc4-rgb),.112) 0%,rgba(var(--acc4-rgb),.05) 46%,#fff 86%)}
body.lightmode .ck-wave{position:absolute;left:0;bottom:0;height:24px;overflow:hidden;pointer-events:none;
  transition:width .5s cubic-bezier(.2,.8,.25,1)}
body.lightmode .ck-wave svg{width:200%;height:100%;display:block;animation:waveShift 7.5s linear infinite}
body.lightmode .ck-wave.hinten svg{animation:waveShift2 12s linear infinite}
/* Startzustand wie im Dashboard: ohne Breite und Farbe lief die Welle bis zum
   Eintreffen der Zahlen ueber die volle Kachel und erbte das dunkle Textgrau. */
body.lightmode .ck-wave{width:8%;color:rgba(var(--acc-rgb),.46);
  background:linear-gradient(180deg,rgba(var(--acc-rgb),0) 0%,rgba(var(--acc-rgb),.285) 100%)}
body.lightmode .ck-wave.hinten{color:rgba(var(--acc-rgb),.22);
  background:linear-gradient(180deg,rgba(var(--acc-rgb),0) 0%,rgba(var(--acc-rgb),.136) 100%)}
body.lightmode .ck-kpi-in{position:relative;z-index:1;display:flex;align-items:center;gap:11px;min-width:0;width:100%}
body.lightmode .ck-kpi-l{font-size:9.5px;font-weight:700;letter-spacing:.1em;color:#8a96a8;text-transform:uppercase;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.lightmode .ck-kpi-v{display:flex;align-items:baseline;gap:7px;min-width:0}
body.lightmode .ck-kpi-n{font-size:21px;font-weight:800;letter-spacing:-.03em;font-family:'Space Grotesk',monospace;
  line-height:1.05;color:#1d2a3d}
body.lightmode .ck-kpi-b{font-size:9px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;
  border-radius:999px;padding:2px 8px;white-space:nowrap;flex-shrink:1;min-width:0;overflow:hidden;
  text-overflow:ellipsis;background:rgba(var(--acc-rgb),.08);color:var(--acc)}
body.lightmode .ck-kpi-h{position:relative;z-index:2;font-size:10px;font-weight:600;color:#52667c;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ---------- Verlauf ---------- */
body.lightmode .ck-vl{border-right:1px solid #eef1f5;display:flex;flex-direction:column;min-height:0;background:#fbfcfd}
body.lightmode .ck-vl-h{display:flex;align-items:center;gap:9px;padding:13px 16px 11px;flex-shrink:0;
  border-bottom:1px solid #eef1f5}
body.lightmode .ck-vl-s{position:relative;flex:1;min-width:0}
body.lightmode .ck-vl-s svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);pointer-events:none}
body.lightmode .ck-vl-s input{width:100%;background:#fff;border:1px solid #d8dde5;border-radius:999px;
  padding:8px 12px 8px 31px;font-family:inherit;font-size:12px;color:#1d2a3d;outline:none;height:auto;margin:0;
  transition:all .15s}
body.lightmode .ck-vl-s input:focus{border-color:var(--acc);box-shadow:0 0 0 3px rgba(var(--acc-rgb),.1)}
body.lightmode .ck-vl-exp{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;
  padding:0 9px;border-radius:999px;font-size:11px;font-weight:800;font-family:'Space Grotesk',monospace;
  cursor:pointer;user-select:none;flex-shrink:0;transition:all .15s;background:#fff;border:1px solid #d8dde5;color:#8a96a8}
body.lightmode .ck-vl-exp.on{background:rgba(217,144,12,.14);border:1px solid rgba(217,144,12,.34);color:#a16207}
body.lightmode .ck-vl-l{flex:1;overflow-y:auto;min-height:0}
body.lightmode .ck-vr{padding:11px 16px;cursor:pointer;transition:background .13s;border-bottom:1px solid #f1f4f7}
body.lightmode .ck-vr:hover{background:rgba(var(--acc-rgb),.05)}
body.lightmode .ck-vr.on{background:rgba(var(--acc-rgb),.07);box-shadow:inset 3px 0 0 var(--acc)}
body.lightmode .ck-vr-t{display:flex;align-items:center;gap:9px;min-width:0;margin-bottom:4px}
body.lightmode .ck-vr-n{font-size:12.5px;font-weight:700;color:#1d2a3d;flex:1;min-width:0;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;letter-spacing:-.005em}
body.lightmode .ck-vr-p{font-size:13px;font-weight:800;color:#1d2a3d;font-family:'Space Grotesk',monospace;
  white-space:nowrap;flex-shrink:0}
body.lightmode .ck-vr-b{display:flex;align-items:center;gap:7px;min-width:0}
body.lightmode .ck-vr-m{font-size:10.5px;color:#8a96a8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  flex:1;min-width:0}
body.lightmode .ck-vr-vs{display:inline-flex;align-items:center;gap:3px;font-size:9px;font-weight:800;
  letter-spacing:.02em;border-radius:999px;padding:1px 7px;flex-shrink:0;white-space:nowrap;
  font-family:'Space Grotesk',monospace;background:rgba(34,160,107,.11);color:#177a4f}
body.lightmode .ck-vr-vs.teuer{background:rgba(222,41,76,.11);color:#c22345}
body.lightmode .ck-vr-x{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;
  border-radius:50%;color:#c3ccd6;cursor:pointer;flex-shrink:0;border:none;background:transparent;padding:0;
  transition:all .15s}
body.lightmode .ck-vr-x:hover{background:rgba(222,41,76,.1);color:#de294c}
body.lightmode .ck-vl-leer{padding:40px 18px;text-align:center;color:#8a96a8}
body.lightmode .ck-vl-leer b{display:block;font-size:12px;font-weight:700;color:#52667c;margin-bottom:3px}
body.lightmode .ck-vl-leer span{font-size:11px;line-height:1.5}

/* ---------- Kalkulationsblatt ---------- */
body.lightmode .ck-bl{display:flex;flex-direction:column;min-height:0;min-width:0}
body.lightmode .ck-bl-h{padding:13px 22px 12px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  flex-shrink:0;border-bottom:1px solid #eef1f5}
body.lightmode .ck-bl-h input.ck-name{flex:1 1 200px;min-width:0;background:transparent;border:none;padding:0;
  font-family:inherit;font-size:18px;font-weight:800;color:#1d2a3d;outline:none;letter-spacing:-.025em;
  height:auto;margin:0}
/* Der Produktname ist eine schlichte Textzeile, kein Eingabekasten. Ohne das
   Zuruecknehmen zieht die globale Fokusregel einen runden blauen Schein um das
   Feld, der nicht zum Entwurf passt. */
body.lightmode .ck-bl-h input.ck-name:focus{color:var(--acc);box-shadow:none;border:none;
  background:transparent;border-radius:0;outline:none}
body.lightmode .ck-lief input:focus{box-shadow:none;border:none;background:transparent;
  border-radius:0;outline:none;color:var(--acc)}
body.lightmode .ck-lief{display:flex;align-items:center;gap:7px;background:#f7f9fb;border:1px solid #e8edf2;
  border-radius:999px;padding:5px 12px;flex-shrink:0}
body.lightmode .ck-lief input{width:104px;background:transparent;border:none;padding:0;font-family:inherit;
  font-size:11.5px;font-weight:600;color:#52667c;outline:none;height:auto;margin:0}
body.lightmode .ck-mehr{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;
  border-radius:50%;background:#fff;border:1px solid #e8edf2;color:#8a96a8;cursor:pointer;flex-shrink:0;
  padding:0;transition:all .15s}
body.lightmode .ck-mehr:hover{border-color:var(--acc);color:var(--acc)}
body.lightmode .ck-bl-g{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);flex:1;min-height:0;
  align-items:start}
@media(max-width:1200px){body.lightmode .ck-bl-g{grid-template-columns:minmax(0,1fr)}}
body.lightmode .ck-in{padding:14px 8px 16px 18px;display:flex;flex-direction:column;gap:12px;min-height:0;
  min-width:0;overflow-y:auto;height:100%}
body.lightmode .ck-out{display:flex;flex-direction:column;min-height:0;min-width:0;max-width:100%;
  padding:14px 18px 16px;gap:12px;height:100%}

/* Eingabekarten */
body.lightmode .ck-k{border:1px solid #e4e9ef;border-radius:16px;background:#fff;padding:13px 15px 14px;
  box-shadow:0 1px 3px rgba(28,40,60,.04)}
body.lightmode .ck-k-t{font-size:9px;font-weight:800;letter-spacing:.11em;color:#9aa6b5;text-transform:uppercase;
  margin-bottom:8px}
body.lightmode .ck-g3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
body.lightmode .ck-g2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
body.lightmode .ck-gv{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:9px;align-items:end}
body.lightmode .ck-fl{display:block;min-width:0}
body.lightmode .ck-fl-l{display:block;font-size:10px;font-weight:600;color:#8a96a8;margin-bottom:4px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.lightmode .ck-fw{position:relative;display:block}
body.lightmode .ck-fw input{width:100%;background:#fff;border:1px solid #d8dde5;border-radius:10px;
  padding:9px 26px 9px 9px;font-family:'Space Grotesk',monospace;font-size:13px;font-weight:700;color:#1d2a3d;
  outline:none;text-align:right;height:auto;margin:0;transition:all .15s}
body.lightmode .ck-fw input:focus{border-color:var(--acc);box-shadow:0 0 0 3px rgba(var(--acc-rgb),.1)}
body.lightmode .ck-fw input.gross{padding:10px 28px 10px 10px;font-size:14px}
body.lightmode .ck-fw-u{position:absolute;right:9px;top:50%;transform:translateY(-50%);font-size:9.5px;
  color:#9aa6b5;font-weight:700;pointer-events:none}
body.lightmode .ck-fw input.gross ~ .ck-fw-u{right:10px;font-size:10px}
body.lightmode .ck-basis{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-top:9px;
  padding:8px 11px;border-radius:10px;background:#f7f9fb;border:1px solid #eef1f5}
body.lightmode .ck-basis-l{font-size:11px;color:#52667c;font-weight:600}
body.lightmode .ck-basis-v{font-size:13.5px;font-weight:800;color:#1d2a3d;font-family:'Space Grotesk',monospace}

/* Schieberegler */
body.lightmode .ck-sls{display:flex;flex-direction:column;gap:9px}
body.lightmode .ck-s-h{display:grid;grid-template-columns:minmax(0,1fr) 52px;gap:8px;align-items:baseline;margin-bottom:4px}
body.lightmode .ck-s-l{font-size:11.5px;font-weight:600;color:#1d2a3d;white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis}
body.lightmode .ck-s-p{font-size:11.5px;font-weight:800;font-family:'Space Grotesk',monospace;text-align:right;
  white-space:nowrap;color:#9aa6b5}
body.lightmode .ck-s-p.an{color:var(--acc)}
body.lightmode .ck-s-t{position:relative;height:20px;display:flex;align-items:center;cursor:pointer;touch-action:none}
body.lightmode .ck-s-bg{position:absolute;left:0;right:0;height:6px;border-radius:3px;background:#e8edf2;
  box-shadow:inset 0 1px 2px rgba(28,40,60,.08)}
body.lightmode .ck-s-f{position:absolute;left:0;height:6px;border-radius:3px;pointer-events:none;
  transition:width .08s linear;background:linear-gradient(90deg,rgba(var(--acc-rgb),.55),var(--acc))}
body.lightmode .ck-s-ts{position:absolute;left:0;right:0;display:flex;justify-content:space-between;pointer-events:none}
body.lightmode .ck-s-ts i{display:block;width:2px;height:2px;border-radius:50%;background:#c9d2db}
body.lightmode .ck-s-ts i.hell{background:rgba(255,255,255,.6)}
body.lightmode .ck-s-k{position:absolute;top:50%;width:15px;height:15px;border-radius:50%;background:#fff;
  pointer-events:none;transition:left .08s linear;transform:translate(-50%,-50%);border:2.5px solid #c3ccd6;
  box-shadow:0 2px 6px rgba(28,40,60,.22)}
body.lightmode .ck-s-k.an{border-color:var(--acc)}

/* Mehrwertsteuer-Pillen */
body.lightmode .ck-vat{display:flex;align-items:center;background:#f1f4f7;border-radius:999px;padding:2px;gap:1px}
body.lightmode .ck-vat .ck-d-pill{flex:1;justify-content:center;padding:5px 0;font-size:10px}

/* ---------- Ergebnis ---------- */
body.lightmode .ck-hero-d{border:1px solid rgba(var(--acc-rgb),.22);border-radius:18px;padding:14px 17px 15px;
  background:linear-gradient(160deg,rgba(var(--acc-rgb),.12),rgba(var(--acc-rgb),.03) 62%,#fff);
  flex-shrink:0;box-shadow:0 2px 8px rgba(28,40,60,.05)}
body.lightmode .ck-hero-dl{font-size:9px;font-weight:800;letter-spacing:.11em;color:var(--acc);
  text-transform:uppercase;margin-bottom:5px}
body.lightmode .ck-hero-dv{font-size:34px;font-weight:800;color:#1d2a3d;letter-spacing:-.045em;
  font-family:'Space Grotesk',monospace;line-height:.95}
body.lightmode .ck-hero-ds{font-size:12px;color:#52667c;font-weight:600}
body.lightmode .ck-wf-wrap{position:relative;padding-top:15px;margin-top:11px}
body.lightmode .ck-wf-bar{display:flex;height:12px;border-radius:6px;overflow:hidden;background:#e8edf2}
body.lightmode .ck-wf-bar span{display:block;height:100%;transition:width .4s cubic-bezier(.2,.8,.25,1)}
body.lightmode .ck-nd{position:absolute;top:0;display:flex;flex-direction:column;z-index:2;pointer-events:none}
body.lightmode .ck-nd-tag{font-size:9px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;
  border-radius:999px;padding:2px 8px;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis;
  font-family:'Space Grotesk',monospace;background:rgba(34,160,107,.15);color:#177a4f}
body.lightmode .ck-nd-tag.teuer{background:rgba(222,41,76,.13);color:#c22345}
body.lightmode .ck-nd-li{display:block;width:2px;height:17px;border-radius:1px;background:#22a06b}
body.lightmode .ck-nd-li.teuer{background:#de294c}
body.lightmode .ck-line{flex:0 1 auto;min-height:0;overflow-y:auto;border:1px solid #e4e9ef;border-radius:16px;
  background:#fff;padding:12px 16px 13px;box-shadow:0 1px 3px rgba(28,40,60,.04)}
body.lightmode .ck-lr{display:grid;grid-template-columns:minmax(64px,auto) minmax(0,1fr) 104px;gap:9px;
  align-items:baseline;padding:6px 0}
body.lightmode .ck-lr.sum{border-top:1px solid #e4e9ef;border-bottom:1px solid #e4e9ef;
  background:rgba(28,40,60,.015);margin:3px 0;padding:7px 0}
body.lightmode .ck-lr.final{padding:10px 0 0;border-top:2px solid rgba(var(--acc-rgb),.24);margin-top:5px}
body.lightmode .ck-lr-l{font-size:11.5px;font-weight:600;color:#52667c;white-space:nowrap}
body.lightmode .ck-lr.sum .ck-lr-l,body.lightmode .ck-lr.final .ck-lr-l{font-size:12.5px;font-weight:800;color:#1d2a3d}
body.lightmode .ck-lr-d{font-size:10px;font-weight:700;font-family:'Space Grotesk',monospace;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;text-align:right;color:#9aa6b5}
body.lightmode .ck-lr-s{font-family:'Space Grotesk',monospace;text-align:right;white-space:nowrap;font-size:12px;
  font-weight:600;letter-spacing:-.01em;color:#1d2a3d}
body.lightmode .ck-lr.sum .ck-lr-s{font-size:13.5px;font-weight:800}
body.lightmode .ck-lr.final .ck-lr-s{font-size:18px;font-weight:800;letter-spacing:-.03em;color:var(--acc)}

/* Menü der übrigen Aktionen */
body.lightmode .ck-menu{position:absolute;right:0;top:34px;z-index:40;min-width:212px;background:#fff;
  border:1px solid #e4e9ef;border-radius:14px;box-shadow:0 10px 30px rgba(28,40,60,.14);padding:6px;
  display:flex;flex-direction:column;gap:1px}
body.lightmode .ck-menu button{display:flex;align-items:center;justify-content:space-between;gap:10px;
  background:transparent;border:none;border-radius:9px;padding:8px 11px;font-family:inherit;font-size:12px;
  font-weight:600;color:#52667c;cursor:pointer;text-align:left;transition:all .13s}
body.lightmode .ck-menu button:hover{background:rgba(var(--acc-rgb),.07);color:var(--acc)}
body.lightmode .ck-menu button i{font-style:normal;font-size:10px;font-weight:800;text-transform:uppercase;
  letter-spacing:.05em;color:#9aa6b5}
body.lightmode .ck-menu button.an i{color:var(--acc)}
body.lightmode .ck-menu hr{border:none;border-top:1px solid #f1f4f7;margin:4px 2px}
