/* Sitepackage design system. Token-driven (theme.css sets --color-*), with
   neutral fallbacks so it also renders well without a theme. site.css loads
   after theme.css and must NOT redefine --color-* (only layout tokens). */
:root {
  --site-maxw: 1180px;
  --site-pad: 24px;
  --radius: 2px;
  --radius-sm: 2px;
  --shadow: none;
  --shadow-sm: none;
  --gap: 28px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
img, svg { max-width: 100%; height: auto; }
body {
  font-family: var(--font-family-base, "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
  font-size: var(--font-size-base, 17px);
  color: var(--color-text, #14202b);
  background: var(--color-surface, #f7f9fb);
  line-height: var(--line-height-base, 1.65);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.skip-links { position: absolute; left: 16px; top: 0; z-index: 200; }
.skip-link { position: absolute; left: 0; top: 12px; padding: 10px 16px; border-radius: 2px; font-weight: 700; font-size: 14px; background: var(--color-primary, #0a1931); color: var(--color-primary-contrast, #fff); text-decoration: none; white-space: nowrap; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); width: 1px; height: 1px; }
.skip-link:focus, .skip-link:focus-visible { clip: auto; clip-path: none; width: auto; height: auto; overflow: visible; outline: 3px solid var(--color-accent, #f5b041); outline-offset: 2px; }
.skip-link + .skip-link:focus, .skip-link + .skip-link:focus-visible { top: 56px; }
a { color: var(--color-primary, #0a1931); text-decoration: none; }
a:hover { color: var(--color-primary, #0a1931); text-decoration: underline; }
h1, h2, h3, h4 { line-height: var(--line-height-headings, 1.12); color: var(--color-text, #14202b); letter-spacing: -0.01em; }

/* Layout shell */
.site { min-height: 100vh; display: flex; flex-direction: column; }
.container { max-width: var(--site-maxw); margin: 0 auto; padding: 0 var(--site-pad); width: 100%; }
.main { flex: 1 0 auto; padding: 0 0 72px; }

/* Header — Atlas: light bar, text links, one solid Kontakt */
.site-header { position: sticky; top: 0; z-index: 50; background: #F4F7FB; border-bottom: 1px solid rgba(10, 25, 49, 0.08); }
.header-row { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-primary, #0a1931); }
.brand:hover { text-decoration: none; }
.brand-badge { width: 28px; height: 28px; border-radius: 2px; background: var(--color-primary, #0a1931); position: relative; }
.brand-badge::after { content: ""; position: absolute; inset: 7px 5px; border-top: 2px solid #fff; border-bottom: 2px solid #fff; }
.brand-logo { height: 36px; width: auto; display: block; }
.nav { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.nav a { padding: 8px 12px; border-radius: 2px; font-weight: 500; font-size: 14px; color: #6f6f6f; }
.nav a:hover { color: var(--color-primary, #0a1931); text-decoration: none; }
.nav a[aria-current="page"] { background: transparent; color: var(--color-primary, #0a1931); font-weight: 700; }
.nav a[href$="/kontakt"] { background: var(--color-primary, #0a1931); color: #fff; font-weight: 700; padding: 8px 22px; margin-left: 8px; }
.nav a[href$="/kontakt"]:hover { filter: brightness(1.08); color: #fff; }
.lang-switch { margin-left: 8px; }
.lang-switch__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.lang-switch__link, .lang-switch__current { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; padding: 6px 8px; border-radius: 2px; font-weight: 600; font-size: 13px; letter-spacing: 0.02em; text-decoration: none; }
.lang-switch__link { color: var(--color-muted-foreground, #54657a); border: 1px solid var(--color-border, rgba(15,33,51,.12)); }
.lang-switch__link:hover { background: var(--color-muted, #eef2f6); color: var(--color-text, #14202b); text-decoration: none; }
.lang-switch__current { background: var(--color-primary, #123a5e); color: var(--color-primary-contrast, #fff); }

/* Content frames */
.content { padding-top: 0; }
.content .frame { margin: 0 0 var(--space-xl, 56px); }
.content h1 { font-size: var(--font-size-h1, 46px); margin: 0 0 16px; }
.page-title { font-size: var(--font-size-h1, 46px); line-height: 1.08; letter-spacing: -0.02em; color: var(--color-primary, #123a5e); margin: 4px 0 24px; }
.breadcrumb { padding: 12px 0 0; font-size: 13px; }
.breadcrumb__list { display: flex; flex-wrap: wrap; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }
.breadcrumb__item { display: inline-flex; align-items: center; color: var(--color-muted-foreground, #54657a); }
.breadcrumb__item + .breadcrumb__item::before { content: "/"; margin: 0 8px; opacity: .45; }
.breadcrumb__link { color: var(--color-muted-foreground, #54657a); text-decoration: none; }
.breadcrumb__link:hover { color: var(--color-text, #14202b); text-decoration: underline; }
.breadcrumb__current { color: var(--color-text, #14202b); font-weight: 600; }
.html-sitemap { margin: 0 0 32px; }
.html-sitemap__list { list-style: none; margin: 0; padding: 0; }
.html-sitemap__list .html-sitemap__list { margin: 6px 0 12px 20px; }
.html-sitemap__item { margin: 8px 0; }
.html-sitemap__link { color: var(--color-text, #14202b); text-decoration: none; font-weight: 600; }
.html-sitemap__link:hover { text-decoration: underline; }
.content h2 { font-size: var(--font-size-h2, 32px); margin: 0 0 14px; }
.content h3 { font-size: var(--font-size-h3, 23px); margin: 22px 0 10px; }
.content p { margin: 0 0 14px; max-width: 68ch; }
.content ul, .content ol { margin: 0 0 14px; padding-left: 22px; }
.content li { margin: 6px 0; }
.content strong { color: var(--color-text, #14202b); }
.content a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
/* Kicker line above headings (accent) */
.content .frame > header > h2::before, .content .frame > h2::before { content: ""; display: block; width: 36px; height: 3px; border-radius: 0; background: var(--color-accent, #f5b041); margin-bottom: 16px; }

/* JSON-LD is a CType=html CE. If it sorts first it stole the hero chrome
   and painted an empty navy bar (looked like a missing image). Collapse it. */
.content .frame:has(> script[type="application/ld+json"]):not(:has(h1)) { margin: 0 !important; padding: 0 !important; background: none !important; box-shadow: none !important; border-radius: 0 !important; overflow: visible !important; min-height: 0 !important; color: inherit !important; }
.content .frame:has(> script[type="application/ld+json"]):not(:has(h1))::before { content: none !important; display: none !important; }

/* Hero = full-bleed dusk band (Atlas), H1 frame not a rounded card */
.content .frame:has(h1) { position: relative; width: 100vw; max-width: 100vw; margin: 0 0 64px; margin-left: calc(50% - 50vw); padding: 96px max(24px, calc(50vw - 590px)) 80px; border-radius: 0; color: #fff; overflow: hidden; text-align: center; background: linear-gradient(180deg, rgba(10, 25, 49, 0.35), rgba(10, 25, 49, 0.82)), linear-gradient(135deg, #0a1931 0%, #152238 48%, #0a3b74 100%); }
.content .frame:has(h1)::before { content: ""; position: absolute; inset: auto 0 0; height: 42%; opacity: .22; background-image: repeating-linear-gradient(90deg, transparent 0 48px, rgba(255,255,255,.35) 48px 49px); }
.content .frame:has(h1) > * { position: relative; }
.content .frame:has(h1) h1, .content .frame:has(h1) h2 { color: #fff; font-size: clamp(40px, 7vw, var(--font-size-h1, 64px)); font-weight: 800; letter-spacing: -0.045em; margin: 0 auto 18px; max-width: 18ch; }
.content .frame:has(h1) h2::before, .content .frame:has(h1) header > h2::before { display: none; }
.content .frame:has(h1) p { color: rgba(255,255,255,.88); font-size: 18px; max-width: 52ch; margin-left: auto; margin-right: auto; }
.content .frame:has(h1) a { color: #fff; }
.content .frame:has(h1) .ra-lede, .content .frame:has(h1) .ra-gloss { margin-left: auto; margin-right: auto; }
.content .frame:has(h1) .ra-cta { justify-content: center; }
.content .frame:has(h1) .ra-hero-art { margin: 28px auto 0; padding: 0; background: transparent; border: 0; opacity: .55; }
.content .frame:has(h1) .ra-hero-art svg { display: block; width: min(100%, 640px); height: auto; margin: 0 auto; }

/* Utility building blocks (used by rich content bodytext: grids, cards, KPIs, CTAs) */
.ra-lead { font-size: 20px; color: var(--color-muted-foreground, #54657a); max-width: 66ch; }
.ra-lede { font-size: 22px; font-weight: 650; line-height: 1.35; letter-spacing: -0.015em; max-width: 62ch; margin: 0 0 10px; color: var(--color-text, #14202b); }
.ra-gloss { font-size: 16.5px; line-height: 1.55; color: var(--color-muted-foreground, #54657a); max-width: 68ch; margin: 0 0 12px; }
.content .frame:has(h1) .ra-lede { color: var(--color-primary-contrast, #fff); }
.content .frame:has(h1) .ra-gloss { color: color-mix(in srgb, var(--color-primary-contrast, #fff) 84%, transparent); }
.ra-partners { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 12px 0 8px; }
.ra-partners__card { border: 0; border-radius: 2px; padding: 24px 20px; background: var(--color-muted, #f4f7fb); }
.ra-partners__card--hold { background: var(--color-primary, #0a1931); color: #fff; }
.ra-partners__card--hold h3, .ra-partners__card--hold p, .ra-partners__card--hold .ra-partners__kicker { color: #fff; }
.ra-partners__kicker { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-muted-foreground, #54657a); margin-bottom: 6px; }
.ra-partners__card h3 { margin: 0 0 6px; font-size: 18px; }
.ra-partners__card p { margin: 0; font-size: 14.5px; color: var(--color-muted-foreground, #54657a); }
.ra-sectors { display: grid; gap: 12px; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 16px 0 8px; }
.ra-sectors__band { background: var(--color-muted, #f4f7fb); border-radius: 2px; padding: 22px 18px 20px; }
.ra-sectors__band::before { content: ""; display: block; width: 36px; height: 3px; background: var(--color-accent, #f5b041); margin-bottom: 14px; }
.ra-sectors__band h3 { margin: 0 0 6px; font-size: 18px; }
.ra-sectors__band p { margin: 0; font-size: 14.5px; color: var(--color-muted-foreground, #54657a); max-width: none; }
.ra-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 8px 0 4px; }
.ra-grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ra-card { background: var(--color-muted, #f4f7fb); border: 0; border-radius: 2px; padding: 28px 24px; }
.ra-card:hover { transform: none; }
.ra-card h3 { margin: 0 0 8px; font-size: 19px; }
.ra-card p { margin: 0; color: var(--color-muted-foreground, #54657a); font-size: 15px; }
.ra-card a { display: inline-block; margin-top: 12px; }
.ra-kpi { text-align: left; }
.ra-kpi__value { display: block; font-size: 40px; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; color: var(--color-primary, #123a5e); }
.ra-kpi__label { display: block; margin-top: 6px; font-size: 14px; color: var(--color-muted-foreground, #54657a); }
.ra-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.ra-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; border-radius: 2px; font-weight: 700; font-size: 14px; background: var(--color-primary, #0a1931); color: #fff; text-decoration: none; border: 2px solid var(--color-primary, #0a1931); }
.ra-btn:hover { filter: brightness(1.08); text-decoration: none; }
.ra-btn--ghost { background: transparent; color: var(--color-primary, #0a1931); border-color: var(--color-primary, #0a1931); }
.ra-btn--ghost:hover { background: color-mix(in srgb, var(--color-primary, #0a1931) 6%, transparent); }
.content .frame:has(h1) .ra-btn { background: #fff; color: #0a1931; border-color: #fff; }
.content .frame:has(h1) .ra-btn--ghost { background: transparent; color: #fff; border-color: #fff; }
.ra-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.ra-tags li, .ra-pill { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 2px; font-size: 13px; font-weight: 600; background: var(--color-muted, #f4f7fb); color: var(--color-muted-foreground, #54657a); }
.ra-quote { border-left: 3px solid var(--color-accent, #f5b041); padding: 8px 0 8px 20px; margin: 8px 0; font-size: 20px; font-style: italic; color: var(--color-text, #0a1931); }
.ra-quote cite { display: block; margin-top: 8px; font-size: 14px; font-style: normal; color: var(--color-muted-foreground, #54657a); }
.ra-invest { background: var(--color-muted, #f4f7fb); border: 0; border-radius: 2px; padding: 28px 24px; margin: 8px 0 28px; }
.ra-invest h2 { margin-top: 0; }
.ra-invest ul { margin-bottom: 8px; }
.ra-figure { margin: 12px 0 22px; padding: 16px; background: var(--color-card, #fff); border: 1px solid var(--color-border, rgba(15,33,51,.12)); border-radius: var(--radius); }
.ra-figure svg { display: block; width: 100%; height: auto; }
.ra-figure figcaption { margin-top: 10px; font-size: 14px; color: var(--color-muted-foreground, #54657a); }
.ra-faq { margin: 8px 0 22px; }
.ra-faq details { border-bottom: 1px solid var(--color-border, rgba(15,33,51,.12)); padding: 10px 0; }
.ra-faq summary { cursor: pointer; font-weight: 700; color: var(--color-primary, #123a5e); }
.ra-faq details p { margin: 8px 0 4px; max-width: 68ch; }
.ra-quellen { margin: 28px 0 8px; padding: 18px 20px; background: var(--color-muted, #eef2f6); border-radius: var(--radius); }
.ra-quellen h2, .ra-quellen summary { font-size: 16px; margin: 0; font-weight: 700; cursor: pointer; color: var(--color-primary, #123a5e); }
.ra-quellen__hint { font-size: 14px; color: var(--color-muted-foreground, #54657a); margin: 10px 0; }
.ra-quellen ul { margin: 0; padding-left: 18px; }
.ra-table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 15px; }
.ra-table th, .ra-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--color-border, rgba(15,33,51,.12)); vertical-align: top; }
.ra-table th { font-size: 13px; letter-spacing: .02em; text-transform: uppercase; color: var(--color-muted-foreground, #54657a); }
.ra-table td strong { display: block; }

/* Footer */
.site-footer { margin-top: auto; background: var(--color-primary, #123a5e); color: color-mix(in srgb, var(--color-primary-contrast, #fff) 80%, transparent); }
.footer-row { display: flex; align-items: center; justify-content: space-between; padding: 28px 0; gap: 16px; flex-wrap: wrap; }
.site-footer small { color: color-mix(in srgb, var(--color-primary-contrast, #fff) 70%, transparent); }
.footer-links { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-links a, .site-footer a { color: var(--color-primary-contrast, #fff); opacity: .9; padding: 4px 8px; border-radius: 8px; }
.footer-links a:hover, .site-footer a:hover { opacity: 1; text-decoration: underline; }
.footer-cols { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); padding: 40px 0 8px; }
.footer-col__title { font-size: 15px; color: var(--color-primary-contrast, #fff); margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }

@media (max-width: 980px) {
  .ra-sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .content .frame:has(h1) { padding: 64px 22px 56px; }
  .content h1, .content .frame:has(h1) h1, .content .frame:has(h1) h2 { font-size: clamp(32px, 10vw, 48px); }
  .header-row { flex-wrap: wrap; }
  .nav a[href$="/kontakt"] { margin-left: 0; }
  .ra-sectors { grid-template-columns: 1fr; }
}

/* chrome: Navigation (Off-Canvas/Dropdown + sticky), generiert aus draft.chrome */
.visually-hidden { position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.site-header[data-sticky="1"] { position: sticky; top: 0; z-index: 50; }
.nav-toggle { display:none; align-items:center; gap:8px; border:1px solid currentColor; background:transparent; border-radius:10px; padding:8px 12px; cursor:pointer; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { display:block; width:20px; height:2px; background:currentColor; position:relative; }
.nav-toggle__bar::before { content:""; position:absolute; top:-6px; }
.nav-toggle__bar::after { content:""; position:absolute; top:6px; }
@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .site-header .nav { display: none; }
  .site-header .nav[data-open="true"] { display: grid; gap: 12px; position:fixed; inset:0; padding:64px 24px; background:var(--surface,#fff); z-index:60; overflow:auto; }
}

