    :root {
      --bg: #0f172a;
      --panel: #111827;
      --panel2: #1f2937;
      --text: #e5e7eb;
      --muted: #9ca3af;
      --border: #374151;
      --green: #22c55e;
      --yellow: #f59e0b;
      --red: #ef4444;
      --blue: #60a5fa;
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      font-family: Arial, Helvetica, sans-serif;
      background: var(--bg);
      color: var(--text);
      /* Platz für die fixierte Disclaimer-Bar (siehe .disclaimer-bar) */
      padding-bottom: 56px;
    }

    header {
      padding: 24px;
      border-bottom: 1px solid var(--border);
      background: linear-gradient(135deg, #111827, #0f172a);
    }

    a { color: var(--text); }

    .container {
      max-width: 1300px;
      margin: 0 auto;
      padding: 24px;
    }

    .back {
      display: inline-block;
      margin-bottom: 14px;
      color: var(--blue);
      text-decoration: none;
      font-size: 14px;
    }

    h1 { margin: 0; font-size: 30px; }
    h2 { margin: 0 0 12px 0; }

    .sub {
      color: var(--muted);
      margin-top: 6px;
      font-size: 14px;
    }

    .grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 14px;
      margin-top: 18px;
    }

    .wide-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin-top: 18px;
    }

    .card {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 16px;
      margin-top: 16px;
    }

    .metric {
      background: var(--panel2);
      border-radius: 10px;
      padding: 12px;
    }

    .metric .label {
      color: var(--muted);
      font-size: 12px;
      margin-bottom: 5px;
    }

    .metric .value {
      font-size: 18px;
      font-weight: 800;
      word-break: break-word;
    }

    .badge {
      display: inline-block;
      padding: 7px 11px;
      border-radius: 999px;
      font-size: 13px;
      font-weight: 800;
      margin: 8px 6px 0 0;
      background: rgba(96,165,250,0.18);
      color: var(--blue);
    }

    .BUY_SIGNAL, .intact, .strong, .positive {
      background: rgba(34,197,94,0.18);
      color: var(--green);
    }

    .BUY_WATCH, .RECOVERY_WATCH, .watch, .mixed, .acceptable {
      background: rgba(245,158,11,0.18);
      color: var(--yellow);
    }

    .HOLD, .neutral, .unknown {
      background: rgba(96,165,250,0.18);
      color: var(--blue);
    }

    .WEAKNESS, .REDUCE_WATCH, .AVOID, .OVERHEATED, .ERROR, .NO_DATA,
    .deteriorating, .broken, .negative, .weak {
      background: rgba(239,68,68,0.18);
      color: var(--red);
    }

    .ACCUMULATE_WATCH {
      background: rgba(139,92,246,0.18);
      color: #a78bfa;
    }

    .PULLBACK_IN_UPTREND {
      background: rgba(20,184,166,0.18);
      color: #2dd4bf;
    }

    .insufficient_coverage {
      background: rgba(156,163,175,0.18);
      color: #9ca3af;
    }

    .score {
      font-size: 42px;
      font-weight: 900;
      margin: 10px 0 2px 0;
    }

    .flags span, .flag {
      display: inline-block;
      background: var(--panel2);
      border: 1px solid var(--border);
      border-radius: 999px;
      padding: 5px 9px;
      margin: 4px 4px 0 0;
      color: var(--muted);
      font-size: 13px;
    }

    .reason {
      color: var(--muted);
      line-height: 1.45;
      font-size: 14px;
      margin-top: 10px;
    }

    .article {
      background: var(--panel2);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 11px;
      margin-top: 9px;
    }

    .article-meta {
      color: var(--muted);
      font-size: 12px;
      margin-bottom: 5px;
    }

    .article-title {
      font-weight: 800;
      line-height: 1.35;
    }

    .article-summary {
      color: var(--muted);
      line-height: 1.4;
      font-size: 13px;
      margin-top: 6px;
    }

    .empty {
      color: var(--muted);
      padding: 12px 0;
    }

    .table-wrap {
      overflow-x: auto;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      font-size: 14px;
    }

    th, td {
      border-bottom: 1px solid var(--border);
      padding: 9px;
      text-align: left;
    }

    th {
      color: var(--muted);
      font-weight: 700;
    }

    ul {
      color: var(--muted);
      line-height: 1.5;
    }

    @media (max-width: 900px) {
      .wide-grid { grid-template-columns: 1fr; }
    }

    .price-header {
      margin: 8px 0 4px;
      display: flex;
      align-items: baseline;
      gap: 10px;
      flex-wrap: wrap;
    }
    .price-big { font-size: 30px; font-weight: 700; }
    .price-change { font-size: 16px; }
    .price-change.pos { color: var(--green); }
    .price-change.neg { color: var(--red); }

    .header-inner {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 20px;
      align-items: start;
    }
    .header-chart-wrap {
      height: 150px;
      position: relative;
      border-radius: 10px;
      overflow: hidden;
      background: rgba(255,255,255,0.03);
      border: 1px solid var(--border);
    }
    #headerMiniChart {
      width: 100%;
      height: 100%;
      display: block;
    }
    .header-chart-label {
      position: absolute;
      top: 6px;
      left: 8px;
      font-size: 10px;
      color: var(--muted);
      pointer-events: none;
    }
    .header-chart-ema-badge {
      position: absolute;
      top: 6px;
      right: 8px;
      font-size: 10px;
      font-weight: 600;
      pointer-events: none;
    }

    .hdr-badge-row {
      display: flex;
      align-items: center;
      gap: 7px;
      margin-top: 7px;
    }
    .hdr-badge-lbl {
      color: var(--muted);
      font-size: 11px;
      white-space: nowrap;
      min-width: 110px;
    }
    .hdr-metrics-title {
      color: var(--muted);
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: .05em;
      margin-bottom: 10px;
    }
    .hdr-metric-row {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      padding: 5px 0;
      border-bottom: 1px solid rgba(55,65,81,0.5);
      font-size: 13px;
    }
    .hdr-metric-row:last-child { border-bottom: none; }
    .hdr-metric-lbl { color: var(--muted); }
    .hdr-metric-val { font-weight: 700; }

    @media (max-width: 800px) {
      .header-inner { grid-template-columns: 1fr 1fr; }
      .header-chart-wrap { display: none; }
    }
    @media (max-width: 500px) {
      .header-inner { grid-template-columns: 1fr; }
    }

    /* ── Detail page sidebar layout ─────────────────────── */
    .detail-layout-wrap {
      max-width: 1300px; margin: 0 auto;
      display: flex; align-items: flex-start;
    }
    .detail-sidebar {
      width: 172px; flex-shrink: 0;
      position: sticky; top: 64px;
      max-height: calc(100vh - 64px);
      overflow-y: auto; padding: 20px 0;
      border-right: 1px solid var(--border);
    }
    .detail-sidebar-nav { display: flex; flex-direction: column; }
    .detail-sidebar-nav a {
      display: block; padding: 8px 12px 8px 16px;
      color: var(--muted); text-decoration: none;
      font-size: 13px; font-weight: 500;
      border-left: 2px solid transparent;
      transition: color .15s, border-color .15s;
      white-space: nowrap;
    }
    .detail-sidebar-nav a:hover { color: var(--text); }
    .detail-sidebar-nav a.active {
      color: #60a5fa; border-left-color: #60a5fa; font-weight: 600;
    }
    .detail-main { flex: 1; min-width: 0; padding: 24px 24px 24px 28px; }
    .detail-section { margin-bottom: 28px; scroll-margin-top: 76px; }

    /* ── Stock header (Yahoo-style) ─── */
    .stock-hdr-exchange { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
    .stock-hdr-name {
      font-size: 26px; font-weight: 800; color: var(--text);
      margin: 0 0 6px 0; line-height: 1.2;
    }
    .price-big { font-size: 32px; font-weight: 700; }

    /* ── Company profile card ─── */
    .profile-layout {
      display: grid; grid-template-columns: 1fr 240px; gap: 20px; align-items: start;
    }
    .profile-info-box {
      background: var(--panel2); border: 1px solid var(--border);
      border-radius: 12px; padding: 16px 20px; font-size: 13px; line-height: 1.7;
    }
    .profile-info-box .pi-row { border-bottom: 1px solid rgba(55,65,81,.4); padding: 5px 0; }
    .profile-info-box .pi-row:last-child { border-bottom: none; }
    .profile-info-box .pi-label { color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; }
    .profile-info-box .pi-value { color: var(--text); font-weight: 500; }
    .profile-description { color: var(--muted); font-size: 13.5px; line-height: 1.7; }

    @media (max-width: 860px) {
      .detail-sidebar { display: none; }
      .detail-main { padding: 16px; }
      .profile-layout { grid-template-columns: 1fr; }
    }

    .period-bar {
      display: flex;
      gap: 4px;
      flex-wrap: wrap;
    }
    .period-btn {
      padding: 4px 10px;
      background: var(--panel2);
      border: 1px solid var(--border);
      border-radius: 6px;
      color: var(--muted);
      font-size: 13px;
      cursor: pointer;
    }
    .period-btn:hover { background: #2d3748; color: var(--text); }
    .period-btn.active { background: #1e3a5f; border-color: #2563eb; color: #93c5fd; }

    .chart-toolbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 10px;
      flex-wrap: wrap;
      gap: 8px;
    }
    .chart-loading {
      display: none;
      justify-content: center;
      align-items: center;
      padding: 12px;
      color: var(--muted);
      font-size: 13px;
    }

    .cb-row {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      margin-bottom: 10px;
    }
    .cb-label {
      display: flex;
      align-items: center;
      gap: 5px;
      font-size: 13px;
      color: var(--muted);
      cursor: pointer;
      user-select: none;
    }
    .cb-label input { cursor: pointer; accent-color: #60a5fa; }
    .sub-chart-label {
      font-size: 11px;
      color: var(--muted);
      margin-bottom: 4px;
    }

    .pdf-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-top: 14px;
      padding: 7px 14px;
      background: #1e3a5f;
      color: #93c5fd;
      border: 1px solid #2563eb;
      border-radius: 8px;
      font-size: 13px;
      cursor: pointer;
      text-decoration: none;
    }
    .pdf-btn:hover { background: #1e40af; color: #fff; }

    @media print {
      :root {
        --bg: #fff;
        --panel: #f8f9fa;
        --panel2: #f1f3f5;
        --text: #111;
        --muted: #555;
        --border: #ccc;
        --green: #166534;
        --yellow: #854d0e;
        --red: #991b1b;
        --blue: #1d4ed8;
      }
      body { background: #fff; color: #111; }
      header { background: #f8f9fa !important; border-bottom: 1px solid #ccc; }
      .back, .pdf-btn { display: none !important; }
      .card { border: 1px solid #ccc; page-break-inside: avoid; }
      .score { color: #111 !important; }
      .badge { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
      a { color: #1d4ed8; }
      canvas { max-width: 100%; }
    }

    /* ── Modellwert-Tooltip (FIDLEG-Abgrenzung) ───────────────────── */
    .info-tooltip {
      cursor: help;
      color: #888;
      font-size: 0.8rem;
      position: relative;
      display: inline-block;
    }
    .info-tooltip::after {
      content: attr(data-tooltip);
      position: absolute;
      bottom: 125%;
      left: 50%;
      transform: translateX(-50%);
      background: #2a2a2a;
      color: #ddd;
      padding: 0.5rem 0.75rem;
      border-radius: 6px;
      font-size: 0.75rem;
      white-space: normal;
      width: 280px;
      border: 1px solid #444;
      display: none;
      z-index: 999;
      line-height: 1.4;
    }
    .info-tooltip:hover::after, .info-tooltip:focus::after { display: block; }

    /* ── Persistenter Disclaimer-Balken ────────────────────────────── */
    .disclaimer-bar {
      position: fixed; left: 0; bottom: 0; width: 100%; z-index: 500;
      background: #1a1400;
      border-top: 1px solid #5a4a00;
      padding: 0.4rem 1.5rem;
      font-size: 0.72rem;
      color: #c8a800;
      box-sizing: border-box;
      max-height: 64px;
      overflow-y: auto;
    }
    .disclaimer-bar-inner {
      display: flex;
      align-items: flex-start;
      gap: 0.5rem;
      max-width: 1400px;
      margin: 0 auto;
    }
    .disclaimer-icon { flex-shrink: 0; font-size: 0.9rem; }
    .disclaimer-link { color: #e0c000; text-decoration: underline; white-space: nowrap; }

    /* ── Report-interner Disclaimer-Block ─────────────────────────── */
    .report-disclaimer {
      margin: 3rem 0 1rem;
      border: 1px solid #3a2a00;
      border-radius: 8px;
      background: #111008;
      padding: 1.5rem;
    }
    .rd-title { color: #c8a800; font-size: 0.95rem; margin-bottom: 1rem; }
    .rd-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 1rem;
      font-size: 0.8rem;
      color: #999;
      line-height: 1.5;
    }
    .rd-item strong { display: block; color: #bbb; margin-bottom: 0.25rem; font-size: 0.82rem; }
    .rd-footer {
      margin-top: 1rem;
      font-size: 0.75rem;
      color: #666;
      border-top: 1px solid #222;
      padding-top: 0.75rem;
    }
    .rd-footer a { color: #888; }

    /* ── AGB/Impressum-Seiten ──────────────────────────────────────── */
    .agb-container { max-width: 820px; margin: 2rem auto; padding: 0 1.5rem 4rem; color: #ccc; line-height: 1.7; }
    .agb-container h1 { font-size: 1.6rem; color: #eee; margin-bottom: 0.5rem; }
    .agb-version { color: #666; font-size: 0.85rem; margin-bottom: 2rem; }
    .agb-container h2 { font-size: 1.05rem; color: #ddd; margin: 2rem 0 0.5rem; border-bottom: 1px solid #2a2a2a; padding-bottom: 0.25rem; }
    .agb-container p { font-size: 0.88rem; color: #aaa; margin-bottom: 0.75rem; }
    .agb-container strong { color: #ddd; }
    .agb-container a { color: #c8a800; }
    .agb-container hr { border: none; border-top: 1px solid #2a2a2a; margin: 1.5rem 0; }
    .agb-footer-note {
      margin-top: 3rem; padding: 1rem 1.25rem; background: #1a1400;
      border: 1px solid #3a2a00; border-radius: 8px; font-size: 0.82rem; color: #888;
    }

    /* ── Erstzugriffs-Disclaimer-Modal ─────────────────────────────── */
    .disclaimer-modal-overlay {
      display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92);
      z-index: 9999; align-items: center; justify-content: center; padding: 1rem;
    }
    .disclaimer-modal {
      background: #1a1a1a; border: 1px solid #444; border-radius: 12px; padding: 2rem;
      max-width: 580px; width: 100%; max-height: 90vh; overflow-y: auto; color: #ddd;
    }
    .disclaimer-modal h2 {
      color: #c8a800; font-size: 1.1rem; margin-bottom: 1.5rem;
      border-bottom: 1px solid #333; padding-bottom: 0.75rem;
    }
    .dm-section { margin-bottom: 1rem; }
    .dm-section h3 { color: #aaa; font-size: 0.9rem; margin-bottom: 0.25rem; }
    .dm-section p { font-size: 0.85rem; color: #888; line-height: 1.5; }
    .dm-checkbox {
      margin: 1rem 0; font-size: 0.85rem; color: #aaa;
      display: flex; gap: 0.5rem; align-items: flex-start; line-height: 1.4;
    }
    .dm-checkbox input { margin-top: 3px; flex-shrink: 0; }
    .dm-checkbox a { color: #c8a800; }
    .dm-button {
      width: 100%; padding: 0.75rem; background: #c8a800; color: #000; border: none;
      border-radius: 6px; font-weight: 700; font-size: 0.9rem; cursor: pointer;
      margin-top: 0.5rem; transition: opacity 0.2s;
    }
    .dm-button:disabled { background: #444; color: #666; cursor: not-allowed; }
