/* ==========================================================================
   Marke Signday
   Alle Werte kommen aus marke/farben/tokens.css und marke/schrift/schrift.css
   (geholt mit betrieb/marke-holen.sh aus ~/Kevin OS/02 Projekte/marken/signday/).
   Hier stehen nur die Zuordnungen, keine eigenen Farben.
   Orange ist der Star und selten: Hauptknopf und Stations-Ziffern. Text auf Orange
   ist Graphit. Petrol für Markierungen, Fokus und Links.
   ========================================================================== */
:root {
  --grund: var(--marke-grund);
  --grund-band: var(--marke-akzent-100);
  --flaeche: var(--marke-flaeche);
  --feld: var(--marke-flaeche);
  --tinte: var(--marke-text);
  --text-2: var(--marke-text-2);
  --text-3: var(--marke-text-2);
  --linie: var(--marke-linie);
  --linie-stark: var(--marke-akzent-500);   /* Feldränder, mindestens 3:1 */
  --akzent: var(--marke-akzent);
  --akzent-hover: var(--marke-akzent-800);
  --auf-akzent: var(--marke-auf-akzent);
  --akzent-hauch: rgba(20, 63, 68, .08);
  --knopf: var(--marke-haupt);
  --knopf-hover: var(--marke-haupt-400);
  --auf-knopf: var(--marke-auf-haupt);
  --hero-licht: rgba(20, 63, 68, .07);
  --fehler: var(--marke-fehler);
  --fehler-hauch: var(--marke-fehler-flaeche);
  --schatten: var(--marke-schatten);
  --schatten-weich: 0 24px 48px -36px rgba(23, 40, 42, .35);

  --schrift-titel: var(--marke-kopf);
  --schrift-text: var(--marke-lauf);
  --schrift-mono: var(--marke-mono);
}

/* ---------- Raster und Maße (keine Markenwerte) ---------------------------- */
:root {
  color-scheme: light;
  --radius: var(--marke-radius); /* ein Radius für alles, Knöpfe und Felder eingeschlossen */
  --rand: clamp(1rem, 4vw, 2rem);
  --breite: 76rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--grund);
  color: var(--tinte);
  font-family: var(--schrift-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* Fallback für ältere Safari */
  overflow-x: clip;
}
a, button, input, label { -webkit-tap-highlight-color: var(--akzent-hauch); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.025em; text-wrap: balance; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
[hidden] { display: none !important; }

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

.huelle { width: min(100% - 2 * var(--rand), var(--breite)); margin-inline: auto; }

.sprung {
  position: absolute; left: var(--rand); top: -4rem; z-index: 10;
  background: var(--akzent); color: var(--auf-akzent); padding: .7rem 1rem; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.sprung:focus { top: .75rem; }

/* ---------- Kopf -------------------------------------------------------- */
.kopf { position: relative; z-index: 2; }
.kopf .huelle { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.25rem; }
.marke { display: inline-flex; align-items: center; text-decoration: none; line-height: 1; min-height: 2.75rem; }
.marke img { height: 1.5rem; width: auto; }
.kopf-nav { display: flex; align-items: center; gap: .25rem; }
.kopf-nav a:not(.knopf) {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .85rem;
  text-decoration: none; color: var(--text-2); font-size: .9375rem; font-weight: 500; border-radius: var(--radius);
  transition: color .2s ease;
}
.kopf-nav a:not(.knopf):hover { color: var(--tinte); }
.kopf-nav .knopf { margin-left: .75rem; }

/* ---------- Knöpfe ------------------------------------------------------ */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: 0 1.4rem;
  background: var(--knopf); color: var(--auf-knopf);
  border: 0; border-radius: var(--radius);
  font: 600 1rem/1 var(--schrift-text); letter-spacing: .005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
  touch-action: manipulation;
}
.knopf:hover { background: var(--knopf-hover); }
.knopf:active { transform: translateY(1px); }
.knopf:disabled { cursor: progress; opacity: .85; }
.knopf-klein { min-height: 2.75rem; padding: 0 1.1rem; font-size: .9375rem; }

/* ---------- Hero -------------------------------------------------------- */
.hero {
  position: relative;
  background: radial-gradient(90% 80% at 80% 0%, var(--hero-licht) 0%, transparent 70%);
  margin-top: -4.25rem; padding-top: 4.25rem; /* Licht liegt auch unter dem Kopf */
  overflow-x: hidden;
  overflow-x: clip;
}
.hero-raster {
  display: grid; grid-template-columns: minmax(0, 35rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  padding: clamp(2.5rem, 6vw, 4.75rem) 0 clamp(2.5rem, 5vw, 4rem);
}
.hero h1 {
  font-family: var(--schrift-titel);
  font-size: clamp(2.3rem, 1.2rem + 4vw, 3.75rem);
  line-height: 1.04; letter-spacing: -.035em;
}
.hero-unter { margin-top: 1.25rem; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.55; color: var(--text-2); max-width: 33rem; }
.hero .knopf { margin-top: 2rem; }
.hero-bild img {
  width: calc(100% + max(var(--rand), (100vw - var(--breite)) / 2));
  max-width: none;
  border-radius: var(--radius) 0 0 var(--radius);
  box-shadow: var(--schatten);
}

/* ---------- Abschnitte allgemein ---------------------------------------- */
.abschnitt { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.abschnitt h2 {
  font-family: var(--schrift-titel);
  font-size: clamp(2.1rem, 1.35rem + 2.6vw, 3.1rem);
  line-height: 1.08; max-width: 22ch;
}
.einleitung { margin-top: 1rem; max-width: 36rem; color: var(--text-2); font-size: 1.125rem; }
.blatt { border-radius: var(--radius); box-shadow: var(--schatten); }

/* ---------- Selbstauskunft: der Weg zur Bank ----------------------------- */
.weg {
  background: linear-gradient(180deg, transparent 0%, var(--grund-band) 14%, var(--grund-band) 86%, transparent 100%);
}
.weg-stationen {
  --spalt: clamp(1.5rem, 3vw, 2.75rem);
  list-style: none; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0;
  display: grid; grid-template-columns: 1.3fr .85fr 1fr; grid-template-rows: auto auto;
  column-gap: var(--spalt); row-gap: 0;
}
.station { display: grid; grid-row: span 2; grid-template-rows: subgrid; }
.station-bild { display: flex; align-items: flex-end; padding-bottom: 1.75rem; }
.station-bild img { width: 100%; }
.station:nth-child(2) .station-bild img { width: 92%; margin-inline: auto; }
.station-text { position: relative; border-top: 1px solid var(--linie-stark); padding-top: 1.25rem; }
/* Die Linie läuft durch alle Stationen: Sie ist der Weg der Selbstauskunft. */
.station:not(:last-child) .station-text { margin-right: calc(-1 * var(--spalt)); padding-right: var(--spalt); }
.station-text::before { /* Halt auf dem Weg */
  content: ''; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%;
  background: var(--akzent);
}
.station h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
.station p { margin-top: .5rem; color: var(--text-2); font-size: 1rem; max-width: 34ch; }

/* ---------- Nutzen: asymmetrisches Raster -------------------------------- */
.nutzen-raster {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto auto;
  gap: clamp(1rem, 2vw, 1.5rem);
}
.nutzen {
  --innen: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: var(--innen);
  display: flex; flex-direction: column; gap: 1.5rem;
  overflow: hidden;
}
.nutzen:first-child { grid-row: span 2; }
.nutzen h3 { font-family: var(--schrift-titel); font-size: clamp(1.45rem, 1.2rem + .9vw, 1.8rem); line-height: 1.15; }
.nutzen p { margin-top: .6rem; color: var(--text-2); max-width: 40ch; }
.nutzen-bild { margin-top: auto; }
.nutzen:first-child .nutzen-bild {
  flex: 1; position: relative; min-height: 18rem;
  margin-right: calc(-1 * var(--innen)); margin-bottom: calc(-1 * var(--innen));
}
.nutzen:first-child .nutzen-bild img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: left top;
  border-radius: var(--radius) 0 0 0;
  box-shadow: 0 0 0 1px var(--linie);
}

/* ---------- Pflichten --------------------------------------------------- */
.pflichten-raster {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.pflichten-liste { margin: 2rem 0 0; }
.pflichten-liste div { padding: 1.1rem 0; border-top: 1px solid var(--linie); }
.pflichten-liste dt { font-weight: 600; }
.pflichten-liste dd { margin: .3rem 0 0; color: var(--text-2); }
.vorbehalt { margin-top: 1.5rem; font-size: .9375rem; color: var(--text-3); max-width: 40ch; }

/* ---------- Umstieg und Bausteine --------------------------------------- */
.umstieg { border-top: 1px solid var(--linie); }
.bausteine {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(1.25rem, 2.5vw, 2rem);
}
.bausteine div { padding: 1.25rem 0 1.5rem; border-top: 1px solid var(--linie); }
.bausteine dt { font-family: var(--schrift-titel); font-weight: 700; letter-spacing: -.02em; font-size: 1.3rem; line-height: 1.2; }
.bausteine dd { margin: .45rem 0 0; color: var(--text-2); font-size: .975rem; }

/* ---------- Warteliste -------------------------------------------------- */
/* Orange als große Fläche: das Kalenderblatt der Seite. Text darauf immer Graphit. */
.warteliste { background: var(--marke-haupt); color: var(--marke-auf-haupt); }
.warteliste h2 { font-size: clamp(2.3rem, 1.4rem + 3vw, 3.5rem); line-height: 1.04; letter-spacing: -.035em; }
.warteliste .einleitung { color: var(--marke-auf-haupt); }
.warteliste :focus-visible { outline-color: var(--marke-auf-haupt); }
.warteliste .formular :focus-visible { outline-color: var(--akzent); }
.warteliste-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.formular {
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: 0 30px 60px -30px rgba(68, 36, 18, .45);
}
.feld + .feld, .feld + fieldset, fieldset + .feld, .formular .zustimmung { margin-top: 1.4rem; }
.feld label, .formular legend { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: .45rem; padding: 0; }
.optional { font-weight: 400; color: var(--text-3); }
.feld input {
  width: 100%; min-height: 3rem; padding: .7rem .9rem;
  font: 400 1rem/1.4 var(--schrift-text); color: var(--tinte);
  background: var(--feld); border: 1px solid var(--linie-stark); border-radius: var(--radius);
  transition: border-color .2s ease;
}
.feld input::placeholder { color: var(--text-3); }
.feld input:hover { border-color: var(--text-2); }
.feld input:focus-visible { outline: 2px solid var(--akzent); outline-offset: 1px; border-color: var(--akzent); }
.feld input[aria-invalid="true"] { border-color: var(--fehler); }
.formular fieldset { border: 0; padding: 0; margin-inline: 0; min-width: 0; }
.wahl { display: flex; flex-wrap: wrap; gap: .5rem; }
.wahl label { position: relative; }
.wahl input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.wahl span {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem;
  border: 1px solid var(--linie-stark); border-radius: var(--radius); background: var(--feld);
  font-size: .9375rem; color: var(--text-2); cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.wahl input:hover + span { border-color: var(--text-2); }
.wahl input:checked + span { border-color: var(--akzent); background: var(--akzent-hauch); color: var(--tinte); font-weight: 600; }
.wahl input:focus-visible + span { outline: 2px solid var(--akzent); outline-offset: 2px; }
.zustimmung { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; }
.zustimmung input { width: 1.375rem; height: 1.375rem; margin: .15rem 0 0; accent-color: var(--akzent); cursor: pointer; }
.zustimmung label { font-size: .9375rem; line-height: 1.55; color: var(--text-2); cursor: pointer; }
.zustimmung a { color: var(--tinte); }
.formular .knopf { margin-top: 1.25rem; width: 100%; }
.fehler-text { margin-top: .45rem; font-size: .9rem; color: var(--fehler); }
.fehler-text:empty { display: none; }
.zustimmung .fehler-text { grid-column: 2; margin-top: 0; }
.status { margin-top: 1rem; font-size: .9375rem; color: var(--text-2); }
.status:empty { display: none; }
.status.ist-fehler { color: var(--fehler); background: var(--fehler-hauch); padding: .75rem .9rem; border-radius: var(--radius); }
.erfolg:focus { outline: none; }
.erfolg .erfolg-text { font-family: var(--schrift-titel); font-weight: 700; letter-spacing: -.025em; font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); line-height: 1.2; }
.erfolg p + p { margin-top: .75rem; color: var(--text-2); }
.falle { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Fuß --------------------------------------------------------- */
.fuss { border-top: 1px solid var(--linie); padding: 2.5rem 0 3rem; font-size: .9375rem; color: var(--text-2); }
.fuss .huelle { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; }
.fuss-marke { display: inline-flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.fuss-marke img { height: 1.125rem; width: auto; }
.fuss-absender { font-size: .8125rem; color: var(--text-3); letter-spacing: .01em; }
.fuss nav { display: flex; gap: .25rem 1.5rem; flex-wrap: wrap; }
.fuss a { text-decoration: none; display: inline-flex; min-height: 2.75rem; align-items: center; }
.fuss a:hover { color: var(--tinte); text-decoration: underline; text-underline-offset: 3px; }
.fuss-notiz { flex-basis: 100%; color: var(--text-3); font-size: .875rem; }

/* ---------- Rechtsseiten ------------------------------------------------ */
.recht { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(4rem, 8vw, 6rem); }
.recht .huelle { max-width: 44rem; }
.recht h1 { font-family: var(--schrift-titel); font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); line-height: 1.05; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.recht h2 { font-family: var(--schrift-titel); font-size: clamp(1.3rem, 1rem + 1.4vw, 1.75rem); line-height: 1.2; margin-top: 2.75rem; }
.recht h3 { font-size: 1.05rem; font-weight: 600; margin-top: 1.75rem; }
.recht p, .recht ul { margin: .85rem 0 0; color: var(--text-2); }
.recht ul { padding-left: 1.2rem; }
.recht li + li { margin-top: .35rem; }
.recht strong { color: var(--tinte); font-weight: 600; }
.recht a { color: var(--tinte); text-underline-offset: 3px; }
.recht .stand { margin-top: 3rem; font-size: .9375rem; color: var(--text-3); }
.platzhalter { background: var(--fehler-hauch); color: var(--tinte); padding: 0 .3rem; border-radius: 4px; }

/* ---------- Kleinere Bildschirme ---------------------------------------- */
@media (max-width: 1100px) {
  .hero-raster { grid-template-columns: 1fr; }
  .hero-text { max-width: 40rem; }
  .hero-bild img { width: 100%; border-radius: var(--radius); }
}
@media (max-width: 960px) {
  .bausteine { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .kopf-nav a:not(.knopf) { display: none; }
  .hero-raster { padding-bottom: 0; }
  .hero-bild { justify-self: center; width: min(100%, 22rem); }
  .hero-bild img {
    width: 100%; border-radius: var(--radius) var(--radius) 0 0;
    max-height: 32rem; object-fit: cover; object-position: top;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
    box-shadow: none;
  }
  .weg-stationen { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 3rem; }
  .station { display: block; grid-row: auto; }
  .station:not(:last-child) .station-text { margin-right: 0; padding-right: 0; }
  .station-bild { padding-bottom: 1.25rem; }
  .station:nth-child(2) .station-bild img { width: min(80%, 20rem); }
  .nutzen-raster { grid-template-columns: 1fr; }
  .nutzen:first-child { grid-row: auto; }
  .nutzen:first-child .nutzen-bild { flex: none; min-height: 0; }
  .nutzen:first-child .nutzen-bild img { position: static; height: auto; }
  .pflichten-raster, .warteliste-raster { grid-template-columns: 1fr; }
  .pflichten-raster .pflichten-bild { order: 2; }
}
@media (max-width: 520px) {
  .bausteine { grid-template-columns: 1fr; }
  .bausteine div { padding: 1rem 0 1.15rem; }
  .marke img { height: 1.25rem; }
  .kopf-nav .knopf { margin-left: 0; padding: 0 .9rem; font-size: .875rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
