/* Panel "Fabrik": Statuszeile, Ablauf als Fluss, Kanban, Schublade. Dunkel als Standard. */
:root {
  --bg: #14151b; --panel: #1a1c24; --card: #20222c; --card-hover: #252835;
  --line: #2b2e3b; --line-soft: #23252f;
  --text: #e4e5ea; --text-2: #c9cbd6; --muted: #9a9fb3; --dim: #5b6075;
  --active: #8be9fd; --active-soft: rgba(139, 233, 253, .14); --active-line: rgba(139, 233, 253, .45);
  --pass: #50fa7b; --pass-soft: rgba(80, 250, 123, .12);
  --changes: #ffb86c; --changes-soft: rgba(255, 184, 108, .14);
  --human: #ff79c6; --human-ink: #ff9fd6; --human-soft: rgba(255, 121, 198, .12); --human-tint: rgba(255, 121, 198, .035); --human-line: rgba(255, 121, 198, .5);
  --merged: #bd93f9; --merged-line: rgba(189, 147, 249, .35);
  --on-accent: #14151b;
  --glow: radial-gradient(1200px 400px at 50% -120px, rgba(139, 233, 253, .06), transparent 70%);
  --schatten: 0 10px 30px -14px;
  --schleier: rgba(5, 6, 10, .55);
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f5f8; --panel: #ffffff; --card: #ffffff; --card-hover: #f0f0f6;
    --line: #d9dbe5; --line-soft: #e7e8ef;
    --text: #1c1e26; --text-2: #343746; --muted: #565a6e; --dim: #a3a7b8;
    --active: #0a6b82; --active-soft: rgba(10, 107, 130, .1); --active-line: rgba(10, 107, 130, .45);
    --pass: #17713a; --pass-soft: rgba(23, 113, 58, .1);
    --changes: #8f4c00; --changes-soft: rgba(143, 76, 0, .1);
    --human: #ad1f67; --human-ink: #9c1c5d; --human-soft: rgba(173, 31, 103, .09); --human-tint: rgba(173, 31, 103, .035); --human-line: rgba(173, 31, 103, .45);
    --merged: #6338b8; --merged-line: rgba(99, 56, 184, .35);
    --on-accent: #ffffff;
    --glow: none;
    --schleier: rgba(20, 22, 30, .35);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--glow), var(--bg); background-repeat: no-repeat; background-color: var(--bg); color: var(--text);
  font: 14px/1.5 var(--sans); padding-bottom: env(safe-area-inset-bottom);
}
a { color: var(--active); }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
.m { font-family: var(--mono); }
.leer { color: var(--muted); padding: 40px 16px; text-align: center; }
:focus-visible { outline: 2px solid var(--active); outline-offset: 2px; }
.nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kopf */
.leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: max(22px, env(safe-area-inset-top)) max(32px, env(safe-area-inset-right)) 0 max(32px, env(safe-area-inset-left)); }
.marke { display: flex; align-items: center; gap: 10px; }
.marke svg { color: var(--active); }
.marke h1 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.status { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 11.5px; color: var(--muted); flex: 1 1 420px; }
.status b { color: var(--text); font-weight: 500; }
.status .warn b, .status .warn { color: var(--changes); }
.status .crit b, .status .crit { color: var(--human); }
.ampel { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: var(--pass); }
.ampel.warn { background: var(--changes); } .ampel.crit { background: var(--human); }
.steuer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; }
.umschalter { display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 2px; }
.umschalter button { border: 0; background: none; color: var(--muted); border-radius: 7px; padding: 5px 12px; min-height: 32px; }
.umschalter button[aria-pressed="true"] { background: var(--line); color: var(--text); font-weight: 500; }
.rand { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: none; color: var(--text-2); border-radius: 9px; padding: 6px 12px; min-height: 34px; text-decoration: none; }
.rand:hover { background: var(--card); }
.rand.still { border-color: transparent; color: var(--muted); }
.rand[disabled] { opacity: .5; cursor: progress; }
.hinweise { display: flex; flex-direction: column; gap: 8px; padding: 12px max(32px, env(safe-area-inset-right)) 0 max(32px, env(safe-area-inset-left)); }
.hinweis { font-family: var(--mono); font-size: 11.5px; color: var(--changes); background: var(--changes-soft); border-radius: 8px; padding: 6px 10px; align-self: flex-start; }
.hinweis.crit { color: var(--human-ink); background: var(--human-soft); }

/* Ablauf */
.fluss { margin: 22px max(32px, env(safe-area-inset-right)) 0 max(32px, env(safe-area-inset-left)); padding: 18px 18px 14px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 16px; }
.fluss ol { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; }
.fluss li.node { flex: 1 1 0; }
.fluss li.node.issues { flex-grow: .9; } .fluss li.node.review { flex-grow: 2.4; }
.node { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fluss .node { background: var(--bg); }
.node b { font-size: 13px; font-weight: 600; padding-right: 22px; }
.node .who { font-size: 10.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.node .n { position: absolute; top: 8px; right: 10px; font-size: 15px; font-weight: 600; color: var(--muted); }
.node.on { border-color: var(--active-line); box-shadow: 0 0 0 1px var(--active-soft), var(--schatten) var(--active-line); }
.node.on .n { color: var(--active); }
.node.merge { border-color: var(--merged-line); }
.node.merge b, .node.merge .n { color: var(--merged); }
.pf { color: var(--dim); display: flex; align-items: center; justify-content: center; flex: none; width: 22px; }
.rollen { display: flex; align-items: stretch; gap: 6px; margin-top: 6px; font-size: 9.5px; line-height: 1.3; }
.rollen .par { flex: 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding: 4px; border: 1px dashed var(--line); border-radius: 6px; }
.rolle { padding: 3px 2px; border-radius: 4px; background: var(--line-soft); color: var(--text-2); text-align: center; border: 1px solid transparent; }
.rolle small { display: block; font-size: inherit; color: var(--muted); }
.rolle.on { border-color: var(--active-line); color: var(--active); }
.rolle.sich { flex: 1.2; padding: 3px 4px; border-radius: 6px; background: var(--human-soft); border-color: var(--human-line); color: var(--human-ink); }
.rolle.sich.on { box-shadow: 0 0 0 1px var(--human-line); }
.rollen .dann { display: flex; align-items: center; color: var(--muted); }
.legende { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 10.5px; color: var(--muted); }
.legende i { font-style: normal; margin-right: 4px; }
.legende .g { color: var(--pass); } .legende .h { color: var(--human); } .legende .c { color: var(--changes); } .legende .x { color: var(--muted); }

/* Reiter (nur Handy) */
.reiter { display: none; }

/* Kanban */
.kanban { display: grid; gap: 14px; padding: 22px max(32px, env(safe-area-inset-right)) 24px max(32px, env(safe-area-inset-left)); align-items: start; overflow-x: auto; }
.col { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ch { display: flex; align-items: center; gap: 8px; padding: 0 2px 10px; border-bottom: 1px solid var(--line); }
.ch h2 { font-size: 13px; font-weight: 600; }
.ch .cnt { margin-left: auto; font-size: 11px; color: var(--muted); }
.col.dich { background: var(--human-tint); border-radius: 14px; padding: 0 10px 10px; margin: 0 -4px; }
.col.dich .ch { border-bottom-color: var(--human-line); }
.col.dich .ch h2, .col.dich .ch .cnt { color: var(--human); }
.col.erledigt { gap: 0; }
.col.erledigt .ch { margin-bottom: 4px; }
.col.erledigt .ch h2 { color: var(--merged); }
.empty { font-size: 12px; color: var(--muted); padding: 2px; }

.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card:hover { background: var(--card-hover); }
.card.gewaehlt { border-color: var(--active); }
.card.still { border-color: var(--changes); }
.card.human { border-color: var(--human); box-shadow: 0 0 0 1px var(--human-line), 0 12px 30px -14px var(--human-line); }
.top { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted); min-width: 0; }
.top .repo { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.top .nr { flex: none; margin-left: -3px; }
.top .ago { margin-left: auto; flex: none; }
.org { width: 8px; height: 8px; border-radius: 2px; flex: none; background: var(--merged); }
.org.hezo-cycling { background: var(--active); } .org.rscue { background: var(--changes); }
.t { margin: 0; font-size: 13.5px; line-height: 1.38; font-weight: 500; color: var(--text); overflow-wrap: anywhere; }
.t a { color: inherit; text-decoration: none; }
.t a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.t a:focus-visible { outline: none; }
.t a:focus-visible::after { outline: 2px solid var(--active); outline-offset: 2px; }
.rail { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; }
.rail i { height: 3px; border-radius: 2px; background: var(--line); }
.rail i.d { background: var(--pass); } .rail i.a { background: var(--active); } .rail i.h { background: var(--human); }
.meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 10.5px; color: var(--muted); }
.meta .hoch { color: var(--human-ink); } .meta .mittel { color: var(--changes); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--active); box-shadow: 0 0 0 3px var(--active-soft); flex: none; animation: puls 1.8s ease-in-out infinite; }
@keyframes puls { 50% { box-shadow: 0 0 0 5px transparent; } }
.rvs { display: flex; flex-direction: column; gap: 3px; }
.rv { display: grid; grid-template-columns: 22px repeat(4, minmax(0, 1fr)); gap: 3px; align-items: center; }
.rv span { font-size: 9.5px; text-align: center; padding: 2px 0; border-radius: 4px; border: 1px solid transparent; }
.rv .r { color: var(--muted); text-align: left; padding: 0; }
.rv .ganz { grid-column: span 4; }
:is(.rv, .chips) .ok { color: var(--pass); background: var(--pass-soft); }
:is(.rv, .chips) .changes { color: var(--changes); background: var(--changes-soft); }
:is(.rv, .chips) :is(.laeuft, .offen) { color: var(--active); border: 1px dashed var(--active-line); }
:is(.rv, .chips) .na { color: var(--muted); border: 1px dashed var(--line); }
.why { font-size: 12px; line-height: 1.45; color: var(--text-2); background: var(--human-soft); border-radius: 8px; padding: 8px 10px; }
.marke-aktion { align-self: flex-start; font-size: 11px; padding: 2px 8px; border-radius: 6px; background: var(--active-soft); color: var(--active); }
.marke-aktion.erledigt { background: var(--pass-soft); color: var(--pass); }
.marke-aktion.fehler { background: var(--human-soft); color: var(--human-ink); }
.gewandert { font-size: 10.5px; color: var(--muted); }
.knoepfe { position: relative; z-index: 1; display: flex; gap: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; border: 0; border-radius: 8px; min-height: 36px; padding: 0 12px; font-size: 12.5px; font-weight: 600; text-decoration: none; }
.btn.p { background: var(--human); color: var(--on-accent); flex: 1; }
.btn.p:hover { filter: brightness(1.08); }
.btn.g { background: none; border: 1px solid var(--line); color: var(--text-2); font-weight: 500; }
.btn.g:hover { background: var(--card-hover); }
.btn.t { background: none; color: var(--muted); font-weight: 500; padding: 0 8px; }
.btn.t:hover { color: var(--text); }
.btn[disabled] { opacity: .5; cursor: progress; }

.done { display: flex; gap: 9px; align-items: flex-start; padding: 9px 2px; border-bottom: 1px solid var(--line-soft); color: inherit; text-decoration: none; }
.done:hover { background: var(--card); }
.done svg { flex: none; margin-top: 2px; }
.done .x { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.done .x b { font-size: 12.5px; font-weight: 500; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.done .x span, .done .uhr { font-size: 10.5px; color: var(--muted); }
.done .x span { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ic-merge { color: var(--merged); } .ic-ende { color: var(--muted); }
.bfuss { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 0 max(32px, env(safe-area-inset-right)) 40px max(32px, env(safe-area-inset-left)); padding-top: 10px; border-top: 1px dashed var(--line); font-size: 11px; color: var(--muted); }

/* Meldungen */
.meldung { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; font-size: 13px; background: var(--active-soft); color: var(--text); }
.meldung > div { display: flex; flex-direction: column; gap: 2px; }
.meldung b { color: var(--active); }
.meldung.ok { background: var(--pass-soft); } .meldung.ok b, .meldung.ok > span { color: var(--pass); }
.meldung.warn { background: var(--changes-soft); } .meldung.warn b, .meldung.warn > span { color: var(--changes); }
.meldung.crit { background: var(--human-soft); } .meldung.crit b, .meldung.crit > span { color: var(--human-ink); }
.dreher { width: 16px; height: 16px; flex: none; margin-top: 2px; border-radius: 50%; border: 2.5px solid var(--active); border-right-color: transparent; animation: drehen .8s linear infinite; }
@keyframes drehen { to { transform: rotate(360deg); } }

/* Schublade */
.schleier { position: fixed; inset: 0; z-index: 9; background: var(--schleier); }
.schublade { position: fixed; top: 0; right: 0; bottom: 0; width: min(960px, 100%); z-index: 10; background: var(--panel); border-left: 1px solid var(--line); display: flex; flex-direction: column; padding-top: env(safe-area-inset-top); box-shadow: -24px 0 60px -30px rgba(0, 0, 0, .6); }
.skopf { position: relative; padding: 20px 64px 16px 24px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.skopf .unter { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--muted); }
.skopf .unter .sep { color: var(--dim); }
.skopf h2 { font-size: 18px; font-weight: 600; line-height: 1.3; max-width: 780px; }
.zu { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--line); background: none; color: var(--muted); font-size: 18px; line-height: 1; text-decoration: none; }
.zu:hover { color: var(--text); background: var(--card); }
.schritte { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; max-width: 560px; }
.schritte li { display: flex; flex-direction: column; gap: 5px; font-size: 10.5px; text-align: center; color: var(--muted); font-family: var(--mono); }
.schritte li span { height: 4px; border-radius: 2px; background: var(--line); }
.schritte li.fertig { color: var(--pass); } .schritte li.fertig span { background: var(--pass); }
.schritte li.aktiv { color: var(--active); font-weight: 600; } .schritte li.aktiv span { background: var(--active); }
.schritte li.fehler { color: var(--human); font-weight: 600; } .schritte li.fehler span { background: var(--human); }
.skoerper { flex: 1; min-height: 0; display: grid; grid-template-columns: 210px minmax(0, 1fr); }
.snav { border-right: 1px solid var(--line); padding: 4px 10px 16px; overflow-y: auto; display: flex; flex-direction: column; }
.grp { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 14px 8px 4px; }
.f { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: none; border: 0; border-radius: 6px; padding: 6px 8px; min-height: 32px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.f:hover { color: var(--text); background: var(--card); }
.f[aria-pressed="true"] { background: var(--card-hover); color: var(--text); }
.v { width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--dim); }
.v.g { background: var(--pass); } .v.w { background: var(--changes); } .v.s { background: var(--human); }
.v.l { background: none; border: 1.5px solid var(--active); width: 8px; height: 8px; }
.snav .notiz { font-family: var(--mono); padding: 4px 8px; font-size: 10.5px; color: var(--muted); }
.sinhalt { overflow-y: auto; padding: 22px 28px 120px; min-width: 0; }
.doc { max-width: 680px; display: flex; flex-direction: column; gap: 10px; }
.badge { align-self: flex-start; font-family: var(--mono); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 6px; color: var(--muted); background: var(--line-soft); text-transform: uppercase; }
.badge.ok { color: var(--pass); background: var(--pass-soft); }
.badge.crit, .badge.dich { color: var(--human); background: var(--human-soft); }
.badge.warn { color: var(--changes); background: var(--changes-soft); }
.badge.laeuft { color: var(--active); background: var(--active-soft); }
.badge.merge { color: var(--merged); background: var(--line-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--mono); font-size: 11px; }
.chips span { padding: 2px 8px; border-radius: 5px; border: 1px solid transparent; }
.chips .crit { color: var(--human-ink); background: var(--human-soft); }
.datei { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.md { font-size: 13.5px; line-height: 1.65; color: var(--text-2); overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 8px; }
.md h2, .md h3 { font-size: 15px; color: var(--text); margin: 14px 0 0; }
.md p, .md ul { margin: 0; }
.md ul { padding-left: 1.2em; }
.md pre { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--bg); font: 12px/1.5 var(--mono); white-space: pre-wrap; overflow-x: auto; }
.md code { font: 12px var(--mono); background: var(--card); padding: 1px 5px; border-radius: 4px; }
.annahme { padding: 8px 10px; border-radius: 8px; background: var(--changes-soft); color: var(--text); }
.annahme b { color: var(--changes); font-family: var(--mono); font-size: 11px; margin-right: 6px; }
.k { display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--text-2); }
.k b { font-family: var(--mono); font-size: 11px; color: var(--pass); font-weight: 500; padding-top: 2px; }
.folgen { margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.folgen dt { color: var(--text); font-weight: 500; }
.folgen dd { margin: 0 0 4px; color: var(--muted); }
.zeile { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.links { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.verlauf { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.verlauf li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; padding-left: 10px; border-left: 2px solid var(--line); color: var(--text-2); }
.verlauf li span:first-child { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.verlauf li.du { border-left-color: var(--active); }
.verlauf li.fehler { border-left-color: var(--human); }
.sleiste { position: absolute; left: 210px; right: 0; bottom: 0; padding: 14px 28px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--panel) 30%); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sleiste .btn { min-height: 40px; font-size: 13px; padding: 0 16px; border-radius: 9px; }
.sleiste .btn.p { flex: 0 1 auto; }
.sleiste .luecke { flex: 1; }
.skopf + .skoerper { position: relative; }
.schublade { overflow: hidden; }

/* Liste */
.inhalt { max-width: 1320px; margin: 0 auto; padding: 16px max(32px, env(safe-area-inset-left)) 32px; display: flex; flex-direction: column; gap: 12px; }
.spalten { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) {
  .spalten { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
  .rechts { position: sticky; top: 12px; }
}
.zahl { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.zahl b { font-size: 40px; line-height: 1; color: var(--human); font-weight: 600; }
.zahl span { color: var(--muted); }
.filterzeile { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.filter { border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 999px; padding: 6px 14px; min-height: 36px; font-size: 12.5px; }
.filter.an { background: var(--active-soft); border-color: var(--active-line); color: var(--active); }
.gruppe { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.gruppe h2, .gruppe summary { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gruppe summary { cursor: pointer; padding: 6px 0; }
.lkarte { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: inherit; text-decoration: none; }
.lkarte:hover { background: var(--card-hover); }
.lkarte.gewaehlt { border-color: var(--active); box-shadow: 0 0 0 1px var(--active-line); }
.lkarte.still { border-color: var(--changes); }
.lkarte.alt { border-style: dashed; margin-bottom: 8px; }
.lkarte .kopf { display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.lkarte b { font-weight: 500; font-size: 13.5px; }
.lkarte .satz { font-size: 13px; color: var(--muted); }
.detail { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.detail .unter { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.detail h1 { font-size: 20px; line-height: 1.3; font-weight: 600; margin-top: -8px; }
.zurueck { font-family: var(--mono); font-size: 13px; color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
@media (min-width: 900px) { .zurueck { display: none; } }
.block { display: flex; flex-direction: column; gap: 8px; }
.block h2 { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.block p { margin: 0; color: var(--text-2); }
.block .folge, .folge { font-size: 12.5px; color: var(--muted); margin: 0; }
details summary { cursor: pointer; color: var(--active); font-size: 13px; }
.kriterien { margin: 8px 0 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-2); }
.knopf { display: inline-flex; align-items: center; justify-content: center; text-align: center; border-radius: 10px; border: 1px solid var(--line); background: none; text-decoration: none; color: var(--text); }
.knopf.haupt { min-height: 48px; padding: 12px 18px; border: 0; background: var(--human); color: var(--on-accent); font-weight: 600; font-size: 15px; }
.knopf.klein { min-height: 34px; padding: 6px 12px; font-size: 12.5px; color: var(--muted); }
.knopf.weg { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 2px; width: 100%; padding: 12px 0; border: 0; border-top: 1px solid var(--line-soft); border-radius: 0; min-height: 44px; }
.knopf.weg span { font-size: 12.5px; color: var(--muted); }
.knopf.weg b { font-weight: 500; }
.wege h2 + .knopf.weg { border-top: 0; }
.knopf[disabled] { opacity: .45; cursor: progress; }
.anmelden { max-width: 420px; margin: 80px auto; padding: 0 16px; display: flex; flex-direction: column; gap: 12px; }
.anmelden h1 { font-size: 22px; }
.anmelden p { color: var(--muted); margin: 0; }

/* Mittlere Breiten: Kanban scrollt waagrecht statt zu quetschen */
@media (max-width: 1279px) and (min-width: 900px) {
  .fluss .who { display: none; }
  .rolle small { display: none; }
}

/* Handy */
@media (max-width: 899px) {
  .leiste { padding: max(16px, env(safe-area-inset-top)) 16px 0; gap: 10px 16px; }
  .status { flex-basis: 100%; order: 3; font-size: 11px; gap: 4px 12px; }
  .steuer { margin-left: auto; }
  .steuer .rand, .umschalter button { min-height: 44px; }
  .hinweise { padding: 10px 16px 0; }
  .fluss { display: none; }
  .reiter { display: flex; gap: 6px; padding: 14px 16px 4px; overflow-x: auto; font-size: 12px; white-space: nowrap; scrollbar-width: none; }
  .reiter button { border: 1px solid var(--line); background: none; color: var(--muted); border-radius: 999px; padding: 0 14px; min-height: 44px; }
  .reiter button b { font-family: var(--mono); font-weight: 600; margin-left: 4px; }
  .reiter button.on { border-color: var(--active-line); }
  .reiter button.on b { color: var(--active); }
  .reiter button[aria-pressed="true"] { background: var(--card); color: var(--text); border-color: var(--text-2); }
  .reiter button.dich { order: -1; border-color: var(--human); color: var(--human); }
  .reiter button.dich[aria-pressed="true"] { background: var(--human-soft); font-weight: 600; }
  .kanban { grid-template-columns: minmax(0, 1fr) !important; padding: 12px 16px 24px; overflow: visible; }
  .col:not(.sicht) { display: none; }
  .col .ch { display: none; }
  .col.dich { background: none; padding: 0; margin: 0; }
  .card { padding: 14px; }
  .t { font-size: 14px; }
  .btn { min-height: 44px; font-size: 14px; }
  .bfuss { margin: 0 16px 32px; }
  .done { min-height: 44px; }
  .schublade { width: 100%; border-left: 0; }
  .skopf { padding: 16px 60px 12px 16px; }
  .skopf h2 { font-size: 17px; }
  .zu { width: 44px; height: 44px; top: max(10px, env(safe-area-inset-top)); right: 10px; }
  .skoerper { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .snav { flex-direction: row; align-items: center; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 6px 10px; gap: 2px; }
  .snav .grp { margin: 0 4px 0 10px; white-space: nowrap; }
  .snav .f { width: auto; white-space: nowrap; flex: none; min-height: 44px; }
  .snav .notiz { white-space: nowrap; }
  .sinhalt { padding: 16px 16px 160px; }
  .sleiste { left: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--panel); border-top: 1px solid var(--line); }
  .sleiste .btn { min-height: 44px; }
  .sleiste .btn.p { flex: 1 1 100%; }
  .sleiste .luecke { display: none; }
  .inhalt { padding: 12px 16px 32px; }
  .seite.mit-detail .liste { display: none; }
  .seite:not(.mit-detail) .rechts { display: none; }
  .detail { border: 0; border-radius: 0; padding: 4px 0 0; background: none; }
  .filter { min-height: 44px; }
  .knopf.klein { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse, .dreher { animation: none; }
  * { scroll-behavior: auto !important; transition: none !important; }
}
