/* =====================================================================
   calc.css — geteilte Rechner-Komponente (Tiefe-1-Seiten /…-rechner/)
   Namespace .calc-*  ·  baut auf site.css-Tokens auf
   DNA: weiße Karte, radius 22px, Hairline-Border, Signatur-Schatten,
        Serif-Ergebnisse, Indigo-Akzent; Verlust = amber, Gewinn = grün.
   ===================================================================== */

/* ---------- Rechner-Hero-Rahmen ---------- */
.calc-hero-sec { padding-top: 60px; }
.calc-lead { max-width: 680px; }
.calc-lead .audience-tag { margin-bottom: 18px; }
.calc-lead h1 { font-size: clamp(34px, 4.2vw, 50px); margin: 0; line-height: 1.08; }
.calc-lead h1 .ai { color: var(--accent-deep); }
.calc-lead p.lede { margin-top: 16px; }

/* ---------- Die Rechner-Karte ---------- */
.calc {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 0;
  margin-top: 34px;
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 28px 66px -46px rgba(20, 22, 27, .4);
}
.calc::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
  z-index: 2;
}

/* Eingaben-Pane */
.calc-in { padding: 34px 34px 32px; }
.calc-pane-k {
  font-size: 11px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px;
}
.calc-pane-h {
  font-family: var(--serif); font-weight: 550; font-size: 20px;
  letter-spacing: -.01em; line-height: 1.2; color: var(--ink); margin: 0 0 22px;
}

.calc-field { margin-bottom: 22px; }
.calc-field:last-child { margin-bottom: 0; }
.calc-field > label {
  display: block; font-size: 13.5px; font-weight: 600;
  color: var(--ink); margin-bottom: 8px;
}
.calc-control {
  display: flex; align-items: stretch;
  border: 1px solid var(--hair); border-radius: 11px;
  background: var(--paper); overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.calc-control:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: #fff;
}
.calc-num {
  flex: 1; min-width: 0; border: 0; background: transparent;
  padding: 12px 14px; font: inherit; font-size: 16px; font-weight: 600;
  color: var(--ink); -moz-appearance: textfield;
}
.calc-num:focus { outline: none; }
.calc-num::-webkit-outer-spin-button,
.calc-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-unit {
  display: flex; align-items: center; padding: 0 14px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-3);
  background: var(--paper-2); border-left: 1px solid var(--hair);
  white-space: nowrap;
}
.calc-hint { font-size: 11.5px; color: var(--ink-3); margin-top: 7px; line-height: 1.4; }

/* Slider (für Raten/Prozente) */
.calc-range {
  -webkit-appearance: none; appearance: none; width: 100%;
  height: 5px; border-radius: 99px; margin: 14px 0 2px;
  background: var(--paper-2); cursor: pointer; outline: none;
}
.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 2px solid var(--accent);
  box-shadow: 0 2px 6px -1px rgba(55, 48, 163, .45); cursor: pointer;
}
.calc-range::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 2px solid var(--accent);
  box-shadow: 0 2px 6px -1px rgba(55, 48, 163, .45); cursor: pointer;
}

/* ---------- Ergebnis-Pane ---------- */
.calc-out {
  padding: 34px 34px 32px;
  background: var(--paper);
  border-left: 1px solid var(--hair);
  display: flex; flex-direction: column;
}
.calc-out-k {
  font-size: 11px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--accent-deep); margin-bottom: 14px;
}
.calc-hero-fig {
  --c: var(--amber);
  background: #fff; border: 1px solid var(--hair); border-radius: 16px;
  padding: 24px 24px 22px; box-shadow: 0 14px 40px -34px rgba(20, 22, 27, .35);
}
.calc-hero-fig.gain { --c: var(--green); }
.calc-hero-num {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(36px, 5vw, 52px); letter-spacing: -.025em;
  line-height: 1; color: var(--c); display: block;
}
.calc-hero-lbl {
  display: block; font-size: 13.5px; color: var(--ink-2);
  line-height: 1.45; margin-top: 12px;
}

.calc-stats { list-style: none; margin: 4px 0 0; padding: 0; }
.calc-stats li {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; padding: 15px 2px; border-bottom: 1px solid var(--hair);
}
.calc-stats li:last-child { border-bottom: 0; }
.calc-stats .cs-lbl { font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.calc-stats .cs-val {
  font-family: var(--serif); font-weight: 550; font-size: 21px;
  letter-spacing: -.01em; color: var(--ink); white-space: nowrap;
}
.calc-stats .cs-val.gain { color: var(--green); }

.calc-note {
  font-size: 11.5px; color: var(--ink-3); line-height: 1.5;
  margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--hair);
}

.calc-cta { margin-top: auto; padding-top: 22px; }
.calc-cta .btn { width: 100%; }
.calc-cta .calc-cta-line {
  font-size: 13.5px; color: var(--ink-2); line-height: 1.5; margin: 0 0 14px;
}
.calc-cta .calc-cta-line b { color: var(--ink); font-weight: 650; }

/* ---------- Tool-Stack-Variante (Liste statt Zahlenfeldern) ---------- */
.calc-tools { display: flex; flex-direction: column; gap: 10px; }
.calc-tool {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 12px; padding: 13px 14px; border: 1px solid var(--hair);
  border-radius: 12px; background: var(--paper); transition: background .15s, border-color .15s, opacity .15s;
}
.calc-tool.off { opacity: .5; }
.calc-tool.on { background: #fff; border-color: #D4DCFA; }
.calc-tool-main { min-width: 0; }
.calc-tool-name { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.calc-tool-sub { font-size: 11.5px; color: var(--ink-3); line-height: 1.35; margin-top: 2px; }
.calc-tool-price { display: flex; align-items: stretch; width: 116px; }
.calc-tool-price .calc-control { width: 100%; }
.calc-tool-price .calc-num { font-size: 14px; padding: 9px 10px; text-align: right; }
.calc-tool-price .calc-unit { padding: 0 9px; font-size: 12px; }

/* Toggle-Schalter */
.calc-switch {
  position: relative; flex-shrink: 0; width: 42px; height: 24px;
  border-radius: 99px; background: var(--ink-3); cursor: pointer;
  transition: background .18s; border: 0; padding: 0;
}
.calc-switch::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  transition: transform .18s; box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}
.calc-switch[aria-checked="true"] { background: var(--accent); }
.calc-switch[aria-checked="true"]::after { transform: translateX(18px); }

/* Tool-Stack-Ergebnis: Gegenüberstellung */
.calc-vs { display: flex; flex-direction: column; gap: 12px; }
.calc-vs-card {
  border: 1px solid var(--hair); border-radius: 14px; padding: 18px 20px; background: #fff;
}
.calc-vs-card.them { background: var(--paper); }
.calc-vs-card.us { border-color: var(--accent); box-shadow: 0 14px 40px -34px rgba(55, 48, 163, .5); position: relative; }
.calc-vs-card.us::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: var(--accent); border-radius: 14px 0 0 14px;
}
.calc-vs-k { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.calc-vs-card.us .calc-vs-k { color: var(--accent-deep); }
.calc-vs-num { font-family: var(--serif); font-weight: 600; font-size: 34px; letter-spacing: -.02em; line-height: 1; color: var(--ink); margin-top: 8px; }
.calc-vs-sub { font-size: 12px; color: var(--ink-3); margin-top: 6px; }

/* ---------- Zurück-Link zu allen Rechnern ---------- */
.calc-back { display: flex; width: fit-content; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink-3); text-decoration: none; margin-bottom: 16px; transition: color .15s; }
.calc-back:hover { color: var(--accent-deep); }
.calc-back svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.2; }

/* zwei gestapelte Ergebnis-Figuren (Verlust + vermeidbar) */
.calc-hero-fig + .calc-hero-fig { margin-top: 12px; }

/* Kanal-/Optionen-Auswahl (z. B. bisheriger Recall-Weg) */
.calc-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.calc-choice label { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--hair); border-radius: 11px; background: var(--paper); font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.calc-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.calc-choice label::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink-3); flex-shrink: 0; transition: border-color .15s, box-shadow .15s; }
.calc-choice label.sel { border-color: var(--accent); background: #fff; color: var(--ink); }
.calc-choice label.sel::before { border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--accent); }
.calc-choice label:focus-within { box-shadow: 0 0 0 3px var(--accent-soft); }

/* Outcome-Strip direkt unter dem Rechner statt freischwebend */
.calc-out-strip.calc-out-strip--tight { padding: 30px 0 0; }
@media (max-width: 460px) { .calc-choice { grid-template-columns: 1fr; } }

/* ---------- Geteilte Abschnitte aller Rechner-Seiten ---------- */
.calc-method { padding: 92px 0; background: var(--paper); }
.calc-method .sec-head { max-width: 760px; }
.calc-prose { max-width: 760px; margin-top: 26px; }
.calc-prose p { color: var(--ink-2); font-size: 15.5px; line-height: 1.65; margin-bottom: 16px; }
.calc-prose p:last-child { margin-bottom: 0; }
.calc-prose p b { color: var(--ink); font-weight: 650; }

.calc-levers { padding: 92px 0; }
.calc-levers .sec-head { max-width: 760px; }
.lever-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; align-items: stretch; }
.lever-card { border: 1px solid var(--hair); border-radius: 18px; background: #fff; padding: 30px 28px 32px; display: flex; flex-direction: column; box-shadow: 0 18px 50px -40px rgba(20,22,27,.3); }
.lever-card .lever-k { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-deep); }
.lever-card h3 { font-family: var(--serif); font-weight: 550; font-size: 21px; letter-spacing: -.012em; line-height: 1.22; margin: 13px 0 11px; }
.lever-card > p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }

.calc-out-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 92px 0; }
.ocard { --c: var(--accent); border: 1px solid var(--hair); border-radius: 14px; background: #fff; padding: 26px 24px; display: flex; flex-direction: column; }
.ocard b { font-family: var(--serif); font-weight: 550; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.02em; line-height: 1; color: var(--c); }
.ocard span { font-size: 14px; color: var(--ink-2); line-height: 1.5; margin-top: 12px; }

.calc-related { padding: 0 0 96px; }
.calc-rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 12px; }
.crel { border: 1px solid var(--hair); border-radius: 16px; background: #fff; padding: 24px 24px 22px; display: flex; flex-direction: column; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.crel:hover { box-shadow: 0 22px 50px -40px rgba(20,22,27,.4); transform: translateY(-2px); }
.crel .crel-k { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-deep); }
.crel h3 { font-family: var(--serif); font-weight: 550; font-size: 18px; line-height: 1.25; margin: 10px 0 8px; color: var(--ink); }
.crel p { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.crel .crel-go { margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--accent-deep); display: inline-flex; align-items: center; gap: 6px; }
.crel .crel-go svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.2; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .lever-grid { grid-template-columns: 1fr; }
  .calc-rel-grid { grid-template-columns: 1fr; }
}
@media (max-width: 880px) { .calc-out-strip { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .calc { grid-template-columns: 1fr; }
  .calc-out { border-left: 0; border-top: 1px solid var(--hair); }
}
@media (max-width: 460px) {
  .calc-in, .calc-out { padding: 24px 20px; }
  .calc-tool { grid-template-columns: auto 1fr; row-gap: 10px; }
  .calc-tool-price { grid-column: 2 / 3; justify-self: end; }
}
