/* Ladespiegel – Designsystem
   Anthrazit wie Ladesäulengehäuse (RAL 7016), Signalgelb als Akzent, die Status-LEDs
   einer Ladesäule (grün frei, blau lädt, rot gestört) als feste Bedeutungsfarben. */

@font-face { font-family: 'Barlow'; src: url('../fonts/barlow-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/barlow-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/barlow-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/barlow-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('../fonts/barlow-condensed-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('../fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('../fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #f1f2f0;
  --surface: #ffffff;
  --surface-2: #e7e9e6;
  --ink: #1e2326;
  --ink-2: #4a545a;
  --muted: #6f797f;
  --hair: #d8dcd9;
  --axis: #b5bcba;
  --accent: #ffc72c;
  --accent-ink: #1e2326;
  --focus: #1e2326;

  --st-free: #22ad6c;
  --st-busy: #3a70f0;
  --st-fault: #9f1f4c;
  --st-unk: #9aa3a8;

  --cheap: #5b3fb8;
  --mid: #e4e4e0;
  --dear: #c4520f;
  --occ-lo: #eaf0fd;
  --occ-hi: #1b3c90;
  --dens-lo: #eceeec;
  --dens-hi: #1e2326;
  --cls-ac: #9ba7b0;
  --cls-dc: #5e6c76;
  --cls-hpc: #2b3339;
  --line: #1e2326;

  --stage: #1d2226;
  --stage-2: #262c31;
  --stage-ink: #f1f3f2;
  --stage-ink-2: #a9b3b8;
  --stage-hair: #363e44;
  --ring-free: #5ccf96;
  --ring-busy: #3f7fe8;
  --ring-fault: #dc3f6e;
  --ring-unk: #3d454b;

  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-cond: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --radius: 14px;
  --radius-s: 8px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #15191c;
    --surface: #1d2226;
    --surface-2: #20262a;
    --ink: #eef1f0;
    --ink-2: #b4bdc1;
    --muted: #8a959b;
    --hair: #2d3439;
    --axis: #3e464c;
    --focus: #ffc72c;
    --st-free: #5ccf96;
    --st-busy: #3f7fe8;
    --st-fault: #dc3f6e;
    --st-unk: #6b757b;
    --cheap: #a28ff0;
    --mid: #3a4146;
    --dear: #ff9f5e;
    --occ-lo: #243048;
    --occ-hi: #b4cdff;
    --dens-lo: #262c31;
    --dens-hi: #ffd56b;
    --cls-ac: #5d686f;
    --cls-dc: #8d989f;
    --cls-hpc: #d3d9dd;
    --line: #eef1f0;
    --stage: #1b2024;
    --stage-2: #22292e;
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #15191c;
  --surface: #1d2226;
  --surface-2: #20262a;
  --ink: #eef1f0;
  --ink-2: #b4bdc1;
  --muted: #8a959b;
  --hair: #2d3439;
  --axis: #3e464c;
  --focus: #ffc72c;
  --st-free: #5ccf96;
  --st-busy: #3f7fe8;
  --st-fault: #dc3f6e;
  --st-unk: #6b757b;
  --cheap: #a28ff0;
  --mid: #3a4146;
  --dear: #ff9f5e;
  --occ-lo: #243048;
  --occ-hi: #b4cdff;
  --dens-lo: #262c31;
  --dens-hi: #ffd56b;
  --cls-ac: #5d686f;
  --cls-dc: #8d989f;
  --cls-hpc: #d3d9dd;
  --line: #eef1f0;
  --stage: #1b2024;
  --stage-2: #22292e;
}

*,
*::before,
*::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: var(--radius-s); }
.skip:focus { top: 12px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* Hinweisband für Demo-Daten */
.demo-banner {
  background: repeating-linear-gradient(135deg, var(--accent) 0 14px, #ffd65c 14px 28px);
  color: #1e2326;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
}
.demo-banner .wrap { display: flex; gap: 10px; align-items: baseline; padding-top: 9px; padding-bottom: 9px; }
.demo-banner strong { font-weight: 600; white-space: nowrap; }

/* Kopfleiste */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--stage) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  color: var(--stage-ink);
  border-bottom: 1px solid var(--stage-hair);
}
.topbar .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 25px/1 var(--font-cond); letter-spacing: 0.01em; }
.brand svg { width: 28px; height: 28px; }
.topnav { display: flex; gap: 22px; margin-left: 12px; font-size: 15px; }
.topnav a { text-decoration: none; color: var(--stage-ink-2); padding: 6px 0; }
.topnav a:hover { color: var(--stage-ink); }
.topbar .spacer { flex: 1; }

.switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--stage-2);
  border: 1px solid var(--stage-hair);
}
.switch button {
  border: 0;
  background: transparent;
  color: var(--stage-ink-2);
  font: 600 15px/1 var(--font-cond);
  letter-spacing: 0.03em;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  min-width: 52px;
}
.switch button[aria-checked='true'] { background: var(--accent); color: var(--accent-ink); }
.switch button:not([aria-checked='true']):hover { color: var(--stage-ink); }
.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--stage-hair);
  background: transparent;
  color: var(--stage-ink-2);
  cursor: pointer;
}
.icon-btn:hover { color: var(--stage-ink); }
.icon-btn svg { width: 20px; height: 20px; }

/* Bühne (Hero) */
.stage {
  background:
    radial-gradient(60% 70% at 78% 42%, color-mix(in srgb, var(--ring-busy) 16%, transparent), transparent 70%),
    var(--stage);
  color: var(--stage-ink);
  padding: clamp(36px, 6vw, 72px) 0 clamp(96px, 11vw, 132px);
  position: relative;
}
.stage-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-kicker { color: var(--stage-ink-2); font-size: 16px; margin: 0 0 18px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ring-free); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ring-free) 60%, transparent); animation: live 2.4s ease-out infinite; }
.live-dot[data-mode='daily'],
.live-dot[data-mode='demo'] { background: var(--stage-ink-2); animation: none; }
.hero-kicker .demo-tag { margin-left: 2px; }
.tiles-note { margin: 10px 0 0; }
@keyframes live { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ring-free) 55%, transparent); } 80%, 100% { box-shadow: 0 0 0 10px transparent; } }
.hero-title {
  font: 600 clamp(2.4rem, 4.6vw, 4rem)/1.03 var(--font-cond);
  letter-spacing: -0.005em;
  margin: 0;
  max-width: 13.5em;
  text-wrap: balance;
}
.hero-delta { font: 500 clamp(1.15rem, 1.9vw, 1.45rem)/1.35 var(--font); color: var(--stage-ink); margin: 18px 0 0; max-width: 34em; }
.hero-sub { color: var(--stage-ink-2); margin: 10px 0 0; max-width: 36em; font-size: 16px; }

.hero-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--stage-hair); }
.hero-fact { padding: 16px 20px 0 0; }
.hero-fact + .hero-fact { padding-left: 20px; border-left: 1px solid var(--stage-hair); }
.hero-fact .big { font: 600 clamp(2rem, 3.4vw, 2.75rem)/1 var(--font-cond); display: block; }
.hero-fact .lbl { color: var(--stage-ink-2); font-size: 15px; display: block; margin-top: 6px; }
.consumption { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--stage-ink-2); font-size: 14px; }
.consumption input[type='range'] { flex: 1; max-width: 160px; accent-color: var(--accent); }
.consumption output { color: var(--stage-ink); font-weight: 500; white-space: nowrap; }

/* Statusring */
.ring-wrap { position: relative; width: min(100%, 440px); margin-inline: auto; aspect-ratio: 1; }
.ring-wrap svg { width: 100%; height: 100%; overflow: visible; }
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.ring-class { font: 500 16px/1.2 var(--font); color: var(--stage-ink-2); }
.ring-price { font: 600 clamp(4.2rem, 9vw, 6.4rem)/0.95 var(--font-cond); letter-spacing: -0.01em; margin-top: 6px; }
.ring-unit { font: 500 clamp(1.1rem, 2vw, 1.4rem)/1 var(--font-cond); color: var(--stage-ink-2); margin-top: 6px; letter-spacing: 0.02em; }
.ring-eff { font-size: 14px; color: var(--stage-ink-2); margin-top: 12px; }
.ring-glow { filter: blur(7px); opacity: 0.55; animation: breathe 2.6s ease-in-out infinite; transform-origin: center; }
@keyframes breathe { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.75; } }
.ring-legend { list-style: none; margin: 18px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 15px; color: var(--stage-ink-2); max-width: 460px; }
.ring-legend li { display: inline-flex; align-items: center; gap: 8px; }
.ring-legend b { color: var(--stage-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.status-icon { width: 16px; height: 16px; flex: none; }

/* Klassen-Kacheln: Wahl der Ladeart und Kennzahlen in einem */
.tiles { margin-top: clamp(-88px, -8vw, -64px); position: relative; z-index: 2; }
.tiles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile {
  text-align: left;
  border: 1px solid var(--hair);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 18px 20px 16px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: 'name name' 'price spark' 'meta meta';
  gap: 4px 12px;
  transition: border-color 0.15s;
}
.tile:hover { border-color: var(--axis); }
.tile[aria-checked='true'] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.tile-name { grid-area: name; font-weight: 600; font-size: 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 2px 8px; }
.tile-name small { font-weight: 400; color: var(--muted); font-size: 14px; white-space: nowrap; }
.tile-mark { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); display: none; }
.tile[aria-checked='true'] .tile-mark { display: inline-block; }
.tile-price { grid-area: price; font: 600 clamp(2rem, 3.6vw, 2.6rem)/1.05 var(--font-cond); }
.tile-price small { font: 500 0.5em var(--font-cond); color: var(--muted); margin-left: 4px; letter-spacing: 0.02em; }
.tile-spark { grid-area: spark; width: 96px; height: 40px; align-self: center; }
.tile-meta { grid-area: meta; color: var(--ink-2); font-size: 14px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Abschnitte */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section + .section { border-top: 1px solid var(--hair); }
.section--alt { background: var(--surface-2); border-top: 0 !important; }
.section--alt + .section { border-top: 0; }
.head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: clamp(24px, 3vw, 36px); max-width: 760px; }
.head h2 { font: 600 clamp(2rem, 3.6vw, 2.9rem)/1.05 var(--font-cond); margin: 0; letter-spacing: -0.003em; text-wrap: balance; }
.head p { margin: 0; color: var(--ink-2); font-size: 18px; max-width: 62ch; }
.insight { font: 500 clamp(1.15rem, 1.8vw, 1.4rem)/1.35 var(--font); margin: 0 0 22px; max-width: 46ch; }
.note { color: var(--muted); font-size: 14px; margin: 14px 0 0; max-width: 72ch; }
.demo-tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); vertical-align: middle; margin-left: 8px; }
.real-tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--axis); color: var(--ink-2); vertical-align: middle; margin-left: 8px; }

.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.fig { margin: 0; }
.fig figcaption { font-weight: 600; font-size: 16px; margin-bottom: 10px; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.fig figcaption span { font-weight: 400; color: var(--muted); font-size: 14px; }
.chart { width: 100%; min-height: 120px; position: relative; }
.chart svg text { fill: var(--muted); font-size: 12px; font-family: var(--font); }
.chart .grid line { stroke: var(--hair); }
.chart .axis path, .chart .axis line { stroke: var(--axis); }
.chart .axis .domain { display: none; }
.chart .lbl-strong { fill: var(--ink); font-weight: 600; font-size: 13px; }
.chart .lbl-mid { fill: var(--ink-2); font-size: 12.5px; }
.legend-row { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink-2); margin: 0 0 10px; }
.legend-row span { display: inline-flex; align-items: center; gap: 8px; }
.key-line { width: 18px; height: 0; border-top: 2px solid currentColor; }
.key-band { width: 18px; height: 10px; border-radius: 2px; }
.key-dot { width: 10px; height: 10px; border-radius: 50%; }

details.table-view { margin-top: 14px; font-size: 14px; color: var(--ink-2); }
details.table-view summary { cursor: pointer; width: fit-content; }
details.table-view table { border-collapse: collapse; margin-top: 10px; font-variant-numeric: tabular-nums; width: 100%; max-width: 640px; }
details.table-view th, details.table-view td { text-align: left; padding: 5px 12px 5px 0; border-bottom: 1px solid var(--hair); }
details.table-view td.num, details.table-view th.num { text-align: right; }
.table-scroll { overflow-x: auto; }

/* Segment-Schalter im Inhalt */
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hair); flex-wrap: wrap; }
.seg button { border: 0; background: transparent; color: var(--ink-2); font: 500 15px/1 var(--font); padding: 9px 14px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed='true'] { background: var(--ink); color: var(--bg); }
.controls { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-bottom: 18px; }

/* Karte */
.map-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.map-box { position: relative; }
.map-box svg { width: 100%; height: auto; touch-action: manipulation; }
.map-box path.kreis { stroke: var(--bg); stroke-width: 0.5; cursor: pointer; }
.map-box path.kreis:hover { stroke: var(--ink); stroke-width: 1.4; }
.map-box path.kreis.sel { stroke: var(--ink); stroke-width: 2.2; }
.map-box path.land { fill: none; stroke: var(--bg); stroke-width: 1.6; pointer-events: none; }
.map-box path.nation { fill: none; stroke: var(--axis); stroke-width: 1; pointer-events: none; }
.map-legend { display: grid; gap: 6px; font-size: 13px; color: var(--muted); max-width: 320px; margin-top: 10px; }
.map-legend .bar { height: 10px; border-radius: 3px; }
.map-legend .ends { display: flex; justify-content: space-between; }
.scrub { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.scrub input[type='range'] { flex: 1; min-width: 160px; accent-color: var(--st-busy); }
.scrub output { font: 600 18px/1 var(--font-cond); min-width: 5.2em; }
.play { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--hair); background: var(--surface); border-radius: 999px; padding: 8px 14px 8px 10px; cursor: pointer; font-weight: 500; font-size: 15px; }
.play svg { width: 18px; height: 18px; }
.side { display: grid; gap: 22px; }
.search { position: relative; }
.search input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-s);
  border: 1px solid var(--axis);
  background: var(--surface);
  font-size: 16px;
}
.picked { border-left: 3px solid var(--accent); padding: 2px 0 2px 14px; }
.picked h3 { margin: 0; font: 600 26px/1.1 var(--font-cond); }
.picked .bez { color: var(--muted); font-size: 14px; }
.picked dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 12px 0 0; font-size: 15px; }
.picked dt { color: var(--ink-2); }
.picked dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.rank h3 { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.rank ol { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.rank li { counter-increment: r; }
.rank button { width: 100%; display: grid; grid-template-columns: 1.6em 1fr auto; gap: 8px; align-items: baseline; border: 0; border-bottom: 1px solid var(--hair); background: transparent; padding: 8px 0; text-align: left; cursor: pointer; font-size: 15px; }
.rank button::before { content: counter(r); color: var(--muted); font-variant-numeric: tabular-nums; }
.rank button:hover { color: var(--ink); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.rank .v { font-variant-numeric: tabular-nums; font-weight: 600; }

/* Betreiber */
.op-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.op-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 13px; padding: 0 10px 8px 0; border-bottom: 1px solid var(--hair); }
.op-table td { padding: 0 10px 0 0; border-bottom: 1px solid var(--hair); height: 40px; font-variant-numeric: tabular-nums; }
.op-table td.name { white-space: nowrap; font-weight: 500; }
.op-table td.dot { width: 46%; min-width: 140px; padding: 0; }
.op-table td.num, .op-table th.num { text-align: right; white-space: nowrap; }
.op-table tr:hover td { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.op-table svg { width: 100%; height: 40px; overflow: visible; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--hair); }
.fact { padding: 18px 20px 0 0; }
.fact + .fact { padding-left: 20px; border-left: 1px solid var(--hair); }
.fact .big { font: 600 clamp(2.2rem, 3.8vw, 3rem)/1 var(--font-cond); display: block; }
.fact p { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; max-width: 30ch; }

/* Teilen: Ladebon */
.share-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.receipt-wrap { display: grid; place-items: center; padding: 28px 0; background: var(--stage); border-radius: var(--radius); }
.receipt {
  --paper: #fbfaf6;
  width: min(340px, 86%);
  background: var(--paper);
  color: #23272a;
  font: 400 14px/1.5 ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  padding: 26px 22px 22px;
  position: relative;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 12px 51% repeat-x, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 51% repeat-x;
  mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 12px 51% repeat-x, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 51% repeat-x;
}
.receipt .r-head { text-align: center; margin-bottom: 12px; }
.receipt .r-brand { font: 700 22px/1 var(--font-cond); letter-spacing: 0.06em; }
.receipt .r-rule { border: 0; border-top: 1px dashed #9aa0a3; margin: 10px 0; }
.receipt .r-row { display: flex; justify-content: space-between; gap: 12px; }
.receipt .r-total { font-weight: 700; font-size: 17px; }
.receipt .r-foot { text-align: center; margin-top: 12px; font-size: 12px; color: #5b6266; }
.receipt .r-bar { height: 34px; margin: 12px auto 0; width: 80%; background: repeating-linear-gradient(90deg, #23272a 0 2px, transparent 2px 4px, #23272a 4px 5px, transparent 5px 8px, #23272a 8px 11px, transparent 11px 12px); }
.share-form { display: grid; gap: 18px; }
.share-form label { display: grid; gap: 8px; font-weight: 500; }
.share-form input[type='range'] { accent-color: var(--ink); }
.share-form select { padding: 10px 12px; border-radius: var(--radius-s); border: 1px solid var(--axis); background: var(--surface); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { border: 1px solid var(--ink); background: var(--ink); color: var(--bg); border-radius: 999px; padding: 12px 20px; font-weight: 600; cursor: pointer; font-size: 16px; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn:hover { filter: brightness(1.08); }
.toast { font-size: 14px; color: var(--ink-2); min-height: 1.4em; }

/* Methodik und Fuß */
.method { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.method h3 { font: 600 22px/1.2 var(--font-cond); margin: 0 0 8px; }
.method p, .method li { color: var(--ink-2); font-size: 16px; }
.method ul { padding-left: 18px; margin: 8px 0 0; }
.foot { background: var(--stage); color: var(--stage-ink-2); padding: 40px 0 56px; font-size: 15px; }
.foot .wrap { display: grid; gap: 18px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { color: var(--stage-ink); }
.foot .src { display: grid; gap: 4px; font-size: 13px; }

/* Tooltip */
.tooltip {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  background: var(--stage);
  color: var(--stage-ink);
  border-radius: var(--radius-s);
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.35;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  max-width: 260px;
  border: 1px solid var(--stage-hair);
}
.tooltip .t-title { font-weight: 600; margin-bottom: 4px; }
.tooltip .t-sub { color: var(--stage-ink-2); font-size: 13px; margin-bottom: 6px; }
.tooltip .t-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.tooltip .t-row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.tooltip .t-key { display: inline-flex; align-items: center; gap: 6px; color: var(--stage-ink-2); }
.tooltip .t-key i { width: 14px; height: 0; border-top: 2px solid; display: inline-block; }

.loading { opacity: 0.55; transition: opacity 0.2s; }
.error-box { background: var(--surface); border: 1px solid var(--hair); border-left: 4px solid var(--st-fault); padding: 16px 18px; border-radius: var(--radius-s); max-width: 640px; }

/* Mobil */
.mobile-switch { display: none; }
@media (max-width: 980px) {
  .topnav { display: none; }
  .stage-grid { grid-template-columns: 1fr; }
  .ring-wrap { width: min(100%, 380px); }
  .map-grid, .two, .share-grid, .method { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .fact + .fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--hair); margin-top: 18px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .topbar .switch { display: none; }
  .mobile-switch {
    display: flex;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 40;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
  .tiles-grid { grid-template-columns: 1fr; }
  .tile { grid-template-areas: 'name spark' 'price spark' 'meta meta'; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-fact + .hero-fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--stage-hair); margin-top: 16px; }
  .op-table td.dot { min-width: 110px; }
  .op-table .hide-s { display: none; }
  .foot { padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live-dot, .ring-glow { animation: none; }
}
