/* ==========================================================================
   Aktavo – Basis-Stylesheet (Design-Tokens + Komponenten)
   Marke: „Serife + Blau". Tokens zentral als CSS-Variablen, damit sie später
   1:1 in die SPA übernommen werden können. Reine Styling-Schicht – die
   Klassennamen entsprechen den bestehenden Templates.
   ========================================================================== */

/* --- Selbst gehostete Fonts (woff2, Latin-Subset inkl. ä/ö/ü/ß) -----------
   DSGVO: kein Google-CDN; OFL-lizenziert (Inter, Source Serif 4). */
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url("fonts/inter-400.da03732a27e1.woff2") format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url("fonts/inter-500.51205681a1ba.woff2") format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url("fonts/inter-600.2ede57db1a3a.woff2") format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url("fonts/inter-700.8ca0a5155296.woff2") format('woff2')}
@font-face{font-family:'Source Serif 4';font-style:normal;font-weight:400;font-display:swap;src:url("fonts/source-serif-4-400.95bbd98f2b3c.woff2") format('woff2')}
@font-face{font-family:'Source Serif 4';font-style:normal;font-weight:600;font-display:swap;src:url("fonts/source-serif-4-600.beb0c8d8bee8.woff2") format('woff2')}
@font-face{font-family:'Source Serif 4';font-style:normal;font-weight:700;font-display:swap;src:url("fonts/source-serif-4-700.45959eeff97f.woff2") format('woff2')}

:root{
  /* Akzent / Primär (Aktionen, Links, aktive Nav, Logo) */
  --accent:#185FA5; --accent-hover:#0C447C; --accent-tint:#E6F1FB;
  /* Ink (Überschriften, Wortmarke, Text) */
  --ink:#14253D; --ink-2:#5B6472; --ink-3:#8A8F99;
  /* Status */
  --green:#1F6E56; --green-tint:#E1F5EE;     /* sicher / freigegeben */
  --amber:#BA7517; --amber-tint:#FAEEDA;     /* ausstehend */
  --danger:#B23A2E; --danger-tint:#FBEAE7;
  /* Flächen */
  --page:#F6F7F9; --card:#FFFFFF; --line:#E7E6E1;
  --radius:8px; --radius-card:12px;
  /* Typografie */
  --font-serif:'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-sans:'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* Rückwärtskompatible Aliase (vereinzelte Altnutzung) */
  --bg:var(--page); --muted:var(--ink-3); --primary:var(--accent);
  --primary-d:var(--accent-hover); --chip:var(--accent-tint);
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0; background:var(--page); color:var(--ink);
  font-family:var(--font-sans); font-size:15px; line-height:1.6;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}

/* --- Typografie ---------------------------------------------------------- */
h1{font-family:var(--font-serif); font-weight:600; font-size:26px; line-height:1.25;
   color:var(--ink); margin:0 0 6px; letter-spacing:-.01em}
h2{font-family:var(--font-serif); font-weight:600; font-size:19px; line-height:1.3;
   color:var(--ink); margin:0 0 14px}
.muted{color:var(--ink-3); font-size:13px}
.backlink{display:inline-block; font-size:13px; color:var(--ink-3); margin-bottom:4px}
.backlink:hover{color:var(--accent); text-decoration:none}

/* --- Top-Bar ------------------------------------------------------------- */
header.topbar{
  background:var(--card); border-bottom:1px solid var(--line);
  padding:0 24px; height:60px;
  display:flex; align-items:center; justify-content:space-between;
}
header.topbar .brand{display:flex; align-items:center; gap:10px}
header.topbar .brand:hover{text-decoration:none}
.wordmark{font-family:var(--font-serif); font-weight:700; font-size:21px;
  color:var(--ink); letter-spacing:.01em}
header.topbar nav{display:flex; align-items:center; gap:18px}
header.topbar nav a{color:var(--ink-2); font-size:14px; font-weight:500}
header.topbar nav a:hover{color:var(--accent); text-decoration:none}
.role-chip{
  background:var(--accent-tint); border:1px solid var(--line); color:var(--accent);
  padding:3px 10px; border-radius:999px; font-size:12px; font-weight:600;
}
/* Benachrichtigungs-Glocke (Umriss / gefüllt + Zähler-Badge) */
.bell{position:relative; display:inline-flex; align-items:center; color:var(--ink-2)}
.bell:hover{color:var(--accent)}
.ic-bell{display:block}
.bell-badge{position:absolute; top:-6px; right:-7px; min-width:15px; height:15px; padding:0 3px;
  border-radius:999px; background:var(--danger); color:#fff; font-size:10px; font-weight:700;
  line-height:15px; text-align:center}

/* --- Layout -------------------------------------------------------------- */
.wrap{max-width:1240px; margin:28px auto; padding:0 20px;
  min-height:calc(100vh - 60px - 130px)}
.card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-card);
  padding:24px; margin-bottom:18px; box-shadow:0 1px 2px rgba(20,37,61,.04);
}

/* --- Tabellen ------------------------------------------------------------ */
table{width:100%; border-collapse:collapse}
th,td{text-align:left; padding:11px 10px; border-bottom:1px solid var(--line); vertical-align:middle}
th{font-size:12px; font-weight:600; text-transform:uppercase; letter-spacing:.05em; color:var(--ink-3)}
tbody tr:hover{background:var(--page)}

/* --- Buttons ------------------------------------------------------------- */
.btn{
  display:inline-block; background:var(--accent); color:#fff; border:1px solid var(--accent);
  padding:9px 15px; border-radius:var(--radius); font-size:14px; font-weight:600;
  font-family:inherit; cursor:pointer; text-decoration:none; line-height:1.3; white-space:nowrap;
}
.btn:hover{background:var(--accent-hover); border-color:var(--accent-hover); color:#fff; text-decoration:none}
.btn.sec{background:var(--card); color:var(--ink); border-color:var(--line)}
.btn.sec:hover{background:var(--accent-tint); border-color:var(--accent); color:var(--accent)}
.btn.sm{padding:5px 11px; font-size:13px}
.btn.danger{background:var(--danger); border-color:var(--danger)}
.btn.danger:hover{background:#8f2c22; border-color:#8f2c22}

/* --- Formulare ----------------------------------------------------------- */
label{display:block; font-size:13px; font-weight:600; color:var(--ink-2); margin:14px 0 5px}
.input{
  width:100%; padding:10px 12px; border:1px solid var(--line); border-radius:var(--radius);
  font-size:14px; font-family:inherit; color:var(--ink); background:var(--card);
}
.input:focus{outline:none; border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-tint)}

/* --- Breadcrumbs --------------------------------------------------------- */
.breadcrumbs{font-size:13px; color:var(--ink-3); margin-bottom:16px}
.breadcrumbs a{color:var(--ink-2)}
.breadcrumbs a:hover{color:var(--accent)}

/* --- Chips & Pills ------------------------------------------------------- */
.chip{display:inline-block; background:var(--accent-tint); color:var(--accent);
  padding:2px 9px; border-radius:6px; font-size:12px; font-weight:600}
.pill{display:inline-block; padding:2px 9px; border-radius:6px; font-size:12px; font-weight:600}
.pill.r{background:var(--accent-tint); color:var(--accent)}
.pill.d{background:var(--green-tint); color:var(--green)}
.pill.p{background:var(--amber-tint); color:var(--amber)}
.pill.x{background:var(--danger-tint); color:#7c2418}                 /* abgelaufen/Fehler */
.pill.n{background:var(--page); color:var(--ink-2); border:1px solid var(--line)}  /* neutral */

/* --- Meldungen ----------------------------------------------------------- */
.msg{padding:11px 14px; border-radius:var(--radius); margin-bottom:12px; font-size:14px; border:1px solid transparent}
.msg.success{background:var(--green-tint); color:#13503e; border-color:#bfe6d8}
.msg.error{background:var(--danger-tint); color:#7c2418; border-color:#f1cabf}
.msg.info{background:var(--accent-tint); color:var(--accent-hover); border-color:#cfe3f6}

/* --- Utilities ----------------------------------------------------------- */
.row{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.spacer{flex:1}
.toolbar{display:flex; gap:10px; align-items:center; margin-bottom:18px; flex-wrap:wrap}
.icon{font-size:16px}
.ic{vertical-align:-3px}        /* kleine Inline-SVG-Icons (Ordner/Dokument) */
.empty{color:var(--ink-3); padding:22px; text-align:center}
.grid2{display:grid; grid-template-columns:1fr 1fr; gap:18px}
@media(max-width:720px){.grid2{grid-template-columns:1fr}}
.searchbar{display:flex; gap:8px}
.searchbar input{flex:1}
code.path{font-family:ui-monospace,Consolas,monospace; font-size:12px; color:var(--ink-3)}

/* --- Vertrauens-Leiste (Footer; auf jeder Seite) ------------------------- */
footer.trustbar{
  max-width:1240px; margin:8px auto 28px; padding:14px 20px 0;
  border-top:1px solid var(--line);
  display:flex; flex-wrap:wrap; gap:8px 16px; align-items:center; justify-content:center;
  font-size:12px; color:var(--ink-3);
}
footer.trustbar .ts{display:inline-flex; align-items:center; gap:6px}
footer.trustbar .ts b{color:var(--ink-2); font-weight:600}
footer.trustbar .sep{color:var(--line)}

/* --- Login-Lockup -------------------------------------------------------- */
.brand-lockup{display:flex; flex-direction:column; align-items:center; gap:10px; margin:48px 0 18px}
.brand-lockup .wordmark{font-size:30px}

/* --- Onboarding-Modal ---------------------------------------------------- */
.modal-overlay{position:fixed; inset:0; background:rgba(20,37,61,.45); z-index:50;
  display:flex; align-items:flex-start; justify-content:center; padding:48px 16px; overflow:auto}
.modal-box{position:relative; background:var(--card); border:1px solid var(--line);
  border-radius:var(--radius-card); padding:28px 30px; max-width:560px; width:100%;
  box-shadow:0 12px 34px rgba(20,37,61,.20)}
.modal-x{position:absolute; top:8px; right:10px; background:none; border:0; cursor:pointer;
  font-size:22px; line-height:1; color:var(--ink-3); padding:4px 8px}
.modal-x:hover{color:var(--ink)}
.onb-steps{margin:10px 0 0; padding-left:22px; line-height:1.85}
.onb-steps li{padding-left:4px}

/* --- Onboarding „Erste Schritte"-Panel (Option B) -------------------------- */
.onb-head{display:flex; align-items:baseline; justify-content:space-between; gap:12px}
.onb-count{font-size:13px; color:var(--ink-3); font-weight:600; white-space:nowrap}
.onb-bar{height:6px; border-radius:999px; background:var(--line); margin:10px 0 14px; overflow:hidden}
.onb-bar-fill{height:100%; background:var(--accent); border-radius:999px; transition:width .3s}
.onb-steps-list{display:flex; flex-direction:column; gap:4px}
.onb-step{display:flex; align-items:center; gap:12px; padding:10px 12px;
  border-radius:var(--radius); border:1px solid transparent}
.onb-step.next{background:var(--accent-tint); border-color:#cfe3f6}
.onb-ic{flex:none; width:22px; height:22px; display:flex; align-items:center; justify-content:center}
.onb-ic.ok{color:var(--green)}
.onb-ic.open{color:var(--ink-3)}
.onb-body{flex:1; min-width:0}
.onb-label{font-size:14px; font-weight:600; color:var(--ink)}
.onb-step.done .onb-label{color:var(--ink-3); text-decoration:line-through; font-weight:500}
.onb-hint{font-size:12px; color:var(--ink-3); margin-top:2px}
.onb-done-tag{flex:none; font-size:12px; color:var(--green); font-weight:600}
.onb-foot{margin-top:12px; text-align:right}
.onb-dismiss{background:none; border:0; cursor:pointer; font-size:12px; color:var(--ink-3); padding:4px 6px}
.onb-dismiss:hover{color:var(--accent)}
@media(max-width:560px){.onb-step{flex-wrap:wrap} .onb-done-tag,.onb-step .btn{margin-left:34px}}

/* --- Responsive ----------------------------------------------------------- *
 * Anzeige an Bildschirmgröße (Telefon ~375 / Tablet ~768 / Desktop). Design-
 * Tokens/Fonts bleiben unverändert. Priorität Teilnehmer-Flows: Login,
 * Dokumentenliste/-ansicht, Upload, Q&A. Breite Tabellen werden horizontal
 * scrollbar statt abgeschnitten. */
@media (max-width:768px){
  .wrap{margin:16px auto; padding:0 14px; min-height:calc(100vh - 56px - 150px)}
  .card{padding:16px}
  /* Datentabellen: innerhalb der Karte horizontal scrollen statt überlaufen. */
  .card:has(table){overflow-x:auto; -webkit-overflow-scrolling:touch}
  .card table{min-width:480px}
  th,td{padding:9px 8px}
  h1{font-size:22px}
  h2{font-size:17px}
  /* Top-Bar kompakter; Navigation darf umbrechen statt zu überlaufen. */
  header.topbar{height:auto; min-height:56px; padding:8px 14px; flex-wrap:wrap; gap:6px 10px}
  header.topbar nav{gap:10px 14px; flex-wrap:wrap}
  .wordmark{font-size:19px}
}
@media (max-width:480px){
  h1{font-size:20px}
  .role-chip{display:none}                 /* Platz in der schmalen Top-Bar sparen */
  header.topbar nav a{font-size:13px}
  /* Suchfeld nutzt die volle Zeilenbreite statt fixer 220px. */
  .searchbar{flex:1 1 100%}
  .searchbar input{width:auto !important; min-width:0}
  .btn.sm{padding:7px 12px}                 /* bequemere Tap-Fläche */
  footer.trustbar{gap:6px 12px; font-size:11px}
}

/* --- Mitglieder-Panel: NIE scrollen ---------------------------------------- *
 * Tabelle passt in die Panel-Breite (kein min-width, kein overflow-Scroll).
 * Auf sehr schmalen Screens wird sie kartenartig je Mitglied gestapelt.
 * Steht bewusst NACH dem Responsive-Block, um dessen min-width:480 hier
 * aufzuheben. */
.members-card table{min-width:0}
/* Aktionsspalte: schmal, rechtsbündig, ein kompaktes ⋯-Menü pro Zeile. */
.actions-cell{text-align:right; width:1%; white-space:nowrap}
/* Tabelle scrollt bei Engstand INNERHALB der Karte; "…" ragt nie heraus. */
.table-scroll{overflow-x:auto; -webkit-overflow-scrolling:touch}
.members-card{overflow:hidden}              /* Rundungen bleiben erhalten */
/* Benutzer-Spalte: Name/E-Mail/Telefon je eigene Zeile; lange E-Mail gekürzt (voller Wert im title). */
.m-name{font-weight:500}
.members-card .m-email{display:block; max-width:240px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.rowmenu{position:relative; display:inline-block}
.rowmenu-btn{background:none; border:1px solid transparent; border-radius:var(--radius); cursor:pointer;
  font-size:18px; line-height:1; color:var(--ink-2); padding:4px 10px; font-family:inherit}
.rowmenu-btn:hover{background:var(--page); border-color:var(--line); color:var(--ink)}
.rowmenu-pop{position:absolute; right:0; top:calc(100% + 4px); z-index:30; min-width:210px;
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-card);
  box-shadow:0 12px 30px rgba(20,37,61,.16); padding:6px}
.rowmenu-pop form{margin:0}
.rowmenu-item{display:block; width:100%; text-align:left; background:none; border:0; cursor:pointer;
  font-family:inherit; font-size:13px; font-weight:500; color:var(--ink); padding:8px 10px;
  border-radius:var(--radius); white-space:nowrap}
.rowmenu-item:hover{background:var(--page)}
.rowmenu-item.danger{color:var(--danger)}
.rowmenu-item.danger:hover{background:var(--danger-tint)}
/* Kurze Zellen/Badges brechen NIE mitten im Wort; Spalten passen sich dem Inhalt an. */
.stack-table td{white-space:nowrap}
.stack-table td[data-label="Benutzer"]{white-space:normal}      /* Name darf umbrechen */
.stack-table td[data-label="Benutzer"] .muted{overflow-wrap:anywhere}  /* nur lange E-Mail darf brechen */
.stack-table td[data-label="Aktionen"]{white-space:normal}      /* Buttons dürfen umbrechen – Labels bleiben ganz (.btn nowrap) */
/* Sehr schmale Screens: kartenartig je Mitglied stapeln statt scrollen. */
@media (max-width:768px){
  .members-card{overflow:visible}
  .members-card .m-email{max-width:none; white-space:normal; overflow:visible; text-overflow:clip}
  .stack-table thead{display:none}
  .stack-table tr{display:block; border:1px solid var(--line); border-radius:8px; padding:8px 12px; margin-bottom:10px}
  .stack-table td{display:block; border:none; padding:4px 0; text-align:left !important; white-space:normal}
  .stack-table td::before{content:attr(data-label); display:block; font-size:11px; text-transform:uppercase;
    letter-spacing:.04em; color:var(--ink-3); font-weight:600; margin-bottom:2px}
}

/* --- Datenraum-Panel: Breadcrumb-Kopf + (Baum | Inhalt) in EINEM Rahmen ---- */
.room-panel{background:var(--card); border:1px solid var(--line); border-radius:var(--radius-card);
  overflow:hidden; margin-bottom:18px}
.panel-crumbbar{display:flex; align-items:center; gap:10px; padding:9px 14px; border-bottom:1px solid var(--line)}
.crumbbar-path{flex:1 1 auto; min-width:0; margin-bottom:0;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis}     /* kuerzt; voller Pfad per title */
.crumbbar-sep{color:var(--ink-3)}
.crumbbar-phase{flex:none; white-space:nowrap}
.panel-body{display:flex; align-items:stretch}          /* stretch -> Trennlinie ueber volle Hoehe */
.panel-content{flex:1 1 auto; min-width:0; padding:20px; overflow-x:auto}
.panel-content td{padding-top:13px; padding-bottom:13px}  /* mehr Zeilenhoehe; Kopf grau via globalem th */

/* Baum-Spalte: keine eigene Karte mehr; im Panel angedockt. Breite per Drag (JS). */
.folder-tree{flex:0 0 244px; width:244px; align-self:stretch; overflow:auto; padding:12px 10px}
/* Resize-Griff = senkrechte Trennlinie zum Inhalt (volle Hoehe, ~6px Greifbereich). */
.ft-resize{flex:0 0 6px; align-self:stretch; position:relative; cursor:col-resize;
  background:transparent; touch-action:none}
.ft-resize::before{content:""; position:absolute; top:0; bottom:0; left:50%; width:1px;
  transform:translateX(-50%); background:var(--line)}
.ft-resize:hover::before, .ft-resize:focus-visible::before{background:var(--accent); width:2px}
.ft-resize:focus{outline:none}
.ft-resize:focus-visible{outline:2px solid var(--accent-tint); outline-offset:-1px}
.folder-tree-head{position:sticky; top:0; z-index:2; display:flex; align-items:center; justify-content:space-between;
  margin:-12px -10px 0; padding:7px 12px; background:var(--card); border-bottom:1px solid var(--line);
  font-size:12px; font-weight:600; text-transform:uppercase; letter-spacing:.05em; color:var(--ink-3); line-height:1}
/* Label selbst als zentriertes Flex-Element – sonst hebt Uppercase+Letterspacing
   den Text optisch nach oben (Line-Box-Versatz). */
.ft-head-title{margin:0; padding:0; line-height:1; display:flex; align-items:center}
.ft-head-actions{display:flex; align-items:center; gap:1px}
.ft-act{display:inline-flex; align-items:center; justify-content:center; line-height:1; background:none; border:0;
  cursor:pointer; color:var(--ink-3); padding:3px 4px; border-radius:5px}
.ft-act svg{display:block}     /* Icon mittig, kein Inline-Baseline-Versatz */
.ft-act:hover{background:var(--page); color:var(--ink)}
.folder-tree-head .ft-close{display:none; background:none; border:0; font-size:20px;
  line-height:1; color:var(--ink-3); cursor:pointer; padding:0 4px}
.ft-msg{padding:8px 6px; font-size:13px}
.ft-list,.ft-children{list-style:none; margin:0; padding:0}
/* Luft zwischen sticky „ORDNER"-Kopf und Baum-Anfang am SCROLLENDEN Inhalt
   (nicht als margin-bottom am sticky Kopf – das risse beim Scrollen einen Spalt).
   16px, damit die obere Rundung der Aktiv-Markierung des Stamm-Knotens KOMPLETT
   unterhalb der Kopf-Unterkante liegt und nicht vom opaken Kopf überdeckt wird. */
.ft-list{padding-top:16px}
/* Einrückung je Ebene + zarte vertikale Führungslinie. */
.ft-children{margin-left:10px; padding-left:6px; border-left:1px solid #E7EBF0}
.ft-row{display:flex; align-items:center; gap:2px}
.ft-chev{flex:none; width:18px; height:26px; background:none; border:0; cursor:pointer;
  color:var(--ink-3); font-size:11px; line-height:1; padding:0;
  display:inline-flex; align-items:center; justify-content:center}
/* Reservierter Chevron-Platz: GLEICHE Breite wie ein echter Chevron, nur unsichtbar
   und nicht interaktiv – sonst verschiebt sich die Zentrierung je Knoten. */
.ft-chev-empty{visibility:hidden; cursor:default}
/* Markierung = der Namens-Link (Icon + Name). Aktiv UND Hover nutzen EXAKT dieselbe
   Geometrie (symmetrisches Padding + gleicher Radius), damit nichts springt.
   align-items:center + an die Icon-Höhe angepasste line-height -> Icon und Text
   sitzen auf einer Mittelachse, der Text klebt nicht oben. */
.ft-link{flex:1; min-width:0; display:flex; align-items:center; gap:6px; padding:4px 8px; line-height:1.4;
  font-size:14px; color:var(--ink); text-decoration:none; border-radius:var(--radius)}
.ft-link:hover{background:var(--page); color:var(--accent); text-decoration:none}
.ft-link.active{background:var(--accent-tint); color:var(--accent); font-weight:600}
.ft-link.ft-root{font-weight:600}
.ft-icon{flex:none; display:inline-flex; align-items:center; line-height:0}
.ft-icon svg{display:block}
.ft-name{min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.ft-toggle{display:none}
.ft-overlay{display:none; position:fixed; inset:0; background:rgba(20,37,61,.40); z-index:55}
.ft-overlay.show{display:block}
@media (max-width:900px){
  .panel-body{display:block}                 /* einspaltig: Inhalt volle Breite, Trennlinie entfaellt */
  .ft-resize{display:none}                    /* kein Drag-Griff im Drawer-Modus */
  .ft-toggle{display:inline-flex}
  .folder-tree{position:fixed; top:0; left:0; height:100%; width:280px;
    z-index:60; border-right:0; transform:translateX(-100%); transition:transform .2s ease;
    box-shadow:0 0 40px rgba(20,37,61,.25); background:var(--card)}
  .folder-tree.ft-open-drawer{transform:translateX(0)}
  .folder-tree-head .ft-close{display:block}
}
@media (prefers-reduced-motion:reduce){ .folder-tree{transition:none} }

/* ---- Phasen-Stepper (Phasen-Cockpit) ---- */
.phase-stepper{list-style:none;margin:14px 0 0;padding:0}
.phase-step{border:1px solid var(--line);border-radius:var(--radius);margin:8px 0;padding:10px 12px;background:var(--card)}
.phase-step.is-next{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent-tint) inset}
.phase-step.released{background:var(--page)}
.phase-step.dragging{opacity:.5}
.phase-head{display:flex;align-items:center;gap:8px}
.phase-grip{cursor:grab;color:var(--ink-3);font-size:16px;line-height:1;user-select:none;touch-action:none}
.phase-grip:active{cursor:grabbing}
.phase-num{font-weight:700;color:var(--ink-3);min-width:1.4em;text-align:center}
.phase-rename{flex:1;min-width:0;margin:0;display:flex}
.phase-name-input{width:100%;border:1px solid transparent;background:transparent;padding:4px 6px;border-radius:6px;font-size:15px;font-weight:600;color:var(--ink)}
.phase-name-input:hover{border-color:var(--line)}
.phase-name-input:focus{border-color:var(--accent);background:var(--card);outline:none}
.phase-status{flex:none}
.phase-actions{display:flex;align-items:center;gap:6px}
.phase-del{background:none;border:0;color:var(--ink-3);font-size:18px;line-height:1;cursor:pointer;padding:0 4px;border-radius:5px}
.phase-del:hover{color:var(--danger);background:var(--page)}
.phase-prereqs{margin:8px 0 0;padding-left:30px}
.phase-prereqs-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:2px}
.phase-start-note{padding:2px 0}
.prereq-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 0;border-top:1px solid var(--line)}
.prereq-main{min-width:0;overflow:hidden;text-overflow:ellipsis}
.prereq-meta{font-size:.92em}
.prereq-act{flex:none;white-space:nowrap}
.prereq-form{margin-top:8px;padding-top:8px;border-top:1px dashed var(--line)}
@media (max-width:640px){
  .phase-prereqs{padding-left:8px}
  .prereq-row{flex-direction:column;align-items:flex-start}
}

/* ---- Ordner-Freigabe: Mehrfachauswahl-Leiste + Erstkonfigurations-Karte ---- */
.bulk-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 12px;margin-bottom:8px;
  background:var(--card);border:1px solid var(--line);border-left:3px solid var(--accent);border-radius:var(--radius)}
.bulk-bar[hidden]{display:none}              /* hidden-Attribut respektieren (nur im Auswahl-Modus) */
.btn:disabled,.btn[disabled]{opacity:.5;cursor:not-allowed}
.setup-cta{border-left:3px solid var(--accent)}
.fsel{vertical-align:-1px}
.cascade-form{margin-left:4px}
