/* ============================================
   SK-Strategies BP-Tool – Design System
   ============================================ */

:root {
  --primary: #1C4927;
  --primary-dark: #00461E;
  --primary-light: #2d6b3f;
  --accent: #F06432;
  --accent-light: #f5854e;
  --success: #2ecc71;
  --danger: #e74c3c;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --border: #d1e8db;
  --text: #101828;
  --text-muted: #667085;
  --shadow: 0 4px 20px rgba(0,70,30,0.10);
  --shadow-lg: 0 8px 40px rgba(0,70,30,0.15);
  --radius: 12px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
}

/* ── Header ─────────────────────────────────── */
.header {
  background: var(--primary);
  color: white;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  border-top: 5px solid var(--accent);
}
.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.logo-sk { color: var(--accent); }
.logo-strat { color: white; }
.header-title {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── Progress Bar ────────────────────────────── */
.progress-bar-container {
  background: var(--primary-dark);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 100%;
}
.progress-bar-inner {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 3px;
  transition: width 0.4s ease;
}
.step-label {
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  white-space: nowrap;
  min-width: 90px;
  text-align: right;
}

/* ── Main Layout ─────────────────────────────── */
.main-container {
  max-width: 860px;
  margin: 32px auto 120px;
  padding: 0 20px;
}

/* ── Form Steps ──────────────────────────────── */
.form-step {
  display: none;
  animation: fadeIn 0.3s ease;
}
.form-step.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Step Header ─────────────────────────────── */
.step-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--accent);
}
.step-number {
  font-size: 36px;
  font-weight: 900;
  color: var(--accent);
  opacity: 1;
  line-height: 1;
  min-width: 52px;
}
.step-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.step-desc {
  color: var(--text-muted);
  font-size: 14px;
}

/* ── Form Grid ───────────────────────────────── */
.form-grid {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.form-group {
  flex: 1 1 260px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group.full { flex: 1 1 100%; }

label {
  font-weight: 600;
  font-size: 13px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
select,
textarea {
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #fafbfd;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(240,100,50,0.10);
  background: white;
}

textarea { resize: vertical; min-height: 80px; }

.hint {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: -4px;
}

/* ── Radio Cards ─────────────────────────────── */
.radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.radio-card {
  cursor: pointer;
  position: relative;
}
.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
}
.radio-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 24px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: #fafbfd;
  transition: all 0.2s;
  min-width: 140px;
  text-align: center;
}
.radio-card.small .radio-content {
  padding: 12px 20px;
  min-width: 100px;
}
.radio-content .radio-icon { font-size: 24px; }
.radio-content strong { font-size: 14px; color: var(--primary); }
.radio-content small { font-size: 11px; color: var(--text-muted); }

.radio-card input:checked + .radio-content {
  border-color: var(--accent);
  background: #ECFDF3;
  box-shadow: 0 0 0 3px rgba(240,100,50,0.15);
}

/* ── Competitor Row ──────────────────────────── */
.competitor-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.competitor-row input { margin: 0; }

/* ── Kosten Section ──────────────────────────── */
.kosten-section {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.kosten-section h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  font-weight: 700;
  margin: 20px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.kosten-section h3:first-child { margin-top: 0; }

.kosten-grid { display: flex; flex-direction: column; gap: 8px; }

.kosten-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.kosten-row:hover { background: #f5f7fd; }
.kosten-row label {
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  flex: 1;
}

.input-euro {
  display: flex;
  align-items: center;
  gap: 8px;
}
.input-euro input {
  width: 120px;
  text-align: right;
  padding: 8px 10px;
}
.input-euro span {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  min-width: 20px;
}

.summen-box {
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  font-weight: 600;
}
.summe-wert {
  font-size: 20px;
  color: var(--accent-light);
}

/* ── Investitionen ───────────────────────────── */
.inv-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.inv-monat {
  font-size: 13px;
  padding: 8px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--text);
}
.btn-remove-inv {
  background: #fee2e2;
  border: none;
  color: var(--danger);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}
.btn-remove-inv:hover { background: #fecaca; }

.btn-add-inv {
  background: none;
  border: 2px dashed var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  margin-top: 8px;
  transition: all 0.2s;
}
.btn-add-inv:hover {
  background: rgba(28,73,39,0.05);
  border-color: var(--primary);
}

/* ── Umsatzplanung (neu: Menge × Preis) ──────── */
.umsatz-card {
  background: #fafbfd;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 14px;
}
.umsatz-card-top {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.umsatz-preis-wrap { min-width: 0; }
.umsatz-mengen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  background: white;
  border: 1px solid #eef2f9;
  border-radius: 6px;
  padding: 12px;
}
.umsatz-menge-block { display: flex; flex-direction: column; gap: 4px; }
.umsatz-menge-block label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.umsatz-result {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: var(--bg);
  border-radius: 4px;
  padding: 3px 7px;
  margin-top: 2px;
}

/* ── Mitarbeiterplanung ──────────────────────── */
.mitarbeiter-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.umsatz-summen {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}
.umsatz-summe-col {
  background: var(--primary);
  color: white;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-align: center;
}
.sum-label { font-size: 11px; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.5px; }
.sum-val { font-size: 20px; font-weight: 700; color: var(--accent-light); margin-top: 4px; }

/* ── Navigation ──────────────────────────────── */
.form-navigation {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 2px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.10);
  z-index: 50;
}
.nav-spacer { flex: 1; }

.btn {
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: inherit;
}
.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--border);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); background: rgba(28,73,39,0.05); }

.btn-generate {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  font-size: 16px;
  padding: 14px 40px;
  box-shadow: 0 4px 18px rgba(240,100,50,0.40);
  letter-spacing: 0.01em;
}
.btn-generate:hover { transform: translateY(-2px); box-shadow: 0 7px 24px rgba(240,100,50,0.52); }

/* ── Modal ───────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  backdrop-filter: blur(4px);
}
.modal-content {
  background: white;
  border-radius: var(--radius);
  padding: 40px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.modal-icon { font-size: 56px; margin-bottom: 16px; }
.modal-content h2 { color: var(--primary); margin-bottom: 12px; }
.modal-content p { color: var(--text-muted); margin-bottom: 16px; }

.output-path {
  background: #f0f2f7;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-family: monospace;
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 20px;
}
.file-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.file-item {
  background: #f0f8f4;
  border: 1px solid #a8dfc0;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
}

/* ── Loading ─────────────────────────────────── */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,70,30,0.90);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  backdrop-filter: blur(6px);
}
.loading-content {
  text-align: center;
  color: white;
}
.loading-content p { font-size: 18px; margin: 16px 0 8px; }
.loading-content small { color: rgba(255,255,255,0.6); }

.spinner {
  width: 56px;
  height: 56px;
  border: 5px solid rgba(255,255,255,0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Progress Steps ──────────────────────────── */
.progress-bar-container {
  background: var(--primary-dark);
  padding: 0;
}
.progress-steps {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: stretch;
}
.progress-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 14px 0;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  font-weight: 500;
  position: relative;
  cursor: default;
  transition: color 0.3s;
}
.progress-step + .progress-step::before {
  content: '›';
  margin-right: 16px;
  color: rgba(255,255,255,0.2);
}
.progress-step.active { color: white; font-weight: 600; }
.progress-step.done { color: rgba(255,255,255,0.55); }
.ps-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  transition: background 0.3s, box-shadow 0.3s;
}
.progress-step.active .ps-dot {
  background: var(--accent);
  color: white;
  box-shadow: 0 0 10px rgba(240,100,50,0.5);
}
.progress-step.done .ps-dot {
  background: rgba(255,255,255,0.28);
}

/* ── Section Divider ─────────────────────────── */
.section-divider {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 24px 28px 0;
  background: var(--surface);
  margin-top: -1px;
}

/* ── CV Upload ───────────────────────────────── */
.cv-upload-section {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  margin-top: 20px;
  border: 2px solid var(--border);
}
.cv-upload-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.cv-icon { font-size: 32px; line-height: 1; }
.cv-upload-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cv-upload-header p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.badge-optional {
  font-size: 10px;
  font-weight: 600;
  background: #ECFDF3;
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.cv-dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.cv-dropzone:hover, .cv-dropzone.dragover {
  border-color: var(--accent);
  background: #fff5f0;
}
.cv-dropzone.field-error {
  border-color: #d92d20;
  background: #fff5f5;
}
.cv-dropzone-inner {
  padding: 32px;
  text-align: center;
}
.cv-drop-icon {
  font-size: 28px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.cv-dropzone-inner p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.cv-hint { font-size: 13px !important; }
.cv-privacy {
  font-size: 12px !important;
  color: var(--primary) !important;
  margin-top: 12px !important;
  opacity: 0.7;
}
.btn-link {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  font-size: inherit;
  padding: 0;
  text-decoration: underline;
}
.cv-preview {
  background: #ECFDF3;
  border: 1.5px solid #a7f3d0;
  border-radius: var(--radius);
  padding: 14px 18px;
}
.cv-preview-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cv-check {
  font-size: 20px;
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}
.cv-preview strong { font-size: 14px; color: var(--text); display: block; }
.cv-extracted { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.btn-cv-remove {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
}
.btn-cv-remove:hover { background: rgba(0,0,0,0.06); }

/* ── Interview ───────────────────────────────── */
.interview-loading {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}
.interview-loading p { margin-top: 16px; font-size: 15px; }

.interview-question {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  border-left: 4px solid var(--accent);
  animation: fadeIn 0.4s ease;
}
.interview-q-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.interview-q-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.5;
}
.interview-q-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-style: italic;
}
/* Priority-Varianten der Interview-Karte */
.interview-question.interview-priority-muss {
  border-left-color: #d92d20;
}
.interview-q-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.interview-q-header .interview-q-label {
  margin-bottom: 0;
}
.interview-priority-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 20px;
}
.interview-priority-muss {
  background: #fef3f2;
  color: #d92d20;
  border: 1px solid #fda29b;
}
.interview-priority-qualitaet {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #86efac;
}

/* ── Generation Progress ─────────────────────── */
.gen-progress {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 400px;
  margin: 0 auto;
  text-align: left;
}
.gen-step {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: 12px;
  opacity: 0.35;
  transition: opacity 0.4s;
}
.gen-step.active { opacity: 1; }
.gen-step.done { opacity: 0.6; }
.gen-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  flex-shrink: 0;
  transition: background 0.3s;
}
.gen-step.active .gen-dot { background: var(--accent); box-shadow: 0 0 8px rgba(240,100,50,0.6); }
.gen-step.done .gen-dot { background: #4ade80; }
.gen-step span { font-size: 14px; color: white; }
.gen-bar { width: 80px; height: 4px; background: rgba(255,255,255,0.15); border-radius: 2px; overflow: hidden; }
.gen-fill { height: 100%; width: 0%; background: var(--accent); border-radius: 2px; transition: width 2s ease; }
.gen-step.active .gen-fill { width: 70%; }
.gen-step.done .gen-fill { width: 100%; background: #4ade80; }

.loading-logo { margin-bottom: 8px; }

/* ── Nav Info ────────────────────────────────── */
.nav-info {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Field Error ─────────────────────────────── */
.field-error {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px rgba(231,76,60,0.12) !important;
}

/* ── Dokument-Ansicht ────────────────────────── */
.dokument-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 64px);
  max-width: 1200px;
  margin: 0 auto;
}

.dok-sidebar {
  background: var(--primary-dark);
  padding: 28px 0;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}
.dok-sidebar-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  padding: 0 20px 16px;
}
.dok-chapter-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.dok-chapter-link:hover { color: white; background: rgba(255,255,255,0.05); }
.dok-chapter-link.active {
  color: white;
  background: rgba(255,255,255,0.08);
  border-left-color: var(--accent);
}
.dok-chapter-num {
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  min-width: 18px;
}

.dok-sidebar-actions {
  padding: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dok-main {
  padding: 40px 48px;
  background: var(--bg);
}

.dok-header {
  margin-bottom: 32px;
}
.dok-header h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 6px;
}
.dok-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.dok-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  background: white;
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}
.dok-toolbar-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  margin-right: 4px;
}
.btn-dok {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--text);
  transition: all 0.2s;
  font-family: inherit;
}
.btn-dok:hover { border-color: var(--primary); color: var(--primary); }
.btn-dok.active { background: var(--primary); color: white; border-color: var(--primary); }

.dok-content {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 600px;
  padding: 48px 52px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  outline: none;
}
.dok-content h1 { font-size: 26px; font-weight: 800; color: var(--primary-dark); margin: 32px 0 12px; }
.dok-content h2 { font-size: 20px; font-weight: 700; color: var(--primary); margin: 28px 0 10px; border-bottom: 2px solid var(--border); padding-bottom: 8px; }
.dok-content h3 { font-size: 16px; font-weight: 700; color: var(--text); margin: 20px 0 8px; }
.dok-content p { margin-bottom: 14px; }
.dok-content ul, .dok-content ol { margin: 12px 0 14px 24px; }
.dok-content li { margin-bottom: 6px; }
.dok-content strong { color: var(--primary-dark); }
.dok-content[contenteditable="true"] { border: 2px solid var(--accent); cursor: text; }

/* KI-Optimierungsleiste */
.ai-optimize-bar {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-dark);
  border-radius: 14px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  z-index: 100;
  max-width: 600px;
  width: 90%;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.ai-bar-icon { font-size: 20px; flex-shrink: 0; }
.ai-bar-input {
  flex: 1;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 8px 12px;
  color: white;
  font-size: 14px;
  font-family: inherit;
}
.ai-bar-input::placeholder { color: rgba(255,255,255,0.4); }
.ai-bar-input:focus { outline: none; border-color: var(--accent); }
.btn-ai-optimize {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: background 0.2s;
}
.btn-ai-optimize:hover { background: var(--accent-light); }
.btn-ai-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

/* ── GZ-only fields ──────────────────────────── */
.gz-only { transition: opacity 0.3s; }

/* ── Badge Required ──────────────────────────── */
.badge-required {
  font-size: 10px;
  font-weight: 700;
  background: #fff0e6;
  color: #b54708;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid #fdd8bd;
}

/* ── Sprachperspektive-Selector ──────────────── */
.perspektive-selector {
  margin-bottom: 24px;
}
.perspektive-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.perspektive-options {
  display: flex;
  gap: 12px;
}
.perspektive-option { cursor: pointer; flex: 1; }
.perspektive-option input { display: none; }
.perspektive-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .15s, background .15s;
  cursor: pointer;
  text-align: center;
}
.perspektive-icon { font-size: 22px; }
.perspektive-card strong { font-size: 14px; color: var(--text); }
.perspektive-card em { font-size: 11px; color: var(--text-muted); font-style: normal; }
.perspektive-option input:checked + .perspektive-card {
  border-color: var(--accent);
  background: #fff8f4;
}

/* ── Radio-Option ────────────────────────────── */
.radio-group { display: flex; gap: 16px; flex-wrap: wrap; }
.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #fff;
  transition: border-color .15s, background .15s;
}
.radio-option input { accent-color: var(--accent); }
.radio-option:has(input:checked) { border-color: var(--accent); background: #fff8f4; }

/* ── Info-Box ────────────────────────────────── */
.info-box {
  background: #f0faf4;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--primary);
  line-height: 1.5;
}

/* ── Hint-Link ───────────────────────────────── */
.hint-link {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 500;
}
.hint-link:hover { color: var(--accent-light); }

/* ── Finanz-Summe ────────────────────────────── */
.finanz-summe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0faf4;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-muted);
}
.finanz-summe strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

/* ── B2X Selector ────────────────────────────── */
.b2x-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.b2x-option {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
  padding: 7px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #fff;
  transition: border-color .15s, background .15s;
}
.b2x-option input { accent-color: var(--accent); }
.b2x-option:has(input:checked) { border-color: var(--accent); background: #fff8f4; }

/* ── Zielgruppe-Hint ─────────────────────────── */
.zielgruppe-hint {
  background: #f5f6f8;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 640px) {
  /* Progress Steps: nur Dots anzeigen, kein horizontaler Scroll */
  .progress-bar-container { overflow: hidden; }
  .progress-steps { padding: 0 8px; justify-content: space-around; }
  .progress-step { padding: 12px 6px; gap: 6px; }
  .progress-step > span { display: none; }
  .progress-step + .progress-step::before { margin-right: 6px; }

  .competitor-row { grid-template-columns: 1fr; }
  .inv-row { grid-template-columns: 1fr 1fr; }
  .inv-row .inv-nutzung, .inv-row .inv-monat { display: none; }
  .umsatz-card-top { grid-template-columns: 1fr auto; }
  .umsatz-mengen-grid { grid-template-columns: 1fr; }
  .mitarbeiter-row { grid-template-columns: 1fr auto; }
  .radio-group { flex-direction: column; }
  .form-grid { padding: 20px; }
  .step-header { padding: 16px 20px; }
  .step-number { font-size: 28px; }
}

/* ═══════════════════════════════════════════════
   NEUE KOMPONENTEN (Refactor 2)
   ═══════════════════════════════════════════════ */

/* ── KV Auto-Berechnung ──────────────────────── */
.input-euro-with-action {
  display: flex;
  gap: 8px;
  align-items: center;
}
.input-euro-with-action .input-euro { flex: 1; }
.btn-toggle-manual {
  background: #f0faf4;
  border: 1.5px solid var(--primary-light);
  color: var(--primary);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  height: 44px;
}
.btn-toggle-manual:hover { background: #e0f5e8; }
.btn-toggle-manual.active { background: var(--accent); color: white; border-color: var(--accent); }
.badge-auto {
  display: inline-block;
  background: #e0f5e8;
  color: var(--primary);
  border-radius: 4px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 6px;
}

/* ── Rechtsform ──────────────────────────────── */
.rechtsform-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rechtsform-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: white;
  transition: all 0.15s;
  user-select: none;
}
.rechtsform-option input[type=radio] { display: none; }
.rechtsform-option:has(input:checked) {
  border-color: var(--accent);
  background: #fff8f4;
  color: var(--primary);
  font-weight: 700;
}
.rechtsform-option:hover { border-color: var(--primary-light); }

/* ── Add/Remove Buttons ──────────────────────── */
.btn-add-row {
  background: none;
  border: 2px dashed var(--primary-light);
  color: var(--primary);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: all 0.18s;
  font-family: inherit;
  margin-top: 6px;
}
.btn-add-row:hover { background: rgba(28,73,39,0.05); border-color: var(--primary); }
.btn-remove-row {
  background: #fee2e2;
  border: none;
  color: #b91c1c;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 13px;
  flex-shrink: 0;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-remove-row:hover { background: #fecaca; }

/* ── Investitionen (dynamisch) ───────────────── */
.inv-dyn-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr 90px 90px 1.4fr 32px;
  gap: 8px;
  align-items: end;
  padding: 10px 12px;
  background: #fafbfd;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
}
.inv-dyn-row label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 4px;
  display: block;
}
.inv-dyn-row .inv-field { display: flex; flex-direction: column; }
.gwg-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  height: 32px;
  margin-top: 2px;
}
.gwg-sofort  { background: #d1fae5; color: #065f46; }
.gwg-gwg     { background: #dbeafe; color: #1e40af; }
.gwg-sammel  { background: #fef9c3; color: #854d0e; }
.gwg-normal  { background: #f3f4f6; color: #4b5563; }

.gwg-info-box {
  background: #f8fdf9;
  border: 1px solid var(--primary-light);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text);
  margin: 10px 0;
}
.gwg-info-box ul {
  margin: 6px 0 8px 16px;
  padding: 0;
}
.gwg-info-box li { margin-bottom: 3px; }

/* ── Betriebskosten Custom Rows ──────────────── */
.bk-custom-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
  background: #f9fafb;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}
.bk-row-top {
  display: flex;
  gap: 8px;
  align-items: center;
}
.bk-row-top input[type=text] {
  flex: 1;
  padding: 8px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: white;
  transition: border-color 0.2s;
}
.bk-row-top input[type=text]:focus { outline: none; border-color: var(--primary); }
.bk-custom-typ {
  padding: 8px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  background: white;
  cursor: pointer;
  white-space: nowrap;
}
.bk-custom-typ:focus { outline: none; border-color: var(--primary); }
.bk-row-fields {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-left: 2px;
}
.bk-field-pct,
.bk-field-menge {
  display: flex;
  gap: 8px;
  align-items: center;
}
.input-pct {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  overflow: hidden;
}
.input-pct input {
  width: 70px;
  padding: 8px 8px;
  border: none;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: transparent;
}
.input-pct input:focus { outline: none; }
.input-pct span {
  padding: 0 10px;
  font-size: 13px;
  color: #6b7280;
  border-left: 1.5px solid var(--border);
  background: #f3f4f6;
  height: 100%;
  display: flex;
  align-items: center;
}
.bk-custom-kanal {
  padding: 8px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  background: white;
  cursor: pointer;
  max-width: 180px;
}
.bk-custom-kanal:focus { outline: none; border-color: var(--primary); }
.bk-menge-sep {
  font-size: 16px;
  color: #9ca3af;
  padding: 0 2px;
}

/* ── Umsatz-Kanäle (Multi-Period) ────────────── */
.umsatz-kanal-wrap {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.umsatz-kanal-wrap:hover { border-color: var(--primary-light); box-shadow: 0 2px 12px rgba(28,73,39,0.07); }

/* Header: 2 Zeilen */
.umsatz-kanal-header {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #f8fdf9;
  border-bottom: 1.5px solid var(--border);
}

/* Zeile 1: Kanalname + Remove-Button */
.umsatz-kanal-row1 {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--border);
}

/* Zeile 2: Typ-Selector */
.umsatz-kanal-row2 {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 10px;
}
.umsatz-kanal-row2 label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}

.umsatz-kanal-wrap .kanal-body {
  padding: 14px 14px 10px;
}

.uk-bezeichnung {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  color: var(--text);
  background: white;
  min-width: 0;
}
.uk-bezeichnung:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(28,73,39,0.07); }

.btn-remove-kanal {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: #fff5f5;
  border: 1.5px solid #fecaca;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #dc2626;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn-remove-kanal:hover { background: #fee2e2; border-color: #dc2626; }

.umsatz-kanal-header select,
.umsatz-kanal-typ {
  padding: 7px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  background: white;
  color: var(--text);
  cursor: pointer;
  flex: 1;
  max-width: 320px;
}
.umsatz-kanal-header select:focus,
.umsatz-kanal-typ:focus { outline: none; border-color: var(--primary); }

.uk-preis-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px;
  background: #f8fdf9;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.umsatz-perioden-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.umsatz-periode { display: flex; flex-direction: column; gap: 4px; }
.umsatz-periode > label {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.umsatz-periode > label small {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
}

/* Schlanker Input für Perioden-Felder (ohne Unit-Wrapper) */
.periode-input {
  width: 100%;
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: white;
  color: var(--text);
  transition: border-color 0.2s;
  text-align: right;
  -moz-appearance: textfield;
}
.periode-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(28,73,39,0.07);
}
.periode-input::-webkit-outer-spin-button,
.periode-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.umsatz-kanal-summe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: 12px;
  color: var(--text-muted);
  background: #f0faf4;
  border-radius: 0 0 8px 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  margin: 0 -14px -10px;
}
.umsatz-kanal-summe .summe-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: var(--primary);
  margin-right: 4px;
}
.umsatz-kanal-summe .summe-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.umsatz-kanal-summe .summe-item span { color: var(--text-muted); font-size: 11px; }
.umsatz-kanal-summe strong { color: var(--primary); font-weight: 700; }

.umsatz-gesamt-box {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--primary);
  color: white;
  border-radius: 10px;
  padding: 14px 20px;
  margin-top: 8px;
  margin-bottom: 16px;
}
.ug-col { display: flex; flex-direction: column; gap: 2px; }
.ug-label { font-size: 11px; opacity: 0.7; text-transform: uppercase; letter-spacing: .05em; }
.ug-val { font-size: 18px; font-weight: 700; color: #ECFDF3; }

/* ── Investitionen: Tabellenkopf ──────────────── */
.inv-table-wrap { margin: 4px 0 4px; }
.inv-table-header {
  display: grid;
  grid-template-columns: 2fr 1.2fr 90px 90px 1.4fr 32px;
  gap: 8px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  background: #f0faf4;
  border-radius: 6px 6px 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
}
.inv-preis-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.input-with-unit {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: white;
}
.input-with-unit input {
  flex: 1;
  border: none;
  padding: 10px 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  min-width: 0;
}
.input-with-unit input:focus { outline: none; }
.input-with-unit span {
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: #f5f6f8;
  white-space: nowrap;
  border-left: 1px solid var(--border);
  height: 100%;
  display: flex;
  align-items: center;
}

/* ── GWG-Info Box ─────────────────────────────── */
.gwg-rules { margin-top: 8px; display: flex; flex-direction: column; gap: 5px; }
.gwg-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
}
.gwg-rule .gwg-badge { min-width: 120px; text-align: center; }

/* ── BK Direkte Kosten Header ─────────────────── */
.bk-direkt-header {
  padding: 10px 0 8px;
  margin-top: 4px;
}
.bk-direkt-header strong {
  font-size: 14px;
  color: var(--primary);
}

/* ── Umsatz: Kanal Name Input & Typ Select ────── */
.umsatz-kanal-name {
  flex: 1;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: white;
  min-width: 0;
}
.umsatz-kanal-name:focus { outline: none; border-color: var(--primary); }

/* ── Umsatz: Multi-Felder Periode (Preis×Menge / Kurs) */
.umsatz-periode-multi {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.umsatz-mult {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  line-height: 1;
}
.umsatz-periode-multi .input-euro input { font-size: 12px; padding: 7px 8px; }
.umsatz-periode-multi .input-euro span  { font-size: 11px; padding: 0 7px; }

/* ── Umsatz Gesamt-Box: neues Layout ──────────── */
.umsatz-gesamt-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}
.ugsatz-gesamt-col {
  flex: 1;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ugsatz-gesamt-col span {
  font-size: 11px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ugsatz-gesamt-col strong {
  font-size: 17px;
  font-weight: 700;
  color: #ECFDF3;
}

@media (max-width: 640px) {
  .inv-dyn-row { grid-template-columns: 1fr 1fr; }
  .inv-table-header { display: none; }
  .umsatz-perioden-grid { grid-template-columns: 1fr 1fr 1fr; }
  .umsatz-kanal-header { flex-direction: column; }
  .rechtsform-grid { flex-direction: column; }
  .umsatz-gesamt-grid { flex-direction: column; }
}

/* ════════════════════════════════════════════════
   HELP SYSTEM – ? Button + Slide-In Panel
   ════════════════════════════════════════════════ */

/* ── Help-Button (?)-Icon ────────────────────── */
.help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  margin-left: 6px;
  vertical-align: middle;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.15s;
  position: relative;
  top: -1px;
  line-height: 1;
}
.help-btn:hover {
  background: var(--accent);
  transform: scale(1.15);
}
.help-btn:focus { outline: none; box-shadow: 0 0 0 3px rgba(240,100,50,0.3); }

/* ── Backdrop ────────────────────────────────── */
.help-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.help-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── Panel ───────────────────────────────────── */
.help-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 92vw;
  background: white;
  z-index: 201;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 32px rgba(0,70,30,0.18);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.help-panel.open {
  transform: translateX(0);
}

/* ── Panel Header ────────────────────────────── */
.help-panel-header {
  background: var(--primary);
  color: white;
  padding: 18px 20px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-shrink: 0;
}
.help-panel-icon {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}
.help-panel-title {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
.help-panel-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}
.help-panel-close:hover { background: rgba(255,255,255,0.28); }

/* ── Panel Body ──────────────────────────────── */
.help-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ── Help Sections ───────────────────────────── */
.help-section {}

.help-section-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.help-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #f0f0f0;
}

.help-erklaerung {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  background: #f8fdf9;
  border-left: 3px solid var(--primary);
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
}

.help-tipps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.help-tipps-list li {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  padding-left: 20px;
  position: relative;
}
.help-tipps-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 12px;
}

.help-beispiel {
  font-size: 13px;
  line-height: 1.6;
  color: #374151;
  background: #fffbf5;
  border: 1px solid #fde68a;
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  white-space: pre-line;
  font-style: italic;
}

/* ── Panel Footer-Spacing ────────────────────── */
.help-panel-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.help-panel-footer p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .help-panel {
    width: 100vw;
    max-width: 100vw;
    top: auto;
    height: 75vh;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
  }
  .help-panel.open { transform: translateY(0); }
}

/* ── Team-Gründung & Partner ────────────────────────────── */
.team-details-inner {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.partner-names-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Karte pro Mitgründer */
.partner-name-row {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.partner-name-row:hover { border-color: var(--primary-light); }

.partner-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--primary);
  color: white;
}
.partner-label-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: 0.85;
}
.partner-label-name {
  font-size: 13px;
  font-weight: 600;
}

/* Eingabebereich: Vorname + Nachname nebeneinander */
.partner-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.partner-input-group {
  padding: 12px 14px;
}
.partner-input-group:first-child {
  border-right: 1px solid var(--border);
}
.partner-input-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 5px;
}
.partner-input-group input {
  width: 100%;
  font-size: 14px;
  padding: 8px 10px;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  background: var(--surface);
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.partner-input-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(28,73,39,0.08);
}

/* ── CV-Slots ────────────────────────────────────────────── */
.cv-slots-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cv-slot {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.cv-slot-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.cv-slot-person {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

.cv-slot-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--primary);
  color: white;
  font-weight: 500;
}

.cv-slot > .cv-dropzone,
.cv-slot > .cv-preview {
  margin: 0;
  border-radius: 0;
  border: none;
}

@media (max-width: 560px) {
  .partner-inputs {
    grid-template-columns: 1fr;
  }
  .partner-input-group:first-child {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .umsatz-perioden-grid {
    grid-template-columns: 1fr 1fr;
  }
  .umsatz-kanal-header select,
  .umsatz-kanal-typ { max-width: 100%; }
}

/* ── Missing-Value Warning Dialog ───────────────────────── */
#missingValueDialog {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mvd-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.mvd-box {
  position: relative;
  background: white;
  border-radius: 14px;
  padding: 28px 28px 24px;
  max-width: 520px;
  width: calc(100% - 32px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  max-height: 80vh;
  overflow-y: auto;
}
.mvd-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 18px;
}
.mvd-icon { font-size: 22px; }
.mvd-intro {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}
.mvd-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}
.mvd-list li {
  padding: 10px 14px;
  background: #fffbf0;
  border: 1px solid #fde68a;
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
}
.mvd-list li strong {
  display: block;
  color: var(--text);
  margin-bottom: 2px;
}
.mvd-list li span { color: var(--text-muted); }
.mvd-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.mvd-back {
  background: white;
  border: 1.5px solid var(--border);
  color: var(--text);
}
.mvd-back:hover { border-color: var(--primary); color: var(--primary); }

/* ── Validation Error Dialog ─────────────────────────────── */
#validationErrorDialog {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mvd-header--error { background: #b91c1c; }
.ved-list .ved-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #fee2e2;
}
.ved-list .ved-item:last-child { border-bottom: none; }
.ved-icon {
  color: #b91c1c;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
