/*!
 * recht.css - gemeinsames Aussehen der Rechtstextseiten von tschuessdeutschland.com
 * (impressum, datenschutz, agb, widerruf, rueckgabe, danke)
 *
 * 2026-08-21: Bis hierher trug jede der sechs Seiten ihr eigenes <style>-Blockchen mit einem
 * fest verdrahteten dunklen Hintergrund (#0f141b). Das war der Stand von vor der Umstellung
 * der Startseite auf hell und passte danach zu nichts mehr: wer aus dem hellen Dashboard auf
 * das Impressum klickte, landete auf einer schwarzen Seite.
 *
 * Die Farbwerte hier sind dieselben wie in style.css, nur auf das reduziert, was ein reiner
 * Textseiten-Satz braucht. Bewusst NICHT style.css eingebunden: die Datei ist auf das
 * Dashboard zugeschnitten, wiegt ein Vielfaches und brächte Regeln mit, die auf einer
 * Textseite nichts zu suchen haben.
 *
 * ACHTUNG: neue Datei = neuer Eintrag in der Allowlist von tools/deploy-tschuessdeutschland.sh.
 * Fehlt sie im Webroot, stehen alle sechs Seiten ungestylt da.
 */

:root {
  color-scheme: light dark;
  --bg: #eef1f4;
  --bg-elev: #ffffff;
  --border: #dcd8d2;
  --text: #0f172a;
  --text-muted: #475569;
  --marke: #1e3a5f;
  --accent-text: #0b6b6a;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f141b;
    --bg-elev: #182029;
    --border: #2f3a47;
    --text: #e8edf3;
    --text-muted: #93a1b1;
    --marke: #7aa5d8;
    --accent-text: #35b3b0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 20px 56px;
}

/* Der Textkoerper sitzt auf einer eigenen Flaeche, so wie die Kacheln im Dashboard. Sonst
   schwimmt eine reine Textseite auf dem hellen Grund ohne jeden Halt. */
.blatt {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 32px 34px 36px;
}

h1 {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--text);
}

h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 30px 0 8px;
  color: var(--marke);
}

p { margin: 0 0 12px; }
ul, ol { margin: 0 0 12px; padding-left: 22px; }
li { margin: 0 0 6px; }

a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  overflow-wrap: anywhere;
}

.back {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
}
.back:hover { color: var(--text); text-decoration: underline; }

.muted { color: var(--text-muted); font-size: 14px; }

/* Hervorgehobener Kasten: Kurzfassung, Anschriften, Muster-Widerrufsformular. */
.kasten {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--marke);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 0 0 16px;
}
.kasten p:last-child { margin-bottom: 0; }

.weg { /* rueckgabe.html: der eine Weg, der zaehlt */
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 0 0 14px;
}

.anschrift { font-size: 14px; color: var(--text-muted); }

/* Absatznummerierung in den AGB: 1., 2., 3. je Paragraf. */
ol.abs { padding-left: 20px; }
ol.abs > li { margin-bottom: 8px; }

footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 36px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}
footer a { color: var(--text-muted); text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-width: 560px) {
  main { padding: 24px 14px 40px; }
  .blatt { padding: 22px 18px 26px; border-radius: 10px; }
  h1 { font-size: 22px; }
}
