
/* ── Die Markenschriften, selbst ausgeliefert (content/fonts.ts) ────────
   font-weight ist ein BEREICH, weil beide Dateien variabel sind — mit
   einem einzelnen Wert synthetisiert der Browser die Halbfette selbst und
   verfettet die Buchstaben. */
@font-face{font-family:'Public Sans';font-style:normal;font-weight:400 600;font-display:swap;src:url(/legal/fonts/public-sans.woff2?v=fb24517f) format('woff2')}
@font-face{font-family:'Petrona';font-style:normal;font-weight:600;font-display:swap;src:url(/legal/fonts/petrona.woff2?v=fb24517f) format('woff2')}

:root{
  color-scheme:light;
  /* Farben — Colors.light aus theme.ts */
  --brand:#3D9A4A;          /* Yedeni Green: Flächen OHNE Text darauf */
  --brand-text:#2E7C3A;     /* die Textfassung: Links, 5,17:1 */
  /* Die gefüllte Pille. NICHT --brand: Weiß darauf sind 3,55:1, und die
     Beschriftung eines Knopfes ist normaler Text. Website: --color-button-green. */
  --button:#2E7C3A;--button-hover:#23642D;--on-button:#FFFFFF;
  --brand-wash:#E9F8E4;     /* primarySurface */
  --fg:#171514;             /* Settled Black */
  --muted:#717171;          /* textSecondary — auf dem GRUND (5,63:1) */
  /* textSecondary auf einer gefüllten Fläche ist 4,49:1 und damit um einen
     Hundertstel unter AA. Die Website führt für genau diesen Fall einen
     eigenen Wert (--color-secondary-on-hover, dort mit der Messung
     „#717171 auf #F0F0F0 wäre nur 4.28"). Er gilt hier für jeden Chip. */
  --muted-on-fill:#5C5C5C;
  --bg:#FAFBFA;             /* Bleach White */
  --surface:#FFFFFF;        /* surface */
  --surface-2:#F4F6F4;      /* backgroundSecondary */
  --border:#ECECEC;         /* border */
  --border-light:#F5F5F3;   /* borderLight */
  --warn:#C28900;           /* warning — als FLÄCHE/Kante */
  --warn-text:#8F6400;      /* die Textfassung (Website) */
  --warn-bg:#FFF8E6;
  /* Schatten — die drei Ebenen, Ton Settled Black */
  --lift-1:0 3px 16px rgb(23 21 20 / .08);
  --lift-2:0 4px 24px rgb(23 21 20 / .09);
  /* Glas — CHROME_OPTICS der Website */
  --glass:rgb(250 251 250 / .72);
  --glass-edge:rgb(23 21 20 / .06);
}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]){
  color-scheme:dark;
  /* Colors.dark — im Dunkeln trägt die Markenfarbe auch als Text */
  --brand:#8FDB9E;--brand-text:#8FDB9E;--brand-wash:#213827;
  /* Im Dunkeln hat die Markenfarbe den Kontrast, den sie im Hellen nicht
     hat: #12301A auf #8FDB9E sind 8,7:1 (App: onPrimary). */
  --button:#8FDB9E;--button-hover:#A8DDB2;--on-button:#12301A;
  --fg:#FAFBFA;--muted:#A3A3A3;--muted-on-fill:#A3A3A3;
  --bg:#000000;--surface:#1E1E1E;--surface-2:#141414;
  --border:#2E2E2E;--border-light:#262626;
  --warn:#FBBF24;--warn-text:#FBBF24;--warn-bg:#33241E;
  /* Auf True Black trägt kein Schatten — dort macht es die Füllung. */
  --lift-1:none;--lift-2:none;
  --glass:rgb(20 20 20 / .72);--glass-edge:rgb(255 255 255 / .08);
}}

*{margin:0;padding:0;box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  font-family:'Public Sans',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  font-size:16px;line-height:26px;letter-spacing:.1px;   /* Typography.body */
  color:var(--fg);background:var(--bg);
  padding:0 0 64px;-webkit-font-smoothing:antialiased;
}
main{max-width:672px;margin:0 auto;padding:0 16px}       /* --container-text */

/* ── Die Glasleiste ──────────────────────────────────────────────────── */
.site-bar{
  position:sticky;top:0;z-index:20;
  background:var(--glass);border-bottom:1px solid var(--glass-edge);
  margin-bottom:32px;
}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .site-bar{-webkit-backdrop-filter:blur(14px) saturate(1.7);backdrop-filter:blur(14px) saturate(1.7)}
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .site-bar{background:var(--surface);border-bottom-color:var(--border)}
}
@media (prefers-reduced-transparency:reduce){
  .site-bar{background:var(--surface);-webkit-backdrop-filter:none;backdrop-filter:none;border-bottom-color:var(--border)}
}
.site-bar-inner{max-width:672px;margin:0 auto;padding:0 16px;height:56px;display:flex;align-items:center;gap:12px}
.wordmark{display:inline-flex;align-items:center;gap:8px;color:var(--fg);text-decoration:none;flex:1;min-width:0}
.wordmark svg{width:24px;height:24px;flex:none;color:var(--brand)}
.wordmark span{font-family:'Petrona',Georgia,serif;font-weight:600;font-size:20px;line-height:1}
/* Der Sprachumschalter ist eine Pille — die Form jeder Handlung der Marke. */
.lang-switch a{
  display:inline-flex;align-items:center;height:32px;padding:0 14px;border-radius:9999px;
  background:var(--surface-2);color:var(--fg);text-decoration:none;
  font-size:13px;line-height:20px;font-weight:500;
  transition:background 150ms cubic-bezier(.33,1,.68,1);
}
.lang-switch a:hover{background:var(--border)}

/* ── Kopf des Dokuments ──────────────────────────────────────────────── */
.doc-head{margin-bottom:20px}
h1{
  font-family:'Petrona',Georgia,serif;font-weight:600;
  font-size:30px;line-height:42px;letter-spacing:.3px;  /* Typography.h1 */
  color:var(--fg);margin-bottom:4px;
}
.meta{color:var(--muted);font-size:14px;line-height:22px;letter-spacing:.1px}

/* Die Dokument-Navigation: Chips, keine Linkwüste. */
.doc-nav{display:flex;flex-wrap:wrap;gap:8px;padding-bottom:24px;margin-bottom:8px}
.doc-nav a,.doc-nav [aria-current=page]{
  display:inline-flex;align-items:center;height:32px;padding:0 14px;border-radius:9999px;
  font-size:13px;line-height:20px;font-weight:500;text-decoration:none;
  transition:background 150ms cubic-bezier(.33,1,.68,1);
}
.doc-nav a{background:var(--surface-2);color:var(--muted-on-fill)}
.doc-nav a:hover{background:var(--border);color:var(--fg)}
.doc-nav [aria-current=page]{background:var(--brand-wash);color:var(--brand-text)}

/* ── Fließtext ──────────────────────────────────────────────────────── */
h2{
  font-family:'Petrona',Georgia,serif;font-weight:600;
  font-size:22px;line-height:32px;letter-spacing:.2px;  /* Typography.h2 */
  color:var(--fg);margin:32px 0 12px;scroll-margin-top:72px;
}
h3{
  font-size:18px;line-height:26px;font-weight:500;      /* Typography.h3 */
  color:var(--fg);margin:24px 0 8px;
}
p{margin-bottom:16px}
ul,ol{margin:0 0 16px 24px}
li{margin-bottom:8px}
a{color:var(--brand-text);text-underline-offset:3px}
a:hover{text-decoration:none}
strong{font-weight:600}

/* ── Der abgegrenzte Block: eine echte Karte ─────────────────────────── */
.card{
  background:var(--surface);border-radius:24px;box-shadow:var(--lift-1);
  padding:24px;margin:24px 0;
}
.card p{margin-bottom:4px}
.card p:last-child{margin-bottom:0}

/* Hinweis und Warnung tragen ihre Wash-Fläche, nicht nur eine Kante. */
.note,.warn{border-radius:12px;padding:16px 20px;margin:24px 0}
.note{background:var(--brand-wash);color:var(--fg)}
.warn{background:var(--warn-bg);color:var(--fg);border:1px solid var(--warn)}
.note strong,.warn strong{display:block;margin-bottom:4px}
.pending{color:var(--warn-text);font-weight:600;white-space:nowrap}

/* ── Tabellen ────────────────────────────────────────────────────────── */
.table-wrap{
  overflow-x:auto;margin:24px 0;-webkit-overflow-scrolling:touch;
  border:1px solid var(--border);border-radius:12px;
}
table{border-collapse:collapse;width:100%;font-size:14px;line-height:22px;min-width:520px}
th,td{padding:12px 16px;text-align:left;vertical-align:top;border-bottom:1px solid var(--border-light)}
tr:last-child td{border-bottom:0}
th{background:var(--surface-2);font-weight:600;color:var(--fg);border-bottom-color:var(--border)}

/* ── Fuß ────────────────────────────────────────────────────────────── */
.doc-foot{
  margin-top:48px;padding-top:24px;border-top:1px solid var(--border);
  color:var(--muted);font-size:13px;line-height:20px;
}

/* ── Der eine Desktop-Breakpoint ─────────────────────────────────────── */
@media (min-width:768px){
  main{padding:0 24px}
  .site-bar-inner{padding:0 24px;height:64px}
  .wordmark svg{width:28px;height:28px}
  .wordmark span{font-size:24px}
  h1{font-size:38px;line-height:46px;letter-spacing:.1px}  /* --text-display-sm */
  .doc-head{margin-bottom:24px}
}

/* Wer weniger Bewegung will, bekommt keine. */
@media (prefers-reduced-motion:reduce){
  *{animation-duration:.01ms!important;transition-duration:.01ms!important}
}
