/* ──────────────────────────────────────────────────────────────────────────
   umrechnungeuro — globals.css
   Design tokens ported from the Claude Design hand-off (index.dc.html) onto
   html[data-theme], keeping the SAME token names as liveexchanges so ported
   components reuse verbatim. Only the accent (EU blue) + fonts differ.
   ────────────────────────────────────────────────────────────────────────── */

html[data-theme="dark"] {
  --bg: #0f1626; --bg2: #131b2e; --surface: #161f33; --surface2: #1c2742;
  --border: #222e49; --border2: #2e3c60;
  --text: #e9edf6; --muted: #8c96ad; --faint: #5d6781;
  --accent: #6a8aee; --accent-ink: #ffffff; --accent-soft: rgba(106,138,238,0.14);
  --up: #2fbf7f; --up-soft: rgba(47,191,127,0.12);
  --down: #f0596a; --down-soft: rgba(240,89,106,0.12);
  --head-bg: rgba(15,22,38,0.82);
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f6f7fa; --bg2: #eef0f6; --surface: #ffffff; --surface2: #f1f3f9;
  --border: #e3e7f0; --border2: #cfd6e6;
  --text: #121a2c; --muted: #5e6880; --faint: #98a1b6;
  --accent: #003299; --accent-ink: #ffffff; --accent-soft: rgba(0,50,153,0.08);
  --up: #118a5a; --up-soft: rgba(17,138,90,0.10);
  --down: #d23b4e; --down-soft: rgba(210,59,78,0.10);
  --head-bg: rgba(246,247,250,0.85);
  color-scheme: light;
}

:root {
  --font-ui: 'Instrument Sans', system-ui, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --maxw: 1200px;
  --flash-duration: 700ms;
}

* { box-sizing: border-box; }

/* The `hidden` attribute must always win over component display rules
   (e.g. .chart-loading/.tw-editor set display:flex → would otherwise show). */
[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;   /* safety net against any stray horizontal overflow */
}

/* Grid/flex children default to min-width:auto, which lets wide content (charts,
   tables) push the track past the viewport. Let them shrink. */
.pair-grid > *, .pair-tables > *, .trow, .cell-pair, .cell-name,
.metric-grid > *, .cards-grid > *, .content-cards > * { min-width: 0; }

a { color: inherit; }
.link { color: var(--accent); text-decoration: none; }
.link:hover { text-decoration: underline; }
.hi { color: var(--accent); }

button, input, select { font-family: inherit; }
button { cursor: pointer; }
::placeholder { color: var(--faint); opacity: 1; }

.container,
.header-inner,
.footer-grid,
.footer-bottom-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.container { width: 100%; flex: 1; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--head-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { height: 60px; display: flex; align-items: center; gap: 22px; }
.header-spacer { flex: 1; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand-mark { width: 33px; height: 33px; color: var(--accent); display: flex; align-items: center; justify-content: center; margin-left: -2px; }
.brand-word { font-family: var(--font-display); font-weight: 600; font-size: 16.5px; letter-spacing: -0.015em; white-space: nowrap; }

.nav { display: flex; gap: 2px; }
.nav-link { padding: 7px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; }
.nav-link:hover { color: var(--text); background: var(--surface2); }
.nav-link.is-active { font-weight: 600; color: var(--text); background: var(--surface2); }

.header-search {
  width: 200px; height: 34px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); padding: 0 12px; font-size: 13.5px;
}
.header-search:focus { outline: none; border-color: var(--accent); }

/* Header search autocomplete dropdown */
.header-search-wrap { position: relative; display: inline-block; }
.hs-ac { position: absolute; top: calc(100% + 8px); right: 0; min-width: 260px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,0.28); z-index: 300; max-height: 340px; overflow-y: auto; }
.hs-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 13px; text-decoration: none; color: var(--text); }
.hs-item + .hs-item { border-top: 1px solid var(--border); }
.hs-item:hover, .hs-item.active { background: var(--surface2); }
.hs-pair { font-weight: 600; font-size: 13.5px; }
.hs-name { font-size: 11.5px; color: var(--muted); white-space: nowrap; }

.live-badge { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--up); white-space: nowrap; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); animation: ue-pulse 2s infinite; }

.theme-toggle {
  height: 34px; padding: 0 13px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 14px; font-weight: 500;
}
.theme-toggle:hover { border-color: var(--border2); }

/* Mobile hamburger + dropdown menu (desktop nav/search collapse here) */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 36px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); cursor: pointer; }
.nav-toggle span { display: block; width: 100%; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; }

/* ── Pinned rates grid (top of every page — first eye-catcher, scrolls away) ── */
.pinned-wrap { margin-top: 14px; }
.pinned-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.pin-card { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }

/* ── Live marquee ticker — contained box, sticks below the header ──────────── */
/* The sticky wrapper is content-width (same gutters as the rest of the site);
   the inner box carries the border/background, so its edges line up with the
   pinned cards. margin-top spaces it off the header pinned rates above. */
.ue-ticker { position: sticky; top: calc(var(--ue-header-h, 60px) + 8px); z-index: 40; width: 100%; max-width: var(--maxw); margin: 12px auto 0; padding: 0 24px; }
.ue-ticker-box { position: relative; overflow: hidden; padding: 7px 0; background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; }
/* Short fade right at the badge so items stay fully readable until they reach
   it, then vanish cleanly (no peek beside the badge, no early disappearance). */
.ue-ticker-box::before { content: ''; position: absolute; z-index: 2; pointer-events: none; left: 0; top: 0; bottom: 0; width: 40px; background: linear-gradient(to right, var(--bg2) 30px, transparent); }
/* Badge: just a small rotating accent ring (no box) hugging the left border —
   signals "live". */
.ue-ticker-badge { position: absolute; z-index: 3; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; }
.ue-ticker-badge::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%; padding: 2px;
  background: conic-gradient(from 0deg, var(--accent), transparent 140deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  animation: ue-spin 1.3s linear infinite;
}
@keyframes ue-spin { to { transform: rotate(360deg); } }
.ue-ticker-track { display: flex; width: max-content; white-space: nowrap; padding-left: 40px; animation: ue-marquee 44s linear infinite; }
.ue-ticker-box:hover .ue-ticker-track { animation-play-state: paused; }
.ue-ticker-item { display: inline-flex; align-items: center; gap: 8px; padding: 0 20px; border-right: 1px solid var(--border); text-decoration: none; color: var(--text); font-size: 13px; }
.ue-ticker-pair { font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; }
.ue-ticker-item .num { font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .ue-ticker-badge::before, .ue-ticker-track { animation: none; } }
.pin-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.pin-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pin-pair { font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; }
.pin-chg { font-size: 12px; font-weight: 600; }
.pin-rate { font-family: var(--font-display); font-size: 19px; font-weight: 600; }

@keyframes ue-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(47,191,127,0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(47,191,127,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,191,127,0); }
}

/* ── Hero / cards ────────────────────────────────────────────────────────── */
.hero { text-align: center; padding: 52px 0 8px; }
.hero-title { font-family: var(--font-display); font-size: 48px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; margin: 0; text-wrap: balance; }
.hero-sub { margin: 14px auto 0; max-width: 560px; font-size: 16px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.skeleton-note { max-width: 720px; margin: 28px auto 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.skeleton-note strong { color: var(--text); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { margin-top: 52px; border-top: 1px solid var(--border); background: var(--bg2); }
.footer-grid { padding-top: 36px; padding-bottom: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.footer-col .brand-word { font-size: 15px; }
.footer-tag { margin: 12px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.footer-head { font-size: 12px; font-weight: 700; letter-spacing: 0.07em; color: var(--faint); text-transform: uppercase; margin-bottom: 12px; }
.footer-link { display: block; font-size: 13.5px; color: var(--muted); text-decoration: none; margin-bottom: 8px; }
.footer-link:hover { color: var(--accent); }
.lang-switch { display: flex; gap: 6px; }
.lang-btn { height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.lang-btn:hover { border-color: var(--border2); color: var(--text); }
.lang-btn.is-active { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.footer-bottom { border-top: 1px solid var(--border); }
.footer-bottom-inner { padding-top: 16px; padding-bottom: 16px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--faint); }

/* ── Numbers + change colours ────────────────────────────────────────────── */
.num { font-variant-numeric: tabular-nums; }
.up { color: var(--up); }
.down { color: var(--down); }
.muted { color: var(--muted); }
.ta-r { text-align: right; }

/* Rate-update flash — colours derived from the theme --up/--down tokens (no
   stored hex, auto theme-aware). Two styles per direction: text (colour + a
   brief scale pop) and background (tint + box-shadow glow that doesn't shift
   layout). Mode + duration are panel-tweakable; ripple staggers via lx.js. */
@keyframes ue-tick-up-text   { 0% { color: var(--up);   transform: scale(1.05); } 35% { color: var(--up);   transform: scale(1); } 100% { color: inherit; transform: none; } }
@keyframes ue-tick-down-text { 0% { color: var(--down); transform: scale(0.96); } 35% { color: var(--down); transform: scale(1); } 100% { color: inherit; transform: none; } }
@keyframes ue-tick-up-bg   { 0% { background-color: color-mix(in srgb, var(--up) 38%, transparent);   box-shadow: 0 0 0 3px color-mix(in srgb, var(--up) 38%, transparent);   } 100% { background-color: transparent; box-shadow: 0 0 0 3px transparent; } }
@keyframes ue-tick-down-bg { 0% { background-color: color-mix(in srgb, var(--down) 38%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--down) 38%, transparent); } 100% { background-color: transparent; box-shadow: 0 0 0 3px transparent; } }
.tick-up, .tick-down { display: inline-block; border-radius: 3px; animation-duration: var(--flash-duration, 650ms); animation-timing-function: ease-out; animation-fill-mode: forwards; }
.tick-up   { animation-name: ue-tick-up-text,   ue-tick-up-bg;   }
.tick-down { animation-name: ue-tick-down-text, ue-tick-down-bg; }
/* 'text' mode: only the font colour flashes. 'bg' mode: only the background.
   Scoped to any [data-flash-mode] ancestor so the tweaks preview can override
   the global <html> mode locally. */
[data-flash-mode='text'] .tick-up   { animation-name: ue-tick-up-text;   }
[data-flash-mode='text'] .tick-down { animation-name: ue-tick-down-text; }
[data-flash-mode='bg'] .tick-up   { animation-name: ue-tick-up-bg;   }
[data-flash-mode='bg'] .tick-down { animation-name: ue-tick-down-bg; }

/* ── Live ticker (inside .container → aligned with the page content) ──────── */
.ticker-wrap { margin-top: 14px; }
.ticker { border: 1px solid var(--border); border-radius: 12px; background: var(--bg2); overflow: hidden; }
.chart-card { overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: ue-marquee 42s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: flex; align-items: center; gap: 9px; padding: 9px 26px; border-right: 1px solid var(--border); text-decoration: none; white-space: nowrap; color: var(--text); }
.ticker-label { font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: 0.05em; }
.ticker-item .num { font-size: 13px; font-weight: 600; }
@keyframes ue-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Converter ───────────────────────────────────────────────────────────── */
.conv-wrap { max-width: 860px; margin: 28px auto 0; }
.conv-card { padding: 22px; }
.conv-grid { display: grid; grid-template-columns: 0.9fr 1fr 44px 1fr; gap: 12px; align-items: end; }
.conv-field { display: flex; flex-direction: column; gap: 6px; }
.conv-label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.conv-input, .conv-select {
  height: 48px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface2); color: var(--text); width: 100%; min-width: 0;
}
.conv-input { padding: 0 14px; font-family: var(--font-display); font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.conv-select { padding: 0 10px; font-size: 14.5px; font-weight: 500; }
.conv-input:focus, .conv-select:focus { outline: none; border-color: var(--accent); }
.conv-swap { width: 44px; height: 48px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface2); color: var(--accent); font-size: 19px; font-weight: 600; transition: transform .26s; }
.conv-swap:hover { border-color: var(--accent); }
.conv-swap.spin { transform: rotate(180deg); }
.conv-result { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); text-align: center; }
.conv-eq { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.conv-big { font-family: var(--font-display); font-size: 34px; font-weight: 600; letter-spacing: -0.02em; margin-top: 4px; }
.conv-sub { margin-top: 8px; font-size: 13px; color: var(--faint); }
.conv-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.chip { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 600; }
.chip:hover { border-color: var(--accent); color: var(--text); }

/* ── Sections ────────────────────────────────────────────────────────────── */
.section { margin-top: 44px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-title { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.section-more { font-size: 13.5px; font-weight: 600; color: var(--accent); text-decoration: none; }
.section-more:hover { text-decoration: underline; }
.section-lede { margin: 6px 0 0; font-size: 13.5px; color: var(--faint); }

/* ── Metric cards ────────────────────────────────────────────────────────── */
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 44px; }
.metric-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px; text-decoration: none; color: var(--text); transition: border-color .15s; }
.metric-card:hover { border-color: var(--accent); }
.metric-label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.metric-val { font-family: var(--font-display); font-size: 23px; font-weight: 600; margin-top: 4px; }
.metric-chg { display: inline-block; margin-top: 4px; font-size: 12.5px; font-weight: 600; }

/* ── Card grids (Beliebte Kurse) ─────────────────────────────────────────── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-top: 16px; }
.rate-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.rate-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.rate-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rate-card-code { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; color: var(--muted); }
.rate-card-top .num { font-size: 12.5px; font-weight: 600; }
.rate-card-val { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.rate-card-name { font-size: 12.5px; color: var(--faint); margin-top: 3px; }

/* ── Rate tables ─────────────────────────────────────────────────────────── */
.table-card { overflow: hidden; padding: 0; }
.trow { display: grid; gap: 10px; padding: 11px 18px; align-items: center; font-size: 14px; text-decoration: none; color: var(--text); }
.trow:not(.thead) { border-top: 1px solid var(--border); }
a.trow:hover { background: var(--surface2); }
.thead { background: var(--surface2); font-size: 11px; font-weight: 700; letter-spacing: 0.07em; color: var(--faint); text-transform: uppercase; }
.buy-cols { grid-template-columns: minmax(150px, 1.7fr) 1fr 80px 1fr 1fr; }
.all-cols { grid-template-columns: minmax(150px, 1.7fr) 1fr 1fr 80px; }
.cell-pair { display: flex; align-items: center; gap: 10px; min-width: 0; }
.badge { width: 26px; height: 26px; border-radius: 50%; background: var(--surface2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 700; color: var(--muted); flex-shrink: 0; }
.thead .badge, .thead { } /* no badge in head */
.pair-name { font-weight: 600; font-size: 13.5px; }
.cell-name { min-width: 0; display: flex; flex-direction: column; }
.cur-name { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cur-code { font-size: 11.5px; color: var(--faint); }
.trow .num { font-size: 13.5px; }
.table-empty { padding: 28px 18px; text-align: center; font-size: 14px; color: var(--faint); }

.all-controls { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; align-items: center; }
.all-search { height: 38px; width: 260px; max-width: 100%; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 0 13px; font-size: 13.5px; }
.all-search:focus { outline: none; border-color: var(--accent); }
.tabs { display: flex; gap: 6px; }
.tab { height: 34px; padding: 0 13px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 600; }
.tab:hover { color: var(--text); border-color: var(--border2); }
.tab.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ── Pair detail ─────────────────────────────────────────────────────────── */
.pair-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px; margin-top: 20px; }
.pair-head-l { flex: 1; min-width: 260px; }
.pair-badges { display: flex; align-items: center; gap: 10px; }
.pair-badge { width: 30px; height: 30px; border-radius: 50%; background: var(--surface2); color: var(--text); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; border: 2px solid var(--bg); }
.pair-badge.accent { background: var(--accent); color: var(--accent-ink); }
.pair-badge + .pair-badge { margin-left: -8px; }
.pair-code-chip { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px; }
.pair-h1 { font-family: var(--font-display); font-size: 36px; font-weight: 600; letter-spacing: -0.02em; margin: 14px 0 6px; line-height: 1.1; }
.pair-sub { margin: 0; font-size: 14.5px; color: var(--muted); }
.pair-rate-block { text-align: right; }
.pair-bigrate { font-family: var(--font-display); font-size: 40px; font-weight: 600; letter-spacing: -0.02em; }
.pair-rate-meta { display: flex; align-items: center; gap: 10px; justify-content: flex-end; margin-top: 10px; flex-wrap: wrap; }
.pair-rate-meta .num { font-size: 14px; font-weight: 600; }
.pair-stand { font-size: 13px; color: var(--faint); }
/* Amount pages: the converted amount is the hero; the unit rate sits in its
   own block right below it (not crammed beside it). */
.pair-amt-from { font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.pair-unitrate { display: inline-flex; align-items: baseline; gap: 5px; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 7px 12px; }

.pair-grid { display: grid; grid-template-columns: 1fr 380px; gap: 20px; margin-top: 26px; align-items: start; }
.chart-card, .rechner-card { padding: 20px; }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chart-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.chart-sub { font-size: 12.5px; color: var(--faint); margin-top: 2px; }
.chart-tfs { display: flex; gap: 6px; }
.chart-tf { height: 30px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 12.5px; font-weight: 600; }
.chart-tf:hover { color: var(--text); border-color: var(--border2); }
.chart-tf.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chart-area { position: relative; height: 300px; margin-top: 16px; }
#ue-chart { position: absolute; inset: 0; }
.chart-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--surface); color: var(--faint); font-size: 13px; z-index: 5; }
.ue-chart-readout { position: absolute; top: 8px; left: 12px; right: 12px; z-index: 11; pointer-events: none; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.ue-ro-price { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.ue-ro-date { font-size: 11px; font-weight: 500; color: var(--muted); }
.ue-ro-ohlc { font-size: 10.5px; font-weight: 500; color: var(--text); white-space: nowrap; }
.ue-ro-ohlc .o { opacity: 0.55; }
.ue-chart-live { animation: ue-chart-pulse 1.3s ease-out infinite; }
@keyframes ue-chart-pulse { 0% { box-shadow: 0 0 0 0 rgba(106,138,238,0.55); } 70% { box-shadow: 0 0 0 9px rgba(106,138,238,0); } 100% { box-shadow: 0 0 0 0 rgba(106,138,238,0); } }
.chart-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 14px; border-top: 1px solid var(--border); margin-top: 16px; padding-top: 16px; }
.stat-label { font-size: 11px; font-weight: 600; letter-spacing: 0.07em; color: var(--faint); text-transform: uppercase; }
.stat-val { font-size: 15.5px; font-weight: 600; margin-top: 4px; }

.rechner-card { display: flex; flex-direction: column; gap: 12px; }
.rechner-head { display: flex; align-items: center; justify-content: space-between; }
.rechner-field { border: 1px solid var(--border); background: var(--surface2); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 5px; }
.rechner-label { font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: 0.05em; }
.rechner-inputline { display: flex; align-items: baseline; gap: 8px; }
.rechner-input { flex: 1; min-width: 0; background: transparent; border: none; color: var(--text); font-family: var(--font-display); font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; padding: 0; }
.rechner-input:focus { outline: none; }
.rechner-sym { font-size: 17px; color: var(--muted); font-weight: 500; }
.rechner-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.rechner-divider::before, .rechner-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.rechner-note { margin: 0; font-size: 12.5px; color: var(--faint); line-height: 1.5; }

.pair-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.conv-table { padding: 0; overflow: hidden; }
.conv-table-head { padding: 16px 18px 12px; font-family: var(--font-display); font-size: 16px; font-weight: 600; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.conv-table-sub { font-size: 12.5px; color: var(--faint); font-family: var(--font-ui); font-weight: 400; }
.conv-table-row { display: flex; justify-content: space-between; padding: 9px 18px; border-top: 1px solid var(--border); font-size: 14px; }
.conv-table-row .num:last-child { font-weight: 600; }
a.conv-table-row { text-decoration: none; color: inherit; transition: background .12s; }
a.conv-table-row:hover { background: var(--surface2); }
a.conv-table-row:hover .num:last-child { color: var(--accent); }

/* Amount internal-link chips (Beliebte / Andere Beträge) */
.amt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.amt-chip { display: inline-flex; align-items: center; padding: 8px 13px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; transition: border-color .12s, background .12s; }
.amt-chip:hover { border-color: var(--accent); background: var(--surface2); }
.amt-chip-rate { color: var(--accent); border-color: var(--accent-soft); background: var(--accent-soft); }

/* Bank page: real-vs-estimate badge + official rate-source note */
.page-head-badges { margin: 8px 0 0; }
.bank-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 20px; background: var(--surface2); color: var(--muted); border: 1px solid var(--border); }
.bank-badge-real { background: var(--up-soft); color: var(--up); border-color: color-mix(in srgb, var(--up) 25%, transparent); }
.rate-tag { font-size: 9.5px; font-weight: 700; letter-spacing: 0.03em; color: var(--faint); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; white-space: nowrap; }
.rate-tag-real { color: var(--up); background: var(--up-soft); border-color: color-mix(in srgb, var(--up) 25%, transparent); }
.bank-source { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; font-size: 13.5px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface2); }
.bank-source-label { color: var(--muted); }
.bank-source a { color: var(--accent); font-weight: 600; text-decoration: none; }
.bank-source a:hover { text-decoration: underline; }

/* Embed slots (panel-managed raw code). The masthead reserves a fixed height so
   an async-loading ad doesn't shift the page (CLS). */
.masthead-ad { margin-top: 14px; min-height: 290px; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.masthead-ad:empty { display: none; }
@media (max-width: 620px) { .masthead-ad { min-height: 260px; } }
.footer-embed { display: flex; justify-content: center; padding: 8px 0 4px; }
.pair-about { max-width: 820px; }
.pair-about p { font-size: 14.5px; line-height: 1.65; color: var(--muted); margin: 0 0 12px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: var(--surface); }
.faq-q { font-weight: 600; font-size: 15px; color: var(--text); }
.faq-a { margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ── Simple page head + markets ──────────────────────────────────────────── */
.page-head { padding: 40px 0 8px; }
.page-title { font-family: var(--font-display); font-size: 32px; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.page-lede { margin: 12px 0 0; max-width: 640px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.markets-cols { grid-template-columns: minmax(150px, 1.7fr) 1fr 1fr 1fr 1fr 80px; }
.bank-cols { grid-template-columns: minmax(160px, 1.7fr) 110px 1fr 1fr 90px; }
.bankdet-cols { grid-template-columns: minmax(150px, 1.7fr) 1fr 1fr 1fr; }
.bank-conv { max-width: 640px; }
.bank-conv-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; align-items: end; }
.badge.sq { border-radius: 7px; }
.best-badge { font-size: 9.5px; font-weight: 700; letter-spacing: 0.04em; color: var(--up); background: var(--up-soft); border-radius: 5px; padding: 2px 6px; white-space: nowrap; }
.type-chip { font-size: 11px; font-weight: 600; color: var(--muted); background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px; white-space: nowrap; }

/* ── Content pages ───────────────────────────────────────────────────────── */
.content-page { padding-top: 8px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 20px 0 0; font-size: 12.5px; color: var(--faint); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-cur { color: var(--text); }
.content-article { max-width: 760px; margin: 0 auto; }
.content-head { padding: 20px 0 8px; }
.content-meta { display: flex; align-items: center; gap: 10px; }
.content-badge { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 3px 9px; text-transform: uppercase; }
.content-date { font-size: 12.5px; color: var(--faint); }
.content-title { font-family: var(--font-display); font-size: 34px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 12px 0 0; text-wrap: balance; }
.content-lede { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
.content-hero { display: block; width: 100%; max-height: 380px; object-fit: cover; border-radius: 14px; border: 1px solid var(--border); margin: 20px 0; }
.content-body { font-size: 15.5px; line-height: 1.7; color: var(--text); }
.content-body p { margin: 0 0 16px; color: var(--muted); }
.content-body h2 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin: 28px 0 12px; color: var(--text); }
.content-body h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin: 22px 0 10px; color: var(--text); }
.content-body a { color: var(--accent); }
.content-body img { max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border); margin: 8px 0; }
.content-body img.fleft { float: left; margin: 4px 16px 12px 0; max-width: 50%; }
.content-body ul, .content-body ol { margin: 0 0 16px; padding-left: 22px; color: var(--muted); }
.content-body li { margin: 4px 0; }
.content-body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.content-body td, .content-body th { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.btn-accent { display: inline-block; padding: 10px 16px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 14px; text-decoration: none; }
.btn-accent:hover { filter: brightness(1.06); }

.content-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 16px; }
.content-card { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.content-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.content-card-img { display: block; height: 120px; background-size: cover; background-position: center; background-color: var(--surface2); }
.content-card-img.placeholder { background: repeating-linear-gradient(45deg, var(--surface2), var(--surface2) 10px, var(--surface) 10px, var(--surface) 20px); }
.content-card-meta { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; color: var(--accent); text-transform: uppercase; padding: 12px 14px 0; }
.content-card-title { font-size: 14.5px; font-weight: 600; line-height: 1.4; padding: 6px 14px 14px; }

/* ── Tweaks (admin) ──────────────────────────────────────────────────────── */
.tweaks { padding-top: 24px; }
.tw-login { max-width: 360px; margin: 60px auto; padding: 24px; }
.tw-login-form { display: flex; gap: 8px; margin-top: 16px; }
.tw-login-form input { flex: 1; height: 40px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface2); color: var(--text); padding: 0 12px; }
.tw-err { color: var(--down); font-size: 13px; margin-top: 10px; }
.tw-pinned { padding: 16px 18px; margin-bottom: 16px; }
.tw-pinned-head { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.tw-pinned-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tw-pinned-row input { flex: 1; min-width: 200px; height: 38px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface2); color: var(--text); padding: 0 12px; font-size: 14px; }
.tw-settings { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 16px; align-items: start; }
.tw-settings .tw-pinned { margin-bottom: 0; }
.tw-flash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); gap: 10px; }
.tw-f { display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.tw-f input { height: 36px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface2); color: var(--text); padding: 0 8px; }
.tw-f input[type=color] { padding: 2px; cursor: pointer; }
.tw-f select { height: 36px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface2); color: var(--text); padding: 0 8px; font-size: 13px; }
.tw-flash-test { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.tw-flash-test .num { font-family: var(--font-display); font-size: 18px; font-weight: 600; padding: 2px 6px; }
.tw-tb { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.tw-tb button { height: 30px; min-width: 32px; padding: 0 9px; border-radius: 7px; border: 1px solid var(--border); background: var(--surface2); color: var(--muted); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.tw-tb button:hover { color: var(--text); border-color: var(--border2); }
.tw-tb-toggle { margin-left: auto; }
.tw-preview { border: 1px solid var(--border); border-radius: 9px; background: var(--surface2); padding: 14px; min-height: 200px; }
.tw-cats-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tw-cat-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; background: var(--surface2); border: 1px solid var(--border); border-radius: 999px; padding: 4px 6px 4px 12px; }
.tw-cat-n { font-size: 11px; color: var(--faint); }
.tw-cat-del { width: 20px; height: 20px; border-radius: 50%; border: none; background: transparent; color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer; }
.tw-cat-del:hover { background: var(--down-soft); color: var(--down); }
.tw-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 0 16px; }
.tw-shell { display: grid; grid-template-columns: 190px 1fr; gap: 24px; align-items: start; padding-top: 12px; }
.tw-nav { display: flex; flex-direction: column; gap: 3px; }
.tw-nav-brand { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); padding: 4px 12px 8px; }
.tw-nav-item { text-align: left; padding: 10px 13px; border-radius: 9px; border: none; background: none; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tw-nav-item:hover { background: var(--surface2); color: var(--text); }
.tw-nav-item.is-active { background: var(--accent); color: var(--accent-ink); }
.tw-nav-logout { margin-top: 14px; text-align: left; padding: 9px 13px; border-radius: 9px; border: 1px solid var(--border); background: none; color: var(--muted); font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tw-nav-logout:hover { border-color: var(--border2); color: var(--text); }
.tw-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.tw-sec-head h2 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin: 0; }
.tw-title { font-family: var(--font-display); font-size: 26px; font-weight: 600; margin: 0; }
.tw-actions { display: flex; gap: 8px; }
.tw-grid { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
.tw-main { min-height: 72vh; }
.tw-list { padding: 0; overflow: hidden auto; max-height: calc(72vh - 60px); }
.tw-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tw-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); padding: 11px 14px; background: var(--surface2); }
.tw-table td { padding: 10px 14px; border-top: 1px solid var(--border); }
.tw-table a { color: var(--text); text-decoration: none; font-weight: 600; }
.tw-table a:hover { color: var(--accent); }
.tw-type { font-size: 11px; color: var(--muted); background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; }
.tw-on { color: var(--up); } .tw-off { color: var(--faint); }
.tw-edit { font-size: 12.5px; font-weight: 600; color: var(--accent); background: none; border: 1px solid var(--border); border-radius: 7px; padding: 5px 10px; }
.tw-edit:hover { border-color: var(--accent); }
.tw-empty { padding: 28px; text-align: center; color: var(--faint); }
.tw-editor { padding: 20px; display: flex; flex-direction: column; gap: 12px; order: -1; }
.tw-field { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.tw-hint { font-weight: 400; color: var(--faint); }
.tw-field input, .tw-field select, .tw-field textarea { height: 38px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface2); color: var(--text); padding: 0 12px; font-size: 14px; font-family: inherit; }
.tw-field textarea { height: auto; padding: 10px 12px; line-height: 1.5; resize: vertical; }
#f-body { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.tw-row3 { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.tw-check { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; height: 38px; }
.tw-editor-actions { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.tw-ghost { padding: 9px 14px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-weight: 600; font-size: 13.5px; }
.tw-ghost:hover { color: var(--text); border-color: var(--border2); }
.tw-danger { padding: 9px 14px; border-radius: 9px; border: 1px solid var(--down); background: transparent; color: var(--down); font-weight: 600; font-size: 13.5px; margin-left: auto; }
.tw-msg { font-size: 13px; color: var(--up); }

/* Bank-pages editor */
.tw-bank-index { border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 12px; }
.tw-bank-ixhead { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); }
.tw-bank { border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 12px; background: var(--surface2); }
.tw-bank-top { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.tw-bank-top .b-name { flex: 1 1 150px; min-width: 130px; height: 38px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 0 12px; font-size: 14px; font-weight: 600; }
.tw-bank-top .b-type { height: 38px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 0 8px; font-size: 13px; }
.tw-bank-m { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--muted); }
.tw-bank-m input { width: 74px; height: 38px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 0 9px; font-size: 14px; }
.tw-bank-sc { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); height: 38px; }
.tw-bank-top .b-del { margin-left: auto; align-self: center; }
.tw-bank-seo { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.tw-bank-seo .b-mtitle, .tw-bank-seo .b-mdesc { border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 9px 12px; font-size: 13px; font-family: inherit; width: 100%; }
.tw-bank-seo .b-mdesc { line-height: 1.5; resize: vertical; }
.tw-banks code { font-size: 12px; background: var(--surface2); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; }
.tw-pm-path { color: var(--accent, var(--up)); font-weight: 600; }
.tw-bank-seo .pm-title, .tw-bank-seo .pm-desc { border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 9px 12px; font-size: 13px; font-family: inherit; width: 100%; }
.tw-bank-seo .pm-desc { line-height: 1.5; resize: vertical; }

/* Glossary (German→English reference) */
.tw-glossar { max-height: calc(72vh - 36px); overflow: hidden auto; }
.tw-gl-group { margin-top: 18px; }
.tw-gl-group:first-of-type { margin-top: 6px; }
.tw-gl-head { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.tw-gl-list { margin: 0; }
.tw-gl-row { display: grid; grid-template-columns: 220px 1fr; gap: 14px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.tw-gl-row dt { margin: 0; font-weight: 600; color: var(--text); font-size: 14px; }
.tw-gl-row dd { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
@media (max-width: 620px) { .tw-gl-row { grid-template-columns: 1fr; gap: 2px; } }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 920px) {
  [data-desktop] { display: none !important; }
  /* Tighter gaps + keep the controls from being squeezed (they overflow at 22px). */
  .header-inner { gap: 10px; }
  .live-badge, .theme-toggle, .nav-toggle { flex-shrink: 0; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: block; position: relative; padding: 6px 24px 14px; }
  .mobile-menu[hidden] { display: none; }
  .mobile-link { display: block; padding: 12px 4px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15.5px; border-bottom: 1px solid var(--border); }
  .mobile-link.is-active { color: var(--accent); }
  .mobile-search { width: 100%; margin-top: 12px; height: 40px; box-sizing: border-box; }
  .pinned-bar { top: 60px; }
  .content-title { font-size: 27px; }
  .tw-grid { grid-template-columns: 1fr; }
  .tw-settings { grid-template-columns: 1fr; }
  .tw-shell { grid-template-columns: 1fr; }
  .tw-nav { flex-direction: row; overflow-x: auto; position: static; gap: 6px; padding-bottom: 4px; }
  .tw-nav-brand { display: none; }
  .tw-nav-logout { margin-top: 0; }
  .hero-title { font-size: 32px; }
  .conv-grid { grid-template-columns: 1fr; }
  .conv-swap { justify-self: center; transform: rotate(90deg); }
  .conv-big { font-size: 28px; }
  .pair-grid { grid-template-columns: 1fr; }
  .pair-tables { grid-template-columns: 1fr; }
  .pair-rate-block { text-align: left; }
  .pair-bigrate { font-size: 30px; }
  /* Tables: tighten padding/gap, drop the secondary "1 Einheit" column. */
  .trow { padding-left: 13px; padding-right: 13px; gap: 8px; }
  .trow .num, .cur-name, .pair-name { font-size: 12.5px; }
  .thead { font-size: 10px; }
  .col-einheit { display: none; }
  .buy-cols { grid-template-columns: minmax(92px, 1.4fr) 1fr 56px; }
  .markets-cols { grid-template-columns: minmax(96px, 1.5fr) 1fr 54px; }
  /* Märkte only: drop the long currency name on mobile (it clips); keep the
     short code label (e.g. "TL (TRY)") + the badge. Other tables keep names. */
  .markets-cols .cur-name { display: none; }
  .markets-cols .cur-code { font-size: 13px; color: var(--muted); }
  .bank-cols { grid-template-columns: minmax(86px, 1.3fr) 1fr 1fr; }
  .bankdet-cols { grid-template-columns: minmax(92px, 1.3fr) 1fr 1fr; }
  .bank-conv-grid { grid-template-columns: 1fr; }
  .chart-card, .rechner-card, .conv-table { min-width: 0; }
  #ue-chart, .chart-area { max-width: 100%; }
  .chart-stats { grid-template-columns: 1fr 1fr; }
  .best-badge { display: none; }
}
