/* Gemeinsames Layout der Rechtstexte (Impressum, Datenschutz, AGB – DE und EN).
   Lag frueher als identischer <style>-Block in jeder Seite; eine Kopie reicht. */
:root {
  --bg: #0f0f1a;
  --bg2: #16162a;
  --primary: #e94560;
  --gold: #ffd700;
  --text: #eee;
  --text-dim: #9a9ab0;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
/* Lange Wörter/URLs umbrechen, damit nichts seitlich überläuft */
p, li, a, h1, h2, strong { overflow-wrap: anywhere; word-break: break-word; }
.wrap { max-width: 760px; margin: 0 auto; padding: 32px 18px 80px; }
header.page-head {
  text-align: center;
  padding: 24px 0 8px;
  border-bottom: 1px solid #2a2a40;
  margin-bottom: 28px;
}
header.page-head h1 {
  margin: 0;
  font-size: 1.9rem;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.updated { color: var(--text-dim); font-size: 0.85rem; margin-top: 8px; }
h2 {
  font-size: 1.2rem;
  margin: 34px 0 10px;
  color: #fff;
  border-left: 3px solid var(--primary);
  padding-left: 10px;
}
a { color: var(--primary); }
a:hover { color: var(--gold); }
p, li { color: #d7d7e6; }
ul { padding-left: 22px; }
li { margin: 4px 0; }
.card {
  background: var(--bg2);
  border: 1px solid #25253c;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 16px 0;
}
.back {
  display: inline-block;
  margin-bottom: 20px;
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.back:hover { color: var(--gold); }
footer {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-top: 48px;
  border-top: 1px solid #2a2a40;
  padding-top: 20px;
}
table { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 8px 0 4px; }
td, th { text-align: left; padding: 6px 8px; border-bottom: 1px solid #25253c; vertical-align: top; font-size: 0.95rem; overflow-wrap: anywhere; word-break: break-word; }
th { color: #fff; }

/* Sprachumschalter oben rechts neben dem Zurueck-Link */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.topbar .back { margin-bottom: 0; }
.langswitch {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.9rem;
  border: 1px solid #2a2a40;
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}
.langswitch:hover { color: var(--gold); border-color: var(--gold); }

/* Sprachumschalter nur beim Direktaufruf der Seite.
   Im Popup (iframe) der Startseite bestimmt die Sprache aus den Einstellungen,
   welche Sprachversion geladen wird – ein zweiter Umschalter im Popup wuerde
   nur den iframe umstellen und der App-Sprache davonlaufen.
   Die Klasse setzt das Inline-Script im <head> der Rechtstexte. */
html.embedded .langswitch { display: none; }
