/* RCM design – schlicht: weißer Grund, das Logo in der Mitte, sonst nur das Nötige. */
@font-face {
  font-family: Arimo;
  src: url(schrift/arimo.woff2) format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --tinte: #2b2b2b;
  --leise: #8c8c8c;
  --linie: #e6e6e6;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  background: #fff; color: var(--tinte);
  font: 400 16px/1.65 Arimo, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: underline; text-decoration-color: var(--linie); text-underline-offset: .2em; transition: text-decoration-color .2s; }
a:hover { text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--tinte); outline-offset: 3px; border-radius: 2px; }
svg { display: block; width: 100%; height: auto; }

/* ---------- Startseite: Logo groß in der Mitte, darunter der Spruch ---------- */
.start {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(26px, 5vh, 52px); padding: 64px 24px 24px; text-align: center;
}
.start__logo {
  margin: 0; color: var(--tinte); line-height: 0;
  /* breit auf dem Handy, nie zu groß auf dem PC, und auch im Querformat ganz sichtbar */
  width: min(80vw, 720px, 95vh);
  animation: erscheinen 1.4s cubic-bezier(.2, .7, .2, 1) both;
}
.start__spruch {
  margin: 0; color: var(--leise);
  font-size: clamp(11px, 1.15vw + 6px, 15px); font-weight: 400;
  letter-spacing: .42em; text-transform: uppercase;
  padding-left: .42em; /* gleicht den Abstand nach dem letzten Buchstaben aus → wirklich mittig */
  animation: erscheinen 1.4s .35s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes erscheinen { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.start--klein .start__logo { width: min(56vw, 280px); }
.start--klein .start__logo, .start--klein .start__spruch { animation: none; }
.zurueck { font-size: 14px; }

/* ---------- Fußzeile ---------- */
.fuss {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 28px;
  padding: 24px 24px calc(28px + env(safe-area-inset-bottom));
  font-size: 13px; color: var(--leise);
}
.fuss a { text-decoration: none; }
.fuss a:hover { color: var(--tinte); }
.fuss nav { display: flex; gap: 22px; }
.seite-index .fuss { animation: erscheinen 1.4s .6s cubic-bezier(.2, .7, .2, 1) both; }

/* ---------- Rechtliche Seiten ---------- */
.kopf { display: flex; justify-content: center; padding: 40px 24px 0; }
.kopf__logo { display: block; width: 132px; color: var(--tinte); line-height: 0; }
.text { flex: 1; width: min(100% - 48px, 680px); margin: 56px auto 64px; }
.text h1 { margin: 0 0 6px; font-size: clamp(26px, 3vw + 14px, 34px); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.text h2 { margin: 40px 0 8px; font-size: 15px; font-weight: 700; letter-spacing: .01em; }
.text p { margin: 0 0 14px; }
.text__sprachen { color: var(--leise); font-size: 14px; }
.text__grundlage, .text__stand, .klein { color: var(--leise); font-size: 13px; }
.text__vorspann { font-size: 17px; margin-top: 18px !important; }
.text__zweite { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--linie); }
.angaben { margin: 22px 0 0; display: grid; }
.angaben > div { display: grid; grid-template-columns: 190px 1fr; gap: 4px 20px; padding: 12px 0; border-top: 1px solid var(--linie); }
.angaben > div:last-child { border-bottom: 1px solid var(--linie); }
.angaben dt { color: var(--leise); font-size: 14px; }
.angaben dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .angaben > div { grid-template-columns: 1fr; }
  .kopf { padding-top: 28px; }
  .text { margin-top: 40px; }
}

/* Angaben, die in Kürze ergänzt werden */
.nachtrag { color: var(--leise); font-style: italic; }

/* Noch nicht ausgefüllt (nur bis daten.json vollständig ist) */
mark.platzhalter { background: repeating-linear-gradient(-45deg, #fff3a8 0 8px, #ffe76b 8px 16px); color: #5a4b00; padding: 0 4px; border-radius: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .fuss nav, .text__sprachen { display: none; }
  .text { margin: 0 auto; }
}
