/* TerminPilot — Webseite
 *
 * Die Farben sind die des Portals (htdoc/assets/css/app.css), damit beides
 * erkennbar zusammengehört. Keine Schriftdatei von einem fremden Server:
 * Systemschriften laden sofort und verraten keinen Besucher an Dritte —
 * eine Seite mit Impressum und Datenschutzerklärung sollte nicht selbst
 * der erste Datenabfluss sein.
 */

:root {
  --flaeche:      #ffffff;
  --flaeche-ruhe: #f6f8fa;
  --linie:        #d0d5dc;
  --text:         #14171b;
  --text-leise:   #5a626d;
  --marke:        #1544c0;
  --marke-dunkel: #10328f;
  --marke-ruhe:   #e8effc;
  --spalte:       64rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--flaeche);
  color: var(--text);
  font: 400 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-rendering: optimizeLegibility;
}

.breite { max-width: var(--spalte); margin: 0 auto; padding: 0 1.5rem; }

/* --- Kopf ------------------------------------------------------------- */

header {
  border-bottom: 1px solid var(--linie);
  background: var(--flaeche);
}

.kopf {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: 1.1rem; padding-bottom: 1.1rem;
}

.marke {
  font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em;
  color: var(--text); text-decoration: none;
}
.marke span { color: var(--marke); }

.knopf {
  display: inline-block; padding: .55rem 1.1rem;
  background: var(--marke); color: #fff; text-decoration: none;
  border-radius: 6px; font-weight: 600; font-size: .95rem;
  white-space: nowrap;
}
.knopf:hover { background: var(--marke-dunkel); }

/* --- Aufmacher -------------------------------------------------------- */

.aufmacher { padding: 4rem 0 3rem; }
.aufmacher h1 {
  margin: 0 0 1rem; font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.15; letter-spacing: -.03em; font-weight: 700;
}
.aufmacher p.leit {
  margin: 0; font-size: clamp(1.1rem, 2.6vw, 1.3rem);
  color: var(--text-leise); max-width: 46rem;
}

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

section { padding: 3rem 0; }
section + section { border-top: 1px solid var(--linie); }
section.ruhe { background: var(--flaeche-ruhe); border-top: 1px solid var(--linie); }

h2 { font-size: 1.5rem; letter-spacing: -.02em; margin: 0 0 1.25rem; }
h3 { font-size: 1.05rem; margin: 0 0 .4rem; }

.raster {
  display: grid; gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.raster p { margin: 0; color: var(--text-leise); font-size: .97rem; }

/* --- Ablauf ----------------------------------------------------------- */

ol.ablauf { margin: 0; padding: 0; list-style: none; counter-reset: schritt; }
ol.ablauf li {
  counter-increment: schritt; position: relative;
  padding: 0 0 1.5rem 3.25rem; border-left: 2px solid var(--linie);
  margin-left: 1rem;
}
ol.ablauf li:last-child { border-left-color: transparent; padding-bottom: 0; }
ol.ablauf li::before {
  content: counter(schritt);
  position: absolute; left: -1.05rem; top: -.15rem;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--marke-ruhe); color: var(--marke-dunkel);
  font-weight: 700; font-size: .9rem;
  display: grid; place-items: center;
}
ol.ablauf p { margin: .2rem 0 0; color: var(--text-leise); font-size: .97rem; }

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

.recht { padding: 3rem 0 4rem; max-width: 46rem; }
.recht h1 { font-size: 1.9rem; letter-spacing: -.02em; margin: 0 0 2rem; }
.recht h2 { font-size: 1.15rem; margin: 2.25rem 0 .6rem; }
.recht p, .recht li { color: #2b3038; }
.recht address { font-style: normal; line-height: 1.8; }
.recht dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.25rem; margin: 0; }
.recht dt { color: var(--text-leise); }
.recht dd { margin: 0; }
.recht a { color: var(--marke); }

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

footer {
  border-top: 1px solid var(--linie); background: var(--flaeche-ruhe);
  padding: 2rem 0; margin-top: 2rem;
  font-size: .9rem; color: var(--text-leise);
}
.fuss { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
footer a { color: var(--text-leise); }

@media (max-width: 34rem) {
  .recht dl { grid-template-columns: 1fr; gap: 0 0; }
  .recht dt { margin-top: .6rem; }
}
