/* rechtliches.css — Impressum & Datenschutzerklaerung
   ---------------------------------------------------------------------------
   STIL: Website-Welt, nicht App-Welt. Rechtstexte gehoeren zum Aussenauftritt,
   deshalb die warme Baeren-Palette aus website/teachercubs-shared.css statt der
   kuehlen App-Farben. Die Trennung ist bewusst und soll erhalten bleiben.

   EIGENSTAENDIG: Bindet weder style.css noch App-JS ein. Rechtstexte muessen
   nach § 5 DDG "staendig verfuegbar" sein - sie sollen auch dann laden, wenn
   die App kaputt oder im Umbau ist.

   KEINE EXTERNEN SCHRIFTEN. Die Website laedt Fraunces/Nunito von Google;
   das waere hier ein Widerspruch zur eigenen Datenschutzerklaerung (IP-Abfluss
   an Google). Deshalb Systemschriften mit passendem Charakter: Serife fuer
   Ueberschriften wie Fraunces, humanistische Grotesk fuer den Text.        */

:root {
  --bear:       #5C3A1E;
  --bear-deep:  #3F2510;
  --bear-soft:  #8B5E3C;
  --paw:        #E8C9A0;
  --paw-soft:   #F4E2C7;
  --cream:      #FDF7EE;
  --cream-2:    #FBF1E0;
  --mint:       #C7E5D2;
  --peach:      #F8D7C2;
  --lavender:   #D5D2EE;
  --butter:     #F5E2A7;
  --ink:        #2A1D10;
  --muted:      #6E5A47;
  --line:       rgba(92,58,30,.14);
  --card:       rgba(255,255,255,.62);
  --card-line:  rgba(255,255,255,.75);
  --tile-shadow: 0 12px 30px -12px rgba(92,58,30,.25), 0 2px 6px rgba(92,58,30,.08);

  --serif: 'Fraunces', Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;
  --sans:  'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  padding: 2.4rem 1.1rem 4rem;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

/* Signatur der Website: weiche Farbschleier im Hintergrund */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 12% 8%,  rgba(199,229,210,.85), transparent 60%),
    radial-gradient(55% 45% at 88% 18%, rgba(245,226,167,.70), transparent 65%),
    radial-gradient(70% 60% at 75% 95%, rgba(213,210,238,.70), transparent 65%),
    radial-gradient(60% 60% at 10% 90%, rgba(248,215,194,.70), transparent 65%),
    var(--cream);
}

.wrap { max-width: 47rem; margin: 0 auto; }

/* ── Kopf ─────────────────────────────────────────────────────────── */
header { margin-bottom: 2.2rem; }

.back {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.55);
  border: 1px solid var(--card-line);
  color: var(--bear); font-weight: 700; font-size: .86rem;
  text-decoration: none; margin-bottom: 1.6rem;
  transition: background .2s, transform .12s ease;
}
.back:hover { background: rgba(255,255,255,.85); transform: translateY(-1px); }

h1 {
  font-family: var(--serif); font-weight: 700;
  margin: 0 0 .35rem; color: var(--bear);
  font-size: 2.15rem; letter-spacing: -.015em; line-height: 1.15;
}
.sub {
  margin: 0; color: var(--muted); font-size: .95rem; font-weight: 600;
}

/* ── Abschnitte ───────────────────────────────────────────────────── */
section {
  background: var(--card);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--card-line);
  border-radius: 22px;
  padding: 1.6rem 1.7rem;
  margin-bottom: 1.15rem;
  box-shadow: var(--tile-shadow);
}

h2 {
  font-family: var(--serif); font-weight: 700; color: var(--bear);
  margin: 0 0 1rem; font-size: 1.3rem; letter-spacing: -.01em;
  display: flex; align-items: baseline; gap: .7rem;
}
h2 .nr {
  font-family: var(--sans);
  font-size: .68rem; font-weight: 800; letter-spacing: .14em;
  color: var(--bear-soft); opacity: .75;
  font-variant-numeric: tabular-nums;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(92,58,30,.07);
}

h3 {
  font-family: var(--serif); font-weight: 700; color: var(--bear-deep);
  margin: 1.5rem 0 .45rem; font-size: 1.02rem;
}
h3:first-of-type { margin-top: 0; }

p { margin: 0 0 .85rem; }
p:last-child { margin-bottom: 0; }

ul { margin: 0 0 .85rem; padding-left: 1.25rem; }
li { margin-bottom: .38rem; }
li::marker { color: var(--bear-soft); }

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

strong { font-weight: 800; }
em { font-style: normal; color: var(--muted); }

/* Anschriftenblock — wie die id-card der Website */
.adresse {
  background: linear-gradient(135deg, rgba(232,201,160,.32), rgba(244,226,199,.32));
  border: 1px solid rgba(92,58,30,.10);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  margin-bottom: .95rem;
  line-height: 1.65;
}

.hint {
  border-left: 4px solid var(--mint);
  background: rgba(199,229,210,.28);
  border-radius: 0 16px 16px 0;
  padding: .9rem 1.1rem;
  font-size: .92rem;
  margin: 1rem 0;
}

/* ── Tabellen ─────────────────────────────────────────────────────── */
.tbl {
  overflow-x: auto; margin: .9rem 0;
  border-radius: 16px; border: 1px solid rgba(92,58,30,.10);
  background: rgba(255,255,255,.45);
}
table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 30rem; }
th, td { text-align: left; padding: .65rem .8rem; vertical-align: top; }
th {
  color: var(--bear); font-family: var(--sans);
  font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800;
  background: rgba(232,201,160,.30);
}
td { border-top: 1px solid rgba(92,58,30,.10); }

/* ── Fuss ─────────────────────────────────────────────────────────── */
footer {
  margin-top: 2.4rem; padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: .86rem; font-weight: 600;
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; align-items: center;
}
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── Dunkelmodus ───────────────────────────────────────────────────
   Die Website ist bewusst hell und warm. Fuer Nutzer mit dunkler
   Systemeinstellung wird deshalb nicht auf Grau-Blau umgeschaltet,
   sondern die Baeren-Palette abgedunkelt - der Charakter bleibt.   */
@media (prefers-color-scheme: dark) {
  :root {
    --cream:      #221913;
    --ink:        #f2e7db;
    --muted:      #bfa48c;
    --bear:       #e8c9a0;
    --bear-deep:  #f4e2c7;
    --bear-soft:  #cda87f;
    --line:       rgba(232,201,160,.16);
    --card:       rgba(255,255,255,.05);
    --card-line:  rgba(232,201,160,.14);
    --tile-shadow: 0 12px 30px -12px rgba(0,0,0,.55);
  }
  body::before {
    background:
      radial-gradient(60% 50% at 12% 8%,  rgba(90,130,108,.30), transparent 60%),
      radial-gradient(55% 45% at 88% 18%, rgba(140,120,60,.26),  transparent 65%),
      radial-gradient(70% 60% at 75% 95%, rgba(105,100,140,.28), transparent 65%),
      radial-gradient(60% 60% at 10% 90%, rgba(150,95,70,.26),   transparent 65%),
      var(--cream);
  }
  .back    { background: rgba(255,255,255,.07); }
  .back:hover { background: rgba(255,255,255,.13); }
  .adresse { background: rgba(232,201,160,.10); border-color: rgba(232,201,160,.16); }
  .hint    { background: rgba(199,229,210,.10); }
  .tbl     { background: rgba(255,255,255,.04); border-color: rgba(232,201,160,.14); }
  th       { background: rgba(232,201,160,.12); }
  td       { border-top-color: rgba(232,201,160,.14); }
  h2 .nr   { background: rgba(232,201,160,.12); }
}

@media (max-width: 32rem) {
  body { padding: 1.4rem .9rem 3rem; }
  section { padding: 1.25rem 1.15rem; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.15rem; }
}
