/* directionA/cockpit.css
 * Innovation Republic — Cockpit MVP Styles
 * Präfix: dirA-ck-
 */

/* ---- Page wrapper ---- */
.dirA-ck-page {
  min-height: 100dvh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

/* ---- Login ---- */
.dirA-ck-login {
  min-height: 100dvh;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.dirA-ck-login-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px 36px 32px;
}
.dirA-ck-login-title {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 10px;
}
.dirA-ck-login-sub {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 0;
}
/* ---- Startkarte der Demo: Sprachwahl + Ueberblicksvideo (02.10.2026) ----
 * Breiter als die Anmeldekarte, damit das Video am Schreibtisch nicht auf
 * Briefmarkengroesse schrumpft. Am Handy zaehlt ohnehin `width: 100%`. */
.dirA-ck-demo-karte { max-width: 600px; }
.dirA-ck-demo-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
/* Doppelselektor: hebt die Regel ueber `.dirA-lang` in style.css. Die
 * Mindestmasse statt `padding`, weil die Knoepfe in i18n.jsx ein
 * Inline-`padding: 0` tragen (dieselbe Falle wie in der Kopfleiste). */
.dirA-lang.dirA-ck-demo-lang { padding: 0 10px; flex: 0 0 auto; }
.dirA-ck-demo-lang > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 44px;
}
/* Die gewaehlte Sprache muss ohne Vergleich erkennbar sein — fett allein
 * reicht in der kleinen Monoschrift nicht. */
.dirA-ck-demo-lang > button.active {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-color: var(--accent-red);
}

/* ---- Erklaervideo (directionA/erklaervideo.jsx) ----
 * `min-width: 0` und `overflow-wrap: anywhere`: Die Namensnennung besteht aus
 * langen Adressen ohne Leerzeichen. Ohne beides macht sie bei 390 px die
 * ganze Karte breiter als den Bildschirm. */
.dirA-ck-video { margin: 0 0 24px; min-width: 0; text-align: left; }
.dirA-ck-video-rahmen {
  aspect-ratio: 16 / 9;
  background: #0E0E10;
  border-radius: 12px;
  overflow: hidden;
}
.dirA-ck-video-film { display: block; width: 100%; height: 100%; }
.dirA-ck-video-titel {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.dirA-ck-video-dauer { color: var(--ink-3); font-weight: 400; }
.dirA-ck-video-nennung {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink-3);
  overflow-wrap: anywhere;
}
.dirA-ck-video-nennung a { color: inherit; text-decoration: underline; }

/* ---- Hilfe-Popup und „?" am Prozessschritt (erklaervideo.jsx) ----
 * Ueber den 150 des Kachel-Popups und den 200 der uebrigen Modale: Die Hilfe
 * geht auch aus einem offenen Kachel-Popup und aus Modalen („Neuer Bedarf“)
 * heraus auf.
 * ⚠️ Zwei Klassen im Selektor, nicht eine (06.10.2026): `.dirA-ck-popup-hintergrund`
 * steht weiter unten mit `z-index: 150` und gleicher Spezifität — die spätere
 * Regel gewann, das Video öffnete HINTER dem Formular „Neuer Bedarf“. */
.dirA-ck-popup-hintergrund.dirA-ck-hilfe-hintergrund { z-index: 210; }
.dirA-ck-popup.dirA-ck-hilfe-popup { max-width: 720px; }
.dirA-ck-hilfe-kurz {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}
/* Umschalter zwischen den beiden Staffeln (Bedarfstraeger / Anbieter). */
.dirA-ck-hilfe-staffel {
  display: inline-flex;
  gap: 2px;
  margin: 0 0 18px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
}
.dirA-ck-hilfe-staffel-knopf {
  min-height: 36px;
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.dirA-ck-hilfe-staffel-knopf[aria-pressed="true"] { background: var(--ink); color: var(--bg-elev); }
.dirA-ck-demo-staffel { margin: 0 auto 14px; }
.dirA-ck-hilfe-staffel-knopf:focus-visible { outline: 2px solid var(--accent-red); outline-offset: 2px; }
.dirA-ck-hilfe-liste { list-style: none; margin: 0; padding: 0; }
.dirA-ck-hilfe-eintrag { padding: 18px 0; border-top: 1px solid var(--line); }
.dirA-ck-hilfe-eintrag:first-child { padding-top: 0; border-top: 0; }
.dirA-ck-hilfe-eintrag:last-child { padding-bottom: 0; }
.dirA-ck-hilfe-eintrag .dirA-ck-video { margin: 14px 0 0; }
.dirA-ck-hilfe-label {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.dirA-ck-hilfe-titel {
  display: block;
  margin: 2px 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.dirA-ck-hilfe-video-knopf {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}
.dirA-ck-hilfe-video-knopf:hover { background: var(--bg); }
/* Einmaliger Hinweis auf die drei Hilfen (erklaervideo.jsx, IrHilfeHinweis). */
.dirA-ck-hinweis-liste { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 12px; }
.dirA-ck-hinweis-liste li { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.dirA-ck-hinweis-name {
  display: inline-block; min-width: 28px; margin-right: 4px; padding: 1px 10px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 500; text-align: center; color: var(--ink);
}
.dirA-ck-hinweis-zwischen { margin: 0 0 12px; font-size: 15px; line-height: 1.5; color: var(--ink); font-weight: 500; }
.dirA-ck-hinweis-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }
.dirA-ck-hinweis-ok { background: var(--ink); color: var(--bg-elev); border-color: var(--ink); }
.dirA-ck-hinweis-ok:hover { background: var(--ink); opacity: 0.9; }
.dirA-ck-hilfe-video-knopf:focus-visible { outline: 2px solid var(--accent-red); outline-offset: 2px; }
/* Die Tippflaeche misst 44 px, der sichtbare Kreis 20. Die negativen Raender
 * nehmen einen Teil der Flaeche wieder aus der Zeilenhoehe heraus — sonst
 * wuerde jede Phase im Verfahrensstand doppelt so hoch. Nur einen Teil: Bei
 * -14 px waren Zeilen ohne Datum 29 px hoch, und die Tippflaechen zweier
 * Nachbarn lagen 15 px uebereinander (gemessen 02.10.2026). */
.dirA-ck-video-frage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: -8px 0 -8px -6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  vertical-align: middle;
}
.dirA-ck-video-frage > span {
  width: 20px;
  height: 20px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}
.dirA-ck-video-frage:hover > span { background: var(--bg); color: var(--ink); }
.dirA-ck-video-frage:focus-visible { outline: none; }
.dirA-ck-video-frage:focus-visible > span { outline: 2px solid var(--accent-red); outline-offset: 2px; }

.dirA-ck-login-fine {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  margin: 20px 0 0;
  line-height: 1.6;
}

/* ---- Top Bar ---- */
.dirA-ck-topbar {
  background: var(--bg-deep);
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dirA-ck-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dirA-ck-topbar-sep {
  color: rgba(255,255,255,0.2);
  font-size: 16px;
  user-select: none;
}
.dirA-ck-topbar-label {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.dirA-ck-topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.dirA-ck-topbar-user {
  font-family: var(--f-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.45);
}

/* ---- Body / Layout ---- */
.dirA-ck-body {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin-inline: auto;
  padding: 32px 28px 64px;
}

/* ---- Welcome ---- */
.dirA-ck-welcome {
  margin-bottom: 24px;
}
.dirA-ck-welcome-title {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.dirA-ck-welcome-hint {
  font-size: 15px;
  color: var(--accent-red);
  margin: 6px 0 0;
  font-weight: 500;
}

/* ---- Stats ---- */
.dirA-ck-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-elev);
  margin-bottom: 28px;
}
.dirA-ck-stat {
  padding: 20px 22px;
  border-right: 1px solid var(--line);
}
.dirA-ck-stat:last-child { border-right: none; }
.dirA-ck-stat-val {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--ink);
}
.dirA-ck-stat-label {
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

/* ---- Two-column grid ---- */
/* minmax(0, 1fr) statt 1fr: Eine 1fr-Spalte wächst auf den breitesten nicht
   schrumpfenden Inhalt (z. B. den nowrap-Titel einer eingeklappten Bedarfskarte)
   und schiebt die Seite über den Viewport hinaus. */
.dirA-ck-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}

/* ── Assistent als angedocktes Panel ────────────────────────────────────────
 *
 * Am Handy bleibt es eine Vollbild-Überlagerung; dort gibt es keinen Platz
 * daneben. Erst ab 841 px dockt es rechts an, und der Inhalt weicht — nur so
 * sind Datenraum und Antwort gleichzeitig lesbar.
 *
 * ⚠️ Die Zahl 841 steht im Code genau einmal: `CK_AS_ANDOCK_PX` in
 * `directionA/assistent.jsx`. Dort hängt seit dem 17.09.2026 mehr daran als
 * das Aussehen — angedockt meldet das Fenster kein `aria-modal` mehr, weil das
 * Cockpit daneben bedienbar bleibt. Eine Medienabfrage kann diese Konstante
 * nicht lesen, deshalb steht die Zahl hier weiterhin ausgeschrieben (dreimal,
 * an den drei Stellen, die zusammen umschalten müssen) und
 * `scripts/__tests__/andockgrenze.test.mjs` hält beide Seiten zusammen: Wer
 * hier verschiebt und die Konstante vergisst, bekommt einen roten Lauf.
 *
 * Die Basisregel hier (ohne @media) trägt die bisherigen Inline-Masse des
 * Dialogfensters (620px / 92vw / 86vh, vormals in assistent.jsx). Sie mussten
 * aus dem Inline-`style` heraus, weil ein Inline-Style JEDE CSS-Regel
 * schlägt, auch eine mit @media — die Andock-Regel darunter hätte sonst nie
 * gewirkt, ganz gleich was hier steht. Bis 840 px bleibt das Verhalten damit
 * exakt wie vorher.
 *
 * ⚠️ Beide Selektoren nennen `.dirA-ck-modal.dirA-ck-as-panel` (statt nur
 * `.dirA-ck-as-panel`), obwohl `assistent.jsx` das Element ohnehin mit beiden
 * Klassen zusammen rendert. Grund: weiter unten steht eine unbedingte
 * `.dirA-ck-modal`-Regel (Basis-Look aller Modals: 480px, `margin: auto`,
 * gerundete Ecken) mit derselben Spezifität (0,1,0). Bei gleicher Spezifität
 * gewinnt im CSS die später stehende Regel — also hätte `.dirA-ck-modal` hier
 * IMMER width/max-width/margin/border-radius überstimmt, ganz gleich was in
 * dieser Regel steht (Befund: gemessene Panel-Breite 480px statt 380px,
 * Überlappung der rechten Cockpit-Spalte). Der Doppelselektor hebt die
 * Spezifität auf (0,2,0) und gewinnt unabhängig von der Reihenfolge im
 * Stylesheet. Wer das hier zu nur `.dirA-ck-as-panel` „aufräumt“, holt den
 * Fehler zurück — bitte nicht ohne diesen Kommentar zu lesen anfassen.
 */
.dirA-ck-modal.dirA-ck-as-panel {
  max-width: 620px;
  width: 92vw;
  max-height: 86vh;
}
@media (min-width: 841px) {
  .dirA-ck-modal.dirA-ck-as-panel {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 380px;
    max-width: 40vw;
    max-height: none;
    margin: 0;
    border-radius: 0;
  }
  /* ⚠️ Der Umbruch hängt am ZUSTAND, nicht an der Fensterbreite.
   *
   * Gemessen: Das Raster ist `minmax(0, 1fr) 280px` und klappt bei 840 px auf
   * eine Spalte (siehe `.dirA-ck-grid` oben und den Umbruch weiter unten). Ein
   * Panel von 380 px verengt die Inhaltsspalte auf einem 1280er Schirm auf
   * etwa 620 px — unter den Umbruchpunkt. Ohne diese Regel klappte das
   * Cockpit beim Öffnen des Assistenten sichtbar um und die 280-px-Spalte
   * rutschte darunter.
   *
   * Die Umbruchpunkte selbst bleiben unverändert, damit das Verhalten OHNE
   * Panel genau das alte ist. */
  .dirA-ck-grid-panel { padding-right: 380px; }
}
@media (min-width: 841px) and (max-width: 1180px) {
  /* Zu eng für zwei Spalten neben dem Panel: hier klappt es absichtlich um —
     wieder über `.dirA-ck-grid-panel`, nicht über die Fensterbreite allein,
     aus demselben Grund wie oben. */
  .dirA-ck-grid-panel { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Main (needs list) ---- */
.dirA-ck-main-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.dirA-ck-section-label {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.dirA-ck-needs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---- Need Card ---- */
.dirA-ck-need-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 150ms ease;
}
.dirA-ck-need-card:hover { box-shadow: 0 2px 16px rgba(0,0,0,0.06); }
.dirA-ck-need-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.dirA-ck-status-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid;
  cursor: pointer;
  transition: opacity 120ms;
  background: transparent;
}
.dirA-ck-status-pill:hover { opacity: 0.75; }
.dirA-ck-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}
.dirA-ck-tag--check {
  background: rgba(244,184,60,0.15);
  color: #b8860b;
  border: 1px solid rgba(244,184,60,0.3);
}
.dirA-ck-need-del {
  background: transparent;
  border: none;
  color: var(--ink-3);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 120ms;
}
.dirA-ck-need-del:hover { opacity: 1; }
.dirA-ck-need-edit-btn {
  background: transparent;
  border: none;
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 120ms;
}
.dirA-ck-need-edit-btn:hover { opacity: 1; color: var(--accent-red); }
.dirA-ck-need-card--editing { gap: 10px; }

/* Submit Button */
.dirA-ck-submit-btn {
  font-size: 11px;
  font-family: var(--f-sans);
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.dirA-ck-submit-btn:hover { background: var(--ink); color: var(--bg); }

/* Provider List */
.dirA-ck-providers {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.dirA-ck-providers-title {
  font-size: 11px;
  font-family: var(--f-mono);
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 10px;
}
.dirA-ck-provider-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.dirA-ck-provider-item:last-child { border-bottom: none; padding-bottom: 0; }
.dirA-ck-provider-item--cancelled { opacity: 0.5; }
.dirA-ck-provider-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.dirA-ck-provider-name {
  font-size: 14px;
  color: var(--ink);
  display: block;
  margin-bottom: 2px;
}
.dirA-ck-provider-summary {
  font-size: 12px;
  color: var(--ink-2);
  margin: 0 0 4px;
  line-height: 1.4;
}
.dirA-ck-provider-url {
  font-size: 11px;
  color: var(--ink-3);
  text-decoration: none;
}
.dirA-ck-provider-url:hover { color: var(--ink); text-decoration: underline; }

/* Rating */
.dirA-ck-rating { margin-top: 4px; }
.dirA-ck-stars { display: flex; gap: 2px; user-select: none; }
.dirA-ck-need-edit-title {
  width: 100%;
  box-sizing: border-box;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  padding: 7px 10px;
  border: 1.5px solid var(--ink-3);
  border-radius: 7px;
  outline: none;
  background: var(--surface);
  color: var(--ink);
}
.dirA-ck-need-edit-title:focus { border-color: var(--accent-red); }
.dirA-ck-need-edit-desc {
  width: 100%;
  box-sizing: border-box;
  font-size: 13px;
  font-family: inherit;
  padding: 7px 10px;
  border: 1.5px solid var(--ink-3);
  border-radius: 7px;
  outline: none;
  background: var(--surface);
  color: var(--ink);
  resize: vertical;
  min-height: 80px;
}
.dirA-ck-need-edit-desc:focus { border-color: var(--accent-red); }
.dirA-ck-need-edit-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.dirA-ck-need-title {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.dirA-ck-need-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dirA-ck-need-meta {
  display: flex;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- Empty state ---- */
.dirA-ck-empty {
  text-align: center;
  padding: 56px 24px;
  border: 1px dashed var(--line-2);
  border-radius: 16px;
  background: var(--bg-elev);
}
.dirA-ck-empty-icon {
  font-size: 32px;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.dirA-ck-empty-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
}
.dirA-ck-empty-text {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 360px;
  margin: 0 auto 24px;
}

/* ---- Sidebar ---- */
.dirA-ck-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 68px;
}
.dirA-ck-sb-section {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dirA-ck-sb-label {
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.dirA-ck-sb-hint {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
  margin: 0;
}
.dirA-ck-partner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.dirA-ck-partner-row:first-of-type { border-top: none; padding-top: 0; }
.dirA-ck-partner-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.dirA-ck-partner-sub {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dirA-ck-partner-pill {
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}
.dirA-ck-partner-pill--live {
  background: rgba(22,163,74,0.1);
  color: var(--green);
  border: 1px solid rgba(22,163,74,0.25);
}
.dirA-ck-partner-pill--soon {
  background: var(--bg);
  color: var(--ink-3);
  border: 1px solid var(--line-2);
}

/* ---- Modal ---- */
.dirA-ck-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14,14,16,0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 200;
  padding: 20px;
  overflow-y: auto;
}
.dirA-ck-modal {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: auto;
}
.dirA-ck-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dirA-ck-modal-title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.dirA-ck-modal-close {
  background: transparent;
  border: none;
  color: var(--ink-3);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  opacity: 0.6;
  transition: opacity 120ms;
}
.dirA-ck-modal-close:hover { opacity: 1; }

/* ── Modale: die zweite Overlay-Klasse ──────────────────────────────────────
 *
 * ⚠️ Befund vom 23.08.2026: `.dirA-ck-modal-overlay` wurde in FÜNF Komponenten
 * verwendet, war im CSS aber **nirgends definiert** —
 * `AGBReacceptanceModal`, `AnbieterActivationModal`, `ProposalUploadModal`,
 * `ReviewInviteModal`, `ResultInviteModal`.
 *
 * Folge: Diese Dialoge erschienen nicht als Overlay, sondern als gewöhnlicher
 * Block **am Ende der Seite**. Wer auf das AGB-Banner klickte, sah scheinbar
 * nichts passieren und musste selbst nach unten scrollen, um die neuen AGB
 * überhaupt zu finden. Gemeldet für die AGB, betroffen waren alle fünf.
 *
 * Die Definitionen stehen hier statt einer Umbenennung im JSX: Eine Klasse in
 * fünf Dateien umzuschreiben ist mehr Risiko als drei Regeln zu ergänzen — und
 * die nächste Komponente, die den Namen wählt, funktioniert dann ebenfalls.
 */
.dirA-ck-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14,14,16,0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 200;
  padding: 20px;
  overflow-y: auto;
}

/* Kopf, Rumpf und Fuß waren ebenfalls undefiniert. Ohne sie klebte der
   Schließen-Knopf am Titel und der Bestätigen-Knopf am Text. */
.dirA-ck-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dirA-ck-modal-body {
  display: flex;
  flex-direction: column;
}
.dirA-ck-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* ── Modale: die dritte Overlay-Klasse ──────────────────────────────────────
 *
 * ⚠️ Befund vom 12.09.2026: Derselbe Fehler wie am 23.08., drei Tage nach
 * dessen Behebung neu eingeführt. `5329c29` legte `directionA/assistent.jsx`
 * mit `.dirA-ck-modal-backdrop` an — einem vierten Overlay-Namen, den es im
 * CSS nicht gab — und ergänzte keine einzige Klassendefinition.
 *
 * Folge: Ein Klick auf „Fragen & Melden" öffnete das Fenster zwar, aber weil
 * `.dirA-ck-page` ein Flex-Container ist (siehe oben), hing es als letztes
 * Flex-Item unter dem gesamten Cockpit-Inhalt. Für den Nutzer passierte
 * nichts.
 *
 * z-index 901 statt 200: Die Pille `.dirA-ck-fb-overlay` — der Auslöser
 * dieses Fensters — ist selbst `position: fixed` mit `z-index: 900`. Bei 200
 * bliebe sie über dem abgedunkelten Hintergrund stehen.
 *
 * Damit sich das nicht ein drittes Mal wiederholt, prüft `build.mjs` seit
 * dem 12.09.2026 jede im JSX verwendete `dirA-`Klasse gegen das CSS.
 */
.dirA-ck-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14,14,16,0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 901;
  padding: 20px;
  overflow-y: auto;
}

/* Am Schreibtisch ist der Assistent angedockt, kein Modal mehr. Zwei Dinge
   müssen dafür weg, sonst wirkt das Panel wie ein Modal, das nur verrutscht
   ist: die Abdunkelung UND die volle Klickfläche. Ohne Letzteres bliebe
   dieses unsichtbare `inset:0`-Element über dem gesamten Datenraum liegen
   und jeder Klick darin würde `onClose` auslösen statt den Inhalt zu
   bedienen — vom Verdunkeln abgesehen exakt das alte Modal-Verhalten. Die
   Box schrumpft deshalb auf dieselbe Spalte wie `.dirA-ck-as-panel`
   (`left: auto` + dieselbe Breite), damit nur ein Klick neben dem Panel
   selbst noch schließt. */
@media (min-width: 841px) {
  .dirA-ck-modal-backdrop {
    background: transparent;
    backdrop-filter: none;
    left: auto;
    width: 380px;
    max-width: 40vw;
  }
}

/* ── Assistent: Ladezustand in der Frage-Historie ───────────────────────────
 *
 * Defekt vom 12.09.2026: `busy` zeigte sich bislang nur als "…" auf dem
 * Absenden-Knopf — unsichtbar, sobald der wachsende Verlauf den Knopf aus dem
 * Sichtfeld schob. Der Platzhalter-Eintrag in `directionA/assistent.jsx`
 * braucht drei sanft pulsierende Punkte statt eines statischen Hinweises;
 * die Animation selbst (`ck-dot-pulse`) gibt es oben schon fuer den
 * Bestaetigungs-Punkt, hier nur zeitversetzt auf drei Punkte angewendet.
 */
.dirA-ck-as-arbeitet {
  display: inline-flex;
  align-items: center;
  color: var(--ink-3, #888);
}
.dirA-ck-as-dots {
  display: inline-flex;
  gap: 3px;
  margin-left: 6px;
}
.dirA-ck-as-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  animation: ck-dot-pulse 1.2s ease-in-out infinite;
}
.dirA-ck-as-dots span:nth-child(2) { animation-delay: 0.2s; }
.dirA-ck-as-dots span:nth-child(3) { animation-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) {
  .dirA-ck-as-dots span { animation: none; }
}

/* ── Assistent: Einstiegsfragen als Pillen ───────────────────────────────
 *
 * Vorbild chatbot.com: drei bis vier antippbare Einstiegsfragen, statt einer
 * abstrakten Erklaerung. `.dirA-ck-as-pille` baut auf `.dirA-btn.dirA-btn-ghost`
 * auf (gleiche Optik), hebt aber dessen `line-height: 1` und feste Hoehe auf —
 * eine ganze Frage muss mehrzeilig umbrechen duerfen, statt abgeschnitten zu
 * werden. Kein `title`-Tooltip: das Cockpit wird auch am iPhone bedient, wo es
 * keinen Hover gibt.
 */
.dirA-ck-as-pillen {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dirA-ck-as-pille {
  white-space: normal;
  text-align: left;
  line-height: 1.35;
  height: auto;
}

/* ── Assistent auf schmalen und NIEDRIGEN Geraeten ───────────────────────
 *
 * Befund B2 vom 18.09.2026: Bei 320x568 war der scrollende Bereich auf
 * 34 px sichtbar bei 263 px Inhalt zusammengedrueckt und das Eingabefeld auf
 * 24 px; bei 375x667 endete die zweite Pille mitten im Satz. Ab 390 px sass
 * es. Die Ursache ist NICHT die Zahl der Pillen, sondern der feste
 * Fensterkopf (Titel, Rolle, Moduswahl, Erklaerung) ueber einem zu niedrigen
 * Rest -- und dass die beiden Elemente unter dem Scroller selbst
 * Flex-Kinder sind und mitgeschrumpft wurden.
 *
 * Drei Dinge, in dieser Reihenfolge:
 *
 * 1. Eingabefeld und Absendeknopf schrumpfen nicht mehr (`flex: none`). Das
 *    allein macht das Feld wieder voll bedienbar -- unabhaengig von jeder
 *    Breite und Hoehe.
 * 2. Der Scroller bekommt eine Untergrenze. 34 px sehen nicht nach
 *    "scrollbar" aus, sondern nach kaputt; ein Fenster ohne erkennbare
 *    Scrollflaeche ist schlimmer als eines mit weniger Inhalt.
 * 3. Auf niedrigen Geraeten wird der feste Kopf schmaler (weniger Polster,
 *    weniger Abstand, hoeheres Fenster), damit Punkt 2 nicht zulasten der
 *    Eingabe geht.
 *
 * Als letzte Sicherung scrollt unter 841 px auch das Fenster selbst. Das ist
 * kein Ersatz fuer 1 bis 3 (der Verlauf wuerde die Eingabe wieder
 * wegschieben, siehe Defekt 1 in assistent.jsx), sondern der Boden fuer
 * Faelle, die hier niemand ausgemessen hat: Querformat, vergroesserte
 * Systemschrift, ein noch kuerzeres Geraet. Dann steht lieber alles
 * untereinander und scrollt, als dass etwas unerreichbar wird.
 */
.dirA-ck-as-eingabe,
.dirA-ck-as-senden { flex: none; }
.dirA-ck-as-modus { margin: 10px 0; }

@media (max-width: 840px) {
  .dirA-ck-modal.dirA-ck-as-panel { overflow-y: auto; }
  .dirA-ck-as-verlauf { min-height: 120px; }
}

/* Niedriges Geraet (iPhone SE hochkant: 568 px, iPhone 8: 667 px). Der feste
   Kopf kostete hier 28 px Polster und 20 px Abstand je Kind, dazu 20 px
   Aussenabstand an der Moduswahl -- zusammen mehr, als der Scroller selbst
   uebrig hatte. */
@media (max-width: 840px) and (max-height: 720px) {
  .dirA-ck-modal-backdrop { padding: 12px; }
  .dirA-ck-modal.dirA-ck-as-panel {
    padding: 14px;
    gap: 8px;
    max-height: calc(100dvh - 24px);
  }
  .dirA-ck-as-modus { margin: 0; }
}

/* Sehr niedriges Geraet: EINE Einstiegsfrage statt drei. Gleiche Begruendung
   wie beim Schritt von vier auf drei weiter oben -- eine angeschnittene Pille
   sieht aus wie das Ende der Liste, nur kaputt.
   Gemessen bei 320x568 nach den Aenderungen oben: Der Scroller ist 158 px
   hoch. Die erste Pille braucht mit ihrer Ueberschrift 103 px und passt ganz
   hinein; zwei Pillen brauchen 191 px, die zweite waere um rund 20 px
   angeschnitten -- und sie ist es, die bei groesserer Systemschrift zuerst
   waechst. Verloren geht nichts: Die Pillen sind ein Einstieg, kein
   Dauermenue -- jede Frage laesst sich weiterhin tippen, und das Eingabefeld
   steht in voller Hoehe direkt darunter. */
@media (max-width: 480px) and (max-height: 640px) {
  .dirA-ck-as-pille:nth-of-type(n+2) { display: none; }
}

/* ---- Responsive ---- */
@media (max-width: 840px) {
  .dirA-ck-grid { grid-template-columns: minmax(0, 1fr); }
  .dirA-ck-sidebar { position: static; }
  /* ⚠️ Befund S2 vom 18.09.2026: iPad hochkant (768 px). Die Topbar blieb
   * einzeilig, weil `flex-wrap` und das Ausblenden der E-Mail-Adresse bis
   * dahin erst unter 480 px standen. Die rechte Gruppe lag bei x 417–849 —
   * die ganze Seite war dadurch 849 px breit, 81 px waagerechter Ueberlauf in
   * JEDER Cockpit-Ansicht, und „Ausloggen" war angeschnitten.
   *
   * Die volle Adresse `demo@innovation-republic.de` allein kostet rund
   * 180 px; sie faellt hier weg. Wer angemeldet ist, steht weiterhin unter
   * „Einstellungen", und am Handy ist die Adresse seit jeher ausgeblendet
   * (Regel unten). Das allein reicht bei 768 px nicht — gemessen bricht die
   * Leiste dort in zwei Zeilen um (92 px statt 56 px hoch) und bleibt dabei
   * sticky. Beides zusammen ist der Punkt: Ohne `flex-wrap` waere die zweite
   * Zeile kein Umbruch, sondern weiterhin ein Ueberlauf. */
  .dirA-ck-topbar { flex-wrap: wrap; row-gap: 8px; }
  /* row-gap 12 statt 8: Die DE/EN-Pille wird 44 px hoch (Trefferflaeche,
     siehe unten), und „Ausloggen" liegt in der umgebrochenen Leiste direkt
     darunter. Bei 8 px blieben nur 9 px zwischen beiden — ein Fehlgriff nach
     unten haette ausgeloggt. */
  .dirA-ck-topbar-right { margin-left: auto; flex-wrap: wrap; justify-content: flex-end; row-gap: 12px; }
  .dirA-ck-topbar-user { display: none; }
  /* ── Trefferflaeche DE/EN (Befund S4) ────────────────────────────────
   *
   * Gemessen 13 x 14 px, und zwar direkt neben „Ausloggen". Ein Fehlgriff
   * wirft aus dem Cockpit, und zurueck kommt man nur ueber einen neuen
   * Magic Link per E-Mail -- klein neben folgenschwer, genau das Muster.
   *
   * `min-height`/`min-width` statt `padding`: Die beiden Knoepfe tragen in
   * i18n.jsx ein Inline-`padding: 0`, gegen das keine CSS-Regel ankommt.
   * Die Mindestmasse sind davon unberuehrt.
   *
   * Nur am Handy und auf dem Tablet: Am Schreibtisch zeigt der Zeiger
   * genauer, und eine 44 px hohe Pille wuerde die Leiste dort um 16 px
   * hoeher machen, ohne dass jemand etwas davon haette.
   *
   * Der Doppelselektor `.dirA-lang.dirA-ck-topbar-lang` hebt die
   * Spezifitaet ueber die `.dirA-lang`-Regel in style.css (gleiche
   * Spezifitaet, aber frueher im Stylesheet — siehe die Warnung beim
   * Assistenten-Panel oben, dieselbe Falle). */
  .dirA-lang.dirA-ck-topbar-lang { padding: 0 10px; }
  .dirA-ck-topbar-lang > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 44px;
  }
  /* Platz für den schwebenden Assistenten-Knopf am Seitenende. */
  .dirA-ck-body { padding-bottom: 88px; }
  .dirA-ck-stats { grid-template-columns: repeat(2, 1fr); }
  .dirA-ck-stat:nth-child(2) { border-right: none; }
  .dirA-ck-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 480px) {
  /* Platz für den schwebenden Assistenten-Knopf am Seitenende. */
  .dirA-ck-body { padding: 20px 16px 88px; }
  /* Am Handy volle Breite statt nebeneinander gequetschter Pillen. */
  .dirA-ck-as-pille { width: 100%; }
  /* ⚠️ Am Handy DREI Einstiegsfragen, nicht vier.
   *
   * Gemessen am 17.09.2026 bei 390 px in headless Chrome: Die vier Pillen
   * brauchen 315 px, der scrollende Bereich ist 268 px hoch — die vierte Pille
   * endete 32 px unterhalb der Kante und stand mitten im Satz ab („Muss ich als
   * Anbieter für die Teilnahme"). Notiert wurde das zweimal (12.09. und
   * 14.09.), beide Male als „abgeschnitten", nicht als „man muss scrollen":
   * Ein angeschnittenes Element sieht aus wie das Ende der Liste, nur kaputt.
   *
   * Entschieden gegen die kompaktere Darstellung: Enger gesetzte Pillen passen
   * bei 844 px Höhe knapp und bei einem kürzeren Gerät (iPhone SE, 667 px)
   * wieder nicht — der Fehler käme zurück, sobald jemand ein anderes Telefon in
   * die Hand nimmt oder die Systemschrift vergrößert. Drei Pillen sind vom
   * Gerät unabhängig.
   *
   * Es geht dabei nichts verloren: Die Pillen sind ein Einstieg, kein
   * Dauermenü (siehe `.dirA-ck-as-pillen` oben) — jede Frage lässt sich
   * weiterhin tippen, und das Eingabefeld steht direkt darunter.
   *
   * `display: none` und nicht ein Filter im JSX: Die Grenze „am Handy" steht
   * hier schon, und eine zweite Auffassung davon in JavaScript wäre eine
   * zweite Zahl, die mit dieser auseinanderlaufen kann. Verborgen heißt hier
   * auch für Hilfsmittel verborgen — die Pille ist nicht heimlich da. */
  .dirA-ck-as-pille:nth-of-type(n+4) { display: none; }
  /* Die Topbar passt am Handy nicht in eine Zeile (rechte Gruppe allein ~250 px
     EN / ~300 px DE bei 358 px Platz) und bricht um: Kopf, Aktionen, Umschalter.
     Drei Zeilen sticky kosteten dauerhaft ~116 px Höhe — deshalb hier static. */
  .dirA-ck-topbar { padding: 10px 16px; position: static; flex-wrap: wrap; row-gap: 8px; column-gap: 10px; }
  .dirA-ck-topbar-right { margin-left: auto; flex-wrap: wrap; justify-content: flex-end; row-gap: 12px; }
  .dirA-ck-topbar-user { display: none; }
  .dirA-ck-view-toggle { order: 3; flex: 1 1 100%; overflow-x: auto; }
  .dirA-ck-view-toggle-btn { flex: 1 0 auto; }
  .dirA-ck-stats { grid-template-columns: 1fr 1fr; }
  .dirA-ck-login-card { padding: 28px 22px 24px; }
}

/* ---- KI-Vorschlag ---- */
.dirA-ck-ai-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}
.dirA-ck-ai-btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-3);
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: 11px;
  padding: 4px 10px;
  transition: border-color 0.15s, color 0.15s;
}
.dirA-ck-ai-btn:hover:not(:disabled) {
  border-color: var(--accent-red);
  color: var(--accent-red);
}
.dirA-ck-ai-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.dirA-ck-ai-error {
  color: var(--accent-red);
  font-size: 12px;
  margin: 2px 0 0;
  text-align: right;
}
.dirA-ck-ai-block {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px 12px;
  margin-bottom: 4px;
}
.dirA-ck-ai-block-label {
  color: var(--ink-3);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.dirA-ck-ai-text {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 12px;
  white-space: pre-wrap;
}
.dirA-ck-ai-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
/* ---- Dein Unternehmen (Company Profile Section) ---- */
.dirA-ck-cp-view-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.dirA-ck-cp-edit-btn {
  background: none;
  border: none;
  color: var(--ink-3);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 2px 4px;
  opacity: 0.6;
  transition: opacity 0.12s;
}
.dirA-ck-cp-edit-btn:hover { opacity: 1; color: var(--ink); }

/* View mode */
.dirA-ck-cp-view {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dirA-ck-cp-view-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.dirA-ck-cp-view-website {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink);
  text-decoration: none;
  word-break: break-all;
}
.dirA-ck-cp-view-website:hover { text-decoration: underline; }
.dirA-ck-cp-view-rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.dirA-ck-cp-view-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
}
.dirA-ck-cp-view-row .lbl {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 48px;
  flex-shrink: 0;
}
.dirA-ck-cp-view-row .val {
  color: var(--ink);
  font-size: 12px;
  font-family: var(--f-sans);
}
.dirA-ck-cp-view-desc {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
}

/* Edit / form mode */
.dirA-ck-cp-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 2px;
}
/* horizontal row: label | input (right-aligned) */
.dirA-ck-cp-field {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dirA-ck-cp-field label {
  font-family: var(--f-sans);
  font-size: 13px;
  color: var(--ink-2);
  width: 90px;
  flex-shrink: 0;
}
.dirA-ck-cp-field input {
  flex: 1;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 13px;
  outline: none;
  padding: 7px 10px;
  box-sizing: border-box;
  transition: border-color 0.12s;
}
.dirA-ck-cp-field input:focus { border-color: var(--accent-red); }
/* full-width field (textarea): label above */
.dirA-ck-cp-field--full {
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
}
.dirA-ck-cp-field--full label {
  min-width: unset;
}
.dirA-ck-cp-field--full textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 13px;
  outline: none;
  padding: 8px 9px;
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 96px;
  line-height: 1.5;
  transition: border-color 0.12s;
}
.dirA-ck-cp-field--full textarea:focus { border-color: var(--accent-red); }
/* KI-Felder ausfüllen — single full-width button */
.dirA-ck-cp-analyse-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dirA-ck-cp-analyse-btn {
  background: none;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--ink-3);
  cursor: pointer;
  font-family: var(--f-sans);
  font-size: 13px;
  line-height: 1;
  padding: 8px 12px;
  text-align: left;
  transition: border-color 0.12s, color 0.12s, background 0.12s;
  width: 100%;
}
.dirA-ck-cp-analyse-btn:hover:not(:disabled) {
  background: rgba(220, 48, 48, 0.06);
  border-color: var(--accent-red);
  border-style: solid;
  color: var(--accent-red);
}
.dirA-ck-cp-analyse-btn:disabled { opacity: 0.35; cursor: not-allowed; }
/* KI-befüllte Felder — leicht getönte Gruppe */
.dirA-ck-cp-ai-group {
  background: rgba(220, 48, 48, 0.04);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
}
.dirA-ck-cp-field-err {
  color: var(--accent-red);
  font-family: var(--f-sans);
  font-size: 12px;
  margin: 0;
}
.dirA-ck-confirm-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: var(--accent-red);
  border-radius: 50%;
  margin-left: 7px;
  vertical-align: middle;
  flex-shrink: 0;
  animation: ck-dot-pulse 1.8s ease-in-out infinite;
}
@keyframes ck-dot-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
.dirA-ck-cp-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.dirA-ck-cp-suggest {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 10px;
}

.dirA-ck-cp-suggest-dismiss {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  color: var(--ink-3);
  text-decoration: underline;
  padding: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.dirA-ck-cp-suggest-dismiss:hover {
  color: var(--ink-1);
}

/* ---- Feedback-Button + Modal ---- */
.dirA-ck-fb-pill {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-deep);
  border: none;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 8px 16px;
  z-index: 900;
  opacity: 0.75;
  transition: opacity 0.15s, transform 0.15s;
}
.dirA-ck-fb-pill:hover { opacity: 1; transform: translateY(-1px); }
/* Solange ein Popup offen ist, ist der Hintergrund `inert` (kachel-popup.jsx)
   — die Pille ist dann ohnehin nicht bedienbar. Sichtbar blieb sie trotzdem,
   mit z-index 900 UEBER dem Popup (150), und verdeckte am Handy den Knopf
   „Bedarf loeschen“ unten im Popup (18.09.2026). Also weg, solange stillgelegt. */
[inert] .dirA-ck-fb-pill { visibility: hidden; }
/* Leiste unten rechts: „?“ (Hinweis erneut) links neben „Fragen & Feedback“.
   Die Leiste traegt die feste Position, die Pillen stehen darin. */
.dirA-ck-fb-leiste { position: fixed; bottom: 24px; right: 24px; z-index: 900; display: flex; gap: 8px; align-items: stretch; }
.dirA-ck-fb-leiste .dirA-ck-fb-pill { position: static; }
.dirA-ck-fb-frage { min-width: 34px; padding: 8px 0; font-family: var(--f-mono); text-align: center; }

/* „Neuer Bedarf“ steht am Handy ÜBER der Liste, nicht schwebend (12.09.2026).
   Dort rutscht die Seitenleiste unter die Bedarfsliste: Bei neun Bedarfen
   scrollt man an allem vorbei, bevor die wichtigste Handlung des Cockpits
   erreichbar ist. Ein zweiter schwebender Knopf war der erste Versuch — er
   verdeckte beim Scrollen die Karte darunter, deshalb steht er jetzt fest
   neben der Überschrift. Am Desktop bleibt der Knopf in der Seitenleiste;
   zwei Knöpfe für dieselbe Handlung wären dort Doppelung. */
.dirA-ck-neu-mobil { display: none; }
@media (max-width: 840px) {
  .dirA-ck-neu-mobil {
    display: inline-flex;
    font-size: 13px;
    padding: 6px 14px;
    white-space: nowrap;
  }
}

.dirA-ck-fb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 24px 80px 0;
  z-index: 901;
}
.dirA-ck-fb-modal {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  width: 300px;
}
.dirA-ck-fb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dirA-ck-fb-title {
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.dirA-ck-fb-close {
  background: none;
  border: none;
  color: var(--ink-3);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 4px;
  line-height: 1;
}
.dirA-ck-fb-close:hover { color: var(--ink); }
.dirA-ck-fb-select {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 13px;
  padding: 7px 9px;
  width: 100%;
}
.dirA-ck-fb-textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 13px;
  line-height: 1.5;
  padding: 8px 9px;
  resize: vertical;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.12s;
}
.dirA-ck-fb-textarea:focus { border-color: var(--accent-red); outline: none; }
.dirA-ck-fb-err {
  color: var(--accent-red);
  font-size: 12px;
  margin: 0;
}
.dirA-ck-fb-thanks {
  color: var(--ink-2);
  font-size: 13px;
  margin: 8px 0;
  text-align: center;
}
.dirA-ck-fb-send {
  border: none;
  font: inherit;
  font-size: 13px;
  width: 100%;
  justify-content: center;
}

/* ---- TopBar: View-Toggle ---- */
.dirA-ck-view-toggle {
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 3px;
}
.dirA-ck-view-toggle-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.55);
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.dirA-ck-view-toggle-btn:hover {
  color: rgba(255,255,255,0.85);
}
.dirA-ck-view-toggle-btn--active {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

/* ---- Anbieter: NeedCard ---- */
.dirA-ck-anb-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dirA-ck-anb-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* Erledigte Karte (Frist vorbei, Anbieter nicht beteiligt): nur der Titel tritt
   zurück. ⚠️ Keine Deckkraft auf der Karte — sie erfasst auch den Datenraum
   darin und drückt jeden Text unter 4,5 : 1 (bewacht von
   scripts/__tests__/anbieter-karte-lesbar.test.mjs). */
.dirA-ck-anb-card--erledigt .dirA-ck-anb-title {
  color: var(--ink-2);
}
/* Der Bedarf aus der Interessens-Mail. Nur ein Rahmen, keine Animation: Wer
   dem Link gefolgt ist, sucht die eine Karte in einer Liste — er braucht einen
   Fingerzeig, keinen Alarm. */
.dirA-ck-anb-card--hervor {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(232, 50, 10, 0.12);
}
.dirA-ck-anb-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.dirA-ck-anb-title {
  font-family: var(--f-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
}
.dirA-ck-anb-desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dirA-ck-anb-meta {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  margin: 0;
}
.dirA-ck-anb-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

/* ---- Deadline badge ---- */
.dirA-ck-anb-deadline {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.dirA-ck-anb-deadline--red {
  background: rgba(220,38,38,0.12);
  color: #dc2626;
}
.dirA-ck-anb-deadline--orange {
  background: rgba(234,88,12,0.10);
  color: #ea580c;
}
.dirA-ck-anb-deadline--gray {
  background: rgba(0,0,0,0.05);
  color: var(--ink-3);
}
.dirA-ck-anb-deadline--expired {
  background: rgba(0,0,0,0.05);
  color: var(--ink-3);
  text-decoration: line-through;
}

/* ---- Response status labels ---- */
.dirA-ck-anb-status {
  font-family: var(--f-mono);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 8px;
}
.dirA-ck-anb-status--yes {
  background: rgba(22,163,74,0.10);
  color: #16a34a;
}
.dirA-ck-anb-status--no {
  background: rgba(0,0,0,0.05);
  color: var(--ink-3);
}

/* ---- Marktplatz ---- */
.dirA-ck-mkt-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.dirA-ck-mkt-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.dirA-ck-mkt-search-icon {
  position: absolute;
  left: 12px;
  font-size: 16px;
  color: var(--ink-3);
  pointer-events: none;
  line-height: 1;
}

.dirA-ck-mkt-search {
  width: 100%;
  padding: 9px 36px 9px 34px;
  font-family: var(--f-sans);
  font-size: 13px;
  color: var(--ink);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s;
}

.dirA-ck-mkt-search::placeholder { color: var(--ink-3); }
.dirA-ck-mkt-search:focus { border-color: rgba(16,185,129,0.45); }

.dirA-ck-mkt-search-clear {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--ink-3);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
}
.dirA-ck-mkt-search-clear:hover { color: var(--ink); }

.dirA-ck-mkt-source-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.dirA-ck-mkt-source-tab {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink-3);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.dirA-ck-mkt-source-tab:hover { color: var(--ink); }
.dirA-ck-mkt-source-tab--active {
  background: rgba(16,185,129,0.10);
  border-color: rgba(16,185,129,0.35);
  color: #059669;
}

.dirA-ck-mkt-info {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.6;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.dirA-ck-mkt-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s;
}
.dirA-ck-mkt-card--expanded {
  border-color: rgba(16,185,129,0.35);
}

.dirA-ck-mkt-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.dirA-ck-mkt-card-marken {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

/* ⚠️ `overflow-wrap: anywhere` (Befund S1 vom 18.09.2026).
 *
 * Der Flex-Kasten um Titel und Beschreibung hat `min-width: 0`
 * (cockpit.jsx), schrumpft also korrekt mit der Karte. Nur half das nichts:
 * „Systemgestuetztes Warengruppenmanagement im Sektor Bau und
 * Immobilienbetrieb" braucht 184 px, der Kasten war bei 320 px nur 103 px
 * breit — ein Kompositum wie „Warengruppenmanagement" hat keine Stelle, an
 * der der Umbruch von selbst greift, und stand deshalb ueber den Rand der
 * Karte hinaus. Betraf 320, 375 und 390 px; ab 430 px passte es.
 */
.dirA-ck-mkt-card-title {
  font-family: var(--f-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.dirA-ck-mkt-card-desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dirA-ck-mkt-card-desc--open {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.dirA-ck-mkt-chevron {
  font-size: 9px;
  opacity: 0.45;
  margin-left: 4px;
}
.dirA-ck-mkt-detail {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 4px;
}
.dirA-ck-mkt-detail-text {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0 0 14px;
}
.dirA-ck-mkt-ext-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  color: #059669;
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 8px;
  transition: background 0.15s;
}
.dirA-ck-mkt-ext-link:hover {
  background: rgba(16,185,129,0.08);
}

/* ---- Marktplatz: Bewerben-Button ---- */
.dirA-ck-mkt-apply-btn {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid rgba(220,38,38,0.3);
  background: rgba(220,38,38,0.06);
  color: #dc2626;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.dirA-ck-mkt-apply-btn:hover { background: rgba(220,38,38,0.12); }

/* ---- Marktplatz: Bewerbungs-Modal ---- */
.dirA-ck-apply-modal {
  max-width: 520px;
  width: 100%;
}
.dirA-ck-apply-modal-head {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(14,14,16,.08);
}
.dirA-ck-apply-modal-body {
  display: flex;
  flex-direction: column;
}
.dirA-ck-apply-label {
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 600;
  color: #0E0E10;
}
.dirA-ck-apply-textarea {
  width: 100%;
  padding: 10px 12px;
  font-family: var(--f-sans);
  font-size: 13px;
  color: #333;
  background: #fafaf9;
  border: 1px solid rgba(14,14,16,.12);
  border-radius: 10px;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
  margin-top: 4px;
  transition: border-color 0.15s;
}
.dirA-ck-apply-textarea:focus { border-color: rgba(220,38,38,0.4); }

.dirA-ck-mkt-source {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: .03em;
  white-space: nowrap;
}

.dirA-ck-mkt-tag {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-3);
  background: rgba(0,0,0,0.05);
  padding: 2px 8px;
  border-radius: 6px;
}

.dirA-ck-mkt-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  flex-wrap: wrap;
}

/* Befund S1, zweiter Teil: `.dirA-ck-mkt-footer` bricht seit jeher ab 640 px
   um — der Kasten DARIN aber nicht. Knopf („Interesse bekunden →") und
   Passungsbalken zusammen brauchen 308 px in einem 288 px breiten Kasten;
   die ganze Marktplatz-Seite war bei 320 px dadurch um 25 px seitlich
   scrollbar. */
.dirA-ck-mkt-footer-aktionen {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dirA-ck-mkt-score {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dirA-ck-mkt-score-bar-wrap {
  width: 80px;
  height: 5px;
  background: rgba(0,0,0,0.08);
  border-radius: 3px;
  overflow: hidden;
}

.dirA-ck-mkt-score-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.dirA-ck-mkt-score-label {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .dirA-ck-view-toggle-btn { padding: 5px 10px; }
  .dirA-ck-mkt-footer { flex-direction: column; align-items: flex-start; }
}

/* Am Handy steht der Kartenkopf uebereinander: Frist und Quelle („30d",
   „Koinnovationsplatz") nahmen dem Titel bei 320 px 131 der 248 verfuegbaren
   Pixel — es blieben 103 px fuer eine ganze Ueberschrift. Quer darueber
   kostet die Zeile 20 px Hoehe und gibt dem Titel die volle Breite. */
@media (max-width: 480px) {
  .dirA-ck-mkt-card-head { flex-direction: column; gap: 8px; }
  .dirA-ck-mkt-card-marken {
    flex-direction: row;
    align-items: center;
    align-self: flex-start;
    flex-wrap: wrap;
    order: -1;
  }
}

/* ---- Anklickbare Elemente, die ein Detail-Modal öffnen ---- */
.dirA-ck-need-title--clickable,
.dirA-ck-need-desc--clickable,
.dirA-ck-provider-name--clickable {
  cursor: pointer;
}
.dirA-ck-need-title--clickable:hover,
.dirA-ck-provider-name--clickable:hover {
  color: var(--accent-red);
}
.dirA-ck-need-desc--clickable:hover {
  color: var(--ink);
}

/* ── Einstellungen ──────────────────────────────────────────────────────────
 *
 * Die erste Fassung (23.08.2026) war ein Formular ohne Rahmen: Felder in voller
 * Breite, Reiter als drei lose Knöpfe daneben, kein Bezug zwischen Reiter und
 * Inhalt. Das sah nicht nur altbacken aus, es war auch unklar — man erkannte
 * nicht, dass unter einem Reiter überhaupt etwas Eigenes liegt.
 *
 * Jetzt: eine Kachel je Bereich, Reiter als zusammenhängende Leiste darüber,
 * Felder auf lesbare Breite begrenzt. Die Rundungen (16/12/10 px) folgen den
 * Werten, die im Cockpit ohnehin gelten.
 */

.dirA-ck-set {
  max-width: 720px;
}

.dirA-ck-set-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  margin: 0 0 20px;
  background: var(--bg-2, rgba(0, 0, 0, 0.04));
  border: 1px solid var(--line);
  border-radius: 999px;
}

.dirA-ck-set-tab {
  appearance: none;
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 7px 16px;
  font: inherit;
  font-size: 13px;
  color: var(--ink-3);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
  white-space: nowrap;
}

.dirA-ck-set-tab:hover { color: var(--ink-1); }

/* Der aktive Reiter trägt die Fläche, nicht nur eine Umrandung — sonst
   verschwindet er zwischen den anderen. */
.dirA-ck-set-tab--on {
  background: var(--bg, #fff);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

.dirA-ck-set-card {
  background: var(--bg, #fff);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
}

.dirA-ck-set-card + .dirA-ck-set-card { margin-top: 0; }

.dirA-ck-set-card-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--ink);
}

.dirA-ck-set-card-sub {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0 0 18px;
  line-height: 1.55;
}

/* Gefahrenzone: gleiche Kachel, andere Tönung. Ein roter Knopf allein reicht
   nicht — die Fläche soll signalisieren, dass hier etwas anderes gilt. */
.dirA-ck-set-card--danger {
  border-color: rgba(220, 38, 38, .35);
  background: rgba(220, 38, 38, .03);
}
.dirA-ck-set-card--danger .dirA-ck-set-card-title { color: var(--accent-red); }

.dirA-ck-set-field { margin-bottom: 16px; }
.dirA-ck-set-field:last-child { margin-bottom: 0; }

.dirA-ck-set-field > label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.dirA-ck-set-field input {
  width: 100%;
  max-width: 420px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg, #fff);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.dirA-ck-set-field input:focus {
  outline: none;
  border-color: var(--ink-3);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .06);
}

.dirA-ck-set-field input:disabled {
  background: var(--bg-2, rgba(0, 0, 0, .04));
  color: var(--ink-3);
  cursor: not-allowed;
}

.dirA-ck-set-hint {
  font-size: 12px;
  color: var(--ink-3);
  margin: 6px 0 0;
  line-height: 1.5;
  max-width: 420px;
}

.dirA-ck-set-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
}
.dirA-ck-set-list li { padding-left: 18px; position: relative; }
.dirA-ck-set-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 10px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--line-2, #ccc);
}

/* Dokumentenliste: Zeilen als antippbare Flächen statt nackter Links —
   am Telefon ist ein 14px-Link kein Ziel. */
.dirA-ck-set-doc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease;
}
.dirA-ck-set-doc:hover { border-color: var(--ink-3); background: rgba(0, 0, 0, .015); }
.dirA-ck-set-doc span:last-child { color: var(--ink-3); font-size: 13px; }

@media (max-width: 640px) {
  .dirA-ck-set-tabs { display: flex; width: 100%; overflow-x: auto; }
  .dirA-ck-set-card { padding: 18px 16px; }
  .dirA-ck-set-field input { max-width: none; }
}

/* ── Bedarfskarte als Akkordeon (10.09.2026) ──────────────────────────────────
   Höchstens ein Abschnitt offen; gesperrte Abschnitte zeigen ihren Grund
   sichtbar in der Kopfzeile (iPhone, kein Hover).
   Spec: docs/superpowers/specs/2026-09-10-bedarf-akkordeon-design.md */
.dirA-ck-abschnitte {
  margin-top: 6px;
  border-top: 1px solid var(--line);
}
.dirA-ck-abschnitt { border-bottom: 1px solid var(--line); }
.dirA-ck-abschnitt-kopf {
  appearance: none;
  border: none;
  background: transparent;
  font: inherit;
  color: var(--ink);
  width: 100%;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 12px 2px;
  text-align: left;
  cursor: pointer;
}
.dirA-ck-abschnitt-titel { font-size: 14px; font-weight: 600; }
.dirA-ck-abschnitt-zusatz,
.dirA-ck-abschnitt-grund { font-size: 12px; color: var(--ink-3); }
.dirA-ck-abschnitt-pfeil { margin-left: auto; color: var(--ink-3); }
.dirA-ck-abschnitt--gesperrt .dirA-ck-abschnitt-kopf { cursor: default; }
.dirA-ck-abschnitt--gesperrt .dirA-ck-abschnitt-titel { color: var(--ink-3); font-weight: 500; }
/* Der Ladefehler ist gesperrt wie eine Phase, aber tippbar (neu laden) — die
   `--gesperrt`-Regel darüber würde das mit dem Default-Cursor verstecken.
   Muss nach ihr stehen, gleiche Spezifität, die letzte Regel gewinnt. */
.dirA-ck-abschnitt--fehler .dirA-ck-abschnitt-kopf { cursor: pointer; }
.dirA-ck-abschnitt-inhalt { padding: 0 2px 14px; }
/* Das erste Element im Abschnittsinhalt bringt sonst seinen eigenen
   Trennstrich/Abstand mit und doppelt sich damit mit der Kopfzeile darüber —
   unabhängig davon, WAS dieses erste Element ist (Anbieterliste, eigener
   Anbieter eintragen, o.ä.), deshalb generisch auf :first-child und nicht an
   eine einzelne Klasse gebunden. Wirkt nur, wenn das Element seinen Abstand
   nicht schon selbst per Inline-Style setzt (Inline-Style gewinnt ohnehin). */
.dirA-ck-abschnitt-inhalt > *:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
@media (max-width: 640px) {
  /* Bei schmaler Breite reicht die Flex-Zeile nicht für Titel + Zähler +
     Pfeil: der Pfeil rutschte in eine zweite Zeile. Zwei Spalten fixieren
     ihn rechts auf der ersten Zeile; der Zähler darf darunter umbrechen. */
  .dirA-ck-abschnitt-kopf {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    column-gap: 10px;
    row-gap: 2px;
  }
  .dirA-ck-abschnitt-titel { grid-column: 1; grid-row: 1; }
  .dirA-ck-abschnitt-zusatz,
  .dirA-ck-abschnitt-grund { grid-column: 1 / -1; grid-row: 2; flex-basis: auto; }
  .dirA-ck-abschnitt-pfeil { grid-column: 2; grid-row: 1; margin-left: 0; justify-self: end; }
}

/* ═══════════════════════════════════════════════════════════════════════════
 * Die Kachelwand und ihr Popup (18.09.2026)
 * ═══════════════════════════════════════════════════════════════════════════ */

/* Das Raster. `minmax(0, 1fr)` und nicht `1fr`: Eine Rasterspalte ist von
   Haus aus mindestens so breit wie ihr laengstes unteilbares Wort — eine
   Domain oder ein zusammengesetztes Substantiv sprengt damit die Spalte und
   erzeugt waagerechten Ueberlauf der ganzen Seite. Mit `minmax(0, …)` darf
   sie schrumpfen, und der Text bricht. */
.dirA-ck-kachelwand {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
@media (min-width: 620px) {
  .dirA-ck-kachelwand { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1180px) {
  .dirA-ck-kachelwand { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Die Trennlinie zwischen „wartet auf dich" und „laeuft" (29.09.2026).
 *
 * Dieselbe Schrift wie die Abschnittsbeschriftung darueber — sie ordnet, sie
 * alarmiert nicht. Die erste Gruppe bekommt keine Farbe und kein Symbol: Der
 * Handlungsbedarf steht schon auf jeder Kachel, hier geht es nur darum, WO
 * die Trennlinie liegt. Ab der zweiten Gruppe wird die Schrift leiser. */
.dirA-ck-wandtrenner {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin: 4px 0 10px;
}
.dirA-ck-kachelwand + .dirA-ck-wandtrenner {
  margin-top: 22px;
}
.dirA-ck-wandtrenner--ruhig {
  color: var(--ink-4, var(--ink-3));
  opacity: 0.75;
}

/* ---- Die Kachel ----
 * Ein `<button>`, deshalb muessen die Vorgaben des Browsers (zentrierter
 * Text, eigene Schrift, Rand) ausdruecklich weg. */
.dirA-ck-kachel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  min-width: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  transition: box-shadow 150ms ease, border-color 150ms ease;
}
.dirA-ck-kachel:hover { box-shadow: 0 2px 16px rgba(0,0,0,0.06); border-color: var(--line-2); }
.dirA-ck-kachel:focus-visible { outline: 2px solid var(--accent-red); outline-offset: 2px; }
.dirA-ck-kachel--aktualisiert { opacity: 0.6; }

.dirA-ck-kachel-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
/* Eigene Pille statt `.dirA-ck-status-pill`: Die traegt `cursor: pointer` und
   einen Hover-Effekt, weil sie anderswo selbst ein Knopf ist. In der Kachel
   ist sie Beschriftung, nicht Bedienelement — der Knopf ist die Kachel. */
.dirA-ck-kachel-pille {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid;
  flex-shrink: 0;
}
/* Eine ruhige Kennzeichnung, kein Alarm: ein Punkt genuegt. */
.dirA-ck-kachel-punkt {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.dirA-ck-kachel-punkt-mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(244,184,60,0.18);
}
.dirA-ck-kachel-titelzeile { display: block; min-width: 0; }
.dirA-ck-kachel-titel {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  /* Ein sehr langes Wort ohne Leerzeichen (Domain, Produktname) bricht
     um, statt die Spalte zu sprengen. */
  overflow-wrap: anywhere;
}
.dirA-ck-kachel-zahlen {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 12px;
  color: var(--ink-3);
}
.dirA-ck-kachel-zahl { white-space: nowrap; }
.dirA-ck-kachel-wartet {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}
.dirA-ck-kachel-warte-grund {
  font-size: 11px;
  line-height: 1.3;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(244,184,60,0.12);
  color: #8a6209;
  border: 1px solid rgba(244,184,60,0.3);
}

/* ---- Einladen von der Kachel aus (18.09.2026) ----
 *
 * ⚠️ Die Huelle gibt es, weil die Kachel ein `<button>` ist: Ein Knopf IM Knopf
 * ist ungueltiges HTML. Das Einladen-Symbol liegt deshalb NEBEN der Kachel im
 * Fluss und per `position: absolute` ueber ihr. Die Huelle ist das
 * Rasterelement — nicht die Kachel selbst; deshalb muss sie die volle Hoehe
 * bekommen, sonst stuenden zwei Kacheln einer Zeile unterschiedlich hoch. */
.dirA-ck-kachel-huelle {
  position: relative;
  display: flex;
  min-width: 0;
}
.dirA-ck-kachel-huelle > .dirA-ck-kachel { flex: 1 1 auto; }

/* Macht im Kopf der Kachel Platz fuer das Symbol darueber. Ohne diese Zeile
   liefe die Statuspille oder der Handlungspunkt darunter durch. */
.dirA-ck-kachel--einladbar .dirA-ck-kachel-kopf { padding-right: 30px; }

.dirA-ck-einladen-knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink-3);
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}
.dirA-ck-einladen-knopf:hover {
  color: var(--ink);
  border-color: var(--line-2);
}
.dirA-ck-einladen-knopf:focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: 2px;
}
/* Das Symbol an der Kachel: klein, oben rechts, ueber der Kachel. */
.dirA-ck-einladen-knopf--klein {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  /* Ueber der Kachel, aber unter jedem Popup (das haengt am `body`). */
  z-index: 1;
}

/* Die ruhige Kennzeichnung der eigenen Stufe auf einer fremden Kachel.
   Ohne Farbe und ohne Rahmen: eine Auskunft, keine Warnung. */
.dirA-ck-kachel-stufe {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  /* Schiebt den Handlungspunkt weiterhin nach rechts: Der Kopf ist
     `space-between`, und diese Kennzeichnung gehoert zur linken Gruppe. */
  margin-right: auto;
  margin-left: 8px;
}

/* Die zweite Kachelwand. Etwas Luft nach oben, damit sie als eigener
   Abschnitt liest und nicht als Fortsetzung der ersten. */
.dirA-ck-main-head--zweite { margin-top: 28px; }
.dirA-ck-freigegeben-hinweis {
  margin: -4px 0 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-3);
}

/* ---- Das Einladen-Fenster ----
 * Klein und mittig. Kein Aufziehen aus der Kachel wie beim grossen Popup: Es
 * ist ein Nebenfenster zu einer Handlung, kein zweiter Blick auf denselben
 * Gegenstand. */
.dirA-ck-einladen-wurzel { position: static; }
.dirA-ck-einladen-hintergrund {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.45);
}
.dirA-ck-einladen {
  width: min(520px, 100%);
  max-height: min(86vh, 720px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px 18px;
}
.dirA-ck-einladen:focus { outline: none; }
.dirA-ck-einladen-kopf {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.dirA-ck-einladen-titel {
  flex: 1 1 auto;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.dirA-ck-einladen-bedarf {
  margin: 2px 0 10px;
  font-size: 12px;
  color: var(--ink-3);
  overflow-wrap: anywhere;
}
.dirA-ck-einladen-inhalt { margin-top: 4px; }

/* ---- Die Listen im Zugriffsbereich ---- */
.dirA-ck-zugriff-hinweis {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-3);
}
.dirA-ck-zugriff-fehler {
  margin: 0 0 8px;
  font-size: 12px;
  color: #b91c1c;
}
.dirA-ck-zugriff-leer {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
}
.dirA-ck-zugriff-vorschlaege {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.dirA-ck-freigabe-zeile,
.dirA-ck-vorschlag-zeile {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.dirA-ck-vorschlag-zeile:last-child,
.dirA-ck-freigabe-zeile:last-child { border-bottom: none; }
.dirA-ck-freigabe-kopf {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.dirA-ck-freigabe-name { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.dirA-ck-freigabe-mail { font-size: 12px; color: var(--ink-3); overflow-wrap: anywhere; }
.dirA-ck-freigabe-entzug { font-size: 12px; margin-left: auto; color: #b91c1c; }
.dirA-ck-freigabe-fuss {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.dirA-ck-freigabe-seit { font-size: 11px; color: var(--ink-3); }
.dirA-ck-freigabe-cta { font-size: 12px; margin-left: auto; }

/* ---- Die Wahl der Stufe ----
 * Zwei sichtbare Moeglichkeiten nebeneinander, jede mit einem Satz. Am Handy
 * (unter 420 px) untereinander — zwei Kaesten mit je einem Satz nebeneinander
 * waeren dort je 150 px breit und der Satz sechs Zeilen hoch. */
/* Der Block traegt seit dem 20.09.2026 die Breite: Unter der Wahl kann ein
   Satz stehen, warum eine Stufe gesperrt ist. */
.dirA-ck-stufenwahl-block {
  flex: 1 1 260px;
  min-width: 0;
}
.dirA-ck-stufenwahl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.dirA-ck-stufe {
  flex: 1 1 140px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 10px;
  transition: border-color 150ms ease, background 150ms ease;
}
.dirA-ck-stufe:hover { border-color: var(--line-2); }
.dirA-ck-stufe:focus-visible { outline: 2px solid var(--accent-red); outline-offset: 2px; }
.dirA-ck-stufe[disabled] { opacity: 0.55; cursor: default; }
.dirA-ck-stufe--gewaehlt {
  border-color: var(--accent-red);
  background: rgba(212, 44, 44, 0.06);
}
/* Gesperrt statt versteckt: Die Stufe bleibt lesbar — wer sie gar nicht saehe,
   erfuehre nie, dass es sie gibt und wer sie vergeben kann. Kein Rot: Das ist
   kein Fehler, sondern eine Zustaendigkeit. */
.dirA-ck-stufe--gesperrt {
  cursor: default;
  opacity: 0.55;
  background: var(--bg-2, transparent);
}
.dirA-ck-stufe--gesperrt:hover { border-color: var(--line); }
.dirA-ck-stufe-sperrgrund {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink-3);
}
.dirA-ck-stufe-name { font-size: 12px; font-weight: 600; }
.dirA-ck-stufe-satz { font-size: 11px; line-height: 1.4; color: var(--ink-3); }
@media (max-width: 420px) {
  .dirA-ck-stufe { flex: 1 1 100%; }
  .dirA-ck-freigabe-cta { margin-left: 0; width: 100%; }
}

/* Der Behaelter am `body`, in den das Popup portiert wird. Er selbst zeichnet
   nichts — alles darin ist `position: fixed`. Die Regel steht hier, damit die
   Klasse definiert ist und nicht als Fehlstelle auffaellt. */
.dirA-ck-popup-wurzel { position: static; }

/* ---- Das Popup ----
 * `z-index: 150` mit Absicht UNTER den 200 der uebrigen Modale: Ein Fenster,
 * das aus dem Popup heraus geoeffnet wird (Einreichen, Hochladen, Details),
 * muss darueber liegen, nicht dahinter. */
.dirA-ck-popup-hintergrund {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(14,14,16,0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 200ms ease-out;
  animation: ck-popup-blende 200ms ease-out;
}
@keyframes ck-popup-blende { from { opacity: 0; } to { opacity: 1; } }

.dirA-ck-popup {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  min-height: 0;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.28);
  overflow: hidden;
}
.dirA-ck-popup:focus { outline: none; }

/* Der Kopf bleibt stehen, der Rumpf scrollt. */
.dirA-ck-popup-kopf {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
}
.dirA-ck-popup-titel {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  min-width: 0;
  overflow-wrap: anywhere;
}
/* Der Titel im Kopf oeffnet die Volldarstellung. Als Knopf, damit er per Tab
   erreichbar und mit Enter bedienbar ist — die bisherige klickbare
   Ueberschrift der Karte war beides nicht. */
.dirA-ck-popup-titel-knopf {
  font: inherit;
  color: inherit;
  text-align: left;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.dirA-ck-popup-titel-knopf:hover { text-decoration: underline; text-underline-offset: 3px; }
.dirA-ck-popup-titel-knopf:focus-visible { outline: 2px solid var(--accent-red); outline-offset: 2px; border-radius: 4px; }

.dirA-ck-popup-schliessen {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  /* 36 px: am Handy mit dem Daumen zu treffen, ohne danebenzugreifen. */
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 120ms, color 120ms;
}
.dirA-ck-popup-schliessen:hover { background: var(--bg); color: var(--ink); }
.dirA-ck-popup-schliessen:focus-visible { outline: 2px solid var(--accent-red); outline-offset: 2px; }
.dirA-ck-popup-schliessen-text { font-size: 12px; white-space: nowrap; }

.dirA-ck-popup-inhalt {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 20px 24px;
}
/* Die Bedarfskarte IM Popup braucht keinen zweiten Rahmen und keinen
   zweiten Innenabstand — das Fenster ist schon beides. */
.dirA-ck-popup-inhalt > .dirA-ck-need-card {
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
}
.dirA-ck-popup-inhalt > .dirA-ck-need-card:hover { box-shadow: none; }

/* Am Handy ein Vollbild-Blatt: Ein gerundetes Fenster mit Rand verschenkt
   dort genau die Breite, die der Inhalt braucht. */
@media (max-width: 640px) {
  .dirA-ck-popup-hintergrund { padding: 0; }
  .dirA-ck-popup {
    max-width: none;
    max-height: none;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
  }
  .dirA-ck-popup-kopf { padding: 12px 14px; }
  .dirA-ck-popup-inhalt { padding: 14px 14px 28px; }
}

/* Wer weniger Bewegung eingestellt hat, bekommt eine Blende statt der
   Zoom-Fahrt. Die Fahrt selbst steht in `KachelPopup` und wird dort
   uebersprungen; hier bleibt nur die Einblendung. */
@media (prefers-reduced-motion: reduce) {
  .dirA-ck-popup-hintergrund { animation-duration: 1ms; }
  .dirA-ck-kachel { transition: none; }
}

/* ---- Automatisch gespeichert ----
 * Klein und unaufdringlich. Der Erfolg verblasst, der Fehler bleibt. */
.dirA-ck-speicher {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-3);
  min-height: 18px;
}
.dirA-ck-speicher--fertig { animation: ck-speicher-verblassen 2000ms ease-out forwards; }
@keyframes ck-speicher-verblassen {
  0%   { opacity: 1; }
  60%  { opacity: 1; }
  100% { opacity: 0; }
}
.dirA-ck-speicher--fehler {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 6px 10px;
  animation: none;
}
.dirA-ck-speicher-erneut {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 10px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #fca5a5;
  color: #b91c1c;
}

/* Die Löschzeile am Ende des Bedarfs-Popups.
   Abgesetzt durch eine Linie und viel Abstand: Der Knopf daneben soll nie
   versehentlich getroffen werden, und am Handy gilt dieselbe 44-px-Regel wie
   für jedes andere Ziel (Befund der Mobil-Prüfung vom 18.09.2026). */
.dirA-ck-need-loeschzeile {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line, rgba(0,0,0,0.08));
  display: flex;
  justify-content: flex-end;
}
.dirA-ck-need-loeschen {
  background: transparent;
  border: 1px solid rgba(185,28,28,0.28);
  color: #b91c1c;
  font: inherit;
  font-size: 13px;
  border-radius: 8px;
  min-height: 44px;
  padding: 0 16px;
  cursor: pointer;
  transition: background 120ms, border-color 120ms;
}
.dirA-ck-need-loeschen:hover:not(:disabled) {
  background: rgba(185,28,28,0.06);
  border-color: rgba(185,28,28,0.5);
}
.dirA-ck-need-loeschen:disabled { opacity: 0.5; cursor: default; }

/* ── Der Angebotspreis in der Einreichung (18.09.2026) ─────────────────────
 * Nettopreis und Mehrwertsteuersatz nebeneinander, darunter die gerechnete
 * Bruttosumme. Am Telefon untereinander. */
.dirA-ck-preisfelder {
  display: flex;
  flex-wrap: wrap;
  /* Oben buendig (seit 19.09.2026): Unter einem Feld kann eine Meldung
     stehen („keine Zahl"); unten buendig verschoebe sie das Nachbarfeld. */
  align-items: flex-start;
  gap: 8px 12px;
  margin-top: 8px;
}
.dirA-ck-preisfeld {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 180px;
  min-width: 0;
}
.dirA-ck-preisfeld--satz { flex: 0 1 220px; }
.dirA-ck-preisfeld-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.dirA-ck-preisfeld input {
  font-size: 13px;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid var(--line, #ddd);
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-elev, #fff);
  color: var(--ink);
}
.dirA-ck-preisfeld-fehler {
  font-size: 12px;
  color: var(--accent-red, #b91c1c);
}
.dirA-ck-preisfeld-brutto {
  flex: 1 1 100%;
  margin: 0;
  font-size: 12px;
  color: var(--ink-3);
}

/* Preisvorstellung überschritten (04.10.2026): roter Balken, nur beim Bedarfsträger. */
.dirA-ck-preisvorstellung {
  margin: 6px 0 8px;
  padding: 6px 10px;
  border-left: 4px solid #dc2626;
  border-radius: 6px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
