/* Ergänzungen zum Stylesheet des Prototyps (Gestaltung 1.5) für Dinge, die es dort nur angedeutet gab.
 * Das Erscheinungsbild bleibt unverändert; hier stehen nur neue Bausteine. */
.inline-form { display: contents; }
form[data-pending="1"] { cursor: progress; }
button[aria-busy="true"] { opacity: 0.7; }
:root[data-theme="dark"] .theme-moon, :root:not([data-theme="dark"]) .theme-sun { display: none; }
.field-err { color: var(--crit-text); font-size: 13px; margin-top: 4px; }
.auth-msg { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 14px; }
.auth-msg.warn { background: rgba(217, 140, 30, 0.12); color: var(--warn-text); }
.qr { display: grid; place-items: center; margin: 4px 0 12px; }
.qr img { width: 200px; height: 200px; border-radius: 12px; background: #fff; padding: 8px; }
.secret-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; letter-spacing: 0.06em; word-break: break-all; }
.list-editor { display: grid; gap: 8px; }
.list-editor .le-row { display: grid; gap: 8px; align-items: start; grid-template-columns: var(--le-cols); }
.list-editor .le-row input, .list-editor .le-row textarea, .list-editor .le-row select { width: 100%; }
.list-editor .le-acts { display: flex; gap: 2px; }
.list-editor .le-n { padding-top: 9px; font-weight: 600; color: var(--ink-3); font-size: 13px; text-align: right; }
.list-editor .le-h { display: grid; gap: 8px; grid-template-columns: var(--le-cols); font-size: 12px; color: var(--ink-3); font-weight: 600; }
@media (max-width: 700px) {
  .list-editor .le-row, .list-editor .le-h { grid-template-columns: 1fr; }
  .list-editor .le-h { display: none; }
  .list-editor .le-row { padding: 10px; border: 1px solid var(--border); border-radius: 12px; }
  .list-editor .le-n { text-align: left; padding-top: 0; }
}
.edit-sec { scroll-margin-top: 80px; }
.edit-nav { position: sticky; top: 72px; }
.diff-new { background: var(--accent-soft); border-radius: 4px; padding: 0 3px; }
.screen-img { width: 100%; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); }
.drop-hint { outline: 2px dashed var(--accent); outline-offset: -4px; }
.kc.moving { opacity: 0.5; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.notice-bar { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); margin-bottom: 14px; font-size: 14px; }
.upload-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.check-list li.bad { color: var(--crit-text); }
.pav { background: linear-gradient(135deg, #475569, #1e293b); }
.board-dnd { display: contents; }
/* Filter, Reiter und Board-Schalter sind hier Links (Zustand in der Adresse), sehen aber aus wie die Knöpfe im Prototyp */
.seg a.seg-link { border: 0; background: none; padding: 5px 12px; font-size: 12.5px; font-weight: 550; color: var(--ink-2); border-radius: 8px; cursor: pointer; white-space: nowrap; transition: background 0.15s, color 0.15s; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.seg a.seg-link:hover { color: var(--ink); text-decoration: none; }
.seg a.seg-link.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1), 0 1px 4px rgba(15, 23, 42, 0.06); }
:root[data-theme="dark"] .seg a.seg-link.on { background: var(--surface-2); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
@media (max-width: 1100px) { .seg a.seg-link { flex: none; } }
@media (pointer: coarse) { .seg a.seg-link { min-height: 38px; } }
a.rail-btn, a.col-x { text-decoration: none; }
/* Titel in klickbaren Zeilen sind echte Links (Tastatur), sehen aber aus wie im Prototyp */
.list .li-title a, .pc-t b a, .req-t a { color: inherit; text-decoration: none; }
.list .li-title a:hover, .pc-t b a:hover, .req-t a:hover { text-decoration: underline; }
.vis-btn { font-size: 12px; color: var(--ink-3); padding: 3px 8px; }
.vact-in { display: inline-flex; gap: 6px; flex-wrap: wrap; } .vshown { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
button.cbox { background: transparent; padding: 0; cursor: pointer; color: inherit; }
button.cbox:hover { border-color: var(--good-text); }
button.cbox.on { background: var(--good-text); color: #fff; }
@media (pointer: coarse) { button.cbox { width: 26px; height: 26px; } }
.comment-list li { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); }
.comment-list li:first-child { border-top: 0; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.card-b.flush { overflow-x: auto; }
/* Kontextspalte der Gespräche erst ab 1500 px (sonst teilt sie die Höhe mit der Liste) */
.inbox > .card.inbox-ctx { display: none; }
@media (min-width: 1500px) { .inbox.ctx > .card.inbox-ctx { display: flex; flex-direction: column; } }
.kc .kc-title a { color: inherit; text-decoration: none; }
#decision .card-b > .btn.primary { width: 100%; justify-content: center; }
.bell { position: relative; }
.bell-n { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--crit); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }

/* ---------- Impressum und Datenschutz (Anmeldeseite mit breiterer Karte) ---------- */
.auth-wrap.legal .auth-main { place-items: start center; padding-top: 56px; padding-bottom: 56px; }
.auth-wrap.legal .auth-card { width: min(680px, 100%); }
.auth-wrap.legal .legal-body { font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; hyphens: auto; }
.auth-wrap.legal .legal-body h2 { font-size: 16px; margin: 26px 0 8px; color: var(--ink); }
.auth-wrap.legal .legal-body h3 { font-size: 14px; margin: 16px 0 6px; color: var(--ink); }
.auth-wrap.legal .legal-body ul { margin: 0 0 10px; padding-left: 18px; line-height: 1.6; }
.auth-wrap.legal .legal-body li { margin-bottom: 4px; }
.auth-wrap.legal .legal-body address { font-style: normal; line-height: 1.6; margin: 0 0 10px; }
.auth-wrap.legal .legal-body a { color: var(--accent-text, var(--accent)); }
.auth-wrap.legal .legal-body .caps { font-size: 12.5px; letter-spacing: 0.01em; }
@media (min-width: 761px) { .auth-wrap.legal .auth-side { position: sticky; top: 0; height: 100vh; height: 100dvh; } }
/* Projektkürzel ohne eigene Farbe (neu angelegte Projekte) */
.pav { background: linear-gradient(135deg, #475b7a, #1f2a44); }
