/* GREENCAST Dashboard v1 — Agricom design tokens (KARAZ tracker family) */
:root {
  /* KARAZ tracker tokens (KARAZOrchardsTracker.jsx T object, verbatim 2026-07-11) */
  --teal: #15803D; --teal-dark: #14532D; --teal-deep: #0F3D1E; --teal-light: #F0FDF4;
  --bg: #FAFBFC; --white: #FFFFFF;
  --border: #E2E8F0; --border-light: #F1F5F9;
  --text: #0F172A; --text-mid: #475569; --text-light: #64748B;
  --red: #DC2626; --red-bg: #FEF2F2;
  --amber: #D97706; --amber-bg: #FFFBEB;
  --blue: #0369A1; --blue-bg: #EFF6FF;
  --green: #059669; --green-bg: #ECFDF5;
  --radius: 12px; --radius-sm: 8px; --radius-pill: 20px;
  --font: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Roboto Mono', 'SF Mono', 'Menlo', 'Consolas', monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; }

/* ---- password gate ---- */
#gate { position: fixed; inset: 0; background: var(--bg); display: flex;
  align-items: center; justify-content: center; z-index: 100; }
.gate-card { background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; width: 340px; text-align: center; }
.gate-card h1 { font-size: 18px; color: var(--teal-deep); margin-bottom: 4px; }
.gate-card p { font-size: 12px; color: var(--text-light); margin-bottom: 16px; }
.gate-card input { width: 100%; padding: 9px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px; font-family: var(--font); margin-bottom: 10px; }
.gate-card button { width: 100%; padding: 9px; background: var(--teal);
  color: #fff; border: none; border-radius: var(--radius-sm); font-size: 14px;
  font-weight: 600; cursor: pointer; font-family: var(--font); }
.gate-card button:hover { background: var(--teal-dark); }
.gate-err { color: var(--red); font-size: 12px; margin-top: 8px; min-height: 16px; }

/* ---- app bar: exact tracker structure (56px, separators, pill nav) ---- */
.topbar2 { position: sticky; top: 0; z-index: 40; background: var(--white);
  border-bottom: 1px solid var(--border); display: flex; align-items: center;
  gap: 0; padding: 0 20px; height: 56px; }
.tb-brand { display: flex; align-items: center; gap: 7px; margin-right: 12px; flex-shrink: 0; }
.tb-brand img { height: 26px; width: 26px; object-fit: contain; }
.tb-name { font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: 0.3px; }
.tb-sep { width: 1px; height: 24px; background: var(--border); flex-shrink: 0; margin-right: 12px; }
.tb-nav { display: flex; gap: 2px; margin-right: 12px; }
.tb-nav a { padding: 6px 14px; font-size: 13px; font-weight: 400; color: var(--text-mid);
  text-decoration: none; border: 1px solid transparent; border-radius: var(--radius-pill);
  white-space: nowrap; transition: all 0.15s; }
.tb-nav a:hover { color: var(--teal-dark); }
.tb-nav a.active { font-weight: 600; color: var(--teal-dark); border-color: var(--teal);
  background: var(--teal-light); }
.tb-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* search — tracker pill, magnifier inside */
.search-wrap { position: relative; width: 260px; flex-shrink: 0; }
.search-wrap svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; pointer-events: none; }
.search-wrap input { width: 100%; font-size: 13px; padding: 6px 12px 6px 36px; height: 36px;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  font-family: var(--font); color: var(--text); outline: none; background: var(--bg);
  font-weight: 400; transition: all 0.15s; box-sizing: border-box; }
.search-wrap input:focus { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal);
  background: var(--white); }

/* avatar — tracker 36px gradient circle */
.tenant-badge { width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500; flex-shrink: 0; }

/* crop bar: stat cards span the views column; Datenstand docks over the rail (320px) */
.cropbar { position: sticky; top: 56px; z-index: 39; background: var(--bg);
  padding: 10px 20px; border-bottom: 1px solid var(--border);
  display: flex; gap: 14px; align-items: center; }
.cropbar .crop-filter { flex: 1; }
.cropbar .datenstand { width: 320px; flex-shrink: 0; text-align: left; }
.page { padding: 0 20px 40px; }

/* crop filter: tracker stat-card structure (big colored value, label underneath) */
.crop-filter { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px; }
.crop-filter button { display: flex; align-items: center; gap: 10px; padding: 9px 14px;
  text-align: left; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); cursor: pointer; font-family: var(--font); transition: all 0.15s; }
.crop-filter button:hover { border-color: var(--teal); }
.crop-filter button.active { border-color: var(--teal); background: var(--teal-light);
  box-shadow: 0 0 0 1px var(--teal); }
.crop-filter .cf-icon { width: 34px; height: 34px; flex-shrink: 0; }
.crop-filter .cf-value { font-size: 19px; font-weight: 800; line-height: 1.15; }
.crop-filter .cf-value.up { color: var(--green); } .crop-filter .cf-value.down { color: var(--red); }
.crop-filter .cf-value.idle { color: var(--text-light); font-weight: 700; }
.crop-filter .cf-label { font-size: 10.5px; font-weight: 600; color: var(--text-mid); margin-top: 1px; }


.bell { display: flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: 13px;
  font-weight: 600; color: var(--text-mid); background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer;
  font-family: var(--font); }
.bell:hover { border-color: var(--teal); color: var(--teal-deep); }
.bell-count { background: var(--amber-bg); color: var(--amber); font-size: 11px;
  font-weight: 700; padding: 1px 7px; border-radius: 10px; }
.bell-count.hot { background: var(--red-bg); color: var(--red); }

/* group subheaders when crop filter = Alle */
.grp-head { grid-column: 1 / -1; font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--text-light); margin: 6px 0 -2px; }

/* ---- notifications drawer ---- */
#drawer-overlay { position: fixed; inset: 0; background: rgba(30,41,59,0.35);
  display: none; z-index: 60; }
#drawer { position: absolute; top: 0; right: 0; height: 100%; width: 380px; max-width: 92vw;
  background: var(--white); border-left: 1px solid var(--border);
  display: flex; flex-direction: column; }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 14px; }
.drawer-foot { padding: 12px 14px; border-top: 1px solid var(--border-light); }
.drawer-foot .cta { display: block; text-align: center; background: var(--teal);
  color: #fff; font-weight: 600; font-size: 13px; padding: 9px; border-radius: var(--radius-sm);
  text-decoration: none; }
.drawer-foot .cta:hover { background: var(--teal-dark); }
.notif { display: flex; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--border-light);
  align-items: flex-start; cursor: pointer; }
.notif:hover { background: var(--bg); }
.notif.static { cursor: default; }
.notif .n-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.notif .n-title { font-size: 13px; font-weight: 600; }
.notif .n-sub { font-size: 11px; color: var(--text-light); margin-top: 2px; }
/* ---- weather header card (exact tracker side-panel structure) ---- */
.feed-col { gap: 14px; }
.weather-card { margin-bottom: 0; padding: 12px 14px; }
.wx-loc { font-size: 10px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--teal-dark); display: flex; align-items: center; gap: 5px; }
.wx-loc svg { width: 11px; height: 11px; }
.wx-row { display: flex; gap: 20px; align-items: center; margin-top: 8px; }
.wx-glyph { width: 38px; height: 38px; flex-shrink: 0; color: var(--teal); }
.wx-glyph svg { width: 100%; height: 100%; }
.wx-item { font-size: 22px; font-weight: 800; line-height: 1.1; }
.wx-item.wx-temp small { font-size: 13px; color: var(--text-light); font-weight: 700; }
.wx-item .wx-label { display: block; font-size: 8.5px; font-weight: 700; color: var(--text-light);
  text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }
.weather-card details { margin-top: 10px; }
.weather-card summary { font-size: 12px; font-weight: 700; color: var(--text);
  padding: 8px 10px; cursor: pointer; border: 1px solid var(--border);
  border-radius: var(--radius-sm); list-style: none; position: relative; }
.weather-card summary::-webkit-details-marker { display: none; }
.weather-card summary::after { content: "⌄"; position: absolute; right: 12px; top: 6px;
  color: var(--text-light); transition: transform 0.15s; }
.weather-card details[open] summary::after { transform: rotate(180deg); top: 9px; }
.weather-card details[open] summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.wx-days { border: 1px solid var(--border); border-top: none; padding: 4px 8px 6px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.wx-day { display: grid; grid-template-columns: 38px 20px 1fr 40px 48px; align-items: center;
  font-size: 11.5px; padding: 4px 4px; color: var(--text-mid); border-radius: var(--radius-sm); }
.wx-day b { font-weight: 700; color: var(--text); }
.wx-day .wd-glyph { width: 15px; height: 15px; color: var(--text-light); }
.wx-day .wd-glyph svg { width: 100%; height: 100%; }
.wx-day .wd-temp small { color: var(--text-light); }
.wx-day .wd-hum { text-align: right; color: var(--text-mid); }
.wx-day .wd-rain { text-align: right; font-weight: 700; color: var(--green); }
.wx-day .wd-rain.dry { color: var(--text-muted, #CBD5E1); font-weight: 400; }
.wx-day.today { background: var(--teal-light); box-shadow: inset 0 0 0 1px var(--teal); }
.wx-day.today b { color: var(--teal-dark); }
.wx-src { font-size: 9px; color: var(--text-light); margin-top: 8px; }

/* Bilanz block: tracker risk-summary structure (2-column label/value pairs) */
.rs-grid { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 4px 10px;
  font-size: 11px; color: var(--text-mid); margin-top: 7px; align-items: baseline; }
.rs-grid b { font-weight: 700; text-align: right; }

/* ---- right rail (tracker layout: stats block + notifications + big CTA) ---- */
.content-row { display: flex; gap: 14px; align-items: flex-start; padding-top: 14px; }
.views { flex: 1; min-width: 0; }
.feed-col { width: 320px; flex-shrink: 0; position: sticky; top: 118px;
  display: flex; flex-direction: column; gap: 12px; }
.rail-stats { margin-bottom: 0; padding: 12px 14px; }
.rail-stats .rs-head { display: flex; justify-content: space-between; align-items: baseline; }
.rail-stats .rs-title { font-size: 12px; font-weight: 700; }
.rail-stats .rs-big { font-size: 18px; font-weight: 800; color: var(--teal-deep); }
.rail-stats .rs-row { display: flex; justify-content: space-between; font-size: 11px;
  color: var(--text-mid); margin-top: 5px; }
.rail-stats .rs-row b { font-weight: 700; }
.rail-stats a { font-size: 11px; color: var(--teal-dark); font-weight: 600; text-decoration: none; }
.feed-card { margin-bottom: 0; display: flex; flex-direction: column;
  max-height: calc(100vh - 320px); }
.feed-body { overflow-y: auto; padding: 6px 12px; flex: 1; }
.active-chip { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 10px;
  background: var(--red-bg); color: var(--red); }
.notif-group { font-size: 10px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase;
  padding: 6px 10px; margin: 8px -12px 2px; display: flex; justify-content: space-between;
  align-items: center; }
.notif-group .ng-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block;
  margin-right: 6px; }
.notif .n-bubble { width: 30px; height: 30px; border-radius: 8px; display: flex; flex-shrink: 0;
  align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.notif .n-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; align-items: center; }
.notif .n-tag { font-size: 9px; font-weight: 700; padding: 1.5px 6px; border-radius: 4px;
  background: var(--bg); color: var(--text-mid); font-family: ui-monospace, monospace; }
.notif .n-chip { font-size: 9px; font-weight: 800; padding: 1.5px 7px; border-radius: 9px;
  white-space: nowrap; }
.notif .n-date { margin-left: auto; font-size: 10px; color: var(--text-light); flex-shrink: 0; }
.cta-big { display: block; text-align: center; background: var(--teal-dark); color: #fff;
  font-weight: 700; font-size: 14px; padding: 12px; border-radius: 14px; text-decoration: none; }
.cta-big:hover { background: var(--teal-deep); }
#bell { display: none; }
@media (max-width: 1100px) {
  .feed-col { display: none; }
  #bell { display: flex; }
}
@media (max-width: 760px) {
  .page { padding: 0 12px 32px; }
  .topbar2, .cropbar { padding-left: 12px; padding-right: 12px; }
  .datenstand { display: none; }
}

/* hero banner (tracker compliance-banner pattern) — slim strip in the main column */
.hero-banner { background: linear-gradient(100deg, #14532D, #166534); color: #fff;
  border-radius: var(--radius); padding: 10px 16px; margin: 0 0 14px; display: flex;
  justify-content: space-between; align-items: center; gap: 14px; cursor: pointer; }
.hero-banner .hb-label { font-size: 9px; text-transform: uppercase; letter-spacing: 0.7px;
  font-weight: 700; color: rgba(255,255,255,0.7); }
.hero-banner .hb-title { font-size: 14px; font-weight: 800; margin-top: 1px; }
.hero-banner .hb-sub { font-size: 10px; color: rgba(255,255,255,0.7); margin-top: 1px; }
.hero-banner .hb-value { font-size: 22px; font-weight: 800; white-space: nowrap; }
.hero-banner .hb-value.up { color: #86EFAC; } .hero-banner .hb-value.down { color: #FCA5A5; }

/* ---- shell ---- */
/* aligned content column: bars and page share one 1600px grid on wide screens */
#app { display: none; flex-direction: column; }
.page { max-width: 1640px; margin: 0 auto; width: 100%; }
.topbar2, .cropbar {
  padding-left: max(20px, calc((100% - 1600px) / 2));
  padding-right: max(20px, calc((100% - 1600px) / 2));
}

/* one-page fixed frame (tracker pattern): app fills the viewport, panels scroll inside */
@media (min-width: 1101px) {
  body { overflow: hidden; }
  #app { height: 100vh; }
  .page { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
  .hero-banner { margin: 12px 0; flex-shrink: 0; }
  .stale-banner { flex-shrink: 0; }
  .content-row { flex: 1; min-height: 0; }
  .views { height: 100%; overflow-y: auto; padding-right: 2px; }
  .feed-col { height: 100%; position: static; top: auto; }
  .feed-card { flex: 1; min-height: 0; max-height: none; }
  footer.rails { flex-shrink: 0; margin-top: 8px; padding: 8px 0 10px; }
}
header.topbar { display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0 10px; flex-wrap: wrap; gap: 8px; }
.brand { display: flex; align-items: center; gap: 12px; }
.topbar-logo { height: 30px; width: auto; display: block; }
.gate-logo { height: 34px; width: auto; margin: 0 auto 12px; display: block; }
.wordmark { font-size: 17px; font-weight: 800; color: var(--teal-deep); letter-spacing: 0.3px; }
.wordmark span { color: var(--text-light); font-weight: 500; font-size: 13px; margin-left: 8px; }
.datenstand { text-align: right; }
.datenstand .ds-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--text-light); font-weight: 700; }
.datenstand .ds-value { font-size: 16px; font-weight: 800; color: var(--teal-deep); }

.stale-banner { background: var(--red-bg); border: 1px solid var(--red); color: var(--red);
  border-radius: var(--radius-sm); padding: 8px 14px; font-size: 13px; font-weight: 600;
  margin-bottom: 12px; display: none; }

nav.sections { display: flex; gap: 6px; border-bottom: 1px solid var(--border);
  margin-bottom: 16px; overflow-x: auto; }
nav.sections a { padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--text-mid);
  text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
nav.sections a.active { color: var(--teal-dark); border-bottom-color: var(--teal); }

/* ---- hero headline (the 5-second takeaway; replaced the KPI strip 2026-07-11) ---- */
.hero-headline { font-size: 19px; font-weight: 700; color: var(--text);
  padding: 2px 2px 14px; line-height: 1.35; }
.hero-headline b { color: var(--teal-deep); }
.hero-headline .delta { font-size: 17px; }
.hero-headline.clickable { cursor: pointer; }
.hero-headline.clickable:hover b { text-decoration: underline; }

/* keyboard focus (a11y quick win, UX audit 07-11) */
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 2px; }

/* ---- Top-Bewegungen strip (flag, don't re-sort) ---- */
.top-moves { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.top-moves .tm-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-light); font-weight: 700; }
.tm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--white);
  font-size: 12px; font-weight: 600; color: var(--text); cursor: pointer; font-family: var(--font); }
.tm-chip:hover { border-color: var(--teal); }

.kpi { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 14px; }
.kpi .k-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-light); font-weight: 700; }
.kpi .k-value { font-size: 18px; font-weight: 800; margin-top: 2px; }
.kpi .k-sub { font-size: 11px; color: var(--text-light); }

/* ---- cards ---- */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 14px; overflow: hidden; }
/* tabbed views: only the active section is shown (2026-07-11) */
section.view { display: none; }
section.view.active { display: block; }
.card-head { padding: 0 14px; height: 38px; border-bottom: 1px solid var(--border-light);
  display: flex; justify-content: space-between; align-items: center; }
.card-head .title { font-size: 12px; font-weight: 700; }
.card-body { padding: 14px; }

.badge { display: inline-block; padding: 2px 8px; border-radius: var(--radius-sm);
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.badge.preview { background: var(--amber-bg); color: var(--amber); }
.badge.ok { background: var(--green-bg); color: var(--green); }
.badge.miss { background: var(--red-bg); color: var(--red); }
.badge.open { background: var(--blue-bg); color: var(--blue); }
.badge.neutral { background: var(--bg); color: var(--text-light); }

/* ---- product tabs + cell grid ---- */
.tabs { display: flex; gap: 6px; }
.tabs button { padding: 5px 12px; font-size: 12px; font-weight: 600; border: 1px solid var(--border);
  background: var(--white); color: var(--text-mid); border-radius: var(--radius-sm);
  cursor: pointer; font-family: var(--font); }
.tabs button.active { background: var(--teal); border-color: var(--teal); color: #fff; }

.cell-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.cell-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px;
  cursor: pointer; background: var(--white); border-left: 4px solid transparent; }
.cell-card:hover { border-color: var(--teal); }
/* flag-in-place: moved cards get a heavy left border + faint tint, position never changes */
.cell-card.moved-up { border-left-color: var(--green); background: #FBFEFC; }
.cell-card.moved-down { border-left-color: var(--red); background: #FEFBFB; }
.cell-card .c-label { font-size: 12px; font-weight: 700; }
.cell-card .c-venue { font-size: 10px; color: var(--text-light); font-weight: 600; }
.cell-card .c-price { font-size: 20px; font-weight: 800; margin: 4px 0 0; }
.cell-card .c-price small { font-size: 11px; font-weight: 600; color: var(--text-light); }
.cell-card .c-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.cell-card .c-date { font-size: 10px; color: var(--text-light); }
.cell-card .c-date.old { color: var(--amber); font-weight: 700; }
.delta { font-size: 11px; font-weight: 700; }
.delta.up { color: var(--green); } .delta.down { color: var(--red); } .delta.flat { color: var(--text-light); }
.spark { width: 100%; height: 34px; margin-top: 6px; position: relative; }
.spark canvas { width: 100% !important; height: 34px !important; }

/* ---- in-place detail (v1.1: replaced the modal) ---- */
.detail-panel { grid-column: 1 / -1; }
.detail-inner { border: 1px solid var(--teal); border-radius: var(--radius);
  background: var(--white); padding: 12px; }
.dp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.dp-head .title { font-size: 12px; font-weight: 700; }
.dp-close { background: none; border: none; font-size: 16px; cursor: pointer; color: var(--text-light); }
.dp-chart { position: relative; height: 260px; }
tr.detail-row > td { padding: 8px 0; border-bottom: none; }
.rails-note { font-size: 11px; color: var(--text-light); margin-top: 8px; }

/* ---- view toggle + Marktpuls table ---- */
.head-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.viewtoggle { display: flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.viewtoggle button { padding: 4px 10px; font-size: 11px; font-weight: 600; border: none;
  background: var(--white); color: var(--text-mid); cursor: pointer; font-family: var(--font); }
.viewtoggle button.active { background: var(--teal-deep); color: #fff; }
.table-wrap { overflow-x: auto; }
table.mp-table th { cursor: pointer; user-select: none; white-space: nowrap; }
table.mp-table td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
tr.mp-row { cursor: pointer; }
tr.mp-row:hover td { background: var(--bg); }
tr.mp-row.moved-up > td:first-child { border-left: 4px solid var(--green); }
tr.mp-row.moved-down > td:first-child { border-left: 4px solid var(--red); }
tr.mp-row > td:first-child { border-left: 4px solid transparent; }

/* ---- outlook ---- */
.outlook-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.outlook-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.outlook-card .o-dir { font-size: 16px; font-weight: 800; margin: 4px 0; }
.o-band { font-size: 13px; font-weight: 700; color: var(--teal-deep); margin-top: 2px; }
.o-band-label { font-size: 10px; color: var(--amber); font-weight: 700; }

/* ---- bilanz ---- */
.bilanz-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px; margin-bottom: 12px; }
table.ledger { width: 100%; border-collapse: collapse; font-size: 12px; }
table.ledger th { text-align: left; padding: 6px 8px; color: var(--text-light); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border); }
table.ledger td { padding: 6px 8px; border-bottom: 1px solid var(--border-light); }
/* method note promoted to section lead (2026-07-11): process is the differentiator */
.method-hero { font-size: 14px; font-weight: 700; color: var(--text); background: var(--bg);
  border-left: 3px solid var(--teal); border-radius: var(--radius-sm);
  padding: 10px 12px; margin-bottom: 12px; line-height: 1.4; }

/* ---- kontext / footer ---- */
.kontext-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
/* deep dive embed: summary tiles on top, Jonas's full analysis below (2026-07-11) */
.deepdive { margin-top: 14px; }
.deepdive .dd-head { font-size: 12px; font-weight: 700; margin-bottom: 8px;
  display: flex; justify-content: space-between; align-items: center; }
.deepdive .dd-head a { font-size: 11px; color: var(--teal-dark); font-weight: 600; }
#kontext-frame { width: 100%; height: 1500px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--white); }
@media (max-width: 640px) { #kontext-frame { height: 1100px; } }
footer.rails { border-top: 1px solid var(--border); margin-top: 24px; padding-top: 12px;
  font-size: 11px; color: var(--text-light); display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 6px; }
footer.rails a { color: var(--teal-dark); }
@media (max-width: 640px) {
  .kpi .k-value { font-size: 15px; }
  .cell-grid { grid-template-columns: 1fr 1fr; }
  .hero-headline { font-size: 16px; } .hero-headline .delta { font-size: 15px; }
  .card-head { height: auto; min-height: 38px; padding: 8px 14px; flex-wrap: wrap; gap: 6px; }
  .dp-chart { height: 200px; }
  .topbar-logo { height: 24px; }
}
@media (max-width: 430px) {
  .cell-grid { grid-template-columns: 1fr; }
  .datenstand .ds-value { font-size: 14px; }
}
