/* ============================================================
   pro-WI Beratungsnavigator – Design System
   Primärfarben: #146B9F (Blau) · #3E494F (Charcoal)
   ============================================================ */

:root {
  /* Brand */
  --blue:          #146B9F;
  --blue-dark:     #0F5278;
  --blue-mid:      #1A82C0;
  --blue-light:    #E8F3FB;
  --blue-xlight:   #F2F8FD;
  --charcoal:      #3E494F;
  --charcoal-dark: #2A3338;

  /* Neutrals */
  --text:          #1E2B32;
  --text-secondary:#5A6A74;
  --text-muted:    #8A9BA5;
  --border:        #DDE4E9;
  --border-light:  #EDF1F4;
  --bg:            #F4F7F9;
  --surface:       #FFFFFF;
  --surface-2:     #F8FAFB;

  /* Status */
  --success:       #0A7A5C;
  --success-light: #E6F5F0;
  --warning:       #B45309;
  --warning-light: #FEF3E2;
  --danger:        #C0392B;
  --danger-light:  #FEF0EE;
  --info:          var(--blue);
  --info-light:    var(--blue-light);

  /* Lead Status */
  --status-new:      #146B9F;
  --status-contacted:#7C3AED;
  --status-offer:    #B45309;
  --status-closed-w: #0A7A5C;
  --status-closed-l: #8A9BA5;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;

  /* Radius */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-full: 9999px;

  /* Shadow */
  --shadow-sm:  0 1px 3px rgba(20,107,159,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 16px rgba(20,107,159,0.10), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg:  0 8px 32px rgba(20,107,159,0.13), 0 4px 12px rgba(0,0,0,0.06);

  /* Font */
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Sidebar */
  --sidebar-width: 220px;
  --header-height: 56px;
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; }
input, select, textarea, button { font-family: var(--font); }

/* ── Typography ─────────────────────────────────────── */
h1 { font-size: 22px; font-weight: 600; line-height: 1.3; color: var(--text); }
h2 { font-size: 18px; font-weight: 600; line-height: 1.3; }
h3 { font-size: 15px; font-weight: 600; line-height: 1.4; }
h4 { font-size: 13px; font-weight: 600; line-height: 1.4; }

.text-sm   { font-size: 13px; }
.text-xs   { font-size: 11px; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-blue  { color: var(--blue); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Layout Shell ───────────────────────────────────── */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  grid-template-rows: var(--header-height) 1fr;
  grid-template-areas:
    "header header"
    "sidebar main";
  min-height: 100vh;
}

/* ── Header ─────────────────────────────────────────── */
.app-header {
  grid-area: header;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-6);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  gap: var(--space-4);
}
.header-logo { display: flex; align-items: center; gap: var(--space-3); }
.header-logo img, .header-logo svg { height: 28px; width: auto; }
.header-divider {
  width: 1px; height: 20px;
  background: var(--border);
  margin: 0 var(--space-2);
}
.header-product {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}
.header-right { display: flex; align-items: center; gap: var(--space-3); }
.header-user {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: 13px; color: var(--text-secondary);
}
.user-avatar {
  width: 30px; height: 30px;
  border-radius: var(--radius-full);
  background: var(--blue-light);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}

/* ── Sidebar ─────────────────────────────────────────── */
.app-sidebar {
  grid-area: sidebar;
  background: var(--charcoal-dark);
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: var(--space-5) 0;
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.sidebar-section-title {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding: 0 var(--space-5) var(--space-2);
  margin-top: var(--space-4);
}
.sidebar-section-title:first-child { margin-top: 0; }
.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 9px var(--space-5);
  font-size: 13.5px;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.15s;
  text-decoration: none;
}
.nav-link:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}
.nav-link.active {
  border-left-color: var(--blue-mid);
  background: rgba(20,107,159,0.18);
  color: #fff;
  font-weight: 500;
}
.nav-link .nav-icon {
  width: 17px; height: 17px;
  opacity: 0.7;
  flex-shrink: 0;
}
.nav-link.active .nav-icon { opacity: 1; }

/* Phase nav (used in Beratung) */
.phase-nav-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: 8px var(--space-5);
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.15s;
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}
.phase-nav-item:hover { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.8); }
.phase-nav-item.active {
  border-left-color: var(--blue-mid);
  background: rgba(20,107,159,0.18);
  color: #fff;
  font-weight: 500;
}
.phase-nav-item.done { color: rgba(255,255,255,0.45); }
.phase-nav-item.done .phase-num { background: var(--success); color: #fff; }
.phase-num {
  width: 20px; height: 20px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.15s;
}
.phase-nav-item.active .phase-num {
  background: var(--blue-mid);
  color: #fff;
}
.sidebar-bottom {
  margin-top: auto;
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ── Main Content ────────────────────────────────────── */
.app-main {
  grid-area: main;
  padding: var(--space-8) var(--space-10);
  max-width: 1100px;
  overflow-y: auto;
}
.app-main.wide { max-width: 100%; }
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  gap: var(--space-4);
  flex-wrap: wrap;
}
.page-title { font-size: 20px; font-weight: 600; }
.page-subtitle { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

/* ── Cards ───────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-body { padding: var(--space-5) var(--space-6); }
.card-header {
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.card-header h3 { font-size: 14px; }
.card-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
  line-height: 1;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-primary:hover:not(:disabled) { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover:not(:disabled) { background: var(--bg); }
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover:not(:disabled) { background: var(--bg); color: var(--text); }
.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}
.btn-danger:hover:not(:disabled) { background: #a93226; }
.btn-sm { padding: 5px 12px; font-size: 12.5px; }
.btn-lg { padding: 11px 24px; font-size: 15px; }
.btn-icon {
  padding: 7px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--text-secondary);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.btn-icon:hover { background: var(--bg); color: var(--text); }

/* ── Forms ───────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: var(--space-2); }
.form-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}
.form-control {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  width: 100%;
}
.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(20,107,159,0.12);
}
.form-control::placeholder { color: var(--text-muted); }
.form-control[readonly] { background: var(--surface-2); color: var(--text-secondary); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--space-4); }
.form-row { display: flex; gap: var(--space-4); align-items: flex-end; }

/* ── Badges ──────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
}
.badge-blue    { background: var(--blue-light); color: var(--blue-dark); }
.badge-green   { background: var(--success-light); color: var(--success); }
.badge-orange  { background: var(--warning-light); color: var(--warning); }
.badge-red     { background: var(--danger-light); color: var(--danger); }
.badge-gray    { background: var(--border-light); color: var(--text-muted); }
.badge-purple  { background: #EDE9FE; color: #5B21B6; }

/* Lead Status Badges */
.badge-neu        { background: #EBF4FC; color: var(--blue-dark); }
.badge-kontaktiert { background: #EDE9FE; color: #5B21B6; }
.badge-angebot    { background: var(--warning-light); color: var(--warning); }
.badge-abschluss  { background: var(--success-light); color: var(--success); }
.badge-verloren   { background: var(--border-light); color: var(--text-muted); }

/* ── Tables ──────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead th {
  padding: 10px 14px;
  text-align: left;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--blue-xlight); }
tbody tr { cursor: pointer; transition: background 0.1s; }

/* ── Script Boxes ────────────────────────────────────── */
.script-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
}
.script-block-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.script-dot {
  width: 7px; height: 7px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}
.dot-blue  { background: var(--blue); }
.dot-warn  { background: var(--warning); }
.dot-green { background: var(--success); }
.script-block-body { padding: 18px 22px; font-size: 15px; line-height: 1.85; }

.speaker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 14px;
  margin-bottom: 3px;
}
.speaker:first-child { margin-top: 0; }
.spk-agent { color: var(--blue); }
.spk-client { color: var(--warning); }
.spk-confirm { color: var(--success); font-weight: 700; }

.script-line { margin-bottom: 5px; }
.ph {
  display: inline-block;
  background: var(--blue-light);
  border: 1px dashed rgba(20,107,159,0.35);
  border-radius: 4px;
  padding: 1px 8px;
  color: var(--blue-dark);
  font-style: italic;
  font-size: 13.5px;
}
.tempo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--warning-light);
  border: 1px solid rgba(180,83,9,0.2);
  color: var(--warning);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-top: 8px;
}
.pause-box {
  background: var(--blue-xlight);
  border: 1px solid var(--blue-light);
  border-radius: var(--radius-md);
  padding: 9px 14px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--blue);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.info-box {
  background: var(--blue-light);
  border: 1px solid rgba(20,107,159,0.2);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: var(--space-4);
  font-size: 13.5px;
  color: var(--charcoal);
  line-height: 1.65;
}
.info-box strong { color: var(--blue-dark); }
.warn-box {
  background: var(--warning-light);
  border: 1px solid rgba(180,83,9,0.2);
  border-left: 4px solid var(--warning);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: var(--space-4);
  font-size: 13px;
  color: #7C4A00;
  line-height: 1.65;
}
.warn-box .warn-title {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--warning); margin-bottom: 5px;
  display: flex; align-items: center; gap: 5px;
}

/* ── Checkboxes / Select-Items ───────────────────────── */
.select-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s;
  background: var(--surface);
}
.select-item:hover { border-color: var(--blue); }
.select-item.selected {
  border-color: var(--blue);
  background: var(--blue-light);
}
.select-cb {
  width: 18px; height: 18px;
  border: 2px solid var(--border);
  border-radius: 5px;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  color: transparent;
  transition: all 0.15s;
}
.select-item.selected .select-cb {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.select-title { font-size: 13.5px; font-weight: 600; margin-bottom: 2px; }
.select-desc  { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.select-item.selected .select-desc { color: var(--charcoal); }

/* Check list items */
.check-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
}
.check-item:last-child { border-bottom: none; }
.check-box {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-radius: 5px;
  flex-shrink: 0;
  margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: transparent;
  transition: all 0.15s;
}
.check-item.checked .check-box { background: var(--success); border-color: var(--success); color: #fff; }
.check-item.checked .check-text { text-decoration: line-through; color: var(--text-muted); }
.check-text { font-size: 14px; }

/* ── Product Cards ───────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin: var(--space-4) 0; }
.product-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.product-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); }
.product-card.selected {
  border-color: var(--blue);
  background: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(20,107,159,0.12);
}
.product-name { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.product-tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: 10px; font-weight: 700;
  padding: 2px 9px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}
.product-features { font-size: 12.5px; color: var(--text-secondary); line-height: 1.8; }
.product-card.selected .product-features { color: var(--charcoal); }

/* ── Mood Bar ────────────────────────────────────────── */
.mood-bar { display: flex; align-items: center; gap: var(--space-2); }
.mood-btn {
  width: 30px; height: 30px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border);
  background: var(--surface-2);
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.mood-btn:hover { transform: scale(1.15); border-color: var(--blue); }
.mood-btn.active { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-light); }

/* ── Progress Bar ────────────────────────────────────── */
.progress-bar {
  height: 5px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--blue-mid));
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

/* ── Einwand Overlay ─────────────────────────────────── */
.overlay-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30,43,50,0.35);
  z-index: 300;
  backdrop-filter: blur(2px);
}
.overlay-bg.open { display: block; }
.einwand-panel {
  position: fixed;
  top: 0; right: -490px;
  width: 460px;
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 400;
  transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.einwand-panel.open { right: 0; }
.ep-header {
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ep-header h2 { font-size: 17px; }
.ep-body { flex: 1; overflow-y: auto; padding: 14px 22px 22px; }
.ep-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
  overflow: hidden;
  background: var(--surface-2);
}
.ep-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  cursor: pointer;
  font-size: 13.5px; font-weight: 500;
  gap: var(--space-3);
  transition: background 0.1s;
}
.ep-q:hover { background: var(--border-light); }
.ep-chevron { font-size: 10px; color: var(--text-muted); transition: transform 0.2s; }
.ep-item.open .ep-chevron { transform: rotate(180deg); }
.ep-a {
  display: none;
  padding: 12px 14px 14px;
  font-size: 13.5px;
  color: var(--blue-dark);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  background: var(--blue-xlight);
}
.ep-item.open .ep-a { display: block; }
.ep-category {
  display: inline-block;
  background: var(--danger-light);
  color: var(--danger);
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 2px 8px; border-radius: var(--radius-full);
  margin-bottom: var(--space-2);
}

/* ── Step Navigation ─────────────────────────────────── */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-10);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}

/* ── Print Doc ───────────────────────────────────────── */
#pdoc { display: none; }
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: #fff !important; }
  .app-header, .app-sidebar, .app-main, .overlay-bg, .einwand-panel { display: none !important; }
  #pdoc { display: block !important; font-family: 'Inter', 'Segoe UI', sans-serif; font-size: 10.5pt; line-height: 1.6; color: #111; }
  .pd-page { padding: 16mm 20mm; page-break-after: always; }
  .pd-page:last-child { page-break-after: avoid; }
  .pd-letterhead { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 10pt; border-bottom: 2pt solid #146B9F; margin-bottom: 14pt; }
  .pd-logo-text { font-size: 17pt; font-weight: 700; color: #146B9F; letter-spacing: -0.02em; }
  .pd-logo-sub { font-size: 8pt; color: #777; margin-top: 2pt; }
  .pd-meta { font-size: 8.5pt; color: #555; text-align: right; line-height: 1.7; }
  .pd-stamp { display: inline-block; border: 1.5pt solid #146B9F; border-radius: 3pt; padding: 3pt 10pt; color: #146B9F; font-size: 8pt; font-weight: 700; letter-spacing: 0.5pt; margin-bottom: 12pt; }
  .pd-h1 { font-size: 14pt; font-weight: 700; color: #1E2B32; margin-bottom: 3pt; }
  .pd-h2 { font-size: 8.5pt; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8pt; color: #146B9F; margin: 12pt 0 4pt; border-bottom: 0.5pt solid #DDE4E9; padding-bottom: 2pt; }
  .pd-tbl { width: 100%; border-collapse: collapse; margin-bottom: 9pt; }
  .pd-tbl td { padding: 4pt 6pt; font-size: 9.5pt; border-bottom: 0.5pt solid #EEE; vertical-align: top; }
  .pd-tbl td:first-child { color: #555; width: 36%; font-weight: 600; }
  .pd-note { background: #F4F7F9; border: 0.5pt solid #DDE4E9; border-left: 3pt solid #146B9F; border-radius: 3pt; padding: 7pt 9pt; margin-bottom: 7pt; font-size: 9pt; line-height: 1.55; white-space: pre-wrap; }
  .pd-bedarf { background: #E8F3FB; border-left: 3pt solid #146B9F; border-radius: 3pt; padding: 7pt 9pt; margin-bottom: 5pt; font-size: 9pt; line-height: 1.6; }
  .pd-bedarf-t { font-weight: 700; color: #146B9F; margin-bottom: 2pt; font-size: 9pt; }
  .pd-widerruf { background: #FEF3E2; border: 0.5pt solid #F0C060; border-radius: 3pt; padding: 8pt 10pt; font-size: 9pt; line-height: 1.65; margin-bottom: 9pt; }
  .pd-sig { display: grid; grid-template-columns: 1fr 1fr; gap: 26pt; margin-top: 18pt; }
  .pd-sf { border-top: 1pt solid #999; padding-top: 4pt; font-size: 8pt; color: #666; }
  .pd-checks { margin-bottom: 9pt; }
  .pd-check { display: flex; align-items: flex-start; gap: 7pt; margin-bottom: 6pt; font-size: 9pt; line-height: 1.5; }
  .pd-cb { width: 9pt; height: 9pt; border: 1pt solid #555; flex-shrink: 0; margin-top: 1pt; }
  .pd-footer { margin-top: 12pt; padding-top: 7pt; border-top: 0.5pt solid #DDE4E9; font-size: 7.5pt; color: #888; text-align: center; line-height: 1.6; }
  .pd-editable { border: none; background: transparent; padding: 0; resize: none; font-size: 9pt; line-height: 1.55; color: #111; white-space: pre-wrap; width: 100%; font-family: 'Inter', 'Segoe UI', sans-serif; }
  .pd-edit-label { display: none !important; }
}

/* ── Utilities ───────────────────────────────────────── */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.w-full { width: 100%; }
.hidden { display: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--space-4); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--space-4); }

/* ── Stat Cards ──────────────────────────────────────── */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  box-shadow: var(--shadow-sm);
}
.stat-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); margin-bottom: var(--space-2); }
.stat-value { font-size: 28px; font-weight: 700; color: var(--text); line-height: 1; }
.stat-sub { font-size: 12px; color: var(--text-secondary); margin-top: var(--space-2); }
.stat-card.blue { border-left: 3px solid var(--blue); }
.stat-card.green { border-left: 3px solid var(--success); }
.stat-card.orange { border-left: 3px solid var(--warning); }
.stat-card.purple { border-left: 3px solid #7C3AED; }

/* ── Toast ───────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--charcoal-dark);
  color: #fff;
  padding: 11px 18px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  box-shadow: var(--shadow-lg);
  z-index: 500;
  display: flex; align-items: center; gap: var(--space-2);
  animation: slideUp 0.25s ease;
}
.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }
@keyframes slideUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; grid-template-areas: "header" "main"; }
  .app-sidebar { display: none; }
  .app-main { padding: var(--space-5) var(--space-4); }
  .form-grid-2, .form-grid-3, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .einwand-panel { width: 100%; right: -100%; }
}

@media (max-width: 500px) {
  .step-nav { flex-direction: column; gap: var(--space-3); }
  .page-header { flex-direction: column; align-items: flex-start; }
}
