:root {
  --navy:#071a36;
  --navy-2:#0d2448;
  --gold:#dfbd76;
  --gold-soft:#f4e5bd;
  --paper:#ffffff;
  --bg:#f3f6fa;
  --text:#10233d;
  --muted:#5e728b;
  --line:#dce4ed;
  --shadow:0 18px 44px rgba(7,26,54,.12);
  --header-height:96px;
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; color:var(--text); background:var(--bg); font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; }
body.menu-open { overflow:hidden; }
a { color:inherit; }
button { font:inherit; }
img { display:block; max-width:100%; }
[hidden] { display:none !important; }
.siteShell { min-height:100vh; overflow-x:hidden; }
.siteHeader { position:fixed; inset:0 0 auto; z-index:100; min-height:var(--header-height); background:rgba(255,255,255,.98); border-bottom:1px solid var(--line); box-shadow:0 10px 24px rgba(16,35,61,.06); backdrop-filter:blur(10px); }
.headerInner { width:min(100% - 40px,1200px); min-height:var(--header-height); margin-inline:auto; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:28px; }
.brand { display:inline-flex; align-items:center; text-decoration:none; }
.brand img { width:auto; height:78px; object-fit:contain; }
.desktopNav { display:flex; justify-content:center; align-items:center; gap:28px; }
.desktopNav a { color:var(--navy); font-size:14px; font-weight:750; text-decoration:none; }
.desktopNav a:hover,.desktopNav a:focus-visible { color:#8c681f; }
.headerAccount { padding:11px 17px; border-radius:12px; background:var(--navy); color:#fff; font-size:14px; font-weight:800; text-decoration:none; }
.menuButton { display:none; width:50px; height:50px; place-items:center; border:1px solid var(--line); border-radius:16px; background:#fff; color:var(--navy); cursor:pointer; }
.menuButton span,.menuButton span::before,.menuButton span::after { display:block; width:22px; height:2px; border-radius:2px; background:currentColor; content:""; transition:transform .2s ease; }
.menuButton span { position:relative; }
.menuButton span::before { position:absolute; top:-7px; }
.menuButton span::after { position:absolute; top:7px; }
.menuButton[aria-expanded="true"] span { background:transparent; }
.menuButton[aria-expanded="true"] span::before { top:0; transform:rotate(45deg); }
.menuButton[aria-expanded="true"] span::after { top:0; transform:rotate(-45deg); }
.mobileMenu { display:none; position:absolute; top:100%; left:0; right:0; padding:14px 20px 22px; background:#fff; border-bottom:1px solid var(--line); box-shadow:0 18px 28px rgba(7,26,54,.12); }
.mobileMenu[aria-hidden="false"] { display:grid; }
.mobileMenu a { padding:14px 4px; border-bottom:1px solid var(--line); color:var(--navy); font-weight:800; text-decoration:none; }
.mobileMenu a:last-child { border-bottom:0; }
main { padding-top:var(--header-height); }
.legalHero { color:#fff; background:radial-gradient(circle at 85% 20%,rgba(223,189,118,.20),transparent 32%),linear-gradient(135deg,var(--navy),var(--navy-2)); border-bottom:4px solid var(--gold); }
.legalHeroInner { width:min(100% - 40px,1040px); min-height:272px; margin-inline:auto; padding:48px 0 42px; display:flex; flex-direction:column; justify-content:flex-end; }
.backButton { align-self:flex-start; display:inline-flex; align-items:center; gap:8px; padding:0; border:0; background:transparent; color:rgba(255,255,255,.82); cursor:pointer; font-weight:700; }
.backButton:hover,.backButton:focus-visible { color:#fff; }
.eyebrow { margin:38px 0 10px; color:var(--gold); font-size:12px; font-weight:900; letter-spacing:.16em; text-transform:uppercase; }
.legalHero h1 { max-width:800px; margin:0; font-size:clamp(34px,5vw,56px); line-height:1.05; letter-spacing:-.035em; }
.documentMeta { min-height:24px; margin:17px 0 0; color:rgba(255,255,255,.75); font-size:14px; line-height:1.65; }
.documentMeta span + span::before { content:"·"; margin:0 10px; color:var(--gold); }
/* Die PDF-Ausgabe ist die primaere Darstellung; diese Seite bleibt die
   Rueckfallebene. Der Link wird generisch aus `data-legal-key` gebildet. */
.documentPdf { min-height:22px; margin:14px 0 0; }
.documentPdfLink { display:inline-flex; align-items:center; gap:8px; padding:9px 16px; border:1px solid var(--gold); border-radius:999px; color:#fff; font-size:13px; font-weight:800; text-decoration:none; }
.documentPdfLink:hover,.documentPdfLink:focus-visible { background:var(--gold); color:var(--navy); }
.pageWrap { width:min(100% - 40px,1040px); margin-inline:auto; padding:52px 0 78px; }
.legalLayout { display:grid; grid-template-columns:230px minmax(0,1fr); align-items:start; gap:52px; }
.toc { position:sticky; top:calc(var(--header-height) + 28px); padding:20px; border:1px solid var(--line); border-radius:16px; background:rgba(255,255,255,.88); box-shadow:0 10px 24px rgba(7,26,54,.06); }
.toc h2 { margin:0 0 12px; color:var(--navy); font-size:12px; letter-spacing:.12em; text-transform:uppercase; }
.toc nav { display:grid; gap:3px; }
.toc a { padding:7px 0; color:var(--muted); font-size:13px; line-height:1.35; text-decoration:none; }
.toc a:hover,.toc a:focus-visible { color:var(--navy); }
.documentCard,.companyCard { min-width:0; padding:clamp(26px,5vw,54px); border:1px solid var(--line); border-radius:22px; background:var(--paper); box-shadow:var(--shadow); }
.loadingState,.unavailableState { padding:46px 24px; border:1px solid var(--line); border-radius:18px; background:#fff; text-align:center; }
.loadingState { color:var(--muted); }
.loadingMark { width:36px; height:36px; margin:0 auto 16px; border:3px solid var(--gold-soft); border-top-color:#9a7226; border-radius:50%; animation:spin .8s linear infinite; }
.unavailableState h2 { margin:0 0 10px; color:var(--navy); font-size:24px; }
.unavailableState p { margin:0; color:var(--muted); line-height:1.6; }
.documentBody { color:#273b54; font-size:16px; line-height:1.78; }
.documentBody h1:first-child { display:none; }
.documentBody h2,.documentBody h3 { color:var(--navy); scroll-margin-top:calc(var(--header-height) + 28px); }
.documentBody h2 { margin:2.55em 0 .72em; padding-top:.35em; border-top:1px solid var(--line); font-size:clamp(22px,3vw,28px); line-height:1.25; letter-spacing:-.02em; }
.documentBody h2:first-of-type { margin-top:1.6em; }
.documentBody h3 { margin:2em 0 .65em; font-size:19px; }
.documentBody p { margin:0 0 1em; }
.documentBody ul,.documentBody ol { margin:0 0 1.25em; padding-left:1.45em; }
.documentBody li { margin:.42em 0; padding-left:.25em; }
.documentBody a { color:#76571a; font-weight:750; text-underline-offset:3px; }
.companyCard { max-width:760px; margin-inline:auto; }
.companyIntro { margin:0 0 28px; color:var(--muted); line-height:1.65; }
.companyDetails { margin:0; display:grid; gap:0; }
.companyRow { display:grid; grid-template-columns:160px minmax(0,1fr); gap:24px; padding:20px 0; border-top:1px solid var(--line); }
.companyRow:first-child { border-top:0; padding-top:0; }
.companyRow dt { color:var(--muted); font-size:13px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.companyRow dd { margin:0; color:var(--navy); font-size:17px; font-weight:750; line-height:1.55; overflow-wrap:anywhere; }
.companyRow a { color:#76571a; text-underline-offset:3px; }
.siteFooter { padding:34px 20px; color:rgba(255,255,255,.72); background:var(--navy); border-top:1px solid rgba(255,255,255,.1); font-size:13px; }
.footerInner { width:min(100%,1200px); margin-inline:auto; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:24px 36px; }
.footerLogo { width:90px; filter:brightness(0) invert(1); opacity:.72; }
.footerContact { line-height:1.7; }
.footerContact a,.footerLegal a { color:inherit; text-decoration:none; }
.footerContact a:hover,.footerLegal a:hover,.footerContact a:focus-visible,.footerLegal a:focus-visible { color:#fff; }
.footerLegal { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px 18px; }
@keyframes spin { to { transform:rotate(360deg); } }
@media (max-width:820px) {
  :root { --header-height:88px; }
  .headerInner { width:100%; padding:8px 18px; grid-template-columns:1fr auto; }
  .brand img { height:70px; max-width:250px; }
  .desktopNav,.headerAccount { display:none; }
  .menuButton { display:grid; }
  .legalHeroInner { min-height:246px; padding-top:36px; }
  .legalLayout { grid-template-columns:1fr; gap:24px; }
  .toc { position:static; padding:17px 20px; }
  .toc nav { grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:18px; }
  .footerInner { grid-template-columns:auto 1fr; }
  .footerLegal { grid-column:1 / -1; justify-content:flex-start; }
}
@media (max-width:520px) {
  .headerInner { padding-inline:14px; }
  .brand img { height:66px; max-width:225px; }
  .legalHeroInner,.pageWrap { width:min(100% - 32px,1040px); }
  .legalHeroInner { min-height:230px; padding-bottom:32px; }
  .eyebrow { margin-top:30px; }
  .documentMeta span { display:block; }
  .documentMeta span + span::before { display:none; }
  .pageWrap { padding:32px 0 52px; }
  .toc { display:none; }
  .documentCard,.companyCard { padding:26px 20px; border-radius:18px; }
  .documentBody { font-size:15.5px; line-height:1.72; }
  .documentBody h2 { font-size:22px; }
  .companyRow { grid-template-columns:1fr; gap:7px; padding:17px 0; }
  .footerInner { grid-template-columns:1fr; text-align:center; }
  .footerLogo { margin-inline:auto; }
  .footerLegal { grid-column:auto; justify-content:center; }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { animation:none !important; transition:none !important; } }
