/* Rechtsseiten Markus Garbe: Impressum, Datenschutz, Erstinformation.
   Lädt nach token.css (Marke, Schriften) und basis.css (Reset, Typografie) von OBEN-A. Eigene Klassen mit Präfix r-.
   Bild: das helle Befundblatt auf dem Leuchtkasten. Blaugrau als Fläche, ein weißes Blatt, Navy als Schrift, kein Rot. */

:root {
  --r-navy: #001524;
  --r-navy-ende: #051A2E;
  --r-leuchte: #E1E8EF;
  --r-blaugrau: #A3B2C5;
  --r-mittel: #C9D3DF;
  --r-text: #1B2A38;
  --r-leise: #3E4F61;
  --r-breite: 760px;
  --r-ease: cubic-bezier(.23, 1, .32, 1);
}

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

body.r-seite {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--r-leuchte);
  color: var(--r-text);
}

/* Sprunglink: nur beim Tabben sichtbar */
.r-sprung {
  position: absolute; left: 16px; top: -80px; z-index: 2;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  background: var(--r-navy); color: #FFFFFF; border-radius: 999px; font-weight: 600; text-decoration: none;
}
.r-sprung:focus-visible { top: 12px; outline-color: var(--r-blaugrau); }

/* Kopf: Logo-Kachel links, Kontur-Pille rechts */
.r-kopf {
  width: 100%; max-width: calc(var(--r-breite) + 32px); margin-inline: auto; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px;
}
.r-marke { display: inline-flex; align-items: center; min-height: 44px; border-radius: 4px; }
.r-marke img { height: 40px; width: auto; }

.r-pille, .r-tab {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px;
  border-radius: 999px; font-size: 15px; line-height: 20px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--r-ease);
}
.r-pille { color: var(--r-navy); box-shadow: inset 0 0 0 1.5px var(--r-navy); }
.r-pille:active, .r-tab:active { transform: scale(.97); }
.r-pille:focus-visible, .r-tab:focus-visible { border-radius: 999px; }

/* Inhalt */
main.r-haupt { display: block; flex: 1 0 auto; width: 100%; padding: 4px 16px 56px; }
.r-wrap { width: 100%; max-width: var(--r-breite); margin-inline: auto; }

.r-reiter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.r-tab { background: #FFFFFF; color: var(--r-navy); box-shadow: inset 0 0 0 1.5px var(--r-mittel); }
.r-tab[aria-current="page"] { background: var(--r-navy); color: #FFFFFF; box-shadow: none; }

.r-blatt {
  background: #FFFFFF; border-radius: 16px; box-shadow: var(--o-schatten-papier, 0 8px 24px rgba(0, 21, 36, .12));
  padding: 28px 20px 36px;
}

.r-titel h1 { color: var(--r-navy); }
.r-unter { margin-top: 10px; font-size: 19px; line-height: 26px; color: var(--r-leise); }
.r-key { font-family: var(--font-akzent); font-style: italic; font-weight: 400; font-size: 1.25em; line-height: 1; color: var(--r-navy); padding-inline-end: .04em; }
.r-einleitung { margin-top: 16px; font-size: 17px; line-height: 26px; max-width: 64ch; }

.r-blatt p, .r-blatt dd, .r-blatt li { max-width: 68ch; }
.r-blatt section { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--r-mittel); scroll-margin-top: 16px; }
.r-blatt h2 { font-size: 21px; line-height: 28px; font-weight: 700; letter-spacing: -0.01em; color: var(--r-navy); }
.r-blatt h3 { margin-top: 20px; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--r-navy); }
.r-blatt section p { margin-top: 12px; }
.r-blatt h2 + p, .r-blatt h3 + p { margin-top: 8px; }

.r-blatt a { color: var(--r-navy); font-weight: 600; text-decoration-thickness: 1.5px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.r-weiter { margin-top: 4px; }
.r-weiter a { display: inline-flex; align-items: center; min-height: 44px; }

.r-adresse { font-style: normal; }

/* Inhaltsliste der Datenschutzerklärung: Anker je Abschnitt */
.r-inhalt { margin-top: 24px; padding: 16px 20px 8px; background: var(--r-leuchte); border-radius: 16px; }
.r-inhalt h2 { font-size: 16px; line-height: 24px; font-weight: 600; }
.r-inhalt ol { margin-top: 4px; }
.r-inhalt a { display: flex; align-items: center; min-height: 44px; font-weight: 400; text-decoration: none; }
.r-inhalt li + li a { box-shadow: inset 0 1px 0 var(--r-mittel); }
@media (hover: hover) and (pointer: fine) {
  .r-inhalt a:hover { text-decoration: underline; }
}

/* Angaben als Liste: Bezeichnung über dem Wert, ab 768 px daneben */
.r-angaben { margin-top: 28px; }
.r-zeile { display: grid; gap: 4px; padding: 16px 0; }
.r-zeile + .r-zeile { border-top: 1px solid var(--r-mittel); }
.r-zeile dt { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--r-leise); }
.r-zeile dd + dd { margin-top: 6px; }

.r-punkte { margin-top: 10px; display: grid; gap: 8px; }
.r-punkte li { position: relative; padding-left: 20px; }
.r-punkte li::before { content: ""; position: absolute; left: 3px; top: 10px; width: 6px; height: 6px; border-radius: 999px; background: var(--r-blaugrau); }

.r-anschriften { margin-top: 12px; display: grid; gap: 16px; }
.r-anschriften p { margin-top: 0; }
.r-anschriften .r-weiter { margin-top: 0; }

/* Was Markus Garbe noch liefert: sichtbare, markierte Lücke */
.r-offen {
  display: block; margin-top: 8px; padding: 10px 14px;
  background: #F3F3F3; border: 1.5px dashed #6B7C8F; border-radius: 16px;
  font-size: 15px; line-height: 22px; color: var(--r-text);
}
p.r-offen { margin-top: 12px; }

/* Registrierungsnummer nie am Bindestrich trennen */
.r-nr { white-space: nowrap; }

/* Fuß: Navy wie der Schluss der Startseite */
.r-fuss {
  background: linear-gradient(180deg, var(--r-navy) 0%, var(--r-navy-ende) 100%); color: #FFFFFF;
  padding: 28px 16px calc(28px + env(safe-area-inset-bottom));
}
.r-fuss-innen { max-width: var(--r-breite); margin-inline: auto; }
.r-fuss-zeile { font-size: 14px; line-height: 20px; color: var(--r-mittel); }
.r-fuss-links { margin-top: 8px; display: flex; flex-wrap: wrap; column-gap: 20px; }
.r-fuss-links a { display: inline-flex; align-items: center; min-height: 44px; color: #FFFFFF; font-size: 15px; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.r-fuss :focus-visible { outline-color: var(--r-blaugrau); }

@media (hover: hover) and (pointer: fine) {
  .r-pille:hover { background: rgba(0, 21, 36, .06); }
  .r-tab:not([aria-current="page"]):hover { background: var(--r-leuchte); }
  .r-fuss-links a:hover { color: var(--r-mittel); }
}

@media (min-width: 768px) {
  main.r-haupt { padding: 8px 16px 80px; }
  .r-reiter { margin-bottom: 20px; }
  .r-blatt { padding: 48px 56px 56px; }
  .r-titel h1 { font-size: 44px; line-height: 48px; }
  .r-unter { font-size: 21px; line-height: 28px; }
  .r-blatt section { margin-top: 44px; padding-top: 32px; }
  .r-blatt h2 { font-size: 24px; line-height: 30px; }
  .r-inhalt { padding: 20px 24px 12px; }
  .r-inhalt ol { columns: 2; column-gap: 32px; }
  .r-inhalt li { break-inside: avoid; }
  .r-inhalt li + li a { box-shadow: none; }
  .r-zeile { grid-template-columns: 200px minmax(0, 1fr); column-gap: 24px; }
  .r-zeile dt { padding-top: 2px; }
  .r-zeile dd { grid-column: 2; }
  .r-zeile dd + dd { margin-top: 2px; }
  .r-anschriften { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .r-pille, .r-tab { transition: none; }
  .r-pille:active, .r-tab:active { transform: none; }
}
