/* Gemeinsames Stylesheet der Rechtstexte (AGB, Datenschutz, Impressum, Widerruf,
   Konto löschen). Dunkles Website-Design, Farben und Marke aus ../assets/tokens.css
   (vorher einbinden). Lese-Layout bis 760 px, dazu ein Druck-Stylesheet. */
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }

/* Marke linksbündig an der Textspalte (main: 760 px inkl. Seitenrand) */
.legal-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px var(--gutter);
  padding-left: max(var(--gutter), calc((100% - 760px) / 2 + var(--gutter)));
}

main { max-width: 760px; margin: 0 auto; padding: 40px var(--gutter) 24px; }
h1 { font-size: clamp(26px, 5vw, 34px); line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 6px; color: #fff; }
h2 { font-size: 20px; line-height: 1.3; font-weight: 800; margin: 36px 0 8px; }
h3 { font-size: 17px; line-height: 1.35; font-weight: 700; margin: 22px 0 6px; }
p, li { font-size: 16px; }
p { margin: 0 0 12px; }
ul { margin: 0 0 12px; padding-left: 22px; }
li { margin: 4px 0; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--aqua); }
a:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; border-radius: 4px; }
strong { color: #fff; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.draft {
  background: rgba(28, 206, 153, 0.10);
  border: 1px dashed var(--primary);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 24px;
}
table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 15px; }
th, td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--inset); }
.placeholder { color: var(--primary); font-weight: 600; }
hr { border: none; border-top: 1px solid var(--border); margin: 32px 0 20px; }
footer { color: var(--muted); font-size: 13.5px; text-align: center; margin: 8px auto 0; padding: 16px var(--gutter) 48px; max-width: 760px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* Druck: weißer Grund, schwarze Schrift, ohne Kopfzeile */
@media print {
  :root { color-scheme: light; }
  body { background: #fff; color: #000; font-size: 11pt; line-height: 1.5; }
  .legal-top, footer { display: none; }
  main { max-width: none; padding: 0; }
  h1, h2, h3, strong { color: #000; }
  h1, h2, h3 { break-after: avoid; }
  .meta, .draft { color: #000; }
  .draft { background: none; border-color: #000; }
  a, a:hover { color: #000; text-decoration: underline; }
  th { background: #eee; }
  th, td { border-color: #000; }
  .placeholder { color: #000; }
  hr { border-top-color: #000; }
}
