/* Board – aus notes-and-trees 2.3 herausgelöst (DESIGN §3, §4, §6, §9), ergänzt um Konsensfarben,
   Zählzeile, Präsenz, Aktivitätsmarken und Hinweise. */
body { overflow: hidden; }
body.no-panel { --pw: 0px; }
body.nur-lesen .acts, body.nur-lesen .twisty-add { display: none !important; }

/* ---------- Werkzeugleiste ---------- */
header {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: 52px;
  display: flex; align-items: center; gap: 6px; padding: 0 12px;
  background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.brand { font-weight: 650; letter-spacing: -.01em; margin-right: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.brand span { color: var(--ink-soft); font-weight: 400; font-size: calc(13px * var(--fs-scale)); }
.spacer { flex: 1 1 auto; }
.sep { width: 1px; height: 22px; background: var(--line); margin: 0 2px; flex: none; }
.zoomknopf { padding: 5px 10px; font-size: calc(16px * var(--fs-scale)); line-height: 1; min-width: 32px; }
.zoomwert { padding: 6px 4px; min-width: 52px; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.hist svg { width: 17px; height: 17px; }
#ansicht { width: auto; max-width: 230px; padding: 5px 8px; }
@media (max-width: 1280px) { .hide-md { display: none; } }
@media (max-width: 1020px) { .hide-sm { display: none; } }

.praesenz { display: flex; gap: 4px; align-items: center; max-width: 360px; overflow: hidden; }
.person { display: inline-flex; align-items: center; gap: 5px; font-size: calc(12px * var(--fs-scale)); padding: 2px 8px 2px 3px;
  border: 1px solid var(--line); border-radius: 20px; background: var(--panel); white-space: nowrap; }
.person .ini { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: calc(10.5px * var(--fs-scale));
  color: #fff; background: var(--pf, var(--accent)); }
.person.ich { border-color: var(--accent); }

/* ---------- Zählzeile ---------- */
#zaehlzeile {
  position: fixed; top: 52px; left: 0; right: 0; z-index: 55; height: 32px; display: flex; align-items: center; gap: 14px;
  padding: 0 14px; font-size: calc(12.5px * var(--fs-scale)); color: var(--ink-soft); background: var(--panel-2); border-bottom: 1px solid var(--line);
  white-space: nowrap; overflow: hidden;
}
#zaehlzeile .z { display: inline-flex; align-items: center; gap: 5px; }
#zaehlzeile .z b { color: var(--ink); font-variant-numeric: tabular-nums; }
#zaehlzeile .punkt { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
#zaehlzeile .status { margin-left: auto; font-weight: 600; }
#zaehlzeile .status.warn-s { color: var(--danger); }
#zaehlzeile .status.ruhig { color: var(--ink-soft); font-weight: 500; }

/* ---------- Board ---------- */
#board {
  position: fixed; top: 84px; left: 0; right: var(--pw); bottom: 0; overflow: auto;
  background-image: radial-gradient(circle at 1px 1px, var(--bg-grid) 1.4px, transparent 1.4px); background-size: 26px 26px;
  transition: right .18s ease;
}
#canvasWrap { position: relative; width: 5200px; height: 3600px; }
#canvas { position: relative; width: 5200px; height: 3600px; transform-origin: 0 0; }
body.ursprung #board { background-color: color-mix(in srgb, var(--accent-soft) 35%, var(--bg)); }
.ursprung-band { position: fixed; top: 84px; left: 0; right: var(--pw); z-index: 50; padding: 6px 14px; font-size: calc(13px * var(--fs-scale));
  background: var(--accent-soft); color: var(--accent); border-bottom: 1px solid var(--accent); display: flex; gap: 10px; align-items: center; }
body.ursprung #board { top: 118px; }

/* ---------- Karte ---------- */
.card { -webkit-user-drag: none; user-select: none; --c: var(--k-grau); background: var(--panel);
  border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: var(--radius); box-shadow: var(--shadow); position: relative; }
.card.root { position: absolute; width: 320px; }
.card-self { position: relative; border-radius: inherit; cursor: grab;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 20%, transparent), transparent 140px); }
:root[data-theme="dark"] .card-self { background: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card-self { background: none; } }
body.nur-lesen .card-self { cursor: default; }
.head { display: flex; align-items: flex-start; gap: 4px; padding: 7px 6px 3px 8px; }
.twisty { flex: none; width: 20px; height: 20px; padding: 0; margin-top: 1px; border: none; background: transparent;
  color: var(--ink-soft); font-size: calc(11px * var(--fs-scale)); border-radius: 5px; display: grid; place-items: center; }
.twisty:hover:not(:disabled) { background: var(--panel-2); border-color: transparent; }
.twisty.hidden { visibility: hidden; }
.card.collapsed .chev { transform: rotate(-90deg); }
.chev { transition: transform .15s; }
.title { user-select: text; flex: 1 1 auto; min-width: 0; font-weight: 620; font-size: calc(14.5px * var(--fs-scale)); letter-spacing: -.005em;
  padding: 2px 3px; border-radius: 5px; outline: none; word-break: break-word; cursor: text; }
.body { user-select: text; min-height: 26px; padding: 2px 10px 10px 32px; font-size: calc(13px * var(--fs-scale)); color: var(--ink-soft); white-space: pre-wrap;
  word-break: break-word; outline: none; border-radius: 5px; cursor: text; }
body.nur-lesen .title, body.nur-lesen .body { cursor: default; }
.title:focus, .body:focus { background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent) inset; }
.title:empty::before, .body:empty::before { content: attr(data-ph); color: var(--ink-faint); pointer-events: none; }
.badge { flex: none; font-size: calc(11px * var(--fs-scale)); color: var(--ink-soft); background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 20px; padding: 0 6px; line-height: 17px; margin-top: 2px; }
/* Zählmarke: nie nur Farbe (ADR-005 §4) */
.marke { flex: none; font-size: calc(11px * var(--fs-scale)); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 18px;
  margin-top: 1px; padding: 0 7px; border-radius: 20px; color: var(--ink); background: color-mix(in srgb, var(--c) 30%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--c) 70%, var(--line)); white-space: nowrap; }
.haken { flex: none; font-size: calc(12px * var(--fs-scale)); font-weight: 800; color: var(--green); margin-top: 1px; line-height: 18px; }
.acts { flex: none; display: flex; gap: 2px; opacity: 0; transition: opacity .12s; }
.card-self:hover .acts, .acts:focus-within { opacity: 1; }
.acts button { width: 24px; height: 24px; padding: 0; display: grid; place-items: center; border-color: transparent;
  background: transparent; color: var(--ink-soft); font-size: calc(14px * var(--fs-scale)); }
.acts button:hover { background: var(--panel-2); border-color: var(--line); color: var(--ink); }
.acts button.x:hover { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.children { padding: 10px 10px 10px 16px; display: flex; flex-direction: column; gap: 10px; }
.card:has(> .children > .card) > .card-self > .body { padding-bottom: 0; }
.children:empty { display: none; }
.card.collapsed > .children { display: none; }
.card.collapsed.dt-child > .children { display: flex; }
.card.collapsed.dt-child > .children > .card { display: none; }
.card.sel, .card.m-tgt { outline: 2px solid var(--accent); outline-offset: -1px; }
.card.gedimmt > .card-self { opacity: .38; }
.card.gerade > .card-self { animation: gerade 1.6s ease; }
@keyframes gerade { 0% { box-shadow: 0 0 0 3px var(--accent) inset; } 100% { box-shadow: 0 0 0 0 transparent inset; } }

/* Konsensfarbe schlägt die Grundfarbe der Karte */
.card.k-gruen { --c: var(--k-gruen); } .card.k-gelb { --c: var(--k-gelb); } .card.k-orange { --c: var(--k-orange); } .card.k-grau { --c: var(--k-grau); } .card.k-violett { --c: var(--k-violett); }

/* Gruppenwurzel (Kern / Steuern / Unterstützen) */
.card.gruppe { --c: var(--k-gruppe); background: color-mix(in srgb, var(--panel-2) 70%, var(--bg)); }
.card.gruppe > .card-self { background: none; }
.card.gruppe > .card-self > .head .title { font-size: calc(13px * var(--fs-scale)); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); cursor: grab; }
.card.gruppe > .card-self > .body { display: none; }
.card.gruppe > .children:empty { display: block; min-height: 40px; }
.card.gruppe > .children:empty::before { content: 'Karten hierher ziehen'; color: var(--ink-faint); font-size: calc(12px * var(--fs-scale)); }

/* Aktivitätsmarke „Anna zieht …“ */
.aktiv-marke { position: absolute; top: -10px; right: 10px; z-index: 5; font-size: calc(11px * var(--fs-scale)); font-weight: 650;
  padding: 1px 8px; border-radius: 20px; color: #fff; background: var(--pf, var(--accent)); box-shadow: 0 2px 6px rgba(0,0,0,.2); pointer-events: none; white-space: nowrap; }
.card.fremd-aktiv > .card-self { box-shadow: 0 0 0 2px var(--pf, var(--accent)) inset; border-radius: inherit; }

/* Herkunft an der Karte: „Fassung A (Andrea, Markus): Wortlaut“ */
.fassungen { margin: -4px 10px 8px 32px; display: grid; gap: 1px; font-size: calc(11.5px * var(--fs-scale)); color: var(--ink-soft); }
.fassungen .fl { font-weight: 650; color: var(--ink); }
.fassungen i { font-style: italic; }
.konsens-box .fassungen { margin: 6px 0 0; }

/* Ursprungs-Ansicht: Verweis auf die gemeinsame Karte */
.wohin { margin: 0 10px 8px 32px; font-size: calc(11.5px * var(--fs-scale)); color: var(--ink-soft); }

/* ---------- Ziehen ---------- */
.card.dragging { position: fixed !important; z-index: 1500; pointer-events: none; box-shadow: var(--shadow-lift); opacity: .65; }
.card.dragging .zones { display: none; }
.zones { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; display: none; overflow: hidden; }
.card.dt > .card-self > .zones { display: block; }
.zone { position: absolute; left: 0; right: 0; height: 28px; display: flex; align-items: center; justify-content: flex-end; padding: 0 8px; opacity: 0; transition: opacity .1s; }
.zone .zmarke { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--panel); box-shadow: 0 2px 7px rgba(0,0,0,.3); }
.zone .zmarke svg { width: 16px; height: 16px; stroke-width: 2.1; }
.z-merge { top: 0; color: var(--accent); background: linear-gradient(to bottom, color-mix(in srgb, var(--accent) 26%, transparent), transparent); box-shadow: inset 0 2px 0 var(--accent); }
.card.dt-merge > .card-self > .zones > .z-merge { opacity: 1; }
.drop-spacer { flex: none; height: 0; border-radius: 9px; border: 1.5px dashed color-mix(in srgb, var(--green) 65%, transparent);
  background: color-mix(in srgb, var(--green) 9%, transparent); transition: height .13s ease; }
.card.dt-merge { outline: 2px solid var(--accent); outline-offset: -1px; }
.card.dt-child { outline: 2px solid var(--green); outline-offset: -1px; }
.card.dt-nein { outline: 2px dashed var(--danger); outline-offset: -1px; }
#dragHint { position: fixed; z-index: 2000; pointer-events: none; display: none; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 18px;
  font-size: calc(12.5px * var(--fs-scale)); font-weight: 600; color: #fff; background: var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,.28); white-space: nowrap; max-width: 360px; }
#dragHint.on { display: flex; }
#dragHint svg { width: 14px; height: 14px; flex: none; }
#dragHint.merge { background: var(--accent); }
#dragHint.child, #dragHint.order { background: var(--green); }
#dragHint.nein { background: var(--danger); }
#dragHint b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
:root[data-theme="dark"] #dragHint:is(.merge, .child, .order, .nein) { color: #16161a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) #dragHint:is(.merge, .child, .order, .nein) { color: #16161a; } }

/* ---------- Seitenbereich ---------- */
#panel { position: fixed; top: 84px; right: 0; bottom: 0; width: var(--pw); z-index: 50; display: flex; flex-direction: column;
  background: var(--panel-2); border-left: 1px solid var(--line); transition: transform .18s ease; overflow: hidden; }
body.no-panel #panel { transform: translateX(100%); }
#panel.flash { animation: flash .7s ease; }
@keyframes flash { 0%, 100% { background: var(--panel-2); } 35% { background: var(--accent-soft); } }
.p-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--panel); }
.p-head .k { font-size: calc(11px * var(--fs-scale)); font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint); }
.p-head .t { font-weight: 650; font-size: calc(14px * var(--fs-scale)); flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-body { flex: 1 1 auto; overflow: auto; padding: 14px 14px 20px; display: grid; gap: 16px; align-content: start; }
.p-foot { border-top: 1px solid var(--line); padding: 10px 12px; display: flex; gap: 8px; background: var(--panel); }
.p-foot button { flex: 1 1 auto; }
.sec > h4 { margin: 0 0 8px; font-size: calc(11px * var(--fs-scale)); font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint); }
.p-body p { margin: 0 0 8px; font-size: calc(13px * var(--fs-scale)); color: var(--ink-soft); }
.p-body p:last-child { margin-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.chip { font-size: calc(12px * var(--fs-scale)); padding: 3px 9px; border-radius: 20px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--panel); }
.pair { display: flex; align-items: center; gap: 8px; font-size: calc(13px * var(--fs-scale)); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.pair .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; flex: 1 1 0; min-width: 0; }
.pair .arrow { color: var(--accent); flex: none; display: flex; }
.sug { border: 1px solid var(--line); border-radius: 9px; background: var(--panel); padding: 9px 10px; margin-bottom: 7px; }
.sug .st { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.sug .sname { font-size: calc(11px * var(--fs-scale)); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint); flex: 1 1 auto; }
.sug h5 { margin: 0 0 3px; font-size: calc(13.5px * var(--fs-scale)); font-weight: 650; }
.sug .sb { font-size: calc(12.5px * var(--fs-scale)); color: var(--ink-soft); white-space: pre-wrap; max-height: 78px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
.sug.active { border-color: var(--accent); background: var(--accent-soft); }
.sug .sw { font-size: calc(12px * var(--fs-scale)); color: var(--ink-faint); font-style: italic; margin-top: 5px; }
.sug button { font-size: calc(12px * var(--fs-scale)); padding: 3px 9px; }
details.more > summary { margin-bottom: 8px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; }
.stat b { display: block; font-size: calc(17px * var(--fs-scale)); font-weight: 650; letter-spacing: -.02em; }
.stat span { font-size: calc(11px * var(--fs-scale)); color: var(--ink-faint); text-transform: uppercase; letter-spacing: .05em; }
.path { font-size: calc(12px * var(--fs-scale)); color: var(--ink-soft); word-break: break-word; }
.path a { color: var(--accent); text-decoration: none; cursor: pointer; }
.list { display: grid; gap: 4px; }
.row { display: flex; align-items: center; gap: 7px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px;
  font-size: calc(13px * var(--fs-scale)); cursor: pointer; text-align: left; width: 100%; justify-content: flex-start; white-space: normal; }
.row:hover { border-color: var(--ink-faint); }
.row .dot { width: 8px; height: 8px; border-radius: 3px; flex: none; background: var(--c); }
.row .rn { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .rv { font-size: calc(11px * var(--fs-scale)); color: var(--ink-faint); flex: none; }
.row.hide { display: none; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }
.actions button { font-size: calc(12.5px * var(--fs-scale)); }
.picker { display: grid; gap: 6px; }
.picker .list { max-height: 260px; overflow: auto; }
.felder { display: grid; gap: 6px; }
.feld { display: flex; gap: 6px; align-items: center; }
.feld input { padding: 6px 9px; }
.feld .fk { flex: 0 0 38%; font-weight: 600; }
.feld .fv { flex: 1 1 auto; min-width: 0; }
.feld button.x { flex: none; width: 26px; height: 26px; padding: 0; border-color: transparent; background: transparent; color: var(--ink-faint); }
.tasten { display: grid; gap: 5px; }
.taste { display: flex; gap: 9px; align-items: baseline; font-size: calc(12.5px * var(--fs-scale)); color: var(--ink-soft); }
.taste kbd { flex: none; min-width: 84px; text-align: center; }
.legend { display: grid; gap: 8px; }
.leg { display: flex; gap: 9px; align-items: flex-start; font-size: calc(12.5px * var(--fs-scale)); color: var(--ink-soft); }
.leg .ic { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex: none; }
.leg .ic svg { width: 15px; height: 15px; }
.leg.m .ic { background: var(--accent-soft); color: var(--accent); }
.leg.c .ic { background: var(--green-soft); color: var(--green); }
.leg .farbfeld { width: 26px; height: 18px; border-radius: 5px; flex: none; background: var(--c); margin-top: 2px; }
.leg b { color: var(--ink); }
details > summary { cursor: pointer; font-size: calc(11px * var(--fs-scale)); font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.herkunft { border: 1px solid var(--line); border-left: 4px solid var(--c, var(--line)); border-radius: 8px; background: var(--panel); padding: 7px 9px; display: grid; gap: 3px; }
.herkunft .wer { font-size: calc(11px * var(--fs-scale)); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint); display: flex; gap: 6px; align-items: center; }
.herkunft .wer button { margin-left: auto; font-size: calc(11.5px * var(--fs-scale)); padding: 2px 8px; text-transform: none; letter-spacing: 0; }
.herkunft .ht { font-weight: 650; font-size: calc(13px * var(--fs-scale)); }
.herkunft .hb { font-size: calc(12.5px * var(--fs-scale)); color: var(--ink-soft); white-space: pre-wrap; }
.herkunft .hp { font-size: calc(11.5px * var(--fs-scale)); color: var(--ink-faint); }
.konsens-box { border-radius: 8px; padding: 8px 10px; background: color-mix(in srgb, var(--c) 18%, var(--panel)); border: 1px solid color-mix(in srgb, var(--c) 60%, var(--line)); font-size: calc(13px * var(--fs-scale)); }
.konsens-box b { font-variant-numeric: tabular-nums; }
.zeit { font-size: calc(11.5px * var(--fs-scale)); color: var(--ink-faint); }
.lineage { font-size: calc(12px * var(--fs-scale)); color: var(--ink-soft); display: grid; gap: 3px; }
@media (max-width: 860px) {
  :root { --pw: 0px; }
  #panel { width: min(380px, 92vw); box-shadow: var(--shadow-lift); }
  body:not(.no-panel) #panel { transform: none; }
}

/* ---------- Meldungen ---------- */
#toast { position: fixed; left: calc(50% - var(--pw) / 2); bottom: 26px; transform: translate(-50%, 14px); max-width: min(640px, 80vw);
  background: var(--ink); color: var(--bg); padding: 9px 16px; border-radius: 20px; font-size: calc(13.5px * var(--fs-scale));
  opacity: 0; pointer-events: none; transition: .22s; z-index: 200; box-shadow: var(--shadow-lift); }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
#toast.fehler { background: var(--danger); color: #fff; }
#hinweise { position: fixed; left: 14px; bottom: 14px; z-index: 190; display: flex; flex-direction: column; gap: 6px; max-width: 380px; pointer-events: none; }
.hinweis { font-size: calc(12.5px * var(--fs-scale)); background: var(--panel); color: var(--ink-soft); border: 1px solid var(--line);
  border-left: 4px solid var(--pf, var(--accent)); border-radius: 8px; padding: 6px 10px; box-shadow: var(--shadow); transition: opacity .4s; }
.hinweis b { color: var(--ink); }
.hinweis.weg { opacity: 0; }
.leer-hinweis { position: fixed; left: calc(50% - var(--pw) / 2); top: 50%; transform: translate(-50%, -50%); text-align: center; color: var(--ink-soft); max-width: 460px; }
.leer-hinweis h2 { color: var(--ink); margin: 0 0 8px; font-size: calc(19px * var(--fs-scale)); }

/* Abschließen-Checkbox ganz oben im Seitenbereich */
.abschluss { border: 1px solid var(--line); border-left: 5px solid var(--k-gruen); border-radius: 9px; background: var(--panel); padding: 9px 11px; }
.abschluss label { display: flex; gap: 9px; align-items: center; font-weight: 650; font-size: calc(14px * var(--fs-scale)); cursor: pointer; }
.abschluss input { width: 18px; height: 18px; accent-color: var(--k-gruen); margin: 0; }
.abschluss input:disabled + span { color: var(--ink-faint); }
.abschluss.zu { background: var(--k-gruen-soft); }
.abschluss .warn { margin-top: 4px; }
/* Moderation im Board */
.person.mod { border-style: dashed; }
.modtab { width: 100%; border-collapse: collapse; font-size: calc(12px * var(--fs-scale)); }
.modtab td { padding: 3px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.modtab td.n { color: var(--ink-faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.modtab tr.zurueck td { text-decoration: line-through; color: var(--ink-faint); }
.geheim { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: var(--panel); border: 1px dashed var(--accent); border-radius: 8px; padding: 6px 8px; word-break: break-all; user-select: all; }
a.btn { display: inline-flex; }

/* Unterkarten-Liste mit ↑/↓ */
.row-zeile { display: flex; gap: 4px; align-items: stretch; }
.row-zeile .row { flex: 1 1 auto; min-width: 0; }
.row-zeile .pfeil { flex: none; width: 30px; padding: 0; font-size: calc(13px * var(--fs-scale)); }

/* Kartenknöpfe: beim Überfahren und an der gewählten Karte sichtbar, auf Touch immer */
.card.sel > .card-self .acts { opacity: 1; }
@media (hover: none) { .acts { opacity: 1; } }
.acts button svg { width: 13px; height: 13px; }
.acts button:disabled { opacity: .35; }

/* Vorschau aus „Könnte zusammenpassen“: deutlich, aber ohne Auswahl */
.card.vorschau { outline: 3px dashed var(--accent); outline-offset: 2px; }
.card.vorschau > .card-self { animation: vorschau 1.2s ease 2; }
@keyframes vorschau { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 40% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 35%, transparent); } }
.row-zeile button.klein { flex: none; font-size: calc(11.5px * var(--fs-scale)); padding: 3px 7px; }
