:root {
  color-scheme: light;
  --ink: #2e2730;
  --deep: #3b2633;
  --muted: #756a72;
  --line: #eadfe4;
  --paper: #fcf8f6;
  --panel: #ffffff;
  --berry: #9a2f62;
  --berry-dark: #7f2450;
  --blush: #fff1f4;
  --gold: #c79758;
  --green: #45a884;
  --red: #c67669;
  --font-main: "Avenir Next", Avenir, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--font-main);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
header {
  min-height: 118px;
  padding: 14px max(24px, calc((100vw - 1260px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; flex: 0 1 auto; align-items: center; text-decoration: none; }
.brand img { display: block; width: 260px; max-width: 100%; height: auto; }
.header-context { display: flex; align-items: center; gap: 24px; }
.app-name { color: var(--deep); font-weight: 700; font-size: 17px; }
.private { color: var(--berry); font-size: 12px; font-weight: 650; border: 1px solid #e9cbd8; border-radius: 999px; padding: 9px 15px; white-space: nowrap; }
main { max-width: 1260px; margin: auto; padding: 48px 24px 28px; }
.eyebrow { display: inline-block; margin: 0 0 18px; padding: 8px 15px; border: 1px solid #e9cbd8; border-radius: 999px; color: var(--berry); background: #fff; font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.intro h1 { margin: 0 0 18px; color: var(--deep); font-size: clamp(34px, 4.3vw, 54px); line-height: 1.12; font-weight: 700; letter-spacing: -.025em; }
.intro > p:last-child { max-width: 760px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
nav { display: flex; gap: 8px; margin: 32px 0 28px; border-bottom: 1px solid var(--line); }
button, input, select { font: inherit; }
button { cursor: pointer; }
nav button { min-height: 52px; padding: 13px 25px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); font-size: 16px; font-weight: 650; }
nav button:hover { color: var(--berry); background: #fff8fa; }
nav button[aria-pressed=true] { border-color: var(--berry); color: var(--berry); font-weight: 700; }
.source { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding: 23px 25px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.source > small { grid-column: 1 / -1; color: var(--muted); font-size: 11px; line-height: 1.6; }
.metric { min-width: 0; }
.metric small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.metric strong { display: block; color: var(--deep); font-size: 15px; font-weight: 700; line-height: 1.4; }
.source .metric strong { font-size: 13px; }
.controls { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr 1fr auto; gap: 14px; align-items: end; margin: 27px 0 34px; }
.controls label { color: var(--deep); font-size: 12px; font-weight: 650; min-width: 0; }
.controls input, .controls select { display: block; width: 100%; min-height: 46px; margin-top: 8px; padding: 0 11px; border: 1px solid #ded0d7; border-radius: 7px; color: var(--deep); background: #fff; font-size: 12px; }
.controls input::placeholder { color: #81767d; }
.secondary { min-height: 46px; padding: 0 16px; border: 1px solid var(--berry); border-radius: 7px; color: #fff; background: var(--berry); font-size: 12px; font-weight: 700; }
.secondary:hover { background: var(--berry-dark); border-color: var(--berry-dark); }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-title h2 { margin: 0; color: var(--deep); font-size: 26px; font-weight: 700; letter-spacing: -.015em; }
.section-title p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 8px 0 0; }
.section-title > span { color: var(--muted); font-size: 12px; }
.card { padding: 25px 28px; margin: 16px 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px rgba(59, 38, 51, .035); }
.card { container-type: inline-size; }
.card-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; min-width: 0; }
.rotation-badge { display: inline-block; padding: 4px 8px; border-radius: 5px; font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: .01em; }
.rotation-strong { color: #205f4a; background: #e4f2e9; }
.rotation-weak { color: #9b4034; background: #f7e7e2; }
.rotation-turning { color: #80530d; background: #f7edcf; }
.rotation-correction { color: #843c64; background: #f6e8f0; }
.rotation-mixed { color: #59616a; background: #edf0f2; }
.chart-row, .history-table tr { display: grid; grid-template-columns: 90px minmax(0, 1fr) 95px; gap: 12px; align-items: center; }
.chart-track { min-width: 0; }
.chart-row { margin-top: 10px; }
.chart-row .bar-wrap, .history-plot .bar-wrap { max-width: none; margin: 0; width: 100%; }
.bar-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; padding: 5px 0 0; }
.card-title { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.card-title h3 { margin: 0; color: var(--deep); font-size: 21px; font-weight: 700; }
.ticker { color: var(--muted); font-size: 12px; }
.strength { display: flex; gap: 15px; align-items: baseline; margin: 21px 0 2px; }
.strength strong { color: var(--deep); font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.strength span { color: var(--muted); font-size: 12px; }
.bar-wrap { height: 35px; max-width: 620px; margin: 8px 0 20px; background: linear-gradient(90deg, #faf6f4, #f3f7f4); border-radius: 5px; }
.bar-wrap svg { width: 100%; height: 100%; }
.missing { display: block; padding: 8px; color: var(--muted); font-size: 12px; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 18px 0; }
.classification { color: var(--deep); font-size: 12px; font-weight: 700; margin-top: 22px; }
.checks { color: var(--muted); font-size: 12px; line-height: 1.8; border-top: 1px solid #f0e8ec; padding-top: 14px; }
.card summary { color: var(--berry); font-size: 13px; font-weight: 650; padding: 14px 0; cursor: pointer; }
.card summary:hover { color: var(--berry-dark); }
.card > .card-disclosure > .card-summary {
  display: block;
  position: relative;
  list-style: none;
  padding: 0;
  color: var(--ink);
  font-size: inherit;
  font-weight: inherit;
  border-radius: 3px;
}
.card-summary::-webkit-details-marker { display: none; }
.card-summary::marker { content: ''; }
.card-summary > .card-title { padding-right: 25px; }
.card-summary::after {
  content: '';
  position: absolute;
  top: 7px;
  right: 2px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--berry);
  border-bottom: 2px solid var(--berry);
  transform: rotate(45deg);
}
.card-disclosure[open] > .card-summary::after { transform: rotate(225deg); top: 11px; }
.card-summary:hover h3 { color: var(--berry); }
.card-summary .bar-wrap { margin-bottom: 0; }
.card-content { padding-top: 2px; }
.sub { margin: 12px 0; border-color: var(--line); background: #fdfaf9; box-shadow: none; }
.sub .card-title h3 { font-size: 18px; }
.sub .strength strong { font-size: 25px; }
table { width: 100%; max-width: 620px; border-collapse: collapse; font-size: 13px; margin: 8px 0 20px; }
caption { color: var(--muted); text-align: left; padding: 8px 0; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); }
th { color: var(--deep); font-weight: 700; }
th:last-child, td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.history-table { display: block; max-width: none; }
.history-table caption, .history-table thead, .history-table tbody { display: block; }
.history-table caption { font-size: 12px; line-height: 1.6; }
.history-table tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
.history-table th, .history-table td { border: 0; padding: 0; min-width: 0; }
.history-table thead th { font-size: 11px; }
.history-table thead th:nth-child(2) { text-align: center; }
.history-table tbody th { font-weight: 500; font-variant-numeric: tabular-nums; }
.history-table .history-plot .bar-wrap { height: 26px; }
.history-value { font-weight: 650; color: var(--deep); white-space: nowrap; }
.scale-note { color: var(--muted); font-size: 12px; line-height: 1.6; }
@container (max-width: 480px) {
  .chart-row, .history-table tr { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 7px; }
  .chart-spacer { display: none; }
  .chart-track { grid-column: 1 / -1; }
  .history-table thead { display: none; }
  .history-table tbody th { grid-column: 1; grid-row: 1; }
  .history-value { grid-column: 2; grid-row: 1; }
  .history-plot { grid-column: 1 / -1; grid-row: 2; }
}
.warning { color: #765e2c; background: #fff8eb; border-left: 3px solid var(--gold); padding: 12px 16px; font-size: 12px; line-height: 1.7; }
.empty { color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 40px; text-align: center; }
.method { margin-top: 40px; padding: 25px 28px; color: var(--muted); background: var(--blush); border: 1px solid #efcedd; border-radius: 8px; font-size: 13px; line-height: 1.8; }
.method h2 { color: var(--deep); font-size: 18px; font-weight: 700; margin-top: 0; }
.method summary { color: var(--berry); font-weight: 650; cursor: pointer; padding: 8px 0; }
footer { display: flex; justify-content: space-between; gap: 24px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.8; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 10px; top: 10px; background: #fff; color: var(--berry); padding: 12px; z-index: 10; }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; }
#context p { white-space: pre-line; }
@media (max-width: 1050px) {
  .controls { grid-template-columns: repeat(2, 1fr); }
  .source { grid-template-columns: repeat(2, 1fr); }
  .controls > button { grid-column: 2; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 650px) {
  header { min-height: 94px; padding: 15px 18px; gap: 15px; }
  .brand img { width: 185px; }
  .header-context { flex-direction: column; align-items: flex-end; gap: 7px; }
  .app-name { display: none; }
  .private { font-size: 10px; padding: 7px 10px; }
  main { padding: 30px 16px 22px; }
  .eyebrow { margin-bottom: 16px; padding: 7px 12px; font-size: 11px; }
  .intro h1 { font-size: clamp(32px, 8vw, 40px); }
  .intro > p:last-child { font-size: 16px; }
  nav { margin: 24px 0; }
  nav button { flex: 1; padding: 12px 18px; }
  .source { padding: 18px; gap: 18px; }
  .controls { gap: 14px 12px; }
  .controls > button { grid-column: 1 / -1; }
  .card { padding: 22px 17px; }
  .card-title { align-items: flex-start; }
  .card-title h3 { font-size: 19px; }
  .section-title { display: block; }
  .section-title h2 { font-size: 24px; }
  .section-title > span { display: block; margin: 14px 0; }
  .metrics { gap: 18px 12px; }
  .metric strong { font-size: 14px; }
  .source .metric strong { font-size: 12px; }
  .sub { padding: 18px 13px; }
  .sub .card-title h3 { font-size: 16px; }
  .strength { display: block; }
  .strength span { display: block; margin-top: 5px; }
  .method { padding: 22px 20px; }
  footer { display: block; }
  footer > span { display: block; margin-bottom: 8px; }
}
@media (max-width: 360px) {
  header { gap: 10px; }
  .brand img { width: 160px; }
  .private { font-size: 9px; padding: 6px 8px; }
  .controls { grid-template-columns: 1fr; }
}

.intro h1.product-name, .login-intro h1.product-name { font-size: clamp(28px, 4vw, 50px); overflow-wrap: anywhere; }

.method { scroll-margin-top: 24px; }
.method h3 { margin: 20px 0 12px; color: var(--deep); font-size: 17px; line-height: 1.5; font-weight: 600; }
.method p { margin: 10px 0; }
.method strong { color: var(--deep); font-weight: 600; }
.method-lead { max-width: 900px; }
.method-formula { padding: 14px 18px; border-left: 3px solid var(--berry); background: #fff; color: var(--deep); font-weight: 550; }
.method-example { padding: 15px 18px; margin: 16px 0; border: 1px solid #efdce4; border-radius: 7px; background: #fffafc; }
.method-topic { border-top: 1px solid #ead3dd; margin-top: 18px; padding-top: 7px; }
.method-topic > summary { padding: 12px 0; line-height: 1.65; font-size: 14px; font-weight: 550; }
.method-topic > p, .method-topic > dl { max-width: 900px; }
.method dl { margin: 0 0 16px; }
.method dt { margin-top: 20px; color: var(--deep); font-size: 14px; font-weight: 600; }
.method dd { margin: 5px 0 16px; }
.method-labels dt { font-size: 12px; font-weight: 500; }

/* Kompakte Intraday-Tabellen: dieselben Spaltenbreiten auf beiden Ebenen. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.compact-guide { margin: 0 0 22px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.compact-guide strong { color: var(--deep); font-weight: 600; }
.compact-section { margin: 22px 0 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); overflow: hidden; }
.compact-section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; padding: 17px 20px; background: var(--deep); color: #fff; }
.compact-section-heading h3 { margin: 0; font-size: 18px; font-weight: 600; }
.compact-section-heading p { margin: 0; font-size: 12px; color: #f1e5eb; }
.compact-scroll { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; }
.compact-scroll:focus-visible { outline-offset: -3px; }
.compact-table { width: 100%; min-width: 1180px; max-width: none; margin: 0; table-layout: fixed; font-size: 12px; border-collapse: separate; border-spacing: 0; }
.compact-col-name { width: 17%; }
.compact-col-ticker { width: 6%; }
.compact-col-number { width: 7%; }
.compact-col-plot { width: 18%; }
.compact-col-impulse { width: 10%; }
.compact-table th, .compact-table td { padding: 9px 7px; vertical-align: middle; text-align: right; font-variant-numeric: tabular-nums; }
.compact-table thead th { background: #f5eaf0; color: var(--deep); font-size: 11px; font-weight: 600; line-height: 1.5; }
.compact-table thead small { display: block; color: var(--muted); font-size: 10px; font-weight: 400; }
.compact-table thead th:first-child, .compact-table .compact-name { position: sticky; left: 0; z-index: 1; padding-left: 16px; text-align: left; }
.compact-table .compact-name { background: #fff; font-weight: 550; line-height: 1.5; overflow-wrap: anywhere; }
.compact-data-row:nth-child(even) > td, .compact-data-row:nth-child(even) > .compact-name { background-color: #fdfafc; }
.compact-data-row:hover > td, .compact-data-row:hover > .compact-name { background-color: #fcf1f6; }
.compact-table .compact-number { white-space: nowrap; }
.compact-table .compact-ticker { font-size: 11px; color: var(--muted); }
.compact-table .compact-unavailable { color: var(--muted); font-size: 10px; }
.compact-table .compact-today { background: #fff7eb; }
.compact-table .compact-plot-heading { text-align: center; }
.compact-plot-heading .bar-axis { padding-top: 6px; font-weight: 400; font-size: 9px; }
.compact-plot-heading .bar-axis span { white-space: nowrap; }
.compact-table .compact-plot { padding: 0 7px; }
.compact-plot .bar-wrap { max-width: none; width: 100%; height: 32px; margin: 0; border-radius: 0; }
.compact-plot .missing { font-size: 10px; padding: 8px 0; text-align: center; }
.compact-table .compact-impulse { padding-right: 14px; font-size: 10px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.impulse-positive { color: #21684f; }
.impulse-negative { color: #9b4034; }
.impulse-neutral { color: var(--muted); }
.compact-table .compact-group-heading { padding: 0; background: #f8eef3; }
.compact-group-toggle { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 11px 16px; border: 0; color: var(--deep); background: transparent; text-align: left; font-size: 13px; font-weight: 550; }
.compact-group-toggle:hover { background: #f1e0e9; }
.compact-group-toggle:focus-visible { outline-offset: -3px; }
.compact-group-toggle small { color: var(--muted); font-weight: 400; font-size: 11px; }
.compact-chevron { color: var(--berry); font-size: 22px; font-weight: 400; line-height: 16px; transition: transform .15s; }
.compact-group-toggle[aria-expanded=true] .compact-chevron { transform: rotate(90deg); }
.compact-children[hidden] { display: none; }
.compact-scroll-hint { display: none; margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.6; }
@media (max-width: 1230px) { .compact-scroll-hint { display: block; } }
@media (max-width: 650px) {
 nav { gap: 0; }
 nav button { padding: 10px 9px; font-size: 13px; }
 .compact-section-heading { padding: 14px 16px; }
 .compact-section-heading h3 { font-size: 16px; }
}
