/* Klarwort – Rechtsseiten (Impressum, Datenschutz, AGB) und die Partner-/Passwortseiten, die
   Kopf, Karte und Fuß mitnutzen. Rechtstexte stehen in .legal-text (Wortlaut = App). */

@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}

:root {
  --paper: #FBF8F3;
  --card: #FFFEFB;
  --ink: #14171F;
  --ink2: #474A52;
  /* Kleintext (Fuß, Hinweise): 4,7:1 auf --paper, 5,2:1 auf Weiß (WCAG AA). */
  --ink3: #62646B;
  --line: #EAE4DB;
  --teal: #CC1B22;
  --teal-deep: #8E1016;
  --gold: #F6AE2D;
  --ph-bg: #FFF1C2;
  --ph-ink: #5C4A0E;
  --tint: #FCE9E5;
  --display: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow-sm: 0 1px 2px rgba(48, 32, 22, .05), 0 4px 14px rgba(48, 32, 22, .06);
}

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

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal-deep); font-weight: 600; text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.legal-header {
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.legal-header img { height: 28px; width: auto; display: block; }
.legal-back {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--teal-deep);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.legal-back svg { width: 16px; height: 16px; }

main {
  max-width: 860px;
  margin: 0 auto 60px;
  padding: 0 24px;
}

.legal-card {
  background: var(--card);
  border-radius: 26px;
  box-shadow: var(--shadow-sm);
  padding: clamp(28px, 5vw, 56px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 7px;
  flex: none;
  background:
    radial-gradient(circle 3.5px at 3.5px 3.5px, var(--teal) 98%, transparent),
    radial-gradient(circle 3.5px at 18.5px 3.5px, var(--gold) 98%, transparent);
}

h1 {
  font-family: var(--display);
  font-size: clamp(30px, 4.5vw, 42px);
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.1;
  margin-bottom: 26px;
}

h2 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  margin: 30px 0 8px;
}

section p, .legal-card > p { color: var(--ink2); margin-bottom: 10px; max-width: 70ch; }
section p strong { color: var(--ink); }
/* Hinweis für Besucher der englischen Startseite („German only“), direkt unter der Überschrift. */
.legal-card > p[lang="en"] { font-size: 14.5px; color: var(--ink3); margin: -16px 0 16px; }

.notice {
  background: #FCF6E3;
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  padding: 14px 18px;
  color: #6B5312;
  font-size: 14.5px;
  margin-bottom: 8px;
}
.notice strong { color: inherit; }

.legal-footer {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13.5px;
  color: var(--ink3);
}
.legal-footer a { color: var(--ink2); font-weight: 600; }
.legal-footer a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ── Rechtstexte ─────────────────────────────────────────── */
.legal-card + .legal-card { margin-top: 24px; }
.legal-text p, .legal-text li,
.legal-text h1, .legal-text h2, .legal-text h3 { overflow-wrap: break-word; hyphens: auto; }
.legal-text a { hyphens: manual; }
.legal-text section { scroll-margin-top: 16px; }
.legal-text h3 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  margin: 22px 0 6px;
  scroll-margin-top: 16px;
}
.legal-text h3.section-title { font-size: 20px; margin: 30px 0 8px; }
.legal-text .part-title {
  font-size: clamp(26px, 3.6vw, 34px);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.15;
  margin: 0 0 22px;
}
.legal-text ul {
  color: var(--ink2);
  max-width: 70ch;
  margin: 0 0 12px;
  padding-left: 1.3em;
}
.legal-text li { margin-bottom: 6px; }
.legal-text li::marker { color: var(--teal-deep); }

/* Vom Betreiber zu ergänzende Angaben – im Entwurf deutlich sichtbar. */
.ph {
  background: var(--ph-bg);
  color: var(--ph-ink);
  font-weight: 600;
  border-radius: 5px;
  padding: 0 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.toc {
  background: var(--paper);
  border-radius: 16px;
  padding: 16px 20px 12px;
  margin: 22px 0 8px;
}
.toc-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 8px;
}
.toc ol {
  margin: 0;
  padding-left: 1.6em;
  columns: 2 260px;
  column-gap: 32px;
  font-size: 15px;
}
.toc li { break-inside: avoid; margin-bottom: 4px; color: var(--ink2); }
.toc a { font-weight: 600; }

/* Hervorgehobener Hinweis (z. B. Widerspruchsrecht nach Art. 21 DSGVO). */
.legal-text section.highlight {
  background: var(--tint);
  border-left: 4px solid var(--teal-deep);
  border-radius: 12px;
  padding: 2px 20px 8px;
  margin-top: 30px;
}
.legal-text section.highlight h2 { margin-top: 18px; }

@media (max-width: 480px) {
  .legal-header, main, .legal-footer { padding-left: 16px; padding-right: 16px; }
  .legal-card { border-radius: 20px; }
  .legal-text h1 { font-size: 27px; }
  .legal-text .part-title { font-size: 25px; }
  .legal-text section.highlight { padding: 2px 14px 6px; }
}

@media print {
  body { background: #FFFFFF; }
  .legal-back, .legal-footer, .toc { display: none; }
  .legal-card { box-shadow: none; padding: 0; border-radius: 0; }
  .legal-card + .legal-card { margin-top: 32px; break-before: page; }
  a { color: inherit; }
  .ph { background: none; border: 1px solid currentColor; }
}
