/* Runde 6 · Privatbank verfeinert – gemeinsame Tokens und Grundbausteine.
 *
 * Abgeleitet aus runde-4/4-privatbank.html (Niks Wahl, 06.10.2026). Jede Variante jeder
 * Sektion baut NUR auf diesen Werten auf – keine eigenen Farben, keine eigenen Schriftgrößen,
 * keine eigenen Abstände außerhalb der Skala. Neue Werte nur hier, mit Begründung im Kommentar.
 */
:root {
  /* Farben – Weiß, Stein, Marine; ein Grün für „erreichbar“, sonst kein Akzent */
  --weiss: #ffffff;
  --stein: #f4f6f8;
  --stein-2: #eceff3; /* Hover-/Zebra-Stufe auf Stein */
  --navy: #14243b;
  --navy-2: #1c3150; /* Hover auf Marine */
  --navy-hell: #e7ecf2; /* Marine als Fläche, hell */
  --fuss: #0f1c2f; /* dunkelste Stufe, nur Fuß */
  --text: #1a2230;
  --text-2: #3b4656; /* Fließtext auf Karten */
  --grau: #5f6b7a; /* Nebentext auf Weiß, Kontrast 5,4:1 */
  --grau-dunkel: #aebacb; /* Nebentext auf Marine, Kontrast 7:1 */
  --grau-fuss: #8f9cae;
  --linie: #e2e6eb;
  --linie-dunkel: rgba(255, 255, 255, 0.14);
  --gruen: #3f9a63;
  --schatten: 0 24px 48px -32px rgba(20, 36, 59, 0.35);
  --schatten-karte: 0 20px 40px -24px rgba(20, 36, 59, 0.45), 0 0 0 1px rgba(20, 36, 59, 0.05);

  /* Schrift – nur IBM Plex Sans, Gewichte 300/400/500/600 */
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --t-xs: 13px;
  --t-s: 14.5px;
  --t-m: 16.5px; /* Grundschrift */
  --t-l: 17.5px; /* Einleitung, Fragen */
  --t-xl: clamp(20px, 0.6vw + 16px, 23px); /* Lead */
  --t-h3: clamp(22px, 0.8vw + 16px, 28px);
  --t-h2: clamp(28px, 1.8vw + 14px, 40px);
  --t-h1: clamp(30px, 2.6vw + 10px, 50px);
  --t-zahl: clamp(24px, 1.4vw + 12px, 32px); /* Fakten, Telefon */
  --zeile: 1.65;

  /* Abstände – 4er-Skala; Sektionsabstand als eine gemeinsame Größe */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --sektion: clamp(80px, 10vw, 128px);
  --rand: clamp(20px, 4vw, 56px);
  --max: 1240px;
  --fuge: 24px;
  --kopf-hoehe: 76px;

  /* Bewegung – leise: Deckkraft + ≤ 12 px Versatz */
  --ruhig: cubic-bezier(0.22, 0.61, 0.36, 1);
  --d-s: 0.3s;
  --d-m: 0.45s;
  --d-l: 0.9s;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--kopf-hoehe) + 8px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--weiss);
  color: var(--text);
  font: 400 var(--t-m) / var(--zeile) var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
h1,
h2,
h3 {
  text-wrap: balance;
  margin: 0;
  font-weight: 300;
  color: var(--navy);
}
h1 {
  font-size: var(--t-h1);
  line-height: 1.16;
  letter-spacing: -0.02em;
}
h2 {
  font-size: var(--t-h2);
  line-height: 1.2;
  letter-spacing: -0.018em;
}
h3 {
  font-size: var(--t-h3);
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 400;
}
p {
  text-wrap: pretty;
}
:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}
.dunkel :focus-visible {
  outline-color: #fff;
}
::selection {
  background: var(--navy-hell);
  color: var(--navy);
}

/* Layout */
.huelle {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--rand);
}
.raster {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0 var(--fuge);
}
.sr-nur {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.zahlen {
  font-variant-numeric: tabular-nums;
}

/* Text */
.grau {
  color: var(--grau);
}
.ober {
  display: block;
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.75;
}
.dunkel .ober {
  color: var(--grau-dunkel);
  opacity: 1;
}
.dunkel h1,
.dunkel h2,
.dunkel h3 {
  color: #fff;
}

/* Live-Punkt – grün nur, wenn [data-sz-host] data-offen="true" trägt; grau sonst.
   Beide Zustände pulsieren leise (Ring wächst und verblasst, 3,2 s) – „die Kanzlei lebt“, auch
   außerhalb der Sprechzeiten. Der Ring erbt die Farbe des Punkts. */
.punkt {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9aa6b4;
  flex: none;
}
.punkt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  opacity: 0;
  animation: puls 3.2s var(--ruhig) infinite;
}
[data-offen="true"] .punkt {
  background: var(--gruen);
}
[data-offen="true"] .punkt::after {
  animation-duration: 2.4s;
}
@keyframes puls {
  0% {
    transform: scale(1);
    opacity: 0.45;
  }
  70%,
  100% {
    transform: scale(3.2);
    opacity: 0;
  }
}

/* Knöpfe – Umriss füllt sich von unten (PB2), Voll wird eine Stufe heller */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 var(--s5);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--navy);
  color: var(--navy);
  transition:
    color var(--d-m) var(--ruhig),
    border-color var(--d-m);
}
.knopf::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--navy);
  transform: translateY(101%);
  transition: transform var(--d-m) var(--ruhig);
}
.knopf:hover::before,
.knopf:focus-visible::before {
  transform: none;
}
.knopf:hover,
.knopf:focus-visible {
  color: #fff;
}
.knopf.voll {
  background: var(--navy);
  color: #fff;
}
.knopf.voll::before {
  background: var(--navy-2);
}
.knopf.hell {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}
.knopf.hell::before {
  background: var(--navy-hell);
}
.knopf.hell:hover,
.knopf.hell:focus-visible {
  color: var(--navy);
}
.knopf.klein {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
  white-space: nowrap;
}
.knopf svg {
  width: 14px;
  height: 14px;
  transition: transform 0.4s var(--ruhig);
}
.knopf:hover svg {
  transform: translateX(3px);
}
.textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 500;
  border-bottom: 1px solid rgba(20, 36, 59, 0.25);
  padding-bottom: 2px;
  transition: border-color var(--d-s);
}
.textlink:hover,
.textlink:focus-visible {
  border-color: var(--navy);
}
.textlink svg {
  width: 13px;
  height: 13px;
  transition: transform 0.4s var(--ruhig);
}
.textlink:hover svg {
  transform: translateX(3px);
}
.dunkel .textlink {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.dunkel .textlink:hover {
  border-color: #fff;
}

/* Abschnitt + Kopfzeile (Oberzeile, H2 links; Einleitung rechts) */
.abschnitt {
  padding: var(--sektion) 0;
}
.abschnitt.stein {
  background: var(--stein);
}
.abschnitt.dunkel {
  background: var(--navy);
  color: #fff;
}
.kopfzeile {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s4) var(--fuge);
  margin-bottom: clamp(40px, 5vw, 64px);
  align-items: end;
}
.kopfzeile > div {
  grid-column: 1 / 7;
}
.kopfzeile h2 {
  margin-top: 14px;
}
.kopfzeile p {
  grid-column: 8 / 13;
  margin: 0;
  color: var(--grau);
}
.dunkel .kopfzeile p {
  color: var(--grau-dunkel);
}

/* Einblenden beim Scrollen – die Shell setzt .da per IntersectionObserver; ohne JS sichtbar */
.js .auf {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity var(--d-l) var(--ruhig),
    transform var(--d-l) var(--ruhig);
  transition-delay: var(--v, 0s);
}
.js .auf.da {
  opacity: 1;
  transform: none;
}
.js .sanft {
  opacity: 0;
  animation: sanft 1s var(--ruhig) forwards;
  animation-delay: var(--v, 0s);
}
@keyframes sanft {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1000px) {
  .kopfzeile {
    grid-template-columns: minmax(0, 1fr);
  }
  .kopfzeile > div,
  .kopfzeile p {
    grid-column: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .punkt::after {
    animation: none;
  }
  .js .auf {
    opacity: 1;
    transform: none;
  }
}
