/* ===========================================================================
   a-propos.cloud — die öffentliche Seite.

   Sie hat eine einzige Aufgabe: dass jemand einen Testzugang startet. Alles
   andere ist Begründung dafür. Deshalb steht das Formular im Kopf und nicht
   unten — wer überzeugt ist, soll nicht scrollen müssen, und wer nicht
   überzeugt ist, liest weiter und kommt wieder hoch.

   Schriften: Jost steht für Arboria, die Hausschrift, die sich im Netz nicht
   ausliefern lässt. Instrument Sans im Fließtext — etwas wärmer als eine reine
   Grotesk, ohne verspielt zu werden. IBM Plex Mono überall dort, wo Zahlen
   untereinander stehen müssen.

   Zwei Themen. Der Kopf ist in beiden dunkel; er ist das Markenzeichen.
   =========================================================================== */

:root {
  --grund:      #fdfdfd;
  --flaeche:    #f2f6fa;
  --flaeche-2:  #e6eef6;
  --linie:      #d8e3ee;
  --linie-zart: #eaf0f6;
  --text:       #0c1d36;
  --leise:      #55708e;
  --blau:       #006dd0;
  --blau-hell:  #3db6d9;

  /* Absichtlich in keinem der beiden dunklen Blöcke noch einmal gesetzt. */
  --aktion:         #006dd0;
  --aktion-schrift: #ffffff;
  --mint:       #79fee1;
  --tief:       #021737;
  --tiefer:     #010e21;
  --gut:        #0d7f6e;
  --warn:       #b45309;
  --schatten:   0 1px 2px rgba(2,23,55,.06), 0 12px 34px rgba(2,23,55,.09);
  --rund: 6px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --grund:      #05142b;
    --flaeche:    #0a2044;
    --flaeche-2:  #0e2a54;
    --linie:      #1b3b66;
    --linie-zart: #112c51;
    --text:       #e9f1fa;
    --leise:      #93abc9;
    --blau:       #6fb6f2;
    --gut:        #5fd8bf;
    --warn:       #f0b357;
    --schatten:   0 1px 2px rgba(0,0,0,.4), 0 14px 40px rgba(0,0,0,.45);
  }
}
:root[data-theme="dark"] {
  --grund:      #05142b;
  --flaeche:    #0a2044;
  --flaeche-2:  #0e2a54;
  --linie:      #1b3b66;
  --linie-zart: #112c51;
  --text:       #e9f1fa;
  --leise:      #93abc9;
  --blau:       #6fb6f2;
  --gut:        #5fd8bf;
  --warn:       #f0b357;
  --schatten:   0 1px 2px rgba(0,0,0,.4), 0 14px 40px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font: 400 17px/1.65 "Instrument Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: Jost, system-ui, sans-serif; letter-spacing: -.02em; text-wrap: balance; margin: 0; }
.mono, .zahl { font-family: "IBM Plex Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }

a { color: var(--blau); }
:focus-visible { outline: 2px solid var(--blau-hell); outline-offset: 3px; border-radius: 3px; }

.bahn { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.eng  { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* --- Kopfleiste ----------------------------------------------------------- */

.leiste {
  background: var(--tief);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.leiste .bahn { display: flex; align-items: center; gap: 20px; height: 68px; }
.leiste img { height: 26px; width: auto; display: block; }
.leiste nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.leiste nav a:not(.knopf) { color: #a9c4dd; text-decoration: none; font-size: 15px; }
.leiste nav a:not(.knopf):hover { color: #fff; }
@media (max-width: 720px) { .leiste nav a.weg { display: none; } }

.knopf {
  display: inline-block; border: 0; cursor: pointer;
  font: 500 15.5px/1 Jost, sans-serif; letter-spacing: .01em;
  padding: 13px 22px; border-radius: var(--rund);
  background: var(--mint); color: #021737; text-decoration: none;
  transition: transform .12s ease, filter .12s ease;
}
.knopf:hover { filter: brightness(1.06); }
.knopf:active { transform: translateY(1px); }
.knopf.gross { font-size: 17px; padding: 16px 28px; }
.knopf.blau { background: var(--aktion); color: var(--aktion-schrift); }
.knopf[disabled] { opacity: .5; cursor: default; }

/* --- Kopf mit Formular ----------------------------------------------------- */

.kopf { background: var(--tief); color: #e4eef8; padding: 60px 0 76px; }
.kopf .bahn { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 60px; align-items: start; }
@media (max-width: 900px) { .kopf .bahn { grid-template-columns: minmax(0,1fr); gap: 42px; } }

.eyebrow {
  font: 500 12.5px/1 Jost, sans-serif; letter-spacing: .2em;
  text-transform: uppercase; color: var(--mint); margin: 0 0 22px;
}
.kopf h1 {
  font-size: clamp(33px, 5vw, 52px); font-weight: 300; line-height: 1.1;
  margin: 0 0 24px; color: #fff;
}
.kopf h1 b { font-weight: 500; }
.kopf .vor { font-size: 18.5px; line-height: 1.62; color: #a9c4dd; margin: 0 0 30px; max-width: 46ch; }

.merkposten { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.merkposten li {
  position: relative;
  padding-left: 19px;
  font-size: 15.5px;
  line-height: 1.55;
  color: #c3d8ea;
}
.merkposten li::before {
  content: "";
  position: absolute;
  left: 0; top: .58em;
  width: 7px; height: 7px;
  border-radius: 50%; background: var(--mint);
}
.merkposten strong { color: #fff; font-weight: 600; }

/* --- Die Maske ------------------------------------------------------------- */

.maske {
  background: var(--grund); color: var(--text);
  border-radius: 8px; box-shadow: var(--schatten);
  padding: 28px 26px 26px; position: relative;
}
.maske h2 { font-size: 21px; font-weight: 500; margin: 0 0 6px; }
.maske .klein { font-size: 14.5px; color: var(--leise); margin: 0 0 22px; line-height: 1.55; }

.feld { margin-bottom: 15px; }
.feld label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.feld input, .feld select {
  width: 100%; font: 400 16px/1.4 "Instrument Sans", system-ui, sans-serif;
  padding: 11px 13px; border: 1px solid var(--linie); border-radius: var(--rund);
  background: var(--grund); color: var(--text);
}
.feld input:focus, .feld select:focus { border-color: var(--blau); outline: none; box-shadow: 0 0 0 3px rgba(0,109,208,.14); }
.feld .wink { font-size: 13px; color: var(--leise); margin-top: 5px; }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
@media (max-width: 480px) { .zwei { grid-template-columns: 1fr; gap: 0; } }

/* Die Falle. Nicht display:none — manche Ausfüllprogramme übergehen genau das. */
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.maske .knopf { width: 100%; margin-top: 8px; }
.rechtlich { font-size: 12.5px; color: var(--leise); margin: 14px 0 0; line-height: 1.55; }

/* Wo es Hilfe gibt. Steht direkt unter den Zugangsdaten und nicht am Seitenende:
   Wer hängen bleibt, hängt genau hier — beim ersten Anmelden. */
.hilfe-kasten {
  margin-top: 16px; padding: 14px 16px;
  background: var(--flaeche); border-left: 3px solid var(--blau);
  border-radius: 0 var(--rund) var(--rund) 0;
}
.hilfe-kasten > b { display: block; font-size: 14px; margin-bottom: 5px; }
.hilfe-kasten p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--leise); }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }

.fehler {
  margin: 0 0 16px; padding: 12px 15px; border-radius: var(--rund);
  background: rgba(180,83,9,.1); border-left: 3px solid var(--warn);
  font-size: 14.5px; line-height: 1.55; color: var(--text);
}

/* --- Der Aufbau, während er läuft ------------------------------------------
   Kein Kreisel. Die Schritte sind echt und stehen so auch im Protokoll des
   Admin-Centers — sie zu zeigen ist ehrlicher als ein Balken, der nichts misst. */

.aufbau { display: none; }
.aufbau.an { display: block; }
.maske.laeuft .formular { display: none; }

.schritte { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 11px; }
.schritte li {
  display: flex; gap: 12px; align-items: center;
  font-size: 15px; color: var(--leise);
  transition: color .3s ease;
}
.schritte li .punkt {
  flex: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--linie); position: relative;
}
.schritte li.aktiv { color: var(--text); }
.schritte li.aktiv .punkt { border-color: var(--blau); }
.schritte li.fertig { color: var(--text); }
.schritte li.fertig .punkt { border-color: var(--gut); background: var(--gut); }
.schritte li.fertig .punkt::after {
  content: ""; position: absolute; left: 4px; top: 1px;
  width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}

@media (prefers-reduced-motion: no-preference) {
  .schritte li.aktiv .punkt { animation: pulsen 1.3s ease-in-out infinite; }
  @keyframes pulsen {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,109,208,.35); }
    50%      { box-shadow: 0 0 0 6px rgba(0,109,208,0); }
  }
}

/* --- Fertig ---------------------------------------------------------------- */

.fertig-block { display: none; }
.fertig-block.an { display: block; }

.zugang {
  margin: 18px 0; border: 1px solid var(--linie); border-radius: var(--rund);
  background: var(--flaeche); overflow: hidden;
}
.zugang div {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 11px 15px; border-bottom: 1px solid var(--linie-zart); font-size: 14.5px;
}
.zugang div:last-child { border-bottom: 0; }
.zugang span:first-child { color: var(--leise); }
.zugang span:last-child { font-family: "IBM Plex Mono", monospace; font-weight: 500; }

/* --- Bänder ---------------------------------------------------------------- */

.band { padding: 74px 0; border-bottom: 1px solid var(--linie-zart); }
.band.dunkel { background: var(--tief); color: #dfeaf5; border-bottom: 0; }
.band.getoent { background: var(--flaeche); }

.band h2 { font-size: clamp(25px, 3.6vw, 35px); font-weight: 400; margin: 0 0 18px; max-width: 20ch; }
.band.dunkel h2 { color: #fff; }
.band > .bahn > p, .band > .eng > p { max-width: 64ch; margin: 0 0 16px; font-size: 17.5px; }
.band.dunkel p { color: #a9c4dd; }
.band .marke-klein {
  font: 500 12.5px/1 Jost, sans-serif; letter-spacing: .18em;
  text-transform: uppercase; color: var(--leise); margin: 0 0 16px;
}
.band.dunkel .marke-klein { color: var(--mint); }

/* --- Kacheln --------------------------------------------------------------- */

.kacheln {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px; background: var(--linie); border: 1px solid var(--linie);
  border-radius: 7px; overflow: hidden; margin-top: 34px;
}
.kachel { background: var(--grund); padding: 24px 24px 26px; }
.kachel h3 { font-size: 17.5px; font-weight: 500; margin: 0 0 9px; }
.kachel p { margin: 0; font-size: 15px; line-height: 1.62; color: var(--leise); }

/* --- Module ---------------------------------------------------------------- */

.module { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.modul {
  font-size: 14.5px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18); color: #cfe0ef;
}
.modul.her { border-color: var(--mint); color: var(--mint); font-weight: 500; }

/* --- Zahlen ---------------------------------------------------------------- */

.zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 30px; margin-top: 36px; }
.zahlen b { display: block; font: 500 30px/1 "IBM Plex Mono", monospace; color: var(--blau); font-variant-numeric: tabular-nums; }
.band.dunkel .zahlen b { color: var(--mint); }
.zahlen span { display: block; margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: var(--leise); }
.band.dunkel .zahlen span { color: #a9c4dd; }

/* --- Ehrlich --------------------------------------------------------------- */

.offen { margin-top: 30px; display: grid; gap: 20px; }
.offen > div { border-left: 3px solid var(--warn); padding-left: 18px; }
.offen h3 { font-size: 16.5px; font-weight: 500; margin: 0 0 5px; }
.offen p { margin: 0; font-size: 15px; color: var(--leise); line-height: 1.6; }

/* --- Abschluss ------------------------------------------------------------- */

.schluss { text-align: center; padding: 84px 0; background: var(--tief); color: #fff; }
.schluss h2 { font-size: clamp(27px, 4vw, 40px); font-weight: 300; margin: 0 auto 20px; max-width: 18ch; }
.schluss p { color: #a9c4dd; max-width: 50ch; margin: 0 auto 30px; }

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

.fuss { background: var(--tiefer); color: #7e9bb8; padding: 40px 0; font-size: 14.5px; }
.fuss .bahn { display: flex; flex-wrap: wrap; gap: 16px 30px; align-items: center; }
.fuss a { color: #a9c4dd; text-decoration: none; }
.fuss a:hover { color: #fff; text-decoration: underline; }
.fuss .rechts { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }

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

.rechtstext { padding: 60px 0 90px; }
.rechtstext h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 400; margin: 0 0 28px; }
.rechtstext h2 { font-size: 20px; font-weight: 500; margin: 34px 0 12px; }
.rechtstext p, .rechtstext li { max-width: 66ch; font-size: 16.5px; }
.rechtstext p { margin: 0 0 14px; }
.rechtstext ul { padding-left: 22px; }
.rechtstext li { margin-bottom: 8px; }
.rechtstext .luecke {
  border: 1px dashed var(--linie); border-radius: var(--rund);
  padding: 14px 18px; color: var(--warn); font-size: 15px; margin: 0 0 18px;
}
.hilfe-kanaele {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px; background: var(--linie); border: 1px solid var(--linie);
  border-radius: 7px; overflow: hidden; margin: 26px 0 8px;
}
.hilfe-kanaele > div { background: var(--grund); padding: 20px 22px; }
.hilfe-kanaele > div > span {
  display: block; font-size: 11.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--leise); margin-bottom: 7px;
}
.hilfe-kanaele > div > b { display: block; font-size: 17px; font-weight: 500; margin-bottom: 8px; }
.hilfe-kanaele > div > b a { text-decoration: none; }
.hilfe-kanaele p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--leise); max-width: none; }

.rechtstext table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 16px 0 24px; }
.rechtstext th { text-align: left; font-weight: 500; padding: 9px 14px 9px 0; border-bottom: 1px solid var(--linie); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--leise); }
.rechtstext td { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--linie-zart); vertical-align: top; }
