/* Kapital. — warmes Erdton-Schema: Sand, Espresso, Terrakotta, Ocker, Moos */

:root {
  --bg: #f3ede3;
  --surface: #faf6ef;
  --surface-2: #ebe3d6;
  --line: #dccfbd;
  --text: #2b2118;
  --muted: #7a6a58;
  --accent: #b5582e;        /* Terrakotta */
  --accent-2: #b8862f;      /* Ocker */
  --up: #4d7a37;            /* Moos */
  --down: #a83a26;          /* Rost */
  --up-bg: rgba(77, 122, 55, .12);
  --down-bg: rgba(168, 58, 38, .1);
  --chart-grid: rgba(43, 33, 24, .08);
  --shadow: 0 1px 2px rgba(60, 40, 20, .05), 0 12px 32px -12px rgba(60, 40, 20, .14);

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #1a1510;            /* Umbra */
  --surface: #221c15;
  --surface-2: #2b231a;
  --line: #3b3127;
  --text: #efe6d8;
  --muted: #a8998a;
  --accent: #d9885a;
  --accent-2: #d7ab5c;
  --up: #9cbf72;
  --down: #e2785c;
  --up-bg: rgba(156, 191, 114, .13);
  --down-bg: rgba(226, 120, 92, .13);
  --chart-grid: rgba(239, 230, 216, .07);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.55 var(--sans);
  font-feature-settings: "tnum" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--bg); }

.wrap { width: min(1240px, 100% - clamp(32px, 6vw, 96px)); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--muted); }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { font: 400 30px/1 var(--serif); text-decoration: none; letter-spacing: -.01em; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: 22px; margin-right: auto; }
.nav a { text-decoration: none; font-size: 13.5px; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--text); }
.search-btn {
  display: flex; align-items: center; gap: 10px;
  min-width: 260px; height: 38px; padding: 0 10px 0 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font-size: 13.5px; transition: border-color .2s;
}
.search-btn:hover { border-color: var(--accent); }
.search-btn span { flex: 1; text-align: left; }
.search-btn svg, .search-form svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
kbd {
  font: 500 11px/1 var(--sans); padding: 4px 7px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--muted);
}
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
}
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.icon-btn .fill { fill: currentColor; stroke: none; }

/* ---------- Ticker-Band ---------- */
.tape { overflow: hidden; border-top: 1px solid var(--line); height: 34px; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tape-track { display: flex; width: max-content; animation: tape 60s linear infinite; }
.tape:hover .tape-track { animation-play-state: paused; }
.tape-item { display: inline-flex; align-items: center; gap: 8px; padding: 0 22px; height: 34px; font-size: 12.5px; white-space: nowrap; border-right: 1px solid var(--line); }
.tape-item b { font-weight: 600; }
.tape-item i { font-style: normal; font-weight: 500; }
@keyframes tape { to { transform: translateX(-50%); } }

.demo-note { background: var(--accent-2); color: #1a1510; font-size: 13px; font-weight: 500; padding: 8px 0; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 11.5px; font-weight: 600; color: var(--muted); margin: 0 0 18px; }
.hero h1 {
  font: 400 clamp(46px, 8.4vw, 116px)/.95 var(--serif);
  letter-spacing: -.025em; margin: 0; max-width: 14ch; text-wrap: balance;
}
.hero h1 em { color: var(--accent); }
.lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 62ch; margin: 28px 0 0; text-wrap: pretty; }
.lede b { color: var(--text); font-weight: 600; }
.sessions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 48px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.session { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 12px; padding: 16px 18px; background: var(--surface); }
.session .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); opacity: .45; }
.session.open .dot { background: var(--up); opacity: 1; box-shadow: 0 0 0 0 var(--up); animation: pulse 2.4s infinite; }
.session b { font-weight: 600; font-size: 14px; }
.session span { color: var(--muted); font-size: 13px; margin-left: 4px; }
.session time { font: 400 22px/1 var(--serif); }
.session small { grid-column: 2 / -1; color: var(--muted); font-size: 12px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--up) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }

/* ---------- Abschnitte ---------- */
main > section { padding-bottom: clamp(64px, 9vw, 120px); }
.sec-head { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; align-items: baseline; border-top: 1px solid var(--text); padding-top: 18px; margin-bottom: 32px; }
.sec-no { font: 500 12px/1 var(--sans); color: var(--accent); letter-spacing: .1em; }
.sec-head h2 { font: 400 clamp(34px, 4.4vw, 54px)/1 var(--serif); margin: 0; letter-spacing: -.015em; }
.sec-head p { grid-column: 2; margin: 6px 0 0; color: var(--muted); max-width: 60ch; }

/* ---------- Übersicht ---------- */
.overview { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto 44px; gap: 4px 12px;
  text-align: left; padding: 20px; min-height: 150px; border: 0; background: var(--surface);
  transition: background-color .25s var(--ease);
}
.card:hover { background: var(--surface-2); }
.card-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.card-price { grid-row: 2; font: 400 28px/1.1 var(--serif); }
.card .chg { grid-row: 1; grid-column: 2; font-size: 13px; font-weight: 600; }
.card .spark { grid-column: 1 / -1; grid-row: 3; width: 100%; height: 44px; }
.skeleton { background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -150% 0; } }

.spark { overflow: visible; }
.spark path { fill: none; stroke: currentColor; stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.spark.up { color: var(--up); }
.spark.down { color: var(--down); }

/* ---------- Analyse ---------- */
.analysis { transition: opacity .3s; }
.analysis.loading .quote-head, .analysis.loading .chart { opacity: .45; }
.quote-head { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 24px; align-items: end; margin-bottom: 28px; }
.ticker { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; background: var(--text); color: var(--bg); }
.qh-id h3 { font: 400 clamp(32px, 4vw, 48px)/1.05 var(--serif); margin: 12px 0 6px; letter-spacing: -.01em; }
.qh-id p { margin: 0; font-size: 13.5px; }
.big-price { font: 400 clamp(38px, 5vw, 60px)/1 var(--serif); letter-spacing: -.02em; }
.qh-change { display: flex; gap: 8px; margin-top: 8px; font-weight: 600; font-size: 14px; }
.pill { padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.pill.up { background: var(--up-bg); }
.pill.down { background: var(--down-bg); }
.pill.flat { background: var(--surface-2); }
.qh-price p { margin: 8px 0 0; }
.qh-actions { display: flex; gap: 10px; }
.btn {
  height: 40px; padding: 0 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  border: 1px solid var(--line); background: var(--surface); transition: all .2s var(--ease);
}
.btn:hover { border-color: var(--text); }
.btn-solid { background: var(--accent); border-color: var(--accent); color: #fff8ef; }
.btn-solid:hover { background: color-mix(in srgb, var(--accent) 85%, #000); border-color: transparent; }
.btn.active { background: var(--accent-2); border-color: var(--accent-2); color: #1a1510; }

.chart-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--surface-2); }
.tabs button { border: 0; background: none; padding: 6px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--muted); transition: all .2s; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.toggle { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); cursor: pointer; }
.toggle input { accent-color: var(--accent); width: 16px; height: 16px; }

.chart { position: relative; height: clamp(280px, 40vw, 420px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; touch-action: pan-y; }
.chart svg { display: block; }
.chart .up { color: var(--up); }
.chart .down { color: var(--down); }
.chart .line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .line { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.1s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chart .area { animation: fade .9s .2s var(--ease) both; }
@keyframes fade { from { opacity: 0; } }
.chart .grid line { stroke: var(--chart-grid); }
.chart .grid text, .chart .xl text { fill: var(--muted); font-size: 11px; font-family: var(--sans); }
.chart .base { stroke: var(--muted); stroke-dasharray: 3 4; opacity: .7; }
.chart .vol rect { fill: var(--text); opacity: .07; }
.chart .sma50 { fill: none; stroke: var(--accent-2); stroke-width: 1.4; }
.chart .sma200 { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 5 4; }
.chart .cx { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 3; }
.chart circle { fill: var(--surface); stroke: currentColor; stroke-width: 2.5; }
.chart .legend-sma { position: absolute; left: 14px; top: 10px; display: flex; gap: 14px; font-size: 11.5px; color: var(--muted); }
.chart .legend-sma i { display: inline-block; width: 14px; height: 2px; margin-right: 6px; vertical-align: middle; }
.tip {
  position: absolute; top: 12px; pointer-events: none; z-index: 2;
  background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 10px;
  font-size: 12px; line-height: 1.4; white-space: nowrap; box-shadow: var(--shadow);
}
.tip b { font: 400 18px/1.1 var(--serif); display: block; }
.chart-empty { display: grid; place-items: center; height: 100%; color: var(--muted); }

.range52 { margin: 28px 0; }
.r52-labels { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.r52-labels b { color: var(--text); font-weight: 600; }
.r52-bar { position: relative; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--down), var(--accent-2), var(--up)); opacity: .9; }
.r52-mark { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--text); transform: translate(-50%, -50%); transition: left .8s var(--ease); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; margin-top: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 0; }
.panel-title { margin: 0 0 16px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 0; }
.stats div { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.stats dt { font-size: 12px; color: var(--muted); }
.stats dd { margin: 2px 0 0; font-weight: 600; font-size: 14.5px; }

.perf { display: grid; gap: 12px; }
.perf-row { display: grid; grid-template-columns: 44px 1fr 72px; align-items: center; gap: 10px; font-size: 13px; }
.perf-row span:first-child { color: var(--muted); font-weight: 600; }
.perf-track { position: relative; height: 10px; }
.perf-track::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--line); }
.perf-fill { position: absolute; top: 0; height: 100%; border-radius: 3px; transition: width .9s var(--ease), left .9s var(--ease); }
.perf-fill.up { background: var(--up); }
.perf-fill.down { background: var(--down); }
.perf-row b { text-align: right; font-weight: 600; }

.signals { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.signals li { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.signals li:last-child { border-bottom: 0; padding-bottom: 0; }
.signals .lbl { font-size: 12.5px; color: var(--muted); }
.signals .val { font-weight: 600; font-size: 14px; }
.signals .tag { grid-row: 1 / 3; grid-column: 2; align-self: center; }

.verdict { background: var(--text); color: var(--bg); border-color: var(--text); }
.verdict .panel-title, .verdict .muted { color: color-mix(in srgb, var(--bg) 60%, var(--text)); }
.verdict-text { font: 400 clamp(21px, 2.1vw, 27px)/1.3 var(--serif); margin: 0 0 18px; text-wrap: pretty; }
.verdict-text em { color: var(--accent-2); }

.news { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.news a { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; text-decoration: none; padding: 10px; margin: 0 -10px; border-radius: 10px; transition: background .2s; }
.news a:hover { background: var(--surface-2); }
.news h5 { margin: 0 0 4px; font-size: 14px; font-weight: 600; line-height: 1.35; }
.news p { margin: 0; font-size: 12px; color: var(--muted); }
.news img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
.news .empty { color: var(--muted); font-size: 14px; }

/* ---------- Tabellen ---------- */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr[data-sym] { cursor: pointer; transition: background .15s; }
.table tbody tr[data-sym]:hover { background: var(--surface-2); }
.table .num { text-align: right; white-space: nowrap; }
.table td b { font-weight: 600; }
.table td small { display: block; color: var(--muted); font-size: 12.5px; max-width: 30ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table .spark { width: 120px; height: 34px; }
.table .empty td { text-align: center; color: var(--muted); padding: 40px 18px; cursor: default; }
.remove { width: 30px; height: 30px; border-radius: 50%; border: 1px solid transparent; background: none; color: var(--muted); font-size: 18px; line-height: 1; }
.remove:hover { border-color: var(--line); color: var(--down); }

/* ---------- Depot ---------- */
.depot-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.depot-summary > div { background: var(--surface); padding: 20px 22px; }
.depot-summary span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.depot-summary b { font: 400 clamp(26px, 3vw, 36px)/1.1 var(--serif); }
.depot-summary small { display: block; margin-top: 4px; font-weight: 600; font-size: 13px; }
.depot-grid { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.depot-form { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 10px; align-items: end; margin-top: 16px; }
.depot-form label, .plan-inputs label { display: grid; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 500; }
.depot-form input {
  height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-size: 14px; min-width: 0;
}
.depot-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.alloc #donut { display: grid; place-items: center; }
.alloc svg { width: 200px; height: 200px; }
.alloc svg circle { fill: none; stroke-width: 5.5; transition: stroke-dasharray .8s var(--ease); }
.alloc .donut-c text { fill: var(--text); }
.legend { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.legend li { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.legend b { font-weight: 600; }

/* ---------- Sparplan ---------- */
.plan { display: grid; grid-template-columns: 380px 1fr; gap: 16px; }
.plan-inputs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 22px; align-content: start; }
.plan-inputs label { grid-template-columns: 1fr auto; font-size: 13px; }
.plan-inputs output { font-weight: 600; color: var(--text); }
.plan-inputs input[type=range] { grid-column: 1 / -1; width: 100%; accent-color: var(--accent); }
.plan-result { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.plan-result .eyebrow { margin-bottom: 8px; }
.plan-total { font: 400 clamp(48px, 7vw, 88px)/1 var(--serif); letter-spacing: -.02em; }
.plan-split { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 18px 0 24px; font-size: 13px; color: var(--muted); }
.plan-split div { display: flex; align-items: center; gap: 8px; }
.plan-split b { color: var(--text); font-weight: 600; margin-left: 4px; }
.sw { width: 10px; height: 10px; border-radius: 3px; }
.sw.paid { background: var(--surface-2); outline: 1px solid var(--line); }
.sw.gain { background: var(--accent); }
.sw.real { background: var(--accent-2); }
.plan-chart { flex: 1; min-height: 200px; display: flex; align-items: flex-end; gap: 3px; }
.plan-chart .bar { flex: 1; display: flex; flex-direction: column-reverse; min-width: 2px; height: 100%; justify-content: flex-start; }
.plan-chart .bar span { display: block; transition: height .6s var(--ease); }
.plan-chart .bar .p { background: var(--surface-2); border-radius: 0 0 3px 3px; }
.plan-chart .bar .g { background: var(--accent); border-radius: 3px 3px 0 0; }

/* ---------- Glossar ---------- */
.glossary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.glossary details { border-bottom: 1px solid var(--line); }
.glossary summary { list-style: none; display: flex; align-items: baseline; gap: 14px; padding: 18px 0; cursor: pointer; }
.glossary summary::-webkit-details-marker { display: none; }
.glossary summary b { font: 400 26px/1.1 var(--serif); }
.glossary summary span { color: var(--muted); font-size: 13.5px; flex: 1; }
.glossary summary::after { content: "+"; font-size: 20px; color: var(--accent); transition: transform .3s var(--ease); }
.glossary details[open] summary::after { transform: rotate(45deg); }
.glossary p { margin: 0 0 20px; color: var(--muted); max-width: 58ch; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 40px 0 56px; }
.foot-inner { display: flex; gap: 40px; align-items: flex-start; }
.foot p { margin: 0; color: var(--muted); font-size: 13px; max-width: 70ch; }

/* ---------- Suche ---------- */
.search {
  width: min(620px, 100% - 32px); margin: 12vh auto auto; padding: 0;
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--text);
  box-shadow: 0 30px 80px -20px rgba(30, 20, 10, .45);
}
.search::backdrop { background: rgba(26, 21, 16, .45); backdrop-filter: blur(4px); }
.search[open] { animation: pop .25s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.search-form { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); margin: 0; }
.search-form svg { width: 20px; height: 20px; color: var(--muted); }
.search-form input { flex: 1; border: 0; background: none; font-size: 17px; outline: none; }
.results { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow-y: auto; }
.results li button { width: 100%; display: grid; grid-template-columns: 110px 1fr auto; gap: 12px; align-items: center; text-align: left; padding: 12px; border: 0; border-radius: 10px; background: none; }
.results li button[aria-selected="true"], .results li button:hover { background: var(--surface-2); }
.results b { font-weight: 600; font-size: 13.5px; }
.results span { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.results small { color: var(--muted); font-size: 12px; }
.results .hint { padding: 22px 12px; color: var(--muted); font-size: 14px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-size: 14px;
  transition: all .3s var(--ease); z-index: 60; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Bewegung ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .chart .line { stroke-dasharray: none; stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .search-btn { margin-left: auto; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-3 .panel:last-child { grid-column: 1 / -1; }
  .depot-grid, .plan { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .top-inner { gap: 12px; }
  .search-btn { min-width: 0; flex: 1; }
  .search-btn kbd { display: none; }
  .sessions { grid-template-columns: 1fr 1fr; }
  .quote-head { grid-template-columns: 1fr; align-items: start; }
  .grid-3, .grid-2, .glossary { grid-template-columns: 1fr; }
  .grid-3 .panel:last-child { grid-column: auto; }
  .depot-summary { grid-template-columns: 1fr; }
  .depot-form { grid-template-columns: 1fr 1fr; }
  .depot-form label:first-child { grid-column: 1 / -1; }
  .depot-form button { grid-column: 1 / -1; }
  .hide-sm { display: none; }
  .sec-head { grid-template-columns: 1fr; }
  .sec-head p { grid-column: 1; }
  .foot-inner { flex-direction: column; gap: 16px; }
  .results li button { grid-template-columns: 90px 1fr; }
  .results li button small { display: none; }
  .table th, .table td { padding: 12px; }
}
