/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0f1117;
  --bg-panel:    #161b27;
  --bg-card:     #1c2236;
  --bg-input:    #222840;
  --border:      #2a3354;
  --border-lite: #1e2845;

  --gold:        #c9a84c;
  --gold-lite:   #dfc27a;
  --gold-dark:   #8a6b2a;

  --text-primary:   #e8eaf0;
  --text-secondary: #8b93b0;
  --text-muted:     #555e7a;

  --green:  #3ecf8e;
  --yellow: #f9c748;
  --red:    #e05c6b;

  --radius:    8px;
  --radius-lg: 14px;
  --transition: 0.18s ease;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', system-ui, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Layout ───────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.site-header .container { display: flex; align-items: center; gap: 24px; }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.logo-mark {
  color: var(--gold);
  font-size: 1rem;
  filter: drop-shadow(0 0 6px rgba(201,168,76,.5));
}

.header-tagline { color: var(--text-muted); font-size: .85rem; letter-spacing: .03em; }

/* ── View: Landing ────────────────────────────────────────────────────────── */
.view--landing {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 120px);
  padding: 64px 24px;
}

.landing-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.landing-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -.03em;
}

.landing-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 52px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.landing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 720px) {
  .landing-cards       { grid-template-columns: 1fr; }
  .landing-title       { font-size: 2rem; }
}

/* ── Type Cards (landing) ─────────────────────────────────────────────────── */
.type-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 30px 26px 24px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: left;
  user-select: none;
  transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.type-card:hover {
  border-color: var(--gold-dark);
  background: #1a2035;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
}

.type-card-icon {
  width: 52px;
  height: 52px;
  color: var(--gold-dark);
  transition: color var(--transition);
}

.type-card-icon svg { width: 100%; height: 100%; }

.type-card:hover .type-card-icon { color: var(--gold-lite); }

.type-card-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.type-card-desc {
  font-size: .83rem;
  color: var(--text-muted);
  line-height: 1.45;
  flex: 1;
}

.type-card-arrow {
  align-self: flex-end;
  font-size: 1.3rem;
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
}

.type-card:hover .type-card-arrow {
  transform: translateX(5px);
  color: var(--gold);
}

/* ── View: Form ───────────────────────────────────────────────────────────── */
.view--form {
  flex: 1;
  padding-top: 32px;
  padding-bottom: 64px;
}

/* ── Form Header (Breadcrumb) ─────────────────────────────────────────────── */
.form-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.btn-back-landing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: .82rem;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}

.btn-back-landing:hover {
  border-color: var(--gold-dark);
  color: var(--gold-lite);
}

.form-type-badge {
  padding: 4px 14px;
  background: rgba(201,168,76,.1);
  border: 1px solid var(--gold-dark);
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--gold-lite);
}

/* ── App Grid ─────────────────────────────────────────────────────────────── */
.app-grid {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 32px;
  align-items: start;
}

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

/* ── Form Panel ───────────────────────────────────────────────────────────── */
.form-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ── Per-type forms ───────────────────────────────────────────────────────── */
.obj-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
}

.form-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

/* ── Fieldsets ────────────────────────────────────────────────────────────── */
fieldset {
  border: none;
  margin: 0;
}

fieldset legend {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.field-group {
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-lite);
  border-radius: var(--radius);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.field--narrow { flex: 0 0 90px; }
.field--plz    { flex: 0 0 90px; }

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

label {
  font-size: .8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.label-opt {
  font-size: .72rem;
  font-weight: 400;
  color: var(--text-muted);
  font-style: italic;
}

.legend-hint {
  font-size: .7rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

/* ── Inputs ───────────────────────────────────────────────────────────────── */
input[type="text"],
input[type="number"],
select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: .95rem;
  padding: 10px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
}

input::placeholder { color: var(--text-muted); }

input:focus,
select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.15);
}

input.error, select.error { border-color: var(--red); }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238b93b0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

/* ── Submit Button ────────────────────────────────────────────────────────── */
.btn-primary {
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
  border: none;
  border-radius: var(--radius);
  color: #0f1117;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  margin-top: 4px;
}

.btn-primary:hover {
  opacity: .92;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,168,76,.25);
}

.btn-primary:active  { transform: translateY(0); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ── Checkboxen ───────────────────────────────────────────────────────────── */
.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: .85rem;
  color: var(--text-secondary);
}

.checkbox-option input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-option:hover { color: var(--text-primary); }

/* ── Modernisierungs-Grid ─────────────────────────────────────────────────── */
.mod-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: opacity var(--transition);
}

.mod-grid.disabled { opacity: .35; pointer-events: none; }

.mod-item { display: flex; flex-direction: column; gap: 6px; }

.mod-label { font-size: .78rem; color: var(--text-secondary); font-weight: 500; }

.mod-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.mod-btn {
  flex: 1;
  padding: 7px 8px;
  background: var(--bg-input);
  border: none;
  border-right: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: .78rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.mod-btn:last-child { border-right: none; }

.mod-btn.active {
  background: rgba(201,168,76,.15);
  color: var(--gold-lite);
  font-weight: 600;
}

.mod-btn:hover:not(.active) { background: var(--bg-card); color: var(--text-secondary); }

/* ── Result Panel ─────────────────────────────────────────────────────────── */
.result-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

/* ── Empty / Loading ──────────────────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 260px;
  gap: 14px;
  color: var(--text-muted);
}

.empty-icon { font-size: 2rem; opacity: .2; color: var(--gold); }
.empty-text { font-size: .9rem; }

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 20px;
  min-height: 200px;
  color: var(--text-secondary);
}

.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Key Values ───────────────────────────────────────────────────────────── */
.result-address {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-lite);
}

.key-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

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

.kv-card {
  background: var(--bg-card);
  border: 1px solid var(--border-lite);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.kv-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.kv-marktwert::before { background: linear-gradient(90deg, var(--gold-dark), var(--gold)); }
.kv-beleihung::before { background: linear-gradient(90deg, #2a4a7f, #4a7adf); }

/* Secondary beleihung card */
.kv-secondary { opacity: 0.82; }
.kv-value--secondary { font-size: 1.45rem; }

.kv-label-sub {
  display: block;
  font-weight: 400;
  font-size: .65rem;
  color: var(--text-muted);
  margin-top: 2px;
  text-transform: none;
  letter-spacing: 0;
}

/* Price range band */
.kv-range {
  font-size: .72rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.kv-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.kv-value {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -.02em;
}

.kv-marktwert .kv-value { color: var(--gold-lite); }

/* ── Confidence ───────────────────────────────────────────────────────────── */
.confidence-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.confidence-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.confidence-badge.high   { background: rgba(62,207,142,.15); color: var(--green); }
.confidence-badge.medium { background: rgba(249,199,72,.15);  color: var(--yellow); }
.confidence-badge.low    { background: rgba(224,92,107,.15);  color: var(--red); }

.confidence-text { font-size: .82rem; color: var(--text-secondary); }

/* ── Result Detail Tabs ───────────────────────────────────────────────────── */
.detail-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.tab-btn {
  padding: 10px 18px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  margin-bottom: -1px;
}

.tab-btn:hover  { color: var(--text-secondary); }
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }

.tab-content        { display: none; }
.tab-content.active { display: block; }

/* ── Detail Table ─────────────────────────────────────────────────────────── */
.detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .87rem;
}

.detail-table tr                { border-bottom: 1px solid var(--border-lite); }
.detail-table tr:last-child     { border-bottom: none; }
.detail-table td                { padding: 10px 4px; vertical-align: top; }
.detail-table td:first-child    { color: var(--text-secondary); width: 60%; }
.detail-table td:last-child     { text-align: right; font-weight: 500; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.detail-table tr.highlight td   { color: var(--gold-lite); font-weight: 600; }

/* ── Lage Chart ───────────────────────────────────────────────────────────── */
.lage-chart      { display: flex; flex-direction: column; gap: 14px; }
.lage-item       { display: flex; align-items: center; gap: 12px; }
.lage-label      { width: 130px; font-size: .82rem; color: var(--text-secondary); flex-shrink: 0; }
.lage-bar-track  { flex: 1; height: 6px; background: var(--bg-input); border-radius: 3px; overflow: hidden; }
.lage-bar-fill   { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--gold-dark), var(--gold)); transition: width .6s cubic-bezier(.4,0,.2,1); }
.lage-score      { width: 28px; text-align: right; font-size: .85rem; font-weight: 600; color: var(--text-primary); }
.lage-distance   { width: 80px; font-size: .75rem; color: var(--text-muted); text-align: right; }

/* ── Sensitivity ──────────────────────────────────────────────────────────── */
.sensitivity-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-lite);
}

.sensitivity-title {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.sensitivity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }

.sensitivity-card { background: var(--bg-card); border: 1px solid var(--border-lite); border-radius: var(--radius); padding: 12px 14px; }

.sens-label { font-size: .72rem; color: var(--text-muted); margin-bottom: 6px; line-height: 1.3; }
.sens-value { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.sens-delta { font-size: .75rem; font-weight: 600; }
.sens-delta.pos { color: var(--green); }
.sens-delta.neg { color: var(--red); }

/* ── Hinweise ─────────────────────────────────────────────────────────────── */
.hinweise-details { margin-top: 20px; border-top: 1px solid var(--border-lite); padding-top: 16px; }
.hinweise-details summary { font-size: .8rem; color: var(--text-muted); cursor: pointer; user-select: none; }
.hinweise-details summary:hover { color: var(--text-secondary); }
.hinweise-list { list-style: none; margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.hinweise-list li { font-size: .8rem; color: var(--text-secondary); padding-left: 16px; position: relative; }
.hinweise-list li::before { content: '·'; position: absolute; left: 4px; color: var(--gold-dark); }

/* ── Datenbasis-Zeile ─────────────────────────────────────────────────────── */
.data-source-row {
  margin-top: 16px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-lite);
  border-radius: var(--radius);
  font-size: .75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.ds-label { font-weight: 600; color: var(--text-secondary); margin-right: 4px; }

/* ── Disclaimer ───────────────────────────────────────────────────────────── */
.disclaimer {
  margin-top: 14px;
  font-size: .72rem;
  color: var(--text-muted);
  line-height: 1.5;
  border-top: 1px solid var(--border-lite);
  padding-top: 14px;
}

/* ── Result Actions ───────────────────────────────────────────────────────── */
.result-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.btn-print,
.btn-new {
  padding: 9px 18px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: .8rem;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}

.btn-print:hover { border-color: var(--gold-dark); color: var(--gold-lite); }
.btn-new:hover   { border-color: var(--border);    color: var(--text-secondary); }

/* ── No-data hint ─────────────────────────────────────────────────────────── */
.no-data-hint {
  color: var(--text-muted);
  font-size: .85rem;
  padding: 12px 0;
}

/* ── Toast ────────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--red);
  border-radius: var(--radius);
  padding: 14px 20px;
  font-size: .85rem;
  color: var(--red);
  max-width: 360px;
  z-index: 999;
  animation: toastIn .2s ease, toastOut .3s ease 4.7s forwards;
}

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

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  padding: 16px 0;
  margin-top: auto;
}

.site-footer p { font-size: .75rem; color: var(--text-muted); text-align: center; }

/* ── Utilities ────────────────────────────────────────────────────────────── */
[hidden] { display: none !important; }
.mb-10   { margin-bottom: 10px; }
.mt-12   { margin-top: 12px; }

/* ── Wizard Step Indicator ────────────────────────────────────────────────── */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 6px;
}

.step-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.step-dot.active { background: var(--gold-dark); border-color: var(--gold); color: #0f1117; }
.step-dot.done   { background: rgba(62,207,142,.15); border-color: var(--green); color: var(--green); }

.step-line {
  flex: 1;
  height: 1.5px;
  background: var(--border);
}

.step-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.form-step { display: none; }
.form-step.active { display: flex; flex-direction: column; gap: 16px; }

.step-nav {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.step-nav .btn-primary { flex: 1; justify-content: center; }

.btn-secondary {
  padding: 11px 20px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn-secondary:hover { border-color: var(--gold-dark); color: var(--text-secondary); }

/* ── Info Tooltip ─────────────────────────────────────────────────────────── */
.info-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 9px; font-weight: 700; font-style: normal;
  cursor: help;
  position: relative;
  margin-left: 5px;
  vertical-align: middle;
  flex-shrink: 0;
}

.info-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e2845;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 11.5px; font-weight: 400;
  padding: 8px 12px;
  border-radius: var(--radius);
  white-space: pre-wrap;
  width: 230px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 200;
  line-height: 1.5;
}

.info-icon:hover::after { opacity: 1; }

/* Landing grid 4 cards */
@media (min-width: 721px) {
  .landing-cards { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) and (min-width: 541px) {
  .landing-cards { grid-template-columns: repeat(2, 1fr); }
}

/* ── Print / PDF ──────────────────────────────────────────────────────────── */
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: #fff; color: #111; font-family: Georgia, serif; }
  .site-header, .site-footer, .form-panel, .form-header,
  .detail-tabs, .btn-primary, .btn-print, .btn-new,
  .loading-state, .hinweise-details { display: none !important; }
  .app-grid { display: block; }
  .result-panel { border: none; padding: 0; background: #fff; }
  .kv-card { border: 1px solid #ccc; background: #f9f9f9; }
  .kv-value { color: #111 !important; }
  .kv-marktwert .kv-value { color: #7a5c1a !important; }
  .tab-content { display: block !important; margin-bottom: 16px; }
  .detail-table td { color: #111 !important; border-bottom: 1px solid #eee; }
  .confidence-badge { border: 1px solid #ccc; }
  .sensitivity-card { border: 1px solid #ccc; background: #f9f9f9; }
  .sens-value { color: #111 !important; }
  .sens-delta.pos { color: #1a7a4a !important; }
  .sens-delta.neg { color: #7a1a22 !important; }
  .disclaimer { color: #555; font-size: .65rem; margin-top: 12px; }
  .lage-bar-fill { background: #8a6b2a !important; }
  .data-source-row { border: 1px solid #ccc; color: #555; }
}
