/* Nepotec — Speicher-Nachrüstung für Gewerbe-PV
   Hell, technisch, ruhig. Keine externen Ressourcen, keine Webfonts, keine Tracker. */

:root {
  --ink:        #0f1a20;
  --ink-2:      #33454e;
  --muted:      #6a7c86;
  --muted-2:    #8a999f;

  --bg:         #ffffff;
  --bg-2:       #f5f8f9;
  --bg-3:       #eaf1f2;

  --line:       #dde5e8;
  --line-2:     #c3d0d5;

  --petrol:     #0a5b63;
  --petrol-2:   #07444a;
  --petrol-3:   #0e7c86;
  --petrol-soft:#e4eff0;

  --copper:     #a2571f;
  --copper-2:   #c47232;
  --copper-soft:#fbf1e7;

  --red:        #97362b;
  --red-soft:   #fbeceb;

  --maxw:       1120px;
  --radius:     3px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* ---------- Reset / Basis ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -0.018em;
  margin: 0 0 0.5em;
  font-weight: 660;
  text-wrap: balance;
}

h1 { font-size: clamp(2.05rem, 1.25rem + 3.1vw, 3.35rem); letter-spacing: -0.028em; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.15rem); letter-spacing: -0.022em; }
h3 { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); }
h4 { font-size: 1rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--petrol); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--petrol-3); }

strong { color: var(--ink); font-weight: 640; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

::selection { background: var(--petrol-soft); }

:focus-visible {
  outline: 2px solid var(--petrol-3);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- Layout ---------- */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: clamp(3.5rem, 2rem + 6vw, 6.5rem) 0; }
.section--tight { padding: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.lede {
  font-size: clamp(1.06rem, 1rem + 0.4vw, 1.25rem);
  color: var(--ink-2);
  max-width: 40em;
}

.measure { max-width: 40em; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 680;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--petrol);
  margin: 0 0 0.85rem;
}

.grid { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 3rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Kopf ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.6) blur(8px);
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 68px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  text-decoration: none;
  color: var(--ink);
  font-weight: 720;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}
.wordmark:hover { color: var(--ink); }
.wordmark .dot { color: var(--petrol-3); }
.masthead .wordmark { font-size: 1.6rem; }
.wordmark small {
  font-size: 0.72rem;
  font-weight: 560;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
  margin-left: 0.6rem;
}

.mainnav { display: flex; align-items: center; gap: 1.6rem; }
.mainnav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 560;
  white-space: nowrap;
}
.mainnav a:hover { color: var(--petrol); }
.mainnav a.btn--primary { color: #fff; }
.mainnav a.btn--primary:hover { color: #fff; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 620;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--petrol); color: #fff; }
.btn--primary:hover { background: var(--petrol-2); color: #fff; }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--petrol); color: var(--petrol); }
.btn--sm { padding: 0.5rem 0.9rem; font-size: 0.88rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* ---------- Hero ---------- */

.hero {
  padding: clamp(3rem, 2rem + 5vw, 5.5rem) 0 clamp(3rem, 2rem + 4vw, 5rem);
  background:
    linear-gradient(180deg, var(--bg-2) 0%, #fff 78%);
  border-bottom: 1px solid var(--line);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}

.hero h1 { margin-bottom: 0.6em; }

.hero__note {
  margin-top: 1.6rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 34em;
}

/* ---------- Karten & Kacheln ---------- */

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 1rem + 1vw, 1.9rem);
}
.card--flat { background: var(--bg-2); border-color: var(--line); }

.card__num {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--petrol);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.7rem;
}

.card h3 { margin-bottom: 0.45em; }
.card p { font-size: 0.96rem; }

.stat { border-top: 2px solid var(--petrol); padding-top: 1rem; }
.stat__value {
  display: block;
  font-size: clamp(1.85rem, 1.4rem + 1.7vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.stat__label { display: block; margin-top: 0.5rem; font-size: 0.9rem; color: var(--muted); }
.stat--copper { border-top-color: var(--copper); }
.stat--red { border-top-color: var(--red); }

/* ---------- Hinweise ---------- */

.callout {
  border-left: 3px solid var(--petrol);
  background: var(--petrol-soft);
  padding: 1.15rem 1.4rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.97rem;
}
.callout--copper { border-left-color: var(--copper); background: var(--copper-soft); }
.callout--red { border-left-color: var(--red); background: var(--red-soft); }
.callout p { margin-bottom: 0.6em; }
.callout strong { color: var(--ink); }

.note {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--muted);
}

.disclaimer {
  margin-top: 1.75rem;
  padding: 1.1rem 1.35rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: #fff;
  font-size: 0.87rem;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 62em;
}
.disclaimer p { margin: 0; }
.disclaimer strong { color: var(--ink); }

details > summary {
  cursor: pointer;
  font-weight: 620;
  color: var(--ink);
  font-size: 0.92rem;
  padding: 0.3rem 0;
}
details > summary:hover { color: var(--petrol); }
.note code { font-family: var(--mono); font-size: 0.92em; }

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 100px;
  padding: 0.28rem 0.8rem;
  background: #fff;
}
.stamp::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--petrol-3);
}
.stamp--pending::before { background: var(--copper-2); }

/* ---------- Tabellen ---------- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 520px;
}
caption {
  caption-side: bottom;
  text-align: left;
  font-size: 0.85rem;
  color: var(--muted);
  padding-top: 0.9rem;
}
th, td {
  text-align: left;
  padding: 0.78rem 1rem 0.78rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
thead th {
  font-size: 0.78rem;
  font-weight: 680;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 0.6rem;
}
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; padding-right: 0; }
tr.is-highlight td { background: var(--petrol-soft); }
tr.is-highlight td:first-child { box-shadow: inset 3px 0 0 var(--petrol); padding-left: 1rem; }

/* ---------- Listen ---------- */

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.75rem;
  font-size: 0.97rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.58em;
  width: 9px; height: 9px;
  border: 1.5px solid var(--petrol);
  border-radius: 50%;
}
.ticks li:last-child { margin-bottom: 0; }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 1.6rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.4rem 1fr; gap: 1.2rem; }
.steps li::before {
  content: counter(s);
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--petrol);
  width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
}
.steps h3 { margin-bottom: 0.25em; }
.steps p { font-size: 0.96rem; margin-bottom: 0; }

/* ---------- Diagramme ---------- */

.figure { margin: 0; }
.figure svg { width: 100%; height: auto; display: block; }
.figure figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.9rem;
  line-height: 1.55;
}

.chart-label { font-size: 13px; fill: var(--ink-2); font-weight: 550; }
.chart-value { font-size: 15px; fill: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.chart-sub   { font-size: 11.5px; fill: var(--muted-2); }
.chart-axis  { stroke: var(--line-2); stroke-width: 1.2; }
.chart-grid  { stroke: var(--line); stroke-width: 1; }

.chart-tick    { font-size: 11px; fill: var(--muted-2); font-variant-numeric: tabular-nums; }
.chart-col-val { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.chart-drop    { font-size: 14px; font-weight: 700; fill: var(--red); }
.chart-cat     { font-size: 12.5px; fill: var(--ink); font-weight: 620; }
.chart-cat-sub { fill: var(--muted); font-weight: 500; }
.chart-scope   { font-size: 12px; fill: var(--ink-2); font-weight: 600; }
.chart-mult    { font-size: 14px; fill: var(--copper); font-weight: 700; }

.figure--hero svg { max-height: 380px; }

/* ---------- Rechner ---------- */

.calc {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.calc__inputs { padding: clamp(1.4rem, 1rem + 1.2vw, 2.1rem); background: var(--bg-2); border-right: 1px solid var(--line); }
.calc__output { padding: clamp(1.4rem, 1rem + 1.2vw, 2.1rem); }

.field { margin-bottom: 1.5rem; }
.field:last-child { margin-bottom: 0; }

.field__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
}
.field label { font-size: 0.9rem; font-weight: 620; color: var(--ink); }
.field__val {
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--petrol);
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 26px;
  background: transparent; cursor: pointer; margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px; background: var(--line-2);
}
input[type="range"]::-moz-range-track {
  height: 4px; border-radius: 2px; background: var(--line-2);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; margin-top: -7px;
  border-radius: 50%; background: var(--petrol);
  border: 2px solid #fff; box-shadow: 0 0 0 1px var(--petrol);
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%; background: var(--petrol);
  border: 2px solid #fff; box-shadow: 0 0 0 1px var(--petrol);
}

.segmented { display: grid; grid-auto-flow: column; gap: 0; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  padding: 0.55rem 0.4rem;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 580;
  color: var(--ink-2);
  background: #fff;
  cursor: pointer;
  border-right: 1px solid var(--line-2);
  transition: background-color .12s, color .12s;
}
.segmented label:last-of-type { border-right: 0; }
.segmented label:hover { background: var(--bg-3); }
.segmented input:checked + label { background: var(--petrol); color: #fff; }
.segmented input:focus-visible + label { outline: 2px solid var(--petrol-3); outline-offset: -2px; }

.readout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem 1.6rem; margin-bottom: 1.6rem; }
.readout__item { border-top: 1px solid var(--line); padding-top: 0.8rem; }
.readout__item--lead { border-top: 2px solid var(--copper); grid-column: span 2; }
.readout__val {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.readout__item--lead .readout__val { font-size: clamp(1.9rem, 1.5rem + 1.5vw, 2.5rem); color: var(--copper); }
.readout__label { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 0.3rem; }

/* ---------- Umschalter zum Anlagen-Check ---------- */

.calc__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  align-items: end;
  margin-bottom: 2.25rem;
}
.calc__switch {
  border-left: 2px solid var(--line-2);
  padding-left: clamp(1.2rem, 1rem + 1vw, 1.8rem);
  max-width: 17rem;
}
.calc__switch .note { max-width: 15rem; }

@media (max-width: 860px) {
  .calc__intro { grid-template-columns: 1fr; align-items: start; }
  .calc__switch { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 1.3rem; max-width: none; }
}

/* ---------- Modal ---------- */

.modal {
  width: min(46rem, calc(100vw - 2rem));
  max-height: min(88vh, 54rem);
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: #fff;
  color: var(--ink-2);
  box-shadow: 0 24px 60px rgba(15, 26, 32, 0.22), 0 4px 12px rgba(15, 26, 32, 0.10);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.modal::backdrop { background: rgba(15, 26, 32, 0.55); }
.modal:not([open]) { display: none; }

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem clamp(1.2rem, 1rem + 1vw, 1.9rem);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  flex: none;
}
.modal__close {
  border: 1px solid transparent;
  background: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0.1rem 0.5rem 0.25rem;
  border-radius: var(--radius);
}
.modal__close:hover { color: var(--ink); background: var(--bg-3); }

.modal .wizard {
  border: 0;
  border-radius: 0;
  overflow-y: auto;
  flex: 1 1 auto;
}

/* ---------- Anlagen-Check (Klick-Strecke) ---------- */

.wizard {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.wizard__bar { border-bottom: 1px solid var(--line); }
.wizard__track { height: 3px; background: var(--bg-3); }
.wizard__fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--petrol);
  transition: width .3s ease-out;
}
.wizard__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem clamp(1.2rem, 1rem + 1vw, 2rem);
  font-size: 0.8rem;
  font-weight: 620;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.wizard__back {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  color: var(--petrol);
  cursor: pointer;
}
.wizard__back:hover { color: var(--petrol-3); text-decoration: underline; }

.wizard__step { display: none; padding: clamp(1.5rem, 1.2rem + 1.6vw, 2.6rem); }
.wizard__step.is-active { display: block; }

.wizard__q { font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.55rem); margin-bottom: 0.35em; }
.wizard__hint { color: var(--muted); font-size: 0.93rem; max-width: 44em; margin-bottom: 1.5rem; }

.optgrid { display: grid; gap: 0.7rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.optgrid--years { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.opt {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: left;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .12s, background-color .12s, box-shadow .12s;
}
.optgrid--years .opt {
  align-items: center;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 620;
  padding: 0.85rem 0.5rem;
}
.opt:hover { border-color: var(--petrol); background: var(--petrol-soft); }
.opt.is-chosen {
  border-color: var(--petrol);
  background: var(--petrol-soft);
  box-shadow: inset 0 0 0 1px var(--petrol);
}
.opt--wide { grid-column: 1 / -1; }
.opt__main { font-weight: 640; }
.opt__sub { font-size: 0.86rem; color: var(--muted); font-weight: 400; }

.reveal {
  margin-top: 1.75rem;
  padding: 1.3rem 1.5rem;
  border-left: 3px solid var(--petrol);
  background: var(--petrol-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.reveal[data-tone="warn"] { border-left-color: var(--copper); background: var(--copper-soft); }
.reveal[data-tone="bad"]  { border-left-color: var(--red);    background: var(--red-soft); }
.reveal__lead {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  font-weight: 660;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 0.4em;
}
.reveal__sub { font-size: 0.94rem; color: var(--ink-2); margin-bottom: 1.2em; }

.result__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.result__recap { font-size: 0.9rem; color: var(--muted); margin: 0; }
.result__slider {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.result__slider label { font-size: 0.9rem; font-weight: 620; color: var(--ink); }
.result__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

@media (max-width: 620px) {
  .optgrid { grid-template-columns: 1fr; }
  .optgrid--years { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .result__cta .btn { flex: 1 1 100%; justify-content: center; }
}

.evbar { margin-bottom: 1.5rem; }
.evbar__row {
  display: grid;
  grid-template-columns: 7.2rem 1fr 3.9rem;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}
.evbar__name { font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.evbar__track {
  display: block;
  height: 12px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.evbar__fill {
  display: block;
  height: 100%;
  background: var(--muted-2);
  transition: width .18s ease-out;
}
.evbar__fill--after { background: var(--copper); }
.evbar__pct {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: right;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.verdict {
  padding: 0.95rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.93rem;
  border-left: 3px solid var(--petrol);
  background: var(--petrol-soft);
}
.verdict[data-tone="warn"] { border-left-color: var(--copper); background: var(--copper-soft); }
.verdict[data-tone="bad"]  { border-left-color: var(--red); background: var(--red-soft); }
.verdict strong { display: block; margin-bottom: 0.15rem; }

/* ---------- Fuß ---------- */

.footer {
  background: var(--ink);
  color: #b9c7ce;
  padding: clamp(2.5rem, 2rem + 2vw, 4rem) 0 2rem;
  font-size: 0.92rem;
}
.footer h4 { color: #fff; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.9rem; font-weight: 680; }
.footer a { color: #dbe5ea; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: 0.5rem; }
.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem;
  justify-content: space-between;
  font-size: 0.83rem;
  color: #8d9ea7;
}
.footer .wordmark { color: #fff; }
.footer .wordmark small { color: #93a4ac; }

/* ---------- Rechtstexte ---------- */

.legal { max-width: 42em; }
.legal h2 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem); margin-top: 2.4rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1.02rem; margin-top: 1.6rem; }
.legal p, .legal li { font-size: 0.97rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.4rem; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.5rem; margin: 0 0 1.5rem; }
.legal dt { font-weight: 620; color: var(--ink); }
.legal dd { margin: 0; }

.pagehead {
  padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0 clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}

.skip {
  position: absolute; left: -9999px;
  background: var(--petrol); color: #fff;
  padding: 0.6rem 1rem; border-radius: var(--radius); z-index: 100;
}
.skip:focus { left: 24px; top: 12px; color: #fff; }

/* ---------- Responsiv ---------- */

@media (max-width: 1040px) {
  .mainnav { gap: 1.1rem; }
  .mainnav a { font-size: 0.88rem; }
  .wordmark small { display: none; }
}

@media (max-width: 900px) {
  .mainnav a:not(.btn) { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; }
  .calc__inputs { border-right: 0; border-bottom: 1px solid var(--line); }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .mainnav a:not(.btn) { display: none; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .readout { grid-template-columns: 1fr; }
  .readout__item--lead { grid-column: span 1; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .legal dl { grid-template-columns: 1fr; gap: 0.15rem; }
  .legal dd { margin-bottom: 0.7rem; }
  .segmented { grid-auto-flow: row; }
  .segmented label { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .segmented label:last-of-type { border-bottom: 0; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { justify-content: center; }
}

@media print {
  .masthead, .footer, .btn-row, .calc__inputs { display: none; }
  body { font-size: 11pt; }
}
