/* FitDate — Stilvorlage für die Rechtsseiten.
   Keine externen Schriften, keine externen Dateien, keine Zähldienste. */

:root {
  color-scheme: light dark;

  --grund:        #ffffff;
  --grund-sanft:  #f4f5f7;
  --text:         #16181d;
  --text-leise:   #5b616e;
  --linie:        #dfe2e8;
  --akzent:       #0f6d5a;
  --akzent-text:  #ffffff;
  --warn-grund:   #fdf6e6;
  --warn-linie:   #e3c778;

  --breite: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --grund:        #14161a;
    --grund-sanft:  #1c1f25;
    --text:         #e8eaee;
    --text-leise:   #a3a9b5;
    --linie:        #2c3039;
    --akzent:       #4fd1ad;
    --akzent-text:  #10241f;
    --warn-grund:   #2a2413;
    --warn-linie:   #6b5a26;
  }
}

* { box-sizing: border-box; }

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

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

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

@media (min-width: 40rem) {
  .huelle { padding: 2.5rem 2rem 4rem; }
}

/* --- Kopf --- */

.kopf {
  border-bottom: 1px solid var(--linie);
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
}

.marke {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}

.marke span { color: var(--akzent); }

.kopf p {
  margin: 0.35rem 0 0;
  color: var(--text-leise);
  font-size: 0.9375rem;
}

/* --- Typografie --- */

h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

@media (min-width: 40rem) { h1 { font-size: 2.125rem; } }

h2 {
  font-size: 1.3125rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--linie);
}

h3 {
  font-size: 1.0625rem;
  margin: 1.75rem 0 0.5rem;
}

p, ul, ol, dl { margin: 0 0 1rem; }

ul, ol { padding-left: 1.35rem; }

li { margin-bottom: 0.4rem; }

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

a:hover { text-decoration: none; }

strong { font-weight: 650; }

.vorspann {
  color: var(--text-leise);
  font-size: 1.0625rem;
  margin-bottom: 1.5rem;
}

.stand {
  color: var(--text-leise);
  font-size: 0.875rem;
  margin: 0 0 2rem;
}

/* --- Bausteine --- */

.kasten {
  background: var(--grund-sanft);
  border: 1px solid var(--linie);
  border-radius: 0.625rem;
  padding: 1rem 1.125rem;
  margin: 0 0 1.5rem;
}

.kasten > :last-child { margin-bottom: 0; }

.kasten-wichtig {
  background: var(--warn-grund);
  border-color: var(--warn-linie);
}

.platzhalter {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--warn-grund);
  border: 1px dashed var(--warn-linie);
  border-radius: 0.25rem;
  padding: 0.05em 0.35em;
  overflow-wrap: anywhere;
}

.tabelle-huelle {
  overflow-x: auto;
  margin: 0 0 1.5rem;
  -webkit-overflow-scrolling: touch;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 30rem;
  font-size: 0.9375rem;
}

th, td {
  border: 1px solid var(--linie);
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--grund-sanft);
  font-weight: 650;
}

/* --- Inhaltsverzeichnis --- */

.inhalt ol { padding-left: 1.35rem; }
.inhalt li { margin-bottom: 0.25rem; }

/* --- Kachelliste auf der Startseite --- */

.kacheln {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 34rem) {
  .kacheln { grid-template-columns: 1fr 1fr; }
}

.kacheln li { margin: 0; }

.kacheln a {
  display: block;
  height: 100%;
  border: 1px solid var(--linie);
  border-radius: 0.625rem;
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: inherit;
  background: var(--grund-sanft);
}

.kacheln a:hover { border-color: var(--akzent); }

.kacheln b {
  display: block;
  color: var(--akzent);
  margin-bottom: 0.15rem;
}

.kacheln span {
  color: var(--text-leise);
  font-size: 0.9375rem;
}

/* --- Notruf --- */

.notruf {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notruf li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--linie);
}

.notruf li:last-child { border-bottom: 0; }

.notruf b { display: block; }

.nummer {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

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

.fuss {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--linie);
  font-size: 0.9375rem;
  color: var(--text-leise);
}

.fuss nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

.fuss nav li { margin: 0; }

.fuss p { margin: 0.25rem 0 0; }
