/* Honorix - Website
 *
 * Eine Entscheidung prägt diese Datei mehr als jede andere: es gibt keine
 * externen Ressourcen. Keine Schriften von Google, kein Analytics, keine
 * eingebetteten Karten, keine Schaltflächen sozialer Netze.
 *
 * Das ist keine Sparsamkeit, sondern folgt aus § 25 Abs. 1 TDDDG: wer
 * Informationen auf dem Endgerät speichert oder darauf zugreift, braucht
 * eine Einwilligung - und damit ein Banner. Ausgenommen ist nur, was für
 * den ausdrücklich gewünschten Dienst unbedingt erforderlich ist. Eine
 * Seite ohne Tracking speichert nichts, braucht keine Einwilligung und
 * kommt ohne Banner aus.
 *
 * Für ein Unternehmen, dessen Angebot Datenschutz ist, wäre ein
 * Cookie-Banner auf der eigenen Startseite das schlechteste denkbare
 * erste Signal.
 *
 * Die Systemschriften decken alle deutschen Sonderzeichen ab; eine
 * geladene Schrift kaufte hier nichts, was sie an Ladezeit und
 * Rechtsfragen kostet.
 */

:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #dde3ea;
  --text: #16202b;
  --muted: #5d6b7a;
  --accent: #1f6feb;
  --accent-deep: #14478c;
  --accent-text: #ffffff;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 32, 48, .06), 0 4px 12px rgba(16, 32, 48, .05);
  --max: 62rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12171d;
    --surface: #1a212a;
    --surface-2: #202932;
    --border: #2d3944;
    --text: #e6edf3;
    --muted: #9aa9b8;
    --accent: #4d8ef7;
    --accent-deep: #1a5fc4;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 12px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

header.kopf {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}

.kopf .huelle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  flex-wrap: wrap;
}

.marke {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -.01em;
}

.marke img { width: 34px; height: 34px; display: block; }

nav.haupt {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav.haupt a {
  color: var(--muted);
  text-decoration: none;
  font-size: .95rem;
}

nav.haupt a:hover, nav.haupt a:focus-visible { color: var(--text); }

/* Auf schmalen Geräten fallen die Sprungmarken weg und der Kopf löst sich
 * vom oberen Rand. Drei umgebrochene Zeilen, die dauerhaft kleben, nehmen
 * sonst ein Drittel des Bildschirms - und die Seite ist kurz genug, dass
 * Scrollen die Sprungmarken ersetzt. Der Kontaktknopf bleibt, weil er das
 * Ziel der ganzen Seite ist. */
@media (max-width: 40rem) {
  header.kopf { position: static; }
  nav.haupt a:not(.knopf) { display: none; }
  .kopf .huelle { flex-wrap: nowrap; min-height: 3.75rem; }
}

/* Schaltflächen nebeneinander, und beim Umbruch ohne Einrückung. */
.knopfreihe {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

/* --- Bausteine ---------------------------------------------------------- */

.knopf {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  padding: .6rem 1.2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
}

.knopf:hover, .knopf:focus-visible { background: var(--accent-deep); }

.knopf.leise {
  background: transparent;
  color: var(--accent);
  border-color: var(--border);
}

.knopf.leise:hover, .knopf.leise:focus-visible {
  background: var(--surface-2);
  color: var(--accent);
}

section { padding: 4.5rem 0; }
section + section { border-top: 1px solid var(--border); }

h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 1.2rem;
  max-width: 22ch;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -.015em;
  margin: 0 0 1.2rem;
  max-width: 30ch;
}

h3 { font-size: 1.1rem; margin: 0 0 .5rem; letter-spacing: -.01em; }

p { margin: 0 0 1.1rem; max-width: 68ch; }

.vorspann {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--muted);
  max-width: 58ch;
}

a { color: var(--accent); }

.aufzaehlung { list-style: none; padding: 0; margin: 0; }
.aufzaehlung li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: .7rem;
  max-width: 66ch;
}
.aufzaehlung li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--accent);
}

/* --- Raster ------------------------------------------------------------- */

.raster {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.karte {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  min-width: 0;
}

.karte p:last-child { margin-bottom: 0; }

.karte .zahl {
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--accent);
  display: block;
  line-height: 1.2;
}

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

ol.ablauf {
  list-style: none;
  counter-reset: schritt;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
}

ol.ablauf li {
  counter-increment: schritt;
  padding-left: 3.2rem;
  position: relative;
  max-width: 66ch;
}

ol.ablauf li::before {
  content: counter(schritt);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
  font-weight: 600;
  display: grid;
  place-items: center;
  font-size: .95rem;
}

/* --- Hinweiskasten ------------------------------------------------------ */

.hinweis {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0 0;
}

.hinweis p:last-child { margin-bottom: 0; }
.hinweis strong { display: block; margin-bottom: .3rem; }

/* --- Tabellen ----------------------------------------------------------- */

.tabellenhuelle { overflow-x: auto; margin: 1.5rem 0; }

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: .95rem;
}

th, td {
  text-align: left;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th { font-weight: 600; color: var(--muted); font-size: .85rem; }

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

.rechtstext { padding: 3.5rem 0 4.5rem; }
.rechtstext h2 { margin-top: 2.5rem; font-size: 1.3rem; }
.rechtstext h2:first-of-type { margin-top: 0; }
.rechtstext dl { margin: 0 0 1.5rem; }
.rechtstext dt { font-weight: 600; margin-top: .8rem; }
.rechtstext dd { margin: 0 0 .3rem; color: var(--muted); }

.platzhalter {
  background: rgba(230, 195, 74, .18);
  border-bottom: 1px dashed #b08900;
  padding: 0 .25rem;
  font-style: normal;
}

/* --- Fuss --------------------------------------------------------------- */

footer.fuss {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 2.5rem 0;
  color: var(--muted);
  font-size: .9rem;
}

.fuss .huelle {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.fuss nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.fuss a { color: var(--muted); text-decoration: none; }
.fuss a:hover, .fuss a:focus-visible { color: var(--text); }

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