/* ==========================================================================
   recht.css – Impressum und Datenschutzerklärung
   Die Texte kommen von eRecht24 und bringen nur einfaches HTML mit
   (h1–h3, p, ul, strong, a). Hier bekommen sie das Kleid der Website.
   ========================================================================== */

:root {
  --navy-900: #081729;
  --navy: #0F2544;
  --blue: #0B63D6;
  --blue-dark: #0A54B4;
  --blue-soft: #E8F2FD;
  --white: #FFFFFF;
  --gray-100: #F1F1F3;
  --gray-200: #E5E6E9;
  --text-body: #45506A;
  --text-mute: #858FA5;
  --font-display: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --r-pill: 999px;
  --wrap: 820px;
}

* { box-sizing: border-box; }

body.recht {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.recht__skip { position: absolute; left: -9999px; }
.recht__skip:focus {
  left: 16px; top: 16px; z-index: 10;
  padding: 10px 16px;
  background: var(--navy); color: #fff;
  border-radius: var(--r-pill); text-decoration: none;
}

/* --------------------------------------------------------------- Kopf     */
.recht__kopf {
  border-bottom: 1px solid var(--gray-200);
  background: var(--white);
}
.recht__kopf-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px clamp(20px, 5vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.recht__marke { display: inline-flex; align-items: center; }
.recht__marke img { display: block; height: auto; }

.recht__zurueck {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}
.recht__zurueck svg { width: 17px; height: 17px; }
.recht__zurueck:hover { color: var(--blue); }

/* --------------------------------------------------------------- Inhalt   */
.recht__inhalt {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 72px) clamp(20px, 5vw, 32px) clamp(56px, 9vw, 96px);
  font-size: 16.5px;
  line-height: 1.7;
}

.recht__inhalt h1 {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-size: clamp(32px, 5.5vw, 44px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.02em;
  color: var(--navy);
  text-wrap: balance;
}

.recht__inhalt h2 {
  margin: 44px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(21px, 2.6vw, 25px);
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
}

.recht__inhalt h3 {
  margin: 30px 0 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
}

.recht__inhalt h4 {
  margin: 22px 0 8px;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--navy);
}

.recht__inhalt p { margin: 0 0 16px; }
.recht__inhalt strong { color: var(--navy); font-weight: 600; }

.recht__inhalt ul,
.recht__inhalt ol { margin: 0 0 18px; padding-left: 22px; }
.recht__inhalt li { margin-bottom: 7px; }

.recht__inhalt a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(11, 99, 214, .3);
  /* Lange Links (Datenschutz nennt viele) dürfen umbrechen. */
  overflow-wrap: anywhere;
}
.recht__inhalt a:hover { border-bottom-color: var(--blue); }

.recht__inhalt hr {
  margin: 36px 0;
  border: 0;
  border-top: 1px solid var(--gray-200);
}

/* eRecht24 setzt Tabellen für Fristen und Empfänger. */
.recht__inhalt table {
  width: 100%;
  margin: 0 0 20px;
  border-collapse: collapse;
  font-size: 15.5px;
}
.recht__inhalt th,
.recht__inhalt td {
  padding: 10px 12px;
  border: 1px solid var(--gray-200);
  text-align: left;
  vertical-align: top;
}
.recht__inhalt th { background: var(--gray-100); color: var(--navy); font-weight: 600; }

/* Breites bekommt einen eigenen Schieber, statt die Seite zu sprengen. */
.recht__inhalt > .recht__scroll { overflow-x: auto; }

/* --------------------------------------------------------------- Hinweis  */
.recht__hinweis {
  margin: 0 0 32px;
  padding: 16px 20px;
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--blue);
  border-radius: 0 10px 10px 0;
  background: var(--blue-soft);
  font-size: 15.5px;
  color: var(--navy);
}
.recht__hinweis p { margin: 0; }

/* --------------------------------------------------------------- Fuß      */
.recht__fuss {
  border-top: 1px solid var(--gray-200);
  background: var(--gray-100);
}
.recht__fuss-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 30px clamp(20px, 5vw, 32px) 40px;
  font-size: 14.5px;
  color: var(--text-mute);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: space-between;
}
.recht__fuss a { color: inherit; }
.recht__fuss a:hover { color: var(--navy); }
.recht__fuss-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* Kein Wort steht allein ------------------------------------------------
   Bleibt in der letzten Zeile eines Absatzes ein einzelnes Wort übrig,
   wirkt der Satz unruhig. Drei Schichten verhindern das:
   1. text-wrap: pretty – der Browser zieht von sich aus ein Wort herunter.
   2. Die geschützten Leerzeichen, die tools/witwen.py zwischen die letzten
      beiden Wörter setzt. Sie wirken auch dort, wo pretty noch fehlt.
   3. overflow-wrap als Netz: Sollte so ein Paar einmal breiter sein als
      seine Spalte, bricht es um, statt über den Rand zu laufen. */
p, li, dd, dt, blockquote, figcaption, address,
.lede, .claim, .svc__text, .tile__hint {
  text-wrap: pretty;
  overflow-wrap: break-word;
}

/* Überschriften bleiben bei text-wrap: balance (siehe oben), brauchen das
   Netz gegen Überlauf aber genauso: Ein geschütztes Paar, das breiter ist
   als seine Spalte, soll umbrechen statt über den Rand zu laufen. */
h1, h2, h3, h4 { overflow-wrap: break-word; }
