/* ============================================================
   DONUM · Rechtsseiten FR / ES · Stylesheet
   Design-Tokens 1:1 aus dem DONUM Master-Designsystem
   (Quiet Luxury · Navy / Travertin / Gold · Cormorant Garamond + Jost)
   Standalone: keine Abhängigkeit zu style.css der Landings.
   ============================================================ */
:root {
  --navy-950: #0a1220;
  --navy-900: #0e1a2c;
  --navy-800: #142338;
  --navy-700: #1c3049;
  --cream:    #efe8db;
  --paper:    #f5f0e7;
  --ink:      #1d2634;
  --ink-soft: #4a5568;
  --gold:     #c2a06b;
  --gold-soft:#dcc59a;
  --gold-dim: rgba(194, 160, 107, 0.32);
  --text-on-dark: #e9e2d4;
  --muted-on-dark: #aab4c2;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "Jost", "Segoe UI", sans-serif;
  --fs-hero:  clamp(1.7rem, calc(1rem + 2.6vw), 2.9rem);
  --fs-h2:    clamp(1.3rem, calc(1.05rem + 1.1vw), 1.85rem);
  --fs-h3:    clamp(1.02rem, calc(0.97rem + 0.4vw), 1.18rem);
  --fs-body:  clamp(0.98rem, calc(0.94rem + 0.2vw), 1.06rem);
  --fs-kicker:clamp(0.7rem, calc(0.67rem + 0.18vw), 0.8rem);
  --container: 74rem;
  --measure: 46rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: 1.72;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.measure   { max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--navy-950);
  padding: 0.7rem 1.2rem; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(10, 18, 32, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(194, 160, 107, 0.18);
}
.header-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  height: 4.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 1.3rem; width: auto; max-width: 12rem; object-fit: contain; }

.lang-switch {
  font-family: var(--sans);
  font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(170, 180, 194, 0.6); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.15rem;
}
.lang-switch a {
  color: var(--muted-on-dark); text-decoration: none;
  padding: 0.5rem 0.3rem; transition: color .25s var(--ease);
}
.lang-switch a:hover, .lang-switch a:focus-visible { color: var(--gold-soft); }
.lang-switch .active {
  color: #fff; padding: 0.5rem 0.3rem;
  text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--gold);
}
.lang-sep { opacity: 0.45; }

/* ---------- Titelband ---------- */
.page-head {
  background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-800) 100%);
  color: var(--text-on-dark);
  padding: calc(4.2rem + clamp(3rem, 7vw, 5.5rem)) 0 clamp(2.6rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--gold-dim);
}
.kicker {
  font-family: var(--sans); font-size: var(--fs-kicker); font-weight: 400;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold);
  margin: 0 0 1rem;
}
.page-head h1 {
  font-family: var(--serif); font-weight: 500; line-height: 1.14;
  font-size: var(--fs-hero); margin: 0 0 0.9rem; color: #fff;
}
.page-head .lede {
  color: var(--muted-on-dark); margin: 0; max-width: 40rem; font-size: 0.98rem;
}

/* ---------- Inhalt ---------- */
main { display: block; }
.legal-body { padding: clamp(2.4rem, 6vw, 4.2rem) 0 clamp(3rem, 7vw, 5rem); }

.legal-body h2 {
  font-family: var(--serif); font-weight: 500; line-height: 1.2;
  font-size: var(--fs-h2); color: var(--navy-900);
  margin: 2.8rem 0 0.9rem; padding-top: 1.6rem;
  border-top: 1px solid rgba(29, 38, 52, 0.12);
}
.legal-body h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-body h3 {
  font-family: var(--sans); font-weight: 500;
  font-size: var(--fs-h3); color: var(--navy-800);
  letter-spacing: 0.01em; margin: 1.8rem 0 0.5rem;
}
.legal-body p { margin: 0 0 1rem; color: var(--ink); }
.legal-body ul { margin: 0 0 1.2rem; padding-left: 1.1rem; }
.legal-body li { margin: 0 0 0.45rem; }
.legal-body li::marker { color: var(--gold); }

.legal-body a { color: var(--navy-700); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold-dim); overflow-wrap: anywhere; }
.legal-body a:hover, .legal-body a:focus-visible { text-decoration-color: var(--gold); }

.legal-body strong { font-weight: 500; color: var(--navy-900); }

/* Datenblock (Adresse, Kontakt, Nummern) */
.datablock {
  margin: 0 0 1.4rem; padding: 1.1rem 1.3rem;
  background: rgba(255, 255, 255, 0.55);
  border-left: 2px solid var(--gold);
}
.datablock p { margin: 0 0 0.15rem; }
.datablock p:last-child { margin-bottom: 0; }

/* Definitionsliste für Nummern / Behörden */
.deflist { margin: 0 0 1.4rem; display: grid; grid-template-columns: minmax(9rem, 15rem) 1fr; gap: 0.35rem 1.4rem; }
.deflist dt { color: var(--ink-soft); font-weight: 300; }
.deflist dd { margin: 0; color: var(--navy-900); font-weight: 400; }
@media (max-width: 620px) {
  .deflist { grid-template-columns: 1fr; gap: 0 0; }
  .deflist dt { margin-top: 0.7rem; font-size: 0.86rem; letter-spacing: 0.06em; text-transform: uppercase; }
}

/* Systemübersicht · welcher Dienst wofür */
.systems {
  width: 100%; border-collapse: collapse;
  margin: 0 0 1.6rem; font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.55);
}
.systems caption {
  caption-side: top; text-align: left;
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); padding: 0 0 0.7rem;
}
.systems th, .systems td {
  text-align: left; vertical-align: top;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(29, 38, 52, 0.1);
}
.systems thead th {
  font-weight: 400; font-size: 0.76rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--navy-900); background: rgba(194, 160, 107, 0.12);
  border-bottom: 1px solid var(--gold-dim);
}
.systems tbody th { font-weight: 500; color: var(--navy-900); white-space: nowrap; }
.systems tbody tr:last-child th, .systems tbody tr:last-child td { border-bottom: 0; }
.systems .prov { color: var(--ink-soft); }

@media (max-width: 700px) {
  .systems, .systems tbody, .systems tr, .systems th, .systems td { display: block; width: 100%; }
  .systems caption { display: block; width: 100%; letter-spacing: 0.1em; }
  .systems thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .systems tbody tr { border-bottom: 1px solid var(--gold-dim); padding: 0.6rem 0; }
  .systems tbody tr:last-child { border-bottom: 0; }
  .systems th, .systems td { border-bottom: 0; padding: 0.15rem 0.9rem; white-space: normal; }
  .systems tbody th { font-size: 1rem; padding-top: 0.6rem; }
}

/* Hinweis zur Verbindlichkeit */
.notice {
  margin: 0 0 2.4rem; padding: 1.15rem 1.35rem;
  background: var(--navy-950); color: var(--text-on-dark);
  font-size: 0.92rem; line-height: 1.6;
  border-left: 2px solid var(--gold);
}
.notice p { margin: 0; color: var(--text-on-dark); }
.notice p + p { margin-top: 0.5rem; }
.notice a { color: var(--gold-soft); text-decoration-color: rgba(220, 197, 154, 0.5); }

/* Hervorgehobener Widerspruchs-Block (Art. 21 DSGVO) */
.emphasis-block {
  margin: 0 0 1.4rem; padding: 1.15rem 1.35rem;
  background: rgba(194, 160, 107, 0.1);
  border: 1px solid var(--gold-dim);
}
.emphasis-block p { margin: 0 0 0.8rem; font-size: 0.95rem; }
.emphasis-block p:last-child { margin-bottom: 0; }

.meta-line {
  margin-top: 2.8rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(29, 38, 52, 0.12);
  font-size: 0.86rem; color: var(--ink-soft);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950); color: var(--muted-on-dark);
  padding: clamp(2.4rem, 5vw, 3.4rem) 0; text-align: center;
}
.site-footer img { margin: 0 auto 1rem; width: auto; object-fit: contain; }
.footer-line { font-family: var(--serif); font-size: 1.05rem; color: var(--cream); margin: 0 0 1.3rem; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.6rem; }
.footer-nav a {
  color: var(--muted-on-dark); text-decoration: none;
  font-size: 0.78rem; letter-spacing: 0.13em; text-transform: uppercase;
  transition: color .25s var(--ease);
}
.footer-nav a:hover, .footer-nav a:focus-visible { color: var(--gold-soft); }
.footer-legal { margin: 1.5rem 0 0; font-size: 0.75rem; color: rgba(170, 180, 194, 0.65); }

@media print {
  .site-header, .lang-switch, .skip-link { display: none; }
  body { background: #fff; }
  .page-head { background: #fff; color: #000; padding-top: 0; }
  .page-head h1, .notice p { color: #000; }
  .notice { background: #fff; border-left: 2px solid #000; }
  .site-footer { background: #fff; color: #000; }
}
