/* V3b Call-Modus (Runde 6, Basis V3 Kundenkorb). Farben nur über die Variablen aus brand.css. Gemeinsame Bauteile kommen aus shared/ui.css. */
html, body { height: 100%; margin: 0; }
/* Kompakter (Wahl Moritz 24.11.2026, Variante C): drei Größen 28 Titel, 15 Text, 13 klein. Nur diese Seite, der Baum bleibt. */
:root { --s-gross: 28px; --s-text: 15px; }
/* Kleine Karten nur im Team: die Ansicht der Kunden bleibt wie sie war */
body:not(.kundenmodus) { --bk: 112px; }
@media (max-width: 719px) { :root { --s-gross: 24px; } }

/* ---------- Gerüst ---------- */
.seite { height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr) auto auto; overflow: hidden; --zu-h: 236px; }
.kopf { grid-column: 1 / -1; grid-row: 1; position: relative; z-index: 20; background: var(--bg-body); border-bottom: 1px solid var(--line); padding: 16px 24px 14px; display: grid; gap: 12px; }
.brett-huelle { grid-column: 1; grid-row: 2; position: relative; min-height: 0; min-width: 0; }
.korb { grid-column: 2; grid-row: 2; }
.hinweis { grid-column: 1 / -1; grid-row: 4; margin: 0; padding: 8px 24px 12px; font-size: var(--s-klein); color: var(--text-secondary); }

/* ---------- Kopf ---------- */
.kopf-a { display: flex; align-items: center; gap: 24px; }
.zurueck { display: inline-flex; align-items: center; gap: 4px; font-size: var(--s-klein); font-weight: 600; color: var(--text-secondary); min-height: 40px; }
.titel { font-size: var(--s-gross); }
.rechts { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.kundenlabel { font-size: var(--s-klein); font-weight: 600; border: 1px solid var(--kontur); border-radius: 999px; padding: 10px 16px; }
.leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.fuer { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.fuer-t { font-size: var(--s-text); font-weight: 600; }
.gruppe { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filter { margin-left: auto; }
.alle { display: inline-flex; }
.alle-mobil { display: none; }
@media (min-width: 720px) { body.kundenmodus .leiste { display: none; } }

/* ---------- Brett und Spalten ---------- */
.brett { position: absolute; inset: 0; overflow-x: auto; overflow-y: hidden; padding: 20px 24px 24px; display: flex; gap: 20px; align-items: stretch; scrollbar-width: thin; }
.brett::after { content: ""; flex: none; width: 4px; }
.spalte { flex: none; align-self: flex-start; width: 360px; height: 100%; display: flex; flex-direction: column; background: var(--bg-s2); border-radius: 20px; min-height: 0; overflow: hidden; transition: width var(--dur-slow) var(--ease-out), height var(--dur-slow) var(--ease-out); }
.spalte.eingang { width: 208px; }
.spalte.zu { width: 220px; height: auto; }
.spalte-kopf { cursor: pointer; }
.spalte.zu .spalte-kopf:hover { background: color-mix(in srgb, var(--bg-s1) 40%, transparent); }
.spalte-kopf:focus-visible { outline-offset: -2px; border-radius: 20px; }
.kopf-zeile { display: flex; align-items: center; gap: 8px; min-height: 24px; }
.kopf-zeile h2 { flex: 1; min-width: 0; }
.kopf-zeile .zahl { margin-left: auto; }
.kachel-unten { padding-top: 12px; display: grid; gap: 12px; }
.kachel-meta { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: var(--s-klein); }
.im-korb { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: #EDE8E5; color: var(--text-primary); border: 1px solid var(--text-primary); font-weight: 600; line-height: 1; white-space: nowrap; }
.gerade { display: block; width: 100%; color: var(--text-primary); font-weight: 600; }
.spalte .klapp > .spalte-inhalt { overflow-y: auto; }
.spalte > .klapp[data-klapp-auf] { flex: 1; min-height: 0; }
.spalte.ueber { outline: 2px dashed var(--text-primary); outline-offset: -2px; }
.spalte-kopf { flex: none; display: block; padding: 16px 16px 12px; }
.spalte-kopf h2 { margin: 0; font-size: var(--s-text); font-weight: 600; line-height: 1.3; }
.spalte-inhalt { flex: 1; min-height: 0; overflow-y: auto; padding: 0 16px 20px; scrollbar-width: thin; }
.spalte-fuss { flex: none; margin: 0; padding: 12px 16px 16px; font-size: var(--s-klein); color: var(--text-secondary); border-top: 1px solid var(--line); line-height: 1.4; }
.leer-satz { margin: 0; font-size: var(--s-klein); color: var(--text-secondary); line-height: 1.45; }
.raster { display: grid; grid-template-columns: repeat(2, var(--bk)); column-gap: 28px; row-gap: 28px; align-items: start; }
.spalte.eingang .raster { grid-template-columns: 100%; }
.abschnitt + .abschnitt { margin-top: 28px; }
.abschnitt-t { margin: 0 0 12px; font-size: var(--s-klein); font-weight: 600; }
.anlegen { flex: none; align-self: flex-start; width: 182px; min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px dashed var(--kontur); border-radius: 20px; background: transparent; font-size: var(--s-text); font-weight: 600; padding: 0 16px; }
.anlegen:hover { border-color: var(--text-primary); }
.spalte.zu .anreisser { margin-top: 0; }
.leer-brett { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 24px; }
.leer-brett p { margin: 0; color: var(--text-secondary); max-width: 360px; }

/* Kein Unterstrich beim Hover (Regel), Hinweis gibt der Textcursor */
.b-name:hover { border-bottom-color: transparent; }
.sb-toast { width: max-content; max-width: calc(100vw - 32px); text-align: center; }

/* ---------- Karten auf dem Brett ---------- */
.huelle { position: relative; }
.huelle .karte-knopf { cursor: pointer; }
body:not(.kundenmodus) .brett .karte-knopf { cursor: grab; }
.huelle.nein .karte-knopf { opacity: .5; }
.nein-t { display: block; margin-top: 6px; font-size: var(--s-klein); color: var(--text-secondary); line-height: 1.4; }
.korb-knopf { position: absolute; top: 0; right: 0; z-index: 3; width: 56px; height: 56px; background: none; border: 0; padding: 0; color: var(--text-primary); }
.knopf-v { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--kontur); background: var(--bg-s1); display: flex; align-items: center; justify-content: center; overflow: hidden; transition: width var(--dur-base) var(--ease-out), height var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out); }
.knopf-v .sb-icon { transition: opacity var(--dur-base) var(--ease-out); }
.korb-knopf[aria-pressed="true"] .knopf-v { background: var(--sel-bg, #EDE8E5); color: var(--sel-fg, #0A0708); border-color: var(--sel-line, #B0ADAC); }
.korb-knopf[aria-disabled="true"] { cursor: default; }
/* Maus: in Ruhe nur ein kleiner Punkt, voll erst beim Überfahren. Touch: immer voll */
@media (hover: hover) and (min-width: 720px) {
  .knopf-v { width: 12px; height: 12px; top: 14px; right: 14px; }
  .korb-knopf[aria-pressed="true"] .knopf-v { width: 22px; height: 22px; top: 10px; right: 10px; }
  .knopf-v .sb-icon { opacity: 0; }
  .korb-knopf[aria-pressed="true"] .knopf-v .sb-icon { opacity: 1; transform: scale(.7); }
  .huelle:hover .knopf-v, .korb-knopf:focus-visible .knopf-v { width: 40px; height: 40px; top: 8px; right: 8px; }
  .huelle:hover .knopf-v .sb-icon, .korb-knopf:focus-visible .knopf-v .sb-icon { opacity: 1; transform: none; }
}
body.korb-an .thumb.rahmen .rahmen-typ { min-height: 26px; }

/* ---------- Korb-Spalte ---------- */
.korb { width: 360px; margin: 20px 24px 24px 12px; display: flex; flex-direction: column; min-height: 0; background: var(--bg-s1); border: 1px solid var(--kontur); border-radius: 20px; overflow: hidden; }
.korb.ueber { outline: 2px dashed var(--text-primary); outline-offset: -2px; }
.korb-leiste { display: none; }
.korb-inhalt { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.korb-kopf { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 16px; border-bottom: 1px solid var(--line); }
.korb-kopf h2 { margin: 0; font-size: var(--s-text); font-weight: 600; line-height: 1.3; }
.korb-satz { margin: 4px 0 0; font-size: var(--s-klein); color: var(--text-secondary); line-height: 1.4; }
.korb-zu { display: none; }
.korb-ein { flex: none; }
.korb-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 0 20px 24px; scrollbar-width: thin; }
.korb-teil { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.korb-teil:first-child { margin-top: 0; border-top: 0; padding-top: 20px; }
.korb-teil-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.korb-teil-kopf h3 { margin: 0; font-size: var(--s-text); font-weight: 600; line-height: 1.3; }
button.korb-teil-kopf { width: 100%; background: none; border: 0; padding: 0; text-align: left; }
.korb-teil-kopf .zahl { display: inline-flex; align-items: center; gap: 6px; }
.stapel { display: flex; gap: 28px; align-items: flex-start; }
.stapel-bild { position: relative; width: 128px; flex: none; margin-bottom: 16px; }
.stapel-bild .lage { position: absolute; inset: 0; border: 1px solid var(--kontur); border-radius: 20px; background: var(--bg-s2); }
.stapel-bild .l1 { transform: translate(8px, 8px); }
.stapel-bild .l2 { transform: translate(16px, 16px); }
.stapel-karte { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; color: inherit; }
.stapel-rechts { flex: 1; min-width: 0; display: grid; gap: 10px; align-content: start; justify-items: start; }
.stapel-t { font-size: var(--s-text); font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.stapel-nav { display: flex; gap: 8px; }
.korb-pruefen { width: 100%; justify-content: center; margin-top: 4px; }
.ziel-block + .ziel-block { margin-top: 24px; }
.ziel-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ziel-name { font-size: var(--s-klein); font-weight: 600; line-height: 1.35; }
.kminis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; align-items: start; }
.kmini { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0; color: inherit; }
.kmini .thumb { margin-bottom: 8px; }
.kmini-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: var(--s-klein); font-weight: 600; line-height: 1.35; }
.kmini-m { display: block; margin-top: 2px; font-size: var(--s-klein); color: var(--text-secondary); line-height: 1.4; }
.luecke { margin: 0; padding: 14px 16px; border: 1px dashed var(--kontur); border-radius: 20px; font-size: var(--s-klein); color: var(--text-secondary); line-height: 1.4; }
.leer-korb { margin: 0; font-size: var(--s-klein); color: var(--text-secondary); line-height: 1.45; }

/* Desktop: eingeklappt ist der Korb eine schmale Leiste unter dem Brett */
@media (min-width: 720px) {
  .korb.eingeklappt { grid-column: 1 / -1; grid-row: 3; width: auto; margin: 0 24px 12px; flex-direction: row; border-radius: 999px; }
  .korb.eingeklappt .korb-leiste { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 6px 8px 6px 20px; }
  .korb.eingeklappt .korb-auf { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; background: none; border: 0; padding: 0; min-height: 40px; }
  .korb.eingeklappt .korb-auf .korb-name { font-size: var(--s-text); font-weight: 600; }
  .korb.eingeklappt .korb-inhalt { display: none; }
}

/* ---------- Detail: fest rechts, deckt den Korb ab ---------- */
.pruef { position: fixed; z-index: 38; top: calc(var(--kopf-h, 190px) + 12px); right: 24px; bottom: 16px; width: 440px; }

/* ---------- Art und Plattform ---------- */
.art-zeile { display: block; font-size: var(--s-klein); color: var(--text-secondary); line-height: 1.4; }
.art-reihe + .art-reihe { margin-top: 28px; }
.art-t { margin: 0 0 12px; font-size: var(--s-klein); font-weight: 600; display: flex; align-items: baseline; gap: 8px; color: var(--text-secondary); }
.meta.plattform { color: var(--text-primary); font-weight: 600; }
.konto-zeile { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.ziel-name { display: grid; gap: 2px; }
.ziel-konto { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; color: var(--text-secondary); }
.kmini-m.plattform { display: flex; align-items: center; gap: 6px; color: var(--text-primary); font-weight: 600; }
.urteil-wort { color: var(--text-primary); font-weight: 600; }
.kmini-m.urteil-wort { color: var(--text-primary); }
.kmini-m.grund { font-style: normal; }
.korb-call { margin-top: 12px; }
.leiste-call { flex: none; }

/* ---------- Vorschläge von Claude ---------- */
.claude-block { margin-bottom: 16px; border: 1px solid var(--kontur); border-radius: 20px; background: var(--bg-s1); overflow: hidden; }
.claude-kopf { display: flex; align-items: center; gap: 8px; padding: 12px 12px; cursor: pointer; min-height: 48px; }
.claude-kopf:hover { background: color-mix(in srgb, var(--bg-s2) 60%, transparent); }
.claude-t { flex: 1; min-width: 0; font-size: var(--s-klein); font-weight: 600; line-height: 1.3; }
.claude-inhalt { padding: 0 12px 16px; display: grid; gap: 20px; }
.claude-inhalt > .leer-satz { margin: 0; }
.claude-karte .karte-knopf { cursor: pointer; }
.cl-text { margin: 8px 0 0; font-size: var(--s-klein); color: var(--text-secondary); line-height: 1.4; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cl-text + .cl-text { margin-top: 2px; }
.cl-marke { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border: 1px solid var(--kontur); border-radius: 999px; color: var(--text-primary); font-weight: 600; line-height: 1; }
.cl-bereich { color: var(--text-primary); font-weight: 600; }
.cl-aktion { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cl-bereiche { margin-top: 10px; }

/* ---------- Seitenblatt: Schnellprüfung ---------- */
.schnell { position: fixed; z-index: 38; top: calc(var(--kopf-h, 190px) + 12px); right: 24px; bottom: 16px; width: 380px; display: flex; flex-direction: column; justify-content: flex-start; }
.sn-blatt { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--bg-s1); border: 1px solid var(--kontur); border-radius: 20px; overflow: hidden; }
.sn-blatt.oeffnet { animation: sn-auf var(--dur-slow) var(--ease-out) both; }
@keyframes sn-auf { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
body.schnell-auf .korb { visibility: hidden; }
body.schnell-auf .brett::after { width: 384px; }
.sb-toast { z-index: 70; }
.sn-kopf { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 10px 16px; }
.sn-kopf-l { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sn-zaehler { font-size: var(--s-text); font-weight: 600; white-space: nowrap; }
.sn-serie { font-size: var(--s-klein); color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sn-balken { flex: none; display: flex; gap: 6px; padding: 0 20px 14px; border-bottom: 1px solid var(--line); }
.sn-seg { flex: 1; height: 4px; border-radius: 2px; background: var(--line); transition: background var(--dur-base) var(--ease-out); }
.sn-seg.voll, .sn-seg.jetzt { background: var(--text-primary); }
.sn-seg.jetzt { background: color-mix(in srgb, var(--text-primary) 45%, transparent); }
.sn-innen { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px 16px; scrollbar-width: thin; }
.sn-fund { display: flex; gap: 12px; align-items: center; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.sn-fund .thumb { width: 44px; flex: none; border-radius: 10px; }
.sn-fund .thumb.rahmen { padding: 0; }
.sn-fund .thumb.rahmen > * { display: none; }
.sn-fund-t { display: grid; gap: 2px; min-width: 0; }
.sn-fund-n { font-size: var(--s-klein); font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sn-schritt.a-vor { animation: sn-vor var(--dur-base) var(--ease-out) both; }
.sn-schritt.a-zurueck { animation: sn-zurueck var(--dur-base) var(--ease-out) both; }
@keyframes sn-vor { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes sn-zurueck { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.sn-frage { margin: 0 0 8px; font-size: var(--s-text); font-weight: 600; line-height: 1.3; }
.sn-sub { margin: 0 0 14px; font-size: var(--s-klein); color: var(--text-secondary); line-height: 1.4; }
.sn-fazit { margin: 0 0 12px; font-size: var(--s-text); font-weight: 600; line-height: 1.4; }
.sn-schritt .leitplanken { margin-bottom: 18px; }
.sn-liste { display: grid; gap: 6px; }
.sn-konto + .sn-konto { margin-top: 18px; }
.sn-konto-t { margin: 0 0 8px; display: flex; align-items: center; gap: 6px; font-size: var(--s-klein); font-weight: 600; color: var(--text-secondary); }
.sn-wahl { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 6px 14px 6px 10px; text-align: left; border: 1px solid var(--kontur); border-radius: 999px; background: transparent; color: var(--text-primary); font-size: var(--s-text); font-weight: 600; line-height: 1.25; transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out); }
.sn-wahl:hover { border-color: var(--text-primary); }
.sn-wahl[aria-pressed="true"] { background: var(--sel-bg, #EDE8E5); color: var(--sel-fg, #0A0708); border-color: var(--sel-line, #B0ADAC); }
.sn-nr { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1px solid var(--kontur); border-radius: 50%; font-size: var(--s-klein); font-weight: 600; line-height: 1; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
[aria-pressed="true"] > .sn-nr { color: var(--text-primary); border-color: var(--text-primary); }
.sn-t { flex: 1; min-width: 0; }
.sn-extra { flex: none; font-size: var(--s-klein); font-weight: 400; opacity: .75; }
.sn-unter { display: grid; gap: 6px; margin: 2px 0 6px 20px; padding-left: 14px; border-left: 1px solid var(--kontur); }
.sn-unter-t { margin: 4px 0 2px; font-size: var(--s-klein); font-weight: 600; color: var(--text-primary); }
.sn-fuss { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); min-height: 56px; }
.sn-tasten, .call-tasten { font-size: var(--s-klein); color: var(--text-secondary); }

/* ---------- Call-Modus: eine Idee auf einmal ---------- */
.call { position: fixed; inset: 0; z-index: 60; background: var(--bg-body); display: flex; flex-direction: column; overflow-y: auto; animation: call-auf var(--dur-slow) var(--ease-out) both; }
@keyframes call-auf { from { opacity: 0; } to { opacity: 1; } }
body.call-auf { overflow: hidden; }
.call-kopf { flex: none; display: flex; align-items: center; gap: 16px; padding: 16px 32px; }
.call-wer { font-size: var(--s-text); font-weight: 600; flex: 1; min-width: 0; }
.call-bahn { flex: none; display: flex; gap: 6px; padding: 0 32px 8px; }
.call-bahn > span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); max-width: 56px; transition: background var(--dur-base) var(--ease-out); }
.call-bahn > .voll { background: var(--text-primary); }
.call-bahn > .jetzt { background: color-mix(in srgb, var(--text-primary) 45%, transparent); }
.call-mitte { flex: 1; min-height: 0; display: flex; gap: 56px; align-items: center; justify-content: center; padding: 16px 32px 32px; }
.call-mitte.a-vor { animation: sn-vor var(--dur-slow) var(--ease-out) both; }
.call-mitte.a-zurueck { animation: sn-zurueck var(--dur-slow) var(--ease-out) both; }
.call-bild { flex: none; width: min(300px, calc((100dvh - 200px) * 9 / 16)); }
.call-text { flex: 0 1 560px; min-width: 0; display: grid; gap: 14px; align-content: center; }
.call-titel { margin: 0; font-family: var(--font-body); font-weight: 600; font-size: var(--s-gross); line-height: 1.12; letter-spacing: -0.01em; }
.call-satz { margin: 0; font-size: var(--s-text); line-height: 1.5; max-width: 52ch; }
.call-meta { margin: 0; display: flex; align-items: center; gap: 8px; font-size: var(--s-klein); color: var(--text-secondary); line-height: 1.4; }
.call-meta + .call-meta { margin-top: -8px; }
.call-wahl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.call-knopf { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 20px 8px 14px; border: 1px solid var(--kontur); border-radius: 999px; background: transparent; color: var(--text-primary); font-size: var(--s-text); font-weight: 600; text-align: left; line-height: 1.2; transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out); }
.call-knopf:hover { border-color: var(--text-primary); }
.call-knopf[aria-pressed="true"] { background: var(--sel-bg, #EDE8E5); color: var(--sel-fg, #0A0708); border-color: var(--sel-line, #B0ADAC); }
.call-grund { display: grid; gap: 8px; }
.call-grund .pille { justify-self: start; }
.call-fuss { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.call-ende .call-text { flex-basis: 640px; }
.call-liste { list-style: none; margin: 4px 0 0; padding: 0 0 24px; display: grid; gap: 0; max-height: calc(100dvh - 440px); min-height: 120px; overflow-y: auto;  }
.call-liste li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.call-z-t { font-size: var(--s-text); font-weight: 600; line-height: 1.3; }
.call-z-u { font-size: var(--s-klein); font-weight: 600; white-space: nowrap; }
.call-z-g { grid-column: 1 / -1; font-size: var(--s-klein); color: var(--text-secondary); line-height: 1.4; }

/* ---------- Handy ---------- */
@media (max-width: 719px) {
  .seite { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto; }
  .hinweis { display: none; }
  .korb, .korb.eingeklappt { grid-column: 1; grid-row: 3; margin: 0; width: auto; margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: var(--bg-body); overflow: visible; flex-direction: row; }
  .korb-leiste { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .korb-auf { flex: 1; min-width: 0; min-height: 44px; display: grid; gap: 0; align-content: center; text-align: left; background: none; border: 0; padding: 0; }
  .korb-auf .korb-name { font-size: var(--s-text); font-weight: 600; line-height: 1.3; }
  .korb-auf .zahl { line-height: 1.3; }
  .korb-inhalt { display: none; }
  .korb.offen::before { content: ""; position: fixed; inset: 0; z-index: 34; background: color-mix(in srgb, var(--bg-body) 72%, transparent); }
  .korb.offen .korb-inhalt { display: flex; position: fixed; z-index: 35; left: 0; right: 0; bottom: 0; max-height: 88dvh; background: var(--bg-s1); border: 1px solid var(--kontur); border-bottom: 0; border-radius: 20px 20px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .korb-zu { display: inline-flex; }
  .korb-ein { display: none; }
  .korb-kopf { padding: 16px 16px 14px; }
  .korb-scroll { padding: 0 16px 24px; }
  .pruef { inset: 0; width: auto; border: 0; border-radius: 0; top: 0; }
  .sb-toast { bottom: auto; top: calc(var(--kopf-h, 190px) + 8px); transform: translate(-50%, -12px); }
  .sb-toast.an { transform: translate(-50%, 0); }
  body.panel-auf .sb-toast { display: none; }
  #hinzufuegen { padding: 0 12px; gap: 6px; }
  body.kundenmodus #hinzufuegen .sb-icon { display: none; }
  .sb-toast { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .kopf { padding: 8px 16px 10px; gap: 8px; grid-template-columns: minmax(0, 1fr) auto; }
  .kopf-a, .rechts, .leiste { display: contents; }
  .zurueck { grid-column: 1; grid-row: 1; }
  .titel { grid-column: 1; grid-row: 2; }
  .schalter { grid-column: 2; grid-row: 1; justify-self: end; padding: 0 12px 0 8px; }
  #hinzufuegen { grid-column: 2; grid-row: 2; justify-self: end; padding: 0 14px; }
  .kundenlabel { grid-column: 1 / -1; grid-row: 3; justify-self: start; }
  .alle-desktop { display: none; }
  .alle-mobil { display: inline-flex; flex: none; }
  .fuer, .filter { grid-column: 1 / -1; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .fuer::-webkit-scrollbar, .filter::-webkit-scrollbar { display: none; }
  .fuer { gap: 12px; }
  .fuer .gruppe { flex-wrap: nowrap; }
  .fuer-t, .fuer .pille, .filter .pille { flex: none; }
  .filter { margin-left: -16px; }

  .brett { padding: 12px 16px 16px; gap: 12px; scroll-snap-type: x mandatory; scroll-padding: 0 16px; }
  .spalte, .spalte.eingang { width: calc(100vw - 56px); scroll-snap-align: start; }
  .spalte.zu, .spalte.eingang.zu { width: 220px; }
  .anlegen { width: calc(100vw - 32px); scroll-snap-align: start; }
  .raster, .spalte.eingang .raster { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  /* Seitenblatt wird zum Blatt von unten, Call-Modus stapelt */
  .schnell { inset: 0; width: auto; justify-content: flex-end; background: color-mix(in srgb, var(--bg-body) 72%, transparent); }
  .sn-blatt { flex: 0 1 auto; max-height: 90dvh; border-radius: 20px 20px 0 0; border-bottom: 0; }
  .sn-blatt.oeffnet { animation-name: sn-hoch; }
  @keyframes sn-hoch { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  body.schnell-auf .korb { visibility: visible; }
  body.schnell-auf .brett::after { width: 4px; }
  .sn-fuss { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .sn-tasten, .call-tasten { display: none; }
  .sn-blatt:not([data-schritt="3"]):not(.mit-serie) .sn-fuss { display: none; }
  .sn-fuss { justify-content: flex-end; }
  .sn-nr { display: none; }
  .sn-wahl { padding-left: 18px; }
  .leiste-call { display: none; }
  .call-kopf { padding: 12px 16px; gap: 12px; }
  .call-bahn { padding: 0 16px 8px; }
  .call-mitte { flex-direction: column; gap: 16px; align-items: stretch; justify-content: flex-start; padding: 8px 16px 24px; }
  .call-bild { width: min(120px, calc((100dvh - 460px) * 9 / 16 + 40px)); min-width: 72px; align-self: flex-start; }
  .call-text { flex: none; gap: 10px; }
  .call-wahl { gap: 8px; margin-top: 4px; }
  .call-knopf { min-height: 56px; padding: 8px 14px; }
  .call-knopf .sn-nr { display: none; }
  .call-ende .call-text { flex-basis: auto; }
}


/* Runde 7: Marke v1.1. Gewählt = Fläche #EDE8E5 plus 1 px Kontur in Schriftfarbe, nie schwarz gefüllt */
.pille[aria-pressed="true"] { background: var(--sel-bg, #EDE8E5); color: var(--sel-fg, #0A0708); border-color: var(--sel-line, #B0ADAC); }
.schalter[aria-checked="true"] { background: var(--sel-bg, #EDE8E5); color: var(--sel-fg, #0A0708); border-color: var(--sel-line, #B0ADAC); }
.schalter[aria-checked="true"] .spur { border-color: var(--text-primary); }
.schalter[aria-checked="true"] .knauf { background: var(--text-primary); }
.haupt, .haupt:hover { background: transparent; color: var(--text-primary); }
.pille:hover:not(:disabled), .call-knopf:hover, .sn-wahl:hover { background: color-mix(in srgb, #EDE8E5 45%, transparent); }
.pille:active:not(:disabled), .call-knopf:active, .sn-wahl:active { transform: scale(.98); }
.pille:focus-visible, .call-knopf:focus-visible, .sn-wahl:focus-visible, .im-baum:focus-visible { outline: 1px solid var(--text-primary); outline-offset: 0; }
/* Verknüpfung zum Baum: Schriftfarbe, Semibold, ohne Unterstrich */
.im-baum { display: inline-block; margin-top: 4px; font-size: var(--s-klein); font-weight: 600; color: var(--text-primary); text-decoration: none; line-height: 1.4; }
.im-baum:hover { color: var(--text-secondary); }
.sn-fazit + .im-baum { margin: 0 0 12px; font-size: var(--s-text); }
.sb-toast { background: #EDE8E5; color: var(--text-primary); border-color: var(--text-primary); }

/* ---------- Spalten passen sich an (Variante B, Wahl Moritz 23.11.2026) ----------
   --k = Kartenspalten aus der Zahl der Karten (1 bis 4, sammlung-app.js). Wo Karten liegen, wird die Spalte breiter;
   „Noch nicht einsortiert“ nimmt den freien Platz; leere Bereiche stehen schmal untereinander am Ende. */
@media (min-width: 720px) {
  .spalte[data-spalte]:not(.zu) { width: calc(var(--k) * var(--bk) + (var(--k) - 1) * 16px + 24px); }
  .spalte[data-spalte] .raster { grid-template-columns: repeat(var(--k), var(--bk)); }
  .spalte.eingang:not(.zu) { flex: 1 0 auto; width: calc(var(--k) * var(--bk) + (var(--k) - 1) * 16px + 24px); max-width: 1060px; }
  .spalte.eingang .raster { grid-template-columns: repeat(auto-fill, var(--bk)); column-gap: 16px; }
  .spalte.eingang .claude-inhalt { grid-template-columns: repeat(auto-fill, var(--bk)); column-gap: 16px; row-gap: 24px; align-items: start; }
  .spalte.eingang .claude-inhalt > .leer-satz { grid-column: 1 / -1; }
  .leer-stapel { flex: none; align-self: flex-start; width: 256px; display: grid; gap: 8px; max-height: 100%; overflow-y: auto; }
}
.leer-stapel-t { margin: 4px 4px 0; font-size: var(--s-klein); color: var(--text-secondary); }
.leer-stapel .spalte[data-spalte], .leer-stapel .spalte[data-spalte]:not(.zu) { width: auto; height: auto; border-radius: 16px; }
.leer-stapel .spalte-kopf { padding: 12px 14px; }
.leer-stapel .spalte.zu [data-klapp-zu], .leer-stapel .spalte.zu > [data-klapp-auf] { display: none; }
@media (max-width: 719px) {
  .leer-stapel { flex: none; align-self: flex-start; width: 180px; display: grid; gap: 8px; scroll-snap-align: start; }
}

/* ---------- Ziehen überall (23.11.2026, Moritz: „überall drag and drop“) ----------
   Auch Vorschläge von Claude, mit dem Finger nach langem Drücken, auf „Bereich anlegen“ und Links von außen. */
.brett .karte-knopf { -webkit-touch-callout: none; }
body.zieht { user-select: none; -webkit-user-select: none; cursor: grabbing; }
body.zieht * { cursor: grabbing !important; }
.anlegen.ueber { outline: 2px dashed var(--text-primary); outline-offset: -2px; border-color: transparent; }

/* ---------- Format und Bereiche wählen: Leiste unten (Wahl Moritz 23.11.2026) ----------
   Zwei Reihen (Format eins, Bereiche mehrere), beim Ziehen dieselben Pillen als Ablageziele. */
.ablage { position: fixed; z-index: 60; left: 0; right: 0; bottom: var(--ablage-unten, 0px); padding: 14px 24px calc(14px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg-body) 94%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--kontur); transform: translateY(105%); visibility: hidden; transition: transform var(--dur-slow) var(--ease-out), visibility 0s linear var(--dur-slow); }
.ablage.auf { transform: none; visibility: visible; transition: transform var(--dur-slow) var(--ease-out); }
.ablage-innen { display: flex; align-items: center; gap: 20px; }
.ablage-t { flex: none; margin: 0; width: 200px; font-size: var(--s-klein); color: var(--text-secondary); line-height: 1.35; }
.ablage-titel { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text-primary); font-weight: 600; }
.ablage-reihen { flex: 1; min-width: 0; display: grid; gap: 8px; }
.ablage-reihe { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ablage-et { flex: none; width: 64px; font-size: var(--s-klein); color: var(--text-secondary); }
.ablage-pillen { flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding: 2px; }
.ablage-pillen .pille { flex: none; }
.ablage-fuss { flex: none; display: flex; align-items: center; gap: 8px; }
.ablage.beim-ziehen .ablage-pillen .pille { min-height: 48px; }
.ablage .pille.ueber { background: #EDE8E5; border-color: var(--text-primary); }
body.zieht .geist { z-index: 75; }
body.ablage-auf .brett { padding-bottom: calc(var(--ablage-h, 150px) + 12px); }
body.ablage-auf #gchat-fab, body.ablage-auf #cchat-fab { visibility: hidden; }
body.schnell-auf #gchat-fab { display: none; }
.ablage.ueber-nav { padding-bottom: 12px; border-bottom: 1px solid var(--kontur); }
@media (max-width: 719px) {
  .ablage { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .ablage-innen { flex-wrap: wrap; gap: 10px 12px; }
  .ablage-t { flex: 1; width: auto; min-width: 0; }
  .ablage-reihen { order: 3; flex-basis: 100%; }
  .ablage-et { width: 64px; }
}

/* ---------- Format: Filter im Kopf und Unterreihen in den Spalten ---------- */
.formate { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.formate .pille { flex: none; }
.formate .pille .zahl { margin-left: 2px; }
.formate .format-neu { padding: 0 12px; }
.f-feld { min-height: 40px; width: 180px; border-radius: 999px; padding: 0 16px; }
.format-reihe + .format-reihe { margin-top: 24px; }

@media (prefers-reduced-motion: reduce) { .ablage, .ablage.auf { transition: none; } }
/* Kopf: Format als eigene zweite Zeile unter „Für wen“, neu und bald ab bleiben rechts in der ersten */
.leiste .formate { order: 3; flex-basis: 100%; }
.leiste .filter { order: 2; }
/* Beim Ziehen muss die Leiste schnell da sein (der Finger ist schon unterwegs) */
.ablage.beim-ziehen, .ablage.beim-ziehen.auf { transition-duration: var(--dur-base); }
/* Zugeklappte Claude-Kachel ohne Restfläche: der Innenabstand bliebe sonst unter der Kopfzeile stehen */
.claude-block .klapp:not(.auf) > .claude-inhalt { padding-bottom: 0; }

/* ---------- Kritiker-Runde 1 (23.11.2026) ----------
   Leiste ohne Abschneiden: Pillen brechen um, Bereiche zuerst, dann Format. Auf dem Handy ein Blatt von unten mit
   festem „Übernehmen“. Unterreihen mit Haarlinie. Handy-Kopf: alle Filter in einer wischbaren Zeile. */
.ablage-pillen { flex-wrap: wrap; overflow: visible; }
.ablage-reihe { align-items: flex-start; }
.ablage-et { padding-top: 12px; }
.ablage.beim-ziehen .ablage-et { padding-top: 15px; }
.ablage-t { font-size: var(--s-klein); }
.ablage.beim-ziehen .ablage-t { color: var(--text-primary); font-weight: 600; }
.ablage-fuss { align-self: flex-end; }
.format-reihe + .format-reihe { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.format-reihe .art-t { color: var(--text-primary); }
.format-reihe .art-t .zahl { font-weight: 400; }
.blatt-mehr { justify-self: start; margin: 4px 0 0; }
@media (max-width: 719px) {
  .ablage { max-height: 78dvh; overflow-y: auto; border-radius: 20px 20px 0 0; border: 1px solid var(--kontur); border-bottom: 0; background: var(--bg-body); padding-top: 16px; }
  .ablage.ueber-nav { border-bottom: 1px solid var(--kontur); }
  .ablage-innen { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .ablage-t { grid-column: 1; grid-row: 1; }
  .ablage-fuss { display: contents; }
  .ablage-fuss .icon-knopf { grid-column: 2; grid-row: 1; align-self: start; }
  .ablage-reihen { grid-column: 1 / -1; grid-row: 2; gap: 14px; }
  .ablage-reihe { display: grid; gap: 8px; }
  .ablage-et { width: auto; padding-top: 0; }
  .ablage.beim-ziehen .ablage-et { padding-top: 0; }
  .ablage-pillen { padding: 0; }
  .ablage-fuss [data-ablage-ok] { grid-column: 1 / -1; grid-row: 3; justify-content: center; width: 100%; min-height: 48px; position: sticky; bottom: 0; background: var(--bg-body); }
  /* Kopf: eine wischbare Zeile statt drei */
  .leiste { display: flex; grid-column: 1 / -1; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 20px; margin: 0 -16px; padding: 0 16px; }
  .leiste::-webkit-scrollbar { display: none; }
  .leiste .fuer, .leiste .filter, .leiste .formate { flex: none; margin: 0; padding: 0; overflow: visible; flex-basis: auto; order: 0; }
  .leiste .formate { order: 1; }
  .leiste .filter { order: 2; }
  .pruef-innen { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (min-width: 720px) { .ablage-innen { align-items: flex-start; } .ablage-t { padding-top: 10px; } }
/* Vorschlag von Claude: Etikett statt Pille (sah aus wie ein Knopf). Ordnungsfarbe Flieder für Ideen am Zeichen,
   nie als Schrift (Manual v1.4, Kapitel Content Platform). */
.cl-marke { height: auto; padding: 0; border: 0; border-radius: 0; gap: 6px; }
.cl-marke::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #9A80CF; }
/* „Bereich anlegen“ in einer Zeile, linksbündig wie die Spaltenköpfe (Kritiker-Runde 2) */
.anlegen { width: auto; white-space: nowrap; justify-content: flex-start; }
@media (max-width: 719px) { .anlegen { width: calc(100vw - 32px); justify-content: center; } }

/* ---------- Kritiker-Runde 2 (23.11.2026) ---------- */
/* Vorschläge von Claude kompakt: Bild klein links, Text und Knöpfe rechts. Mehr Vorschläge im Blick, nichts halb. */
/* Bild links frei gestellt, Titel, Meta, Herkunft, Einordnung und Knöpfe als eine Spalte rechts daneben */
.claude-karte { position: relative; padding-left: 102px; min-height: 156px; }
.claude-karte > .karte-knopf { position: static; }
.claude-karte > .karte-knopf > .thumb { position: absolute; left: 0; top: 0; width: 88px; border-radius: 14px; }
.claude-karte > .karte-knopf > .karte-text { margin-top: 0; }
.claude-karte .thumb .spiel { width: 32px; height: 32px; }
.claude-karte .neu-pille { top: 6px; left: 6px; padding: 1px 8px; }
.spalte.eingang .claude-inhalt { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.claude-karte.in-arbeit { outline: 1px solid var(--text-primary); outline-offset: 8px; border-radius: 16px; }
.cl-quelle { color: var(--text-secondary); }
/* Flieder nur einmal: am Kopf der Vorschläge (Manual v1.4, Ordnungsfarbe für Ideen, nie als Schrift) */
.claude-t.cl-marke { display: inline-flex; align-items: center; gap: 8px; height: auto; padding: 0; border: 0; border-radius: 0; font-weight: 600; }

/* Scrollflächen laufen weich aus, statt Zeilen zu halbieren */
.spalte-inhalt { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); padding-bottom: 28px; }
.pruef-innen { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); }
.sofort { margin: 10px 0 0; font-size: var(--s-klein); color: var(--text-secondary); }

/* Leiste: Gewählt klar (Kontur in Schriftfarbe), Format mit Punkt, Schließen oben rechts */
.ablage .pille[aria-pressed="true"] { border-color: var(--text-primary); }
.ablage [data-ablage-format][aria-pressed="true"]::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--text-primary); }
.ablage-et .zahl { display: block; margin-top: 2px; }
@media (min-width: 720px) {
  .ablage { padding-right: 72px; }
  .ablage .ablage-zu { position: absolute; top: 12px; right: 20px; }
}

/* Ziehen: kleines Bild rechts über dem Zeiger, alle Spalten als Ziel erkennbar, das getroffene deutlich */
body.zieht .geist { width: 72px; border-radius: 14px; }
body.zieht .spalte[data-spalte] { outline: 1px solid var(--kontur); outline-offset: -1px; }
.spalte.ueber, body.zieht .spalte.ueber { outline: 1px solid var(--text-primary); outline-offset: -1px; background: #EDE8E5; }
.anlegen.ueber { outline: 1px solid var(--text-primary); outline-offset: -1px; background: #EDE8E5; border-color: transparent; }

/* Stapel: Zahl im Kopf, „Bereich anlegen“ am Ende, durchgezogene Kontur */
.leer-stapel-t { display: flex; gap: 8px; align-items: baseline; }
.anlegen { border-style: solid; }
.leer-stapel .anlegen { width: 100%; min-height: 48px; border-radius: 16px; }

/* Spaltenkopf: Zeilen oben bündig, wenn ein Name umbricht; offene Spalten nie unter 240 px */
.kopf-zeile { align-items: flex-start; }
.kopf-zeile .klapp-pfeil { margin-top: 3px; }
.kopf-zeile .zahl { margin-top: 3px; }

/* Karten-Meta ruhiger und lesbarer: Plattform normal, Wörter dunkler */
.brett .karte-knopf .meta { color: #5A5A56; }
.brett .karte-knopf .meta.plattform { font-weight: 400; }

/* Hinzufügen: Aufklapper erkennbar */
.blatt-mehr { margin-top: 12px; gap: 6px; }
.blatt-mehr .klapp-pfeil { transition: transform var(--dur-base) var(--ease-out); }
.blatt-mehr[aria-expanded="true"] .klapp-pfeil { transform: rotate(90deg); }

@media (max-width: 719px) {
  /* Kopf: Format zuerst in der Wischzeile, rechts läuft sie sichtbar aus */
  .leiste .formate { order: 0; }
  .leiste .fuer { order: 1; }
  .leiste .filter { order: 2; }
  .leiste { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); padding-right: 40px; }
  /* Die nächste Spalte schaut deutlicher herein */
  .spalte, .spalte.eingang { width: calc(100vw - 88px); }
  .spalte.eingang .claude-inhalt { grid-template-columns: minmax(0, 1fr); }
  .leer-stapel { width: 220px; }
}

/* ---------- Kritiker-Runde 3 (23.11.2026) ---------- */
/* Gewählt überall gleich: Fläche #EDE8E5 plus Kontur in Schriftfarbe (Kopf, Leiste, Detail, Blatt) */
.pille[aria-pressed="true"] { border-color: var(--text-primary); }
/* Aufklappen ist kein Knopf neben „Hinzufügen“, sondern ein leiser Text in Schriftfarbe */
.text-knopf { display: inline-flex; align-items: center; min-height: 40px; padding: 0 8px; border: 0; background: none; color: var(--text-primary); font-size: var(--s-klein); font-weight: 600; cursor: pointer; }
.text-knopf:hover { color: var(--text-secondary); }
.text-knopf:focus-visible { outline: 1px solid var(--text-primary); outline-offset: 2px; border-radius: 8px; }
/* Filterband: „Für wen“ oben, darunter Format und die beiden Zähler-Schalter in derselben kleinen Größe */
@media (min-width: 720px) {
  .leiste .fuer { order: 0; flex-basis: 100%; }
  .leiste .formate { order: 1; flex: 0 1 auto; flex-basis: auto; }
  .leiste .filter { order: 2; }
}
.leiste .filter .pille { font-size: var(--s-klein); padding: 0 14px; }
/* Leiste: Schließen nur als Zeichen, Vorschau und „Übernehmen“ direkt unter der Wahl */
.ablage .ablage-zu { border: 0; background: none; }
.ablage-ok .ablage-pillen { align-items: center; gap: 16px; }
.ablage-vorschau { margin: 0; font-size: var(--s-klein); color: var(--text-primary); font-weight: 600; }
.ablage.beim-ziehen .ablage-pillen .pille { min-height: 40px; font-size: var(--s-klein); padding: 0 14px; }
/* Ziehen: Bild klein mit Beschriftung am Zeiger; mögliche Spalten sichtbar, die getroffene gefüllt */
.geist, body.zieht .geist { display: flex; align-items: flex-end; gap: 8px; width: auto; background: none; border: 0; border-radius: 0; overflow: visible; opacity: 1; }
.geist .thumb { width: 60px; flex: none; border: 1px solid var(--text-primary); border-radius: 12px; opacity: .92; }
.geist-t { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid var(--text-primary); border-radius: 999px; background: var(--bg-body); color: var(--text-primary); font-size: var(--s-klein); font-weight: 600; white-space: nowrap; }
body.zieht .spalte[data-spalte] { outline: 1px solid var(--text-secondary); outline-offset: -1px; }
/* Vorschläge auf dem Rechner höchstens etwa zwei Reihen hoch, die Karten darunter bleiben im Blick */
@media (min-width: 720px) { .spalte.eingang .claude-block .klapp.auf > .claude-inhalt { max-height: 46vh; overflow-y: auto; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), transparent); padding-bottom: 24px; } }
/* Brett: rechts läuft es sichtbar weiter */
.brett-huelle::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 32px; pointer-events: none; background: linear-gradient(to right, color-mix(in srgb, var(--bg-body) 0%, transparent), var(--bg-body)); z-index: 2; }
/* Stapel-Kopf als echte kleine Überschrift */
.leer-stapel-t { font-size: var(--s-text); font-weight: 600; color: var(--text-primary); margin: 2px 4px 4px; }
.leer-stapel-t .zahl { font-weight: 400; }
/* Detail: Hinweis direkt unter der Überschrift, auf dem Handy Luft über der Tableiste */
.sofort { margin: -4px 0 10px; }
@media (max-width: 719px) { .pruef-innen { padding-bottom: calc(132px + env(safe-area-inset-bottom)); } }
/* Feld im Blatt: Fokus 2 px statt kräftiger Kontur */
.blatt .feld:focus, .blatt .feld:focus-visible { outline: 0; border: 2px solid var(--text-primary); }
.cl-quelle { color: #5A5A56; }
/* Leiste kompakt: kleine Pillen wie im Filterband, damit sie das Brett nicht halb verdeckt */
.ablage .ablage-pillen .pille { min-height: 40px; font-size: var(--s-klein); padding: 0 14px; }
@media (max-width: 719px) { .ablage .ablage-pillen .pille { min-height: 44px; } .ablage .ablage-ok .pille[data-ablage-ok] { min-height: 48px; font-size: var(--s-text); } }
@media (max-width: 719px) {
  /* Handy-Blatt: Hinweis neben dem Etikett, Vorschau und „Übernehmen“ volle Breite, Seite dahinter ruhig abgedeckt */
  .ablage-et .zahl { display: inline; margin: 0 0 0 6px; }
  .ablage-ok .ablage-pillen { flex-direction: column; align-items: stretch; gap: 10px; }
  .ablage-ok .pille[data-ablage-ok] { justify-content: center; width: 100%; }
  body.ablage-auf:not(.zieht) .seite::after { content: ""; position: fixed; inset: 0; z-index: 55; background: color-mix(in srgb, var(--bg-body) 72%, transparent); }
}

/* ---------- Kritiker-Runde 4 (23.11.2026) ---------- */
/* Leiste: oben Titel, Vorschau, „Übernehmen“ und Schließen in einer Zeile, darunter zwei kompakte Reihen */
.ablage { padding-right: 24px; }
.ablage-innen { display: block; }
.ablage-kopf { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; min-height: 40px; }
.ablage-kopf .ablage-t { flex: 1; min-width: 0; width: auto; padding: 0; }
.ablage-kopf .ablage-titel { display: inline; margin-left: 6px; -webkit-line-clamp: unset; }
.ablage-ende { flex: none; display: flex; align-items: center; gap: 12px; }
.ablage .ablage-zu { position: static; }
.ablage-reihen { display: grid; gap: 8px; }
.ablage-reihe { align-items: center; }
.ablage-et { width: 190px; padding-top: 0; color: var(--text-primary); font-weight: 600; }
.ablage-et .zahl { display: inline; margin: 0 0 0 6px; font-weight: 400; color: var(--text-secondary); }
.ablage.beim-ziehen .ablage-et { padding-top: 0; }
.ablage.beim-ziehen .ablage-kopf { margin-bottom: 8px; }
@media (max-width: 719px) {
  .ablage-innen { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .ablage-kopf, .ablage-ende { display: contents; }
  .ablage-kopf .ablage-t { grid-column: 1; grid-row: 1; }
  .ablage-kopf .ablage-titel { display: block; margin: 2px 0 0; }
  .ablage .ablage-zu { grid-column: 2; grid-row: 1; align-self: start; }
  .ablage-reihen { grid-column: 1 / -1; grid-row: 2; gap: 14px; }
  .ablage-reihe { display: grid; gap: 8px; align-items: start; }
  .ablage-et { width: auto; }
  .ablage-vorschau { grid-column: 1 / -1; grid-row: 3; }
  .ablage .pille[data-ablage-ok] { grid-column: 1 / -1; grid-row: 4; width: 100%; justify-content: center; min-height: 48px; font-size: var(--s-text); }
  .ablage.ueber-nav { padding-bottom: 20px; }
  body.ablage-auf:not(.zieht) .seite::after { background: color-mix(in srgb, var(--bg-body) 88%, transparent); }
}

/* Ziehen: mögliche Spalten deutlich umrandet, die getroffene gefüllt */
body.zieht .spalte[data-spalte] { outline: 1px solid color-mix(in srgb, var(--text-primary) 45%, transparent); }
.spalte.ueber, body.zieht .spalte.ueber { background: #EDE8E5; outline: 1px solid var(--text-primary); }

/* Kopf: ein Filterband in einer Größe; Aufklappen sitzt am Ende des Bands; gewählt mit Punkt */
.fuer .pille { font-size: var(--s-klein); padding: 0 14px; }
.leiste .pille[aria-pressed="true"]::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--text-primary); }
@media (min-width: 720px) {
  body:not(.kundenmodus) .alle-desktop { display: none; }
  body:not(.kundenmodus) .alle-mobil { display: inline-flex; }
  .text-knopf { min-width: 128px; justify-content: flex-end; }
}

/* Karten auf dem Brett: Plattform und Haltbarkeit in einer Zeile */
.brett .karte-knopf .karte-text { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; }
.brett .karte-knopf .karte-text > :not(.meta), .brett .karte-knopf .karte-text > .meta.auch { flex-basis: 100%; }
/* Mehrfach-Funde: beim Überfahren alle Vorkommen markiert */
.karte-knopf.zwilling .thumb { outline: 1px solid var(--text-primary); outline-offset: 3px; }
/* Leere Bereiche im Stapel ohne „0“ */
.leer-stapel .kopf-zeile .zahl { display: none; }
/* Hinzufügen: Format und Bereich gleich angeben als kleine Pille */
.blatt-mehr { min-height: 36px; }

/* ---------- Kritiker-Runde 5 (23.11.2026) ---------- */
/* Vorschläge: höchstens vier, darunter „Alle n zeigen“; keine innere Scrollfläche mehr */
@media (min-width: 720px) { .spalte.eingang .claude-block .klapp.auf > .claude-inhalt { max-height: none; overflow: visible; -webkit-mask-image: none; mask-image: none; padding-bottom: 16px; } }
.claude-mehr { grid-column: 1 / -1; justify-self: start; min-width: 0; justify-content: flex-start; padding-left: 0; }
.claude-karte .cl-bereich { margin-top: 6px; }
/* Leiste: „Übernehmen“ mit Vorschau am Ende der Format-Reihe, direkt bei der Wahl */
.ablage-ok-gruppe { display: inline-flex; align-items: center; gap: 14px; margin-left: auto; padding-left: 16px; }
.ablage .ablage-vorschau { margin: 0; color: var(--text-primary); font-weight: 600; font-size: var(--s-klein); white-space: nowrap; }
.ablage .pille[data-ablage-ok] { font-size: var(--s-text); min-height: 44px; padding: 0 20px; }
.ablage [data-ablage-format="ohne"] { margin-left: 8px; }
.ablage-reihe { flex-wrap: nowrap; }
@media (max-width: 719px) {
  .ablage-ok-gruppe { display: grid; gap: 10px; margin: 6px 0 0; padding: 0; width: 100%; }
  .ablage .pille[data-ablage-ok] { width: 100%; justify-content: center; min-height: 48px; }
  .ablage [data-ablage-format="ohne"] { margin-left: 0; }
  body.ablage-auf:not(.zieht) .seite::after { background: color-mix(in srgb, var(--bg-body) 94%, transparent); }
}
/* Ziehen: getroffenes Ziel klar (Creme statt Spaltengrau, Kontur in Schriftfarbe), am Bild Titel und Ziel */
.spalte.ueber, body.zieht .spalte.ueber { background: var(--bg-body); outline: 2px solid var(--text-primary); outline-offset: -2px; }
.ablage .pille.ueber { background: #EDE8E5; border-color: var(--text-primary); outline: 1px solid var(--text-primary); outline-offset: 0; }
.geist-w { display: grid; gap: 6px; max-width: 220px; }
.geist-n { font-size: var(--s-klein); font-weight: 600; color: var(--text-primary); background: var(--bg-body); padding: 2px 8px; border-radius: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.geist-t { justify-self: start; }
/* Hinweis je Eingabeart */
.nur-finger { display: none; }
@media (hover: none) and (pointer: coarse) { .nur-maus { display: none; } .nur-finger { display: inline; } }
/* Feld im Blatt: Fokus insgesamt 2 px (1 px Rand plus 1 px Linie des Portals) */
.blatt .feld:focus, .blatt .feld:focus-visible { border-width: 1px; }
/* Hinzufügen: Aufklapper als Text mit Pfeil */
.blatt-mehr { justify-content: flex-start; padding-left: 0; min-width: 0; margin-top: 8px; }
/* Handy: Detail endet über der Tableiste */
@media (max-width: 719px) { .pruef { bottom: calc(72px + env(safe-area-inset-bottom)); } .pruef-innen { padding-bottom: 32px; } }

/* ---------- Kritiker-Runde 6 (23.11.2026) ---------- */
/* Ein Knopf je Vorschlag: „Passt“ ist die Pille, „Ändern“ leiser Text */
.cl-aktion { align-items: center; }
.cl-aktion .text-knopf { min-width: 0; justify-content: flex-start; padding: 0 6px; }
/* Gewähltes Format überall mit Punkt, auch im Detail */
.pruef [data-aktion="format"][aria-pressed="true"]::before, .blatt #blatt-format .pille[aria-pressed="true"]::before, .blatt #blatt-typ .pille[aria-pressed="true"]::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--text-primary); }
/* Titel ohne einzelne Wörter in der letzten Zeile */
.karte-t, .spalte-kopf h2, .ablage-titel { text-wrap: balance; }
.anlegen { border-radius: 999px; }
.ablage [data-ablage-format="ohne"] { margin-left: 20px; }
/* Beim Ziehen kein doppelter Hinweis im Fach */
body.zieht .spalte-fuss { visibility: hidden; }


/* ---------- Kompakter, Variante C (Wahl Moritz 24.11.2026) ---------- */
/* Eingang: leer nur der Leer-Satz, schmal; auf dem Handy ganz weg (Vorschläge von Claude halten ihn offen) */
@media (min-width: 720px) { .spalte.eingang:not(.zu):has(.leer-satz) { flex: none; width: 200px; } }
@media (max-width: 719px) { .spalte.eingang:has(.leer-satz):not(:has(.claude-karte)) { display: none; } }

/* Kopf (Desktop): enge Abstände, Pillen und Schalter 34 px, „Für wen“ als eine Auswahl-Pille, Format in derselben Zeile */
@media (min-width: 720px) {
  .kopf { padding: 10px 24px; gap: 8px; }
  .kopf-a { gap: 16px; }
  .zurueck { min-height: 34px; }
  .kopf .pille, .kopf .schalter { min-height: 34px; padding: 0 14px; }
  .leiste { flex-wrap: nowrap; gap: 8px 16px; }
  .leiste .fuer { order: 0; flex: none; flex-wrap: nowrap; gap: 10px; }
  .leiste .ansicht { order: 1; flex: none; }
  .leiste .formate { order: 2; flex: 1 1 auto; flex-basis: auto; min-width: 0; padding-left: 16px; border-left: 1px solid var(--line); }
  .leiste .filter { order: 3; flex: none; }
}
/* Auswahl-Pille: nur Kontur, kein Punkt, damit sie nicht wie eine zweite gewählte Fläche wirkt */
.auswahl-knopf { gap: 8px; max-width: 100%; background: transparent; border-color: var(--kontur); }
.auswahl-knopf .knopf-wert { overflow: hidden; text-overflow: ellipsis; }
.auswahl-knopf .sb-icon { flex: none; }
.auswahl-knopf[aria-expanded="true"] { border-color: var(--text-primary); }
.leiste .auswahl-knopf { font-size: var(--s-klein); padding: 0 14px; }
.auswahl-menue { position: fixed; z-index: 45; display: grid; gap: 2px; padding: 8px; max-height: min(60vh, 420px); overflow-y: auto; background: var(--bg-s1); border: 1px solid var(--kontur); border-radius: 20px; box-shadow: none; }
.auswahl-eintrag { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 40px; padding: 0 14px; border: 0; border-radius: 12px; background: transparent; color: var(--text-primary); font-size: var(--s-klein); font-weight: 600; line-height: 1.25; text-align: left; white-space: nowrap; cursor: pointer; }
.auswahl-eintrag:hover { background: color-mix(in srgb, #EDE8E5 60%, transparent); }
.auswahl-eintrag[aria-selected="true"] { background: var(--sel-bg, #EDE8E5); }
.auswahl-eintrag:focus-visible { outline: 1px solid var(--text-primary); outline-offset: -1px; }
.auswahl-eintrag .zahl { font-weight: 400; color: var(--text-secondary); }
/* Firmen-Ansicht: drei Pillen, die gewählte wie überall hell mit Kontur und Punkt (aus .leiste .pille[aria-pressed]) */
.ansicht .zahl { margin-left: 2px; font-weight: 400; color: var(--text-secondary); }
.ansicht .pille { white-space: nowrap; font-size: var(--s-klein); padding: 0 14px; }

/* Handy: Zeile 1 „Team“ und Kundenmodus, Zeile 2 Titel mit „Nur intern“ und runder Hinzufügen-Knopf, Zeile 3 wischbar, Zeile 4 Ansicht */
@media (max-width: 719px) {
  .kopf { padding: 6px 16px 8px; gap: 4px 10px; }
  .zurueck, .schalter { min-height: 36px; }
  .titel { font-size: 24px; display: flex; align-items: center; gap: 10px; }
  #hinzufuegen { width: 40px; min-height: 40px; padding: 0; gap: 0; justify-content: center; }
  #hinzufuegen .knopf-t { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .kopf .pille { min-height: 40px; }
  .leiste .fuer { order: -1; flex-basis: auto; }
  .leiste .formate { order: 0; }
  .kopf > .ansicht { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: nowrap; min-width: 0; }
  .kopf > .ansicht[hidden] { display: none; }
  .kopf > .ansicht .pille { flex: 0 1 auto; min-width: 0; min-height: 36px; font-size: var(--s-klein); padding: 0 12px; gap: 6px; }
  .auswahl-menue { max-width: calc(100vw - 16px); }
}

/* Karten kleiner (nur im Team): 112 px, Titel 13 px auf höchstens drei Zeilen (ganzer Titel im title), Plattform nur als Zeichen */
body:not(.kundenmodus) .raster { column-gap: 16px; row-gap: 20px; }
body:not(.kundenmodus) .brett .thumb { border-radius: 14px; }
body:not(.kundenmodus) .brett .thumb .spiel { width: 32px; height: 32px; margin: -16px 0 0 -16px; }
body:not(.kundenmodus) .brett .karte-knopf .karte-text { margin-top: 8px; column-gap: 8px; font-size: var(--s-klein); line-height: 1.3; }
body:not(.kundenmodus) .brett .karte-knopf .karte-text > :not(.meta) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
body:not(.kundenmodus) .brett .karte-knopf .meta { margin-top: 4px; }
body:not(.kundenmodus) .brett .huelle:not(.claude-karte) .plattform-name { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
body:not(.kundenmodus) .brett .huelle:not(.claude-karte) .meta.plattform { gap: 0; }
/* „auch in …“ zeigt die Markierung beim Überfahren, auf der kleinen Karte nicht noch als Zeile */
body:not(.kundenmodus) .brett .karte-knopf .meta.auch { display: none; }
.marken:not(:has(.marke:not([hidden]))) { display: none; }
body:not(.kundenmodus) .spalte-kopf { padding: 12px 12px 8px; }
body:not(.kundenmodus) .spalte-inhalt { padding: 0 12px 16px; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 20px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 20px), transparent); }
.art-t { margin-bottom: 8px; }
.format-reihe + .format-reihe { margin-top: 14px; padding-top: 12px; }
@media (min-width: 720px) {
  body:not(.kundenmodus) .brett { gap: 12px; padding: 14px 20px 20px; }
  body:not(.kundenmodus) .spalte.zu { width: 180px; }
  /* Spaltenköpfe einzeilig, die Spalte wird so breit wie ihr Name: Kartenoberkanten fluchten */
  .spalte[data-spalte]:not(.zu):not(.eingang) { min-width: max-content; }
  .spalte[data-spalte]:not(.zu) .spalte-kopf h2 { white-space: nowrap; }
}

/* Korb: auf dem Desktop eine Leiste unten, darin ein Pillen-Knopf („Prüfen“) und „Call starten“ als Text.
   Der Chat-Kreis des Portals steigt über die Leiste, solange sie da ist. */
@media (min-width: 720px) {
  body.korb-an:has(.korb.eingeklappt) #gchat-fab { bottom: 104px; }
}
/* Handy: in der Korb-Leiste nur „Prüfen“ (Call starten steht im aufgeklappten Korb) */
@media (max-width: 719px) { .text-knopf.leiste-call { display: none; } }

/* Format-Zeile läuft über: rechts weicher Auslauf statt harter Kante (24.11.2026) */
.leiste .formate.auslauf { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }
/* Zugeklappte Bereiche: Name einzeilig, die Kachel wird so breit wie ihr Name (24.11.2026) */
@media (min-width: 720px) {
  body:not(.kundenmodus) .spalte[data-spalte].zu { min-width: max-content; }
  body:not(.kundenmodus) .spalte[data-spalte].zu .spalte-kopf h2 { white-space: nowrap; }
  /* nur der Name bestimmt die Breite, Hinweise und Vorschaubilder darunter umbrechen */
  body:not(.kundenmodus) .spalte[data-spalte].zu .kachel-unten,
  body:not(.kundenmodus) .spalte[data-spalte].zu > .klapp[data-klapp-auf] { width: 0; min-width: 100%; }
}
