/* Farben und Schriften wie die ursprüngliche Seite "Städte und Kreise im deutschsprachigen Raum" */
:root {
  --bg: #f3f4f2; --panel: #ffffff; --fg: #1c2226; --muted: #5d676d; --line: #dde1df; --soft: #eef0ee;
  --accent: #2f5d62; --accent-fg: #ffffff; --up: #2d6a3e; --up-bg: #e3efe5; --down: #a2363d; --down-bg: #f6e3e4;
  --warn-bg: #fbf3e2; --warn: #8a5a12; --bar: #c9d3d1;
  --f-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151a1c; --panel: #1d2427; --fg: #e6ebe9; --muted: #9aa6a8; --line: #2e383b; --soft: #232b2e;
    --accent: #7fb3b0; --accent-fg: #10181a; --up: #8fd19e; --up-bg: #1f3325; --down: #f0959b; --down-bg: #3a2224;
    --warn-bg: #352a17; --warn: #e8c27a; --bar: #3a4a4c;
    color-scheme: dark;
  }
}
/* Ausdrücklich gewähltes dunkles Schema (Umschalter in der Kopfzeile) – gleiche Werte wie bei dunklem Betriebssystem */
:root[data-theme="dark"] {
  --bg: #151a1c; --panel: #1d2427; --fg: #e6ebe9; --muted: #9aa6a8; --line: #2e383b; --soft: #232b2e;
  --accent: #7fb3b0; --accent-fg: #10181a; --up: #8fd19e; --up-bg: #1f3325; --down: #f0959b; --down-bg: #3a2224;
  --warn-bg: #352a17; --warn: #e8c27a; --bar: #3a4a4c;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font-family: var(--f-body); font-size: 15px; line-height: 1.5; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: .01em; line-height: 1.15; margin: 1.2em 0 .4em; }
h1 { font-size: 2.2rem; margin-top: .6em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h1:focus { outline: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 16px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Kopfzeile */
.topbar { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar-inner { display: flex; align-items: center; gap: 24px; min-height: 54px; flex-wrap: wrap; }
.brand { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; color: var(--fg); }
.mainnav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.mainnav a { padding: 6px 10px; border-radius: 6px; color: var(--muted); font-weight: 500; }
.mainnav a.active { background: var(--soft); color: var(--fg); }
.mainnav a:hover { text-decoration: none; color: var(--fg); }
.userbox { display: flex; gap: 12px; align-items: center; font-size: .9rem; }
.foot { color: var(--muted); font-size: .85rem; padding-block: 32px; }

/* Bausteine */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-block: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-block: 16px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.stat .k { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.stat .v { font-family: var(--f-display); font-size: 1.8rem; font-weight: 600; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: baseline; background: var(--muted); }
.chg { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: .85rem; font-variant-numeric: tabular-nums; }
.chg.up { color: var(--up); background: var(--up-bg); }
.chg.down { color: var(--down); background: var(--down-bg); }
.chg.na { color: var(--muted); }
.tag { display: inline-block; padding: 0 7px; border: 1px solid var(--line); border-radius: 10px; font-size: .78rem; color: var(--muted); margin: 0 4px 2px 0; white-space: nowrap; }
.tag.accent { border-color: var(--accent); color: var(--accent); }
.sub { display: block; color: var(--muted); font-size: .8rem; }
.crumbs { color: var(--muted); font-size: .9rem; margin-top: 18px; }
.crumbs a { color: var(--muted); }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pagehead h1 { margin-bottom: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 18px; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }

/* Tabellen */
.tablewrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
table.data tr:last-child td { border-bottom: 0; }
table.data th { font-weight: 600; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; background: var(--soft); }
table.data th.num { text-align: right; }
table.data th button { all: unset; cursor: pointer; }
table.data th button:hover { color: var(--fg); }
table.data tbody tr:hover { background: var(--soft); }
.barcell { width: 110px; }
.bar { height: 6px; border-radius: 3px; background: var(--bar); margin-top: 8px; }
@media (max-width: 720px) { .hide-sm { display: none; } .barcell { display: none; } }

/* Formulare */
.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-block: 12px; }
label.field { display: flex; flex-direction: column; gap: 3px; font-size: .82rem; color: var(--muted); }
label.field.grow { flex: 1; min-width: 200px; }
label.check { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; margin-right: 14px; }
input, select, textarea { font: inherit; color: var(--fg); background: var(--panel); border: 1px solid var(--line); border-radius: 7px; padding: 6px 9px; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
textarea { min-height: 70px; resize: vertical; }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 16px; }
.form .full { grid-column: 1 / -1; }
.req::after { content: " *"; color: var(--down); }
button, .btn { font: inherit; font-weight: 500; cursor: pointer; border-radius: 7px; padding: 6px 14px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); display: inline-block; }
button:hover, .btn:hover { border-color: var(--accent); text-decoration: none; }
button.primary, .btn.primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
button.danger { color: var(--down); border-color: var(--down); }
button:disabled { opacity: .55; cursor: default; }
button.link { all: unset; color: var(--accent); cursor: pointer; }
button.link:hover { text-decoration: underline; }
button.mini { padding: 1px 8px; font-size: .8rem; }

/* Meldungen */
.alert { border-radius: 8px; padding: 10px 14px; margin-block: 12px; border: 1px solid; }
.alert.error { background: var(--down-bg); color: var(--down); border-color: var(--down); }
.alert.ok { background: var(--up-bg); color: var(--up); border-color: var(--up); }
.alert.info { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.empty { color: var(--muted); padding: 18px; text-align: center; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-block: 10px; font-size: .9rem; color: var(--muted); }

/* Quellenauswahl */
.sources-box { border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; }
.sources-box.missing { border-color: var(--down); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-block: 6px; }
.chip { display: inline-flex; gap: 6px; align-items: center; background: var(--soft); border-radius: 14px; padding: 2px 6px 2px 10px; font-size: .85rem; }
.chip button { all: unset; cursor: pointer; color: var(--muted); padding: 0 4px; }
.suggest { list-style: none; margin: 4px 0; padding: 0; border: 1px solid var(--line); border-radius: 8px; max-height: 240px; overflow: auto; background: var(--panel); }
.suggest li { padding: 6px 10px; cursor: pointer; border-bottom: 1px solid var(--line); }
.suggest li:last-child { border-bottom: 0; }
.suggest li:hover { background: var(--soft); }
ol.cites { margin: 0; padding-left: 22px; }
ol.cites li { margin-bottom: 4px; }

details.help { margin-block: 10px; }
details.help summary { cursor: pointer; color: var(--accent); }
pre.code { background: var(--soft); border-radius: 8px; padding: 10px 12px; overflow-x: auto; font-size: .82rem; }

#blazor-error-ui { background: var(--warn-bg); color: var(--warn); bottom: 0; display: none; left: 0; padding: .6rem 1.25rem; position: fixed; width: 100%; z-index: 1000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

/* Hinweise zu Datenpunkten */
.hints { margin-block: 14px; }
.hints h3 { margin: 0 0 6px; }
.hint { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; padding: 8px 12px; margin-block: 6px; border-radius: 8px; border-left: 4px solid var(--accent); background: var(--soft); }
.hint.warn { border-left-color: var(--warn); background: var(--warn-bg); }
.hintkind { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.hint.warn .hintkind { color: var(--warn); font-weight: 600; }
.hinttext { white-space: pre-line; flex: 1 1 24rem; }
.hint .sub { flex-basis: 100%; }
.hintactions { margin-left: auto; display: flex; gap: 6px; }
.hints.compact { margin-block: 4px; }
.hints.compact .hint { padding: 4px 8px; margin-block: 3px; font-size: .9rem; }
.hintform textarea { width: 100%; font: inherit; }
.hintkind.warnlabel { color: var(--warn); font-weight: 600; }
.hintmark { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 10px; font-size: .75rem; background: var(--soft); color: var(--muted); cursor: help; }
.hintmark.warn { background: var(--warn-bg); color: var(--warn); }

/* Globale Suche */
.gsearch { position: relative; flex: 1 1 14rem; max-width: 22rem; }
.gsearch input { width: 100%; }
.gsuggest { position: absolute; top: calc(100% + 4px); left: 0; right: 0; min-width: 20rem; max-height: 70vh; overflow-y: auto; z-index: 20;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.15); padding: 4px; }
.ggroup { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 10px 2px; }
.ghit { display: flex; flex-direction: column; padding: 6px 10px; border-radius: 6px; color: var(--fg); text-decoration: none; }
.ghit:hover, .ghit.sel { background: var(--soft); }
.gall { display: block; padding: 8px 10px; font-size: .9rem; border-top: 1px solid var(--line); margin-top: 4px; }
.gmsg { padding: 10px; color: var(--muted); }

/* Vergleich */
.cmpbtn { all: unset; cursor: pointer; margin-left: 6px; padding: 0 7px; border-radius: 10px; font-size: .78rem; line-height: 1.5; border: 1px solid var(--line); color: var(--muted); }
.cmpbtn:hover { border-color: var(--accent); color: var(--accent); }
.cmpbtn.on { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.pagehead .cmpbtn { margin-left: 0; align-self: center; padding: 3px 12px; font-size: .85rem; }
.cmpbar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 15; display: flex; gap: 12px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.cmpgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-block: 16px; }
.cmpcard { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.cmpcard h3 { margin: 0; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; font-size: 1.1rem; }
.cmpcard h3 button { all: unset; cursor: pointer; color: var(--muted); padding: 0 4px; }
.cmpcard .kind { color: var(--muted); font-size: .85rem; margin-bottom: 8px; }
.cmpcard dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 10px; }
.cmpcard dt { color: var(--muted); font-size: .85rem; }
.cmpcard dd { margin: 0; text-align: right; }
.cmpcard .bar { background: var(--soft); border-radius: 4px; height: 8px; overflow: hidden; }
.cmpcard .bar i { display: block; height: 100%; }

/* Diagramme: Palette aus dem validierten Standardsatz (kategorial in fester Reihenfolge, divergierend blau↔rot) */
:root {
  --c1: #2a78d6; --c2: #eb6834; --c3: #1baf7a; --c4: #eda100; --c5: #e87ba4; --c6: #008300; --c7: #4a3aa7; --c8: #e34948;
  --div-pos: #2a78d6; --div-neg: #e34948;
  --ink-2: #52514e; --ink-muted: #898781; --grid: #e1e0d9; --axis: #c3c2b7;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c1: #3987e5; --c2: #d95926; --c3: #199e70; --c4: #c98500; --c5: #d55181; --c6: #008300; --c7: #9085e9; --c8: #e66767;
    --div-pos: #3987e5; --div-neg: #e66767;
    --ink-2: #c3c2b7; --ink-muted: #898781; --grid: #2c2c2a; --axis: #383835;
  }
}
:root[data-theme="dark"] {
  --c1: #3987e5; --c2: #d95926; --c3: #199e70; --c4: #c98500; --c5: #d55181; --c6: #008300; --c7: #9085e9; --c8: #e66767;
  --div-pos: #3987e5; --div-neg: #e66767;
  --ink-2: #c3c2b7; --ink-muted: #898781; --grid: #2c2c2a; --axis: #383835;
}

.chartcard { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px 10px; margin-block: 14px; }
.chartcard h3 { margin: 0 0 2px; }
.chartcard .csub { color: var(--muted); font-size: .85rem; margin-bottom: 10px; }
.chartcard details { margin-top: 8px; font-size: .9rem; }
.chartcard summary { cursor: pointer; color: var(--muted); }
.chartcard table.ctable { border-collapse: collapse; margin-top: 6px; width: 100%; }
.ctable th, .ctable td { text-align: right; padding: 3px 8px; border-bottom: 1px solid var(--line); }
.ctable th:first-child, .ctable td:first-child { text-align: left; }
.clegend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 4px 0 8px; font-size: .88rem; color: var(--ink-2); }
.clegend .key { display: inline-block; width: 14px; height: 0; border-top: 2px solid; vertical-align: middle; margin-right: 6px; border-radius: 1px; }
.clegend .swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }

/* Balkendiagramm */
.hbars { display: grid; gap: 4px; }
.hbar { display: grid; grid-template-columns: minmax(7rem, 14rem) 1fr; gap: 10px; align-items: center; position: relative; padding: 2px 0; border-radius: 6px; }
.hbar:hover, .hbar:focus-visible { background: var(--soft); outline: none; }
.hbar .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; color: var(--fg); }
.hbar .name a { color: inherit; }
.hbar .track { position: relative; height: 22px; }
.hbar .bar { position: absolute; top: 2px; bottom: 2px; }
.hbar .val { position: absolute; top: 0; line-height: 22px; font-size: .82rem; color: var(--fg); white-space: nowrap; }
.hbar .zero { position: absolute; top: -2px; bottom: -2px; width: 1px; background: var(--axis); }
.hbar .tip { display: none; position: absolute; z-index: 5; left: 14rem; top: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,.18); padding: 6px 10px; font-size: .85rem; white-space: nowrap; }
.hbar:hover .tip, .hbar:focus-visible .tip { display: block; }
.hbar .tip b { display: block; font-size: 1rem; }

/* Liniendiagramm */
.linewrap { position: relative; }
.linewrap svg { width: 100%; height: auto; display: block; overflow: visible; }
.linewrap text { font-family: var(--f-body); fill: var(--ink-muted); font-size: 11px; }
.linewrap .lbl { fill: var(--ink-2); font-size: 12px; }
.linetip { position: absolute; top: 6px; z-index: 5; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.18);
  padding: 6px 10px; font-size: .85rem; pointer-events: none; white-space: nowrap; }
.linetip .d { color: var(--muted); font-size: .78rem; margin-bottom: 2px; }
.linetip .r { display: flex; gap: 8px; align-items: center; }
.linetip .key { display: inline-block; width: 12px; border-top: 2px solid; border-radius: 1px; }
.linetip b { margin-left: auto; padding-left: 12px; }
.chartreload { opacity: .55; transition: opacity .15s; }

.exportbar { display: flex; gap: 8px; align-items: center; margin-block: 8px; }
.selrow td { background: var(--soft); }

/* Änderungsverlauf */
ul.diff { list-style: none; margin: 4px 0 2px; padding: 0; font-size: .85rem; }
ul.diff li { margin-block: 1px; }
ul.diff del { color: var(--down); text-decoration: line-through; text-decoration-thickness: 1px; }
ul.diff ins { color: var(--up); text-decoration: none; font-weight: 600; }
tr.undone td { opacity: .6; }

/* Farbschema-Umschalter */
.themebtn { all: unset; cursor: pointer; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
  border: 1px solid var(--line); color: var(--muted); font-size: 1.05rem; line-height: 1; }
.themebtn:hover, .themebtn:focus-visible { border-color: var(--accent); color: var(--accent); }

/* Druckansicht: helles Papierbild, ohne Bedienelemente, Tabellen mit wiederholter Kopfzeile */
.print-only { display: none; }
@media print {
  /* Immer die helle Palette, auch wenn Betriebssystem oder Umschalter dunkel stehen */
  :root, :root[data-theme], :root:not([data-theme="light"]) {
    --bg: #ffffff; --panel: #ffffff; --fg: #111111; --muted: #555555; --line: #cccccc; --soft: #f1f1f1;
    --accent: #2f5d62; --accent-fg: #ffffff; --up: #2d6a3e; --up-bg: #e3efe5; --down: #a2363d; --down-bg: #f6e3e4;
    --warn-bg: #fbf3e2; --warn: #8a5a12; --bar: #c9d3d1;
    --c1: #2a78d6; --c2: #eb6834; --c3: #1baf7a; --c4: #eda100; --c5: #e87ba4; --c6: #008300; --c7: #4a3aa7; --c8: #e34948;
    --div-pos: #2a78d6; --div-neg: #e34948; --ink-2: #52514e; --ink-muted: #898781; --grid: #e1e0d9; --axis: #c3c2b7;
    color-scheme: light;
  }
  @page { margin: 14mm; }
  body { background: #fff; color: #111; font-size: 10.5pt; }
  .wrap { max-width: none; padding-inline: 0; }
  .topbar, .foot, .cmpbar, .cmpbtn, .controls, .exportbar, .actions, .pager, .hintactions, .no-print, .themebtn,
  #blazor-error-ui, .alert.info, details > summary, button.mini, .gsearch { display: none !important; }
  a { color: inherit; text-decoration: none; }
  .print-only { display: block !important; }
  .printhead { color: #555; font-size: 9pt; border-bottom: 1px solid #ccc; padding-bottom: 4px; margin-bottom: 8px; }
  .panel, .stat, .chartcard, .cmpcard, .hint { box-shadow: none; break-inside: avoid; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .tablewrap { overflow: visible; border: none; }
  table.data { font-size: 9pt; }
  thead { display: table-header-group; }
  tr { break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }
  /* Spalten, die schmale Bildschirme ausblenden, gehören aufs Papier */
  .hide-sm, .barcell { display: table-cell !important; }
  th button { all: unset; font-weight: 600; }
  th button span[aria-hidden] { display: none; }
  details[open] > *:not(summary) { display: block; }
  .hbar:hover, .selrow td { background: none; }
}

/* Stand wählen (Jahr) */
.asofbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 6px max(16px, calc((100vw - 1180px) / 2 + 16px));
  background: var(--soft); border-bottom: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.asofbar.active { background: var(--warn-bg); color: var(--warn); border-bottom-color: var(--warn); }
.asofyear { display: inline-flex; gap: 8px; align-items: center; }
.asofyear input { width: 5.5rem; padding: 3px 6px; }
.asofnote { font-size: .88rem; }
p.asofnote.notice { background: var(--warn-bg); color: var(--warn); border-left: 4px solid var(--warn); border-radius: 6px; padding: 6px 10px; margin-block: 8px; }
@media print { .asofbar.active { display: block !important; background: none; border: none; padding: 0; color: #111; } .asofbar label, .asofbar button { display: none !important; } }

.mapbox { height: min(70vh, 640px); min-height: 320px; border: 1px solid var(--border, #ccc); border-radius: 6px; z-index: 0; }
.areamap .mapbox { height: min(60vh, 520px); }
.areamap .controls { align-items: center; }

.cpick { position: relative; }
.cpick > summary { cursor: pointer; padding: .3rem .6rem; border: 1px solid var(--border, #ccc); border-radius: 6px; list-style: none; white-space: nowrap; }
.cpick-panel { position: absolute; z-index: 20; top: 100%; left: 0; margin-top: .25rem; width: min(20rem, 90vw); background: var(--surface, #fff); color: inherit; border: 1px solid var(--border, #ccc); border-radius: 8px; padding: .6rem; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.cpick-head { display: flex; gap: .4rem; margin-bottom: .5rem; }
.cpick-head input { flex: 1; min-width: 0; }
.cpick-list { max-height: 16rem; overflow: auto; display: grid; gap: .15rem; }

.langtoggle { display: inline-flex; border: 1px solid var(--line, currentColor); border-radius: 6px; overflow: hidden; }
.langtoggle button { all: unset; cursor: pointer; padding: 2px 8px; font-size: .8rem; font-weight: 600; }
.langtoggle button.active { background: var(--accent, #2563eb); color: #fff; }
.langtoggle button:focus-visible { outline: 2px solid var(--accent, #2563eb); outline-offset: 1px; }
