/* ============================================================
   WACHSBLEICHE AKADEMIE OS — Design System v1.1
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f0f0f2;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #aeaeb2;
  --accent: #0071e3;
  --accent-light: #e8f0fd;
  --border: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.14);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 2px 8px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --sidebar-w: 240px;
  --header-h: 56px;
  --bottom-nav-h: 68px;
  --transition: 0.18s ease;
  --font: system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

  --badge-grundlagen-bg: #e8f4fd;
  --badge-grundlagen-c: #0056b3;
  --badge-produkt-bg: #e8f8ef;
  --badge-produkt-c: #1a7c3e;
  --badge-rechner-bg: #fef3e2;
  --badge-rechner-c: #9b5000;
  --badge-gespraech-bg: #f3e8fd;
  --badge-gespraech-c: #6b21a8;
}

.dark {
  --bg: #000000;
  --surface: #1c1c1e;
  --surface-2: #2c2c2e;
  --text: #f5f5f7;
  --text-2: #aeaeb2;
  --text-3: #636366;
  --accent: #2997ff;
  --accent-light: #1a2a40;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.6);
  --badge-grundlagen-bg: #0d2137;
  --badge-grundlagen-c: #5aabff;
  --badge-produkt-bg: #0d2418;
  --badge-produkt-c: #4caf70;
  --badge-rechner-bg: #2a1c00;
  --badge-rechner-c: #f0a030;
  --badge-gespraech-bg: #200d37;
  --badge-gespraech-c: #c084fc;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100dvh;
  transition: background var(--transition), color var(--transition);
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
input, textarea, select { font-family: inherit; color: inherit; }
ul, ol { list-style: none; }
img, svg { display: block; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

/* --- App Shell --- */
#app { display: flex; min-height: 100dvh; }

/* --- Sidebar --- */
#sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100dvh;
  position: fixed;
  left: 0; top: 0;
  z-index: 200;
  transition: transform var(--transition), background var(--transition);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 18px 18px;
  border-bottom: 1px solid var(--border);
}
.brand-icon {
  width: 36px; height: 36px;
  background: linear-gradient(145deg, #1e80ff 0%, #0050d0 100%);
  box-shadow: 0 2px 8px rgba(0,100,220,.3);
  color: #fff;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; letter-spacing: 0.5px;
  flex-shrink: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.brand-title { font-size: 14px; font-weight: 700; color: var(--text); letter-spacing: -0.2px; white-space: nowrap; }
.brand-sub { font-size: 11px; color: var(--text-2); font-weight: 500; }
.brand-region {
  font-size: 10px; color: var(--text-3); font-weight: 400;
  margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: 0.01em;
}

.sidebar-search-wrap { padding: 12px 12px 8px; position: relative; }
.search-field { position: relative; }
.search-field-icon {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; color: var(--text-3); pointer-events: none;
}
.search-input {
  width: 100%; padding: 9px 10px 9px 34px;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 10px; font-size: 13px; color: var(--text);
  outline: none; transition: border-color var(--transition), box-shadow var(--transition);
}
.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.search-input::placeholder { color: var(--text-3); }

.search-results {
  position: absolute; top: calc(100% - 4px); left: 12px; right: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  z-index: 300; max-height: 380px; overflow-y: auto;
}
.search-group-label {
  padding: 7px 14px 5px;
  font-size: 9.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-3);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1;
}
.search-result-item {
  padding: 9px 14px; cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--surface-2); }
.search-result-title { font-size: 13px; font-weight: 500; color: var(--text); }
.search-result-cat { font-size: 11px; color: var(--text-2); margin-top: 2px; }
.search-result-badge {
  display: inline-block; font-size: 10px; font-weight: 600;
  background: rgba(0,113,227,.08); color: var(--accent);
  border-radius: 10px; padding: 1px 6px;
}
mark.search-mark {
  background: rgba(0,113,227,.12); color: var(--accent);
  border-radius: 2px; padding: 0 1px; font-style: normal;
}
.search-empty {
  padding: 18px 14px; font-size: 12.5px; color: var(--text-2); text-align: center;
}
.search-results.hidden, .hidden { display: none !important; }

.nav-list { padding: 8px 8px; flex: 1; }
.nav-label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  padding: 12px 10px 4px;
  user-select: none;
}
.nav-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 500; color: var(--text-2);
  transition: background var(--transition), color var(--transition);
  text-align: left;
}
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--accent-light); color: var(--accent); font-weight: 600; }

.sidebar-footer {
  padding: 12px 12px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
}
.theme-toggle-btn {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 12.5px; color: var(--text-2);
  transition: background var(--transition); width: 100%;
}
.theme-toggle-btn:hover { background: var(--border); color: var(--text); }
.version-tag { font-size: 10.5px; color: var(--text-3); text-align: center; }

/* --- Main Wrapper --- */
#main-wrap {
  flex: 1; margin-left: var(--sidebar-w);
  display: flex; flex-direction: column; min-height: 100dvh;
  transition: margin-left var(--transition);
}

/* --- Mobile Header --- */
#mobile-header {
  display: none; height: var(--header-h);
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 0 16px; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
}
.mobile-brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.mobile-brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.mobile-brand-name { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; letter-spacing: -0.1px; }
.mobile-brand-sub { font-size: 10.5px; color: var(--text-2); font-weight: 500; white-space: nowrap; }
.brand-icon-sm {
  width: 30px; height: 30px;
  background: linear-gradient(145deg, #1e80ff 0%, #0050d0 100%);
  box-shadow: 0 2px 6px rgba(0,100,220,.28);
  color: #fff;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; letter-spacing: 0.4px; flex-shrink: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
}
.icon-btn {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); color: var(--text); transition: background var(--transition);
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 20px; height: 20px; }

/* --- Content & Views --- */
#content { flex: 1; overflow-y: auto; }
.view {
  display: none; padding: 32px;
  min-height: calc(100dvh - var(--header-h));
  animation: fadeIn 0.15s ease;
}
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* --- Page Header --- */
.page-header { margin-bottom: 28px; }
.page-title { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; color: var(--text); line-height: 1.2; }
.page-subtitle { font-size: 15px; color: var(--text-2); margin-top: 6px; }

/* --- Dashboard --- */
.dashboard-welcome {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 32px; margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.dashboard-welcome h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.4px; color: var(--text); margin-bottom: 6px; }
.dashboard-welcome p { font-size: 15px; color: var(--text-2); max-width: 520px; }

.dashboard-search-wrap { position: relative; margin-bottom: 28px; }
.dashboard-search {
  width: 100%; padding: 14px 16px 14px 44px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 15px; color: var(--text);
  outline: none; box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.dashboard-search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,113,227,0.12); }
.dashboard-search::placeholder { color: var(--text-3); }
.dashboard-search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--text-3); pointer-events: none;
}
#dashboard-search-results, #dash-search-results {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  z-index: 200; max-height: 320px; overflow-y: auto;
}

/* --- Quick Actions --- */
.quick-actions {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px;
}
.quick-action-btn {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  cursor: pointer; transition: box-shadow var(--transition), transform var(--transition), background var(--transition);
  box-shadow: var(--shadow-sm);
}
.quick-action-btn:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.qa-icon { width: 36px; height: 36px; background: var(--accent-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--accent); }
.qa-icon svg { width: 18px; height: 18px; }
.qa-label { font-size: 13px; font-weight: 600; color: var(--text); }
.qa-sub { font-size: 11.5px; color: var(--text-2); }

/* --- Dashboard v1.1 Sections --- */
.d11-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px;
}
.d11-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm);
}
.d11-card-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.d11-icon {
  width: 32px; height: 32px; background: var(--accent-light); color: var(--accent);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.d11-title { font-size: 14px; font-weight: 700; color: var(--text); }
.d11-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  background: var(--surface-2); border-radius: var(--radius-sm);
  cursor: pointer; transition: background var(--transition); margin-bottom: 6px;
}
.d11-item:last-child { margin-bottom: 0; }
.d11-item:hover { background: var(--border); }
.d11-item-icon { font-size: 18px; flex-shrink: 0; }
.d11-item-info { flex: 1; min-width: 0; }
.d11-item-title { font-size: 13px; font-weight: 600; color: var(--text); }
.d11-item-sub { font-size: 11.5px; color: var(--text-2); }
.d11-item-action { font-size: 11.5px; color: var(--accent); font-weight: 600; white-space: nowrap; }
.d11-step-num {
  width: 22px; height: 22px; background: var(--accent); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}

/* --- Section --- */
.section-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 14px; letter-spacing: -0.2px; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-title-row .section-title { margin-bottom: 0; }
.section-link { font-size: 13px; color: var(--accent); font-weight: 500; background: none; border: none; cursor: pointer; padding: 0; }
.section-link:hover { text-decoration: underline; }

/* --- Dashboard Grid --- */
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.dashboard-section {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm);
}

/* --- Mini Cards --- */
.mini-card-list { display: flex; flex-direction: column; gap: 8px; }
.mini-card {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  background: var(--surface-2); border-radius: var(--radius-sm);
  cursor: pointer; transition: background var(--transition);
}
.mini-card:hover { background: var(--border); }
.mini-card-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.mini-card-title { font-size: 13px; font-weight: 500; color: var(--text); flex: 1; }
.mini-card-cat { font-size: 11px; color: var(--text-2); }
.new-badge { font-size: 10px; font-weight: 600; background: var(--accent); color: #fff; padding: 2px 7px; border-radius: 20px; }

/* --- Lernpfad (Dashboard Strip) --- */
.lernpfad-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin-bottom: 28px; box-shadow: var(--shadow-sm);
}
.lernpfad-progress { display: flex; gap: 6px; margin-top: 14px; }
.lernpfad-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.step-dot {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border-strong);
  background: var(--surface-2); display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: var(--text-2);
  transition: all var(--transition); cursor: pointer;
}
.step-dot.done { background: var(--accent); border-color: var(--accent); color: #fff; }
.step-dot.active { border-color: var(--accent); color: var(--accent); }
.step-label { font-size: 10.5px; color: var(--text-2); text-align: center; line-height: 1.3; }
.lernpfad-bar { height: 4px; background: var(--surface-2); border-radius: 2px; margin-top: 10px; overflow: hidden; }
.lernpfad-bar-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width 0.4s ease; }

/* --- CTAs --- */
.dashboard-ctas { display: flex; gap: 12px; margin-bottom: 28px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px;
  background: var(--accent); color: #fff; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; border: none; cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
  box-shadow: 0 2px 8px rgba(0,113,227,0.25);
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary svg { width: 16px; height: 16px; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-secondary:hover { background: var(--surface-2); transform: translateY(-1px); }
.btn-secondary svg { width: 16px; height: 16px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: background var(--transition);
}
.btn-ghost:hover { background: var(--border); }

/* --- Module Cards Grid --- */
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.module-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow-sm); transition: box-shadow var(--transition), transform var(--transition);
}
.module-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.card-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 600;
  padding: 3px 8px; border-radius: 20px; letter-spacing: 0.01em;
}
.badge-grundlagen { background: var(--badge-grundlagen-bg); color: var(--badge-grundlagen-c); }
.badge-produkt    { background: var(--badge-produkt-bg);    color: var(--badge-produkt-c); }
.badge-rechner    { background: var(--badge-rechner-bg);    color: var(--badge-rechner-c); }
.badge-gespraech  { background: var(--badge-gespraech-bg);  color: var(--badge-gespraech-c); }
.badge-new        { background: var(--accent); color: #fff; }

.fav-btn {
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--text-3); flex-shrink: 0;
  transition: color var(--transition), background var(--transition);
}
.fav-btn:hover { background: var(--surface-2); color: #e53e3e; }
.fav-btn.active { color: #e53e3e; }
.fav-btn svg { width: 16px; height: 16px; }
.fav-btn.active svg { fill: #e53e3e; stroke: #e53e3e; }

.card-title { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.3; letter-spacing: -0.2px; }
.card-desc { font-size: 13px; color: var(--text-2); line-height: 1.5; flex: 1; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-card {
  flex: 1; padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 12.5px; font-weight: 600; text-align: center; cursor: pointer;
  transition: all var(--transition); border: none; min-width: 0;
}
.btn-card-primary { background: var(--accent); color: #fff; }
.btn-card-primary:hover { opacity: 0.85; }
.btn-card-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-card-ghost:hover { background: var(--border); }

/* --- Filter Bar --- */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-btn {
  padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 500;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
  cursor: pointer; transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* --- Module Detail --- */
.module-detail-header {
  display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px;
}
.back-btn {
  display: flex; align-items: center; gap: 6px; padding: 8px 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; color: var(--text-2);
  cursor: pointer; transition: all var(--transition); white-space: nowrap; flex-shrink: 0;
}
.back-btn:hover { color: var(--text); background: var(--surface-2); }
.back-btn svg { width: 16px; height: 16px; }
.module-detail-meta { flex: 1; }
.module-detail-title { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; color: var(--text); line-height: 1.2; margin-bottom: 6px; }
.module-detail-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; flex-wrap: wrap; }

/* --- Module Tabs (v1.1) --- */
.module-tabs-bar {
  display: flex; gap: 2px; margin-bottom: 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto; scrollbar-width: none;
}
.module-tabs-bar::-webkit-scrollbar { display: none; }
.module-tab {
  padding: 9px 16px; font-size: 13px; font-weight: 500; color: var(--text-2);
  white-space: nowrap; cursor: pointer; border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  margin-bottom: -1px;
}
.module-tab:hover { color: var(--text); }
.module-tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.tab-panels { padding-top: 24px; }
.tab-panel { display: none; animation: fadeIn 0.15s ease; }
.tab-panel.active { display: block; }

/* --- Accordion --- */
.accordion { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.accordion-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; font-size: 14.5px; font-weight: 600; color: var(--text);
  cursor: pointer; transition: background var(--transition); text-align: left; gap: 12px;
}
.accordion-trigger:hover { background: var(--surface-2); }
.accordion-trigger.open { background: var(--surface-2); }
.accordion-chevron { width: 16px; height: 16px; color: var(--text-3); transition: transform var(--transition); flex-shrink: 0; }
.accordion-trigger.open .accordion-chevron { transform: rotate(180deg); }
.accordion-body { display: none; padding: 0 20px 20px; font-size: 14px; color: var(--text-2); line-height: 1.65; }
.accordion-body.open { display: block; }

/* --- Content Blocks --- */
.big-points-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.big-point { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text); }
.big-point-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; margin-top: 7px; flex-shrink: 0; }

.objections-list { display: flex; flex-direction: column; gap: 12px; }
.objection-item { background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px 14px; border-left: 3px solid var(--accent); }
.objection-q { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.objection-a { font-size: 13px; color: var(--text-2); line-height: 1.5; }

.guide-list { display: flex; flex-direction: column; gap: 10px; }
.guide-step { display: flex; gap: 12px; align-items: flex-start; }
.guide-num {
  width: 24px; height: 24px; background: var(--accent-light); color: var(--accent);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0; margin-top: 1px;
}
.guide-text { font-size: 14px; color: var(--text); line-height: 1.5; }

.training-q-list { display: flex; flex-direction: column; gap: 8px; }
.training-q-item {
  background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px 14px;
  cursor: pointer; transition: background var(--transition);
}
.training-q-item:hover { background: var(--border); }
.training-q-q { font-size: 14px; font-weight: 500; color: var(--text); display: flex; align-items: center; gap: 8px; }
.training-q-q::before {
  content: '?'; width: 20px; height: 20px; background: var(--accent-light); color: var(--accent);
  border-radius: 50%; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* --- Notes --- */
.notes-area {
  width: 100%; min-height: 100px; padding: 12px 14px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 13.5px; color: var(--text);
  resize: vertical; outline: none; transition: border-color var(--transition); line-height: 1.6;
}
.notes-area:focus { border-color: var(--accent); }
.notes-save-btn {
  margin-top: 8px; padding: 7px 16px; background: var(--accent); color: #fff;
  border: none; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: opacity var(--transition);
}
.notes-save-btn:hover { opacity: 0.85; }
.notes-saved-hint { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* --- Calculator Link Card --- */
.calc-link-card {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 560px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 20px;
  cursor: pointer; text-align: left; margin-bottom: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.calc-link-card:hover { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,113,227,.08); }
.calc-link-left { display: flex; align-items: center; gap: 14px; }
.calc-link-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(249,115,22,.1); color: #f97316;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.calc-link-title { font-size: 14px; font-weight: 600; color: var(--text); }
.calc-link-sub   { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.calc-link-arrow { color: var(--text-3); flex-shrink: 0; }

/* --- Calculator --- */
.calc-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; max-width: 560px; box-shadow: var(--shadow);
}
.calc-title { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 6px; color: var(--text); }
.calc-subtitle { font-size: 13.5px; color: var(--text-2); margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; letter-spacing: 0.02em; text-transform: uppercase; }
.form-input {
  width: 100%; padding: 11px 14px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 15px; color: var(--text); outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,113,227,0.1); }
.form-hint { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.calc-result {
  background: var(--accent-light); border: 1px solid rgba(0,113,227,0.15);
  border-radius: var(--radius); padding: 20px; margin-top: 20px;
}
.calc-result-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.calc-result-row:last-child { margin-bottom: 0; }
.calc-result-label { font-size: 13px; color: var(--accent); font-weight: 500; }
.calc-result-value { font-size: 20px; font-weight: 700; color: var(--accent); letter-spacing: -0.3px; }
.calc-result-value.small { font-size: 16px; }
.calc-disclaimer {
  font-size: 11.5px; color: var(--text-3); line-height: 1.5; margin-top: 16px;
  padding: 12px 14px; background: var(--surface-2); border-radius: var(--radius-sm);
  border-left: 3px solid var(--border-strong);
}

/* --- Downloads --- */
.download-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.download-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow-sm); transition: box-shadow var(--transition);
}
.download-card:hover { box-shadow: var(--shadow); }
.dl-icon { width: 44px; height: 44px; background: var(--surface-2); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--text-2); flex-shrink: 0; }
.dl-icon svg { width: 22px; height: 22px; }
.dl-info { flex: 1; min-width: 0; }
.dl-name { font-size: 13.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-meta { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.dl-btn {
  padding: 7px 14px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 12.5px; font-weight: 600; color: var(--text);
  cursor: pointer; transition: all var(--transition); flex-shrink: 0;
}
.dl-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* --- Empty State --- */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 20px; text-align: center; color: var(--text-3); }
.empty-state-icon { width: 56px; height: 56px; background: var(--surface-2); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.empty-state-icon svg { width: 28px; height: 28px; }
.empty-state h3 { font-size: 16px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.empty-state p { font-size: 14px; color: var(--text-3); max-width: 260px; }

/* --- Category Sections --- */
.category-section { margin-bottom: 36px; }
.category-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.category-icon-wrap { width: 32px; height: 32px; background: var(--accent-light); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--accent); }
.category-icon-wrap svg { width: 16px; height: 16px; }
.category-name { font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: -0.2px; }
.category-count { font-size: 12px; color: var(--text-3); background: var(--surface-2); padding: 2px 8px; border-radius: 20px; }

/* ============================================================
   LERNPFADE VIEW (v1.1)
   ============================================================ */

.lernpfade-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.lp-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
}
.lp-card-top {
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; gap: 14px; align-items: flex-start;
}
.lp-card-icon {
  width: 48px; height: 48px; border-radius: 14px; background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.lp-card-meta { flex: 1; }
.lp-card-name { font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: -0.3px; margin-bottom: 4px; }
.lp-card-desc { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.lp-card-count { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.lp-progress-wrap { padding: 14px 24px 0; }
.lp-progress-labels { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-3); margin-bottom: 6px; }
.lp-bar { height: 5px; background: var(--surface-2); border-radius: 3px; overflow: hidden; margin-bottom: 16px; }
.lp-bar-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.4s ease; }
.lp-modules { padding: 0 16px 16px; }
.lp-module-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  border-radius: var(--radius-sm); cursor: pointer; transition: background var(--transition);
}
.lp-module-row:hover { background: var(--surface-2); }
.lp-module-num {
  width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--text-3); flex-shrink: 0;
  transition: all var(--transition);
}
.lp-module-num.done { background: var(--accent); border-color: var(--accent); color: #fff; }
.lp-module-num.active { border-color: var(--accent); color: var(--accent); }
.lp-module-title { font-size: 13px; font-weight: 500; color: var(--text); flex: 1; }
.lp-module-arrow { font-size: 12px; color: var(--text-3); }
.lp-card-footer { padding: 14px 24px 20px; display: flex; gap: 8px; }

/* ============================================================
   PRESENTATION OVERLAY
   ============================================================ */

#presentation-overlay {
  position: fixed; inset: 0; background: var(--bg); z-index: 1000;
  display: flex; flex-direction: column;
}
#presentation-overlay.hidden { display: none; }
.pres-topbar {
  display: flex; align-items: center; gap: 12px; padding: 12px 20px;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.pres-progress-track { flex: 1; height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
#pres-progress-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width 0.3s ease; }
#pres-counter { font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
#pres-exit-btn {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 16px; color: var(--text-2); background: var(--surface-2);
  cursor: pointer; transition: background var(--transition), color var(--transition);
  border: 1px solid var(--border); flex-shrink: 0;
}
#pres-exit-btn:hover { background: var(--border); color: var(--text); }
#pres-content { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px; overflow-y: auto; }
.pres-slide { max-width: 720px; width: 100%; animation: slideIn 0.25s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.pres-slide-type-title { text-align: center; }
.pres-slide-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.pres-slide-title { font-size: 38px; font-weight: 800; letter-spacing: -1px; color: var(--text); line-height: 1.1; margin-bottom: 16px; }
.pres-slide-subtitle { font-size: 18px; color: var(--text-2); line-height: 1.5; }
.pres-slide-body { font-size: 17px; color: var(--text-2); line-height: 1.65; margin-bottom: 28px; }
.pres-slide-heading { font-size: 30px; font-weight: 700; letter-spacing: -0.5px; color: var(--text); margin-bottom: 20px; line-height: 1.2; }
.pres-points { display: flex; flex-direction: column; gap: 12px; }
.pres-point { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--text); line-height: 1.5; }
.pres-point-bullet { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; flex-shrink: 0; margin-top: 8px; }
.pres-formula-box { background: var(--accent-light); border: 1px solid rgba(0,113,227,0.2); border-radius: var(--radius); padding: 24px 28px; margin: 20px 0; text-align: center; }
.pres-formula { font-size: 22px; font-weight: 700; color: var(--accent); letter-spacing: -0.3px; font-family: 'SF Mono', 'Fira Code', monospace; }
.pres-controls {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  padding: 16px 20px; background: var(--surface); border-top: 1px solid var(--border);
}
#pres-prev-btn, #pres-next-btn {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border);
  cursor: pointer; transition: all var(--transition); color: var(--text);
}
#pres-prev-btn:hover, #pres-next-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
#pres-prev-btn svg, #pres-next-btn svg { width: 22px; height: 22px; }
#pres-prev-btn:disabled, #pres-next-btn:disabled { opacity: 0.3; cursor: not-allowed; }
#pres-prev-btn:disabled:hover, #pres-next-btn:disabled:hover { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.pres-dots { display: flex; gap: 6px; align-items: center; }
.pres-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); transition: all var(--transition); cursor: pointer; }
.pres-dot.active { background: var(--accent); width: 20px; border-radius: 3px; }

/* ============================================================
   CONVERSATION OVERLAY (v1.1)
   ============================================================ */

#conversation-overlay {
  position: fixed; inset: 0; background: var(--bg); z-index: 1000;
  display: flex; flex-direction: column;
}
#conversation-overlay.hidden { display: none; }
.conv-topbar {
  display: flex; align-items: center; gap: 12px; padding: 12px 20px;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.conv-progress-track { flex: 1; height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
#conv-progress-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width 0.3s ease; }
#conv-counter { font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
#conv-exit-btn {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 16px; color: var(--text-2); background: var(--surface-2);
  cursor: pointer; transition: background var(--transition), color var(--transition);
  border: 1px solid var(--border); flex-shrink: 0;
}
#conv-exit-btn:hover { background: var(--border); color: var(--text); }
#conv-content { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px; overflow-y: auto; }
.conv-slide { max-width: 680px; width: 100%; animation: slideIn 0.25s ease; }
.conv-step-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.conv-heading { font-size: 30px; font-weight: 700; letter-spacing: -0.5px; color: var(--text); margin-bottom: 20px; }
.conv-quote {
  font-size: 20px; font-style: italic; color: var(--text); line-height: 1.5;
  padding: 22px 24px; background: var(--surface);
  border-radius: var(--radius); border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-sm); margin-bottom: 16px;
}
.conv-hint { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.conv-questions { display: flex; flex-direction: column; gap: 10px; }
.conv-question {
  display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.conv-q-num {
  width: 28px; height: 28px; background: var(--accent-light); color: var(--accent);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.conv-q-text { font-size: 16px; color: var(--text); line-height: 1.5; font-style: italic; }
.conv-erklaerung { font-size: 17px; color: var(--text); line-height: 1.7; }
.conv-erklaerung strong { color: var(--accent); }
.conv-bigpoints { display: flex; flex-direction: column; gap: 10px; }
.conv-bigpoint {
  padding: 14px 18px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); border-left: 3px solid var(--accent);
  font-size: 15px; font-weight: 500; color: var(--text); box-shadow: var(--shadow-sm);
}
.conv-abschluss {
  font-size: 22px; font-weight: 700; color: var(--text); text-align: center;
  padding: 32px; background: var(--accent-light);
  border-radius: var(--radius-lg); border: 1px solid rgba(0,113,227,0.15);
  line-height: 1.4; font-style: italic; margin-bottom: 20px;
}
.conv-next-step { font-size: 14px; color: var(--text-2); text-align: center; }
.conv-controls {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  padding: 16px 20px; background: var(--surface); border-top: 1px solid var(--border);
}
#conv-prev-btn, #conv-next-btn {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border);
  cursor: pointer; transition: all var(--transition); color: var(--text);
}
#conv-prev-btn:hover, #conv-next-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
#conv-prev-btn svg, #conv-next-btn svg { width: 22px; height: 22px; }
#conv-prev-btn:disabled, #conv-next-btn:disabled { opacity: 0.3; cursor: not-allowed; }
#conv-prev-btn:disabled:hover, #conv-next-btn:disabled:hover { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.conv-dots { display: flex; gap: 6px; align-items: center; }
.conv-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); transition: all var(--transition); cursor: pointer; }
.conv-dot.active { background: var(--accent); width: 20px; border-radius: 3px; }

/* --- Bottom Navigation --- */
#bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--bottom-nav-h); background: var(--surface); border-top: 1px solid var(--border);
  padding: 0 4px; padding-bottom: env(safe-area-inset-bottom, 0);
  z-index: 200; justify-content: space-around; align-items: center;
}
.bn-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 12px; border-radius: var(--radius-sm); font-size: 10px; font-weight: 500;
  color: var(--text-3); transition: color var(--transition); min-width: 52px;
}
.bn-item svg { width: 22px; height: 22px; }
.bn-item.active { color: var(--accent); }
.bn-item span { font-size: 10px; }

/* --- Sidebar Overlay --- */
#sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 190; backdrop-filter: blur(2px); }

/* --- Utility --- */
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-2); }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.divider { height: 1px; background: var(--border); margin: 20px 0; }
.inline-badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 20px; margin-left: 8px; vertical-align: middle; }

/* --- Dashboard d11 item extensions --- */
.d11-item-label { font-size: 13px; font-weight: 500; color: var(--text); flex: 1; min-width: 0; }
.d11-item-arrow { font-size: 14px; color: var(--text-3); flex-shrink: 0; }

/* --- Mini EP-Rechner (Anwenden-Tab) --- */
.mini-calc-wrap {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin-top: 20px;
}

/* --- Download-List (Tab-Ansicht) --- */
.download-list { display: flex; flex-direction: column; gap: 10px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  #sidebar { transform: translateX(calc(-1 * var(--sidebar-w))); box-shadow: var(--shadow-lg); }
  #sidebar.open { transform: translateX(0); }
  #main-wrap { margin-left: 0; }
  #mobile-header { display: flex; }
  #bottom-nav { display: flex; }
  .view { padding: 16px; min-height: calc(100dvh - var(--header-h) - var(--bottom-nav-h)); padding-bottom: calc(var(--bottom-nav-h) + 16px); }
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .d11-grid { grid-template-columns: 1fr; }
  .dashboard-welcome { padding: 20px; }
  .dashboard-welcome h1 { font-size: 20px; }
  .module-grid { grid-template-columns: 1fr; }
  .module-detail-header { flex-wrap: wrap; }
  .module-detail-title { font-size: 22px; }
  .pres-slide-title { font-size: 28px; }
  .pres-slide-heading { font-size: 22px; }
  .pres-slide-body { font-size: 15px; }
  .pres-point { font-size: 14px; }
  #pres-content { padding: 20px; }
  #conv-content { padding: 20px; }
  .conv-heading { font-size: 22px; }
  .conv-quote { font-size: 17px; }
  .conv-erklaerung { font-size: 15px; }
  .conv-abschluss { font-size: 18px; padding: 20px; }
  .calc-card { max-width: 100%; }
  .dashboard-ctas { flex-direction: column; }
  .download-grid { grid-template-columns: 1fr; }
  .page-title { font-size: 22px; }
  .lernpfade-grid { grid-template-columns: 1fr; }
  .module-tab { padding: 8px 12px; font-size: 12.5px; }

  /* Touch-Targets */
  .nav-item, .bn-item, .btn-primary, .btn-secondary,
  .book-mark-read-btn, .book-mark-unread-btn, .book-fav-btn,
  .lw-tab-btn, .topic-open-btn, .pres-exit-btn, .conv-exit-btn { min-height: 44px; }
  #pres-prev-btn, #pres-next-btn,
  #conv-prev-btn, #conv-next-btn { min-height: 52px; min-width: 52px; }

  /* Iframe / App-Frame */
  .app-frame-wrap { margin: 0 0 16px; border-radius: 0; min-height: 0; }
  .app-frame      { height: 55vh; min-height: 280px; }
  .app-iframe-mobile-btn { display: inline-flex; }

  /* Karten-Layouts */
  .world-cards-grid  { grid-template-columns: 1fr; padding: 0 0 24px; }
  .topic-grid        { grid-template-columns: 1fr; }
  .book-card         { padding: 14px; }
  .book-card-footer  { flex-wrap: wrap; gap: 8px; }
  .book-card-footer .book-mark-read-btn { width: 100%; justify-content: center; }
  .book-card-header  { flex-wrap: wrap; gap: 4px; }

  /* Lesewelten KPI */
  .lw-dashboard { gap: 8px; }
  .lw-kpi-card  { flex: 1 1 80px; min-width: 80px; }

  /* Search-Results */
  .search-results { position: fixed; left: 0; right: 0; top: var(--header-h); max-height: 50vh; overflow-y: auto; border-radius: 0; z-index: 500; }

  /* Presentation Controls */
  .pres-controls, .conv-controls { padding: 12px 8px 20px; gap: 16px; }
  .pres-dots, .conv-dots         { gap: 8px; }
  .pres-dot                      { width: 10px; height: 10px; }
  .pruefung-step-card { padding: 20px; }
  .pruefung-ampel-emoji { font-size: 52px; }

  /* Wissensbibliothek */
  .wb-grid { grid-template-columns: 1fr; }
  .wb-card { padding: 16px; }

  /* Beratungswelt Area */
  .area-apps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .quick-actions { grid-template-columns: 1fr 1fr; }
  .card-actions { gap: 6px; }
  .page-title { font-size: 20px; }
  .app-detail-actions { flex-wrap: wrap; }
  .btn-primary, .btn-secondary { font-size: 13px; padding: 9px 14px; }
  .lw-tab-btn { font-size: 12px; padding: 8px 10px; }
  .book-filter-bar { gap: 6px; }
  .book-filter-btn { padding: 5px 10px; font-size: 12px; }
}

/* ============================================================
   ACADEMY WORLDS v2.0
   ============================================================ */

/* --- Dashboard World Cards --- */
.world-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 0 24px 32px;
}

.world-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 28px 24px;
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.world-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.world-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.world-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.world-card-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
  flex: 1;
}

.world-card-status {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 99px;
  width: fit-content;
  margin-top: 4px;
}

.world-card-status.aktiv {
  background: rgba(0, 160, 80, 0.12);
  color: #008040;
}

.dark .world-card-status.aktiv {
  background: rgba(0, 200, 100, 0.15);
  color: #00c864;
}

.world-card-status.folgt {
  background: var(--surface-2);
  color: var(--text-3);
}

/* --- Beratungswelt Area Grid --- */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  padding: 0 24px 32px;
}

.area-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px 22px 20px;
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.area-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.area-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.area-card-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  flex: 1;
}

.area-card-arrow {
  margin-top: 16px;
  font-size: 22px;
  color: var(--accent);
  line-height: 1;
}

/* --- Coming Soon Box --- */
.coming-soon-box {
  margin: 0 24px 24px;
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.coming-soon-label {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.5;
  max-width: 440px;
}

.coming-soon-hint {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 99px;
}

@media (max-width: 768px) {
  .world-cards-grid {
    grid-template-columns: 1fr;
    padding: 0 16px 24px;
  }
  .area-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 16px 24px;
  }
  .coming-soon-box {
    margin: 0 16px 16px;
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  .area-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   MODULE ITEMS (area detail + favorites)
   ============================================================ */

.module-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 24px 32px;
}

.module-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}

.module-item-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.type-badge {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid rgba(0,113,227,0.15);
}

.status-badge-active {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(0,160,80,.1);
  color: #008040;
}
.dark .status-badge-active {
  background: rgba(0,200,100,.12);
  color: #00c864;
}

.module-item-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.module-item-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 16px;
}

.module-item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.area-card-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 8px;
}

/* ============================================================
   APP DETAIL VIEW
   ============================================================ */

.app-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.app-detail-meta { flex: 1; min-width: 0; }

.app-detail-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.app-iframe-mobile-btn { display: none; }

.app-frame-wrap {
  margin: 0 24px 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--surface-2);
  min-height: 500px;
}

.app-frame {
  display: block;
  width: 100%;
  height: 72vh;
  min-height: 480px;
  border: none;
}

/* ============================================================
   APP FULLSCREEN OVERLAY
   ============================================================ */

#app-fullscreen-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #000;
  display: flex;
  flex-direction: column;
}

#app-fullscreen-overlay.hidden { display: none !important; }

#app-fullscreen-close {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 1001;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 18px;
  border: 1px solid rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s;
}
#app-fullscreen-close:hover { background: rgba(255,255,255,.15); }

#app-fullscreen-body {
  flex: 1;
  display: flex;
  overflow-y: auto;
}

.app-fullscreen-frame {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   WISSENSBIBLIOTHEK TOPICS
   ============================================================ */

.topic-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  padding: 0 24px 16px;
}

.topic-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
}

.topic-card-top { margin-bottom: 10px; }

.topic-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.topic-card-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
}

.topic-used-in {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.topic-used-tag {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 2px 10px;
  font-size: 11.5px;
  color: var(--text-2);
  font-weight: 500;
}

/* --- Buttons (ensure primary/secondary exist) --- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff;
  font-size: 13.5px; font-weight: 600;
  transition: opacity var(--transition), box-shadow var(--transition);
}
.btn-primary:hover { opacity: .88; box-shadow: var(--shadow); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border);
  font-size: 13.5px; font-weight: 600;
  transition: background var(--transition);
}
.btn-secondary:hover { background: var(--border); }

.fav-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  flex-shrink: 0;
}
.fav-btn svg { width: 18px; height: 18px; }
.fav-btn:hover { background: var(--surface-2); }
.fav-btn.active svg path { fill: #e53e3e; stroke: #e53e3e; }

.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 500; color: var(--accent);
  padding: 6px 0; transition: opacity var(--transition);
}
.back-btn:hover { opacity: .75; }
.back-btn svg { width: 16px; height: 16px; }

@media (max-width: 768px) {
  .module-list  { padding: 0 16px 24px; }
  .app-frame-wrap { margin: 0 16px 24px; }
  .app-frame { height: 60vh; }
  .app-detail-header { flex-direction: column; }
  .app-detail-actions { width: 100%; }
  .topic-list { padding: 0 16px 16px; grid-template-columns: 1fr; }
}

/* ============================================================
   APP CONTENT WRAP (inline module content)
   ============================================================ */

.app-content-wrap {
  padding: 0 24px 40px;
}

.app-fullscreen-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100%;
  padding: 40px 20px;
}

.app-fullscreen-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 32px;
  text-align: center;
}

/* ============================================================
   KONTOMANAGER — Diagram
   ============================================================ */

.km-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
}

.km-income-row { margin-bottom: 8px; }

.km-income-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 99px;
}

.km-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 36px;
}

.km-connector-line {
  width: 2px;
  flex: 1;
  min-height: 16px;
  background: var(--border-strong);
}

.km-connector-label {
  font-size: 11.5px;
  color: var(--text-3);
  font-weight: 500;
  text-align: center;
}

.km-card {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
}

.km-card-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.km-card-body { flex: 1; min-width: 0; }
.km-card-title { font-size: 16px; font-weight: 700; margin-bottom: 3px; }
.km-card-subtitle { font-size: 13px; margin-bottom: 6px; opacity: 0.8; }
.km-card-rule { font-size: 12px; opacity: 0.65; line-height: 1.4; }

.km-card-blue   { background: #e8f4fd; border-color: #90cdf4; color: #1a4a6e; }
.km-card-green  { background: #e8f8ef; border-color: #9ae6b4; color: #1a4a2e; }
.km-card-orange { background: #fef3e2; border-color: #fbd38d; color: #6b3500; }
.km-card-purple { background: #f3e8fd; border-color: #d6bcfa; color: #44207a; }

.km-card-blue   .km-card-num { background: #2b6cb0; }
.km-card-green  .km-card-num { background: #276749; }
.km-card-orange .km-card-num { background: #c05621; }
.km-card-purple .km-card-num { background: #6b21a8; }

.dark .km-card-blue   { background: rgba(43,108,176,0.15); border-color: rgba(43,108,176,0.4); color: #90cdf4; }
.dark .km-card-green  { background: rgba(39,103,73,0.15);  border-color: rgba(39,103,73,0.4);  color: #9ae6b4; }
.dark .km-card-orange { background: rgba(192,86,33,0.15);  border-color: rgba(192,86,33,0.4);  color: #fbd38d; }
.dark .km-card-purple { background: rgba(107,33,168,0.15); border-color: rgba(107,33,168,0.4); color: #d6bcfa; }

/* ============================================================
   KONTOMANAGER — Präsentation Slides
   ============================================================ */

.km-slide { max-width: 640px; width: 100%; animation: slideIn 0.25s ease; }

.km-slide-title { text-align: center; padding: 40px 20px; }

.km-slide-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.km-slide-headline {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 20px;
}

.km-slide-lead {
  font-size: 18px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.km-slide-sub { font-size: 15px; color: var(--text-2); line-height: 1.6; }

.km-slide-step {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.km-slide-title-sm {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.25;
}

.km-slide-card {
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 20px;
  border: 2px solid transparent;
}

.km-slide-card-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.km-slide-card-body { flex: 1; }
.km-slide-card-title { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.km-slide-card-desc  { font-size: 14px; opacity: 0.8; }

.km-slide-blue   { background: #e8f4fd; border-color: #90cdf4; color: #1a4a6e; }
.km-slide-green  { background: #e8f8ef; border-color: #9ae6b4; color: #1a4a2e; }
.km-slide-orange { background: #fef3e2; border-color: #fbd38d; color: #6b3500; }
.km-slide-purple { background: #f3e8fd; border-color: #d6bcfa; color: #44207a; }

.km-slide-blue   .km-slide-card-num { background: #2b6cb0; }
.km-slide-green  .km-slide-card-num { background: #276749; }
.km-slide-orange .km-slide-card-num { background: #c05621; }
.km-slide-purple .km-slide-card-num { background: #6b21a8; }

.dark .km-slide-blue   { background: rgba(43,108,176,0.15); border-color: rgba(43,108,176,0.4); color: #90cdf4; }
.dark .km-slide-green  { background: rgba(39,103,73,0.15);  border-color: rgba(39,103,73,0.4);  color: #9ae6b4; }
.dark .km-slide-orange { background: rgba(192,86,33,0.15);  border-color: rgba(192,86,33,0.4);  color: #fbd38d; }
.dark .km-slide-purple { background: rgba(107,33,168,0.15); border-color: rgba(107,33,168,0.4); color: #d6bcfa; }

.km-slide-points { display: flex; flex-direction: column; gap: 10px; }

.km-slide-point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
  padding: 10px 14px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
}

.km-slide-point::before {
  content: '→';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.km-problem-box {
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
}

.km-problem-account {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.km-problem-name { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.km-problem-desc { font-size: 13px; color: var(--text-2); line-height: 1.4; }
.km-problem-points { display: flex; flex-direction: column; gap: 8px; }

.km-problem-point {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
}

.km-problem-dot {
  width: 8px;
  height: 8px;
  background: #e53e3e;
  border-radius: 50%;
  flex-shrink: 0;
}

.km-slide-overview { text-align: center; }

.km-slide-diagram-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 20px 0;
}

.km-mini-row { width: 100%; max-width: 320px; }

.km-mini-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid transparent;
}

.km-mini-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.km-mini-blue   { background: #e8f4fd; border-color: #90cdf4; color: #2b6cb0; }
.km-mini-green  { background: #e8f8ef; border-color: #9ae6b4; color: #276749; }
.km-mini-orange { background: #fef3e2; border-color: #fbd38d; color: #c05621; }
.km-mini-purple { background: #f3e8fd; border-color: #d6bcfa; color: #6b21a8; }

.dark .km-mini-blue   { background: rgba(43,108,176,0.15); border-color: rgba(43,108,176,0.4); color: #90cdf4; }
.dark .km-mini-green  { background: rgba(39,103,73,0.15);  border-color: rgba(39,103,73,0.4);  color: #9ae6b4; }
.dark .km-mini-orange { background: rgba(192,86,33,0.15);  border-color: rgba(192,86,33,0.4);  color: #fbd38d; }
.dark .km-mini-purple { background: rgba(107,33,168,0.15); border-color: rgba(107,33,168,0.4); color: #d6bcfa; }

.km-mini-arrow { font-size: 13px; color: var(--text-3); margin: 2px 0; }

.km-mini-num { background: currentColor; color: #fff; }
.km-mini-blue   .km-mini-num { background: #2b6cb0; }
.km-mini-green  .km-mini-num { background: #276749; }
.km-mini-orange .km-mini-num { background: #c05621; }
.km-mini-purple .km-mini-num { background: #6b21a8; }

.km-slide-bigpoint {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-2);
  font-style: italic;
  line-height: 1.6;
  padding: 20px 24px;
  background: var(--accent-light);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,113,227,0.15);
  margin-top: 8px;
}

.topic-formula {
  font-size: 13px;
  font-weight: 600;
  font-family: monospace;
  background: var(--accent-light);
  color: var(--accent);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin: 10px 0 6px;
  border: 1px solid rgba(0,113,227,0.15);
}

.topic-values {
  font-size: 11.5px;
  color: var(--text-3);
  margin-bottom: 8px;
}

.topic-example {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.5;
  padding: 8px 12px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  margin-top: 6px;
}

.topic-note {
  font-size: 12.5px;
  color: var(--text-2);
  font-style: italic;
  line-height: 1.5;
  padding: 8px 12px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,113,227,0.12);
  margin-top: 10px;
}

/* ============================================================
   WISSENSBIBLIOTHEK — Typ-Badge-Varianten
   ============================================================ */

.type-badge--berechnung    { background: var(--accent-light); color: var(--accent); border-color: rgba(0,113,227,0.2); }
.type-badge--modell        { background: #f3e8fd; color: #6b21a8; border-color: #d6bcfa; }
.type-badge--strategie     { background: #e8f8ef; color: #276749; border-color: #9ae6b4; }
.type-badge--steuerlogik   { background: #fef3e2; color: #c05621; border-color: #fbd38d; }
.type-badge--gesetz        { background: #fef0f0; color: #c53030; border-color: #fc8181; }
.type-badge--fachwissen    { background: var(--surface-2); color: var(--text-2); border-color: var(--border); }
.type-badge--gespraechwissen { background: #e6fffa; color: #276c6c; border-color: #81e6d9; }

.dark .type-badge--modell        { background: rgba(107,33,168,0.15); color: #d6bcfa; border-color: rgba(107,33,168,0.4); }
.dark .type-badge--strategie     { background: rgba(39,103,73,0.15);  color: #9ae6b4; border-color: rgba(39,103,73,0.4);  }
.dark .type-badge--steuerlogik   { background: rgba(192,86,33,0.15);  color: #fbd38d; border-color: rgba(192,86,33,0.4);  }
.dark .type-badge--gesetz        { background: rgba(197,48,48,0.15);  color: #fc8181; border-color: rgba(197,48,48,0.4);  }
.dark .type-badge--gespraechwissen { background: rgba(39,108,108,0.15); color: #81e6d9; border-color: rgba(39,108,108,0.4); }

/* ============================================================
   WISSENSBIBLIOTHEK — Karten-Footer
   ============================================================ */

.topic-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.topic-card-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.topic-worlds {
  font-size: 11.5px;
  color: var(--text-3);
}

.topic-open-btn {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid rgba(0,113,227,0.2);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.topic-open-btn:hover { background: rgba(0,113,227,0.12); }

/* ============================================================
   WISSENSBIBLIOTHEK — Detailseite
   ============================================================ */

.topic-detail-wrap {
  padding: 0 24px 40px;
  max-width: 760px;
}

.topic-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  background: none;
  border: none;
  padding: 20px 0 8px;
  cursor: pointer;
}
.topic-detail-back:hover { color: var(--accent); }

.topic-detail-header {
  margin: 12px 0 28px;
}

.topic-detail-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin: 10px 0 8px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.topic-detail-lead {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
}

.topic-detail-body {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.topic-detail-section {
  margin-bottom: 24px;
}

.topic-detail-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}

.topic-detail-text {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.65;
  margin: 0;
}

.topic-detail-footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============================================================
   WISSENSBIBLIOTHEK — Schichten-Karten
   ============================================================ */

.topic-layers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.topic-layer {
  border-radius: var(--radius);
  padding: 12px 14px;
  border: 1.5px solid transparent;
}

.topic-layer-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.topic-layer-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.topic-layer-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
}

.topic-layer-subtitle {
  font-size: 11.5px;
  opacity: 0.7;
  margin-top: 1px;
}

.topic-layer-products {
  list-style: none;
  padding: 0;
  margin: 0 0 8px 38px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.topic-layer-products li {
  font-size: 12.5px;
  line-height: 1.4;
  padding-left: 10px;
  position: relative;
}

.topic-layer-products li::before {
  content: '·';
  position: absolute;
  left: 0;
  opacity: 0.55;
  font-weight: 700;
}

.topic-layer-steuer {
  font-size: 11px;
  opacity: 0.65;
  margin-left: 38px;
  line-height: 1.45;
  font-style: italic;
}

.topic-layer-blue   { background: #e8f4fd; border-color: #90cdf4; color: #1a4a6e; }
.topic-layer-green  { background: #e8f8ef; border-color: #9ae6b4; color: #1a4a2e; }
.topic-layer-purple { background: #f3e8fd; border-color: #d6bcfa; color: #44207a; }

.topic-layer-blue   .topic-layer-num { background: #2b6cb0; }
.topic-layer-green  .topic-layer-num { background: #276749; }
.topic-layer-purple .topic-layer-num { background: #6b21a8; }

.dark .topic-layer-blue   { background: rgba(43,108,176,0.15); border-color: rgba(43,108,176,0.4); color: #90cdf4; }
.dark .topic-layer-green  { background: rgba(39,103,73,0.15);  border-color: rgba(39,103,73,0.4);  color: #9ae6b4; }
.dark .topic-layer-purple { background: rgba(107,33,168,0.15); border-color: rgba(107,33,168,0.4); color: #d6bcfa; }

/* ============================================================
   PERSÖNLICHKEITSWELT — Ressourcen-Karte (Startseite)
   ============================================================ */

.pw-resource-section {
  padding: 0 24px 40px;
}

.pw-resource-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  max-width: 480px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pw-resource-card:hover {
  border-color: rgba(0,113,227,0.35);
  box-shadow: 0 2px 12px rgba(0,113,227,0.07);
}

.pw-resource-card-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 14px;
}

.pw-resource-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.pw-resource-card-desc {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 12px;
}

.pw-resource-card-meta {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 20px;
}

.pw-resource-card-footer {
  display: flex;
  justify-content: flex-end;
}

.pw-resource-open-btn {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid rgba(0,113,227,0.2);
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  cursor: pointer;
  transition: background 0.15s;
}
.pw-resource-open-btn:hover { background: rgba(0,113,227,0.12); }

/* ============================================================
   PERSÖNLICHKEITSWELT — Kompakte Bücherliste
   ============================================================ */

.book-list-count {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 10px;
}

.book-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.book-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s;
}
.book-list-item:hover { border-color: rgba(0,113,227,0.3); }

.book-list-body {
  flex: 1;
  min-width: 0;
}

.book-list-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-list-author {
  font-size: 12.5px;
  color: var(--text-2);
  margin-bottom: 6px;
}

.book-list-meta {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
}

.book-read-indicator {
  font-size: 11px;
  font-weight: 600;
  color: #276749;
}
.dark .book-read-indicator { color: #9ae6b4; }

.book-list-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.book-list-read-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.book-list-read-btn.read {
  background: #e8f8ef;
  color: #276749;
  border-color: #9ae6b4;
}
.dark .book-list-read-btn.read {
  background: rgba(39,103,73,0.15);
  color: #9ae6b4;
  border-color: rgba(39,103,73,0.4);
}

.book-list-res-btn {
  padding: 5px 8px;
}

/* ============================================================
   PERSÖNLICHKEITSWELT — Sektion (legacy)
   ============================================================ */

.pw-section {
  padding: 0 24px 40px;
}

.pw-section-header {
  margin-bottom: 20px;
}

.pw-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.pw-section-sub {
  font-size: 13.5px;
  color: var(--text-3);
  line-height: 1.5;
}

/* ============================================================
   LESEWELTEN — Dashboard + Tabs
   ============================================================ */

.lw-wrap {
  padding: 0 24px 48px;
  max-width: 960px;
}

.lw-dashboard {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.lw-kpi-card {
  flex: 1;
  min-width: 120px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.lw-kpi-value {
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 5px;
}

.lw-kpi-label {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.lw-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}

.lw-tab-btn {
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s, border-color 0.15s;
}
.lw-tab-btn.active  { color: var(--accent); border-bottom-color: var(--accent); }
.lw-tab-btn:hover:not(.active) { color: var(--text); }

.lw-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text-3);
}
.lw-tab-btn.active .lw-tab-count {
  background: var(--accent-light);
  color: var(--accent);
}

/* ============================================================
   LESEWELTEN — Buchkarten-Erweiterungen
   ============================================================ */

.book-card-why {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.book-card-why-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 5px;
}

.book-card-why-text {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
}

.book-card-resources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 12px;
}

.book-mark-read-btn {
  width: 100%;
  margin-top: 14px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid rgba(39,103,73,0.3);
  background: rgba(39,103,73,0.08);
  color: #276749;
  transition: background 0.15s;
}
.book-mark-read-btn:hover { background: rgba(39,103,73,0.15); }
.dark .book-mark-read-btn {
  color: #9ae6b4;
  border-color: rgba(39,103,73,0.35);
  background: rgba(39,103,73,0.12);
}

.book-gelesen-badge {
  font-size: 11.5px;
  font-weight: 600;
  background: #e8f8ef;
  color: #276749;
  border: 1px solid #9ae6b4;
  border-radius: 4px;
  padding: 2px 8px;
}
.dark .book-gelesen-badge {
  background: rgba(39,103,73,0.15);
  color: #9ae6b4;
  border-color: rgba(39,103,73,0.4);
}

.book-read-date {
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 10px;
}

.book-fav-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-3);
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.book-fav-btn.active {
  color: #d97706;
  background: #fef3c7;
  border-color: #fbbf24;
}
.dark .book-fav-btn.active {
  background: rgba(217,119,6,0.15);
  color: #fbbf24;
  border-color: rgba(251,191,36,0.35);
}

.book-mark-unread-btn {
  width: 100%;
  margin-top: 10px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-3);
  transition: background 0.15s, color 0.15s;
}
.book-mark-unread-btn:hover { color: var(--text-2); }

/* ============================================================
   BÜCHER — Filter-Chips
   ============================================================ */

.book-search-wrap {
  margin-bottom: 12px;
}
.book-search-input {
  width: 100%;
  padding: 9px 14px;
  font-size: 14px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.book-search-input:focus { border-color: var(--accent); }

.book-top5-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: #fef9e7;
  color: #b7791f;
  border: 1px solid #f6d860;
  border-radius: 4px;
  padding: 2px 7px;
  margin-bottom: 6px;
}
.dark .book-top5-badge {
  background: rgba(183,121,31,0.15);
  color: #f6d860;
  border-color: rgba(246,216,96,0.3);
}

.book-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.book-filter-chip {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 5px 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.book-filter-chip:hover {
  background: var(--surface);
  border-color: var(--border-strong);
}

.book-filter-chip.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ============================================================
   BÜCHER — Karten-Grid
   ============================================================ */

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.book-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.book-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.book-category-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 2px 10px;
  white-space: nowrap;
}

.book-status-badge {
  font-size: 11px;
  font-weight: 700;
  border-radius: 99px;
  padding: 2px 10px;
  white-space: nowrap;
}

.book-status-pflicht     { background: #fef0f0; color: #c53030; border: 1px solid #fc8181; }
.book-status-empfehlung  { background: var(--accent-light); color: var(--accent); border: 1px solid rgba(0,113,227,0.2); }
.book-status-inspiration { background: #e8f8ef; color: #276749; border: 1px solid #9ae6b4; }

.dark .book-status-pflicht     { background: rgba(197,48,48,0.15); color: #fc8181; border-color: rgba(197,48,48,0.4); }
.dark .book-status-empfehlung  { background: rgba(0,113,227,0.12); border-color: rgba(0,113,227,0.3); }
.dark .book-status-inspiration { background: rgba(39,103,73,0.15); color: #9ae6b4; border-color: rgba(39,103,73,0.4); }

.book-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
  line-height: 1.3;
}

.book-card-author {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 8px;
}

.book-card-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  flex: 1;
}

.book-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.book-read-btn {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  background: none;
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 4px 12px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.book-read-btn.read {
  color: #276749;
  border-color: #9ae6b4;
  background: #e8f8ef;
}

.dark .book-read-btn.read {
  background: rgba(39,103,73,0.15);
  color: #9ae6b4;
  border-color: rgba(39,103,73,0.4);
}

.book-read-btn--lg {
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  background: var(--surface-2);
  color: var(--text-2);
  transition: background 0.15s, color 0.15s;
}

.book-read-btn--lg.read {
  background: #e8f8ef;
  color: #276749;
  border-color: #9ae6b4;
}

.dark .book-read-btn--lg.read {
  background: rgba(39,103,73,0.15);
  color: #9ae6b4;
  border-color: rgba(39,103,73,0.4);
}

/* ============================================================
   BÜCHER — Resource-Buttons
   ============================================================ */

.book-resources-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.book-resource-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.book-resource-btn:hover {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.book-resource-btn--amazon {
  color: #b45309;
  background: #fffbeb;
  border-color: #fcd34d;
}
.book-resource-btn--amazon:hover {
  background: #fef3c7;
  border-color: #f59e0b;
}

.book-resource-btn--audible {
  color: #f59e0b;
  background: #fffbeb;
  border-color: #fcd34d;
}
.book-resource-btn--audible:hover {
  background: #fef3c7;
  border-color: #f59e0b;
}

.book-resource-btn--youtube {
  color: #c53030;
  background: #fff5f5;
  border-color: #feb2b2;
}
.book-resource-btn--youtube:hover {
  background: #fed7d7;
  border-color: #fc8181;
}

.book-resource-btn--summary {
  color: var(--accent);
  background: var(--accent-light);
  border-color: rgba(0,113,227,0.2);
}
.book-resource-btn--summary:hover {
  background: rgba(0,113,227,0.1);
  border-color: rgba(0,113,227,0.35);
}

.dark .book-resource-btn--amazon,
.dark .book-resource-btn--audible {
  color: #fcd34d;
  background: rgba(245,158,11,0.1);
  border-color: rgba(245,158,11,0.3);
}

.dark .book-resource-btn--youtube {
  color: #fc8181;
  background: rgba(197,48,48,0.1);
  border-color: rgba(197,48,48,0.3);
}

@media (max-width: 768px) {
  .km-slide-headline  { font-size: 32px; }
  .km-slide-title-sm  { font-size: 20px; }
  .km-slide-point     { font-size: 13.5px; }
  .app-content-wrap   { padding: 0 16px 32px; }
  .topic-detail-wrap  { padding: 0 16px 32px; }
  .topic-detail-title { font-size: 22px; }
  .topic-card-footer     { flex-direction: column; align-items: flex-start; }
  .topic-open-btn        { align-self: flex-end; }
  .pw-section            { padding: 0 16px 32px; }
  .pw-resource-section   { padding: 0 16px 32px; }
  .lw-wrap               { padding: 0 16px 40px; }
  .lw-kpi-card           { min-width: 90px; padding: 12px 14px; }
  .lw-kpi-value          { font-size: 24px; }
  .lw-tab-btn            { padding: 10px 14px; font-size: 13px; }
  .pw-resource-card      { max-width: 100%; }
  .book-grid             { grid-template-columns: 1fr; }
  .book-filter-bar       { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .book-list-item        { flex-wrap: wrap; }
  .book-list-title       { white-space: normal; }
  .book-list-actions     { width: 100%; justify-content: flex-start; margin-top: 4px; }

  /* Touch-Targets */
  .book-mark-read-btn, .book-mark-unread-btn, .book-fav-btn { min-height: 44px; }
  #pres-prev-btn, #pres-next-btn,
  #conv-prev-btn, #conv-next-btn { min-height: 52px; min-width: 52px; }

  /* Iframe auf Mobile */
  .app-frame-wrap { margin: 0 0 16px; border-radius: 0; min-height: 0; }
  .app-frame      { height: 55vh; min-height: 280px; }
  .app-iframe-mobile-btn { display: inline-flex; }

  /* Karten + Badges */
  .book-card-footer .book-mark-read-btn { width: 100%; justify-content: center; }
  .book-card-header  { flex-wrap: wrap; gap: 4px; }
  .lw-kpi-card       { flex: 1 1 80px; min-width: 80px; }
  .lw-dashboard      { gap: 8px; }

  /* Presentation Controls */
  .pres-controls, .conv-controls { padding: 12px 8px 20px; gap: 16px; }
  .pres-dots, .conv-dots         { gap: 8px; }
  .pres-dot                      { width: 10px; height: 10px; }

  /* Search-Results */
  .search-results { position: fixed; left: 0; right: 0; top: var(--header-h); max-height: 50vh; overflow-y: auto; border-radius: 0; z-index: 500; }
}

/* ============================================================
   390px (iPhone 12/13/14/15 Standard)
   ============================================================ */
@media (max-width: 390px) {
  .view       { padding: 12px; }
  .lw-wrap    { padding: 0 12px 40px; }
  .pw-section { padding: 0 12px 24px; }
  .lw-kpi-value { font-size: 20px; }
  .lw-kpi-label { font-size: 11px; }
  .lw-kpi-card  { padding: 10px; }
  .dashboard-welcome h1 { font-size: 18px; }
  .book-search-input { font-size: 16px; }
  .empf-search       { font-size: 16px; }
  .search-input      { font-size: 16px; }
  .book-card-title   { font-size: 14px; }
  .pres-slide-title  { font-size: 22px; }
  .pres-slide-body   { font-size: 14px; }
  .world-card        { padding: 20px 16px; }
}

/* ============================================================
   INHALTSPRÜFUNG
   ============================================================ */

/* Start-Screen */
.pruefung-start-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  max-width: 540px;
  margin: 0 auto 32px;
  box-shadow: var(--shadow-sm);
}
.pruefung-start-icon { margin-bottom: 16px; }
.pruefung-start-title { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.pruefung-start-desc  { font-size: 14px; color: var(--text-2); line-height: 1.6; margin-bottom: 16px; }
.pruefung-start-meta  { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: var(--text-3); margin-bottom: 24px; }
.pruefung-start-btn   { width: 100%; max-width: 280px; padding: 14px; font-size: 15px; }

/* Progress */
.pruefung-progress-wrap {
  max-width: 540px; margin: 0 auto 20px;
  display: flex; align-items: center; gap: 12px;
}
.pruefung-progress-bar {
  flex: 1; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden;
}
.pruefung-progress-fill {
  height: 100%; background: var(--accent); border-radius: 2px;
  transition: width 0.3s ease;
}
.pruefung-progress-label { font-size: 12px; color: var(--text-3); white-space: nowrap; }

/* Step Card */
.pruefung-step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 540px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
.pruefung-step-num   { font-size: 11px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.pruefung-step-label { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 6px; line-height: 1.35; }
.pruefung-step-sub   { font-size: 12px; color: var(--text-3); margin-bottom: 20px; }
.pruefung-step-body  { margin: 20px 0; }
.pruefung-step-nav   { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; }
.pruefung-step-nav .btn-primary,
.pruefung-step-nav .btn-secondary { flex: 1; text-align: center; justify-content: center; }

/* Text Inputs */
.pruefung-text-input {
  width: 100%; padding: 12px 14px; font-size: 16px;
  background: var(--surface-2); color: var(--text);
  border: 1.5px solid var(--border); border-radius: var(--radius);
  outline: none; transition: border-color 0.2s;
  font-family: inherit;
}
.pruefung-text-input:focus { border-color: var(--accent); }
.pruefung-textarea { resize: vertical; min-height: 100px; }

/* Options (single + multi) */
.pruefung-options {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.pruefung-option {
  padding: 10px 16px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  min-height: 44px;
  display: inline-flex; align-items: center;
}
.pruefung-option:hover { border-color: var(--accent); color: var(--text); }
.pruefung-option.selected {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.pruefung-options:not(.multi) .pruefung-option { flex: 1 1 auto; }

/* Disabled next button */
.btn-primary.disabled { opacity: 0.4; cursor: not-allowed; }

/* Result Card */
.pruefung-result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 540px;
  margin: 0 auto 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

/* Ampel */
.pruefung-ampel { margin-bottom: 16px; }
.pruefung-ampel-emoji { font-size: 64px; line-height: 1; display: block; margin-bottom: 8px; }
.pruefung-ampel-label {
  display: inline-block;
  font-size: 13px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 4px 14px; border-radius: 20px;
}
.ampel-green .pruefung-ampel-label  { background: #dcfce7; color: #15803d; }
.ampel-yellow .pruefung-ampel-label { background: #fef9c3; color: #a16207; }
.ampel-red .pruefung-ampel-label    { background: #fee2e2; color: #b91c1c; }
.dark .ampel-green .pruefung-ampel-label  { background: rgba(21,128,61,0.2);  color: #4ade80; }
.dark .ampel-yellow .pruefung-ampel-label { background: rgba(161,98,7,0.2);   color: #fbbf24; }
.dark .ampel-red .pruefung-ampel-label    { background: rgba(185,28,28,0.2);  color: #f87171; }

.pruefung-result-text {
  font-size: 15px; color: var(--text-2); line-height: 1.6;
  margin: 16px 0 20px;
}

/* Score bar */
.pruefung-score-wrap { margin-bottom: 20px; text-align: left; }
.pruefung-score-bar-bg {
  height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; margin-bottom: 6px;
}
.pruefung-score-bar-fill {
  height: 100%; border-radius: 4px; transition: width 0.5s ease;
}
.ampel-green  .pruefung-score-bar-fill,
.pruefung-score-bar-fill.ampel-green  { background: #22c55e; }
.ampel-yellow .pruefung-score-bar-fill,
.pruefung-score-bar-fill.ampel-yellow { background: #eab308; }
.ampel-red    .pruefung-score-bar-fill,
.pruefung-score-bar-fill.ampel-red    { background: #ef4444; }
.pruefung-score-label { font-size: 13px; color: var(--text-3); }
.pruefung-score-label strong { color: var(--text); }

/* Empfehlung */
.pruefung-empfehlung-box {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px; margin-bottom: 20px; text-align: left;
}
.pruefung-empfehlung-label { font-size: 12px; color: var(--text-3); font-weight: 500; }
.pruefung-empfehlung-value { font-size: 14px; font-weight: 700; color: var(--accent); }

/* Result actions */
.pruefung-result-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.pruefung-result-actions .btn-primary,
.pruefung-result-actions .btn-secondary { flex: 1; justify-content: center; }
.pruefung-saved-hint { font-size: 13px; color: #15803d; align-self: center; flex: 1; }
.dark .pruefung-saved-hint { color: #4ade80; }

/* Summary */
.pruefung-summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  max-width: 540px;
  margin: 0 auto 32px;
}
.pruefung-summary-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.pruefung-summary-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border);
}
.pruefung-summary-row:last-child { border-bottom: none; }
.pruefung-summary-key { font-size: 12px; color: var(--text-3); flex-shrink: 0; max-width: 45%; }
.pruefung-summary-val { font-size: 12px; color: var(--text); text-align: right; word-break: break-word; }

/* Ideen-Speicher */
.pruefung-ideen-section {
  max-width: 540px; margin: 0 auto 32px;
}
.pruefung-ideen-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.pruefung-ideen-title { font-size: 13px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: 0.05em; }
.pruefung-ideen-count {
  font-size: 11px; font-weight: 700; background: var(--accent); color: #fff;
  border-radius: 10px; padding: 1px 7px; min-width: 20px; text-align: center;
}
.pruefung-ideen-list { display: flex; flex-direction: column; gap: 8px; }
.pruefung-idee-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 14px;
}
.pruefung-idee-body { flex: 1; min-width: 0; }
.pruefung-idee-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pruefung-idee-meta { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.pruefung-idee-del {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: transparent; border: 1px solid var(--border); color: var(--text-3);
  font-size: 16px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.15s;
}
.pruefung-idee-del:hover { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; }

/* ============================================================
   VERVIELFÄLTIGER / MIETMULTIPLIKATOR
   ============================================================ */

/* Beispielrechnung */
.vvf-example-box {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px;
}
.vvf-example-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; gap: 12px;
}
.vvf-example-lbl { font-size: 13px; color: var(--text-2); }
.vvf-example-val { font-size: 14px; font-weight: 600; color: var(--text); }
.vvf-example-divider { height: 1px; background: var(--border); margin: 6px 0; }
.vvf-example-result {
  font-size: 17px; font-weight: 800; color: var(--accent);
}
.vvf-example-caption {
  font-size: 12.5px; color: var(--text-3); margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--border); text-align: center;
}

/* Interpretation Ranges */
.vvf-range-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.vvf-range-card {
  border-radius: var(--radius); padding: 14px 16px;
  border: 1px solid transparent;
}
.vvf-range-val { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.vvf-range-txt { font-size: 12px; line-height: 1.45; }

.vvf-green  { background: #f0fdf4; border-color: #bbf7d0; }
.vvf-green  .vvf-range-val { color: #15803d; }
.vvf-green  .vvf-range-txt { color: #166534; }
.vvf-blue   { background: #eff6ff; border-color: #bfdbfe; }
.vvf-blue   .vvf-range-val { color: #1d4ed8; }
.vvf-blue   .vvf-range-txt { color: #1e40af; }
.vvf-yellow { background: #fefce8; border-color: #fef08a; }
.vvf-yellow .vvf-range-val { color: #a16207; }
.vvf-yellow .vvf-range-txt { color: #854d0e; }
.vvf-red    { background: #fff7ed; border-color: #fed7aa; }
.vvf-red    .vvf-range-val { color: #c2410c; }
.vvf-red    .vvf-range-txt { color: #9a3412; }

.dark .vvf-green  { background: rgba(21,128,61,0.12); border-color: rgba(21,128,61,0.3); }
.dark .vvf-green  .vvf-range-val { color: #4ade80; }
.dark .vvf-green  .vvf-range-txt { color: #86efac; }
.dark .vvf-blue   { background: rgba(29,78,216,0.12); border-color: rgba(29,78,216,0.3); }
.dark .vvf-blue   .vvf-range-val { color: #93c5fd; }
.dark .vvf-blue   .vvf-range-txt { color: #bfdbfe; }
.dark .vvf-yellow { background: rgba(161,98,7,0.12); border-color: rgba(161,98,7,0.3); }
.dark .vvf-yellow .vvf-range-val { color: #fbbf24; }
.dark .vvf-yellow .vvf-range-txt { color: #fde68a; }
.dark .vvf-red    { background: rgba(194,65,12,0.12); border-color: rgba(194,65,12,0.3); }
.dark .vvf-red    .vvf-range-val { color: #fb923c; }
.dark .vvf-red    .vvf-range-txt { color: #fed7aa; }

/* Warning Box */
.vvf-warning-box {
  background: #fffbeb; border: 1px solid #fde68a;
  border-radius: var(--radius); padding: 16px 18px;
}
.dark .vvf-warning-box { background: rgba(161,98,7,0.1); border-color: rgba(161,98,7,0.3); }
.vvf-warning-title { font-size: 13.5px; font-weight: 700; color: #92400e; margin-bottom: 6px; }
.dark .vvf-warning-title { color: #fbbf24; }
.vvf-warning-text { font-size: 13px; color: #78350f; margin-bottom: 10px; line-height: 1.5; }
.dark .vvf-warning-text { color: #fde68a; }
.vvf-warning-sublabel { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #92400e; margin-bottom: 8px; }
.dark .vvf-warning-sublabel { color: #fbbf24; }
.vvf-not-included { display: flex; flex-wrap: wrap; gap: 6px; }
.vvf-not-tag {
  font-size: 11px; padding: 3px 8px; border-radius: 4px;
  background: #fef3c7; color: #92400e; border: 1px solid #fde68a;
}
.dark .vvf-not-tag { background: rgba(161,98,7,0.15); color: #fde68a; border-color: rgba(161,98,7,0.3); }

/* Rendite Hinweis */
.vvf-rendite-hint {
  margin-top: 12px; font-size: 13px; color: var(--text-2);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 14px; line-height: 1.65;
}

/* Rechner */
.vvf-calc-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
}
.vvf-calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.vvf-calc-field { display: flex; flex-direction: column; gap: 6px; }
.vvf-calc-lbl { font-size: 12px; font-weight: 600; color: var(--text-3); }
.vvf-calc-input {
  width: 100%; padding: 10px 12px; font-size: 16px;
  background: var(--surface); color: var(--text);
  border: 1.5px solid var(--border); border-radius: var(--radius);
  outline: none; transition: border-color 0.2s; font-family: inherit;
}
.vvf-calc-input:focus { border-color: var(--accent); }

.vvf-calc-result {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px;
}
.vvf-result-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; gap: 12px; border-bottom: 1px solid var(--border);
}
.vvf-result-row:last-of-type { border-bottom: none; }
.vvf-result-lbl { font-size: 13px; color: var(--text-2); }
.vvf-result-val { font-size: 16px; font-weight: 800; color: var(--text); }
.vvf-result-ampel-wrap { padding-top: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vvf-ampel { font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 20px; }
.vvf-ampel-g { background: #dcfce7; color: #15803d; }
.vvf-ampel-y { background: #fef9c3; color: #a16207; }
.vvf-ampel-r { background: #fee2e2; color: #b91c1c; }
.dark .vvf-ampel-g { background: rgba(21,128,61,0.2);  color: #4ade80; }
.dark .vvf-ampel-y { background: rgba(161,98,7,0.2);   color: #fbbf24; }
.dark .vvf-ampel-r { background: rgba(185,28,28,0.2);  color: #f87171; }
.vvf-ampel-hint { font-size: 12px; color: var(--text-3); }

.vvf-calc-hint { font-size: 11.5px; color: var(--text-3); margin: 0; line-height: 1.5; }

.vvf-calc-sub      { display: block; font-size: 11.5px; color: var(--accent); margin-top: 3px; }
.vvf-calc-optional { font-size: 11px; color: var(--text-3); font-weight: 400; }

.vvf-nk-toggle-row   { display: flex; align-items: center; gap: 8px; margin: 10px 0 6px; cursor: pointer; }
.vvf-nk-checkbox     { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }
.vvf-nk-toggle-label { font-size: 13px; color: var(--text-2); }

.vvf-nk-mode-btn     { background: none; border: none; color: var(--accent); font-size: 12px; cursor: pointer; padding: 4px 0 8px; display: block; }
.vvf-nk-mode-btn:hover { text-decoration: underline; }

.vvf-nk-detail-grid      { background: var(--bg); border-radius: 10px; padding: 10px 12px; border: 1px solid var(--border); margin-bottom: 4px; }
.vvf-nk-detail-row       { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--border); }
.vvf-nk-detail-row:last-child { border-bottom: none; }
.vvf-nk-detail-lbl       { font-size: 12.5px; color: var(--text-2); }
.vvf-nk-detail-hint      { display: block; font-size: 10.5px; color: var(--text-3); font-weight: 400; }
.vvf-nk-detail-inp-wrap  { display: flex; align-items: center; gap: 3px; }
.vvf-nk-detail-input     { width: 52px; padding: 4px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); font-size: 12.5px; text-align: right; }
.vvf-nk-pct-sign         { font-size: 12px; color: var(--text-3); }
.vvf-nk-detail-eur       { font-size: 12px; color: var(--text-2); text-align: right; min-width: 72px; }
.vvf-nk-detail-total-row { background: var(--surface-2, var(--surface)); border-radius: 6px; padding: 5px 4px; }
.vvf-nk-total-pct        { font-size: 12.5px; font-weight: 600; color: var(--accent); }
.vvf-nk-total-eur        { font-weight: 600; color: var(--text); }

.vvf-nk-breakdown    { background: var(--bg); border-radius: 8px; padding: 10px 12px; margin: 8px 0; border: 1px solid var(--border); }
.vvf-nk-row          { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-2); padding: 3px 0; }
.vvf-nk-row-total    { font-weight: 600; color: var(--text); border-top: 1px solid var(--border); margin-top: 4px; padding-top: 6px; }

.vvf-region-box      { background: var(--surface); border-radius: 10px; padding: 14px; border: 1px solid var(--border); }
.vvf-region-row      { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border); }
.vvf-region-row:last-of-type { border-bottom: none; }
.vvf-region-lbl      { font-size: 13px; color: var(--text-2); }
.vvf-region-val      { font-size: 13px; font-weight: 600; color: var(--accent); }
.vvf-region-hint     { font-size: 11.5px; color: var(--text-3); margin-top: 8px; margin-bottom: 0; }

.vvf-gespraech-box   { background: var(--surface); border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; padding: 14px 16px; }
.vvf-gespraech-text  { font-size: 13.5px; color: var(--text-2); line-height: 1.6; margin: 0; font-style: italic; }

/* ============================================================
   FFG SELBSTEINSCHÄTZUNG
   ============================================================ */

:root {
  --ffg-green:  #16a34a;
  --ffg-yellow: #d97706;
  --ffg-red:    #dc2626;
}
.dark {
  --ffg-green:  #4ade80;
  --ffg-yellow: #fbbf24;
  --ffg-red:    #f87171;
}

/* Score strip */
.ffg-score-strip     { background: var(--surface); border-radius: 14px; padding: 14px 20px; border: 1px solid var(--border); display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.ffg-summary-score   { font-size: 36px; font-weight: 700; line-height: 1; flex-shrink: 0; }
.ffg-score-strip > div:nth-child(2) { flex: 1; }
.ffg-summary-label   { font-size: 11px; color: var(--text-3); margin-bottom: 5px; }
.ffg-summary-bar-track { background: var(--border); border-radius: 4px; height: 6px; overflow: hidden; }
.ffg-summary-bar     { height: 100%; border-radius: 4px; transition: width 0.3s ease, background 0.3s ease; }

/* Radar chart accordion */
.ffg-chart-section         { background: var(--surface); border-radius: 14px; border: 1px solid var(--border); overflow: hidden; margin-bottom: 14px; }
.ffg-chart-toggle          { width: 100%; display: flex; align-items: center; gap: 10px; padding: 13px 16px; background: none; border: none; cursor: pointer; text-align: left; }
.ffg-chart-toggle:hover    { background: var(--surface-2, rgba(0,0,0,0.03)); }
.ffg-chart-toggle-name     { flex: 1; font-size: 13.5px; font-weight: 600; color: var(--text); }
.ffg-chart-body            { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.ffg-chart-section--open .ffg-chart-body  { max-height: 800px; }
.ffg-chart-section--open .ffg-chevron     { transform: rotate(180deg); }
.ffg-chart-wrap            { padding: 6px 6px 8px; max-width: 700px; margin: 0 auto; }

/* Accordion groups */
.ffg-groups-wrap     { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.ffg-group           { background: var(--surface); border-radius: 14px; border: 1px solid var(--border); overflow: hidden; }

.ffg-group-toggle    { width: 100%; display: flex; align-items: center; gap: 10px; padding: 13px 16px; background: none; border: none; cursor: pointer; text-align: left; }
.ffg-group-toggle:hover { background: var(--surface-2, rgba(0,0,0,0.03)); }
.ffg-group-toggle-name { flex: 1; font-size: 13.5px; font-weight: 600; color: var(--text); }
.ffg-group-avg       { font-size: 13px; font-weight: 700; flex-shrink: 0; }
.ffg-chevron         { flex-shrink: 0; color: var(--text-3); transition: transform 0.25s ease; }
.ffg-group--open .ffg-chevron { transform: rotate(180deg); }

.ffg-group-body      { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0 16px; }
.ffg-group--open .ffg-group-body { max-height: 1200px; padding: 0 16px 14px; }

.ffg-item            { margin-bottom: 16px; }
.ffg-item:last-child { margin-bottom: 0; }
.ffg-item-top        { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.ffg-item-label      { font-size: 13.5px; font-weight: 500; color: var(--text); flex: 1; }
.ffg-item-val        { font-size: 13px; font-weight: 700; flex-shrink: 0; }
.ffg-item-hint       { font-size: 11.5px; color: var(--text-3); margin: 0 0 8px; line-height: 1.4; font-style: italic; }

.ffg-val-green  { color: var(--ffg-green); }
.ffg-val-yellow { color: var(--ffg-yellow); }
.ffg-val-red    { color: var(--ffg-red); }

/* Slider styling */
.ffg-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--ffg-color, var(--accent)) var(--val, 50%), var(--border) 0%);
  outline: none;
  cursor: pointer;
  display: block;
}
.ffg-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ffg-color, var(--accent));
  cursor: pointer;
  border: 2px solid var(--surface);
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.ffg-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ffg-color, var(--accent));
  cursor: pointer;
  border: 2px solid var(--surface);
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.ffg-actions        { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.ffg-btn-reset      { background: none; border: 1px solid var(--border); border-radius: 8px; padding: 8px 16px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.ffg-btn-reset:hover { border-color: var(--ffg-red); color: var(--ffg-red); }
.ffg-autosave-hint  { font-size: 11.5px; color: var(--text-3); }

@media (max-width: 480px) {
  .ffg-score-strip   { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ffg-summary-score { font-size: 30px; }
}

@media (max-width: 480px) {
  .vvf-calc-fields { grid-template-columns: 1fr; }
  .vvf-range-grid  { grid-template-columns: 1fr; }
}

/* ============================================================
   IT-WELT — SYSTEME & ZUGÄNGE
   ============================================================ */

.its-top             { margin-bottom: 16px; }

.its-search-wrap     { position: relative; margin-bottom: 12px; }
.its-search-icon     { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.its-search-inp      { width: 100%; padding: 10px 14px 10px 36px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font-size: 14px; box-sizing: border-box; }
.its-search-inp:focus { outline: none; border-color: var(--accent); }

.its-filters         { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.its-filter-btn      { padding: 5px 14px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 12.5px; cursor: pointer; transition: all 0.15s; }
.its-filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.its-filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 500; }

.its-grid            { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-bottom: 24px; }
.its-empty           { color: var(--text-3); font-size: 13.5px; padding: 24px 0; }

.its-card            { background: var(--surface); border-radius: 14px; border: 1px solid var(--border); overflow: hidden; }
.its-card-head       { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 14px 16px 10px; border-bottom: 1px solid var(--border); }
.its-card-name       { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.its-card-typ        { font-size: 11.5px; color: var(--text-3); }

.its-badge           { flex-shrink: 0; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px; letter-spacing: 0.02em; }
.its-badge-aktiv     { background: rgba(22,163,74,0.12); color: #16a34a; }
.its-badge-aufbau    { background: rgba(59,130,246,0.12); color: #2563eb; }
.its-badge-geplant   { background: rgba(107,114,128,0.12); color: var(--text-3); }
.its-badge-archiviert{ background: rgba(185,28,28,0.1);   color: #dc2626; }
.dark .its-badge-aktiv    { background: rgba(74,222,128,0.15); color: #4ade80; }
.dark .its-badge-aufbau   { background: rgba(96,165,250,0.15); color: #60a5fa; }
.dark .its-badge-archiviert { background: rgba(248,113,113,0.15); color: #f87171; }

.its-card-body       { padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; }
.its-row             { display: flex; gap: 8px; font-size: 12.5px; line-height: 1.4; }
.its-lbl             { flex-shrink: 0; width: 100px; color: var(--text-3); padding-top: 1px; }
.its-val             { flex: 1; color: var(--text-2); word-break: break-word; }
.its-val-pending     { color: var(--text-3); font-style: italic; }
.its-link            { color: var(--accent); text-decoration: none; }
.its-link:hover      { text-decoration: underline; }
.its-row-access      { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--border); }
.its-access-hint     { color: var(--text-3); font-size: 12px; }

.its-edit-btn        { display: block; width: calc(100% - 32px); margin: 0 16px 14px; padding: 7px; background: none; border: 1px solid var(--border); border-radius: 8px; font-size: 12.5px; color: var(--text-2); cursor: pointer; text-align: center; }
.its-edit-btn:hover  { border-color: var(--accent); color: var(--accent); }

.its-edit-form       { padding: 12px 16px 14px; border-top: 1px solid var(--border); background: var(--bg); }
.its-edit-grid       { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.its-edit-field--full { grid-column: 1 / -1; }
.its-edit-lbl        { display: block; font-size: 11.5px; color: var(--text-3); margin-bottom: 4px; }
.its-edit-inp        { width: 100%; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 13px; box-sizing: border-box; font-family: inherit; }
.its-edit-inp:focus  { outline: none; border-color: var(--accent); }
.its-edit-ta         { min-height: 64px; resize: vertical; }
.its-edit-actions    { display: flex; gap: 8px; }
.its-save-btn        { padding: 7px 18px; background: var(--accent); border: none; border-radius: 8px; color: #fff; font-size: 13px; font-weight: 500; cursor: pointer; }
.its-save-btn:hover  { opacity: 0.9; }
.its-cancel-btn      { padding: 7px 14px; background: none; border: 1px solid var(--border); border-radius: 8px; color: var(--text-2); font-size: 13px; cursor: pointer; }

@media (max-width: 600px) {
  .its-grid          { grid-template-columns: 1fr; }
  .its-edit-grid     { grid-template-columns: 1fr; }
  .its-lbl           { width: 86px; }
}

/* ============================================================
   UNFALLVERSICHERUNG — LEISTUNGSFALL PRAXIS
   ============================================================ */

.uv-wrap             { padding: 0 0 32px; }

/* Tabs */
.uv-tabs             { display: flex; gap: 6px; padding: 0 0 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.uv-tabs::-webkit-scrollbar { display: none; }
.uv-tab-btn          { flex-shrink: 0; padding: 7px 14px; border-radius: 20px; border: 1px solid var(--border);
                       background: var(--surface); font-size: 13px; color: var(--text-2); cursor: pointer; transition: background 0.15s, color 0.15s; }
.uv-tab-btn.active   { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 500; }
.uv-tab-panel        { display: none; }
.uv-tab-panel.active { display: block; }

/* Two-column layout */
.uv-layout           { display: grid; grid-template-columns: 1fr 280px; gap: 20px; align-items: start; }
.uv-main             { min-width: 0; }

/* Right visual column */
.uv-visual-col       { position: sticky; top: 16px; }
.uv-visual-panel     { display: none; }
.uv-visual-panel.active { display: block; }

.uv-visual-svg-wrap  { background: var(--surface); border-radius: 16px; border: 1px solid var(--border);
                       padding: 8px; margin-bottom: 12px; aspect-ratio: 1; overflow: hidden; }
.uv-visual-svg-wrap svg { width: 100%; height: 100%; display: block; }

/* Impact box */
.uv-impact-box       { background: var(--surface); border-radius: 14px; border: 1px solid var(--border); padding: 16px; }
.uv-impact-title     { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
                       color: var(--text-3); margin-bottom: 12px; }
.uv-impact-list      { display: flex; flex-direction: column; gap: 8px; }
.uv-impact-row       { display: flex; align-items: center; gap: 8px; }
.uv-impact-badge     { display: inline-block; background: rgba(249,115,22,.12); color: #f97316;
                       border-radius: 6px; padding: 2px 8px; font-size: 11px; font-weight: 600; flex-shrink: 0; white-space: nowrap; }
.uv-impact-dot       { width: 6px; height: 6px; border-radius: 50%; background: #f97316; flex-shrink: 0; }
.uv-impact-text      { font-size: 12.5px; color: var(--text-2); line-height: 1.4; }

@media (max-width: 860px) {
  .uv-layout           { grid-template-columns: 1fr; }
  .uv-visual-col       { position: static; order: -1; }
  .uv-visual-svg-wrap  { aspect-ratio: auto; padding: 16px 24px; }
  .uv-visual-svg-wrap svg { max-height: 160px; width: auto; margin: 0 auto; display: block; }
}

/* Section label */
.uv-section-label    { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
                       color: var(--text-3); margin-bottom: 12px; }

/* Info Grid (Tab 1) */
.uv-info-grid        { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.uv-info-card        { background: var(--surface); border-radius: 12px; border: 1px solid var(--border); padding: 14px 16px; }
.uv-info-card-title  { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.uv-info-card-body   { font-size: 12.5px; color: var(--text-2); line-height: 1.55; }
.uv-frist-badge      { display: inline-block; background: rgba(249,115,22,.12); color: #f97316;
                       border-radius: 6px; padding: 2px 8px; font-size: 11.5px; font-weight: 600; margin-top: 4px; }

/* Timeline (Tab 2 + 3) */
.uv-timeline         { position: relative; padding-left: 30px; }
.uv-timeline::before { content: ''; position: absolute; left: 9px; top: 8px; bottom: 8px;
                       width: 2px; background: var(--border); border-radius: 1px; }
.uv-tl-item          { position: relative; margin-bottom: 22px; }
.uv-tl-item:last-child { margin-bottom: 0; }
.uv-tl-item::before  { content: ''; position: absolute; left: -25px; top: 5px;
                       width: 10px; height: 10px; border-radius: 50%;
                       background: var(--accent); border: 2px solid var(--bg); }
.uv-tl-label         { font-size: 11px; font-weight: 600; color: var(--accent); margin-bottom: 2px; }
.uv-tl-title         { font-size: 13.5px; font-weight: 600; color: var(--text); }
.uv-tl-desc          { font-size: 12px; color: var(--text-2); margin-top: 3px; line-height: 1.45; }

.uv-timeline--case .uv-tl-item::before { background: #f97316; }
.uv-timeline--case .uv-tl-label        { color: #f97316; }

.uv-hint-box         { background: rgba(249,115,22,.07); border: 1px solid rgba(249,115,22,.22);
                       border-radius: 12px; padding: 14px 16px; margin-top: 22px;
                       font-size: 13px; color: var(--text); line-height: 1.55; }

/* Talk Box (Tab 4) */
.uv-talk-box         { display: flex; flex-direction: column; gap: 10px; }
.uv-talk-card        { background: var(--surface); border-radius: 12px; border: 1px solid var(--border);
                       border-left: 3px solid var(--accent); padding: 16px 18px;
                       font-size: 14px; color: var(--text); line-height: 1.65; }

/* Placeholder (Tab 5) */
.uv-placeholder-card  { background: var(--surface); border-radius: 14px; border: 1px dashed var(--border);
                        padding: 36px 24px; text-align: center; }
.uv-placeholder-title { font-size: 16px; font-weight: 600; color: var(--text-2); margin-bottom: 10px; }
.uv-placeholder-list  { font-size: 13px; color: var(--text-3); line-height: 2.2; }

@media (max-width: 600px) {
  .uv-info-grid      { grid-template-columns: 1fr; }
}

/* ============================================================
   KONTOWECHSEL-SERVICE
   ============================================================ */

.ks-wrap              { padding: 0 0 32px; }

.ks-feature-grid      { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 20px; }
.ks-feature-card      { background: var(--surface); border-radius: 12px; border: 1px solid var(--border); padding: 16px; }
.ks-feature-icon      { color: var(--accent); margin-bottom: 10px; }
.ks-feature-title     { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.ks-feature-body      { font-size: 12.5px; color: var(--text-2); line-height: 1.5; }

.ks-talk-box          { background: var(--surface); border-radius: 12px; border: 1px solid var(--border);
                        border-left: 3px solid var(--accent); padding: 16px 18px; margin-bottom: 20px; }
.ks-talk-label        { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
                        color: var(--text-3); margin-bottom: 8px; }
.ks-talk-text         { font-size: 14px; color: var(--text); line-height: 1.65; }

.ks-open-btn          { display: flex; align-items: center; justify-content: center; gap: 8px;
                        background: var(--accent); color: #fff; border-radius: 12px;
                        padding: 14px 20px; font-size: 15px; font-weight: 500;
                        text-decoration: none; transition: opacity 0.15s; }
.ks-open-btn:hover    { opacity: 0.88; }

@media (max-width: 600px) {
  .ks-feature-grid    { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) {
  .ks-feature-grid    { grid-template-columns: 1fr; }
}

/* ============================================================
   AKTIVITÄTS-SYSTEM — DASHBOARD WIDGETS
   ============================================================ */

.act-widgets-grid     { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }

.act-widget           { background: var(--surface); border-radius: 16px; border: 1px solid var(--border);
                        overflow: hidden; display: flex; flex-direction: column; }

.act-widget-header    { display: flex; align-items: center; gap: 8px; padding: 14px 16px 10px;
                        border-bottom: 1px solid var(--border); }
.act-widget-icon      { color: var(--accent); flex-shrink: 0; }
.act-widget-title     { flex: 1; font-size: 12.5px; font-weight: 600; color: var(--text); }
.act-widget-count     { background: var(--accent); color: #fff; border-radius: 10px;
                        font-size: 10.5px; font-weight: 600; padding: 1px 7px; flex-shrink: 0; }

.act-widget-list      { flex: 1; }
.act-item             { display: flex; align-items: center; gap: 10px; padding: 11px 16px;
                        border-bottom: 1px solid var(--border); cursor: pointer;
                        transition: background 0.12s, box-shadow 0.12s;
                        box-shadow: inset 3px 0 0 transparent; }
.act-item:last-child  { border-bottom: none; }
.act-item:hover       { background: var(--surface-2, rgba(0,0,0,0.03)); box-shadow: inset 3px 0 0 var(--accent); }
.dark .act-item:hover { background: rgba(255,255,255,0.04); }
.act-item-main        { flex: 1; min-width: 0; }
.act-item-title       { font-size: 13px; font-weight: 500; color: var(--text);
                        white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-item-meta        { font-size: 11px; color: var(--text-3); margin-top: 1px;
                        white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-item-side        { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.act-date             { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.act-new-badge        { background: #f97316; color: #fff; border-radius: 5px;
                        font-size: 9.5px; font-weight: 700; padding: 1px 6px; letter-spacing: .04em; }
.act-empty            { padding: 20px 16px; font-size: 12.5px; color: var(--text-3); text-align: center; }

/* NEU Badge on module cards */
.module-new-badge     { display: inline-block; background: #f97316; color: #fff;
                        border-radius: 5px; font-size: 9.5px; font-weight: 700;
                        padding: 1px 6px; letter-spacing: .04em; vertical-align: middle; }

/* Sidebar badge */
.nav-item             { position: relative; }
.nav-badge            { position: absolute; top: 6px; right: 8px;
                        background: #f97316; color: #fff; border-radius: 9px;
                        font-size: 10px; font-weight: 700; padding: 1px 5px;
                        line-height: 1.4; pointer-events: none; }

@media (max-width: 900px) {
  .act-widgets-grid   { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .act-widgets-grid   { grid-template-columns: 1fr; }
}

/* ============================================================
   UV EDITORIAL PHOTO PANELS (Visual Column)
   ============================================================ */

/* Hero Photo */
.uv-hero-card { border-radius: 16px; overflow: hidden; margin-bottom: 12px; }
.uv-hero-img-wrap {
  position: relative; aspect-ratio: 4/3;
  background-color: #1a2332; background-size: cover; background-position: center;
  border-radius: 16px; overflow: hidden;
}
.uv-hero-overlay {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 28px 20px 20px;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.3) 60%, transparent 100%);
}
.uv-hero-text { font-size: 17px; font-weight: 300; color: #fff; line-height: 1.35; letter-spacing: -.01em; }
.uv-hero-text strong { font-weight: 700; }

/* Editorial Card */
.uv-editorial-card { background: var(--surface); border-radius: 14px; border: 1px solid var(--border); padding: 16px; }
.uv-editorial-card--tall { padding: 24px; }
.uv-editorial-label {
  font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 12px;
}
.uv-editorial-note { font-size: 11.5px; color: var(--text-3); margin-top: 10px; line-height: 1.45; }
.uv-editorial-footer {
  display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 10px;
  border-top: 1px solid var(--border); font-size: 12px; color: #f97316; font-weight: 500; line-height: 1.4;
}

/* Chip Grid */
.uv-chip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.uv-chip {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg); border-radius: 8px; padding: 7px 8px;
  font-size: 11px; color: var(--text-2); line-height: 1.2;
}
.uv-chip-ico { flex-shrink: 0; width: 16px; height: 16px; }

/* Fristen Stack */
.uv-frist-stack { display: flex; flex-direction: column; gap: 12px; }
.uv-frist-item { display: flex; align-items: center; gap: 14px; }
.uv-frist-num { font-size: 32px; font-weight: 800; color: #f97316; line-height: 1; min-width: 52px; text-align: center; }
.uv-frist-num--sm { font-size: 20px; }
.uv-frist-unit { font-size: 10px; font-weight: 600; text-transform: uppercase; color: var(--text-3); letter-spacing: .05em; margin-top: 2px; }
.uv-frist-desc { font-size: 12.5px; color: var(--text-2); line-height: 1.4; }
.uv-frist-divider { height: 1px; background: var(--border); }

/* Stats Row */
.uv-stat-row { display: flex; gap: 8px; flex-wrap: wrap; }
.uv-stat { flex: 1; min-width: 80px; background: var(--bg); border-radius: 10px; padding: 12px 10px; text-align: center; }
.uv-stat-num { font-size: 22px; font-weight: 800; color: #f97316; line-height: 1; }
.uv-stat-label { font-size: 10.5px; color: var(--text-3); margin-top: 4px; line-height: 1.3; }

/* Q&A List */
.uv-qa-list { display: flex; flex-direction: column; gap: 8px; }
.uv-qa-item {
  background: var(--bg); border-left: 3px solid var(--accent); border-radius: 8px;
  padding: 10px 12px; font-size: 12.5px; color: var(--text-2); line-height: 1.45;
}

/* Calculator Preview */
.uv-calc-preview { text-align: center; }
.uv-calc-display { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 20px 0 16px; }
.uv-calc-symbol { font-size: 48px; font-weight: 800; color: #f97316; line-height: 1; }
.uv-calc-eq { font-size: 28px; font-weight: 300; color: var(--text-3); }
.uv-calc-formula-list { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; text-align: left; }
.uv-calc-line { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-2); padding: 4px 0; }
.uv-calc-var {
  font-family: monospace; font-size: 11px; font-weight: 700;
  background: rgba(249,115,22,.1); color: #f97316;
  border-radius: 4px; padding: 1px 6px;
}
.uv-calc-result {
  border-top: 1px solid var(--border); padding-top: 8px; margin-top: 4px;
  font-weight: 700; color: var(--accent); font-size: 13px;
}

/* ============================================================
   UV ORIENTIERUNGSRECHNER (Tab 5)
   ============================================================ */
.uvr-wrap { display: flex; flex-direction: column; gap: 16px; }

.uvr-header {}
.uvr-title { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.uvr-desc  { font-size: 13px; color: var(--text-2); line-height: 1.5; }

.uvr-input-row { display: flex; flex-direction: column; gap: 6px; }
.uvr-label { font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.uvr-input-wrap {
  display: flex; align-items: center; gap: 0;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden;
  transition: border-color .2s;
}
.uvr-input-wrap:focus-within { border-color: var(--accent); }
.uvr-currency {
  padding: 0 12px; font-size: 15px; font-weight: 600; color: var(--text-3);
  background: var(--bg); border-right: 1px solid var(--border); height: 48px;
  display: flex; align-items: center;
}
.uvr-input {
  flex: 1; padding: 0 14px; font-size: 18px; font-weight: 600; color: var(--text);
  background: transparent; border: none; outline: none; height: 48px; font-family: inherit;
}
.uvr-input::placeholder { color: var(--text-3); font-weight: 400; font-size: 15px; }

.uvr-results {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.uvr-result-card {
  background: var(--surface); border-radius: 14px; border: 1px solid var(--border);
  padding: 14px 16px;
}
.uvr-result-label { font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.uvr-result-value { font-size: 18px; font-weight: 800; color: var(--accent); line-height: 1.1; margin-bottom: 4px; }
.uvr-result-hint  { font-size: 10.5px; color: var(--text-3); }

.uvr-example {
  background: var(--bg); border-radius: 12px; border: 1px solid var(--border); padding: 14px 16px;
}
.uvr-example-label {
  font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: 10px;
}
.uvr-example-grid {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px;
  font-size: 13px; color: var(--text-2);
}
.uvr-example-grid span:nth-child(even) { font-weight: 600; color: var(--text); text-align: right; }

/* Divider + Section Head */
.uvr-divider { height: 1px; background: var(--border); margin: 4px 0; }
.uvr-section-head {}
.uvr-section-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.uvr-section-desc  { font-size: 13px; color: var(--text-2); line-height: 1.5; }

/* IG Slider Row */
.uvr-ig-row { display: flex; flex-direction: column; gap: 8px; }
.uvr-ig-top { display: flex; align-items: center; justify-content: space-between; }
.uvr-ig-num-wrap { display: flex; align-items: center; gap: 4px; }
.uvr-ig-input {
  width: 54px; padding: 4px 8px; font-size: 16px; font-weight: 700; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 8px;
  outline: none; text-align: center; font-family: inherit;
}
.uvr-ig-input:focus { border-color: var(--accent); }
.uvr-pct-sign { font-size: 15px; font-weight: 600; color: var(--text-3); }

.uvr-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 3px;
  background: linear-gradient(to right, var(--accent) 50%, var(--border) 50%);
  outline: none; cursor: pointer;
}
.uvr-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px;
  border-radius: 50%; background: var(--accent);
  border: 3px solid var(--surface); box-shadow: 0 1px 4px rgba(0,0,0,.2); cursor: pointer;
}
.uvr-slider::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: var(--accent);
  border: 3px solid var(--surface); cursor: pointer;
}
.uvr-slider-marks {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--text-3); margin-top: -2px;
}

/* Progression Result */
.uvr-prog-result { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.uvr-prog-card { background: var(--surface); border-radius: 14px; border: 1px solid var(--border); padding: 14px 16px; }
.uvr-prog-card--eur { border-color: var(--accent); background: rgba(0,113,227,.04); }
.uvr-prog-eur { color: var(--accent) !important; }

/* Progression Scale */
.uvr-prog-scale { background: var(--bg); border-radius: 12px; border: 1px solid var(--border); padding: 14px 16px; }
.uvr-scale-grid { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.uvr-scale-row { display: grid; grid-template-columns: 44px 1fr 60px; align-items: center; gap: 10px; }
.uvr-scale-ig { font-size: 11.5px; font-weight: 600; color: var(--text-3); }
.uvr-scale-bar-wrap { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.uvr-scale-bar { display: block; height: 100%; background: var(--accent); border-radius: 3px; opacity: .5; }
.uvr-scale-row--hl .uvr-scale-bar { opacity: 1; }
.uvr-scale-row--hl .uvr-scale-ig  { color: #f97316; }
.uvr-scale-val { font-size: 11.5px; font-weight: 700; color: var(--text); text-align: right; }
.uvr-scale-row--hl .uvr-scale-val { color: #f97316; }

.uvr-hint {
  background: rgba(249,115,22,.07); border: 1px solid rgba(249,115,22,.18);
  border-radius: 12px; padding: 14px 16px;
  font-size: 12px; color: var(--text-2); line-height: 1.6;
}

@media (max-width: 520px) {
  .uvr-results { grid-template-columns: 1fr; }
}

/* ============================================================
   LEISTUNGSFALL SIMULATOR
   ============================================================ */

.lfs-wrap { padding-bottom: 32px; }

/* Two-column layout */
.lfs-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}
.lfs-panel-col { position: sticky; top: 16px; }

/* Input sections */
.lfs-inputs { display: flex; flex-direction: column; gap: 14px; }
.lfs-section {
  background: var(--surface); border-radius: 16px; border: 1px solid var(--border); padding: 20px;
}
.lfs-step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.lfs-step-num {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: #f97316; color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.lfs-step-title { font-size: 15px; font-weight: 700; color: var(--text); }

/* Fields */
.lfs-fields { display: flex; flex-direction: column; gap: 12px; }
.lfs-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lfs-field { display: flex; flex-direction: column; gap: 5px; }
.lfs-label { font-size: 11.5px; font-weight: 600; color: var(--text-3); }
.lfs-optional { font-weight: 400; color: var(--text-3); opacity: .7; }

.lfs-input-wrap {
  display: flex; align-items: center;
  background: var(--bg); border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden;
  transition: border-color .15s;
}
.lfs-input-wrap:focus-within { border-color: #f97316; }
.lfs-unit {
  padding: 0 10px; font-size: 12px; font-weight: 600; color: var(--text-3);
  white-space: nowrap; border-right: 1px solid var(--border); height: 40px;
  display: flex; align-items: center; background: var(--surface);
}
.lfs-input {
  flex: 1; padding: 0 10px; height: 40px; font-size: 15px; font-weight: 600;
  color: var(--text); background: transparent; border: none; outline: none; font-family: inherit;
}
.lfs-input::placeholder { color: var(--text-3); font-weight: 400; font-size: 13px; }

.lfs-select {
  width: 100%; height: 40px; padding: 0 10px; font-size: 14px; font-weight: 600;
  color: var(--text); background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 10px; outline: none; font-family: inherit; cursor: pointer;
  transition: border-color .15s;
}
.lfs-select:focus { border-color: #f97316; }

/* IG Section */
.lfs-ig-wrap { display: flex; flex-direction: column; gap: 12px; }
.lfs-ig-hero { text-align: center; padding: 8px 0 4px; }
.lfs-ig-label { font-size: 11.5px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.lfs-ig-big { font-size: 52px; font-weight: 800; color: #f97316; line-height: 1; letter-spacing: -.02em; }

.lfs-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 3px;
  background: linear-gradient(to right, #f97316 50%, var(--border) 50%);
  outline: none; cursor: pointer;
}
.lfs-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: #f97316; border: 3px solid var(--surface); box-shadow: 0 1px 5px rgba(0,0,0,.2); cursor: pointer;
}
.lfs-slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: #f97316; border: 3px solid var(--surface); cursor: pointer;
}

.lfs-quick-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.lfs-quick-btn {
  flex: 1; min-width: 48px; padding: 7px 6px; border-radius: 20px;
  border: 1.5px solid var(--border); background: var(--bg);
  font-size: 12px; font-weight: 600; color: var(--text-2); cursor: pointer;
  transition: all .15s;
}
.lfs-quick-btn:hover { border-color: #f97316; color: #f97316; }
.lfs-quick-btn--active { background: #f97316; border-color: #f97316; color: #fff; }

/* Results panel */
.lfs-panel {
  background: var(--surface); border-radius: 20px;
  border: 2px solid var(--border); overflow: hidden;
  transition: border-color .3s;
}
.lfs-panel--green  { border-color: #22c55e; }
.lfs-panel--orange { border-color: #f97316; }
.lfs-panel--red    { border-color: #ef4444; }

.lfs-panel-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 40px 24px; text-align: center;
  font-size: 13px; color: var(--text-3); line-height: 1.6;
}

.lfs-panel-result { padding: 0; }

.lfs-res-block { padding: 16px 20px; }
.lfs-res-block--top { padding-top: 20px; }
.lfs-res-divider { height: 1px; background: var(--border); }

.lfs-res-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; }
.lfs-res-row--total { padding-top: 8px; }
.lfs-res-row--gap { padding-bottom: 4px; }
.lfs-res-label { font-size: 12px; color: var(--text-3); }
.lfs-res-val { font-size: 16px; font-weight: 700; color: var(--text); text-align: right; }
.lfs-res-ig { color: #f97316; }
.lfs-res-kapital { font-size: 18px; font-weight: 800; }
.lfs-res-total { font-size: 20px; font-weight: 800; color: var(--text); }
.lfs-res-gap { font-size: 20px; font-weight: 800; }

.lfs-panel--green  .lfs-res-gap { color: #22c55e; }
.lfs-panel--orange .lfs-res-gap { color: #f97316; }
.lfs-panel--red    .lfs-res-gap { color: #ef4444; }

.lfs-res-subrow { display: flex; justify-content: space-between; align-items: center; padding: 2px 0 2px 12px; }
.lfs-res-sublabel { font-size: 11.5px; color: var(--text-3); }
.lfs-res-subval   { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.lfs-subval-warn  { color: #ef4444; }

/* Gesprächsimpuls */
.lfs-impuls {
  margin: 0; padding: 14px 20px 16px;
  background: var(--bg); border-top: 1px solid var(--border);
}
.lfs-impuls-head {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-3); margin-bottom: 6px;
}
.lfs-impuls-text { font-size: 12.5px; color: var(--text-2); line-height: 1.55; font-style: italic; }

.lfs-disclaimer { padding: 10px 20px 14px; font-size: 10.5px; color: var(--text-3); line-height: 1.5; }

/* Mobile */
@media (max-width: 880px) {
  .lfs-layout { grid-template-columns: 1fr; }
  .lfs-panel-col { position: static; }
  .lfs-ig-big { font-size: 40px; }
}
@media (max-width: 480px) {
  .lfs-field-row { grid-template-columns: 1fr; }
  .lfs-quick-btns { gap: 4px; }
  .lfs-quick-btn { font-size: 11px; padding: 6px 4px; }
}

/* Auto-fill Formel-Hint im Label */
.lfs-autofill-hint {
  font-size: 10px; font-weight: 500; color: var(--accent);
  background: rgba(0,113,227,.08); border-radius: 4px;
  padding: 1px 5px; margin-left: 4px; letter-spacing: .01em;
  vertical-align: middle; white-space: nowrap;
}

/* ============================================================
   ARGUMENTATION & GESPRÄCHSFÜHRUNG
   ============================================================ */

.arg-wrap { padding-bottom: 32px; }

/* Hub Grid */
.arg-hub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 0 24px; }

.arg-hub-card {
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 14px;
  padding: 18px 16px; text-align: left; cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  display: flex; flex-direction: column; gap: 6px;
}
.arg-hub-card:hover:not(:disabled) { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--accent); }
.arg-hub-card--soon { opacity: .55; cursor: default; }
.arg-hub-card-icon { font-size: 20px; line-height: 1; }
.arg-hub-card-title { font-size: 14px; font-weight: 700; color: var(--text); }
.arg-hub-card-desc { font-size: 12px; color: var(--text-2); line-height: 1.4; }
.arg-hub-badge { display: inline-block; font-size: 10px; font-weight: 600; border-radius: 20px; padding: 2px 8px; margin-top: 4px; }
.arg-hub-badge--active { background: rgba(0,113,227,.1); color: var(--accent); }
.arg-hub-badge--soon { background: var(--bg); color: var(--text-3); }

/* Back Button */
.arg-back-btn {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px;
  font-size: 13px; color: var(--accent); font-weight: 500; background: none; border: none;
  cursor: pointer; padding: 0;
}
.arg-back-btn:hover { text-decoration: underline; }

/* Sub Panel Header */
.arg-sub-title { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.arg-sub-sub { font-size: 13px; color: var(--text-2); margin-bottom: 20px; line-height: 1.5; }

/* Fragetechniken */
.arg-q-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 4px; }
.arg-q-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.arg-q-card--open  { border-top: 3px solid var(--accent); }
.arg-q-card--close { border-top: 3px solid #f97316; }
.arg-q-label { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.arg-q-section-head { font-size: 11px; font-weight: 600; color: var(--text-2); margin: 12px 0 6px; text-transform: uppercase; letter-spacing: .05em; }
.arg-q-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
.arg-q-chip { background: var(--bg); border-radius: 20px; padding: 3px 9px; font-size: 11.5px; color: var(--text-2); }
.arg-q-chip--goal { background: rgba(0,113,227,.08); color: var(--accent); }
.arg-q-chip--goal-orange { background: rgba(249,115,22,.08); color: #f97316; }
.arg-q-when { font-size: 12px; color: var(--text-2); line-height: 1.5; }
.arg-q-example { display: block; font-size: 12px; color: var(--text-2); border-left: 2px solid var(--border); padding: 4px 10px; margin-bottom: 5px; font-style: italic; }

/* SMART Kundentypologie */
.arg-smart-intro { font-size: 13.5px; color: var(--text-2); margin-bottom: 18px; line-height: 1.55; }
.arg-smart-grid { display: flex; flex-direction: column; gap: 10px; }
.arg-smart-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.arg-smart-head { display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; user-select: none; }
.arg-smart-letter { font-size: 32px; font-weight: 900; line-height: 1; min-width: 40px; text-align: center; }
.arg-smart-name { font-size: 15px; font-weight: 700; color: var(--text); }
.arg-smart-tagline { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.arg-smart-chevron { margin-left: auto; color: var(--text-3); transition: transform .2s; flex-shrink: 0; }
.arg-smart-card--open .arg-smart-chevron { transform: rotate(180deg); }
.arg-smart-body { display: none; padding: 0 18px 18px; border-top: 1px solid var(--border); }
.arg-smart-card--open .arg-smart-body { display: block; }
.arg-smart-quotes { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0 10px; }
.arg-smart-quote { background: var(--bg); border-radius: 20px; padding: 3px 10px; font-size: 11.5px; color: var(--text-2); font-style: italic; }
.arg-smart-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.arg-smart-col-head { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 6px; }
.arg-smart-col-head--yes { color: #22c55e; }
.arg-smart-col-head--no  { color: #ef4444; }
.arg-smart-item { font-size: 12px; color: var(--text-2); line-height: 1.5; padding: 2px 0; }
.arg-smart-strategy { background: rgba(0,113,227,.06); border-left: 3px solid var(--accent); border-radius: 8px; padding: 10px 12px; margin-top: 12px; font-size: 12.5px; color: var(--text); font-style: italic; }

/* LIMO Taktik */
.arg-limo-intro { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; margin-bottom: 16px; }
.arg-limo-intro-head { font-size: 20px; font-weight: 800; color: var(--accent); letter-spacing: .05em; margin-bottom: 4px; }
.arg-limo-intro-sub { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.arg-limo-steps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.arg-limo-step { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.arg-limo-letter { font-size: 28px; font-weight: 900; color: var(--accent); line-height: 1; min-width: 32px; flex-shrink: 0; }
.arg-limo-step-title { font-size: 14px; font-weight: 700; color: var(--text); }
.arg-limo-step-desc { font-size: 12.5px; color: var(--text-2); line-height: 1.5; margin-top: 2px; }
.arg-limo-step-eg { font-size: 12px; color: var(--text-3); font-style: italic; margin-top: 6px; border-left: 2px solid var(--accent); padding-left: 8px; line-height: 1.45; }
.arg-limo-errors { background: rgba(239,68,68,.06); border: 1px solid rgba(239,68,68,.2); border-radius: 12px; padding: 14px 16px; margin-bottom: 20px; }
.arg-limo-errors-head { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #ef4444; margin-bottom: 8px; }
.arg-limo-error-item { font-size: 12.5px; color: var(--text-2); padding: 3px 0; line-height: 1.5; }

/* Weitere Frameworks */
.arg-fw-section-head { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); margin-bottom: 12px; }
.arg-fw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.arg-fw-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; opacity: .6; }
.arg-fw-card-name { font-size: 13px; font-weight: 600; color: var(--text); }
.arg-fw-card-soon { font-size: 10.5px; color: var(--text-3); margin-top: 2px; }

/* ============================================================
   ROLLEN & RECHTE — Sichtbarkeit
   ============================================================ */

.role-viewer .adm-fab,
.role-viewer .adm-card-controls,
.role-viewer .adm-add-btn { display: none !important; }

/* ============================================================
   AUTH-ROW (Sidebar Footer)
   ============================================================ */

.auth-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px; border-bottom: 1px solid var(--border);
}
.auth-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; border-radius: 20px;
  padding: 3px 10px; letter-spacing: .02em;
}
.auth-badge--viewer  { background: var(--surface-2); color: var(--text-3); }
.auth-badge--editor  { background: rgba(99,102,241,.12); color: #4f46e5; }
.auth-badge--admin   { background: rgba(0,113,227,.1); color: var(--accent); }
.auth-action-btn {
  font-size: 11.5px; font-weight: 500; color: var(--text-2);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 4px 11px; background: none; cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.auth-action-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   PIN MODAL
   ============================================================ */

.pin-modal {
  position: fixed; inset: 0; z-index: 1100;
  display: flex; align-items: center; justify-content: center;
}
.pin-modal.hidden { display: none; }
.pin-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.45); backdrop-filter: blur(4px);
}
.pin-modal-sheet {
  position: relative; z-index: 1;
  background: var(--surface); border-radius: 20px;
  padding: 28px 24px; width: 320px; max-width: calc(100vw - 32px);
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
}
.pin-modal-title { font-size: 17px; font-weight: 700; color: var(--text); text-align: center; }
.pin-role-tabs {
  display: flex; gap: 6px;
  background: var(--bg); border-radius: 10px; padding: 4px;
}
.pin-role-tab {
  flex: 1; padding: 7px 0; font-size: 13px; font-weight: 500;
  color: var(--text-2); border-radius: 7px; background: none;
  border: none; cursor: pointer; transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.pin-role-tab--active {
  background: var(--surface); font-weight: 600; color: var(--text);
  box-shadow: var(--shadow-sm);
}
.pin-input {
  width: 100%; padding: 11px 14px; box-sizing: border-box;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 11px; font-size: 15px; letter-spacing: .12em;
  color: var(--text); outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.pin-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.pin-error {
  font-size: 12.5px; color: #ef4444; text-align: center;
  background: rgba(239,68,68,.07); border-radius: 8px; padding: 6px 12px;
}
.pin-error.hidden { display: none; }
.pin-submit-btn {
  width: 100%; padding: 12px; background: var(--accent); color: #fff;
  border-radius: 11px; font-size: 14px; font-weight: 600;
  border: none; cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
}
.pin-submit-btn:hover { opacity: .9; transform: translateY(-1px); }
.pin-defaults-warn {
  font-size: 12px; color: #f97316;
  background: rgba(249,115,22,.08); border-radius: 8px;
  padding: 8px 12px; line-height: 1.5; text-align: center;
}
.pin-defaults-warn.hidden { display: none; }
.pin-cancel-btn {
  background: none; border: none; color: var(--text-3);
  font-size: 12.5px; cursor: pointer; text-align: center; padding: 0;
}
.pin-cancel-btn:hover { color: var(--text-2); }

/* ============================================================
   SYSTEMVERWALTUNG — Sidebar Sichtbarkeit
   ============================================================ */

.role-viewer .nav-system-section { display: none !important; }
.role-admin  .nav-editor-system  { display: none !important; }
.role-editor .nav-admin-system   { display: none !important; }

/* ============================================================
   SYSTEMVERWALTUNG — View
   ============================================================ */

.sv-wrap { max-width: 860px; padding: 28px 24px 56px; }

.sv-header { margin-bottom: 24px; }
.sv-title  { font-size: 26px; font-weight: 700; letter-spacing: -.5px; color: var(--text); margin-bottom: 4px; }
.sv-sub    { font-size: 13.5px; color: var(--text-2); }

/* Tabs */
.sv-tabs {
  display: flex; gap: 4px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 4px; margin-bottom: 24px;
}
.sv-tab {
  flex: 1; padding: 8px 12px; font-size: 13px; font-weight: 500;
  color: var(--text-2); border-radius: 9px; background: none; border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.sv-tab--active { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow-sm); }
.sv-tab:hover:not(.sv-tab--active) { color: var(--text); background: var(--surface-2); }

/* Panels */
.sv-panel { display: none; }
.sv-panel--active { display: block; }

/* Panel header */
.sv-panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sv-panel-title  { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.sv-panel-sub    { font-size: 13px; color: var(--text-2); }
.sv-panel-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }

/* Content list */
.sv-content-list { display: flex; flex-direction: column; gap: 6px; }
.sv-content-row  {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px;
  transition: border-color var(--transition);
}
.sv-content-row:hover { border-color: var(--accent); }
.sv-content-info  { flex: 1; min-width: 0; }
.sv-content-title { font-size: 14px; font-weight: 600; color: var(--text); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-content-meta  { font-size: 12px; color: var(--text-3); }
.sv-content-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* Buttons */
.sv-new-btn {
  font-size: 12px; font-weight: 600; color: var(--accent);
  border: 1.5px solid var(--accent); border-radius: 8px;
  padding: 6px 12px; background: rgba(0,113,227,.05);
  cursor: pointer; white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}
.sv-new-btn:hover { background: rgba(0,113,227,.1); transform: translateY(-1px); }

.sv-action-btn {
  width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; background: var(--bg); border: 1px solid var(--border);
  color: var(--text-2); cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.sv-action-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.sv-action-btn--danger:hover { border-color: #ef4444; color: #ef4444; background: rgba(239,68,68,.08); }

.sv-restore-btn {
  padding: 6px 14px; background: rgba(0,113,227,.07); color: var(--accent);
  border: 1.5px solid var(--accent); border-radius: 9px;
  font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background var(--transition);
}
.sv-restore-btn:hover { background: rgba(0,113,227,.15); }

.sv-empty { font-size: 13.5px; color: var(--text-3); padding: 28px 0; text-align: center; }

/* Role table */
.sv-role-table { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.sv-role-row   { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.sv-role-rights { font-size: 12.5px; color: var(--text-2); }

/* Section helpers */
.sv-section-divider { height: 1px; background: var(--border); margin: 20px 0; }
.sv-section-head    { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); margin-bottom: 14px; }

/* PIN change */
.sv-pin-change { margin-bottom: 14px; }
.sv-pin-label  { font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.sv-pin-row    { display: flex; gap: 8px; align-items: center; }
.sv-pin-input  { flex: 1; min-width: 0; }
.sv-pin-save-btn {
  padding: 10px 16px; background: var(--accent); color: #fff;
  border-radius: 10px; font-size: 13px; font-weight: 600;
  border: none; cursor: pointer; white-space: nowrap;
  transition: opacity var(--transition);
}
.sv-pin-save-btn:hover { opacity: .9; }
.sv-pin-error { font-size: 12px; color: #ef4444; margin-top: 4px; }
.sv-pin-error.hidden { display: none; }

.sv-note {
  font-size: 12.5px; color: var(--text-2); line-height: 1.6;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px;
}

/* Settings */
.sv-settings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.sv-setting-card  { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.sv-setting-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); margin-bottom: 4px; }
.sv-setting-value { font-size: 14px; font-weight: 600; color: var(--text); }

.sv-action-row {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px;
}
.sv-action-label { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.sv-action-desc  { font-size: 12px; color: var(--text-2); line-height: 1.5; }

.sv-danger-btn {
  padding: 8px 14px; background: none;
  border: 1.5px solid #ef4444; color: #ef4444;
  border-radius: 9px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: background var(--transition);
}
.sv-danger-btn:hover { background: rgba(239,68,68,.08); }

.sv-no-access { display: flex; align-items: center; justify-content: center; min-height: 200px; color: var(--text-3); font-size: 14px; }

/* Control Center Tabs — Icon + Label */
.sv-tab { flex-direction: column; gap: 5px; font-size: 11px; padding: 10px 8px; }
.sv-tab-label { font-size: 11px; }

/* ============================================================
   USER PROFILE CARD
   ============================================================ */

.profile-card {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin: 0 8px 4px;
  border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface);
  transition: background var(--transition), border-color var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.profile-card:hover { background: var(--surface-2); border-color: rgba(0,113,227,.18); }

.profile-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; letter-spacing: -.3px;
  flex-shrink: 0; user-select: none;
}
.profile-avatar--viewer { background: var(--surface-2); color: var(--text-3); }
.profile-avatar--editor { background: rgba(99,102,241,.14); color: #4f46e5; }
.profile-avatar--admin  { background: rgba(0,113,227,.12); color: var(--accent); }

.profile-info { flex: 1; min-width: 0; line-height: 1; }
.profile-name {
  font-size: 13px; font-weight: 600; color: var(--text);
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 3px;
}
.profile-role-label { font-size: 11px; color: var(--text-3); display: block; }

.profile-action-btn {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; border: 1px solid var(--border);
  background: none; color: var(--text-3);
  cursor: pointer; flex-shrink: 0;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.profile-action-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

/* Legacy auth-row — hidden, Profile Card takes over */
.auth-row { display: none !important; }

/* ============================================================
   PREMIUM VIDEO MODULE
   ============================================================ */

/* VB-Welt Section Layout */
.vb-video-section { padding: 0 24px 28px; }
.vb-section-label {
  font-size: 10.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-3); margin-bottom: 14px;
}

/* Video Card */
.vid-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.vid-card:hover  { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0,0,0,.11); border-color: rgba(0,113,227,.25); }
.vid-card:focus-visible { box-shadow: 0 0 0 3px var(--accent-light); }

/* Thumbnail */
.vid-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0a0a;
}
.vid-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.vid-card:hover .vid-thumb { transform: scale(1.04); }

/* Gradient overlay on thumbnail */
.vid-thumb-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 35%,
    rgba(0,0,0,.55) 75%,
    rgba(0,0,0,.78) 100%
  );
  pointer-events: none;
}

/* Play button */
.vid-play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 62px; height: 62px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #111;
  box-shadow: 0 6px 24px rgba(0,0,0,.28);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  pointer-events: none;
}
.vid-card:hover .vid-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: #fff;
  box-shadow: 0 10px 32px rgba(0,0,0,.35);
}

/* Meta overlay: category + duration */
.vid-meta-overlay {
  position: absolute; bottom: 14px; left: 16px; right: 16px;
  display: flex; align-items: center; justify-content: space-between;
  pointer-events: none;
}
.vid-category {
  font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 20px; padding: 3px 10px;
}
.vid-duration {
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,.75);
  font-variant-numeric: tabular-nums;
}

/* Info section */
.vid-info { padding: 18px 20px 22px; }
.vid-title { font-size: 20px; font-weight: 700; letter-spacing: -.35px; color: var(--text); margin-bottom: 7px; }
.vid-desc  { font-size: 13.5px; color: var(--text-2); line-height: 1.57; margin-bottom: 18px; }

/* CTA button */
.vid-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  border-radius: 22px; padding: 10px 22px;
  font-size: 14px; font-weight: 600; border: none; cursor: pointer;
  transition: opacity .15s, transform .15s;
  pointer-events: none;
}
.vid-card:hover .vid-cta { opacity: .92; }

/* ============================================================
   VIDEO OVERLAY
   ============================================================ */

#video-overlay {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: videoOverlayIn .18s ease forwards;
}
#video-overlay.hidden { display: none; }

@keyframes videoOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.video-overlay-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.video-overlay-close {
  position: absolute; top: 20px; right: 20px; z-index: 1;
  width: 40px; height: 40px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  color: rgba(255,255,255,.9); font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.video-overlay-close:hover { background: rgba(255,255,255,.2); transform: scale(1.08); }

.video-overlay-wrap {
  position: relative; z-index: 1;
  width: 100%; max-width: 880px;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.7);
  animation: videoWrapIn .22s ease forwards;
}
@keyframes videoWrapIn {
  from { transform: scale(.96); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.video-overlay-player {
  display: block;
  width: 100%; aspect-ratio: 16 / 9;
  background: #000;
}

/* Mobile */
@media (max-width: 600px) {
  .vb-video-section { padding: 0 16px 24px; }
  .vid-info { padding: 14px 16px 18px; }
  .vid-title { font-size: 17px; }
  .vid-play-btn { width: 52px; height: 52px; }
  .video-overlay-wrap { border-radius: 10px; }
  #video-overlay { padding: 12px; }
}

/* Mobile */
@media (max-width: 600px) {
  .sv-wrap { padding: 20px 16px 40px; }
  .sv-title { font-size: 22px; }
  .sv-tabs { gap: 2px; padding: 3px; }
  .sv-tab  { font-size: 11.5px; padding: 7px 6px; }
  .sv-panel-header { flex-direction: column; gap: 10px; }
  .sv-panel-actions { width: 100%; }
  .sv-settings-grid { grid-template-columns: 1fr; }
  .sv-pin-row { flex-direction: column; align-items: stretch; }
  .sv-action-row { flex-direction: column; align-items: flex-start; }
  .sv-content-row { flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .arg-hub-grid { grid-template-columns: 1fr; }
  .arg-q-grid { grid-template-columns: 1fr; }
  .arg-smart-row { grid-template-columns: 1fr; }
  .arg-fw-grid { grid-template-columns: 1fr; }
}

/* ── ADMIN MODE ─────────────────────────────────────────── */
.adm-fab {
  position: fixed; bottom: 80px; right: 16px; z-index: 900;
  height: 44px; border-radius: 22px;
  padding: 0 14px 0 11px; gap: 7px;
  background: var(--surface); border: 1.5px solid var(--border);
  box-shadow: var(--shadow-md);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: box-shadow var(--transition), transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition), padding var(--transition);
  color: var(--text-2);
}
.adm-fab:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); color: var(--text); }
.adm-fab-label {
  font-size: 12px; font-weight: 600; white-space: nowrap;
  max-width: 0; overflow: hidden; opacity: 0;
  transition: max-width .22s ease, opacity .18s ease;
}
.adm-fab--active { background: #f97316; border-color: #f97316; color: #fff; box-shadow: 0 4px 16px rgba(249,115,22,.35); }
.adm-fab--active:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(249,115,22,.4); }
.adm-fab--active .adm-fab-label { max-width: 48px; opacity: 1; }

.edit-mode .arg-smart-card,
.edit-mode .arg-limo-step,
.edit-mode .arg-q-card { position: relative; }

.adm-card-controls {
  position: absolute; top: 8px; right: 8px; z-index: 10;
  display: flex; gap: 4px;
}
.adm-ctrl-btn {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); transition: background var(--transition);
}
.adm-ctrl-btn:hover { background: var(--bg); }

.adm-add-btn {
  width: 100%; padding: 14px; border-radius: 12px; margin-top: 4px;
  border: 2px dashed var(--border); background: none;
  font-size: 13px; color: var(--accent); font-weight: 600; cursor: pointer;
  transition: background var(--transition);
}
.adm-add-btn:hover { background: rgba(0,113,227,.05); }

.adm-modal { position: fixed; inset: 0; z-index: 1002; display: flex; align-items: flex-end; }
.adm-modal.hidden { display: none; }
.adm-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.4); backdrop-filter: blur(4px); }
.adm-modal-sheet {
  position: relative; z-index: 1; width: 100%; max-width: 600px; margin: 0 auto;
  background: var(--surface); border-radius: 24px 24px 0 0;
  max-height: 90vh; display: flex; flex-direction: column;
  box-shadow: 0 -8px 32px rgba(0,0,0,.15);
}
.adm-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px 0; flex-shrink: 0;
}
.adm-modal-title { font-size: 17px; font-weight: 700; color: var(--text); margin: 0; }
.adm-modal-close {
  width: 28px; height: 28px; border-radius: 50%; background: var(--bg);
  border: none; cursor: pointer; font-size: 14px; color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
}
.adm-modal-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.adm-modal-footer {
  display: flex; gap: 10px; padding: 16px 20px;
  border-top: 1px solid var(--border); flex-shrink: 0;
}
.adm-modal-footer .its-cancel-btn,
.adm-modal-footer .its-save-btn { flex: 1; }

@media (min-width: 600px) {
  .adm-modal { align-items: center; }
  .adm-modal-sheet { border-radius: 20px; max-height: 80vh; }
  .adm-fab { bottom: 24px; }
}

/* Demo-Modus Banner */
.lfs-demo-badge {
  background: rgba(249,115,22,.08); border: 1px solid rgba(249,115,22,.28);
  border-radius: 8px; padding: 8px 12px; font-size: 11px;
  color: #f97316; margin: 0 20px 12px; text-align: center; line-height: 1.45;
}

/* ── DASHBOARD HINTERGRUNDBILD ───────────────────────────── */
#view-dashboard {
  position: relative;
}

/* ── DASHBOARD HERO ─────────────────────────────────────────── */
.dash-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 24px 20px;
  flex-wrap: nowrap;
}
.dash-hero-left { flex: 1; min-width: 0; }
.dash-hero-greeting {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.4px;
  line-height: 1.2;
}
.dash-hero-sub {
  font-size: 13.5px;
  color: var(--text-3);
  margin-top: 5px;
  font-weight: 400;
}

.dash-status {
  flex-shrink: 0;
  text-align: right;
  padding-top: 3px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.dash-status-date {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.3;
}
.dash-status-time {
  font-size: 34px;
  font-weight: 200;
  color: var(--text);
  letter-spacing: -1.5px;
  line-height: 1;
  margin: 3px 0 6px;
  font-variant-numeric: tabular-nums;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
}
.dash-status-row {
  display: flex;
  align-items: center;
  gap: 5px;
}
.dash-status-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}
.dash-status-label {
  font-size: 10.5px;
  color: var(--text-3);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ── DASHBOARD SECTIONS ─────────────────────────────────────── */
.dash-section { padding: 0 24px 28px; }
.dash-section-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ── QUICK ACTIONS ──────────────────────────────────────────── */
.qa-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.qa-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 12px 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-align: center;
}
.qa-card:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.qa-card:active { transform: translateY(0); }
.qa-card-icon {
  width: 36px; height: 36px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.qa-card-icon svg { width: 18px; height: 18px; }
.qa-card-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2);
  line-height: 1.25;
  white-space: nowrap;
}

/* ── WORLDS COMPACT GRID ────────────────────────────────────── */
.worlds-compact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.world-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.world-chip:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.world-chip:active { transform: translateY(0); }
.world-chip-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.world-chip-icon svg { width: 20px; height: 20px; }
.world-chip-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.world-chip-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* ── STATUS BADGE SYSTEM ────────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 99px;
  letter-spacing: 0.01em;
  width: fit-content;
}
.status-badge--aktiv       { background: rgba(0,160,80,0.12);   color: #008040; }
.dark .status-badge--aktiv { background: rgba(0,200,100,0.15);  color: #00c864; }
.status-badge--beta        { background: rgba(99,102,241,0.12); color: #4f46e5; }
.dark .status-badge--beta  { background: rgba(129,140,248,0.15);color: #818cf8; }
.status-badge--neu         { background: rgba(249,115,22,0.12); color: #ea6c00; }
.dark .status-badge--neu   { background: rgba(251,146,60,0.15); color: #fb923c; }
.status-badge--prep        { background: var(--surface-2); color: var(--text-3); }
.status-badge--archived    { background: var(--surface-2); color: var(--text-3); opacity: 0.6; }

/* ── ACTIVITY PANEL (tabbed) ────────────────────────────────── */
.act-panel-wrap {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.act-tabs-header {
  display: flex;
  gap: 2px;
  padding: 0 4px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.act-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  padding: 10px 12px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color var(--transition);
  margin-bottom: -1px;
}
.act-tab:hover { color: var(--text-2); }
.act-tab--active { color: var(--accent); font-weight: 600; border-bottom-color: var(--accent); }
.act-tab-count {
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
}
.act-panel { background: var(--surface); }
.act-pane  { display: none; }
.act-pane--active { display: block; }

/* ── DASHBOARD RESPONSIVE ───────────────────────────────────── */
@media (max-width: 900px) {
  .qa-row              { grid-template-columns: repeat(3, 1fr); }
  .worlds-compact-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .dash-hero {
    flex-direction: column;
    gap: 0;
    padding: 20px 16px 16px;
  }
  .dash-status {
    order: -1;
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
    text-align: left;
    align-self: stretch;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 18px;
  }
  .dash-status-date  { font-size: 10.5px; order: 1; }
  .dash-status-time  { font-size: 22px; letter-spacing: -0.8px; font-weight: 300; margin: 0; order: 2; }
  .dash-status-row   { order: 3; margin-left: auto; }
  .dash-hero-greeting { font-size: 20px; }
  .dash-section { padding: 0 16px 24px; }
  .qa-row {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }
  .qa-row::-webkit-scrollbar { display: none; }
  .qa-card {
    flex-shrink: 0;
    min-width: 72px;
    border-radius: 12px;
    padding: 12px 8px 11px;
  }
  .worlds-compact-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .world-chip          { padding: 12px 12px; }
  .world-chip-title    { font-size: 12.5px; }
}

/* ============================================================
   LOGIN VIEW
   ============================================================ */

.role-guest #sidebar { display: none; }
.role-guest #main-wrap { margin-left: 0; }
.role-guest #mobile-header { display: none; }

#view-login.active {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  background: var(--bg);
  padding: 24px 16px;
}

.login-wrap {
  width: 100%;
  max-width: 400px;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px 32px;
  box-shadow: 0 8px 40px rgba(0,0,0,.07);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.login-brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.login-brand-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.2px;
}

.login-brand-sub {
  font-size: 11.5px;
  color: var(--text-3);
}

.login-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.5px;
  color: var(--text);
  margin-bottom: 6px;
}

.login-sub {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 24px;
}

.login-form { display: flex; flex-direction: column; gap: 14px; }

.login-field { display: flex; flex-direction: column; gap: 5px; }

.login-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: .01em;
}

.login-input {
  width: 100%;
  padding: 11px 13px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.login-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,113,227,.12);
}

.login-error {
  font-size: 13px;
  color: #e53e3e;
  background: rgba(229,62,62,.08);
  border: 1px solid rgba(229,62,62,.2);
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: -4px;
}

.login-btn {
  width: 100%;
  padding: 13px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s, transform .12s;
  margin-top: 4px;
}
.login-btn:hover  { opacity: .9; transform: translateY(-1px); }
.login-btn:active { transform: translateY(0); }
.login-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ============================================================
   USER MANAGEMENT IN CONTROL CENTER
   ============================================================ */

.sv-user-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sv-form-input {
  padding: 9px 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  outline: none;
}
.sv-form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,113,227,.1);
}

.sv-role-select {
  padding: 5px 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 12.5px;
  color: var(--text);
  cursor: pointer;
}

.sv-add-user-form { margin-top: 8px; }

.sv-loading {
  font-size: 13px;
  color: var(--text-3);
  padding: 16px 0;
}

@media (max-width: 600px) {
  .login-card { padding: 28px 20px 24px; }
  .login-title { font-size: 22px; }
  .sv-user-form-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SIDEBAR ACCORDION
   ============================================================ */

.nav-group-row {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-group-main { flex: 1; min-width: 0; }

.nav-group-toggle {
  width: 28px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-3);
  transition: background var(--transition), color var(--transition);
}
.nav-group-toggle:hover { background: var(--surface-2); color: var(--text-2); }

.nav-chevron {
  transition: transform .22s cubic-bezier(.4, 0, .2, 1);
}
.nav-group.open .nav-chevron { transform: rotate(90deg); }

.nav-sub {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  max-height: 0;
  transition: max-height .26s cubic-bezier(.4, 0, .2, 1);
}
.nav-group.open .nav-sub { max-height: 400px; }

.nav-sub-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 7px 10px 7px 36px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-3);
  transition: background var(--transition), color var(--transition);
  text-align: left;
}
.nav-sub-item:hover { background: var(--surface-2); color: var(--text-2); }
.nav-sub-item.active { color: var(--accent); font-weight: 500; }

.nav-sub-item::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: .35;
  flex-shrink: 0;
  margin-right: 8px;
  margin-left: -12px;
}
.nav-sub-item:hover::before,
.nav-sub-item.active::before { opacity: .7; }

@media (max-width: 768px) {
  .nav-sub-item { padding: 9px 10px 9px 36px; font-size: 13.5px; }
  .nav-group-toggle { width: 36px; height: 36px; }
}

/* Desktop: Accordion ausblenden → flache Navigation */
@media (min-width: 769px) {
  .nav-group-toggle { display: none; }
  .nav-sub          { display: none; }
  .nav-group-main   { width: 100%; }
}

/* ============================================================
   ANSPRECHPARTNER HUB
   ============================================================ */

.ap-top { margin-bottom: 20px; }

.ap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  margin-bottom: 80px;
}

/* Card */
.ap-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.ap-card:hover { box-shadow: var(--shadow-md); }

.ap-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
}
.ap-card-identity { flex: 1; min-width: 0; }
.ap-card-name  { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.ap-card-org   { font-size: 12.5px; color: var(--text-2); margin-bottom: 1px; }
.ap-card-sub   { font-size: 11px; color: var(--text-3); }

.ap-card-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Favorite button */
.ap-fav-btn {
  padding: 4px;
  color: var(--text-3);
  border-radius: 6px;
  transition: color var(--transition);
}
.ap-fav-btn:hover,
.ap-fav-btn.active { color: #e53e3e; }

/* Status dot */
.ap-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Action row */
.ap-card-actions {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.ap-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  transition: all 0.15s;
  cursor: pointer;
  min-height: 36px;
}
.ap-action-call {
  color: var(--accent);
  border-color: var(--accent-light);
  background: var(--accent-light);
}
.ap-action-call:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.ap-action-mail:hover { border-color: var(--accent); color: var(--accent); }

.ap-copy-btn {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-3);
  border: 1px solid var(--border);
  background: none;
  cursor: pointer;
  transition: all 0.15s;
  min-height: 36px;
}
.ap-copy-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Address, tags */
.ap-card-address {
  padding: 8px 16px;
  font-size: 12px;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
}
.ap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 10px 16px;
}
.ap-tag {
  font-size: 11px;
  padding: 2px 8px;
  background: var(--surface-2);
  border-radius: 20px;
  color: var(--text-3);
}

/* Edit button (editor/admin only via CSS role class) */
.ap-edit-btn {
  display: none;
  width: calc(100% - 32px);
  margin: 0 16px 12px;
  padding: 7px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--text-2);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}
.role-editor .ap-edit-btn,
.role-admin  .ap-edit-btn { display: block; }
.ap-edit-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Add button FAB */
.ap-add-btn {
  display: none;
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + 16px);
  right: 20px;
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 28px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  gap: 8px;
  align-items: center;
  z-index: 50;
  transition: opacity 0.2s;
}
.role-editor .ap-add-btn,
.role-admin  .ap-add-btn { display: flex; }
.ap-add-btn:hover { opacity: 0.9; }

/* Modal */
.ap-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-end;
}
.ap-modal.hidden { display: none; }
.ap-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.ap-modal-sheet {
  position: relative;
  background: var(--surface);
  z-index: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  border-radius: 20px 20px 0 0;
  max-height: 90dvh;
  overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom, 16px);
}
.ap-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 0;
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}
.ap-modal-title { font-size: 18px; font-weight: 700; }
.ap-modal-body  { padding: 16px 20px 24px; }

.ap-form-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.ap-form-archive-btn { color: #dc2626 !important; border-color: rgba(220,38,38,0.3) !important; }

/* Mobile */
@media (max-width: 600px) {
  .ap-grid         { grid-template-columns: 1fr; }
  .ap-action-btn   { flex: 1; justify-content: center; min-height: 44px; }
  .ap-copy-btn     { min-height: 44px; }
  .ap-modal-sheet  { max-height: 95dvh; }
  .ap-fav-btn      { padding: 8px; }
}

/* Desktop: centered modal */
@media (min-width: 769px) {
  .ap-modal        { align-items: center; }
  .ap-modal-sheet  { border-radius: 16px; max-height: 85dvh; }
  .ap-add-btn      { bottom: 32px; }
}

/* Notfall Cards */
.ap-card--notfall {
  border-color: rgba(220, 38, 38, 0.25);
  border-left: 3px solid #dc2626;
}
.ap-card--notfall:hover { box-shadow: 0 4px 16px rgba(220,38,38,0.12); }

.ap-notfall-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #dc2626;
  margin-right: 6px;
  flex-shrink: 0;
  animation: ap-pulse 2s ease-in-out infinite;
}
@keyframes ap-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.ap-card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  flex-wrap: wrap;
}
.ap-badge-24h {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 700;
  background: rgba(220,38,38,0.1);
  color: #dc2626;
  letter-spacing: 0.02em;
}
.ap-card-sub {
  font-size: 11px;
  color: var(--text-3);
}

/* KI-Import Drop Zone */
.ap-ki-zone {
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
}
.ap-ki-drop {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--surface-2);
  transition: border-color var(--transition), background var(--transition);
  user-select: none;
}
.ap-ki-drop:hover,
.ap-ki-drop.drag-over {
  border-color: var(--accent);
  background: var(--accent-light);
}
.ap-ki-drop-title { font-size: 13.5px; font-weight: 600; color: var(--text-2); margin-bottom: 2px; }
.ap-ki-drop-sub   { font-size: 12px; color: var(--text-3); }

.ap-ki-preview {
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  border-radius: var(--radius);
  margin-top: 8px;
  background: var(--surface-2);
}

.ap-ki-status {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  background: var(--surface-2);
  color: var(--text-2);
}
.ap-ki-status.ap-ki-ok  { background: #f0fdf4; color: #16a34a; }
.ap-ki-status.ap-ki-err { background: #fef2f2; color: #dc2626; }

.ap-ki-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-top: 8px;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  justify-content: center;
  transition: opacity 0.15s;
}
.ap-ki-btn:hover    { opacity: 0.9; }
.ap-ki-btn:disabled { opacity: 0.5; cursor: wait; }
