/* Gemeinsames Aussehen der Rechtsseiten (Impressum, Datenschutz, AGB).
   Bewusst eine eigene Datei statt dreimal derselbe <style>-Block: die drei
   Seiten sollen sich nie auseinanderentwickeln. Dark-first wie index.html,
   Hellmodus ueber html[data-theme="light"] (Styleguide §4). */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #14181a;
  color: #e0e0e0;
  line-height: 1.6;
  min-height: 100vh;
}

.rt-wrap { max-width: 820px; margin: 0 auto; padding: 32px 20px 72px; }

.rt-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 28px;
}
.rt-back {
  color: #93b6f5; text-decoration: none; font-size: .92rem;
  padding: 8px 0;
}
.rt-back:hover { text-decoration: underline; }
.rt-marke { font-size: .92rem; font-weight: 600; color: #fff; }

h1 { font-size: 1.6rem; color: #fff; margin-bottom: 6px; }
.rt-stand { color: #8b949e; font-size: .82rem; margin-bottom: 28px; }

h2 {
  font-size: 1.05rem; color: #fff; font-weight: 600;
  margin: 28px 0 10px;
}
h3 { font-size: .95rem; color: #fff; font-weight: 600; margin: 18px 0 6px; }

p, li { font-size: .92rem; color: #cbd2d8; }
p { margin-bottom: 12px; }
ul, ol { margin: 0 0 12px 22px; }
li { margin-bottom: 6px; }

a { color: #93b6f5; }

strong { color: #fff; }

.rt-karte {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 18px;
}

/* Deutlich sichtbarer Hinweis, dass ein Text noch geprueft werden muss. */
.rt-entwurf {
  background: rgba(217, 119, 6, .14);
  border: 1px solid rgba(217, 119, 6, .45);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 24px;
  font-size: .86rem;
  color: #f5c470;
}
.rt-entwurf strong { color: #fbbf24; }

table.rt-tab { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: .88rem; }
table.rt-tab th, table.rt-tab td {
  text-align: left; padding: 9px 10px; vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
table.rt-tab th { color: #fff; font-weight: 600; }
table.rt-tab td { color: #cbd2d8; }
.rt-tab-scroll { overflow-x: auto; }

.rt-fuss {
  margin-top: 40px; padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-size: .84rem;
}
.rt-fuss a { color: #8b949e; text-decoration: none; }
.rt-fuss a:hover { color: #93b6f5; text-decoration: underline; }

/* ---------- Hellmodus ---------- */
html[data-theme="light"] body { background: #f5f4f1; color: #1f2a28; }
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] .rt-marke,
html[data-theme="light"] strong,
html[data-theme="light"] table.rt-tab th { color: #1f2a28; }
html[data-theme="light"] p,
html[data-theme="light"] li,
html[data-theme="light"] table.rt-tab td { color: #48524f; }
html[data-theme="light"] .rt-stand { color: #5e6a67; }
html[data-theme="light"] a,
html[data-theme="light"] .rt-back { color: #1d4ed8; }
html[data-theme="light"] .rt-karte { background: #fff; border-color: #e5e4de; }
html[data-theme="light"] .rt-entwurf {
  background: #fef3c7; border-color: #d97706; color: #7c4a03;
}
html[data-theme="light"] .rt-entwurf strong { color: #7c4a03; }
html[data-theme="light"] table.rt-tab th,
html[data-theme="light"] table.rt-tab td { border-bottom-color: #e5e4de; }
html[data-theme="light"] .rt-fuss { border-top-color: #e5e4de; }
html[data-theme="light"] .rt-fuss a { color: #5e6a67; }
html[data-theme="light"] .rt-fuss a:hover { color: #1d4ed8; }

@media (max-width: 600px) {
  .rt-wrap { padding: 20px 16px 56px; }
  h1 { font-size: 1.35rem; }
}
