/*
 * Aureon Website - Schliessfach-Halle, dieselbe Welt wie die App
 * (src/app/globals.css, DESIGN.md): geschwaerzter Stahl, Stahlkanten,
 * Messing ausschliesslich als Datenfarbe. Nur dunkel.
 *
 * Schrift liegt in fonts/ und kommt von der eigenen Domain - zur Laufzeit
 * geht keine Anfrage an Dritte.
 */

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/barlow-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Nur fuer die Hijri-Monatsnamen (ā, ī, ū). */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/barlow-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/barlow-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/barlow-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/barlow-semi-condensed-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/barlow-semi-condensed-latin-600-normal.woff2') format('woff2');
}

:root {
  --ground: #0e1012;
  --panel: #15181b;
  --raised: #1c2024;
  --edge: #2a2f35;
  --edge-strong: #3b4148;
  --text: #dad6cc;
  --muted: #8f959c;
  --brass: #c9a45c;
  --brass-bright: #ead5a2;
  --brass-deep: #6f5c35;
  --silver: #b4bcc4;
  --gain: #7fb59a;
  --loss: #de7a63;
  --chart-sell: #b38c3e;
  --chart-buy: #6e92d6;
  --chart-grid: #23282d;

  --font-sans: 'Barlow', system-ui, sans-serif;
  --font-plate: 'Barlow Semi Condensed', 'Barlow', system-ui, sans-serif;

  --rand: clamp(16px, 4vw, 56px);
  --kopf: 64px;
  --breite: 1280px;
  --raus: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

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

* {
  -webkit-tap-highlight-color: transparent;
}

html {
  -webkit-text-size-adjust: 100%;
  background-color: var(--ground);
  scrollbar-color: var(--edge-strong) var(--ground);
  scroll-padding-top: var(--kopf);
}

body {
  margin: 0;
  background-color: var(--ground);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: color-mix(in srgb, var(--brass) 35%, transparent);
  color: var(--brass-bright);
}

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

a {
  color: inherit;
  text-underline-offset: 4px;
}

h2,
h3,
p,
dl,
dd,
ol,
ul,
figure {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

/* Jede Zahl in gleich breiten Ziffern. */
.num {
  font-family: var(--font-plate);
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: 'tnum', 'lnum';
  white-space: nowrap;
}

.gain {
  color: var(--gain);
}
.loss {
  color: var(--loss);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

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

.skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 60;
  padding: 10px 14px;
  background: var(--raised);
  border: 1px solid var(--edge-strong);
  border-radius: 4px;
  transform: translateY(-200%);
}
.skip:focus-visible {
  transform: none;
}

/* ------------------------------------------------------------------ */
/* Schaltflaechen                                                      */
/* ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 4px;
  font: 600 16px/1 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s var(--raus);
}
.btn-primary {
  background: var(--brass);
  color: var(--ground);
}
.btn-primary:hover {
  background: var(--brass-bright);
}
.btn-primary:active {
  background: var(--brass);
}
.btn-secondary {
  background: var(--raised);
  color: var(--text);
  border: 1px solid var(--edge);
}
.btn-secondary:hover {
  border-color: var(--edge-strong);
}
.btn-gross {
  min-height: 52px;
  padding: 0 24px;
  font-size: 17px;
}

.textlink {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--edge-strong);
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.18s var(--raus);
}
.textlink:hover {
  text-decoration-color: var(--brass);
}

/* ------------------------------------------------------------------ */
/* Kopfzeile                                                           */
/* ------------------------------------------------------------------ */

.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--kopf);
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  border-bottom: 1px solid var(--edge);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.kopf-innen {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}
.wortmarke {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
}
.wortmarke svg {
  width: 24px;
  height: 24px;
  flex: none;
}
.wortmarke span {
  font: 600 19px/1 var(--font-plate);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.kopf-nav {
  display: none;
  gap: 4px;
  margin-left: 16px;
}
.kopf-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 4px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.18s var(--raus);
}
.kopf-nav a:hover {
  color: var(--text);
}
.kopf-aktionen {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.kopf-aktionen .anmelden {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.kopf-aktionen .anmelden:hover {
  color: var(--text);
}
.kopf-aktionen .btn {
  min-height: 40px;
  padding: 0 14px;
  font-size: 15px;
}

/* Schmale Telefone: die Kopfzeile bleibt im Seitenrand. */
@media (max-width: 859px) {
  .kopf-innen {
    gap: 12px;
  }
  .wortmarke span {
    font-size: 17px;
    letter-spacing: 0.1em;
  }
  .kopf-aktionen {
    gap: 4px;
  }
  .kopf-aktionen .anmelden {
    padding: 0 6px;
  }
  .kopf-aktionen .btn {
    padding: 0 12px;
  }
}
@media (max-width: 359px) {
  .kopf-aktionen .anmelden {
    display: none;
  }
}
@media (max-width: 759px) {
  .achse .ende {
    display: none;
  }
}

@media (min-width: 860px) {
  .kopf-nav {
    display: flex;
  }
  .kopf-aktionen {
    gap: 12px;
  }
}

/* ------------------------------------------------------------------ */
/* Erster Bildschirm: drei Fragen, drei Antworten                      */
/* ------------------------------------------------------------------ */

.fragen {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr)) auto auto;
  min-height: calc(100svh - var(--kopf));
}

.frage {
  position: relative;
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--edge);
  transition: background-color 0.25s var(--raus);
}
.frage:hover {
  background: var(--panel);
}
.frage-innen {
  display: grid;
  gap: 10px;
  padding-block: 22px;
}
.frage-titel {
  font-size: clamp(1.75rem, min(0.9rem + 3.4vw, 6.6vh), 4.25rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.02em;
  max-width: 13ch;
  text-wrap: balance;
}
.frage-titel a {
  text-decoration: none;
}
/* Die ganze Zeile fuehrt zum Abschnitt. */
.frage-titel a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.frage-titel a:focus-visible {
  outline: none;
}
.frage:has(a:focus-visible) {
  outline: 2px solid var(--brass);
  outline-offset: -2px;
}
.antwort-wert {
  font: 600 clamp(2.75rem, min(1.2rem + 5vw, 9.6vh), 5.75rem) / 0.95 var(--font-plate);
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.025em;
  color: var(--brass-bright);
  white-space: nowrap;
}
.antwort-wert.offen {
  color: var(--text);
}
.antwort-sub {
  margin-top: 10px;
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(0.9375rem, 0.82rem + 0.35vw, 1.125rem);
  line-height: 1.4;
}
.antwort-sub .num {
  color: var(--text);
  font-size: 1.06em;
}
.antwort-sub .delta {
  margin-right: 0.35em;
  font-weight: 600;
}
.antwort-sub .delta.gain {
  color: var(--gain);
}
.antwort-sub .delta.loss {
  color: var(--loss);
}

@media (min-width: 760px) {
  .frage-innen {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    padding-block: clamp(14px, 2.2vh, 32px);
  }
}

/* Zeitleiste: zwei exakt lange Balken auf einer Tagesskala. */
.leiste {
  background: var(--panel);
  border-bottom: 1px solid var(--edge);
}
.leiste-innen {
  display: grid;
  gap: 12px;
  padding-block: 14px 12px;
}
.leiste-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 32px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}
.leiste-kopf strong {
  color: var(--text);
  font-weight: 500;
}
.leiste-kopf .num {
  color: var(--text);
  font-size: 15px;
}
.leiste-stand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 32px;
}
.heute-btn {
  min-height: 32px;
  padding: 0 10px;
  background: var(--raised);
  border: 1px solid var(--edge);
  border-radius: 4px;
  color: var(--text);
  font: 500 14px/1 var(--font-sans);
  cursor: pointer;
}
.heute-btn:hover {
  border-color: var(--edge-strong);
}
.heute-btn[hidden] {
  display: none;
}

.skala {
  display: grid;
  gap: 10px;
}
.skala-namen {
  display: grid;
  gap: 2px;
  font-size: 14px;
  color: var(--muted);
}
.skala-namen li {
  display: flex;
  gap: 8px;
  align-items: center;
  height: 28px;
  white-space: nowrap;
}
.skala-namen b {
  flex: none;
  width: 86px;
  color: var(--text);
  font-weight: 500;
}
.bahn {
  position: relative;
  height: 86px;
  touch-action: pan-y;
}
.spur {
  position: absolute;
  left: 0;
  height: 6px;
  border-radius: 999px;
  background: var(--edge);
}
.spur-tax {
  top: 11px;
}
.spur-hawl {
  top: 39px;
}
.fuellung {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: var(--brass-deep);
}
.spur.voll .fuellung {
  background: var(--brass);
}
.achse {
  position: absolute;
  inset: 68px 0 auto 0;
  height: 1px;
  background: var(--edge);
}
.achse span {
  position: absolute;
  top: 0;
  padding-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}
.achse span::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  width: 1px;
  height: 5px;
  background: var(--edge-strong);
}
.achse .mitte {
  transform: translateX(-50%);
}
.achse .mitte::before {
  left: 50%;
}
.achse .ende {
  right: 0;
}
.achse .ende::before {
  left: auto;
  right: 0;
}
.griff {
  position: absolute;
  top: 0;
  width: 0;
  height: 62px;
  pointer-events: none;
}
.griff::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 12px;
  left: -1px;
  width: 2px;
  background: var(--brass);
}
.griff::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -8px;
  width: 16px;
  height: 22px;
  border-radius: 2px;
  background: var(--brass);
  transition: background-color 0.18s var(--raus);
}
.bahn:hover .griff::after,
.bahn:has(input:active) .griff::after {
  background: var(--brass-bright);
}
.bahn:has(input:focus-visible) .griff::after {
  outline: 2px solid var(--brass-bright);
  outline-offset: 3px;
}
.bahn input {
  position: absolute;
  top: -4px;
  left: -8px;
  width: calc(100% + 16px);
  height: 74px;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  touch-action: pan-y;
}
.bahn input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 74px;
}
.bahn input::-moz-range-thumb {
  width: 16px;
  height: 74px;
  border: 0;
}

@media (min-width: 760px) {
  .skala {
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    column-gap: 32px;
  }
}

/* Unterste Zeile: was Aureon ist, und die Aktion. */
.angebot-innen {
  display: grid;
  gap: 18px;
  padding-block: 16px 20px;
}
.angebot p {
  max-width: 62ch;
  font-size: clamp(1.0625rem, 0.95rem + 0.45vw, 1.3125rem);
  line-height: 1.4;
}
.angebot-aktion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}
.angebot-aktion small {
  color: var(--muted);
  font-size: 14px;
}

@media (min-width: 760px) {
  .angebot-innen {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 48px;
  }
}

/* ------------------------------------------------------------------ */
/* Abschnitte                                                          */
/* ------------------------------------------------------------------ */

.abschnitt {
  padding-block: clamp(72px, 9vw, 136px);
  border-top: 1px solid var(--edge);
}
.abschnitt:first-of-type {
  border-top: 0;
}
.abschnitt h2 {
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.lead {
  margin-top: 20px;
  max-width: 28ch;
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.625rem);
  font-weight: 500;
  line-height: 1.3;
  text-wrap: balance;
}
.text {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  max-width: 60ch;
  color: var(--muted);
}
.text strong {
  color: var(--text);
  font-weight: 500;
}
.hinweis {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.geteilt {
  display: grid;
  gap: 40px;
}
@media (min-width: 960px) {
  .geteilt {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(48px, 6vw, 96px);
    align-items: start;
  }
  .geteilt > .haftet {
    position: sticky;
    top: calc(var(--kopf) + 40px);
  }
  .geteilt.gedreht > :first-child {
    order: 2;
  }
}

/* Flaechige Gruppe mit Stahlkante - keine Karte in der Karte. */
.panel {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 4px;
}

.schild {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 13px/1 var(--font-plate);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.schild .nr {
  color: var(--brass);
}
.schild.silber .nr {
  color: var(--silver);
}
.schild .metall {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* Wert: Preistafel und Kurve */
.tafel {
  padding: 20px;
}
.tafel-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}
.tafel-titel {
  margin-top: 10px;
  font-size: 19px;
  font-weight: 600;
}
.reihen {
  margin-top: 8px;
}
.reihe {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 13px;
  border-bottom: 1px solid var(--edge);
}
.reihe:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.reihe dt {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}
.reihe dt span {
  display: block;
  font-size: 13px;
}
.reihe dd {
  font-size: 19px;
  font-weight: 600;
  text-align: right;
}
.reihe.haupt dt {
  color: var(--text);
}
.reihe.haupt dd {
  color: var(--brass-bright);
  font-size: clamp(2rem, 1.4rem + 1.8vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.kurve {
  margin-top: 8px;
  padding: 20px 20px 16px;
}
.kurve-flaeche {
  min-height: 220px;
}
.kurve svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.kurve svg text {
  font-family: var(--font-plate);
  font-variant-numeric: tabular-nums lining-nums;
  font-size: 12px;
  fill: var(--muted);
}
.kurve svg .ende-kauf {
  fill: var(--chart-buy);
  font-size: 13px;
  font-weight: 600;
}
.kurve svg .ende-ankauf {
  fill: var(--chart-sell);
  font-size: 13px;
  font-weight: 600;
}
.kurve svg .ende-bezahlt {
  fill: var(--text);
  font-size: 13px;
}
.kurve figcaption {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--edge);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

/* Frist: die Fachwand */
.frist-kopf {
  display: grid;
  gap: 8px;
}
@media (min-width: 960px) {
  .frist-kopf {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(48px, 6vw, 96px);
    align-items: end;
  }
  .frist-kopf .text {
    margin-top: 0;
  }
}
.wand-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  margin-top: clamp(40px, 5vw, 72px);
  padding-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
}
.wand-kopf b {
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
}
.wand {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (min-width: 640px) {
  .wand {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .wand {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.fach {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 4px;
  transition: border-color 0.18s var(--raus);
}
.fach:hover {
  border-color: var(--edge-strong);
}
.fach.verkauft {
  opacity: 0.55;
}
.fach-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.fach-kopf small {
  color: var(--muted);
  font-size: 11px;
}
.fach-titel {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}
.fach-menge {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}
.fach-wert {
  margin-top: auto;
}
.fach-wert .wert {
  color: var(--brass-bright);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}
.fach-wert .delta {
  font-size: 13px;
}
.fach-wert .delta span {
  margin-left: 5px;
  opacity: 0.85;
}
.fach-wert .ohne {
  color: var(--muted);
  font-size: 13px;
}
.uhren {
  display: grid;
  gap: 6px;
}
.uhr {
  display: grid;
  gap: 4px;
}
.uhr-kopf {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  line-height: 1;
}
.uhr-kopf span:first-child {
  color: var(--muted);
}
.uhr-kopf .num {
  color: color-mix(in srgb, var(--text) 80%, transparent);
}
.uhr.voll .uhr-kopf .num {
  color: var(--brass);
}
.uhr-bahn {
  position: relative;
  height: 3px;
}
.uhr-bahn i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: var(--edge);
}
.uhr-bahn i + i {
  background: var(--brass-deep);
}
.uhr.voll .uhr-bahn i + i {
  background: var(--brass);
}

/* Zakat: je Person und Metall */
.personen {
  display: grid;
  gap: 8px;
}
.person-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--edge);
}
.person-kopf b {
  font-size: 19px;
  font-weight: 600;
}
.person-kopf span {
  color: var(--muted);
  font-size: 14px;
}
.metall-block {
  display: grid;
  gap: 14px;
  padding: 18px 20px 20px;
  border-bottom: 1px solid var(--edge);
}
.metall-block:last-child {
  border-bottom: 0;
}
.metall-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
}
.metall-kopf .stand {
  color: var(--muted);
  font-size: 14px;
}
.nisab {
  display: grid;
  gap: 6px;
}
.nisab-bahn {
  position: relative;
  height: 6px;
}
.nisab-bahn i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: var(--edge);
}
.nisab-bahn i + i {
  background: var(--brass);
}
.nisab-bahn.silber i + i {
  background: var(--silver);
}
.nisab-bahn u {
  position: absolute;
  top: -5px;
  bottom: -5px;
  width: 1px;
  background: var(--text);
}
.nisab-legende {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
  color: var(--muted);
  font-size: 13px;
}
.nisab-legende .num {
  color: var(--text);
  font-size: 14px;
}
.faellig {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 20px;
}
.faellig .betrag {
  color: var(--brass-bright);
  font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.375rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}
.faellig .betrag.keine {
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 19px;
  letter-spacing: 0;
}
.faellig .wann {
  color: var(--muted);
  font-size: 14px;
}
.rechenweg {
  padding-top: 12px;
  border-top: 1px solid var(--edge);
  color: var(--muted);
  font-size: 14px;
}
.rechenweg .num {
  color: var(--text);
  font-size: 15px;
  white-space: normal;
}

/* Ausserdem: Liste mit Trennlinien */
.ausserdem {
  display: grid;
  gap: 32px;
}
@media (min-width: 960px) {
  .ausserdem {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(48px, 6vw, 96px);
  }
}
.liste {
  border-top: 1px solid var(--edge);
}
.liste > div {
  display: grid;
  gap: 4px;
  padding-block: 18px;
  border-bottom: 1px solid var(--edge);
}
.liste dt {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}
.liste dd {
  max-width: 58ch;
  color: var(--muted);
}
@media (min-width: 640px) {
  .liste > div {
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 32px;
    align-items: baseline;
  }
}

/* Schluss: Konto anfragen */
.schluss {
  background: var(--panel);
}
.schluss-innen {
  display: grid;
  gap: 40px;
}
.schluss h2 {
  max-width: 14ch;
}
.schluss-aktion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 32px;
}
.schritte {
  counter-reset: schritt;
  border-top: 1px solid var(--edge);
}
.schritte li {
  counter-increment: schritt;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 12px;
  padding-block: 18px;
  border-bottom: 1px solid var(--edge);
}
.schritte li::before {
  content: counter(schritt);
  grid-row: span 2;
  color: var(--brass);
  font: 600 28px/1.1 var(--font-plate);
}
.schritte b {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}
.schritte span {
  color: var(--muted);
}
@media (min-width: 960px) {
  .schluss-innen {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    gap: clamp(48px, 6vw, 96px);
    align-items: center;
  }
}

/* Fuss */
.fuss {
  border-top: 1px solid var(--edge);
  padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px));
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.fuss-innen {
  display: grid;
  gap: 24px;
}
.fuss-zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
}
.fuss nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  margin-inline: -10px;
}
.fuss nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  text-decoration: none;
}
.fuss nav a:hover {
  color: var(--text);
}
.fuss p {
  max-width: 82ch;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
