/* Vision.Flow – styles.css */
/* Extracted from monolithic vision-flow-app.html */

:root {
  /* ═══ Vision.Fl∞w · Design Tokens · Brand Guide v2 ═══ */
  /* PDCA Phase Colors */
  --plan: #D4A843;
  --plan-bg: #F0E8D0;
  --plan-dk: #8B6F1E;
  --plan-soft: #D4A84333;
  --plan-text: #8B6F1E;

  --do: #C4622D;
  --do-bg: #EEDDD2;
  --do-dk: #8B3D14;
  --do-soft: #C4622D33;
  --do-text: #8B3D14;

  --check: #6B48A8;
  --check-bg: #E4DFEE;
  --check-dk: #4A2D82;
  --check-soft: #6B48A833;
  --check-text: #4A2D82;

  --act: #2E7D52;
  --act-bg: #DFECE3;
  --act-dk: #1B5E3A;
  --act-soft: #2E7D5233;
  --act-text: #1B5E3A;

  --done: #7a7a7a;
  --done-bg: #F0F0F0;

  /* Backgrounds */
  --cream: #F5F0E8;
  --sand: #EDE8DF;
  --stone: #C8C0B2;
  --bg: #1A1A2E;
  --bg-card: #22223A;
  --bg-surface: #2A2A45;

  /* Text */
  --ink: #2D2A3E;
  --ink2: #4A4540;
  --ink3: #8B8699;
  --white: #FFFCF5;

  /* Utilities */
  --r: 16px;
  --shadow: 0 2px 16px rgba(45,42,62,0.08);
  --shadow-lg: 0 8px 40px rgba(45,42,62,0.14);

  /* Energy States */
  --energy-full: #2E7D52;
  --energy-half: #D4A843;
  --energy-empty: #C4622D;
}
* { margin:0; padding:0; box-sizing:border-box; }
html { font-size: 16px; }
body { font-family: 'Outfit', sans-serif; background: var(--cream); color: var(--ink); min-height:100vh; overflow-x:hidden; }
button, input, textarea, select { font-family: 'Outfit', sans-serif; }
textarea { resize: vertical; }
h1, h2, h3 { font-family: 'Fraunces', serif; font-weight: 900; line-height: 1.25; }
h1 { font-size: 26px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
p { line-height: 1.65; }
::-webkit-scrollbar { width:5px; height:5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--stone); border-radius:3px; }

/* ─── AUTH SCREEN ─────────────────────────────── */
#auth-screen {
  min-height:100vh; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg, var(--cream) 0%, var(--sand) 100%);
  padding:20px;
}
.auth-box {
  background:var(--white); border-radius:24px; padding:36px;
  width:100%; max-width:400px; box-shadow:var(--shadow-lg);
  text-align:center;
}
.auth-logo { font-family:'Fraunces',serif; font-size:28px; font-weight:900; margin-bottom:4px; }
.auth-logo em { color:var(--plan); font-style:normal; }
.auth-sub { font-size:13px; color:var(--ink3); margin-bottom:28px; }
.auth-field { margin-bottom:14px; text-align:left; }
.auth-field label { font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:1px; color:var(--ink3); display:block; margin-bottom:5px; }
.auth-field input {
  width:100%; border:1.5px solid rgba(26,22,18,0.1);
  border-radius:10px; padding:11px 14px;
  font-size:14px; color:var(--ink); background:var(--cream);
}
.auth-field input:focus { outline:none; border-color:var(--plan); }
.auth-btn {
  /* Vision.Flâw Brand */
  width:100%; background:var(--plan); color:#fff;
  border:none; border-radius:11px; padding:12px;
  font-size:14px; font-weight:800; cursor:pointer;
  margin-top:8px; transition:opacity .15s;
}
.auth-btn:hover { opacity:0.85; }
.auth-btn:disabled { opacity:0.5; cursor:default; }
.auth-switch { margin-top:16px; font-size:13px; color:var(--ink3); }
.auth-switch a { color:var(--check); cursor:pointer; font-weight:600; text-decoration:none; }
.auth-switch a:hover { text-decoration:underline; }
.auth-error { color:#c0392b; font-size:13px; margin-top:10px; display:none; }

/* ─── TOPBAR ─────────────────────────────────── */
#topbar {
  position: sticky; top:0; z-index:100;
  background: var(--bg);
  height: 54px;
  display: flex; align-items: center;
  padding: 0 20px;
  gap: 8px;
}
.logo {
  font-family: 'Fraunces', serif;
  font-size: 19px; font-weight: 900;
  color: #fff; cursor: pointer;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.logo em { color: var(--plan); font-style: normal; }
.nav { display:flex; gap:2px; margin: 0 12px; }
.nav-btn {
  background: none; border: none;
  color: rgba(255,255,255,0.45);
  font-size: 12px; font-weight: 700;
  padding: 6px 12px; border-radius: 9px;
  cursor: pointer; letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all .15s;
  white-space: nowrap;
}
.nav-btn:hover, .nav-btn.active { background: rgba(255,255,255,0.1); color: #fff; }
.topbar-right { margin-left: auto; display:flex; gap:8px; align-items:center; }
.profile-menu { position:relative; }
.profile-toggle { display:flex; align-items:center; gap:6px; background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.12); border-radius:10px; padding:4px 10px 4px 6px; cursor:pointer; transition:all .15s; color:rgba(255,255,255,0.8); font-size:12px; }
.profile-toggle:hover { background:rgba(255,255,255,0.15); color:#fff; }
.profile-toggle img { width:24px; height:24px; object-fit:contain; border-radius:6px; }
.profile-dropdown { display:none; position:absolute; top:calc(100% + 6px); right:0; background:#22223A; border:1px solid rgba(255,255,255,0.1); border-radius:10px; min-width:180px; padding:6px; box-shadow:0 8px 24px rgba(0,0,0,0.3); z-index:1000; }
.profile-dropdown.open { display:block; }
.profile-dd-item { display:block; width:100%; text-align:left; background:none; border:none; color:rgba(255,255,255,0.8); font-size:12px; padding:8px 12px; border-radius:6px; cursor:pointer; transition:all .12s; }
.profile-dd-item:hover { background:rgba(255,255,255,0.1); color:#fff; }
/* PDCA Circle */
.pdca-seg { border:2px solid transparent; }
.pdca-seg:hover { background:rgba(0,0,0,0.03); transform:scale(1.05); }
.pdca-seg.active { background:rgba(0,0,0,0.06); transform:scale(1.08); border-color:rgba(0,0,0,0.08); }
/* Methode Accordion */
.methode-phase-header { user-select:none; }
.methode-phase-header:hover { filter:brightness(0.97); }
.methode-phase-header.active .methode-chevron { transform:rotate(180deg); }
.methode-phase-body { box-sizing:border-box; }
.btn-primary {
  background: var(--plan); color: #fff;
  border: none; border-radius: 10px;
  font-size: 12px; font-weight: 800;
  padding: 8px 16px; cursor: pointer;
  letter-spacing: 0.3px;
  transition: opacity .15s;
  white-space: nowrap;
}
.btn-primary:hover { opacity: 0.85; }
.btn-ghost {
  background: none;
  border: 1.5px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
  border-radius: 9px; font-size: 11px; font-weight: 700;
  padding: 6px 12px; cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.5); color:#fff; }
.user-name { color:rgba(255,255,255,0.6); font-size:12px; font-weight:600; }

/* ─── PAGE ───────────────────────────────────── */
#page { padding: 22px 20px; max-width:1360px; margin: 0 auto; }

/* ─── GRID ───────────────────────────────────── */
.grid-main { display:grid; grid-template-columns: 2fr 1.2fr; gap:16px; align-items:start; }
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media(max-width:900px) { .grid-main { grid-template-columns:1fr; } .col-r-hide { display:none; } }
@media(max-width:600px) { #page { padding:12px; } .grid-2 { grid-template-columns:1fr; } }

/* ─── CARD ───────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--r);
  border: 1px solid rgba(26,22,18,0.06);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: 0 4px 20px rgba(26,22,18,0.1); }
.card-hd {
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(26,22,18,0.05);
}
.card-hd-title {
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--ink3);
  display: flex; align-items:center; gap:7px;
}
.dot-badge { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.card-link {
  font-size: 11px; font-weight: 600;
  color: var(--ink3); border: none; background: none;
  cursor: pointer; transition: color .15s;
}
.card-link:hover { color: var(--ink); }

/* ─── SECTION LABEL ──────────────────────────── */
.slabel {
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 2.5px;
  color: var(--ink3); margin-bottom: 10px;
}

/* ─── BRAINDUMP BAR ──────────────────────────── */
.bd-bar {
  background: var(--white);
  border-radius: var(--r);
  border: 1.5px solid rgba(212,168,67,0.5);
  box-shadow: var(--shadow);
  padding: 14px 18px;
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
}
.bd-bar input {
  flex:1; border:none; outline:none;
  font-size: 15px; color: var(--ink);
  background: transparent;
}
.bd-bar input::placeholder { color: var(--stone); }
.bd-mic {
  width:38px; height:38px; border-radius:50%; border:none;
  background:var(--cream); color:var(--ink3); font-size:18px;
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition: all .2s; flex-shrink:0;
}
.bd-mic:hover { background:var(--sand); color:var(--ink); }
.bd-mic.recording { background:#c0392b; color:#fff; animation: mic-pulse 1s infinite; }
@keyframes mic-pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.12)} }
.wf-chips { display:flex; gap:4px; flex-shrink:0; }
.wf-chip {
  font-size: 9px; font-weight: 800;
  padding: 3px 8px; border-radius: 6px;
  cursor: pointer; border: none;
  text-transform: uppercase; letter-spacing: 0.5px;
  opacity: 0.4; transition: opacity .15s;
}
.wf-chip:hover { opacity: 0.7; }
.wf-chip.on { opacity: 1; }
.wfc-der,.wfc-die,.wfc-das { background:#D4A84330; color:#8B6F1E; }
.wfc-wer,.wfc-wie,.wfc-was { background:#C4622D20; color:#8B3D14; }
.wfc-wieso,.wfc-weshalb,.wfc-warum { background:#6B48A820; color:#4A2D82; }

/* ─── PHASE BADGE ────────────────────────────── */
.ph-badge {
  font-size: 9px; font-weight: 900;
  padding: 3px 9px; border-radius: 6px;
  letter-spacing: 0.5px; white-space: nowrap;
  border: none; flex-shrink: 0;
}
.ph-PLAN { background:var(--plan-bg); color:var(--plan-dk); }
.ph-DO   { background:var(--do-bg); color:var(--do-dk); }
.ph-CHECK{ background:var(--check-bg); color:var(--check-dk); }
.ph-ACT  { background:var(--act-bg); color:var(--act-dk); }
.ph-DONE { background:var(--done-bg); color:var(--done); }
.ph-plan { background:var(--plan-bg); color:var(--plan-dk); }
.ph-do   { background:var(--do-bg); color:var(--do-dk); }
.ph-check{ background:var(--check-bg); color:var(--check-dk); }
.ph-act  { background:var(--act-bg); color:var(--act-dk); }
.ph-done { background:var(--done-bg); color:var(--done); }

/* ─── LOOP LIST ──────────────────────────────── */
.loop-tabs {
  display:flex; gap:1px; padding:8px 14px 0;
  background:var(--sand);
  border-bottom:1px solid rgba(26,22,18,0.05);
  overflow-x:auto; scrollbar-width:none;
}
.loop-tabs::-webkit-scrollbar { display:none; }
.loop-tab {
  font-size:11px; font-weight:700;
  padding:7px 11px; border-radius:8px 8px 0 0;
  cursor:pointer; white-space:nowrap;
  color:var(--ink3); background:none; border:none;
  transition:all .15s;
}
.loop-tab:hover { color:var(--ink2); background:rgba(255,255,255,0.5); }
.loop-tab.active { background:var(--white); color:var(--ink); }
.loop-list { padding:5px; }
.loop-row {
  display:grid; grid-template-columns:auto 1fr auto;
  align-items:center; gap:10px;
  padding:9px 10px; border-radius:10px;
  cursor:pointer; transition:background .12s;
}
.loop-row:hover { background:var(--cream); }
.loop-row-name { font-size:13.5px; font-weight:600; line-height:1.3; }
.loop-row-sub { font-size:11px; color:var(--ink3); margin-top:1px; }
.loop-row-date { font-size:10px; font-weight:600; color:var(--ink3); white-space:nowrap; }
.loop-row-date.urgent { color:#c0392b; }
.row-divider { height:1px; background:rgba(26,22,18,0.04); margin:0 10px; }

/* ─── EMPTY STATE ────────────────────────────── */
.empty { padding:32px 20px; text-align:center; color:var(--ink3); }
.empty-icon { font-size:36px; margin-bottom:10px; }
.empty-txt { font-size:13px; margin-bottom:14px; }

/* ─── BD ITEM ────────────────────────────────── */
.bd-item {
  display:flex; align-items:flex-start; gap:8px;
  padding:9px 10px; border-radius:9px;
  transition:background .12s; cursor:pointer;
}
.bd-item:hover { background:var(--cream); }
.bd-item-txt { font-size:13px; font-weight:500; flex:1; line-height:1.4; }

/* ─── STATUS BARS ────────────────────────────── */
.stat-block { padding:13px 16px; }
.stat-row { display:flex; justify-content:space-between; margin-bottom:4px; }
.stat-lbl { font-size:11px; font-weight:800; }
.stat-cnt { font-size:11px; color:var(--ink3); }
.prog { height:3px; background:var(--sand); border-radius:2px; overflow:hidden; margin-bottom:10px; }
.prog-fill { height:100%; border-radius:2px; }

/* ─── STREAK ─────────────────────────────────── */
.streak { display:flex; gap:4px; padding:11px 14px; border-top:1px solid rgba(26,22,18,0.05); align-items:center; }
.s-dot { width:26px; height:26px; border-radius:7px; background:var(--sand); display:flex; align-items:center; justify-content:center; font-size:10px; font-weight:700; color:var(--ink3); }
.s-dot.done { background:var(--act); color:#fff; font-size:13px; }
.s-dot.today { background:var(--plan); color:var(--plan-dk); font-size:13px; }
.streak-lbl { font-size:11px; color:var(--ink3); margin-left:4px; }

/* ─── RESSOURCEN ─────────────────────────────── */
.res-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-top:16px; }
@media(max-width:600px) { .res-grid { grid-template-columns:1fr 1fr; } }
.res-card {
  background:var(--white); border-radius:var(--r);
  border:1px solid rgba(26,22,18,0.06);
  box-shadow:var(--shadow); padding:16px;
  cursor:pointer; transition:transform .12s, box-shadow .12s;
}
.res-card:hover { transform:translateY(-2px); box-shadow:var(--shadow-lg); }
.res-count { font-family:'Fraunces',serif; font-size:30px; font-weight:900; line-height:1; margin-bottom:2px; }
.res-sub { font-size:11px; color:var(--ink3); }

/* ─── MATRIX MINI ────────────────────────────── */
.mat-grid { padding:12px 14px; }
.mat-cols { display:flex; gap:3px; margin-left:68px; margin-bottom:5px; }
.mat-col-lbl { flex:1; font-size:9px; font-weight:700; color:var(--ink3); text-align:center; }
.mat-row { display:flex; gap:3px; margin-bottom:3px; align-items:center; }
.mat-row-lbl { width:64px; font-size:9px; font-weight:700; color:var(--ink3); flex-shrink:0; text-transform:uppercase; letter-spacing:0.3px; }
.mat-cell { flex:1; height:20px; border-radius:5px; background:var(--sand); cursor:pointer; border:none; transition:all .15s; }
.mat-cell:hover { opacity:0.7; }
.mat-cell.on-0 { background:rgba(46,125,82,0.6); }
.mat-cell.on-1 { background:rgba(196,98,45,0.6); }
.mat-cell.on-2 { background:rgba(107,72,168,0.6); }
.mat-cell.on-3 { background:rgba(212,168,67,0.8); }
.mat-cell.on-4 { background:rgba(33,150,243,0.6); }

/* ─── LOOP DETAIL ────────────────────────────── */
.loop-detail { max-width:760px; margin:0 auto; }
.loop-detail-hd { display:flex; align-items:center; gap:12px; margin-bottom:18px; flex-wrap:wrap; }
.back-btn {
  background:none; border:none; color:var(--ink3); font-size:13px; font-weight:600;
  cursor:pointer; display:flex; align-items:center; gap:5px; transition:color .15s;
}
.back-btn:hover { color:var(--ink); }
.loop-name-input {
  flex:1; border:none; background:transparent;
  font-family:'Fraunces',serif; font-size:22px; font-weight:900;
  color:var(--ink); outline:none; min-width:120px;
}
.phase-nav { display:flex; align-items:center; gap:0; margin-bottom:6px; }
.phase-step { display:flex; align-items:center; gap:0; flex:1; cursor:pointer; position:relative; }
.phase-step:last-child { flex:0; }
.phase-dot {
  width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:11px; font-weight:900; border:2px solid var(--sand); background:var(--white); color:var(--ink3);
  transition:all .2s; flex-shrink:0; z-index:1;
}
.phase-dot.active { border-color:currentColor; color:#fff; transform:scale(1.15); box-shadow:0 2px 12px rgba(0,0,0,0.15); }
.phase-dot.done { border-color:var(--act); background:var(--act); color:#fff; }
.phase-dot[data-phase="PLAN"].active { background:var(--plan); border-color:var(--plan); color:var(--plan-dk); }
.phase-dot[data-phase="DO"].active { background:var(--do); border-color:var(--do); }
.phase-dot[data-phase="CHECK"].active { background:var(--check); border-color:var(--check); }
.phase-dot[data-phase="ACT"].active { background:var(--act); border-color:var(--act); }
.phase-dot[data-phase="DONE"].active { background:var(--done); border-color:var(--done); }
.phase-line { flex:1; height:3px; background:var(--sand); margin:0 -2px; z-index:0; }
.phase-line.done { background:var(--act); }
.phase-label { font-size:9px; font-weight:700; text-transform:uppercase; letter-spacing:0.5px; color:var(--ink3); text-align:center; margin-top:4px; position:absolute; top:38px; left:50%; transform:translateX(-50%); white-space:nowrap; }
.phase-label.active { color:var(--ink); font-weight:800; }

/* ─── NEERDI COACH BAR ─────────────────────────── */
.neerdi-bar {
  background:linear-gradient(135deg, var(--ink) 0%, #2A2A45 100%);
  border-radius:var(--r); padding:14px 16px; margin-bottom:14px;
  display:flex; align-items:flex-start; gap:12px; color:#fff;
}
.neerdi-bar-avatar { flex-shrink:0; margin-top:2px; }
.neerdi-bar-avatar img { width:42px; height:42px; object-fit:contain; }
.neerdi-bar-body { flex:1; }
.neerdi-bar-tip { font-size:12px; color:rgba(255,255,255,0.8); line-height:1.5; margin-bottom:10px; }
.neerdi-bar-tip strong { color:#fff; }
.neerdi-bar-input {
  display:flex; gap:6px; align-items:center;
}
.neerdi-bar-input input {
  flex:1; border:1px solid rgba(255,255,255,0.2); background:rgba(255,255,255,0.1);
  border-radius:9px; padding:8px 12px; font-size:13px; color:#fff;
}
.neerdi-bar-input input::placeholder { color:rgba(255,255,255,0.4); }
.neerdi-bar-input input:focus { outline:none; border-color:rgba(255,255,255,0.5); background:rgba(255,255,255,0.15); }
.neerdi-bar-mic {
  width:36px; height:36px; border-radius:50%; border:none; background:rgba(255,255,255,0.15);
  color:#fff; font-size:16px; cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition:all .15s; flex-shrink:0;
}
.neerdi-bar-mic:hover { background:rgba(255,255,255,0.25); }
.neerdi-bar-mic.recording { background:var(--do); animation:pulse 1.2s infinite; }
@keyframes pulse { 0%,100% { transform:scale(1); } 50% { transform:scale(1.12); } }
.neerdi-bar-send {
  background:var(--check); color:#fff; border:none; border-radius:9px; padding:8px 14px;
  font-size:12px; font-weight:700; cursor:pointer; white-space:nowrap; flex-shrink:0;
}
.neerdi-bar-send:hover { opacity:0.85; }
.neerdi-bar-response {
  margin-top:10px; background:rgba(255,255,255,0.08); border-radius:10px; padding:12px;
  font-size:13px; line-height:1.7; color:rgba(255,255,255,0.9); white-space:pre-wrap;
}

/* ─── LOOP META ROW ────────────────────────────── */
.loop-meta-row {
  display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-bottom:14px;
}
.loop-meta-chip {
  font-size:11px; font-weight:600; padding:4px 10px; border-radius:8px;
  border:1px solid rgba(26,22,18,0.1); background:var(--cream); color:var(--ink2);
  display:flex; align-items:center; gap:4px;
}
.loop-meta-chip select {
  border:none; background:transparent; font-size:11px; font-weight:600; color:var(--ink2);
  cursor:pointer; padding:0; outline:none;
}

/* ─── PHASE SECTION ──────────────────────────── */
.phase-sec {
  background:var(--white); border-radius:var(--r);
  border:1px solid rgba(26,22,18,0.06);
  box-shadow:var(--shadow); padding:20px; margin-bottom:14px;
}
.phase-sec-hd { display:flex; align-items:center; gap:11px; margin-bottom:18px; }
.phase-num-circle {
  width:34px; height:34px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-weight:900; font-size:14px; flex-shrink:0;
}
.phase-sec-title { font-family:'Fraunces',serif; font-size:20px; font-weight:900; }
.phase-sec-sub { font-size:11px; color:var(--ink3); text-transform:uppercase; letter-spacing:1px; font-weight:700; }

/* ─── Q BLOCKS ───────────────────────────────── */
.q-block { margin-bottom:14px; }
.q-lbl { font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:1.2px; color:var(--ink2); margin-bottom:5px; }
.q-ta {
  width:100%; border:1.5px solid rgba(26,22,18,0.08); border-radius:10px;
  padding:10px 13px; font-size:13.5px; color:var(--ink);
  background:var(--cream); transition:border-color .15s;
  line-height:1.5; min-height:66px;
}
.q-ta:focus { outline:none; border-color:var(--check); }

/* ─── SPEECH BOX ─────────────────────────────── */
.speech-box {
  background:linear-gradient(135deg,var(--do-bg),var(--plan-bg));
  border:1.5px solid rgba(196,98,45,0.25);
  border-radius:var(--r); padding:16px; margin-top:12px;
}
.speech-label { font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:1.5px; color:var(--do-dk); margin-bottom:7px; }
.speech-quote { font-family:'Fraunces',serif; font-style:italic; font-size:15px; line-height:1.65; }

/* ─── CHECK PROGRESS ─────────────────────────── */
.ck-progress { display:flex; gap:12px; margin-bottom:24px; }
.ck-progress-item { flex:1; text-align:center; background:var(--white); border-radius:14px; padding:18px 12px 14px; box-shadow:0 1px 4px rgba(107,72,168,0.08); border:1px solid rgba(107,72,168,0.06); transition:box-shadow .2s ease, transform .2s ease; }
.ck-progress-item:hover { box-shadow:0 4px 16px rgba(107,72,168,0.13); transform:translateY(-1px); }
.ck-progress-num { font-family:'Fraunces',serif; font-size:28px; font-weight:900; color:var(--check-dk); line-height:1.1; }
.ck-progress-lbl { font-size:10px; font-weight:600; color:var(--check); text-transform:uppercase; letter-spacing:0.5px; margin-top:5px; }
@media(max-width:580px) { .ck-progress { flex-wrap:wrap; } .ck-progress-item { min-width:calc(50% - 6px); } }

/* ─── CHECK SECTIONS ─────────────────────────── */
.ck-section { background:var(--white); border-radius:18px; border:1px solid rgba(26,22,18,0.05); padding:22px; margin-bottom:24px; box-shadow:0 1px 4px rgba(26,22,18,0.04); }
.ck-section-hd { display:flex; align-items:center; gap:12px; margin-bottom:16px; padding-bottom:14px; border-bottom:1px solid rgba(26,22,18,0.05); }
.ck-section-icon { font-size:20px; width:40px; height:40px; display:flex; align-items:center; justify-content:center; background:var(--check-bg); border-radius:12px; flex-shrink:0; }
.ck-section-title { font-size:14px; font-weight:800; color:var(--ink); }
.ck-section-sub { font-size:11px; color:var(--ink3); margin-top:2px; }

/* ─── CHECK CARDS GRID ───────────────────────── */
.ck-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media(max-width:580px) { .ck-grid { grid-template-columns:1fr; } }
.ck-card { background:var(--white); border-radius:16px; border:1px solid rgba(26,22,18,0.05); overflow:hidden; display:flex; flex-direction:column; box-shadow:0 1px 4px rgba(26,22,18,0.04); transition:box-shadow .2s ease, border-color .2s ease; }
.ck-card:hover { box-shadow:0 4px 16px rgba(107,72,168,0.1); border-color:rgba(107,72,168,0.12); }
.ck-card-hd { display:flex; align-items:center; gap:12px; padding:16px 18px; border-bottom:1px solid rgba(26,22,18,0.04); }
.ck-card-icon { font-size:22px; width:46px; height:46px; display:flex; align-items:center; justify-content:center; background:var(--check-bg); border-radius:13px; flex-shrink:0; }
.ck-card-title { font-size:13px; font-weight:800; color:var(--ink); margin-bottom:5px; }
.ck-card-bar { height:6px; background:var(--sand); border-radius:3px; }
.ck-card-bar-fill { height:6px; background:linear-gradient(90deg, var(--check), #9B6FCF); border-radius:3px; transition:width .4s ease; }
.ck-group-count { font-size:10px; font-weight:700; color:var(--check); background:var(--check-bg); padding:3px 10px; border-radius:10px; white-space:nowrap; }
.ck-card-checks { padding:12px 18px; }
.ck-item { display:flex; align-items:center; gap:10px; padding:8px 10px; cursor:pointer; border-radius:8px; transition:background .2s ease; }
.ck-item:hover { background:rgba(107,72,168,0.05); }
.ck-item input[type=checkbox] { width:16px; height:16px; accent-color:var(--check); cursor:pointer; flex-shrink:0; }
.ck-item label { font-size:13px; cursor:pointer; transition:all .2s ease; line-height:1.4; }
.ck-item.done { opacity:0.5; }
.ck-item.done label { text-decoration:line-through; color:var(--ink3); }
.ck-card-res { padding:14px 18px; border-top:1px dashed rgba(107,72,168,0.15); background:rgba(107,72,168,0.02); flex:1; }
.ck-card-res-hd { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.ck-card-add { font-size:10px; font-weight:700; color:var(--check); background:var(--check-bg); border:1px dashed rgba(107,72,168,0.25); border-radius:8px; padding:5px 12px; cursor:pointer; transition:all .2s ease; }
.ck-card-add:hover { background:rgba(107,72,168,0.12); border-color:var(--check); }
.ck-res-chip { display:flex; align-items:center; gap:6px; padding:6px 10px; margin-bottom:6px; background:var(--white); border-radius:10px; border:1px solid rgba(26,22,18,0.05); font-size:12px; transition:border-color .2s ease, box-shadow .2s ease; }
.ck-res-chip:hover { border-color:rgba(107,72,168,0.2); box-shadow:0 1px 4px rgba(107,72,168,0.08); }
.ck-res-chip-name { font-weight:600; color:var(--ink); flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ck-res-chip-del { font-size:10px; color:var(--ink3); cursor:pointer; padding:3px 5px; border-radius:5px; border:none; background:none; transition:all .2s ease; }
.ck-res-chip-del:hover { color:#c0392b; background:rgba(192,57,43,0.08); }

/* ─── KANBAN ─────────────────────────────────── */
.kanban { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-top:12px; }
@media(max-width:580px) { .kanban { grid-template-columns:1fr 1fr; } }
.kb-col { background:var(--white); border-radius:14px; padding:14px; min-height:100px; box-shadow:0 1px 4px rgba(26,22,18,0.04); border:1px solid rgba(26,22,18,0.04); }
.kb-col-hd { font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:1px; margin-bottom:10px; padding:6px 8px; border-radius:8px; text-align:center; }
.kb-col:nth-child(1) .kb-col-hd { background:rgba(107,72,168,0.08); color:var(--check-dk); }
.kb-col:nth-child(2) .kb-col-hd { background:rgba(196,98,45,0.08); color:var(--do-dk); }
.kb-col:nth-child(3) .kb-col-hd { background:rgba(212,168,67,0.08); color:var(--plan-dk); }
.kb-col:nth-child(4) .kb-col-hd { background:rgba(46,125,82,0.08); color:var(--act-dk); }
.kb-task { background:var(--cream); border-radius:10px; padding:10px 12px; font-size:12px; font-weight:500; margin-bottom:8px; border:1px solid rgba(26,22,18,0.04); display:flex; justify-content:space-between; align-items:center; gap:6px; transition:transform .2s ease, box-shadow .2s ease; }
.kb-task:hover { transform:translateY(-1px); box-shadow:0 2px 8px rgba(26,22,18,0.08); }
.kb-task-del { font-size:11px; color:var(--stone); background:none; border:none; cursor:pointer; flex-shrink:0; transition:color .2s ease; }
.kb-task-del:hover { color:#c0392b; }
.kb-add-input { width:100%; border:1px dashed rgba(26,22,18,0.12); border-radius:10px; padding:8px 10px; font-size:12px; background:transparent; color:var(--ink2); transition:border-color .2s ease; }
.kb-add-input:focus { outline:none; border-color:var(--check); background:rgba(107,72,168,0.02); }

/* ─── GLOBAL APP FOOTER ─────────────────────── */
.app-footer { text-align:center; padding:32px 10px 16px; font-size:11px; color:var(--ink3); margin-top:24px; }
.app-footer a { color:var(--ink3); text-decoration:none; transition:color .2s ease; }
.app-footer a:hover { color:var(--check); text-decoration:underline; }
.app-footer span { margin-top:4px; display:inline-block; }

/* ─── AI TOGGLE ──────────────────────────────── */
.ai-toggle {
  background:var(--sand); border:none; border-radius:10px;
  padding:10px 14px; font-size:13px; font-weight:600;
  color:var(--ink2); display:flex; align-items:center; gap:8px;
  width:100%; text-align:left; margin-top:10px;
  cursor:pointer; transition:background .15s;
}
.ai-toggle:hover { background:var(--stone); }
.ai-panel { background:var(--cream); border-radius:10px; border:1px solid rgba(26,22,18,0.06); padding:14px; margin-top:8px; }
.ai-row { display:flex; gap:8px; }
.ai-input {
  flex:1; border:1.5px solid rgba(26,22,18,0.1);
  border-radius:9px; padding:9px 12px;
  font-size:13px; background:var(--white); color:var(--ink);
}
.ai-input:focus { outline:none; border-color:var(--check); }
.ai-send { background:var(--check); color:#fff; border:none; border-radius:9px; padding:9px 16px; font-size:12px; font-weight:700; cursor:pointer; white-space:nowrap; transition:opacity .15s; }
.ai-send:hover { opacity:0.85; }
.ai-send:disabled { opacity:0.5; cursor:default; }
.ai-response { font-size:13.5px; line-height:1.75; color:var(--ink); white-space:pre-wrap; margin-top:12px; }
.ai-loading { display:flex; gap:5px; align-items:center; color:var(--ink3); font-size:13px; padding:8px 0; }
.ai-dot { width:7px; height:7px; border-radius:50%; background:var(--check); animation:bounce .8s infinite; }
.ai-dot:nth-child(2) { animation-delay:.15s; }
.ai-dot:nth-child(3) { animation-delay:.3s; }
@keyframes bounce { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-5px); } }

/* ─── MODAL ──────────────────────────────────── */
.modal-overlay { position:fixed; inset:0; background:rgba(26,22,18,0.5); z-index:999; display:flex; align-items:center; justify-content:center; padding:20px; }
.modal-box { background:var(--white); border-radius:20px; padding:28px; width:100%; max-width:480px; box-shadow:var(--shadow-lg); }
.modal-title { font-family:'Fraunces',serif; font-size:22px; font-weight:900; margin-bottom:4px; }
.modal-sub { font-size:13px; color:var(--ink3); margin-bottom:20px; }
.field { margin-bottom:14px; }
.field label { font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:1px; color:var(--ink3); display:block; margin-bottom:5px; }
.field input,.field select {
  width:100%; border:1.5px solid rgba(26,22,18,0.1);
  border-radius:9px; padding:10px 13px;
  font-size:14px; color:var(--ink); background:var(--cream);
}
.field input:focus,.field select:focus { outline:none; border-color:var(--check); }
.modal-actions { display:flex; gap:8px; justify-content:flex-end; margin-top:20px; }
.btn-secondary { background:var(--sand); border:none; border-radius:9px; padding:9px 16px; font-size:12px; font-weight:700; cursor:pointer; color:var(--ink2); transition:background .15s; }
.btn-secondary:hover { background:var(--stone); }
.btn-danger { background:rgba(192,57,43,0.1); border:none; border-radius:9px; padding:7px 13px; font-size:11px; font-weight:700; cursor:pointer; color:#c0392b; transition:background .15s; }
.btn-danger:hover { background:rgba(192,57,43,0.15); }

/* ─── COMMUNITY BADGE ────────────────────────── */
.community-banner {
  background:linear-gradient(135deg, var(--ink), #2A2A45);
  border-radius:var(--r); padding:14px 18px; margin-bottom:16px;
  display:flex; align-items:center; gap:12px;
  border:1px solid rgba(212,168,67,0.2);
}
.cb-dot { width:8px; height:8px; border-radius:50%; background:var(--plan); animation:pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.4; } }
.cb-text { font-size:13px; color:rgba(255,255,255,0.8); flex:1; }
.cb-text strong { color:#fff; }
.cb-count { font-family:'Fraunces',serif; font-size:22px; font-weight:900; color:var(--plan); }

/* ─── TOAST ──────────────────────────────────── */
#toast-el { position:fixed; bottom:24px; left:50%; transform:translateX(-50%); background:var(--ink); color:#fff; padding:10px 20px; border-radius:11px; font-size:13px; font-weight:600; z-index:9999; pointer-events:none; opacity:0; transition:opacity .3s; white-space:nowrap; }
#toast-el.visible { opacity:1; }

/* ─── SYSTEM PAGE ────────────────────────────── */
.sys-hero { text-align:center; padding:30px 20px 10px; }
.sys-hero h1 { font-family:'Fraunces',serif; font-size:28px; font-weight:900; margin-bottom:4px; }
.sys-hero .tagline { font-size:14px; color:var(--ink3); font-style:italic; }
.sys-section { margin:24px auto; max-width:960px; padding:0 16px; }
.sys-section-title { font-family:'Fraunces',serif; font-size:17px; font-weight:700; margin-bottom:14px; color:var(--ink2); display:flex; align-items:center; gap:8px; }
.sys-rings-wrap { display:flex; align-items:flex-start; gap:24px; flex-wrap:wrap; justify-content:center; }
.sys-rings { position:relative; width:300px; height:300px; flex-shrink:0; }
.ring { position:absolute; border-radius:50%; display:flex; align-items:center; justify-content:center; cursor:pointer; transition:all .25s; border:2px solid transparent; }
.ring:hover { transform:scale(1.04); }
.ring.active { border-color:var(--ink)!important; box-shadow:var(--shadow-lg); }
.ring-outer { width:300px; height:300px; top:0; left:0; background:var(--cream); border:2px dashed var(--stone); }
.ring-mid { width:200px; height:200px; top:50px; left:50px; background:var(--do-bg); border:2px solid rgba(196,98,45,.3); z-index:2; }
.ring-inner { width:110px; height:110px; top:95px; left:95px; background:var(--plan-bg); border:2px solid rgba(212,168,67,.5); z-index:3; }
.ring-lbl { font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.5px; color:var(--ink2); text-align:center; line-height:1.2; pointer-events:none; }
.ring-lbl span { display:block; font-size:13px; }
.ring-outer-labels { position:absolute; width:300px; height:300px; top:0; left:0; pointer-events:none; }
.ring-outer-lbl { position:absolute; font-size:9px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; color:var(--ink3); background:var(--cream); padding:2px 6px; border-radius:6px; pointer-events:auto; cursor:pointer; transition:all .2s; }
.ring-outer-lbl:hover { color:var(--ink); transform:scale(1.1); }
.rol-community { top:18px; left:50%; transform:translateX(-50%); }
.rol-raeume { bottom:30px; left:12px; }
.rol-bildung { bottom:30px; right:12px; }
.sys-detail { flex:1; min-width:260px; }
.sys-detail-card { background:var(--white); border-radius:var(--r); padding:20px; box-shadow:var(--shadow); border-left:4px solid var(--plan); transition:all .3s; }
.sys-detail-card h3 { font-family:'Fraunces',serif; font-size:18px; font-weight:700; margin-bottom:2px; }
.sys-detail-card .sub { font-size:11px; color:var(--ink3); font-weight:600; text-transform:uppercase; letter-spacing:.5px; margin-bottom:10px; }
.sys-detail-card p { font-size:13px; color:var(--ink2); line-height:1.6; margin-bottom:12px; }
.score-row { display:flex; align-items:center; gap:8px; margin-bottom:12px; }
.score-bar { flex:1; height:8px; background:var(--sand); border-radius:4px; overflow:hidden; }
.score-fill { height:100%; border-radius:4px; transition:width .5s ease; }
.score-num { font-size:13px; font-weight:800; min-width:36px; }
.concept-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:14px; }
.concept-card { background:var(--white); border-radius:var(--r); padding:16px; box-shadow:var(--shadow); cursor:pointer; transition:all .2s; border-top:3px solid var(--stone); }
.concept-card:hover { box-shadow:var(--shadow-lg); transform:translateY(-2px); }
.concept-card .cc-head { display:flex; align-items:center; gap:8px; margin-bottom:6px; }
.concept-card .cc-emoji { font-size:22px; }
.concept-card .cc-title { font-family:'Fraunces',serif; font-size:15px; font-weight:700; }
.concept-card .cc-sub { font-size:10px; color:var(--ink3); font-weight:600; text-transform:uppercase; letter-spacing:.5px; margin-bottom:8px; }
.concept-card .cc-desc { font-size:12px; color:var(--ink2); line-height:1.5; margin-bottom:10px; }
.concept-card .cc-link { font-size:11px; font-weight:700; color:var(--check); cursor:pointer; }
.concept-card .cc-link:hover { text-decoration:underline; }
.scaling-wrap { display:flex; align-items:flex-end; gap:6px; padding:10px 0 20px; overflow-x:auto; position:relative; }
.scaling-step { min-width:130px; border-radius:14px 14px 4px 4px; padding:14px 12px; text-align:center; transition:all .2s; position:relative; }
.scaling-step:hover { transform:translateY(-3px); }
.scaling-step .ss-name { font-family:'Fraunces',serif; font-size:14px; font-weight:700; margin-bottom:2px; }
.scaling-step .ss-motto { font-size:10px; color:var(--ink2); margin-bottom:4px; }
.scaling-step .ss-rhythm { font-size:10px; font-weight:700; opacity:.7; }
.scaling-arrow { text-align:center; padding:4px 0; font-size:12px; color:var(--ink3); }
.mat-full { display:grid; grid-template-columns:100px repeat(5,1fr); gap:2px; }
.mat-full-header { font-size:10px; font-weight:700; text-align:center; padding:8px 4px; color:var(--ink2); }
.mat-full-row-lbl { font-size:11px; font-weight:600; padding:10px 6px; display:flex; align-items:center; color:var(--ink2); }
.mat-full-cell { background:var(--white); border-radius:8px; padding:8px 6px; text-align:center; cursor:pointer; transition:all .2s; border:1px solid var(--sand); font-size:11px; }
.mat-full-cell:hover { background:var(--plan-bg); border-color:var(--plan); box-shadow:var(--shadow); }
.mat-full-cell .mfc-emoji { font-size:16px; display:block; margin-bottom:2px; }
.mat-full-cell .mfc-name { font-size:9px; color:var(--ink3); line-height:1.2; }
.sys-mini-card { background:var(--white); border-radius:var(--r); padding:14px; box-shadow:var(--shadow); cursor:pointer; transition:all .2s; }
.sys-mini-card:hover { box-shadow:var(--shadow-lg); }
.sys-mini-dots { display:flex; gap:6px; margin:8px 0; justify-content:center; }
.sys-mini-dot { width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:9px; font-weight:800; color:var(--white); }
@media(max-width:600px) {
  .sys-rings-wrap { flex-direction:column; align-items:center; }
  .sys-rings { width:240px; height:240px; }
  .ring-outer { width:240px; height:240px; }
  .ring-mid { width:160px; height:160px; top:40px; left:40px; }
  .ring-inner { width:90px; height:90px; top:75px; left:75px; }
  .concept-grid { grid-template-columns:1fr; }
  .scaling-wrap { gap:4px; }
  .scaling-step { min-width:100px; padding:10px 8px; }
}

/* ─── INLINE BTN ─────────────────────────────── */
.btn-inline-p { background:var(--plan); color:var(--ink); border:none; border-radius:8px; font-size:12px; font-weight:800; padding:7px 14px; cursor:pointer; transition:opacity .15s; }
.btn-inline-p:hover { opacity:.85; }
.btn-inline-g { background:var(--sand); color:var(--ink2); border:none; border-radius:8px; font-size:12px; font-weight:700; padding:7px 14px; cursor:pointer; transition:background .15s; }
.btn-inline-g:hover { background:var(--stone); }

/* ─── ONBOARDING ────────────────────────────── */
.ob-overlay {
  position:fixed; inset:0; background:rgba(26,22,18,0.6);
  z-index:9999; display:flex; align-items:center; justify-content:center;
  padding:20px; animation:ob-fadein .3s;
}
@keyframes ob-fadein { from{opacity:0} to{opacity:1} }
.ob-card {
  background:var(--white); border-radius:24px; padding:40px 36px;
  width:100%; max-width:520px; box-shadow:var(--shadow-lg);
  text-align:center; animation:ob-slidein .4s;
}
@keyframes ob-slidein { from{transform:translateY(20px);opacity:0} to{transform:translateY(0);opacity:1} }
.ob-icon { font-size:52px; margin-bottom:16px; }
.ob-title { font-family:'Fraunces',serif; font-size:24px; font-weight:900; margin-bottom:8px; }
.ob-text { font-size:14px; color:var(--ink2); line-height:1.7; margin-bottom:24px; }
.ob-visual { background:var(--cream); border-radius:14px; padding:18px; margin-bottom:24px; text-align:left; }
.ob-group { display:flex; align-items:center; gap:10px; padding:8px 0; }
.ob-group-dot { width:28px; height:28px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:900; flex-shrink:0; }
.ob-group-txt { font-size:13px; font-weight:500; color:var(--ink2); }
.ob-group-lbl { font-weight:800; color:var(--ink); }
.ob-dots { display:flex; gap:6px; justify-content:center; margin-bottom:20px; }
.ob-dot { width:8px; height:8px; border-radius:50%; background:var(--sand); transition:all .2s; }
.ob-dot.active { background:var(--plan); width:24px; }
.ob-actions { display:flex; gap:10px; justify-content:center; }
.ob-skip { background:none; border:none; color:var(--ink3); font-size:13px; font-weight:600; cursor:pointer; padding:10px 16px; }
.ob-skip:hover { color:var(--ink); }
.ob-next { background:var(--plan); color:var(--ink); border:none; border-radius:11px; padding:12px 28px; font-size:14px; font-weight:800; cursor:pointer; transition:opacity .15s; }
.ob-next:hover { opacity:0.85; }

/* Avatar Selection */
.av-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:16px 0; max-width:540px; margin-left:auto; margin-right:auto; }
.av-grid .av-card:last-child { grid-column:2; }
@media(max-width:600px) { .av-grid { grid-template-columns:repeat(2,1fr); max-width:none; } .av-grid .av-card:last-child { grid-column:auto; } }
.av-card { background:var(--white); border:3px solid var(--stone); border-radius:var(--r); padding:16px 12px; text-align:center; cursor:pointer; transition:all .2s; }
.av-card:hover { transform:translateY(-4px); box-shadow:0 8px 24px rgba(26,22,18,.12); }
.av-card.selected { border-color:var(--av-color,var(--ink)); transform:translateY(-4px); box-shadow:0 8px 24px rgba(26,22,18,.18); }
.av-emoji { margin-bottom:8px; }
.av-emoji img { width:100px; height:100px; object-fit:contain; }
.av-name { font-family:'Fraunces',serif; font-weight:700; font-size:16px; color:var(--ink); }
.av-catch { font-size:12px; color:var(--ink3); margin-top:4px; font-style:italic; }
.av-desc { font-size:13px; color:var(--ink2); margin-top:12px; padding:12px; background:var(--sand); border-radius:12px; min-height:60px; display:none; }
.av-card.selected .av-desc { display:block; }
.av-confirm { margin-top:16px; padding:14px 32px; background:var(--ink); color:var(--cream); border:none; border-radius:var(--r); font-family:'Outfit',sans-serif; font-size:15px; font-weight:600; cursor:pointer; transition:all .15s; }
.av-confirm:hover { opacity:.85; }
.av-confirm:disabled { opacity:.4; cursor:not-allowed; }

/* ─── W-FRAGEN INFO ─────────────────────────── */
.wf-info {
  display:grid; grid-template-columns:1fr 1fr 1fr; gap:10px;
  margin-bottom:20px;
}
@media(max-width:600px) { .wf-info { grid-template-columns:1fr; } }
.wf-info-card {
  border-radius:12px; padding:14px; border:1.5px solid;
}
.wf-info-title { font-size:11px; font-weight:900; text-transform:uppercase; letter-spacing:1px; margin-bottom:4px; }
.wf-info-desc { font-size:12px; line-height:1.5; }
.wf-info-tags { display:flex; gap:4px; margin-top:7px; }

/* ─── MATRIX PAGE ───────────────────────────── */
.mat-full { max-width:900px; margin:0 auto; }
.mat-full-grid { display:grid; grid-template-columns:140px repeat(5,1fr); gap:4px; margin:20px 0; }
@media(max-width:600px) { .mat-full-grid { grid-template-columns:80px repeat(5,1fr); } }
.mat-full-cell {
  height:52px; border-radius:10px; background:var(--sand);
  cursor:pointer; border:2px solid transparent; transition:all .2s;
  display:flex; align-items:center; justify-content:center;
  font-size:10px; font-weight:700; color:transparent;
}
.mat-full-cell:hover { border-color:var(--stone); transform:scale(1.04); }
.mat-full-cell.on { color:#fff; border-color:transparent; }
.mat-full-cell.on-0 { background:rgba(46,125,82,0.7); }
.mat-full-cell.on-1 { background:rgba(196,98,45,0.7); }
.mat-full-cell.on-2 { background:rgba(107,72,168,0.7); }
.mat-full-cell.on-3 { background:rgba(212,168,67,0.85); color:var(--ink); }
.mat-full-cell.on-4 { background:rgba(33,150,243,0.7); }
.mat-col-hd {
  font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:1px;
  color:var(--ink3); text-align:center; padding:8px 0;
}
.mat-row-hd {
  font-size:12px; font-weight:700; color:var(--ink2);
  display:flex; align-items:center; padding-right:8px;
}
.mat-explain { margin-top:24px; }
.mat-explain-item {
  display:flex; gap:14px; padding:14px 0;
  border-bottom:1px solid rgba(26,22,18,0.06);
}
.mat-explain-icon { font-size:24px; flex-shrink:0; width:40px; text-align:center; }
.mat-explain-title { font-size:14px; font-weight:700; margin-bottom:3px; }
.mat-explain-desc { font-size:13px; color:var(--ink3); line-height:1.5; }

/* ─── NEERDI CHAT WIDGET ──────────────────────────────────────────────────── */
.neerdi-fab {
  position:fixed; bottom:24px; right:24px; z-index:9000;
  width:60px; height:60px; border-radius:50%;
  background:#AEA59A; color:#fff; border:none; cursor:pointer;
  font-size:28px; display:flex; align-items:center; justify-content:center;
  box-shadow:0 4px 20px rgba(0,0,0,0.2);
  transition: transform 0.2s, background 0.2s;
}
.neerdi-fab:hover { transform:scale(1.1); background:#9A8F82; }
.neerdi-fab.open { background:var(--ink); }

.neerdi-panel {
  position:fixed; bottom:96px; right:24px; z-index:9000;
  width:380px; max-width:calc(100vw - 32px);
  height:500px; max-height:calc(100vh - 140px);
  background:var(--white); border-radius:var(--r);
  box-shadow:var(--shadow-lg); display:none; flex-direction:column;
  overflow:hidden;
}
.neerdi-panel.open { display:flex; }

.neerdi-header {
  background:#AEA59A; color:#fff; padding:14px 16px;
  display:flex; align-items:center; gap:10px;
  font-family:'Fraunces',serif; font-weight:700;
}
.neerdi-header-avatar img { width:36px; height:36px; object-fit:contain; }
.neerdi-header-name { font-size:16px; flex:1; }
.neerdi-header-close { background:none; border:none; color:#fff; font-size:20px; cursor:pointer; padding:4px; }

.neerdi-messages {
  flex:1; overflow-y:auto; padding:16px;
  display:flex; flex-direction:column; gap:10px;
}
.neerdi-msg {
  max-width:85%; padding:10px 14px; border-radius:14px;
  font-size:14px; line-height:1.5; word-break:break-word;
}
.neerdi-msg.neerdi {
  background:var(--sand); color:var(--ink); align-self:flex-start;
  border-bottom-left-radius:4px;
}
.neerdi-msg.user {
  background:#AEA59A; color:#fff; align-self:flex-end;
  border-bottom-right-radius:4px;
}
.neerdi-msg.action {
  background:#DFECE3; color:var(--act-dk); align-self:flex-start;
  border-bottom-left-radius:4px; font-size:13px;
  border-left:3px solid var(--act);
}
.neerdi-typing {
  align-self:flex-start; padding:10px 14px;
  background:var(--sand); border-radius:14px; border-bottom-left-radius:4px;
  font-size:14px; color:var(--ink3);
}

.neerdi-input-bar {
  padding:12px; border-top:1px solid var(--sand);
  display:flex; gap:8px;
}
.neerdi-input {
  flex:1; padding:10px 14px; border:1px solid var(--stone);
  border-radius:24px; font-size:14px; outline:none;
  background:var(--cream);
}
.neerdi-input:focus { border-color:#AEA59A; }
.neerdi-send {
  width:40px; height:40px; border-radius:50%;
  background:#AEA59A; color:#fff; border:none;
  cursor:pointer; font-size:18px; display:flex;
  align-items:center; justify-content:center;
  transition: background 0.2s;
}
.neerdi-send:hover { background:#777; }
.neerdi-send:disabled { opacity:0.5; cursor:not-allowed; }

@media (max-width:500px) {
  .neerdi-panel { right:0; bottom:0; width:100%; height:100vh; max-height:100vh; border-radius:0; }
  .neerdi-fab { bottom:16px; right:16px; }
}

/* ─── MOBILE RESPONSIVE EXTRAS ─────────────── */
@media (max-width:600px) {
  /* Topbar compact */
  #topbar { padding:0 10px; gap:4px; }
  .logo { font-size:16px; }
  .nav { gap:1px; margin:0 4px; }
  .nav-btn { font-size:10px; padding:5px 8px; letter-spacing:0.3px; }
  /* Profile dropdown */
  .profile-toggle { padding:3px 8px 3px 4px; font-size:11px; }
  .profile-toggle img { width:20px; height:20px; }
  .profile-name { display:none; }
  .profile-dropdown { min-width:160px; right:-4px; }
  /* Werkstatt grid → single column */
  .werkstatt-grid-2 { grid-template-columns:1fr !important; }
  /* PDCA circle smaller */
  .pdca-circle-wrap { transform:scale(0.82); margin:16px 0 20px !important; }
  /* Methode accordion */
  .methode-phase-header { padding:10px 14px; }
  .methode-phase-body { padding:12px 14px 16px; }
  /* Kanban table responsive */
  .kb-table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .kb-table { min-width:420px; }
  /* Loop detail */
  .loop-detail { padding:0 4px; }
  .phase-nav { overflow-x:auto; padding-bottom:20px; }
  .phase-dot { width:30px; height:30px; font-size:10px; }
  .phase-label { font-size:8px; }
}

@media (max-width:380px) {
  .nav-btn { font-size:9px; padding:4px 6px; }
  .logo { font-size:14px; }
  #page { padding:8px; }
}

/* ─── LOOPS V2.5 ─────────────────────────────────────────────────────────────── */

/* View Switcher */
.view-switcher { display:flex; background:var(--white); border-radius:10px; border:1px solid rgba(26,22,18,0.08); overflow:hidden; }
.view-btn { background:none; border:none; padding:8px 14px; font-family:'Outfit',sans-serif; font-size:12px; font-weight:700; color:var(--ink3); cursor:pointer; transition:all 0.15s; white-space:nowrap; }
.view-btn:hover { color:var(--ink2); background:var(--cream); }
.view-btn.active { color:var(--ink); background:var(--sand); }

/* Loop Cards Grid */
.cards-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:14px; margin-bottom:16px; }
.loop-card { background:var(--white); border-radius:var(--r); border:1px solid rgba(26,22,18,0.08); box-shadow:var(--shadow); overflow:hidden; cursor:pointer; transition:all 0.2s; }
.loop-card:hover { transform:translateY(-3px); box-shadow:0 8px 32px rgba(26,22,18,0.1); }
.loop-card-stripe { height:5px; width:100%; }
.stripe-plan { background:var(--plan); } .stripe-do { background:var(--do); } .stripe-check { background:var(--check); } .stripe-act { background:var(--act); } .stripe-done { background:var(--done); }
.loop-card-body { padding:16px 18px; }
.loop-card-name { font-size:15px; font-weight:700; margin-bottom:4px; line-height:1.3; }
.loop-card-sub { font-size:12px; color:var(--ink3); margin-bottom:12px; }
.loop-card-progress { height:5px; background:var(--sand); border-radius:3px; overflow:hidden; margin-bottom:10px; }
.loop-card-progress-fill { height:100%; border-radius:3px; }
.loop-card-meta { display:flex; justify-content:space-between; align-items:center; font-size:11px; color:var(--ink3); }
.meta-badge { font-weight:700; padding:2px 7px; border-radius:5px; font-size:10px; }

/* Done Toggle */
.done-toggle { background:var(--white); border-radius:var(--r); border:1px solid rgba(26,22,18,0.08); overflow:hidden; margin-bottom:24px; }
.done-toggle-header { padding:14px 18px; display:flex; align-items:center; gap:10px; cursor:pointer; font-size:13px; font-weight:700; color:var(--ink3); transition:background 0.15s; }
.done-toggle-header:hover { background:var(--cream); }
.done-toggle-header .arrow { transition:transform 0.2s; font-size:10px; }
.done-toggle-header .arrow.open { transform:rotate(90deg); }
.done-toggle-body { display:flex; flex-wrap:wrap; gap:8px; padding:8px 18px 14px; }
.done-toggle-body.hidden { display:none; }
.done-mini { background:var(--cream); border-radius:8px; padding:8px 14px; font-size:12px; font-weight:600; color:var(--ink3); }

/* List View */
.list-view-v25 { display:none; }
.list-view-v25.active { display:block; }
.list-item { background:var(--white); border-radius:10px; border:1px solid rgba(26,22,18,0.08); padding:14px 18px; margin-bottom:6px; display:grid; grid-template-columns:10px 1fr 120px 80px; align-items:center; gap:16px; cursor:pointer; transition:all 0.15s; }
.list-item:hover { box-shadow:var(--shadow); transform:translateX(2px); }
.list-dot { width:10px; height:10px; border-radius:50%; }
.list-name { font-size:14px; font-weight:700; }
.list-sub { font-size:11px; color:var(--ink3); margin-top:2px; }
.list-progress { height:5px; background:var(--sand); border-radius:3px; overflow:hidden; }
.list-progress-fill { height:100%; border-radius:3px; }
.list-date { font-size:11px; font-weight:600; color:var(--ink3); text-align:right; }

/* Timeline View */
.timeline-view-v25 { display:none; }
.timeline-view-v25.active { display:block; }
.timeline-header { display:grid; grid-template-columns:180px 1fr; margin-bottom:8px; }
.timeline-months { display:flex; }
.timeline-month { flex:1; text-align:center; font-size:11px; font-weight:800; color:var(--ink3); text-transform:uppercase; letter-spacing:1px; padding:8px 0; }
.timeline-row { display:grid; grid-template-columns:180px 1fr; align-items:center; margin-bottom:4px; }
.timeline-label { font-size:13px; font-weight:700; padding-right:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.timeline-bar-container { position:relative; height:28px; background:var(--sand); border-radius:6px; overflow:hidden; }
.timeline-bar { position:absolute; height:100%; border-radius:6px; display:flex; align-items:center; padding-left:8px; font-size:10px; font-weight:800; color:white; letter-spacing:0.5px; }
.timeline-sub .timeline-label { font-size:12px; font-weight:500; color:var(--ink2); }
.timeline-sub .timeline-bar-container { height:20px; border-radius:4px; }

/* Page Tabs (3 tabs) */
.page-tabs { display:flex; gap:4px; margin-bottom:18px; }
.page-tab { flex:1; padding:14px; border:2px solid rgba(26,22,18,0.08); border-radius:10px; background:var(--white); cursor:pointer; transition:all 0.2s; text-align:center; font-family:'Outfit',sans-serif; position:relative; overflow:hidden; }
.page-tab::before { content:''; position:absolute; top:0; left:0; right:0; height:4px; }
.page-tab:hover { transform:translateY(-2px); box-shadow:var(--shadow); }
.page-tab.active { border-color:transparent; box-shadow:0 8px 32px rgba(26,22,18,0.1); }
.page-tab-plan::before { background:var(--plan); } .page-tab-plan.active { border-color:var(--plan); background:var(--plan-bg); }
.page-tab-docheck::before { background:linear-gradient(90deg,var(--do),var(--check)); } .page-tab-docheck.active { border-color:var(--do); background:var(--do-bg); }
.page-tab-act::before { background:var(--act); } .page-tab-act.active { border-color:var(--act); background:var(--act-bg); }
.page-tab-label { font-size:10px; font-weight:800; letter-spacing:1.5px; text-transform:uppercase; margin-bottom:2px; }
.page-tab-desc { font-size:12px; color:var(--ink2); font-weight:500; }

/* Neerdi + Notizen Row */
.neerdi-notizen-row { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-bottom:18px; }
.neerdi-card-v25 { background:var(--white); border-radius:var(--r); border:2px solid #AEA59A; box-shadow:0 0 0 4px rgba(174,165,154,0.25); overflow:hidden; }
.neerdi-card-v25-header { padding:14px 16px; display:flex; align-items:center; gap:10px; border-bottom:1px solid rgba(26,22,18,0.08); font-size:13px; font-weight:800; color:#AEA59A; }
.neerdi-avatar-v25 { width:32px; height:32px; border-radius:50%; background:linear-gradient(135deg,#AEA59A,#9A8F82); display:flex; align-items:center; justify-content:center; font-size:16px; animation:neerdi-pulse-v25 2.5s ease-in-out infinite; }
@keyframes neerdi-pulse-v25 { 0%,100% { box-shadow:0 0 0 0 rgba(174,165,154,0.25); } 50% { box-shadow:0 0 0 8px transparent; } }
.neerdi-card-v25-body { padding:14px 16px; }
.neerdi-hint { font-size:13px; color:var(--ink2); line-height:1.5; margin-bottom:10px; padding:10px 12px; background:var(--cream); border-radius:8px; border-left:3px solid #AEA59A; }
.neerdi-input-row-v25 { display:flex; gap:8px; align-items:center; }
.neerdi-input-row-v25 input { flex:1; border:1.5px solid rgba(26,22,18,0.08); border-radius:8px; padding:8px 12px; font-family:'Outfit',sans-serif; font-size:12px; outline:none; background:var(--cream); }
.neerdi-input-row-v25 input:focus { border-color:#AEA59A; }
.neerdi-input-row-v25 button { width:32px; height:32px; border-radius:50%; border:none; background:#AEA59A; color:white; cursor:pointer; font-size:14px; display:flex; align-items:center; justify-content:center; flex-shrink:0; transition:all 0.15s; }
.neerdi-input-row-v25 button:hover { transform:scale(1.1); }
.notizen-card { background:var(--white); border-radius:var(--r); border:1px solid rgba(26,22,18,0.08); box-shadow:var(--shadow); overflow:hidden; }
.notizen-card-header { padding:14px 16px; font-size:13px; font-weight:800; color:var(--ink2); display:flex; align-items:center; gap:8px; border-bottom:1px solid rgba(26,22,18,0.08); }
.notizen-card-body { padding:12px; }
.notizen-textarea { width:100%; min-height:160px; border:1.5px dashed rgba(26,22,18,0.08); border-radius:8px; padding:12px 14px; font-family:'Outfit',sans-serif; font-size:13px; color:var(--ink2); resize:vertical; background:var(--cream); outline:none; }
.notizen-textarea:focus { border-color:#AEA59A; border-style:solid; }

/* W-Fragen Blocks */
.wf-block { background:var(--white); border-radius:var(--r); border:1px solid rgba(26,22,18,0.08); box-shadow:var(--shadow); overflow:hidden; margin-bottom:18px; }
.wf-block-header { padding:14px 18px; display:flex; align-items:center; gap:10px; font-weight:800; font-size:12px; letter-spacing:1px; text-transform:uppercase; }
.wf-color-bar { width:4px; height:28px; border-radius:2px; }
.wfragen-items { display:grid; grid-template-columns:1fr 1fr 1fr; gap:1px; background:rgba(26,22,18,0.08); }
.wfrage-item { background:var(--white); padding:14px 16px; }
.wfrage-label { font-family:'Fraunces',serif; font-size:16px; font-weight:900; margin-bottom:3px; }
.wfrage-q { font-size:11px; color:var(--ink3); margin-bottom:8px; }
.wfrage-input { width:100%; min-height:48px; border:1.5px dashed rgba(26,22,18,0.08); border-radius:8px; padding:10px 12px; font-family:'Outfit',sans-serif; font-size:13px; color:var(--ink2); resize:vertical; background:var(--cream); outline:none; }
.wfrage-input:focus { border-color:#AEA59A; border-style:solid; }

/* Golden Circle */
.gc-section { background:var(--white); border-radius:var(--r); border:1px solid rgba(26,22,18,0.08); box-shadow:var(--shadow); overflow:hidden; margin-bottom:18px; }
.gc-header { padding:14px 18px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid rgba(26,22,18,0.08); }
.gc-title { font-family:'Fraunces',serif; font-size:16px; font-weight:900; display:flex; align-items:center; gap:8px; }
.gc-neerdi-badge { font-size:10px; font-weight:700; background:linear-gradient(135deg,#AEA59A,#9A8F82); color:white; padding:3px 10px; border-radius:12px; display:flex; align-items:center; gap:4px; }
.gc-description { padding:14px 18px; font-size:13px; color:var(--ink2); line-height:1.6; border-bottom:1px solid rgba(26,22,18,0.08); background:var(--cream); }
.gc-grid { display:grid; grid-template-columns:1fr 1fr 1fr; gap:1px; background:rgba(26,22,18,0.08); }
.gc-field { padding:18px 20px; background:var(--white); position:relative; }
.gc-field-label { font-family:'Fraunces',serif; font-weight:900; font-size:18px; margin-bottom:4px; }
.gc-field-sublabel { font-size:10px; font-weight:700; color:var(--ink3); letter-spacing:0.8px; text-transform:uppercase; margin-bottom:10px; }
.gc-field-content { font-size:13px; color:var(--ink2); line-height:1.6; font-style:italic; padding:10px 12px; border-radius:8px; min-height:60px; }
.gc-field-edit { position:absolute; top:16px; right:16px; cursor:pointer; font-size:14px; opacity:0.3; transition:opacity 0.15s; background:none; border:none; }
.gc-field-edit:hover { opacity:1; }

/* Vision Speech */
.speech-section-v25 { background:var(--white); border-radius:var(--r); border:1px solid rgba(26,22,18,0.08); box-shadow:var(--shadow); overflow:hidden; margin-bottom:18px; }
.speech-header-v25 { padding:14px 18px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid rgba(26,22,18,0.08); }
.speech-title-v25 { font-family:'Fraunces',serif; font-size:16px; font-weight:900; display:flex; align-items:center; gap:8px; }
.speech-open { padding:18px 20px; border-bottom:1px solid rgba(26,22,18,0.08); }
.speech-time-label { font-size:10px; font-weight:800; color:var(--do-dk); letter-spacing:1px; margin-bottom:8px; display:flex; align-items:center; gap:8px; }
.speech-text-v25 { font-family:'Fraunces',serif; font-style:italic; font-size:15px; color:var(--ink); line-height:1.6; padding:14px 16px; background:var(--do-bg); border-radius:10px; border-left:4px solid var(--do); }
.speech-toggle-item { padding:14px 18px; font-size:13px; font-weight:600; color:var(--ink2); cursor:pointer; display:flex; align-items:center; justify-content:space-between; transition:background 0.15s; border-bottom:1px solid rgba(26,22,18,0.08); }
.speech-toggle-item:last-child { border-bottom:none; }
.speech-toggle-item:hover { background:var(--cream); }
.speech-toggle-body { display:none; padding:18px 20px; border-bottom:1px solid rgba(26,22,18,0.08); }
.speech-toggle-body.open { display:block; }

/* DO+CHECK Header */
.docheck-header-bar { background:var(--white); border-radius:var(--r); border:1px solid rgba(26,22,18,0.08); box-shadow:var(--shadow); padding:16px 20px; margin-bottom:18px; display:flex; align-items:center; justify-content:space-between; }
.docheck-header-left { display:flex; align-items:center; gap:14px; }
.docheck-phase-dots { display:flex; gap:5px; }
.docheck-label { font-family:'Fraunces',serif; font-size:18px; font-weight:900; }
.docheck-header-right { display:flex; gap:12px; font-size:12px; color:var(--ink2); }
.docheck-header-right span { display:flex; align-items:center; gap:5px; }

/* Kanban V2.5 */
.kanban-card { background:var(--white); border-radius:var(--r); border:1px solid rgba(26,22,18,0.08); box-shadow:var(--shadow); margin-bottom:18px; overflow:hidden; }
.kanban-grid-v25 { display:grid; grid-template-columns:1fr 1fr 1fr; min-height:200px; }
.kanban-col-v25 { border-right:1px solid rgba(26,22,18,0.08); padding:12px; }
.kanban-col-v25:last-child { border-right:none; }
.kanban-col-header { font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:1px; padding:6px 8px 10px; display:flex; align-items:center; gap:6px; }
.kanban-col-count { width:18px; height:18px; border-radius:50%; background:var(--sand); display:flex; align-items:center; justify-content:center; font-size:10px; font-weight:800; }
.kanban-task-v25 { background:var(--cream); border-radius:8px; padding:10px 12px; margin-bottom:6px; font-size:13px; font-weight:500; cursor:grab; transition:all 0.15s; border-left:3px solid transparent; }
.kanban-task-v25:hover { box-shadow:0 2px 8px rgba(0,0,0,0.08); transform:translateY(-1px); }
.kanban-task-v25 .task-deadline { font-size:10px; color:var(--ink3); margin-top:4px; }
.kanban-task-v25 .task-assignee { font-size:10px; color:var(--check-dk); margin-top:2px; }
.kanban-add-v25 { padding:8px 12px; font-size:12px; color:var(--ink3); cursor:pointer; border-radius:8px; transition:all 0.15s; display:flex; align-items:center; gap:4px; border:none; background:none; width:100%; }
.kanban-add-v25:hover { background:var(--cream); color:var(--ink2); }
.kanban-add-input-v25 { width:100%; border:1.5px dashed rgba(26,22,18,0.08); border-radius:8px; padding:8px 12px; font-family:'Outfit',sans-serif; font-size:12px; outline:none; background:transparent; color:var(--ink2); }
.kanban-add-input-v25:focus { border-color:var(--check); background:rgba(107,72,168,0.02); }
.kanban-progress-v25 { padding:12px 16px; border-top:1px solid rgba(26,22,18,0.08); display:flex; align-items:center; gap:12px; }
.kanban-progress-label { font-size:12px; font-weight:700; color:var(--ink2); }
.kanban-progress-bar-v25 { flex:1; height:6px; background:var(--sand); border-radius:3px; overflow:hidden; }
.kanban-progress-fill-v25 { height:100%; border-radius:3px; background:linear-gradient(90deg,var(--do),var(--check)); }
.kanban-progress-pct { font-size:13px; font-weight:800; color:var(--ink); }
.kanban-done-toggle { border-top:1px solid rgba(26,22,18,0.08); background:var(--cream); }
.kanban-done-header { padding:10px 16px; display:flex; align-items:center; gap:8px; cursor:pointer; font-size:12px; font-weight:700; color:var(--ink3); transition:background 0.15s; }
.kanban-done-header:hover { background:var(--sand); }
.kanban-done-body { padding:8px 16px 12px; display:flex; flex-wrap:wrap; gap:6px; }
.kanban-done-body.hidden { display:none; }
.kanban-done-item { background:var(--white); border-radius:8px; padding:8px 12px; font-size:12px; font-weight:500; color:var(--ink3); border-left:3px solid var(--act); }

/* Sub-Loops */
.subloops-section { background:var(--white); border-radius:var(--r); border:1px solid rgba(26,22,18,0.08); box-shadow:var(--shadow); padding:18px; margin-bottom:18px; }
.subloops-title-v25 { font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:1px; color:var(--ink2); margin-bottom:12px; display:flex; align-items:center; gap:8px; }
.subloop-cards { display:flex; gap:10px; overflow-x:auto; padding-bottom:4px; }
.subloop-card { min-width:200px; background:var(--cream); border-radius:10px; padding:14px 16px; border-left:4px solid; cursor:pointer; transition:all 0.15s; flex-shrink:0; }
.subloop-card:hover { transform:translateY(-2px); box-shadow:var(--shadow); }
.subloop-card-name { font-size:14px; font-weight:700; margin-bottom:4px; }
.subloop-card-meta { font-size:11px; color:var(--ink3); margin-bottom:8px; }
.subloop-progress { height:4px; background:rgba(0,0,0,0.08); border-radius:2px; overflow:hidden; }
.subloop-progress-fill { height:100%; border-radius:2px; }
.add-subloop { min-width:160px; background:transparent; border:2px dashed rgba(26,22,18,0.08); border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:13px; color:var(--ink3); cursor:pointer; transition:all 0.15s; padding:14px; }
.add-subloop:hover { border-color:#AEA59A; color:#AEA59A; }

/* Resources Row */
.resources-row { display:grid; grid-template-columns:1.2fr 1fr; gap:14px; margin-bottom:18px; }
.resource-block { background:var(--white); border-radius:var(--r); border:1px solid rgba(26,22,18,0.08); box-shadow:var(--shadow); overflow:hidden; }
.resource-block-header { padding:14px 18px; border-bottom:1px solid rgba(26,22,18,0.08); display:flex; align-items:center; justify-content:space-between; font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:1px; color:var(--ink2); }
.kontakt-role { padding:10px 18px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid rgba(26,22,18,0.08); }
.kontakt-role:last-child { border-bottom:none; }
.kontakt-role-label { font-size:11px; font-weight:700; color:var(--ink3); text-transform:uppercase; letter-spacing:0.5px; min-width:100px; }
.kontakt-role-people { font-size:13px; font-weight:600; flex:1; }
.kontakt-empty { color:var(--ink3); font-style:italic; font-weight:400; }
.finanz-compact { padding:20px; text-align:center; }
.finanz-amount { font-family:'Fraunces',serif; font-size:36px; font-weight:900; color:var(--act); line-height:1; margin-bottom:4px; }
.finanz-label-v25 { font-size:11px; color:var(--ink3); margin-bottom:14px; }
.finanz-bar { height:8px; background:var(--sand); border-radius:4px; overflow:hidden; margin-bottom:8px; }
.finanz-bar-fill { height:100%; border-radius:4px; background:var(--act); }

/* Dokumente */
.dokumente-section { background:var(--white); border-radius:var(--r); border:1px solid rgba(26,22,18,0.08); box-shadow:var(--shadow); overflow:hidden; margin-bottom:18px; }
.dokumente-header { padding:14px 18px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid rgba(26,22,18,0.08); }
.dokumente-header-left { display:flex; align-items:center; gap:10px; font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:1px; color:var(--ink2); }
.dokumente-add-btn { font-size:12px; font-weight:700; color:#AEA59A; cursor:pointer; background:none; border:none; }
.dokumente-add-btn:hover { text-decoration:underline; }
.dokument-item { padding:12px 18px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid rgba(26,22,18,0.08); cursor:pointer; transition:background 0.15s; }
.dokument-item:last-child { border-bottom:none; }
.dokument-item:hover { background:var(--cream); }
.dokument-info { display:flex; align-items:center; gap:12px; flex:1; min-width:0; }
.dokument-icon { width:36px; height:36px; border-radius:8px; background:var(--cream); display:flex; align-items:center; justify-content:center; font-size:18px; flex-shrink:0; }
.dokument-name { font-size:14px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dokument-url { font-size:11px; color:var(--ink3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:400px; }
.dokument-tag { font-size:10px; font-weight:800; letter-spacing:0.8px; padding:3px 10px; border-radius:5px; flex-shrink:0; }
.tag-dokument { background:var(--do-bg); color:var(--do-dk); }
.tag-recherche { background:var(--plan-bg); color:var(--plan-dk); }
.tag-vertrag { background:var(--act-bg); color:var(--act-dk); }
.tag-vorlage { background:var(--check-bg); color:var(--check-dk); }
.dokument-input-row { padding:10px 18px; display:flex; align-items:center; gap:8px; background:var(--cream); }
.dokument-input-row input { flex:1; border:1.5px solid rgba(26,22,18,0.08); border-radius:8px; padding:10px 14px; font-family:'Outfit',sans-serif; font-size:13px; outline:none; background:var(--white); color:var(--ink2); }
.dokument-input-row input:focus { border-color:#AEA59A; }

/* ACT Reflexion */
.reflexion-card { background:var(--white); border-radius:var(--r); border:1px solid rgba(26,22,18,0.08); box-shadow:var(--shadow); overflow:hidden; margin-bottom:18px; }
.reflexion-item { padding:18px 20px; border-bottom:1px solid rgba(26,22,18,0.08); }
.reflexion-item:last-child { border-bottom:none; }
.reflexion-label { font-family:'Fraunces',serif; font-size:20px; font-weight:900; margin-bottom:4px; display:flex; align-items:center; gap:8px; }
.reflexion-desc { font-size:12px; color:var(--ink3); margin-bottom:10px; }
.reflexion-textarea { width:100%; min-height:70px; border:1.5px dashed rgba(26,22,18,0.08); border-radius:8px; padding:12px 14px; font-family:'Outfit',sans-serif; font-size:13px; resize:vertical; background:var(--cream); outline:none; }
.reflexion-textarea:focus { border-color:var(--act); border-style:solid; }

/* Finanz-Abschluss */
.finanz-abschluss { background:var(--white); border-radius:var(--r); border:1px solid rgba(26,22,18,0.08); box-shadow:var(--shadow); overflow:hidden; margin-bottom:18px; }
.finanz-abschluss-header { padding:16px 20px; border-bottom:1px solid rgba(26,22,18,0.08); font-family:'Fraunces',serif; font-size:16px; font-weight:900; display:flex; align-items:center; gap:8px; }
.finanz-table { width:100%; border-collapse:collapse; }
.finanz-table th { padding:10px 20px; font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:1px; color:var(--ink3); text-align:right; border-bottom:1px solid rgba(26,22,18,0.08); }
.finanz-table th:first-child { text-align:left; }
.finanz-table td { padding:10px 20px; font-size:14px; font-weight:600; text-align:right; border-bottom:1px solid rgba(26,22,18,0.08); }
.finanz-table td:first-child { text-align:left; color:var(--ink2); }
.finanz-table tr:last-child td { border-bottom:none; }
.finanz-total td { font-weight:800; font-size:15px; background:var(--act-bg); }
.finanz-positive { color:var(--act); }
.finanz-result { padding:14px 20px; background:var(--act-bg); display:flex; align-items:center; justify-content:space-between; }
.finanz-result-label { font-size:13px; font-weight:700; color:var(--act-dk); }
.finanz-result-badge { background:var(--act); color:white; padding:4px 12px; border-radius:6px; font-size:12px; font-weight:800; }

/* Next Step */
.next-step-card { background:var(--white); border-radius:var(--r); border:1px solid rgba(26,22,18,0.08); box-shadow:var(--shadow); padding:20px; margin-bottom:18px; }
.next-step-title { font-family:'Fraunces',serif; font-size:16px; font-weight:900; margin-bottom:14px; }
.next-step-options { display:flex; flex-direction:column; gap:6px; }
.next-step-option { display:flex; align-items:center; gap:10px; padding:12px 14px; border-radius:10px; border:1.5px solid rgba(26,22,18,0.08); cursor:pointer; transition:all 0.15s; font-size:13px; font-weight:600; background:none; width:100%; text-align:left; font-family:'Outfit',sans-serif; }
.next-step-option:hover { border-color:var(--act); background:var(--act-bg); }
.next-step-option.selected { border-color:var(--act); background:var(--act-bg); }
.next-step-radio { width:18px; height:18px; border-radius:50%; border:2px solid rgba(26,22,18,0.08); flex-shrink:0; transition:all 0.15s; }
.next-step-option:hover .next-step-radio { border-color:var(--act); }
.next-step-option.selected .next-step-radio { border-color:var(--act); background:var(--act); }

/* Loop Detail Header V2.5 */
.loop-detail-header-v25 { background:var(--white); border-radius:var(--r); border:1px solid rgba(26,22,18,0.08); box-shadow:var(--shadow); padding:20px 24px; margin-bottom:18px; }
.loop-header-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.loop-detail-title-v25 { font-family:'Fraunces',serif; font-size:26px; font-weight:900; }
.loop-header-details { display:flex; gap:20px; align-items:center; flex-wrap:wrap; font-size:12px; color:var(--ink3); }
.loop-header-details .detail-item { display:flex; align-items:center; gap:5px; }

/* V2.5 Responsive */
@media (max-width:900px) {
  .wfragen-items, .gc-grid { grid-template-columns:1fr; }
  .kanban-grid-v25 { grid-template-columns:1fr 1fr; }
  .resources-row { grid-template-columns:1fr; }
  .neerdi-notizen-row { grid-template-columns:1fr; }
  .page-tabs { flex-wrap:wrap; }
}
@media (max-width:600px) {
  .cards-grid { grid-template-columns:1fr; }
  .kanban-grid-v25 { grid-template-columns:1fr; }
  .list-item { grid-template-columns:10px 1fr 80px; }
  .list-item .list-progress { display:none; }
  .timeline-header, .timeline-row { grid-template-columns:120px 1fr; }
}

/* ═══ IRLEN / LOW-STIM MODE ═══ */
body.irlen {
  --plan: #B8923A;
  --do: #A85425;
  --check: #5A3D8F;
  --act: #256B45;
  --cream: #E8E0D0;
  --sand: #DDD5C5;
  --ink: #3D3526;
  --ink3: #7D7466;
}

/* ═══ LIGHT MODE (explicit) ═══ */
body.light {
  --bg: var(--cream);
  --bg-card: var(--white);
}
