/* ================================================================
   Balkonkraftwerk Notstrom-Rechner — Styles
   Wizard-Layout identisch zu Ertragsrechner/Amortisationsrechner,
   plus rechnerspezifische Blöcke (Geräte-Karten, Verdict, Usage,
   Szenarien, Tipps).
   Farbschema nach homeandsmart.de:
     Boston Blue (#378CB5) = Primär · Warm Coffee (#816050) = Interaktion
     Golden Grass (#D5A91A) = Akzent
   Typografie: Inter · mobile-first · kompakt für Iframe-Einbettung
   ================================================================ */

:root {
  --c-primary:       #378CB5;
  --c-primary-dark:  #155A7B;
  --c-primary-light: #EAF1F6;
  --c-primary-mid:   #96B7D2;

  --c-interact:      #816050;
  --c-interact-dark: #6A4E41;
  --c-interact-light:#9F8273;

  --c-accent:        #D5A91A;
  --c-accent-light:  #F6E6A8;

  --c-alert:   #C74333;
  --c-success: #78B330;

  --c-text:       #222222;
  --c-text-soft:  #555555;
  --c-text-mute:  #8A8A8A;
  --c-bg:         #F8FAFC;
  --c-card:       #FFFFFF;
  --c-border:     #E3E3E3;
  --c-border-strong: #C4C4C4;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(34, 34, 34, 0.05);
  --shadow:    0 4px 12px rgba(34, 34, 34, 0.07);
  --shadow-lg: 0 10px 30px rgba(34, 34, 34, 0.09);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 {
  font-family: var(--font);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

.app {
  max-width: 680px;
  margin: 0 auto;
  padding: 14px 14px 28px;
}
.view.hidden { display: none; }

/* ---------- App-Header (kompakt, auf jeder Seite gleich) ---------- */
.app-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-primary-dark));
  border-radius: var(--radius-sm);
  box-shadow: 0 3px 10px rgba(21, 90, 123, 0.22);
  font-size: 14px;
  line-height: 1.2;
}
.app-header-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 4px;
  background: #fff;
  padding: 3px;
  object-fit: contain;
}
.app-header-title {
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  flex: 1;
  min-width: 0;
}
.app-header-title em {
  color: #fff;
  font-style: normal;
  font-weight: 800;
}
.app-header-meta {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: 999px;
  backdrop-filter: blur(2px);
}
@media (max-width: 440px) {
  .app-header-meta { display: none; }
  .app-header-title { font-size: 13px; }
}

/* ---------- Progress Bar ---------- */
.progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.progress.hidden { display: none; }
.progress-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text-soft);
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.progress-label #progress-current { color: var(--c-primary-dark); font-weight: 800; }
.progress-track {
  flex: 1;
  height: 6px;
  background: var(--c-border);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--c-primary), var(--c-primary-dark));
  border-radius: 999px;
  transition: width .3s ease;
}

/* ---------- Step (Wizard-Karte) ---------- */
.step {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 320px;
  animation: step-in .25s ease;
}
@keyframes step-in {
  from { opacity: 0; transform: translateX(8px); }
  to   { opacity: 1; transform: translateX(0); }
}
.step-content { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.step-title {
  font-size: clamp(22px, 4.5vw, 28px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.step-sub {
  margin: 0;
  color: var(--c-text-soft);
  font-size: 15px;
  line-height: 1.5;
}
.step-sub strong { color: var(--c-text); font-weight: 700; }
.step-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 6px;
  flex-wrap: wrap;
}
.step-actions .btn-back-step { margin-right: auto; }
.time-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text-soft);
  background: var(--c-accent-light);
  border: 1px solid var(--c-accent);
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.time-badge::before { content: "⏱"; font-size: 11px; }
@media (max-width: 420px) { .time-badge { display: none; } }

/* ---------- Chips (Step 2: Kapazität) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 10px 16px;
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-soft);
  cursor: pointer;
  transition: all .15s;
}
.chip:hover { border-color: var(--c-border-strong); }
.chip.active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
  font-weight: 600;
}
.chips-lg .chip { padding: 12px 18px; font-size: 15px; }

/* ---------- Options (Step 1: Notstrom ja/nein/unknown) ---------- */
.options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.options-3 { grid-template-columns: repeat(3, 1fr); }
.option {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px 12px 14px;
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--c-text);
  cursor: pointer;
  transition: all .15s;
  min-height: 120px;
}
.option:hover { border-color: var(--c-border-strong); }
.option strong { font-size: 15px; font-weight: 700; }
.option span:not(.option-emoji) { font-size: 12px; color: var(--c-text-mute); line-height: 1.35; }
.option.active {
  border-color: var(--c-primary);
  background: var(--c-primary-light);
  box-shadow: 0 0 0 2px var(--c-primary) inset;
}
.option.active span:not(.option-emoji) { color: var(--c-primary-dark); }
.option-emoji { font-size: 28px; line-height: 1; margin-bottom: 2px; }
@media (max-width: 520px) {
  .options-3 { grid-template-columns: 1fr; }
  .options-3 .option {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    min-height: 0;
    padding: 12px 14px;
    gap: 12px;
  }
  .options-3 .option-emoji { font-size: 26px; margin: 0; flex-shrink: 0; }
  .options-3 .option strong { font-size: 15px; }
  .options-3 .option span:not(.option-emoji) { font-size: 12px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
}
.btn-primary {
  background: var(--c-interact);
  color: #fff;
  box-shadow: 0 2px 8px rgba(129, 96, 80, 0.30);
}
.btn-primary:hover:not(:disabled) {
  background: var(--c-interact-dark);
  box-shadow: 0 4px 14px rgba(129, 96, 80, 0.40);
  transform: translateY(-1px);
}
.btn-primary:disabled {
  background: var(--c-border-strong);
  color: #fff;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.7;
}
.btn-lg { width: 100%; padding: 16px; font-size: 16px; }
.btn-next { min-width: 130px; }
.btn-calc { min-width: 180px; }

.btn-back-step {
  background: none;
  border: none;
  color: var(--c-text-soft);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: all .15s;
}
.btn-back-step:hover { color: var(--c-primary-dark); background: var(--c-primary-light); }
.btn-back-top { align-self: flex-start; margin: -4px 0 8px -10px; }

/* ---------- Advanced Details (DoD-Slider) ---------- */
.advanced {
  margin-top: 6px;
  border-top: 1px dashed var(--c-border);
  padding-top: 12px;
}
.advanced summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-primary-dark);
  padding: 4px 0;
}
.advanced summary::-webkit-details-marker { display: none; }
.advanced summary .details-chevron {
  transition: transform .2s ease;
  color: var(--c-primary);
}
.advanced[open] summary .details-chevron { transform: rotate(180deg); }
.advanced-body { padding-top: 10px; }

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--c-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--c-text-mute);
  line-height: 1.4;
}

.dod-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.dod-slider {
  flex: 1;
  min-width: 160px;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: var(--c-primary-light);
  outline: none;
}
.dod-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--c-primary);
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(21, 90, 123, 0.35);
}
.dod-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--c-primary);
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(21, 90, 123, 0.35);
}

.input-suffix {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.input-suffix:focus-within {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(55, 140, 181, 0.18);
}
.input-suffix input { border: none; flex: 1; padding: 14px 16px; font-size: 18px; font-weight: 600; font-family: inherit; width: 100%; }
.input-suffix input:focus { box-shadow: none; outline: none; }
.input-suffix span { padding: 0 16px; color: var(--c-text-soft); font-size: 14px; border-left: 1px solid var(--c-border); font-weight: 500; }
.input-suffix-sm { max-width: 140px; }
.input-suffix-sm input { padding: 8px 12px; font-size: 14px; font-weight: 600; }
.input-suffix-sm span { padding: 0 12px; font-size: 13px; }

/* ---------- Trust-Strip ---------- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 20px;
  padding: 16px 10px 4px;
  margin-top: 8px;
}
.trust-strip.hidden { display: none; }
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--c-text-soft);
  font-weight: 500;
}
.trust-item strong { color: var(--c-text); font-weight: 700; }
.trust-item svg { color: var(--c-primary); flex-shrink: 0; }

/* ---------- Hero (Ergebnisseite) ---------- */
.hero { text-align: center; margin: 4px 0 22px; }
.hero-compact { margin: 4px 0 18px; }
.hero-badge {
  display: inline-block;
  background: var(--c-primary-light);
  color: var(--c-primary-dark);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hero h1 {
  font-size: clamp(24px, 4.5vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.hero-sub {
  margin: 0 auto;
  max-width: 560px;
  color: var(--c-text-soft);
  font-size: 15px;
  line-height: 1.5;
}

/* ---------- Card ---------- */
.card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ---------- Device Presets (Step 3) ---------- */
.device-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}
.preset-btn {
  padding: 8px 14px;
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-radius: 999px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--c-primary-dark);
  cursor: pointer;
  transition: all .15s;
}
.preset-btn:hover {
  border-color: var(--c-primary);
  background: var(--c-primary-light);
}
.preset-btn-clear {
  color: var(--c-text-mute);
  margin-left: auto;
}
.preset-btn-clear:hover {
  border-color: var(--c-border-strong);
  background: var(--c-bg);
  color: var(--c-text);
}
@media (max-width: 440px) {
  .preset-btn-clear { margin-left: 0; }
}

/* ---------- Gerätekarten ---------- */
.devices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 4px;
}
@media (max-width: 500px) {
  .devices { grid-template-columns: 1fr; }
}
.device {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .15s;
  position: relative;
  min-height: 58px;
}
.device:hover { border-color: var(--c-primary-mid); }
.device-on {
  border-color: var(--c-primary);
  background: var(--c-primary-light);
  box-shadow: 0 0 0 1px var(--c-primary) inset;
}
.device-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--c-primary);
  cursor: pointer;
}
.device-emoji {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}
.device-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.device-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.25;
}
.device-spec {
  font-size: 11.5px;
  color: var(--c-text-soft);
  line-height: 1.3;
}
.device-on .device-spec { color: var(--c-primary-dark); }
.device-count {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: 2px;
}
.count-btn {
  width: 22px;
  height: 22px;
  border: none;
  background: transparent;
  color: var(--c-primary-dark);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 50%;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.count-btn:hover { background: var(--c-primary-light); }
.count-val {
  min-width: 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text);
}
.count-unit { font-size: 10px; color: var(--c-text-mute); margin-right: 2px; }

/* ---------- Result: Verdict (Block 1) ---------- */
.verdict {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: all .2s;
  margin-bottom: 14px;
}
.verdict-ok {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  color: #fff;
  border-color: var(--c-primary-dark);
  box-shadow: 0 4px 14px rgba(21, 90, 123, 0.22);
}
.verdict-warn {
  background: linear-gradient(135deg, #F6E6A8 0%, #E7BC2C 100%);
  color: #3D2F00;
  border-color: var(--c-accent);
  box-shadow: 0 4px 14px rgba(213, 169, 26, 0.24);
}
.verdict-bad {
  background: linear-gradient(135deg, #F2D7D4 0%, #E8A8A0 100%);
  color: #4A1710;
  border-color: var(--c-alert);
  box-shadow: 0 4px 14px rgba(199, 67, 51, 0.22);
}
.verdict-icon {
  font-size: 40px;
  line-height: 1;
  flex-shrink: 0;
}
.verdict-text { flex: 1; min-width: 0; }
.verdict-headline {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 4px;
}
.verdict-big {
  display: inline-block;
  font-size: clamp(22px, 5.5vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-left: 4px;
}
.verdict-sub {
  font-size: 13.5px;
  line-height: 1.45;
  opacity: 0.92;
}
.verdict-ok .verdict-sub { color: rgba(255, 255, 255, 0.92); }
.verdict-ok strong { color: #fff; }

/* ---------- Info-Box ---------- */
.info-box {
  padding: 12px 16px;
  background: var(--c-primary-light);
  border-left: 3px solid var(--c-primary);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--c-text);
  margin-bottom: 14px;
}
.info-box p { margin: 0; }
.info-box[hidden] { display: none; }
.info-box strong { color: var(--c-primary-dark); }

/* ---------- Live-Schieberegler (Ergebnisseite, ausklappbar) ---------- */
.result-sliders { padding: 0; margin-bottom: 14px; overflow: hidden; }
.result-sliders-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  color: var(--c-text);
  text-align: left;
  transition: background .15s;
}
.result-sliders-toggle:hover { background: var(--c-primary-light); }
.result-sliders-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-text);
  margin: 0;
}
.result-sliders-title svg { color: var(--c-primary); flex-shrink: 0; }
.result-sliders-summary {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-primary-dark);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.result-sliders-chevron {
  flex-shrink: 0;
  color: var(--c-text-mute);
  transition: transform .2s;
}
.result-sliders-toggle[aria-expanded="true"] .result-sliders-chevron { transform: rotate(180deg); }
.result-sliders-body { padding: 6px 18px 16px; border-top: 1px solid var(--c-border); }
.result-sliders-body[hidden] { display: none; }
.slider-row { margin-bottom: 18px; }
.slider-row:last-of-type { margin-bottom: 8px; }
.slider-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.slider-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.3;
}
.slider-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--c-primary-dark);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.slider-row .dod-slider { width: 100%; min-width: 0; flex: none; display: block; }
.slider-marks {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: var(--c-text-mute);
  font-variant-numeric: tabular-nums;
}
.result-devices-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--c-border);
  flex-wrap: wrap;
}
.result-devices-label {
  font-size: 13px;
  color: var(--c-text-soft);
  line-height: 1.4;
}
.result-devices-label strong {
  color: var(--c-text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.result-devices-edit {
  background: none;
  border: none;
  color: var(--c-primary-dark);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  font-family: inherit;
}
.result-devices-edit:hover {
  background: var(--c-primary-light);
  text-decoration: underline;
}

/* ---------- Step-Hint (kleiner Hinweis unter Chip-Gruppe) ---------- */
.step-hint {
  display: block;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--c-text-mute);
  line-height: 1.5;
}

/* ---------- Usage (Block 2: SVG-Balken) ---------- */
.usage { padding: 14px 16px; margin-bottom: 14px; }
.usage-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}
.usage-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-text);
}
.usage-total {
  font-size: 13px;
  color: var(--c-text-soft);
}
.usage-total strong {
  font-size: 20px;
  font-weight: 800;
  color: var(--c-primary-dark);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.usage-bar {
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--c-border);
  margin-bottom: 12px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}
.usage-svg {
  display: block;
  width: 100%;
  height: 100%;
}
.usage-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--c-text-mute);
}
.usage-legend {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 12px;
}
@media (max-width: 480px) {
  .usage-legend { grid-template-columns: 1fr; }
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--c-text-soft);
  padding: 2px 0;
  min-width: 0;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.legend-emoji { font-size: 14px; }
.legend-name {
  flex: 1;
  color: var(--c-text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.legend-val {
  font-size: 11.5px;
  color: var(--c-text-mute);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* ---------- Szenarien (Block 3) ---------- */
.section-title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-text-soft);
  margin: 4px 0 10px;
}
.scenarios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
@media (max-width: 560px) {
  .scenarios { grid-template-columns: 1fr; }
}
.scenario-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 14px 14px 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: center;
}
.scenario-mid {
  background: var(--c-primary-light);
  border-color: var(--c-primary-mid);
}
.scenario-label {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-primary-dark);
}
.scenario-desc {
  font-size: 11.5px;
  color: var(--c-text-mute);
  line-height: 1.35;
  margin-bottom: 4px;
}
.scenario-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* ---------- Tipps (Block 4) ---------- */
.tips {
  background: #fff;
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-accent);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}
.tips-title {
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--c-text);
  letter-spacing: -0.01em;
}
.tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tips-list li {
  font-size: 13px;
  color: var(--c-text-soft);
  line-height: 1.5;
  padding-left: 22px;
  position: relative;
}
.tips-list li::before {
  content: "💡";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 13px;
}
.tips-list strong { color: var(--c-text); font-weight: 700; }

/* ---------- Produktempfehlungen (nur Fall B) ---------- */
.products-head {
  margin: 10px 0 14px;
  text-align: left;
  padding: 0 2px;
}
.products-head h2 {
  font-size: clamp(18px, 3.5vw, 22px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 6px 0 4px;
}
.products-sub {
  margin: 0;
  font-size: 13.5px;
  color: var(--c-text-soft);
  line-height: 1.5;
}
.products-empty {
  margin: 6px 0 12px;
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--c-text-soft);
  line-height: 1.55;
  background: var(--c-primary-light);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--c-primary);
}
.products-empty.hidden { display: none; }
.products-empty strong { color: var(--c-text); font-weight: 700; }
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 12px;
}
.product-card {
  background: var(--c-card);
  border: 2px solid var(--c-accent);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(213, 169, 26, 0.12);
  transition: all .15s;
}
.product-card:hover {
  box-shadow: 0 6px 20px rgba(213, 169, 26, 0.22);
  transform: translateY(-2px);
}
.product-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--c-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.product-brand img.retailer-logo {
  width: 20px; height: 20px;
  border-radius: 4px; object-fit: contain;
  background: #fff; border: 1px solid var(--c-border);
  padding: 2px; flex-shrink: 0;
}
.product-badge {
  display: inline-block;
  margin-left: auto;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  color: #5C4500;
  background: var(--c-accent-light);
  border: 1px solid var(--c-accent);
  border-radius: 999px;
  letter-spacing: 0.03em;
  text-transform: none;
}
.product-name { font-size: 16px; font-weight: 700; margin: 0; line-height: 1.3; }
.product-specs { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 5px; }
.product-specs li {
  font-size: 13px; color: var(--c-text-soft);
  padding-left: 18px; position: relative; line-height: 1.4;
}
.product-specs li::before {
  content: "✓"; color: var(--c-primary);
  position: absolute; left: 0; font-weight: 700;
}
.product-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: auto; padding-top: 10px;
  border-top: 1px solid var(--c-border);
}
.product-price { font-size: 19px; font-weight: 800; color: var(--c-text); }
.product-price small { font-size: 11px; font-weight: 500; color: var(--c-text-mute); }
.product-footer .btn { padding: 9px 14px; font-size: 13px; }

/* ---------- Disclaimer ---------- */
.disclaimer {
  margin: 14px 0 0;
  font-size: 11.5px;
  color: var(--c-text-mute);
  line-height: 1.5;
  text-align: center;
}
