/* ==========================================================================
   Lieferando Impact – Styles
   Struktur: 1 Tokens · 2 Basis · 3 Header · 4 Hero · 5 Sektionen · 6 Karte
             7 Detail · 8 Charts · 9 Newsroom · 10 Footer · 11 Editor
   Schrift: Arial/Helvetica (keine externen Fonts, DSGVO-freundlich)
   ========================================================================== */

/* 1 Tokens ---------------------------------------------------------------- */
:root {
  --brand: #FF8000;            /* Lieferando Orange: Buttons, Akzente */
  --flyer-orange: #FF8000;     /* Markenorange (aus dem offiziellen Logo gemessen): Flächen */
  --grad-from: #FF8000;        /* Header-Verlauf Start – bitte mit lieferando.de abgleichen */
  --grad-to: #FF9A1F;          /* Header-Verlauf Ende – bitte mit lieferando.de abgleichen */
  --hero-grad: linear-gradient(90deg, #A3441D 0%, #C35A24 50%, #E39138 100%);
  --brand-grad: linear-gradient(135deg, var(--grad-from) 0%, var(--grad-to) 100%);
  --num-orange: #222222;       /* Große Zahlen auf hellem Grund (Kontrast ≥ 3:1) */
  --text-orange: #222222;      /* Kleine orange Texte auf Weiß (Kontrast ≥ 4,5:1) */
  --charcoal: #222222;
  --muted: #5B5B5B;
  --gray-bg: #F5F6F7;
  --cream: #F8EEDD;
  --yellow-card: #FADC93;
  --teal-card: #C9E2E1;
  --purple: #4C3B5C;
  --pink: #F58FB0;
  --yellow: #F2B632;
  --white: #FFFFFF;

  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 6px 24px rgba(34, 34, 34, 0.10);
  --shadow-sm: 0 2px 10px rgba(34, 34, 34, 0.10);
  --container: 1180px;
  --gap: clamp(1rem, 2.4vw, 1.75rem);
  --section-y: clamp(2.75rem, 6vw, 5rem);
  --header-h: 88px;
}

/* 2 Basis ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.55;
  font-size: 1rem;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .6em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--charcoal); text-decoration-color: var(--white); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.container { width: min(100% - 2 * var(--gap), var(--container)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

:focus-visible {
  outline: 3px solid var(--charcoal);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--white);
  border-radius: 6px;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 1000;
  background: var(--charcoal); color: var(--white); padding: .75rem 1rem; border-radius: 8px; text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* Gemeinsame Bausteine */
.lead-line { color: var(--charcoal); text-decoration: none; }
.on-dark .lead-line { color: var(--white); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * .5); }
.card { border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2.25rem); }
.section-title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; }
.section-title .lead-line { display: inline; margin-right: .25em; }
.kicker { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-orange); margin-bottom: .5rem; }
.source-line { font-size: .8rem; color: var(--muted); margin-top: 1rem; }
.on-dark .source-line { color: rgba(255,255,255,.85); }

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font: inherit; font-weight: 800; font-size: 1rem;
  padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  min-height: 48px;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn--primary { background: var(--charcoal); color: var(--white); }
.btn--secondary { background: var(--white); color: var(--charcoal); border-color: var(--charcoal); }
.btn--brand { background: var(--charcoal); color: var(--white); }
.btn--ghost { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn[aria-disabled="true"] { background: var(--gray-bg); color: var(--muted); cursor: not-allowed; box-shadow: none; transform: none; border-style: dashed; border-color: rgba(34,34,34,.55); }
.btn .btn-hint { font-weight: 400; font-size: .8rem; opacity: .85; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }

/* 3 Header ---------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); box-shadow: 0 1px 0 rgba(34,34,34,.08), 0 6px 18px rgba(34,34,34,.05); }
.header-inner { min-height: var(--header-h); display: flex; align-items: center; gap: 1.5rem; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 54px; width: auto; display: block; }
.logo-ph {
  display: inline-block; font-size: .72rem; font-weight: 700; line-height: 1.2; max-width: 14rem;
  border: 2px dashed var(--charcoal); border-radius: 8px; padding: .4rem .6rem; color: var(--charcoal); background: repeating-linear-gradient(45deg, #fff, #fff 6px, #f1f1f1 6px, #f1f1f1 12px);
}
.logo-ph--dark { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.nav-toggle { display: none; background: none; border: 2px solid var(--charcoal); border-radius: 10px; width: 48px; height: 48px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 24px; height: 24px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; align-items: center; flex-wrap: wrap; }
.main-nav a, .main-nav .nav-off {
  display: inline-flex; align-items: center; gap: .45rem; padding: .6rem .85rem; border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--charcoal); min-height: 44px;
}
.main-nav a:hover { background: var(--gray-bg); }
.main-nav a[aria-current="true"] { background: var(--charcoal); color: var(--white); }
.main-nav .nav-off { color: #6b6b6b; cursor: default; }
.badge { font-size: .68rem; font-weight: 800; letter-spacing: .02em; padding: .15rem .5rem; border-radius: 999px; background: var(--cream); color: var(--charcoal); white-space: nowrap; }
.nav-status { font: inherit; font-size: .8rem; padding: .2rem; border-radius: 6px; border: 1px solid #999; }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); box-shadow: 0 14px 24px rgba(34,34,34,.12); padding: .5rem var(--gap) 1rem; display: none; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a, .main-nav .nav-off { width: 100%; }
}

/* 4 Hero ------------------------------------------------------------------ */
/* Layout: heller Hero mit dunkler Schrift; Orange-Verlauf nur als Fläche ohne Text (Kontrast + CD: nie schwarze Schrift auf Orange) */
.hero { --band: clamp(8rem, 17vw, 15rem); min-height: min(60vw, 960px); position: relative; background: var(--hero-grad); color: var(--white); padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: var(--band); overflow: hidden; }
@media (max-width: 760px) { .hero { background: linear-gradient(180deg, #A3441D 0%, #C35A24 50%, #E39138 100%); } }
.hero .btn { background: transparent; color: var(--white); border: 2px solid var(--white); }
.hero .btn[aria-disabled="true"] { border-style: dashed; opacity: 1; }
.hero .btn .btn-hint { color: var(--white); }
.hero .btn svg { color: var(--white); }
.hero .container { position: relative; z-index: 1; }
.hero .eyebrow { display: inline-block; font-weight: 800; font-size: .85rem; margin-bottom: 1rem; background: rgba(255,255,255,.18); color: var(--white); border: 1px solid rgba(255,255,255,.6); border-radius: 999px; padding: .3rem .9rem; }
.hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.5rem); font-weight: 900; max-width: 24ch; margin-bottom: .35em; letter-spacing: -0.02em; }
.hero h1 span { display: block; }
.hero h1 span:first-child { text-decoration: none; }
.hero .subline { font-size: clamp(1rem, 1.5vw, 1.15rem); font-weight: 700; max-width: 62ch; margin-bottom: 1.1rem; }
.hero-downloads { display: flex; flex-wrap: wrap; gap: .85rem; align-items: stretch; }
.hero-downloads-title { flex-basis: 100%; font-weight: 800; font-size: .9rem; margin: 0 0 -.25rem; }
.hero .commissioned { font-size: .85rem; max-width: 60ch; margin: 1.1rem 0 0; color: var(--white); }

/* Karte im Fokus: überlappt den Hero als große weiße Karte */
.section--map { position: relative; z-index: 3; margin-top: calc(-.62 * clamp(8rem, 17vw, 15rem)); }
.section--map .map-section { background: var(--white); box-shadow: 0 18px 50px rgba(34,34,34,.18); border-radius: 32px; padding: clamp(1.25rem, 3.5vw, 3rem); }

.kpis { position: relative; z-index: 2; margin-top: var(--gap); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.kpi { border-radius: var(--radius); padding: 1.5rem 1.5rem 1.4rem; box-shadow: var(--shadow); }
.kpi--cream { background: var(--cream); }
.kpi--yellow { background: var(--yellow-card); }
.kpi--teal { background: var(--teal-card); }
.kpi .icon { width: 44px; height: 44px; color: var(--num-orange); margin-bottom: .5rem; }
.kpi .num { display: block; font-size: clamp(2.2rem, 4.4vw, 3.2rem); font-weight: 900; color: var(--num-orange); line-height: 1.05; font-variant-numeric: tabular-nums; }
.kpi .label { display: block; font-weight: 800; margin-top: .35rem; }
.kpi .sub { display: block; font-size: .85rem; color: #3a3a3a; }
@media (max-width: 800px) { .kpis { grid-template-columns: 1fr; } }

/* 5 Sektionen --------------------------------------------------------------- */
.multiplier { background: var(--cream); display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--gap); align-items: center; }
.multiplier h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
.multiplier h2 .lead-line { display: inline; }
.people { display: flex; flex-wrap: wrap; gap: .35rem .5rem; align-items: flex-end; margin: 1rem 0 .5rem; }
.people svg { width: clamp(28px, 4.2vw, 40px); height: auto; }
.people .p-one { color: var(--flyer-orange); }
.people .p-ten { color: var(--purple); }
.people-caption { font-weight: 800; font-size: .9rem; }
.multiplier-photo { min-height: 160px; }
@media (max-width: 800px) { .multiplier { grid-template-columns: 1fr; } }

.network { background: var(--purple); color: var(--white); }
.network .section-title { color: var(--white); }
.network .intro { max-width: 80ch; font-size: 1.02rem; }
.bar-title { color: var(--yellow); font-weight: 800; margin: 1.5rem 0 .5rem; }
.stackbar { display: flex; width: 100%; height: 3.25rem; border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.15); }
.stackbar > span { display: block; height: 100%; }
.stackbar .lv-upstream { background: var(--pink); }
.stackbar .lv-direct { background: var(--flyer-orange); }
.stackbar .lv-downstream { background: var(--yellow-card); }
.stack-legend { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; padding: 0; margin: .85rem 0 0; }
.stack-legend li { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; }
.stack-legend .dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.stack-legend .dot.lv-upstream { background: var(--pink); }
.stack-legend .dot.lv-direct { background: var(--flyer-orange); }
.stack-legend .dot.lv-downstream { background: var(--yellow-card); }
.stack-legend strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.level-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 1.5rem; }
.level-card { background: var(--white); color: var(--charcoal); border-radius: 20px; padding: 1.4rem 1.5rem; }
.level-card .tag { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; display: flex; align-items: center; gap: .5rem; }
.level-card .tag .dot { width: 12px; height: 12px; border-radius: 50%; }
.level-card .big { display: block; font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: var(--num-orange); line-height: 1.1; margin: .35rem 0; font-variant-numeric: tabular-nums; }
.level-card .big small { font-size: 1rem; color: var(--charcoal); font-weight: 800; }
.upstream-note { margin-top: 1rem; font-size: .92rem; color: rgba(255,255,255,.92); max-width: 90ch; }
.total-pill { margin-top: 1.5rem; background: var(--flyer-orange); color: var(--white); border-radius: 999px; padding: .9rem 1.5rem; text-align: center; font-weight: 800; font-size: 1.05rem; }
.reading-guide { margin-top: 1.5rem; background: rgba(255,255,255,.08); border-radius: 16px; padding: 1rem 1.25rem; font-size: .92rem; }
.reading-guide h3 { font-size: 1rem; color: var(--yellow); margin-bottom: .35rem; }
@media (max-width: 800px) { .level-cards { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.branches { background: var(--cream); }
.branches .donut-wrap { display: flex; justify-content: center; margin: 1rem 0; }
.legend-list { list-style: none; padding: 0; margin: 0; }
.legend-list li { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid rgba(34,34,34,.12); font-size: .95rem; }
.legend-list li:last-child { border-bottom: 0; }
.legend-list .dot { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.legend-list .name { flex: 1; }
.legend-list .val { font-weight: 800; font-variant-numeric: tabular-nums; }
.highlight-box { background: var(--purple); color: var(--white); border-radius: 18px; padding: 1.1rem 1.25rem; margin-top: 1.25rem; font-weight: 800; }
.highlight-box .people svg { width: 22px; }
.highlight-box .people { margin: 0 0 .5rem; }

.taxes { background: var(--teal-card); }
.taxes-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(1rem, 4vw, 3rem); align-items: center; }
.taxes-grid .charts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: end; }
.tax-bars { display: flex; gap: 1.25rem; align-items: flex-end; justify-content: center; min-height: 200px; }
.tax-bars figure { margin: 0; text-align: center; }
.tax-bars .bar-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 200px; }
.tax-bars .bar { width: clamp(52px, 8vw, 78px); background: var(--flyer-orange); border-radius: 8px 8px 0 0; }
.tax-bars .bar-val { font-weight: 900; font-size: 1rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tax-bars figcaption { font-weight: 800; font-size: .9rem; margin-top: .35rem; }
.vat-badge { text-align: center; }
.vat-badge strong { display: block; font-size: clamp(2.2rem, 4.5vw, 3.2rem); color: var(--num-orange); font-weight: 900; line-height: 1; }
.vat-badge span { font-weight: 800; font-size: .9rem; }
.comparison-note { margin-top: 1rem; font-weight: 700; }
.rounding-note { font-size: .78rem; color: #4a4a4a; }
@media (max-width: 900px) { .taxes-grid { grid-template-columns: 1fr; justify-items: center; } .taxes-grid .charts { grid-template-columns: 1fr; } }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

.positions { background: var(--flyer-orange); color: var(--white); }
.positions .section-title { color: var(--white); }
.positions ol { list-style: none; padding: 0; margin: 1.5rem 0 0; counter-reset: pos; display: grid; gap: 1rem; }
.positions li { counter-increment: pos; display: grid; grid-template-columns: 2.25rem 1fr; gap: .9rem; align-items: start; font-size: 1.05rem; }
.positions li::before { content: counter(pos); display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--purple); font-weight: 900; }
.positions .intro { font-weight: 800; max-width: 70ch; }
.positions .not-public { display: inline-block; background: var(--charcoal); color: #fff; padding: .25rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 800; margin-bottom: .75rem; }

.sources { background: var(--gray-bg); }
.sources h2 { font-size: 1.3rem; }

/* 6 Karte ----------------------------------------------------------------- */
.map-section { background: var(--teal-card); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2.5rem); }
.map-layout { display: grid; grid-template-columns: minmax(300px, 1.9fr) minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 3rem); align-items: start; margin-top: 1.5rem; }
.map-wrap { position: relative; max-width: 880px; width: 100%; margin-inline: auto; }
.map-svg { display: block; width: 100%; height: auto; overflow: visible; }
.state { cursor: pointer; stroke: #fff; stroke-width: 2.2; stroke-linejoin: round; transition: opacity .15s ease; }
.state:focus { outline: none; }
.state--small { stroke: transparent; stroke-width: 18; paint-order: stroke; }
.map-svg .hl-outer { fill: none; stroke: var(--charcoal); stroke-width: 9; stroke-linejoin: round; pointer-events: none; opacity: .9; }
.map-svg .hl-inner { fill: none; stroke: var(--brand); stroke-width: 4.5; stroke-linejoin: round; pointer-events: none; animation: hlIn .18s ease-out; }
@keyframes hlIn { from { opacity: 0; } to { opacity: 1; } }
.map-label { font: 800 26px Arial, Helvetica, sans-serif; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.callout-line { stroke: var(--charcoal); stroke-width: 2; pointer-events: none; }
.callout-text { font: 800 26px Arial, Helvetica, sans-serif; text-anchor: middle; dominant-baseline: central; fill: var(--charcoal); cursor: pointer; paint-order: stroke; stroke: var(--white); stroke-width: 6px; stroke-linejoin: round; }

.tooltip {
  position: absolute; z-index: 20; pointer-events: none; background: var(--charcoal); color: var(--white);
  border-radius: 14px; padding: .8rem 1rem; min-width: 210px; max-width: 280px; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(4px); transition: opacity .12s ease, transform .12s ease; font-size: .9rem;
}
.tooltip.is-visible { opacity: 1; transform: none; }
.tooltip strong { display: block; font-size: 1.05rem; margin-bottom: .35rem; }
.tooltip dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: .15rem .9rem; }
.tooltip dt { opacity: .85; }
.tooltip dd { margin: 0; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.tooltip .hint { margin-top: .5rem; color: var(--yellow); font-weight: 700; font-size: .8rem; }

.legend { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1.25rem; padding: 0; margin: 0 0 1rem; }
.legend li { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: .9rem; }
.legend .sw { width: 18px; height: 18px; border-radius: 5px; flex: none; border: 1px solid rgba(34,34,34,.25); }
.map-text p { margin-bottom: .8rem; }
.facts { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.5rem; margin-top: 1.25rem; }
.facts h3 { font-size: .95rem; color: var(--purple); border-bottom: 2px solid var(--purple); padding-bottom: .35rem; margin-bottom: .25rem; }
.facts table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.facts th, .facts td { text-align: left; padding: .45rem .25rem; border-bottom: 1px solid rgba(34,34,34,.15); font-weight: 400; }
.facts th { font-weight: 800; }
.facts td strong { color: var(--num-orange); font-size: 1.05rem; }
.facts .footnote { font-size: .78rem; text-align: right; margin-top: .35rem; }
.state-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.25rem 0 0; }
.state-list button {
  font: inherit; font-weight: 700; font-size: .85rem; padding: .45rem .8rem; border-radius: 999px; border: 2px solid rgba(34,34,34,.7); background: rgba(255,255,255,.7); cursor: pointer; min-height: 40px; color: var(--charcoal);
  display: inline-flex; gap: .4rem; align-items: center;
}
.state-list button:hover, .state-list button[aria-current="true"] { background: var(--charcoal); color: var(--white); }
.state-list .pct { font-variant-numeric: tabular-nums; opacity: .85; }
@media (max-width: 860px) { .map-layout { grid-template-columns: 1fr; } .map-wrap { max-width: 560px; margin-inline: auto; width: 100%; } .facts { grid-template-columns: 1fr; } }

/* 7 Detail-Panel ------------------------------------------------------------ */
.detail { margin-top: var(--gap); background: var(--cream); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2.5rem); scroll-margin-top: calc(var(--header-h) + 12px); }
.detail[hidden] { display: none; }
.detail-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.detail h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: .25rem; }
.detail h2:focus { outline: none; }
.detail-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.detail-actions button { font: inherit; font-weight: 800; padding: .55rem 1rem; border-radius: 999px; border: 2px solid var(--charcoal); background: transparent; cursor: pointer; min-height: 44px; }
.detail-actions button:hover { background: var(--charcoal); color: var(--white); }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--gap); margin: 1.25rem 0; }
.metric { background: var(--white); border-radius: 18px; padding: 1.2rem 1.3rem; box-shadow: var(--shadow-sm); }
.metric .m-num { display: block; font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: var(--num-orange); line-height: 1.05; font-variant-numeric: tabular-nums; }
.metric .m-label { display: block; font-weight: 700; font-size: .9rem; margin-top: .3rem; }
.progress { height: 12px; background: #eadfca; border-radius: 999px; overflow: hidden; margin-top: .75rem; }
.progress > span { display: block; height: 100%; background: var(--flyer-orange); border-radius: 999px; transition: width .5s ease; }
.rank-pill { display: inline-block; background: var(--charcoal); color: var(--white); border-radius: 999px; padding: .2rem .7rem; font-weight: 800; font-size: .8rem; margin-left: .5rem; vertical-align: middle; }
.detail-block { background: var(--white); border-radius: 18px; padding: 1.2rem 1.3rem; margin-top: var(--gap); }
.detail-block h3 { font-size: 1.1rem; margin-bottom: .75rem; }
.hbars { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.hbars li { display: grid; grid-template-columns: 11.5rem 1fr 3.8rem; gap: .6rem; align-items: center; font-size: .88rem; }
.hbars .track { height: 14px; background: #efefef; border-radius: 999px; overflow: hidden; }
.hbars .fill { display: block; height: 100%; background: #c9c0cf; border-radius: 999px; }
.hbars li.is-current .fill { background: var(--flyer-orange); }
.hbars li.is-current { font-weight: 800; }
.hbars .v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 800; }
@media (max-width: 560px) { .hbars li { grid-template-columns: 7.5rem 1fr 3.4rem; font-size: .8rem; } }

/* 8 Charts ------------------------------------------------------------------ */
.donut { display: block; }
.donut text { font-family: Arial, Helvetica, sans-serif; }
.donut .center-big { font-weight: 900; font-size: 34px; fill: var(--num-orange); }
.donut .center-small { font-weight: 800; font-size: 14px; fill: var(--charcoal); }

/* 9 Newsroom ---------------------------------------------------------------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--gap); margin-top: 1.5rem; }
.news-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem; display: flex; flex-direction: column; gap: .6rem; border-top: 6px solid var(--brand); }
.news-card time { font-size: .8rem; font-weight: 800; color: var(--muted); }
.news-card h3 { font-size: 1.15rem; margin: 0; }
.news-card p { margin: 0; flex: 1; font-size: .95rem; }
.news-card .more { font-weight: 800; }
.news-empty { padding: 1.5rem; border: 2px dashed #bbb; border-radius: var(--radius-sm); }
.news-more-link { display: inline-block; margin-top: 1.25rem; font-weight: 800; }

/* 10 Footer ----------------------------------------------------------------- */
.site-footer { background: var(--charcoal); color: var(--white); padding-block: 1.1rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; }
.footer-row .footer-legal { display: flex; gap: 1.5rem; }
.footer-row .footer-bottom { margin: 0; padding: 0; border: 0; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.footer-grid h2 { font-size: 1rem; color: var(--brand); }
.site-footer .brand img { height: 40px; }
.footer-legal { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.footer-bottom { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.2); font-size: .82rem; color: rgba(255,255,255,.85); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

/* Fallback ohne JavaScript */
.noscript { padding: 2rem; text-align: center; font-weight: 700; }

/* 11 Editor ------------------------------------------------------------------ */
body.is-editing { padding-bottom: 5.5rem; }
body.is-editing [data-cfg] { outline: 2px dashed rgba(255,128,0,.9); outline-offset: 2px; cursor: text; min-width: 1ch; }
body.is-editing [data-cfg]:focus { outline: 3px solid var(--brand); background: rgba(255,255,255,.35); }
body.is-editing .on-dark [data-cfg]:focus { background: rgba(0,0,0,.25); }
.edit-link-btn { font: inherit; font-size: .75rem; font-weight: 800; background: var(--charcoal); color: #fff; border: 0; border-radius: 6px; padding: .15rem .45rem; margin-left: .35rem; cursor: pointer; vertical-align: middle; }
.edit-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 500; background: var(--charcoal); color: #fff; padding: .75rem var(--gap); display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; box-shadow: 0 -6px 24px rgba(0,0,0,.25); }
.edit-bar .hint { flex: 1 1 18rem; font-size: .85rem; }
.edit-bar .status { font-weight: 800; font-size: .85rem; min-width: 8rem; }
.edit-bar .status.is-error { color: #ffb4a8; }
.edit-bar .status.is-ok { color: #b7f0b1; }
.edit-bar button { font: inherit; font-weight: 800; border-radius: 999px; border: 2px solid #fff; background: transparent; color: #fff; padding: .5rem 1rem; cursor: pointer; min-height: 44px; }
.edit-bar button.save { background: var(--brand); border-color: var(--brand); color: var(--white); }
.edit-bar button:disabled { opacity: .5; cursor: not-allowed; }
.news-edit { background: #fff7ec; border: 2px dashed var(--brand); border-radius: var(--radius-sm); padding: 1rem; margin-top: 1rem; display: grid; gap: .6rem; }
.news-edit label { font-weight: 800; font-size: .8rem; display: grid; gap: .2rem; }
.news-edit input, .news-edit textarea, dialog input, dialog select { font: inherit; padding: .5rem .6rem; border: 1px solid #888; border-radius: 8px; width: 100%; }
.news-edit .row { display: flex; gap: .5rem; flex-wrap: wrap; }
.news-edit .row button, dialog .btn-row button { font: inherit; font-weight: 800; padding: .5rem .9rem; border-radius: 999px; border: 2px solid var(--charcoal); background: #fff; cursor: pointer; min-height: 40px; }
dialog { border: 0; border-radius: var(--radius); padding: 1.5rem; max-width: min(94vw, 760px); width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(34,34,34,.6); }
dialog h2 { font-size: 1.3rem; }
dialog .field { display: grid; gap: .25rem; margin-bottom: .8rem; font-weight: 800; font-size: .85rem; }
dialog .btn-row { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; margin-top: 1rem; }
dialog .btn-row .primary { background: var(--brand); border-color: var(--brand); }
.data-table-wrap { max-height: 55vh; overflow: auto; border: 1px solid #ccc; border-radius: 10px; }
.data-table { border-collapse: collapse; width: 100%; font-size: .85rem; }
.data-table th, .data-table td { padding: .3rem .4rem; border-bottom: 1px solid #e3e3e3; text-align: left; }
.data-table thead th { position: sticky; top: 0; background: #f1f1f1; }
.data-table input { padding: .3rem .4rem; min-width: 5.5rem; }
.file-slot { display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid #e3e3e3; }
.file-slot code { font-size: .8rem; word-break: break-all; }
.file-slot .st { font-size: .8rem; }

/* Ergänzungen */
.branches-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(.75rem, 2vw, 1.5rem); align-items: center; }
@media (max-width: 760px) { .branches-body { grid-template-columns: 1fr; justify-items: center; } .branches-body > div:last-child { width: 100%; } }
@media (max-width: 560px) { .map-label { font-size: 32px; } .callout-text { font-size: 32px; } }

/* Rechtstexte */
.legal { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; }
.legal h2 { font-size: 1.2rem; margin-top: 2rem; }
.draft-banner { background: #FFF1C2; border: 2px solid #B8860B; border-radius: 12px; padding: 1rem 1.25rem; color: #3a2d00; }

/* Navigation: Badge unter dem Label, damit alle Punkte in eine Zeile passen */
.main-nav a, .main-nav .nav-off { padding: .45rem .7rem; white-space: nowrap; }
@media (min-width: 921px) {
  .main-nav .nav-off { flex-direction: column; gap: .1rem; padding-block: .25rem; align-items: center; justify-content: center; }
  .main-nav .nav-off .badge { font-size: .62rem; padding: .05rem .45rem; }
  .main-nav ul { flex-wrap: nowrap; }
}

/* Footer-Logo: offizielles Orange-Logo auf weißer Pille (weiße Variante noch nicht hinterlegt) */
.main-nav a[aria-current="true"] { background: var(--brand-grad); color: var(--white); }

/* Symbole */
.hero-art { position: absolute; z-index: 1; right: clamp(1rem, 6vw, 6rem); bottom: calc(var(--band) * .62 + .6rem); display: flex; gap: clamp(.9rem, 2.4vw, 2rem); color: var(--white); pointer-events: none; }
.hero-art svg { width: calc(var(--band) * .38 - 1.2rem); height: auto; stroke-width: 2.2; }
@media (max-width: 800px) { .hero-art { display: none; } }
.icon-badge { display: inline-flex; align-items: center; justify-content: center; width: 1.45em; height: 1.45em; margin-right: .4em; border-radius: 50%; background: var(--brand-grad); color: var(--white); vertical-align: -.22em; }
.icon-badge svg { width: 62%; height: 62%; stroke-width: 3; }
.level-card .icon-badge { width: 2.6rem; height: 2.6rem; margin: 0 0 .6rem; }
.level-card .tag { display: block; color: var(--muted); font-size: 1.1rem; letter-spacing: .08em; }
.level-card h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.level-card p:last-child { margin: 0; }
.kpi .icon { color: var(--charcoal); }
.main-nav a[aria-current="true"] { background: var(--charcoal); color: var(--white); }
.total-pill { background: var(--white) !important; color: var(--charcoal) !important; }
.total-pill strong { font-size: 1.25em; }
.positions { background: var(--charcoal); }

.footer-imprint p { font-size: .9rem; margin-bottom: .6rem; }
.footer-imprint h3 { font-size: .95rem; color: var(--brand); margin: 1rem 0 .4rem; }
.footer-imprint .legal-note { font-size: .78rem; opacity: .9; }
.footer-imprint a { color: var(--white); }

.hero-photo { position: absolute; z-index: 2; left: calc(50% + 12.5vw); bottom: calc(var(--band) * .62 + 2.1rem); width: 37.6vw; max-width: 754px; height: auto; pointer-events: none; filter: drop-shadow(0 14px 18px rgba(34,34,34,.28)); }
@media (max-width: 1000px) { .hero-photo { display: none; } }

.branches { --pw: clamp(260px, 38vw, 560px); position: relative; overflow: hidden; padding-right: calc(var(--pw) + clamp(1.5rem, 3vw, 2.5rem)); }
.branches-photo { position: absolute; top: 0; right: 0; bottom: 0; width: var(--pw); margin: 0; }
.branches-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 960px) { .branches { padding-right: clamp(1.25rem, 3vw, 2.25rem); } .branches-photo { position: static; width: auto; height: 260px; margin: 1.5rem 0 0; } .branches-photo img { width: 100%; } .branches-body { grid-template-columns: 1fr; justify-items: center; } }
.map-text .state-list { margin-top: 1rem; }

/* Sprachumschalter DE | EN (Header, oben rechts) */
.main-nav { margin-left: auto; }
.lang-switch { display: inline-flex; border: 2px solid var(--charcoal); border-radius: 999px; overflow: hidden; flex: none; }
.lang-btn { font: inherit; font-size: .85rem; font-weight: 800; letter-spacing: .04em; background: var(--white); color: var(--charcoal); border: 0; padding: .4rem .8rem; min-height: 40px; min-width: 44px; cursor: pointer; }
.lang-btn:hover { background: var(--gray-bg); }
.lang-btn[aria-pressed="true"] { background: var(--charcoal); color: var(--white); }
.lang-btn:focus-visible { outline: 3px solid var(--charcoal); outline-offset: -5px; }
@media (max-width: 920px) { .lang-switch { margin-left: auto; } .main-nav { margin-left: 0; } }
