/* =========================================================
   Rechner für Führungskräfte (/rechner/ und fünf Unterseiten), 18.11.2026.
   Tokens aus style.css. Keine farbigen Kanten an Kacheln, ein Radius-System,
   Rechner direkt unter dem Seitenkopf, Nebentexte eingeklappt.
   ========================================================= */

.crumbs { font-size: .84rem; color: var(--muted); margin: 0 0 1.6rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem .6rem; }
.crumbs li { display: flex; align-items: center; gap: .6rem; }
.crumbs li + li::before { content: "/"; color: var(--plum-300); opacity: .5; }
.crumbs a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }

.calc-sec { padding: 0 0 var(--space-6); }
/* Kopf + Rechner in einem: links Überschrift, Einleitung, Eingaben; rechts die Ergebnistafel ab Höhe der Überschrift */
.calc-head { padding-bottom: var(--space-6); }
.calc { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.4rem, 3.4vw, 3.2rem); align-items: start; }
@media (max-width: 900px) { .calc { grid-template-columns: minmax(0, 1fr); } }
.calc-head h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); max-width: 15ch; margin-bottom: 1.2rem; }
.calc-head .lead { max-width: 56ch; margin: 0 0 clamp(1.6rem, 3vw, 2.4rem); }
@media (max-width: 900px) { .calc-head .lead { max-width: none; } .calc-head h1 { max-width: 18ch; } }
.calc-head .calc-result { margin-top: .3rem; }

/* ---------- Eingaben ---------- */
.calc-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: var(--shadow-1); }
.calc-form h2 { font-size: clamp(1.45rem, 2.2vw, 1.9rem); margin: 0 0 1.4rem; }
.calc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem 1.2rem; }
.calc-fields .cf-wide { grid-column: 1 / -1; }
@media (max-width: 560px) { .calc-fields { grid-template-columns: minmax(0, 1fr); } }
.cf label { display: block; font-size: .9rem; font-weight: 600; color: var(--plum); margin-bottom: .4rem; line-height: 1.35; }
.cf-in { position: relative; }
.cf input, .cf select {
  width: 100%; min-height: 52px; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--cream); font: inherit; font-size: 1.05rem; color: var(--ink); font-variant-numeric: tabular-nums;
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
  -moz-appearance: textfield; appearance: none;
}
.cf input::-webkit-outer-spin-button, .cf input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cf select { padding-right: 2.6rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d2b3d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; background-size: 18px; cursor: pointer; }
.cf-in.has-unit input { padding-right: 3.6rem; }
.cf-unit { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font-size: .92rem; color: var(--muted); pointer-events: none; }
.cf input:focus, .cf select:focus { outline: none; border-color: var(--terra); background: var(--paper); box-shadow: 0 0 0 4px rgba(196,111,77,.12); }
.cf-hint { display: block; font-size: .8rem; line-height: 1.45; color: var(--muted); margin-top: .4rem; }

.calc-adv { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: .3rem; }
.calc-adv > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0 .2rem; cursor: pointer; font-size: .92rem; font-weight: 600; color: var(--plum); }
.calc-adv > summary::-webkit-details-marker { display: none; }
.calc-adv > summary::after { content: "+"; font-weight: 400; font-size: 1.3rem; line-height: 1; color: var(--plum-300); transition: transform .3s var(--ease); }
.calc-adv[open] > summary::after { transform: rotate(45deg); }
.calc-adv > summary:focus-visible { outline: 2px solid var(--terra); outline-offset: 4px; border-radius: var(--r-sm); }
.calc-adv .calc-fields { padding-top: 1rem; }

/* ---------- Ergebnis ---------- */
.calc-result { position: sticky; top: calc(var(--nav-h) + var(--top-bar) + 1.2rem); background: var(--plum); color: var(--cream); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: var(--shadow-2); scroll-margin-top: calc(var(--nav-h) + var(--top-bar) + 1rem); }
@media (max-width: 900px) { .calc-result { position: static; } }
.cr-label { display: block; font-family: var(--font-display); font-style: italic; color: var(--gold); font-size: 1.1rem; margin-bottom: .3rem; }
.cr-main { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.8rem, 5.4vw, 4.4rem); line-height: 1; letter-spacing: -.01em; color: var(--cream); font-variant-numeric: tabular-nums; margin-bottom: 1.4rem; overflow-wrap: anywhere; }
.cr-rows { margin: 0; display: grid; }
.cr-rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--line-dark); }
.cr-rows dt { font-size: .92rem; color: rgba(248,244,237,.78); }
.cr-rows dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.cr-hebel { margin: 1.1rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--line-dark); font-size: .95rem; line-height: 1.55; color: var(--cream); }
.cr-hebel b { color: var(--gold); font-weight: 600; }
.cr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; margin-top: 1.4rem; }
.cr-actions .btn { min-height: 46px; padding: .7rem 1.3rem; font-size: .92rem; }
.cr-reset { background: none; border: 0; padding: .4rem 0; font: inherit; font-size: .9rem; color: rgba(248,244,237,.82); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cr-reset:hover, .cr-reset:focus-visible { color: var(--cream); }
.cr-note { margin: 1.2rem 0 0; font-size: .8rem; line-height: 1.5; color: rgba(248,244,237,.66); }

/* Mobil: Ergebnisleiste unten, solange man Werte eingibt */
.calc-peek { display: none; }
@media (max-width: 900px) {
  .calc-peek {
    display: flex; position: fixed; left: 16px; right: 84px; bottom: 16px; z-index: 40; align-items: center; justify-content: space-between; gap: .8rem;
    min-height: 54px; padding: .55rem .6rem .55rem 1.1rem; border: 0; border-radius: var(--r-pill); background: var(--plum); color: var(--cream);
    font: inherit; font-size: .9rem; text-align: left; box-shadow: var(--shadow-2); cursor: pointer;
    transform: translateY(140%); opacity: 0; transition: transform .35s var(--ease), opacity .35s var(--ease); pointer-events: none;
  }
  .calc-peek.is-on { transform: none; opacity: 1; pointer-events: auto; }
  .calc-peek b { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; color: var(--cream); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .calc-peek span { color: rgba(248,244,237,.78); line-height: 1.25; }
}
@media (prefers-reduced-motion: reduce) { .calc-peek { transition: none; } }

/* ---------- So rechnet der Rechner + Zahlen zur Einordnung ---------- */
.calc-how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: stretch; }
@media (max-width: 719px) { .calc-how { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 720px) and (max-width: 1023px) { .calc-how { gap: 2rem; } .calc-how h2 { font-size: 1.6rem; } }
.calc-how h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 1.2rem; }
.calc-steps { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.calc-steps li { counter-increment: st; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: .2rem .8rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.calc-steps li:last-child { border-bottom: 1px solid var(--line); }
.calc-steps li::before { content: counter(st, decimal-leading-zero); font-family: var(--font-display); font-style: italic; color: var(--plum-300); font-size: 1.05rem; line-height: 1.5; }
.calc-steps b { display: block; color: var(--plum); font-weight: 600; }
.calc-steps span { color: var(--muted); font-size: .95rem; line-height: 1.55; }
.calc-steps code { font-family: inherit; font-size: .92rem; background: var(--cream-deep); color: var(--plum); padding: .1rem .4rem; border-radius: 6px; }

.calc-facts { list-style: none; margin: 0; padding: 0; display: grid; }
.calc-facts li { padding: 1rem 0; border-top: 1px solid var(--line); }
.calc-facts li:last-child { border-bottom: 1px solid var(--line); }
.calc-facts b { display: block; font-family: var(--font-display); font-weight: 400; color: var(--plum); font-size: clamp(1.7rem, 2.8vw, 2.3rem); line-height: 1.05; margin-bottom: .3rem; }
.calc-facts span { color: var(--muted); font-size: .95rem; line-height: 1.55; }
.calc-facts sup a { color: var(--terra-ink); text-decoration: none; font-weight: 600; padding: 0 .1rem; }

/* ---------- FAQ ---------- */
.calc-faq h2 { margin: 0 0 clamp(1.4rem, 3vw, 2.2rem); font-size: clamp(1.9rem, 3.6vw, 3rem); }

/* ---------- Passt dazu (volle Breite, zwei Spalten) + Quellen darunter ---------- */
.calc-more-h { font-size: clamp(1.9rem, 3.6vw, 3rem); margin: 0 0 clamp(1.2rem, 2.6vw, 2rem); }
.calc-links { list-style: none; margin: 0 0 clamp(2.4rem, 4vw, 3.4rem); padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 4.5rem); border-bottom: 1px solid var(--line); }
.calc-links li { border-top: 1px solid var(--line); }
@media (max-width: 760px) { .calc-links { grid-template-columns: minmax(0, 1fr); } }
.calc-links a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1rem; align-items: center; padding: .95rem 0; color: var(--plum); text-decoration: none; }
.calc-links a small { grid-column: 1; display: block; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.calc-links a b { font-weight: 600; }
.calc-links a svg { grid-row: 1 / span 2; grid-column: 2; width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; transition: transform .3s var(--ease); }
.calc-links a:hover b, .calc-links a:focus-visible b { color: var(--terra-ink); }
.calc-links a:hover svg { transform: translateX(4px); }
.calc-src { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calc-src > summary { list-style: none; display: flex; align-items: baseline; gap: .8rem; padding: 1rem 0; cursor: pointer; }
.calc-src > summary::-webkit-details-marker { display: none; }
.calc-src > summary h2 { margin: 0; font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.calc-src > summary .src-n { font-size: .88rem; color: var(--muted); }
.calc-src > summary::after { content: "+"; margin-left: auto; font-size: 1.4rem; line-height: 1; color: var(--plum-300); transition: transform .3s var(--ease); }
.calc-src[open] > summary::after { transform: rotate(45deg); }
.calc-src > summary:focus-visible { outline: 2px solid var(--terra); outline-offset: 4px; border-radius: var(--r-sm); }
.calc-src ol { margin: 0; padding: 0 0 1.2rem 1.2rem; }
.calc-src li { font-size: .88rem; line-height: 1.55; color: var(--muted); margin-bottom: .5rem; }
.calc-src li a { color: var(--plum); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.calc-src .src-meta { margin: 0 0 1rem; font-size: .84rem; color: var(--muted); }

/* ---------- Übersicht /rechner/ ---------- */
.hub-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: end; }
.hub-head .lead { max-width: 54ch; margin-bottom: 0; }
@media (max-width: 900px) { .hub-head { grid-template-columns: minmax(0, 1fr); } .hub-head .lead { max-width: none; } }
.hub-sample { display: block; background: var(--plum); color: var(--cream); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--shadow-2); text-decoration: none; transition: transform .4s var(--ease); }
.hub-sample:hover { transform: translateY(-3px); }
.hub-sample b { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 4.6vw, 3.8rem); line-height: 1; margin: .2rem 0 .8rem; font-variant-numeric: tabular-nums; }
.hub-sample .hs-t { display: block; color: rgba(248,244,237,.82); font-size: .98rem; line-height: 1.5; }
.hub-sample .hs-go { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line-dark); width: 100%; font-weight: 600; font-size: .95rem; }
.hub-sample .hs-go .ico-svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.tool-list { list-style: none; margin: 0; padding: 0; counter-reset: tl; }
.tool-list li { counter-increment: tl; border-top: 1px solid var(--line); }
.tool-list li:last-child { border-bottom: 1px solid var(--line); }
.tool-list a { display: grid; grid-template-columns: 3.4rem minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: .4rem clamp(1rem, 3vw, 2.4rem); align-items: center; padding: clamp(1.3rem, 2.6vw, 2rem) 0; color: var(--plum); text-decoration: none; }
.tool-list a::before { content: counter(tl, decimal-leading-zero); font-family: var(--font-display); font-style: italic; color: var(--plum-300); font-size: 1.15rem; }
.tool-list .tl-name { font-family: var(--font-display); font-size: clamp(1.45rem, 2.6vw, 2.1rem); line-height: 1.15; }
.tool-list .tl-desc { color: var(--muted); font-size: .98rem; line-height: 1.55; }
.tool-list .tl-go { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease); }
.tool-list .tl-go svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.tool-list a:hover .tl-name, .tool-list a:focus-visible .tl-name { color: var(--terra-ink); }
.tool-list a:hover .tl-go { background: var(--plum); border-color: var(--plum); color: var(--cream); }
@media (max-width: 760px) {
  .tool-list a { grid-template-columns: 2.4rem minmax(0, 1fr) auto; }
  .tool-list .tl-desc { grid-column: 2 / 3; grid-row: 2; }
  .tool-list .tl-go { grid-column: 3; grid-row: 1 / span 2; width: 42px; height: 42px; }
}

@media print {
  .calc-peek, .cr-actions, .cta-band, .calc-adv > summary::after { display: none !important; }
  .calc-result { position: static; background: none; color: var(--ink); box-shadow: none; border: 1px solid var(--line); }
  .cr-main, .cr-rows dd, .cr-hebel { color: var(--ink); }
}
