/*
  Umschuldo – styles
  Colours, fonts, sizes, spacing and elevation come from tokens.css only.
  Design rules: no cards, no pills, max radius 4px, no gradients, left-aligned
  type, 1px lines instead of boxes. The exceptions are the calculator panel
  (8px radius, soft shadow), the round slider thumbs and the cookie dialogs
  while they are open (same panel style).
*/

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  hyphens: auto;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-head);
  letter-spacing: var(--tr-head);
  text-wrap: balance;
  hyphens: manual;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

ul,
ol,
dl,
dd,
fieldset {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

fieldset {
  min-width: 0;
  border: 0;
}

input,
textarea,
button {
  color: inherit;
  font: inherit;
}

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

::selection {
  background: var(--brand);
  color: var(--white);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.sprite {
  fill: currentColor;
}

.visually-hidden input {
  border: 0;
}

.skip-link {
  position: absolute;
  top: -10rem;
  left: var(--s-2);
  z-index: 100;
  padding: var(--s-1) var(--s-2);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--brand);
  font-weight: 700;
}

.skip-link:focus {
  top: var(--s-2);
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Contexts with a dark background invert the focus ring. */
.on-brand,
.on-ink {
  --focus: var(--white);
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-h);
  padding: 0 var(--s-4);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease);
}

.btn--primary {
  background: var(--brand);
  color: var(--white);
}

.btn--primary:hover,
.btn--primary:active {
  background: var(--brand-dark);
}

.btn--secondary {
  min-height: 2.75rem;
  padding: 0 var(--s-3);
  background: var(--white);
  border-color: var(--brand);
  color: var(--brand);
}

.btn--secondary:hover,
.btn--secondary:active {
  background: var(--tint);
  border-color: var(--brand-dark);
  color: var(--brand-dark);
}

/* ── Header ────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header--brand {
  background: var(--brand);
  color: var(--white);
  border-bottom-color: var(--line-inverse);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: var(--s-2);
  padding-block: var(--s-1);
}

.logo {
  display: inline-block;
  flex: none;
  padding-block: 2px; /* keeps the hit area at 24px on mobile */
  line-height: 0;
}

.logo img {
  width: auto;
  height: 1.25rem;
}

.site-nav ul {
  display: flex;
  column-gap: var(--s-2);
}

.site-nav a,
.site-footer__links a,
.site-footer__links button {
  display: inline-block;
  background: none;
  border: 0;
  cursor: pointer;
  padding-block: 6px;
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: text-decoration-color var(--t-fast) var(--ease);
}

.site-nav a:hover,
.site-footer__links a:hover,
.site-footer__links button:hover {
  text-decoration-color: currentColor;
}

@media (min-width: 768px) {
  .logo {
    padding-block: 0;
  }

  .logo img {
    height: 2rem;
  }

  .site-nav ul {
    column-gap: var(--s-4);
  }

  .site-nav a,
  .site-footer__links a,
  .site-footer__links button {
    font-size: var(--fs-sm);
  }
}

/* ── Hero zone: copy + calculator panel as one first screen ────────────── */
.hero-zone {
  position: relative;
  overflow-x: clip;
  color: var(--white);
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

/* Mobile and tablet: the violet area belongs to the copy block … */
.hero__copy {
  position: relative;
  z-index: 0;
  padding-block: var(--s-3) calc(var(--s-3) + var(--overlap));
}

.hero__copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 calc(50% - 50vw);
  background: var(--brand);
}

/* … and the panel is pulled up over its bottom edge. */
.hero__grid > .calc-panel {
  margin-top: calc(-1 * var(--overlap));
}

.hero__title {
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-display);
}

.hero__title span {
  display: block;
}

.hero__lead {
  max-width: 34ch;
  margin-top: var(--s-2);
  font-size: var(--fs-lead);
  line-height: 1.45;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-3);
  margin-top: var(--s-2);
  font-size: var(--fs-sm);
  font-weight: 500;
}

.trust li {
  display: flex;
  align-items: center;
  gap: var(--s-1);
}

.trust svg {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: var(--lavender);
  stroke-width: 2;
  stroke-linecap: square;
}

.hero__rating {
  margin-top: var(--s-3);
  padding-top: var(--s-2);
  border-top: 1px solid var(--line-inverse);
  font-size: var(--fs-sm);
}

.hero__rating[hidden] {
  display: none;
}

.hero__rating-score {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  font-weight: 500;
}

.hero__rating svg {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  fill: var(--lavender);
}

.hero__rating a {
  display: inline-block;
  margin-top: 2px;
  text-underline-offset: 3px;
}

/* Desktop: two columns, violet area ends `--overlap` above the panel's bottom */
@media (min-width: 960px) {
  .hero-zone::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: calc(100% - var(--overlap));
    background: var(--brand);
  }

  .hero__grid {
    grid-template-columns: 45% minmax(0, 1fr);
    column-gap: var(--s-6);
    align-items: start;
    padding-top: var(--s-5);
  }

  .hero__copy {
    padding-block: var(--s-2) 0;
  }

  .hero__copy::before {
    display: none;
  }

  .hero__grid > .calc-panel {
    margin-top: 0;
  }

  .hero__title span {
    white-space: nowrap;
  }

  .hero__lead {
    margin-top: var(--s-3);
  }

  .trust {
    margin-top: var(--s-3);
  }
}

/* ── Sections ──────────────────────────────────────────────────────────── */
.section {
  padding-block: var(--section-pad);
}

.section--tint {
  background: var(--tint);
}

.section--ruled {
  border-top: 1px solid var(--line);
}

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-1);
  margin-bottom: var(--s-3);
}

.section__title {
  max-width: 24ch;
  font-size: var(--fs-h2);
}

.section__lead {
  max-width: 48ch;
  color: var(--ink-soft);
}

/* Heading left, content right (editorial split) */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-3);
}

.split .section__head {
  margin-bottom: 0;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: var(--s-8);
    align-items: start;
  }

  .section__head {
    margin-bottom: var(--s-4);
  }
}

/* ── Calculator panel (the only elevated element) ──────────────────────── */
.calc-panel {
  container-type: inline-size;
  position: relative;
  z-index: 1;
  padding: var(--s-3) var(--s-2);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
}

@media (min-width: 768px) {
  .calc-panel {
    padding: var(--s-2) var(--s-3) var(--s-3);
  }
}

.calc-panel__title {
  font-size: var(--fs-h2);
  line-height: 1.1;
}

.noscript {
  margin-top: var(--s-2);
  font-weight: 700;
}

.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-2);
  margin-top: var(--s-2);
}

/* Fields: label + editable number on one row, slider below */
.calc__sliders {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-2);
}

.field__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-1);
}

.field__label {
  flex: 1 1 0;
  min-width: 0;
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.3;
}

.numfield {
  display: flex;
  flex: none;
  align-items: center;
  height: 2.25rem;
  padding-inline: var(--s-1);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color var(--t-fast) var(--ease);
}

.numfield:hover {
  border-color: var(--ink);
}

.numfield:focus-within {
  border-color: var(--brand);
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.has-error .numfield {
  border-color: var(--ink);
  outline: 1px solid var(--ink);
}

.has-error .numfield:focus-within {
  outline: 2px solid var(--brand);
}

.numfield input {
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: right;
  outline: 0;
}

.numfield--principal input {
  width: 8ch;
}

.numfield--rate input {
  width: 5ch;
}

.numfield--months input {
  width: 4ch;
}

.numfield__unit {
  padding-left: 4px;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  font-weight: 500;
}

.field__hint,
.field__error {
  margin-top: 2px;
  font-size: var(--fs-xs);
  line-height: 1.4;
}

.field__hint {
  color: var(--ink-soft);
}

.field__error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--ink);
  font-weight: 700;
}

.field__error[hidden] {
  display: none;
}

.field__error svg {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linejoin: miter;
}

/* Slider: a transparent native range input on top (keyboard, touch, screen
   readers) and drawn rail, fill and thumb underneath. */
.slider {
  --thumb: 20px;
  --ratio: 0;
  position: relative;
  height: 2.25rem;
}

@media (min-width: 768px) {
  .slider {
    height: 2rem;
  }
}

.slider input[type="range"] {
  color: var(--ink);
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  touch-action: pan-y;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}

.slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: var(--thumb);
  height: var(--thumb);
}

.slider input[type="range"]::-moz-range-thumb {
  width: var(--thumb);
  height: var(--thumb);
  border: 0;
}

.slider__rail,
.slider__fill {
  position: absolute;
  top: 50%;
  height: 6px;
  margin-top: -3px;
  pointer-events: none;
}

.slider__rail {
  right: 0;
  left: 0;
  border-radius: 3px;
  background: var(--lavender);
}

.slider__fill {
  left: 0;
  width: calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--ratio));
  border-radius: 3px 0 0 3px;
  background: var(--brand);
}

.slider__thumb {
  position: absolute;
  top: 50%;
  left: calc((100% - var(--thumb)) * var(--ratio));
  width: var(--thumb);
  height: var(--thumb);
  margin-top: calc(var(--thumb) / -2);
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--brand);
  pointer-events: none;
  transition: background-color var(--t-fast) var(--ease);
}

.slider input:hover ~ .slider__thumb,
.slider input:active ~ .slider__thumb {
  background: var(--brand-dark);
}

.slider input:focus-visible ~ .slider__thumb {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Results */
.results {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.result {
  padding-block: 6px;
  border-top: 1px solid var(--line);
}

.result dt {
  color: var(--ink-soft);
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1.4;
}

.result dd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: var(--s-1);
}

.result__value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5.4cqi, 1.75rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: normal;
  hyphens: none;
}

.result__value.is-prompt {
  max-width: 24ch;
  padding-block: 2px;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.35;
}

.result__unit {
  color: var(--ink-soft);
  font-size: var(--fs-xs);
}

/* Interest bars */
.bars {
  display: grid;
  gap: 6px;
}

.bars__caption {
  color: var(--ink-soft);
  font-size: var(--fs-xs);
  font-weight: 500;
}

.bar {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) 6rem;
  align-items: center;
  gap: var(--s-1);
  font-size: var(--fs-xs);
}

.bar__track {
  height: 10px;
}

.bar__fill {
  display: block;
  width: var(--w, 0%);
  height: 100%;
  border-radius: 2px;
  transition: width var(--t-number) var(--ease);
}

.bar__fill--today {
  background: var(--brand);
}

.bar__fill--compare {
  background: var(--lavender);
}

.bar__value {
  font-family: var(--font-display);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: right;
  hyphens: none;
}

.calc__note {
  color: var(--ink-soft);
  font-size: var(--fs-xs);
  line-height: 1.5;
}

.calc .btn {
  width: 100%;
}

/* Legal warning: plain bold text, thin line above */
.warning {
  margin-top: var(--s-2);
  padding-top: 6px;
  border-top: 1px solid var(--ink);
  font-size: var(--fs-lead);
  font-weight: 700;
  line-height: 1.3;
}

.calc__cta {
  display: grid;
  gap: 0;
}

.calc__cta .warning {
  margin-top: 12px;
}

/* Container queries: the panel adapts to its own width */
@container (max-width: 419px) {
  .result {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    column-gap: var(--s-2);
  }

  .result dd {
    justify-content: flex-end;
    margin-left: auto;
  }
}

@container (min-width: 420px) {
  .results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--s-3);
  }
}

@container (min-width: 500px) {
  .calc__sliders {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--s-3);
    row-gap: var(--s-2);
  }
}

/* Rating (revealed after the first interaction, below the warning) */
.rating {
  margin-top: var(--s-1);
  padding-top: var(--s-2);
  border-top: 1px solid var(--line);
}

.rating[hidden],
.rating [hidden] {
  display: none;
}

.rating__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 var(--s-2);
}

.rating__legend {
  font-size: var(--fs-sm);
  font-weight: 700;
}

.stars {
  display: flex;
  gap: 2px;
  margin-left: -4px;
}

.stars label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--brand);
  cursor: pointer;
}

.stars svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: miter;
  transition: fill var(--t-fast) var(--ease);
}

.stars label.is-on svg {
  fill: var(--brand);
}

.stars input:focus-visible + label {
  outline: 2px solid var(--brand);
  outline-offset: 0;
  border-radius: var(--radius);
}

.rating textarea {
  display: block;
  width: 100%;
  min-height: 3.5rem;
  margin-top: 4px;
  padding: var(--s-1) 12px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.4;
  resize: vertical;
  transition: border-color var(--t-fast) var(--ease);
}

.rating textarea::placeholder {
  color: var(--ink-soft);
  opacity: 1;
}

.rating textarea:hover {
  border-color: var(--ink);
}

.rating textarea:focus {
  border-color: var(--brand);
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.rating__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--s-1) var(--s-2);
  margin-top: var(--s-1);
}

.rating__meta {
  display: flex;
  flex: 1 1 14rem;
  flex-direction: column;
  gap: 2px;
  color: var(--ink-soft);
  font-size: var(--fs-xs);
  line-height: 1.4;
}

.rating .btn {
  flex: none;
  width: auto;
}

.rating__message {
  margin-top: var(--s-1);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.rating__thanks {
  font-weight: 700;
}

/* ── Partner comparison slot ───────────────────────────────────────────── */
.widget-slot {
  min-height: 7rem;
  padding: var(--s-2);
  border: 1px dashed var(--line-strong);
}

.widget-slot__label {
  color: var(--ink-soft);
  font-size: var(--fs-xs);
}

.widget-slot.is-filled {
  min-height: 0;
  padding: 0;
  border: 0;
}

.widget-slot.is-filled .widget-slot__label {
  display: none;
}

/* The section after the hero zone only needs its normal padding: the panel is
   already part of the zone's height. */

/* ── Steps ─────────────────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.step {
  padding-block: var(--s-2);
  border-top: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 1px solid var(--line);
}

.step__no {
  display: block;
  margin-bottom: var(--s-1);
  color: var(--brand);
  font-family: var(--font-display);
  font-size: var(--fs-step);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.step__title {
  font-size: var(--fs-h3);
}

.step p {
  max-width: 30ch;
  margin-top: 4px;
  color: var(--ink-soft);
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .step,
  .step:last-child {
    padding: var(--s-3) var(--s-3) var(--s-3);
    border: 0;
  }

  .step:first-child {
    padding-left: 0;
  }

  .step + .step {
    border-left: 1px solid var(--line);
  }
}

/* ── Points ("Das sollten Sie wissen") ─────────────────────────────────── */
.points {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.point {
  padding-block: var(--s-2);
  border-top: 1px solid var(--line);
}

.point dt {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  hyphens: manual;
}

.point dd {
  margin-top: 4px;
  color: var(--ink-soft);
}

@media (min-width: 768px) {
  .points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--s-6);
  }
}

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq {
  border-bottom: 1px solid var(--line);
}

.faq__item {
  border-top: 1px solid var(--line);
}

.faq__item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-2);
  padding-block: var(--s-2);
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
  transition: color var(--t-fast) var(--ease);
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary:hover {
  color: var(--brand);
}

.faq__icon {
  position: relative;
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1em;
  color: var(--brand);
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 2px;
  right: 2px;
  height: 2px;
  margin-top: -1px;
  background: currentColor;
  transition: transform var(--t-med) var(--ease);
}

.faq__icon::after {
  transform: rotate(90deg);
}

.faq__item[open] .faq__icon::after {
  transform: rotate(0deg);
}

.faq__item p {
  max-width: 56ch;
  padding-bottom: var(--s-2);
  padding-right: var(--s-5);
  color: var(--ink-soft);
}

/* ── Footer (compact) ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: var(--white);
  padding-block: var(--s-5) var(--s-3);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-3);
}

.site-footer .logo img {
  height: 1.5rem;
}

.site-footer__text {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-1);
  max-width: 60ch;
  margin-top: var(--s-2);
  color: var(--white-muted);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--s-3);
}

.site-footer .warning {
  margin-top: var(--s-1);
  border-top-color: var(--line-inverse);
  color: var(--white);
}

.site-footer__legal {
  margin-top: var(--s-3);
  color: var(--white-muted);
  font-size: var(--fs-xs);
}

@media (min-width: 960px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: var(--s-8);
    align-items: start;
  }

  .site-footer__side {
    padding-top: 0;
  }

  .site-footer__links {
    align-items: center;
  }

  .site-footer__links a,
  .site-footer__links button {
    padding-block: 4px;
  }

  .site-footer .warning {
    margin-top: var(--s-3);
  }

  .site-footer__legal {
    margin-top: var(--s-2);
  }
}

/* ── Mobile sticky bar ─────────────────────────────────────────────────── */
.sticky-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  padding: var(--s-1) var(--gutter) calc(var(--s-1) + env(safe-area-inset-bottom));
  background: var(--white);
  border-top: 1px solid var(--line);
  transform: translateY(100%);
  visibility: hidden;
  transition:
    transform var(--t-med) var(--ease),
    visibility 0s linear var(--t-med);
}

.sticky-cta.is-visible {
  transform: none;
  visibility: visible;
  transition:
    transform var(--t-med) var(--ease),
    visibility 0s;
}

.sticky-cta .btn {
  width: 100%;
}

@media (min-width: 768px) {
  .sticky-cta {
    display: none;
  }
}

/* ── Legal pages and 404 ───────────────────────────────────────────────── */
.legal {
  padding-block: var(--s-6) var(--s-9);
}

.legal__title {
  max-width: 24ch;
  margin-bottom: var(--s-1);
  font-size: var(--fs-h2);
}

.legal__meta {
  margin-bottom: var(--s-4);
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}

.prose {
  max-width: 44rem;
}

.prose h2 {
  margin-top: var(--s-4);
  padding-top: var(--s-2);
  border-top: 1px solid var(--line);
  font-size: var(--fs-h3);
}

.prose h2 + * {
  margin-top: var(--s-1);
}

.prose p + p,
.prose p + ul,
.prose ul + p {
  margin-top: var(--s-1);
}

.prose ul {
  padding-left: var(--s-3);
  list-style: square;
}

.prose li + li {
  margin-top: 4px;
}

.prose a,
.facts a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--t-fast) var(--ease);
}

.prose a:hover,
.facts a:hover {
  color: var(--brand-dark);
}

.facts {
  max-width: 44rem;
}

.facts__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  padding-block: var(--s-1);
  border-top: 1px solid var(--line);
}

.facts__row:last-child {
  border-bottom: 1px solid var(--line);
}

.facts dt {
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  font-weight: 500;
}

@media (min-width: 640px) {
  .facts__row {
    grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
    column-gap: var(--s-3);
  }
}

.notfound__code {
  display: block;
  margin-bottom: var(--s-2);
  color: var(--brand);
  font-family: var(--font-display);
  font-size: var(--fs-step);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.notfound .btn {
  margin-top: var(--s-3);
}

/* ── Cookie consent (js/consent.js) ────────────────────────────────────── */
[hidden] {
  display: none !important;
}

/* keep the end of the page reachable while the first layer is open */
.has-consent-banner body {
  padding-bottom: var(--consent-h, 0);
}

.consent-modal-open {
  overflow: hidden;
}

.consent {
  position: fixed;
  z-index: 1000;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: 85vh;
  max-height: 85dvh;
  padding: var(--s-2) var(--s-2) calc(var(--s-2) + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-panel) var(--radius-panel) 0 0;
  box-shadow: var(--shadow-panel-up);
}

.consent:focus {
  outline: none;
}

.consent:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -4px;
}

.consent__title {
  font-size: var(--fs-h3);
}

.consent__text {
  margin-top: var(--s-1);
  color: var(--ink);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.consent__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s-3);
  margin-top: var(--s-1);
  font-size: var(--fs-sm);
  font-weight: 500;
}

.consent__links a {
  padding-block: 4px;
  color: var(--brand);
  text-underline-offset: 3px;
}

.consent__links a:hover {
  color: var(--brand-dark);
}

.consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
  margin-top: var(--s-1);
}

/* Both choices share one style, one size and one row. */
.consent__actions .btn {
  flex: 1 1 0;
  min-width: 0;
  padding-inline: var(--s-1);
  line-height: 1.2;
  white-space: normal;
}

.consent__more {
  flex: 1 1 100%;
  min-height: 2.25rem;
  padding: 0 var(--s-1);
  background: none;
  border: 0;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-align: left;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease);
}

.consent__more:hover {
  color: var(--brand);
}

@media (min-width: 768px) {
  .consent:not(.consent--settings) {
    right: var(--s-3);
    bottom: var(--s-3);
    left: var(--s-3);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 26rem;
    column-gap: var(--s-6);
    align-items: start;
    max-width: calc(var(--container) + 2 * var(--s-3));
    margin-inline: auto;
    padding: var(--s-3);
    border-radius: var(--radius-panel);
    box-shadow: var(--shadow-panel);
  }

  .consent:not(.consent--settings) .consent__actions {
    margin-top: var(--s-1);
  }

  .consent:not(.consent--settings) .consent__more {
    text-align: left;
  }
}

/* second layer: a centred dialog on a dimmed page */
.consent-overlay {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-2);
  background: var(--scrim);
}

.consent--settings {
  position: relative;
  inset: auto;
  width: 100%;
  max-width: 36rem;
  max-height: calc(100vh - var(--s-4));
  max-height: calc(100dvh - var(--s-4));
  padding: var(--s-3);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
}

.consent__cats {
  margin-top: var(--s-2);
  border-bottom: 1px solid var(--line);
}

.consent__cat {
  padding-block: var(--s-2);
  border-top: 1px solid var(--line);
}

.consent__cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
}

.consent__cat-label {
  flex: 1;
  font-size: var(--fs-base);
  font-weight: 700;
}

.consent__cat-text {
  margin-top: 4px;
  max-width: 44ch;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

/* square check box instead of a pill switch */
.consent__toggle {
  position: relative;
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition:
    background-color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
}

.consent__toggle:hover {
  border-color: var(--ink);
}

.consent__toggle:checked {
  background: var(--brand);
  border-color: var(--brand);
}

.consent__toggle:checked::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 7px;
  width: 6px;
  height: 11px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.consent__toggle:disabled {
  background: var(--ink-soft);
  border-color: var(--ink-soft);
  cursor: not-allowed;
}

.consent__toggle:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.consent--settings .consent__links {
  margin-top: var(--s-2);
}

/* services table on /datenschutz/ */
.services {
  width: 100%;
  margin-top: var(--s-2);
  border-collapse: collapse;
  font-size: var(--fs-sm);
  line-height: 1.45;
}

.services th,
.services td {
  padding: var(--s-1) var(--s-1) var(--s-1) 0;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.services th {
  color: var(--ink-soft);
  font-weight: 500;
}

.services tbody tr:last-child td {
  border-bottom: 1px solid var(--line);
}

.services a {
  display: inline-block;
  margin-top: 2px;
}

@media (max-width: 767px) {
  .services thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .services,
  .services tbody,
  .services tr,
  .services td {
    display: block;
    width: 100%;
  }

  .services tr {
    padding-block: var(--s-1);
    border-top: 1px solid var(--line);
  }

  .services tbody tr:last-child {
    border-bottom: 1px solid var(--line);
  }

  .services td {
    padding: 2px 0;
    border: 0;
  }

  .services tbody tr:last-child td {
    border: 0;
  }

  .services td::before {
    content: attr(data-label) ": ";
    color: var(--ink-soft);
    font-weight: 500;
  }
}

/* ── Motion preferences ────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
