/* Neue Gestaltung «Hightech & einfach» – Entwurf 29.10.2026, nur in index-neu.html geladen.
   Liegt ÜBER styles.css und ändert nichts an der Logik. Alles hängt an html.neu, damit es
   die alten Regeln sicher überstimmt und sich mit einer Klasse wieder abschalten lässt. */

html.neu {
  --bg: #030711;
  --glas: rgba(255, 255, 255, .045);
  --glas-2: rgba(255, 255, 255, .075);
  --rand: rgba(255, 255, 255, .09);
  --rand-2: rgba(255, 255, 255, .16);
  --leise: #93a7c2;
  --leiser: #5d708c;
  --plus: #6de5a1;
  --minus: #ff718b;
  --weich: cubic-bezier(.22, 1, .36, 1);
  --mono: var(--font);   /* eine Schrift überall, auch für Ticker */
}
html.neu body { background: var(--bg); }
html.neu .noise { display: none; }

/* ── Hintergrund ─────────────────────────────────────────────────── */
.hg-leinwand { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.neu-aurora { position: fixed; inset: 0; z-index: -3; overflow: hidden; pointer-events: none; }
.neu-aurora i { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .5; animation: neuTreiben 26s ease-in-out infinite alternate; }
.neu-aurora i:nth-child(1) { width: 720px; height: 720px; left: -200px; top: -280px; background: #1d4ed8; }
.neu-aurora i:nth-child(2) { width: 560px; height: 560px; right: -180px; top: 60px; background: #0f766e; animation-delay: -8s; opacity: .4; }
.neu-aurora i:nth-child(3) { width: 520px; height: 520px; left: 30%; bottom: -340px; background: #5b21b6; animation-delay: -15s; opacity: .28; }
@keyframes neuTreiben { to { transform: translate(60px, 40px) scale(1.12); } }
.neu-raster { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%); }
/* Mit gewähltem Hintergrund tritt das Polarlicht zurück */
html.neu[data-hg]:not([data-hg=""]) .neu-aurora, html.neu[data-hg]:not([data-hg=""]) .neu-raster { display: none; }

/* ── Glas für alle bestehenden Flächen ───────────────────────────── */
html.neu :is(.hero-card, .page-head, .controls-card, .table-card, .feature-card, .glass-panel, .map-section, .metric-panel, .portfolio-card) {
  background: var(--glas) !important; border: 1px solid var(--rand) !important;
  backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 24px 60px rgba(0,0,0,.35) !important;
}
html.neu .metric-card { background: rgba(255,255,255,.035); border-color: var(--rand); }
html.neu .feature-card { transition: transform .5s var(--weich), border-color .3s, background .3s; position: relative; }
html.neu .feature-card:hover { transform: translateY(-3px); background: var(--glas-2) !important; border-color: var(--rand-2) !important; }
html.neu .feature-card span { background: rgba(155,200,255,.12); color: var(--accent); border: 1px solid rgba(155,200,255,.25); }

/* Lichtkante, die der Maus folgt */
html.neu .licht::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(155,200,255,.55), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s; }
html.neu .licht:hover::before { opacity: 1; }

/* Knöpfe: ruhiger, runder, weniger fett */
html.neu :is(.primary-button, .ghost-button, .icon-button) { border-radius: 999px; font-weight: 600; transition: transform .3s var(--weich), box-shadow .3s, background .2s; }
html.neu .primary-button { background: #edf5ff; color: #050a16; box-shadow: none; }
html.neu .primary-button:hover { box-shadow: 0 10px 30px rgba(155,200,255,.25); }
html.neu .ghost-button { background: rgba(255,255,255,.05); border-color: var(--rand); }

/* Tabellen: Zahlen gleich breit, Zeilen mit sanftem Licht */
html.neu .data-table { font-variant-numeric: tabular-nums; }
html.neu .data-table tbody tr { transition: background .2s; }
html.neu .data-table tbody tr:hover { background: rgba(155,200,255,.06) !important; }

/* ── Kopfzeile wird zur schwebenden Pille ────────────────────────── */
html.neu .shell { padding-top: 96px; }
html.neu .topbar {
  position: fixed !important; top: 14px; left: 50%; transform: translateX(-50%); z-index: 60;
  width: max-content; max-width: calc(100vw - 32px); display: flex; align-items: center; gap: 6px; padding: 6px !important; margin: 0 !important;
  border-radius: 999px !important; background: rgba(8,13,26,.62) !important; border: 1px solid var(--rand) !important;
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 18px 50px rgba(0,0,0,.4) !important; min-height: 0 !important;
}
html.neu .topbar .brand { min-width: 0; padding: 0 12px 0 4px; border-radius: 999px; gap: 9px; }
html.neu .topbar .brand-mark { width: 30px; height: 30px; border-radius: 9px; box-shadow: none; }
html.neu .topbar .brand small { display: none; }
html.neu .topbar .brand strong { font-size: 14.5px; font-weight: 650; white-space: nowrap; }
html.neu .topbar .header-actions { flex: none; min-width: 0; gap: 6px; flex-wrap: nowrap; }
html.neu .topbar #connectionPill { display: none; }              /* Status nur noch als Punkt am Logo */
html.neu .topbar .global-search-wrap { display: none; }          /* Suche öffnet die Palette */
html.neu .topbar .account-avatar { width: 34px; height: 34px; border-radius: 50%; }

.neu-reiter { position: relative; display: flex; gap: 2px; }
.neu-reiter > button { position: relative; z-index: 1; padding: 8px 15px; border-radius: 999px; color: var(--leise); font-size: 14px; font-weight: 500; background: none; border: 0; white-space: nowrap; transition: color .25s; cursor: pointer; }
.neu-reiter > button:hover, .neu-reiter > button.an { color: var(--text); }
.neu-reiter .gleiter { position: absolute; z-index: 0; top: 0; height: 100%; border-radius: 999px; background: rgba(255,255,255,.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1); transition: left .45s var(--weich), width .45s var(--weich), opacity .25s; opacity: 0; }
.neu-suche-knopf { display: flex; align-items: center; gap: 9px; height: 36px; padding: 0 8px 0 12px; border-radius: 999px; white-space: nowrap; cursor: pointer;
  background: rgba(255,255,255,.05); border: 1px solid var(--rand); color: var(--leise); font-size: 13px; transition: background .25s, border-color .25s; }
.neu-suche-knopf:hover { background: rgba(255,255,255,.09); border-color: var(--rand-2); }
.neu-suche-knopf kbd { margin-left: auto; }
html.neu kbd { font: 500 11px var(--mono); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--rand-2); color: var(--leise); background: rgba(255,255,255,.04); }
.brand-mark { position: relative; }
.neu-live { position: absolute; right: -2px; bottom: -2px; width: 9px; height: 9px; border-radius: 50%; background: var(--leiser); border: 2px solid #08101e; }
.neu-live.an { background: var(--plus); box-shadow: 0 0 8px var(--plus); }

/* Mega-Menü */
.neu-mega { position: fixed; top: 70px; left: 50%; transform: translate(-50%, -8px); z-index: 59; width: min(720px, calc(100vw - 32px));
  padding: 10px; border-radius: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .35s var(--weich); background: rgba(10,16,30,.86); border: 1px solid var(--rand);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.neu-mega.offen { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.neu-mega button { display: flex; gap: 13px; padding: 13px; border-radius: 16px; transition: background .2s; text-align: left; background: none; border: 0; color: var(--text); cursor: pointer; }
.neu-mega button:hover { background: rgba(255,255,255,.06); }
.neu-mega .ico { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(155,200,255,.1); color: var(--accent); font-size: 17px; }
.neu-mega b { display: block; font-weight: 600; font-size: 14.5px; }
.neu-mega small { color: var(--leise); font-size: 13px; line-height: 1.35; display: block; }

/* ── Kommandosuche ⌘K ───────────────────────────────────────────── */
.neu-palette-hg { position: fixed; inset: 0; z-index: 90; background: rgba(2,5,12,.55); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.neu-palette-hg.offen { opacity: 1; pointer-events: auto; }
.neu-palette { position: fixed; z-index: 91; top: 14vh; left: 50%; width: min(640px, calc(100vw - 32px)); transform: translate(-50%, 10px) scale(.98);
  border-radius: 22px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .35s var(--weich); background: rgba(12,18,34,.92);
  border: 1px solid var(--rand-2); box-shadow: 0 40px 120px rgba(0,0,0,.6); overflow: hidden; }
.neu-palette.offen { opacity: 1; pointer-events: auto; transform: translate(-50%, 0) scale(1); }
.neu-palette input { width: 100%; padding: 22px 22px 18px 54px; background: transparent; border: 0; outline: 0; color: var(--text); font: 400 19px var(--font); }
.neu-palette .lupe { position: absolute; left: 20px; top: 23px; color: var(--leise); }
.neu-palette .liste { border-top: 1px solid var(--rand); max-height: 52vh; overflow: auto; padding: 8px; }
.neu-palette .gruppe { padding: 10px 12px 4px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--leiser); font-weight: 600; }
.neu-palette .zeile { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; cursor: pointer; }
.neu-palette .zeile.wahl { background: rgba(155,200,255,.1); }
.neu-palette .tk { font: 650 13px var(--mono); width: 66px; color: var(--accent); flex: none; }
.neu-palette .nm { flex: 1; color: var(--text); font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.neu-palette .px { font-variant-numeric: tabular-nums; font-size: 14px; }
.neu-palette .fuss { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--rand); color: var(--leiser); font-size: 12px; }

/* ── Startseite ─────────────────────────────────────────────────── */
html.neu #homeView .hero-grid { display: none; }
.neu-held { position: relative; min-height: min(78vh, 760px); display: grid; place-items: center; padding: 30px 20px 60px; text-align: center; }
#neuTeilchen { position: absolute; inset: 0 -20px; width: calc(100% + 40px); height: 100%; z-index: 0; }
.neu-held-inhalt { position: relative; z-index: 1; max-width: 860px; }
.neu-vorzeile { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 999px; font-size: 13px; color: var(--leise); background: var(--glas); border: 1px solid var(--rand); backdrop-filter: blur(12px); }
.neu-vorzeile .punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--plus); box-shadow: 0 0 0 4px rgba(109,229,161,.15); animation: neuPuls 2s infinite; margin-left: 6px; }
@keyframes neuPuls { 50% { box-shadow: 0 0 0 8px rgba(109,229,161,0); } }
.neu-held h1 { font-size: clamp(40px, 7vw, 84px); line-height: 1.02; letter-spacing: -.045em; font-weight: 640; margin: 22px 0 18px; }
.neu-held h1 .verlauf { background: linear-gradient(100deg, #fff 10%, var(--accent) 45%, var(--accent-2) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.neu-unter { color: var(--leise); font-size: clamp(16px, 2vw, 19px); max-width: 620px; margin: 0 auto 34px; }
@property --neuw { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.neu-suchring { position: relative; max-width: 640px; margin: 0 auto; border-radius: 22px; padding: 1.5px; background: conic-gradient(from var(--neuw, 0deg), transparent 0 60%, var(--accent), var(--accent-2), transparent 95%); animation: neuDrehen 5s linear infinite; }
@keyframes neuDrehen { to { --neuw: 360deg; } }
.neu-suchfeld { display: flex; align-items: center; gap: 14px; width: 100%; height: 66px; padding: 0 12px 0 22px; border-radius: 21px; background: rgba(8,13,26,.94); cursor: text; text-align: left; border: 0; color: var(--text); }
.neu-suchfeld .platz { flex: 1; color: var(--leise); font-size: 17px; white-space: nowrap; overflow: hidden; }
.neu-suchfeld .platz b { color: var(--text); font-weight: 500; }
.neu-suchfeld .cursor { display: inline-block; width: 2px; height: 20px; background: var(--accent); vertical-align: -4px; margin-left: 2px; animation: neuBlink 1s steps(1) infinite; }
@keyframes neuBlink { 50% { opacity: 0; } }
.neu-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.neu-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500; cursor: pointer;
  background: rgba(255,255,255,.05); border: 1px solid var(--rand); color: var(--text); transition: background .2s, border-color .2s, transform .3s var(--weich); white-space: nowrap; }
.neu-chip:hover { background: rgba(255,255,255,.09); border-color: var(--rand-2); transform: translateY(-1px); }
.neu-chip .tk { font: 650 12px var(--mono); color: var(--accent); }
.neu-chip.frage { color: var(--leise); }

.neu-kopf { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 10px 0 18px; }
.neu-kopf h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.03em; font-weight: 620; margin: 6px 0 0; }
.neu-kopf p { color: var(--leise); margin: 6px 0 0; max-width: 560px; }
.neu-etikett { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--leiser); font-weight: 600; }
.neu-baender { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 34px; }
.neu-band { position: relative; padding: 20px; border-radius: 22px; background: var(--glas); border: 1px solid var(--rand);
  backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%); box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 24px 60px rgba(0,0,0,.35); }
.neu-band h3 { display: flex; align-items: center; gap: 10px; font-size: 15px; margin: 0 0 4px; font-weight: 600; }
.neu-band h3 .ico { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 15px; }
.neu-band .sub { color: var(--leiser); font-size: 12.5px; margin-bottom: 12px; }
.neu-reihe { display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 10px; padding: 10px 8px; margin: 0 -8px; border-radius: 12px; transition: background .2s; cursor: pointer; width: calc(100% + 16px); background: none; border: 0; color: var(--text); text-align: left; }
.neu-reihe:hover { background: rgba(255,255,255,.05); }
.neu-reihe .tk { font: 650 13px var(--mono); color: var(--accent); }
.neu-reihe .nm { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.neu-reihe .nm small { display: block; color: var(--leiser); font-size: 12px; }
.neu-reihe .wert { font-size: 14px; font-variant-numeric: tabular-nums; text-align: right; }
.neu-reihe.lade .nm, .neu-reihe.lade .tk, .neu-reihe.lade .wert { height: 12px; border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,.05) 25%, rgba(255,255,255,.12) 50%, rgba(255,255,255,.05) 75%); background-size: 300% 100%; animation: neuSchimmer 1.4s infinite; color: transparent; }
@keyframes neuSchimmer { to { background-position: -150% 0; } }
.neu-ehrlich { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255,211,106,.07); border: 1px solid rgba(255,211,106,.2); font-size: 12.5px; color: #f3dfa6; }
.neu-schloss { display: grid; place-items: center; gap: 10px; text-align: center; padding: 26px 10px; color: var(--leise); font-size: 13.5px; }
.neu-schloss b { font-size: 26px; }
.neu-plus { color: var(--plus); } .neu-minus { color: var(--minus); }

/* Werkzeugkacheln: kleiner, zweite Reihe unter den Bändern */
html.neu #homeView .feature-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
html.neu #homeView .feature-card { min-height: 0; padding: 20px; border-radius: 20px !important; }
html.neu #homeView .feature-card span { width: 38px; height: 38px; border-radius: 12px; margin-bottom: 12px; }
html.neu #homeView .feature-card h3 { font-size: 15.5px; margin: 0 0 4px; }
html.neu #homeView .feature-card p { font-size: 13px; color: var(--leise); margin: 0; }

/* Erscheinen beim Scrollen */
.neu-erscheinen { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--weich), transform .9s var(--weich); }
.neu-erscheinen.da { opacity: 1; transform: none; }
/* Der Startkopf steht sofort da (Leo-Regel «Schlagzeile ab dem ersten Bild»). Eine Blende startet erst mit dem nächsten
   gezeichneten Bild, und das kommt, solange app.js 5'000 Titel lädt, erst nach Sekunden. Am 02.11.2026 live gemessen. */
.neu-held .neu-erscheinen { opacity: 1; transform: none; transition: none; }

/* ── Detailansicht: Glas statt Schublade ────────────────────────── */
/* Nur die Tafel bekommt Glas – .drawer selbst liegt immer über der ganzen Seite. */
html.neu .drawer-panel { background: rgba(8,13,26,.82) !important; backdrop-filter: blur(28px) saturate(150%); -webkit-backdrop-filter: blur(28px) saturate(150%); border-left: 1px solid var(--rand) !important; }
html.neu .drawer.open .drawer-backdrop { backdrop-filter: blur(3px); }

/* ── Handy: untere Leiste wie eine App ───────────────────────────── */
.neu-unterleiste { display: none; }
.neu-hg-wahl { position: fixed; left: 16px; bottom: 16px; z-index: 70; display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(8,13,26,.8); border: 1px solid var(--rand); backdrop-filter: blur(14px); }
.neu-hg-wahl button { padding: 7px 12px; border-radius: 999px; border: 0; background: none; color: var(--leise); font-size: 12.5px; cursor: pointer; }
.neu-hg-wahl button.an { background: rgba(255,255,255,.1); color: var(--text); }
.neu-hg-wahl span { padding: 7px 8px 7px 10px; color: var(--leiser); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 1100px) { .neu-baender { grid-template-columns: 1fr; } html.neu #homeView .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  html.neu .shell { padding-top: 80px; padding-bottom: 110px; width: calc(100% - 32px); }
  /* styles.css baut die Kopfzeile am Handy als zweizeiliges Raster – hier wieder EINE Zeile */
  html.neu .topbar { left: 16px; right: 16px; transform: none; width: auto; display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: space-between; grid-template-columns: none !important; }
  html.neu .topbar > *, html.neu .topbar .header-actions > * { grid-column: auto !important; grid-row: auto !important; }
  html.neu .topbar .header-actions { display: flex !important; flex-direction: row !important; align-items: center; margin-left: auto; width: auto !important; }
  html.neu .topbar .brand strong { font-size: 14px; }
  html.neu .feedback-fab { bottom: 100px !important; right: 16px !important; }
  html.neu .topbar .nav-toggle { display: none !important; }
  html.neu .topbar #tierBox { display: none; }
  .neu-reiter { display: none; }
  .neu-suche-knopf { width: 40px; padding: 0; justify-content: center; }
  .neu-suche-knopf span, .neu-suche-knopf kbd { display: none; }
  .neu-unterleiste { display: flex; position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60; justify-content: space-around; padding: 7px;
    border-radius: 24px; background: rgba(8,13,26,.72); border: 1px solid var(--rand); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%); box-shadow: 0 18px 50px rgba(0,0,0,.45); }
  .neu-unterleiste button { display: grid; place-items: center; gap: 3px; font-size: 10.5px; font-weight: 500; color: var(--leise); padding: 6px 10px; border-radius: 14px; background: none; border: 0; min-width: 58px; transition: background .25s, color .25s; }
  .neu-unterleiste button.an { color: var(--text); background: rgba(255,255,255,.09); }
  .neu-unterleiste svg { width: 21px; height: 21px; }
  .neu-mega { top: auto; bottom: 86px; grid-template-columns: 1fr 1fr; gap: 2px; padding: 8px; max-height: 70vh; overflow: auto; }
  .neu-mega button { align-items: center; gap: 8px; padding: 8px; min-width: 0; text-align: left; border-radius: 12px; }
  .neu-mega .ico { width: 28px; height: 28px; border-radius: 8px; font-size: 13px; }
  .neu-mega b { font-size: 13px; line-height: 1.2; }
  .neu-mega small { display: none; }
  .neu-hg-wahl { display: none; }
  .neu-held { min-height: 0; padding: 20px 0 40px; }
  .neu-suchfeld { height: 58px; } .neu-suchfeld .platz { font-size: 15px; }
  .neu-palette { top: max(10px, env(safe-area-inset-top)); }
  .neu-palette input { padding: 15px 16px 13px 46px; font-size: 16px; }
  .neu-palette .lupe { left: 16px; top: 15px; }
  .neu-palette .liste { max-height: 44vh; padding: 4px; }
  .neu-palette .gruppe { padding: 7px 10px 3px; font-size: 10.5px; }
  .neu-palette .zeile { gap: 8px; padding: 8px 10px; min-height: 38px; }
  .neu-palette .tk { width: 62px; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .neu-palette .nm { min-width: 0; font-size: 13.5px; white-space: nowrap; }
  .neu-palette .nm:has(b) { white-space: normal; line-height: 1.25; }
  .neu-palette .px { width: auto !important; flex: none; font-size: 12.5px; }
  .neu-palette .px:not(.neu-plus):not(.neu-minus) { display: none; }
  .neu-palette .fuss { display: none; }
  .neu-vorzeile .lang { display: none; }
  .neu-kopf { flex-direction: column; align-items: start; }
}
@media (prefers-reduced-motion: reduce) { html.neu *, html.neu *::before, html.neu *::after { animation: none !important; transition: none !important; } }


/* ════════════════════════════════════════════════════════════════════
   Runde 2 (29.10.2026, Leo: «globus ist am besten … die leisten sollten bleiben wie vorher …
   auch die einzelseiten … es muss alles geiler sein und moderner»)
   ════════════════════════════════════════════════════════════════════ */

/* ── Bisherige Reiter, neu gekleidet ─────────────────────────────── */
html.neu .topbar #mainNav { position: relative; display: flex !important; gap: 0; padding: 0; border: 0; background: none; box-shadow: none; }
html.neu #mainNav .gleiter { position: absolute; top: 0; height: 100%; border-radius: 999px; background: rgba(255,255,255,.09); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 22px rgba(155,200,255,.12);
  transition: left .45s var(--weich), width .45s var(--weich), opacity .25s; opacity: 0; pointer-events: none; z-index: 0; }
html.neu #mainNav .nav-link { position: relative; z-index: 1; padding: 8px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--leise); background: none !important; white-space: nowrap; transition: color .25s; }
html.neu #mainNav .nav-link:hover, html.neu #mainNav .nav-link.active { color: var(--text); }
html.neu #mainNav .nav-item-dropdown { position: relative; display: flex; align-items: center; }
html.neu #mainNav .nav-caret-toggle { position: relative; z-index: 1; background: none; border: 0; color: var(--leise); padding: 0 8px 0 0; margin-left: -6px; cursor: pointer; }
html.neu #mainNav .nav-dropdown-panel { top: calc(100% + 16px); left: -8px; min-width: 250px; padding: 8px; border-radius: 20px; background: rgba(10,16,30,.9); border: 1px solid var(--rand);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
html.neu #mainNav .nav-dropdown-item { border-radius: 12px; padding: 11px 14px; font-weight: 500; font-size: 14px; color: var(--text); background: none; }
html.neu #mainNav .nav-dropdown-item:hover, html.neu #mainNav .nav-dropdown-item.active { background: rgba(155,200,255,.1); }
html.neu .topbar .tier-box { font-size: 12px; }
html.neu .topbar .lang-toggle { border-radius: 999px !important; }
@media (max-width: 1360px) and (min-width: 901px) { html.neu .topbar .brand strong { display: none; } html.neu .topbar .brand { padding-right: 4px; } }
@media (max-width: 1220px) and (min-width: 901px) { html.neu #mainNav .nav-link { padding: 8px 9px; font-size: 13px; } html.neu .neu-suche-knopf span, html.neu .neu-suche-knopf kbd { display: none; } html.neu .topbar #tierBox { display: none; } }
@media (max-width: 900px) { html.neu .topbar #mainNav { display: none !important; } }

/* Globus: auf der Startseite voll, auf Arbeitsseiten zurückgenommen, damit Tabellen ruhig bleiben */
html.neu .hg-leinwand { transition: opacity .8s var(--weich); }
html.neu[data-ansicht]:not([data-ansicht="home"]) .hg-leinwand { opacity: .32; }

/* ── Startseite: grosser Spruch ──────────────────────────────────── */
.neu-held h1 { font-size: clamp(46px, 8.4vw, 112px); line-height: .96; letter-spacing: -.055em; font-weight: 680; }
.neu-held h1 .verlauf { background: linear-gradient(100deg, #ffffff 0%, #bfe0ff 30%, var(--accent) 55%, var(--accent-2) 85%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: neuSchimmern 9s ease-in-out infinite alternate; }
@keyframes neuSchimmern { to { background-position: 100% 0; } }
@media (min-width: 901px) { .neu-held { justify-items: start; text-align: left; } .neu-held-inhalt { margin-right: auto; max-width: 760px; } .neu-chips { justify-content: flex-start; } .neu-suchring { margin: 0; } .neu-unter { margin-left: 0; } }

/* ── Einzelseiten: Kopf ohne Kasten, grosse Titel ───────────────── */
html.neu .page-head { background: none !important; border: 0 !important; box-shadow: none !important; backdrop-filter: none !important; padding: 18px 2px 8px !important; margin: 18px 0 18px; align-items: flex-end; }
html.neu .page-head h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1; letter-spacing: -.045em; font-weight: 660; margin: 4px 0 10px;
  background: linear-gradient(100deg, #fff 30%, #bfe0ff 70%, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
html.neu .page-head p:not(.eyebrow) { color: var(--leise); max-width: 720px; font-size: 15.5px; }
html.neu .eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-2); font-weight: 650; letter-spacing: .14em; font-size: 11px; }
html.neu .page-head .eyebrow::before, html.neu .neu-etikett::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }
html.neu .neu-etikett { display: inline-flex; align-items: center; gap: 8px; }
html.neu .tutorial-chip { border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--rand); color: var(--leise); font-weight: 500; }

/* ── Formularelemente ───────────────────────────────────────────── */
html.neu :is(input[type="text"], input[type="search"], input[type="number"], input[type="date"], input:not([type]), select, textarea):not(.neu-palette input) {
  background: rgba(255,255,255,.04) !important; border: 1px solid var(--rand) !important; border-radius: 12px !important; color: var(--text);
  transition: border-color .2s, box-shadow .2s, background .2s; }
html.neu :is(input, select, textarea):not(.neu-palette input):focus { outline: 0; border-color: rgba(155,200,255,.55) !important; box-shadow: 0 0 0 4px rgba(155,200,255,.12); background: rgba(255,255,255,.06) !important; }
html.neu select option { background: #0b1222; }
html.neu .control label, html.neu .field-label { font-weight: 600; letter-spacing: .08em; font-size: 11px; color: var(--leiser); }

/* Umschalter und Zeiträume: Glas statt Farbverlauf */
html.neu :is(.segmented, .range-buttons) { border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--rand); padding: 3px; gap: 2px; }
html.neu :is(.segmented button, .range-buttons button) { border-radius: 999px !important; border: 0 !important; background: none !important; color: var(--leise); font-weight: 550; letter-spacing: 0; }
html.neu :is(.segmented button, .range-buttons button):hover { color: var(--text); }
html.neu :is(.segmented button.active, .range-buttons button.active) { background: rgba(255,255,255,.11) !important; color: var(--text) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 0 18px rgba(155,200,255,.15); }

/* ── Tabellen ───────────────────────────────────────────────────── */
html.neu .data-table thead th { background: rgba(8,13,26,.92) !important; color: var(--leiser); font-weight: 600; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--rand) !important; }
html.neu .data-table td { border-color: rgba(255,255,255,.05) !important; }
html.neu .data-table tbody tr:hover td { background: rgba(155,200,255,.06); }
html.neu .table-meta strong { font-size: 15px; font-weight: 600; }
html.neu .table-scroll { scrollbar-width: thin; scrollbar-color: rgba(155,200,255,.25) transparent; }

/* ── Detailansicht wird zur Firmenakte ──────────────────────────── */
html.neu .drawer-panel { padding: 44px 48px 60px !important; }   /* Breite aus styles.css: 22 px Rand rundum (Leo, 02.11.2026: «fast füllen») */
html.neu .drawer.open .drawer-backdrop { background: rgba(2,5,12,.55); backdrop-filter: blur(6px); }
html.neu .drawer-panel #detailType { margin-top: 6px; }
html.neu .drawer-panel #detailTitle { font-size: clamp(56px, 8vw, 112px) !important; font-weight: 760 !important; letter-spacing: -.06em; line-height: .9; margin: 6px 0 10px;
  background: linear-gradient(110deg, #9bc8ff, #6de5d1 60%, #b9f5e8); -webkit-background-clip: text; background-clip: text; color: transparent; }
html.neu .drawer-panel #detailSubtitle { color: var(--leise); font-size: 18px; margin: 0 0 18px; }
html.neu .drawer-panel .close-button { position: sticky; top: 0; float: right; z-index: 5; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.07); border: 1px solid var(--rand); font-size: 20px; }
html.neu .drawer-quick-actions { gap: 10px; margin-bottom: 8px; }
html.neu .drawer-quick-actions .ghost-button { background: #edf5ff; color: #050a16; border: 0; padding: 11px 18px; }
html.neu .drawer-quick-actions .ghost-button + .ghost-button { background: rgba(255,255,255,.06); color: var(--text); border: 1px solid var(--rand); }
html.neu .drawer-metrics { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important; gap: 12px !important; margin: 26px 0 !important; }
html.neu .drawer-metric { position: relative; padding: 16px 18px !important; border-radius: 18px !important; background: var(--glas) !important; border: 1px solid var(--rand) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06); transition: transform .4s var(--weich), border-color .3s; }
html.neu .drawer-metric:hover { transform: translateY(-2px); border-color: var(--rand-2) !important; }
html.neu .drawer-metric span { color: var(--leiser) !important; font-size: 12px !important; font-weight: 500 !important; letter-spacing: 0 !important; text-transform: none !important; }
html.neu .drawer-metric strong { font-size: 24px !important; font-weight: 500 !important; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
html.neu .detail-auffaellig { border-radius: 20px !important; background: linear-gradient(135deg, rgba(155,200,255,.08), rgba(109,229,209,.05)) !important; border: 1px solid rgba(155,200,255,.2) !important; }
html.neu .detail-section { padding: 0 !important; border-radius: 20px !important; background: var(--glas) !important; border: 1px solid var(--rand) !important; margin-bottom: 12px !important; overflow: hidden; transition: border-color .3s; }
html.neu .detail-section:hover { border-color: var(--rand-2) !important; }
html.neu .detail-section > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; font-size: 16px; font-weight: 600 !important; cursor: pointer; }
html.neu .detail-section > summary::-webkit-details-marker { display: none; }
html.neu .detail-section > summary::after { content: ""; width: 9px; height: 9px; border-right: 1.5px solid var(--leise); border-bottom: 1.5px solid var(--leise); transform: rotate(45deg); transition: transform .35s var(--weich); margin-right: 4px; }
html.neu .detail-section[open] > summary::after { transform: rotate(225deg); }
html.neu .detail-section > :not(summary) { padding: 0 22px 20px; }
html.neu .detail-section .kv-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important; margin-top: 0 !important; }
html.neu .kv { background: rgba(255,255,255,.03) !important; border-color: rgba(255,255,255,.06) !important; border-radius: 14px !important; }
html.neu .kv span { font-weight: 500 !important; letter-spacing: .02em !important; text-transform: none !important; font-size: 12px !important; }
@media (max-width: 900px) {
  html.neu .drawer-panel { padding: 22px 18px 120px !important; }
  html.neu .drawer-metrics { grid-template-columns: repeat(2, 1fr) !important; }
  html.neu .page-head { margin-top: 6px; }
}

html.neu .table-meta span { text-transform: none !important; letter-spacing: 0 !important; font-weight: 500 !important; color: var(--leiser); }
html.neu :is(.controls-card, .table-card, .metric-panel, .map-section, .hero-card) { border-radius: 24px !important; }
html.neu .metric-toolbar { border-radius: 24px !important; }

/* ── Screener (02.11.2026): Aufbau wie vorher, Filter offen über der Tabelle; nur die Gestaltung ist neu ── */
/* Auf Arbeitsseiten schienen die Städtenamen des Globus durch das helle Glas mitten in die Filterfelder
   («London» im Dividenden-Feld). Dort dichteres, dunkles Glas: Inhalt lesbar, Globus nur noch als Stimmung. */
html.neu[data-ansicht]:not([data-ansicht="home"]) :is(.controls-card, .map-section, .table-card, .metric-toolbar, .metric-panel) {
  background: rgba(8, 13, 26, .78) !important;
}
html.neu[data-ansicht]:not([data-ansicht="home"]) .screener-insight { background: rgba(8, 13, 26, .78); }
@media (max-width: 900px) {
  /* Karten statt 19 Spalten: Ticker, Name, Kurs, Tag + drei Kennzahlen */
  html.neu :is(#stocksView, #watchlistView) .table-scroll:has(> .neu-aktienkarten) { max-height: none !important; overflow: visible !important; }
  html.neu :is(#stocksView .table-card, #watchlistView .table-card:has(.neu-aktienkarten)) { padding: 10px !important; }
  html.neu .neu-aktienkarten, html.neu .neu-aktienkarten tbody { display: block; width: 100% !important; min-width: 0 !important; }
  html.neu .neu-aktienkarten thead { display: none; }
  html.neu .neu-aktienkarten tbody tr[data-row-symbol] { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-areas: "sym sym px" "name name chg" "a b c";
    column-gap: 12px; row-gap: 2px; padding: 14px 14px 12px; margin-bottom: 8px; border-radius: 18px; background: rgba(255,255,255,.035); border: 1px solid var(--rand); position: relative; }
  html.neu .neu-aktienkarten tbody tr[data-row-symbol] > td { display: none; padding: 0 !important; border: 0 !important; position: static !important; background: none !important; min-width: 0 !important; width: auto !important; max-width: none !important; }
  html.neu .neu-aktienkarten td[data-k="symbol"] { display: block !important; grid-area: sym; font: 700 17px var(--mono); color: var(--accent); }
  html.neu .neu-aktienkarten td[data-k="name"] { display: block !important; grid-area: name; color: var(--leise); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.neu .neu-aktienkarten td[data-k="price"] { display: block !important; grid-area: px; text-align: right; font-weight: 650; }
  html.neu .neu-aktienkarten td[data-k="change_percent"] { display: block !important; grid-area: chg; text-align: right; font-size: 13px; font-weight: 600; }
  html.neu .neu-aktienkarten tr[data-row-symbol] :is(td[data-k="market_cap"], td[data-k="pe_ratio"], td[data-k="dividend_yield"]) {
    display: inline-flex !important; flex-direction: column; gap: 1px; margin-top: 10px; padding: 8px 0 0 !important; border-top: 1px solid var(--rand) !important; font-size: 13px; font-weight: 600; }
  html.neu .neu-aktienkarten tr[data-row-symbol] :is(td[data-k="market_cap"], td[data-k="pe_ratio"], td[data-k="dividend_yield"])::before {
    content: attr(data-l); color: var(--leiser); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
  /* die drei Kennzahlen teilen sich die unterste Zeile */
  html.neu .neu-aktienkarten td[data-k="market_cap"] { grid-area: a; }
  html.neu .neu-aktienkarten td[data-k="pe_ratio"] { grid-area: b; }
  html.neu .neu-aktienkarten td[data-k="dividend_yield"] { grid-area: c; text-align: right; align-items: flex-end; }
  html.neu .neu-aktienkarten tbody tr.load-more-row { display: block; }
  html.neu .neu-aktienkarten tbody tr.load-more-row td { display: block; text-align: center; padding: 8px 0 !important; }
  html.neu #stocksView .table-meta span { display: none; }
}

/* Getipptes Suchbeispiel kommt aus data-t, damit i18n.js es nicht als Wort übersetzt («Mi» → «Wed») */
#neuTipp b::after { content: attr(data-t); }

/* ── Screener schöner (02.11.2026) — Aufbau unverändert, nur Gestaltung ─────────────── */
/* Filter: alle sieben Felder in EINER Zeile (vorher 2fr + 5 Spalten für 7 Felder → «Sortieren» allein in Zeile 2) */
@media (min-width: 1180px) {
  html.neu #stocksView .universe-controls { grid-template-columns: minmax(240px, 2fr) repeat(6, minmax(118px, 1fr)); }
}
@media (min-width: 901px) and (max-width: 1179px) {
  html.neu #stocksView .universe-controls { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  html.neu #stocksView .universe-controls .wide-control { grid-column: 1 / -1; }
}
html.neu #stocksView .universe-controls { gap: 14px; padding: 18px 20px !important; }
html.neu #stocksView .control label { color: var(--leiser); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; margin-bottom: 7px; }
html.neu #stocksView .control :is(input, select) {
  height: 44px; border-radius: 14px; background-color: rgba(255,255,255,.04) !important; border: 1px solid var(--rand) !important; color: #eef4ff;
  font-size: 14px; transition: border-color .2s, background-color .2s, box-shadow .25s;
}
html.neu #stocksView .control select {
  appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2393a7c2' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 13px center !important;
}
html.neu #stocksView .control input[data-filter="query"] {
  padding-left: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2393a7c2' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: 14px center !important;
}
html.neu #stocksView .control :is(input, select):hover { border-color: var(--rand-2) !important; background-color: rgba(255,255,255,.06) !important; }
html.neu #stocksView .control :is(input, select):focus { outline: none; border-color: rgba(155,200,255,.5) !important; box-shadow: 0 0 0 4px rgba(155,200,255,.10) !important; }
/* Ein gesetzter Filter fällt auf: Wert ≠ «Alle» bekommt die Akzentkante (per :has, kein JS nötig) */
html.neu #stocksView .control:has(select:not([data-filter="sort"]) option:checked:not([value="all"])) select { border-color: rgba(155,200,255,.55) !important; background-color: rgba(155,200,255,.08) !important; }
html.neu #stocksView .control select option { background: #0b1222; color: #eef4ff; }

/* Regionskacheln: farbige Kopflinie, leises Anheben */
html.neu #stocksView .screener-insight-strip { gap: 12px; }
html.neu #stocksView .screener-insight { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--rand); padding: 16px 18px 15px;
  transition: transform .35s var(--weich), border-color .25s; }
html.neu #stocksView .screener-insight::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, rgba(155,200,255,.9), rgba(155,200,255,0)); }
html.neu #stocksView .screener-insight:nth-child(2)::before { background: linear-gradient(90deg, #6aa8ff, transparent); }
html.neu #stocksView .screener-insight:nth-child(3)::before { background: linear-gradient(90deg, #6de5a1, transparent); }
html.neu #stocksView .screener-insight:nth-child(4)::before { background: linear-gradient(90deg, #f5b45f, transparent); }
html.neu #stocksView .screener-insight:hover { transform: translateY(-2px); border-color: var(--rand-2); }
html.neu #stocksView .screener-insight span { color: var(--leiser); letter-spacing: .12em; font-size: 10.5px; }
html.neu #stocksView .screener-insight strong { font-size: 24px; letter-spacing: -.02em; }

/* «Screening filters» als klarer Aufklapp-Balken mit drehendem Pfeil */
html.neu #stocksView .screener-map-section > summary { padding: 16px 20px; cursor: pointer; }
html.neu #stocksView .screener-map-section > summary:hover { background: rgba(255,255,255,.025); }
html.neu #stocksView .map-summary-action { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--rand); color: #eef4ff; font-size: 11.5px; letter-spacing: .1em; }
html.neu #stocksView .map-summary-action::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .3s var(--weich); }
html.neu #stocksView .screener-map-section[open] .map-summary-action::after { transform: rotate(225deg) translate(-2px, -2px); }

/* Spalten-Leiste kompakter */
html.neu #stocksView .metric-toolbar { padding: 14px 20px !important; }
html.neu #stocksView .metric-toolbar h3 { font-size: 16px; }

/* Tabelle: fester Glas-Kopf, Ticker in Akzent, Tageswert als Pille, Zeilen mit Licht */
html.neu #stocksView .data-table thead th { position: sticky; top: 0; z-index: 2; background: rgba(10,16,30,.92); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px); color: var(--leiser); font-size: 10.5px; letter-spacing: .12em; border-bottom: 1px solid var(--rand-2); }
html.neu .neu-aktienkarten tbody tr[data-row-symbol] { cursor: pointer; }
html.neu .neu-aktienkarten tbody tr[data-row-symbol]:hover td { background: rgba(155,200,255,.055); }
html.neu .neu-aktienkarten td[data-k="symbol"] span { font-family: var(--mono); font-weight: 700; color: var(--accent); letter-spacing: .02em; }
html.neu .neu-aktienkarten td[data-k="change_percent"] span:is(.positive, .negative) { display: inline-block; min-width: 64px; text-align: right; padding: 3px 9px;
  border-radius: 999px; font-weight: 650; font-size: 12.5px; }
html.neu .neu-aktienkarten td[data-k="change_percent"] span.positive { color: var(--plus); background: rgba(109,229,161,.10); }
html.neu .neu-aktienkarten td[data-k="change_percent"] span.negative { color: var(--minus); background: rgba(255,113,139,.10); }
html.neu #stocksView .watch-button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--rand); background: rgba(255,255,255,.03);
  color: var(--leise); transition: background .2s, color .2s, border-color .2s; }
html.neu #stocksView .watch-button:hover { color: #050a16; background: #edf5ff; border-color: #edf5ff; }
@media (max-width: 900px) { html.neu #stocksView .screener-insight strong { font-size: 18px; } html.neu #stocksView .screener-insight { padding: 13px 14px; } }

/* ETFs und Rohstoffe versteckt (02.11.2026): Reiter und Startseiten-Kacheln. Daten bleiben für den Quant Lab. */
html.neu :is(.nav-link, .feature-card)[data-view="commodities"] { display: none !important; }   /* ETFs seit 08.11.2026 wieder sichtbar (ETF-Vergleich) */

/* Teilchen ragen bewusst 20 px über die Ränder (#neuTeilchen) — der Kopf schneidet seitlich ab, sonst 4 px Querscrollen bei fester Bildlaufleiste (02.11.2026) */
.neu-held { overflow-x: clip; }

/* Firmenakte: Knöpfe rechts in der Zeile des Charts. Die Hülle hat keine Höhe und bleibt sichtbar, wenn der Chart zu ist. */
.neu-alle { position: relative; height: 0; z-index: 3; }
.neu-alle > div { position: absolute; top: 12px; right: 52px; display: flex; gap: 6px; }
.neu-alle button { height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--rand); background: rgba(255,255,255,.05); color: var(--text); font: 550 13px var(--font); cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s; }
.neu-alle button:hover { background: rgba(255,255,255,.1); border-color: var(--rand-2); }
@media (max-width: 480px) { .neu-alle > div { right: 42px; gap: 4px; } .neu-alle button { height: 30px; padding: 0 9px; font-size: 12px; } }

/* Host Grotesk läuft breiter als Inter: grosse Titel weniger eng, Kacheln am Handy kleiner, sonst bricht «204.75 USD» um. */
.neu-held h1 { letter-spacing: -.04em; }
html.neu .page-head h2 { letter-spacing: -.035em; }
html.neu .drawer-panel #detailTitle { letter-spacing: -.04em; }
@media (max-width: 480px) { html.neu .drawer-metric { padding: 13px 14px !important; } html.neu .drawer-metric strong { font-size: 19px !important; white-space: nowrap; } }

/* Firmenakte fast bildschirmfüllend: Chart nutzt die volle Breite (styles.css begrenzte ihn), ✕ steht im eigenen Randstreifen
   und liegt beim Scrollen nicht über den Knöpfen rechts. */
html.neu #priceChart { max-width: none !important; width: 100% !important; }
@media (min-width: 901px) {
  html.neu .drawer-panel { padding-left: 64px !important; padding-right: 64px !important; }
  html.neu .drawer-panel .close-button { right: auto !important; margin-right: -54px; top: 4px; }
  html.neu #priceChart { height: 340px !important; }
}

/* Handy: ✕ klein in die Ecke, sonst liegt es beim Scrollen über den Knöpfen; Zeiträume bleiben in einer Zeile. */
@media (max-width: 900px) {
  html.neu .drawer-panel .close-button { right: auto !important; top: 6px; width: 30px; height: 30px; margin-right: -14px; font-size: 15px; }
  html.neu .range-buttons { flex-wrap: nowrap; gap: 0 !important; justify-content: space-between; }
  html.neu .range-buttons button { padding: 6px 7px !important; font-size: 12px !important; min-width: 0; }
}

/* ════════════════════════════════════════════════════════════════════
   Kompakte Handyfassung (Leo, 02.11.2026: «alles kleiner, kompakter damit alles übersichtlich ist … der erste block ist gut so
   gross, aber weiter unten … ab dort kleiner»). Der Startkopf .neu-held bleibt unangetastet.
   Eingabefelder behalten 16 px: darunter zoomt iOS beim Antippen die ganze Seite.
   ════════════════════════════════════════════════════════════════════ */
.neu-filter-knopf { display: none; }
@media (max-width: 600px) {
  html.neu { --fs-2xl: 16px; --fs-3xl: 17px; --fs-4xl: 18px; --fs-5xl: 19px; --fs-6xl: 21px; --fs-7xl: 23px; --fs-hero: 26px; }
  html.neu .shell { width: calc(100% - 20px); }

  /* Köpfe */
  html.neu .page-head { padding: 2px 2px 0 !important; margin: 0 0 10px; gap: 8px; flex-wrap: wrap; align-items: center; }
  html.neu .page-head h2 { font-size: 25px; margin: 0 0 3px; letter-spacing: -.03em; }
  html.neu .page-head p:not(.eyebrow) { font-size: 12.5px; line-height: 1.35; }
  html.neu .page-head .eyebrow { display: none; }
  html.neu .page-title-row { gap: 8px; }
  html.neu .tutorial-chip { padding: 3px 8px; font-size: 10px; }
  html.neu .page-actions { gap: 5px; flex-wrap: wrap; width: auto; }
  html.neu .page-actions :is(.primary-button, .ghost-button) { width: auto !important; }
  html.neu .desktop-hinweis { padding: 7px 10px !important; margin-bottom: 8px !important; font-size: 11px !important; line-height: 1.3; border-radius: 10px !important; }
  html.neu :is(h3, .section-heading h3) { font-size: 16px; }
  html.neu .section-heading { gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
  html.neu .eyebrow { font-size: 10px; margin-bottom: 3px; letter-spacing: .1em; }
  html.neu :is(.muted, .small-copy) { font-size: 12px; line-height: 1.35; }

  /* Flächen */
  html.neu :is(.glass-panel, .table-card, .controls-card, .metric-panel, .map-section, .portfolio-card, .feature-card, .metric-toolbar) { padding: 11px !important; margin-bottom: 8px !important; border-radius: 15px !important; }
  html.neu .metric-card { padding: 9px 10px; min-height: 0; border-radius: 12px; }
  html.neu .metric-card span { font-size: 10px; }
  html.neu .metric-card strong { font-size: 18px; letter-spacing: -.02em; }
  html.neu .metric-card small { font-size: 10.5px; }

  /* Knöpfe und Felder */
  html.neu :is(.primary-button, .ghost-button, .icon-button) { padding: 7px 12px; font-size: 12.5px; min-height: 32px; width: auto; }
  html.neu .button-row { gap: 6px; }
  html.neu .controls-card { gap: 7px !important; }
  html.neu :is(input[type="text"], input[type="search"], input[type="number"], input[type="date"], input:not([type]), select):not(.neu-palette input) { min-height: 36px; padding: 6px 10px !important; font-size: 16px; }
  html.neu .control label, html.neu .field-label { font-size: 10px; margin-bottom: 3px; }
  html.neu .segmented button { padding: 5px 10px; font-size: 12px; }
  html.neu .table-meta { gap: 6px; margin-bottom: 6px; }
  html.neu .table-meta span { display: none; }
  html.neu .data-table { font-size: 12.5px; }
  html.neu .data-table th, html.neu .data-table td { padding: 7px 8px !important; }

  /* Filter eingeklappt: Suchfeld bleibt, der Rest liegt hinter dem Knopf */
  .neu-filter-knopf { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--rand); background: rgba(255,255,255,.05); color: var(--text); font: 550 12.5px var(--font); cursor: pointer; }
  html.neu .universe-controls { display: grid; grid-template-columns: 1fr 1fr; }
  html.neu .universe-controls .wide-control { grid-column: 1 / -1; }
  html.neu .universe-controls:not(.neu-filter-offen) > .control:not(.wide-control) { display: none; }
  html.neu .universe-controls:not(.neu-filter-offen) { padding: 8px !important; }
  html.neu .universe-controls:not(.neu-filter-offen) .wide-control label { display: none; }
  html.neu .screener-map-section > summary { padding: 0 !important; font-size: 12.5px; }
  html.neu .screener-map-section > summary small, html.neu .screener-map-section > summary span span { display: none; }
  html.neu .metric-toolbar { flex-direction: row !important; align-items: center !important; justify-content: space-between; }
  html.neu .metric-toolbar :is(.eyebrow, .small-copy) { display: none; }
  html.neu .metric-toolbar h3 { font-size: 13.5px; margin: 0; }
  html.neu .screener-insight-strip { gap: 6px !important; margin-bottom: 8px !important; }
  html.neu #stocksView .screener-insight { padding: 7px 10px !important; min-width: 118px; border-radius: 12px !important; }
  html.neu #stocksView .screener-insight strong { font-size: 14.5px !important; }
  html.neu #stocksView .screener-insight small { font-size: 10px; }

  /* Aktienkarten */
  html.neu #stocksView .table-card { padding: 6px !important; }
  html.neu .neu-aktienkarten tbody tr[data-row-symbol] { padding: 8px 10px 7px; margin-bottom: 5px; border-radius: 12px; column-gap: 8px; row-gap: 0; }
  html.neu .neu-aktienkarten td[data-k="symbol"] { font-size: 14px; }
  html.neu .neu-aktienkarten td[data-k="name"] { font-size: 11.5px; }
  html.neu .neu-aktienkarten td[data-k="price"] { font-size: 13px; }
  html.neu .neu-aktienkarten td[data-k="change_percent"] { font-size: 11.5px; }

  /* Startseite unter dem Kopf */
  html.neu .neu-kopf { margin: 6px 0 8px; gap: 2px; }
  html.neu .neu-kopf h2 { font-size: 19px; margin-top: 1px; letter-spacing: -.02em; }
  html.neu .neu-kopf p { display: none; }
  html.neu .neu-etikett { font-size: 10px; }
  html.neu .neu-baender { gap: 8px; margin-bottom: 14px; }
  html.neu .neu-band { padding: 10px 11px; border-radius: 15px; }
  html.neu .neu-band h3 { font-size: 13.5px; gap: 7px; margin: 0; }
  html.neu .neu-band h3 .ico { width: 22px; height: 22px; font-size: 11px; border-radius: 7px; }
  html.neu .neu-band .sub { font-size: 10.5px; margin: 2px 0 4px; }
  html.neu .neu-reihe { grid-template-columns: 46px 1fr auto; gap: 6px; padding: 5px 6px; margin: 0 -6px; width: calc(100% + 12px); border-radius: 9px; }
  html.neu .neu-reihe .tk { font-size: 12px; }
  html.neu .neu-reihe .nm { font-size: 12.5px; line-height: 1.2; }
  html.neu .neu-reihe .nm small { font-size: 10.5px; }
  html.neu .neu-reihe .wert { font-size: 12.5px; }
  html.neu .neu-ehrlich { margin-top: 6px; padding: 6px 9px; font-size: 11px; line-height: 1.3; border-radius: 9px; }
  html.neu #homeView .feature-grid { gap: 6px; }
  html.neu #homeView .feature-card { display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 8px; padding: 8px 9px !important; margin: 0 !important; border-radius: 12px !important; }
  html.neu #homeView .feature-card span { width: 26px; height: 26px; margin: 0; border-radius: 8px; font-size: 12px; }
  html.neu #homeView .feature-card h3 { font-size: 12.5px; margin: 0; line-height: 1.2; }
  html.neu #homeView .feature-card p { display: none; }
  html.neu .strategie-tabs { display: flex; overflow-x: auto; max-width: 100%; }
  html.neu .strategie-note { padding: 8px 10px !important; font-size: 12px; }
  html.neu .strategie-table { font-size: 12px; }
  html.neu .strategie-table :is(th, td) { padding: 6px 6px !important; }

  /* Firmenakte */
  html.neu .drawer-panel { padding: 12px 12px 110px !important; }
  html.neu .asset-tabs { padding: 4px !important; margin: 0 40px 6px 0 !important; border-radius: 12px !important; }
  html.neu .asset-tabs button { padding: 4px 8px !important; border-radius: 9px !important; font-size: 11.5px !important; }
  html.neu .drawer-panel #detailType { display: none; }
  html.neu .drawer-panel #detailTitle { font-size: 40px !important; margin: 2px 0 2px; }
  html.neu .drawer-panel #detailSubtitle { font-size: 12.5px; margin: 0 0 8px; }
  html.neu .drawer-quick-actions { gap: 6px; margin-bottom: 0; flex-wrap: nowrap; }
  html.neu .drawer-quick-actions .ghost-button { padding: 6px 10px !important; font-size: 11.5px; min-height: 30px; white-space: nowrap; }
  html.neu .drawer-metrics { grid-template-columns: repeat(3, 1fr) !important; gap: 6px !important; margin: 10px 0 !important; }
  html.neu .drawer-metric { padding: 7px 9px !important; border-radius: 11px !important; }
  html.neu .drawer-metric span { font-size: 10px !important; }
  html.neu .drawer-metric strong { font-size: 14.5px !important; margin-top: 2px !important; }
  html.neu .detail-auffaellig { padding: 8px 10px !important; border-radius: 12px !important; font-size: 12px !important; margin-bottom: 8px !important; }
  html.neu .detail-section { margin-bottom: 6px !important; border-radius: 13px !important; }
  html.neu .detail-section > summary { padding: 10px 12px; font-size: 13.5px; }
  html.neu .detail-section > :not(summary) { padding: 0 10px 10px; }
  html.neu .detail-section .kv-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 5px !important; }
  html.neu .kv { padding: 7px 9px !important; border-radius: 10px !important; }
  html.neu .kv span { font-size: 10px !important; } html.neu .kv strong { font-size: 13px !important; margin-top: 2px !important; }
  html.neu .neu-alle > div { top: 6px; right: 32px; }
  html.neu .neu-alle button { height: 26px; padding: 0 8px; font-size: 11px; }
  html.neu .history-header { gap: 6px !important; margin-bottom: 4px !important; }
  html.neu .history-actions { display: grid !important; grid-template-columns: 1fr 1fr; gap: 5px; width: 100%; }
  html.neu .history-actions .ghost-button { width: 100% !important; padding: 5px 6px; font-size: 11.5px; min-height: 28px; }
  html.neu .chart-card { padding: 4px !important; min-height: 0 !important; margin-top: 4px; border-radius: 11px; }
  html.neu #priceChart { height: 180px !important; }
  /* Die grosse Infobox deckte den halben Chart: am Handy nur Kurs und Datum, klein in der Ecke */
  html.neu .chart-tooltip { padding: 4px 7px !important; min-width: 0 !important; width: auto !important; border-radius: 8px !important; top: 6px !important; }
  html.neu .chart-tooltip strong { font-size: 12px !important; }
  html.neu .chart-tooltip-grid { display: none !important; }
  html.neu .chart-tooltip :is(span, small) { font-size: 10px !important; }

  /* Nachschärfung nach Sichtprüfung */
  html.neu body .universe-controls .wide-control input[data-filter="query"][data-filter-type] { padding-left: 36px !important; font-size: 16px !important; }
  html.neu .metric-toolbar h3 { font-size: 13.5px !important; }
  html.neu .drawer-panel .close-button { width: 30px !important; height: 30px !important; min-width: 0 !important; max-width: 30px !important; min-height: 30px; border-radius: 50% !important; padding: 0 !important; display: grid; place-items: center; margin-right: -6px; font-size: 14px; }
  html.neu .detail-auffaellig :is(li, p, ul, h4, strong, small) { font-size: 12px !important; line-height: 1.3 !important; }
  html.neu .detail-auffaellig ul { padding-left: 14px; margin: 2px 0; }
  html.neu .view p:not(.neu-unter):not(.eyebrow) { font-size: 12.5px; line-height: 1.35; }
  html.neu .view li { font-size: 12.5px; line-height: 1.35; }

  /* Untere Leiste */
  .neu-unterleiste { left: 10px; right: 10px; bottom: max(8px, env(safe-area-inset-bottom)); padding: 4px; border-radius: 18px; }
  .neu-unterleiste button { padding: 3px 8px; font-size: 9.5px; min-width: 50px; border-radius: 12px; gap: 1px; }
  .neu-unterleiste svg { width: 18px; height: 18px; }
  html.neu .shell { padding-bottom: 76px; }
  html.neu .feedback-fab { bottom: 66px !important; right: 10px !important; transform: scale(.8); transform-origin: bottom right; }
}

/* Feedback-Knopf am Handy: Symbol exakt mittig. Vorher Kreis 38 px mit Scale, Symbol lag 6 px oben links daneben. */
@media (max-width: 900px) {
  html.neu .feedback-fab { display: grid !important; place-items: center; width: 36px !important; height: 36px !important; padding: 0 !important; gap: 0; border-radius: 50%; transform: none !important; }
  html.neu .feedback-fab span { width: 24px; height: 24px; margin: 0; }
  html.neu .feedback-fab strong { display: none !important; }
}

/* Supply Chains am Handy (Leo, 02.11.2026: «diese sieht katastrophal aus»): Netz zuerst, Filter hinter einem Knopf. */
html.neu #supplyView .lk-filter .neu-filter-knopf { margin: 0; }
@media (max-width: 600px) {
  html.neu #supplyView .page-head { display: flex !important; flex-direction: column; align-items: stretch !important; gap: 6px; }
  html.neu #supplyView .page-head .desktop-hinweis { display: none !important; }
  html.neu #supplyView .page-actions { display: flex; flex-direction: row; align-items: center; gap: 8px; width: 100%; }
  html.neu #supplyView .page-actions .field-label { display: none; }
  html.neu #supplyView .page-actions select { flex: 1; min-width: 0; width: 100% !important; margin: 0 !important; }

  html.neu #supplyView .lk-wert { display: grid !important; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 !important; margin-bottom: 8px !important; background: none !important; border: 0 !important; overflow: visible; }
  html.neu #supplyView .lk-wert-zahl { min-width: 0; padding: 7px 10px; border: 1px solid var(--rand) !important; border-radius: 12px; background: var(--glas); }
  html.neu #supplyView .lk-wert-k { font-size: 9.5px; letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.neu #supplyView .lk-wert-v { font-size: 16px; }
  html.neu #supplyView .lk-wert-v small { font-size: 10.5px; }
  html.neu #supplyView .lk-wert-band { display: none !important; }

  html.neu #supplyView .lk-raster { display: flex; flex-direction: column; align-items: stretch !important; gap: 8px; }
  html.neu #supplyView .lk-raster > * { width: 100%; min-width: 0; box-sizing: border-box; overflow-wrap: anywhere; }
  html.neu #supplyView .lk-filter { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; padding: 8px !important; margin: 0 !important; }
  html.neu #supplyView .lk-filter > * { grid-column: 1 / -1; }
  html.neu #supplyView .lk-filter > .lk-suche { grid-column: 1; margin: 0; }
  html.neu #supplyView .lk-filter > .neu-filter-knopf { grid-column: 2; }
  html.neu #supplyView .lk-filter > .eyebrow:first-child { display: none; }
  html.neu #supplyView .lk-filter:not(.neu-filter-offen) > :not(.lk-suche):not(.neu-filter-knopf) { display: none; }
  html.neu #supplyView .lk-filter.neu-filter-offen .eyebrow.lk-abstand { margin-top: 6px; }
  html.neu #supplyView .lk-filter #lkBranchen { max-height: 190px; overflow-y: auto; }
  html.neu #supplyView .lk-filter :is(button:not(.neu-filter-knopf):not(.ghost-button)) { min-height: 28px; padding: 3px 6px; font-size: 12.5px; }

  html.neu #supplyView .lk-buehne { padding: 8px !important; gap: 6px; margin: 0 !important; }
  html.neu #supplyView .lk-werkzeug { gap: 4px; }
  html.neu #supplyView .lk-werkzeug-titel { font-size: 13.5px; width: 100%; }
  html.neu #supplyView .lk-werkzeug > .muted { font-size: 11px !important; width: 100%; line-height: 1.3; }
  html.neu #supplyView .lk-werkzeug .ghost-button { padding: 4px 9px; min-height: 28px; font-size: 11.5px; }
  html.neu #supplyView .lk-leinwand { height: 330px; border-radius: 11px; }
  html.neu #supplyView #lkNetz { touch-action: pan-y; }
  html.neu .neu-lk-unten .lk-hud { position: static; max-width: none; padding: 0 2px; background: none; border: 0; backdrop-filter: none; font-size: 10.5px; line-height: 1.45; }
  html.neu .neu-lk-unten details summary { padding: 6px 2px 2px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
  html.neu .neu-lk-unten .lk-naben { position: static; width: auto; max-height: none; padding: 4px 0 0; background: none; border: 0; backdrop-filter: none; }

  html.neu #supplyView .lk-profil { padding: 11px !important; margin: 0 !important; max-height: none; }
  html.neu #supplyView .lk-ticker { font-size: 20px; }
  html.neu #supplyView .lk-name { font-size: 14px; margin: 2px 0 6px; }
  html.neu #supplyView .lk-zeile { padding: 4px 6px; font-size: 12.5px; }
  html.neu #supplyView .lk-tabelle-karte { margin-top: 8px; padding: 8px !important; }
  html.neu #supplyView .table-scroll { max-height: 430px; }
  html.neu #lkTabelle :is(td, th) { padding: 4px 6px !important; font-size: 11.5px; }
  html.neu #lkTabelle .lk-watch-zelle button { width: 24px; height: 24px; min-height: 24px; padding: 0; }
}

/* Quant Lab am Handy (Leo, 02.11.2026): Auswahl als enge Tafel, Kennzahlen dreispaltig, Charts ohne Seitwärtsscroll, Erklärung aufklappbar. */
@media (max-width: 600px) {
  html.neu #correlationView .correlation-head-badge { display: none; }
  html.neu #correlationView .correlation-workbench { padding: 7px; margin-bottom: 7px; }
  html.neu #correlationView .correlation-mode-switch { margin-bottom: 7px; }
  html.neu #correlationView .correlation-mode-switch button { min-height: 30px; padding: 4px 8px; font-size: 12px; }

  html.neu #correlationPairSetup { grid-template-columns: 58px minmax(0, 1fr) 28px minmax(0, 1fr) !important; gap: 5px 4px; padding: 0; border: 0; background: none; }
  html.neu #correlationPairSetup .correlation-asset-picker { display: contents !important; }
  html.neu #correlationPairSetup .control { margin: 0; min-width: 0; width: auto; grid-column: auto !important; }
  html.neu #correlationPairSetup .control:has(#correlationTypeA) { grid-area: 1 / 1 / 2 / 3 !important; }
  html.neu #correlationPairSetup .control:has(#correlationSearchA) { grid-area: 2 / 1 / 3 / 3 !important; }
  html.neu #correlationPairSetup .control:has(#correlationSymbolA) { grid-area: 3 / 1 / 4 / 3 !important; }
  html.neu #correlationPairSetup .control:has(#correlationTypeB) { grid-area: 1 / 4 / 2 / 5 !important; }
  html.neu #correlationPairSetup .control:has(#correlationSearchB) { grid-area: 2 / 4 / 3 / 5 !important; }
  html.neu #correlationPairSetup .control:has(#correlationSymbolB) { grid-area: 3 / 4 / 4 / 5 !important; }
  html.neu #correlationPairSetup > .correlation-swap { grid-area: 3 / 3 / 4 / 4 !important; align-self: center; justify-self: center; width: 28px !important; min-width: 28px; height: 34px; min-height: 34px; margin: 0; padding: 0; transform: none; }
  html.neu #correlationPairSetup .control:has(#correlationSimilarCount) { grid-area: 4 / 1 / 5 / 2 !important; }
  html.neu #correlationPairSetup .correlation-similarity-row { grid-area: 4 / 2 / 5 / 5 !important; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0; }
  html.neu #correlationPairSetup .correlation-similarity-row > * { width: auto; min-height: 36px; padding: 4px 6px; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.neu #correlationPairSetup > .control:has(#correlationRange) { grid-area: 5 / 1 / 6 / 3 !important; }
  html.neu #correlationPairSetup > .correlation-run-button { grid-area: 5 / 3 / 6 / 5 !important; width: 100%; min-width: 0; min-height: 36px; padding: 2px 8px; font-size: 12px; line-height: 1.12; white-space: normal; }
  html.neu #correlationPairSetup .control label { font-size: 9.5px; margin-bottom: 2px; }
  html.neu #correlationPairSetup .control:is(:has(#correlationSearchA), :has(#correlationSearchB), :has(#correlationSymbolA), :has(#correlationSymbolB), :has(#correlationSimilarCount), :has(#correlationRange)) label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  html.neu #correlationPairSetup :is(select, input) { height: 36px; min-height: 36px; padding: 4px 8px; width: 100%; min-width: 0; font-size: 16px; }
  html.neu #correlationWatchlistSetup { gap: 5px; padding: 0; border: 0; background: none; }

  html.neu #correlationStatus { min-height: 0; padding: 6px 10px; margin-bottom: 7px; }
  html.neu #correlationStatus strong { font-size: 13px; }
  html.neu #correlationPairResults, html.neu #correlationView :is(.quant-tab-panel, .correlation-visual-grid, .correlation-detail-grid) { gap: 7px; }
  html.neu #correlationView .quant-narrative { padding: 10px; }
  html.neu #correlationView .quant-narrative h3 { margin-bottom: 4px; }
  html.neu #correlationView .interpretation-callout { margin: 6px 0; padding-left: 9px; }
  html.neu #correlationView .interpretation-callout p { font-size: 12.5px; line-height: 1.38; }
  html.neu #correlationView .correlation-mode-switch[role="tablist"], html.neu #correlationPairResults > .correlation-mode-switch { margin-bottom: 0; }
  html.neu #correlationPairResults > .correlation-mode-switch button { font-size: 11.5px; padding: 4px 4px; white-space: nowrap; }

  html.neu #correlationView .correlation-score-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 5px; overflow: visible; margin: 0; padding: 0; }
  html.neu #correlationView .correlation-score-card { min-width: 0 !important; width: auto !important; min-height: 0; padding: 7px; border-radius: 10px; }
  html.neu #correlationView .correlation-score-card span { font-size: 9px; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  html.neu #correlationView .correlation-score-card strong { font-size: 16px; }
  html.neu #correlationView .correlation-score-card small { font-size: 9.5px; line-height: 1.25; }

  html.neu #correlationView .correlation-chart-card { padding: 9px; overflow: visible; min-height: 0; }
  html.neu #correlationView .correlation-chart-card .section-heading { margin-bottom: 5px; }
  html.neu #correlationView .correlation-chart-card .section-heading small { font-size: 11px; line-height: 1.3; }
  html.neu #correlationView .correlation-chart-card svg { min-width: 0 !important; min-height: 0 !important; width: 100%; height: auto; border-radius: 8px; }
  html.neu #correlationView .correlation-chart-stage { min-height: 0; }
  html.neu #correlationView .correlation-svg-axis { font-size: 12px; }
  html.neu #correlationView .correlation-list { gap: 4px; }
  html.neu #correlationView .correlation-list-row { padding: 6px 9px; border-radius: 10px; }
  html.neu #correlationView .correlation-list-row strong { font-size: 13px; }
  html.neu #correlationView .correlation-list-row small { font-size: 11px; line-height: 1.3; }

  html.neu #correlationView .correlation-methodology { padding: 0; margin-top: 7px; }
  html.neu #correlationView .correlation-methodology > div:first-child { display: block; position: relative; padding: 10px 34px 10px 11px; cursor: pointer; }
  html.neu #correlationView .correlation-methodology > div:first-child::after { content: "▾"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--leise); transition: transform .2s; }
  html.neu #correlationView .correlation-methodology.neu-methodik-offen > div:first-child::after { transform: translateY(-50%) rotate(180deg); }
  html.neu #correlationView .correlation-methodology h3 { margin: 0; font-size: 14px; }
  html.neu #correlationView .correlation-methodology > div:first-child p:not(.eyebrow) { margin: 5px 0 0; font-size: 12px; }
  html.neu #correlationView .correlation-methodology:not(.neu-methodik-offen) > div:first-child p:not(.eyebrow),
  html.neu #correlationView .correlation-methodology:not(.neu-methodik-offen) .methodology-grid { display: none; }
  html.neu #correlationView .methodology-grid { grid-template-columns: 1fr 1fr !important; gap: 5px; padding: 0 8px 8px; margin: 0; }
  html.neu #correlationView .methodology-grid article { padding: 7px; min-height: 0; border-radius: 10px; }
  html.neu #correlationView .methodology-grid article span { width: 22px; height: 22px; font-size: 11px; margin-bottom: 3px; }
  html.neu #correlationView .methodology-grid article strong { font-size: 12.5px; }
  html.neu #correlationView .methodology-grid article p { font-size: 10.5px; line-height: 1.3; margin: 2px 0 0; }
}
@media (max-width: 350px) { html.neu .topbar .brand strong { display: none; } }

/* ── Desktop kompakter (02.11.2026, Leo: «im desktop die schrift auch kleiner bei aktien und den anderen, bei der
   startseite ist gut … bei einer einzelnen aktie kompakter, damit man direkt den mehrwert sieht») ──────────────
   Nur ab 901 px; die Startseite (data-ansicht=home) und das Handy behalten ihre Masse. */
@media (min-width: 901px) {
  /* Seitenköpfe und Tabellen der Arbeitsseiten */
  html.neu[data-ansicht]:not([data-ansicht="home"]) .page-head { margin: 8px 0 10px; padding: 10px 2px 4px !important; }
  html.neu[data-ansicht]:not([data-ansicht="home"]) .page-head h2 { font-size: 38px; margin: 2px 0 6px; }
  html.neu[data-ansicht]:not([data-ansicht="home"]) .page-head p:not(.eyebrow) { font-size: 14px; }
  html.neu[data-ansicht]:not([data-ansicht="home"]) .data-table td { font-size: 13.5px; padding-top: 9px !important; padding-bottom: 9px !important; }
  html.neu[data-ansicht]:not([data-ansicht="home"]) .data-table th { padding-top: 10px !important; padding-bottom: 10px !important; }
  html.neu[data-ansicht]:not([data-ansicht="home"]) :is(.controls-card, .table-card, .map-section, .metric-panel) { margin-bottom: 12px !important; }
  html.neu #stocksView .control :is(input, select) { height: 38px; font-size: 13.5px; }
  html.neu #stocksView .universe-controls { padding: 14px 16px !important; gap: 10px; }
  html.neu #stocksView .screener-insight { padding: 12px 16px 11px; }
  html.neu #stocksView .screener-insight strong { font-size: 19px; }
  html.neu #stocksView .screener-map-section > summary { padding: 12px 18px; }
  html.neu #stocksView .metric-toolbar { padding: 10px 18px !important; }
  html.neu #stocksView .metric-toolbar h3 { font-size: 14.5px; }
  html.neu #stocksView .metric-toolbar .small-copy { display: none; }

  /* Firmenakte: Kopf, Kennzahlen und Kursverlauf auf einen Blick */
  html.neu .drawer-panel { padding-top: 22px !important; padding-bottom: 48px !important; }   /* seitlich bleiben 64 px: Randstreifen fürs ✕ */
  html.neu .drawer-panel .asset-tabs { margin-bottom: 4px; }
  html.neu .drawer-panel .asset-tab { padding-top: 6px !important; padding-bottom: 6px !important; }
  html.neu .drawer-panel #detailType { margin-top: 2px; }
  html.neu .drawer-panel #detailTitle { font-size: 52px !important; line-height: 1; margin: 2px 0 4px; }
  html.neu .drawer-panel #detailSubtitle { font-size: 14px; margin: 0 0 10px; }
  html.neu .drawer-panel .drawer-quick-actions { margin: 0 0 4px !important; }
  html.neu .drawer-metrics { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)) !important; gap: 8px !important; margin: 12px 0 !important; }
  html.neu .drawer-metric { padding: 10px 14px !important; border-radius: 14px !important; }
  html.neu .drawer-metric span { font-size: 11px !important; }
  html.neu .drawer-metric strong { font-size: 18px !important; }
  html.neu .detail-auffaellig { padding: 12px 16px !important; margin-bottom: 12px !important; }
  html.neu .detail-auffaellig ul { font-size: 13.5px; margin: 6px 0 !important; }
  html.neu .detail-section { margin-bottom: 8px !important; border-radius: 16px !important; }
  html.neu .detail-section > summary { padding: 12px 18px; font-size: 14.5px; }
  html.neu .detail-section > :not(summary) { padding: 0 18px 16px; }
  html.neu .detail-section .kv { font-size: 13.5px; }
}

/* ── Handy: Tabellen als Karten, Hindsight, Dividendenkalender (Leo, 02.11.2026: «quant lab und hindsight, eigentlich
   alles, auf dem handy wirklich perfekt und kompakt … dort kommen die nutzer eventuell als erstes») ──────────────────
   Die Karten setzt handyTabellen() in design-neu.js: .neu-kk = Kopf (Symbol, Name), .neu-kw = die gezeigten Werte,
   .neu-offen = angetippt, alle Werte. Der Hinweis «für den Desktop gebaut» entfällt damit. */
@media (max-width: 600px) {
  html.neu .desktop-hinweis { display: none !important; }

  html.neu :is(.table-scroll, .mini-table-wrap):has(> .neu-karten) { overflow: visible !important; max-height: none !important; }
  html.neu .neu-karten, html.neu .neu-karten tbody { display: block; width: 100% !important; min-width: 0 !important; }
  html.neu .table-scroll:has(> .neu-karten.neu-lang) { max-height: 66vh !important; overflow: hidden auto !important; overscroll-behavior: contain; border-radius: 12px; }
  html.neu .neu-karten thead { display: none; }
  html.neu .neu-karten tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 10px; row-gap: 7px; position: relative;
    padding: 9px 26px 9px 11px; margin-bottom: 6px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid var(--rand); cursor: pointer; }
  html.neu .neu-karten tbody tr > td { display: none; padding: 0 !important; border: 0 !important; position: static !important; background: none !important;
    min-width: 0 !important; width: auto !important; max-width: none !important; white-space: normal !important; font-size: 12.5px; overflow-wrap: anywhere; }
  html.neu .neu-karten tbody tr > td.neu-kk { display: block; grid-column: 1 / -1; }
  html.neu .neu-karten tbody tr:not(.neu-offen) > td:not(.neu-kk):not(.neu-kw) { display: none !important; }   /* styles.css zeigt Rechenweg-Zellen sonst als block */
  html.neu .neu-karten tbody tr > td.neu-kk:first-child, html.neu .neu-karten td.neu-kk[data-k="symbol"] { font: 700 14px var(--mono); color: var(--accent); }
  html.neu .neu-karten td.neu-kk[data-k="name"] { margin-top: -6px; color: var(--leise); font-size: 11.5px; white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; }
  html.neu .neu-karten tbody tr > td.neu-kw, html.neu .neu-karten tbody tr.neu-offen > td { display: flex; flex-direction: column; gap: 1px; font-size: 13px; font-weight: 600; }
  html.neu .neu-karten tr > td.neu-kw::before, html.neu .neu-karten tr.neu-offen > td:not(.neu-kk)::before {
    content: attr(data-l); color: var(--leiser); font-size: 9.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.neu .neu-karten tr.neu-offen > td:has(.calc-note, .status-badge) { grid-column: 1 / -1; }
  html.neu .neu-karten tr.neu-offen .calc-note { font-size: 11.5px; font-weight: 400; line-height: 1.45; }
  html.neu .neu-karten tbody tr:not(.neu-karten-voll)::after { content: "▾"; position: absolute; right: 10px; top: 9px; color: var(--leiser); font-size: 12px; transition: transform .2s; }
  html.neu .neu-karten tbody tr.neu-offen::after { transform: rotate(180deg); }
  html.neu .neu-karten tbody tr.neu-karten-voll { display: block; padding: 8px !important; cursor: default; }
  html.neu .neu-karten tbody tr.neu-karten-voll > td { display: block; text-align: center; }
  /* Dividenden: + oben rechts statt eigener Zeile */
  html.neu .neu-karten td.neu-kk[data-k="c0"]:has(.watch-button) { position: absolute !important; left: auto !important; right: 26px !important; top: 7px !important; width: auto !important; }
  html.neu .neu-karten td[data-k="c0"] .watch-button { width: 26px; height: 26px; min-height: 26px; padding: 0; }
  html.neu .neu-karten td[data-k="c0"]:has(.watch-button) ~ td.neu-kk { padding-right: 32px !important; }

  /* Hindsight: Kennzahlen zweispaltig, Ergebnis vor dem Rechenweg */
  html.neu #hindsightView .hindsight-result-card { padding: 8px !important; }
  html.neu .hindsight-result-summary { grid-template-columns: 1fr 1fr !important; gap: 5px !important; padding: 7px !important; margin-bottom: 8px !important; border-radius: 13px !important; }
  html.neu .hindsight-result-summary .summary-box { padding: 7px 9px !important; border-radius: 10px !important; min-width: 0; }
  html.neu .hindsight-result-summary .summary-box span { font-size: 9px !important; letter-spacing: .04em !important; margin-bottom: 2px !important; line-height: 1.25; }
  html.neu .hindsight-result-summary .summary-box strong { font-size: 15px !important; overflow-wrap: anywhere; }
  html.neu .hindsight-result-summary .summary-box:nth-child(14) { display: none; }   /* «Rendite-Definition: Kurs» – steht schon im Spaltennamen */
  html.neu .hindsight-result-summary p { grid-column: 1 / -1; margin: 2px 0 0; font-size: 11px !important; }
  html.neu #hindsightView .hindsight-row-unavailable { opacity: .75; }
  html.neu #hindsightView .neu-karten tbody tr.hindsight-row-unavailable > td:last-child { display: block !important; grid-column: 1 / -1; font-size: 11.5px; color: var(--leise); }
  html.neu #hindsightView .hindsight-row-unavailable > td:last-child .calc-note { font-size: 11.5px; }
  html.neu #hindsightView .neu-karten tbody tr.hindsight-row-unavailable:not(.neu-offen) > td.neu-kw { display: none !important; }   /* nur Striche */
  html.neu #hindsightView .neu-karten tbody tr.hindsight-row-unavailable:not(.neu-offen) .calc-note { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  html.neu #hindsightView .table-meta { display: flex !important; flex-wrap: wrap; align-items: center; }
  html.neu #hindsightView .table-meta > :is(strong, label) { width: auto !important; }
  html.neu #hindsightView .table-meta > strong { flex: 1 1 100%; }
  html.neu #hindsightView .table-meta > button { width: auto !important; flex: 1 1 auto; }
  html.neu #hindsightView .portfolio-chart-head { gap: 6px; }
  html.neu #hindsightView .portfolio-chart-card { min-height: 170px; }
  html.neu #hindsightView .table-meta .ghost-button { padding: 5px 9px; font-size: 11.5px; min-height: 28px; }
  html.neu #hindsightView .hindsight-action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

  /* Dividendenkalender: nur Tage mit Zahlungen, als Liste (vorher 37 Kacheln untereinander, die meisten leer) */
  html.neu #dividendCalendarView { display: flex !important; flex-direction: column; gap: 5px; }
  html.neu #dividendCalendarView :is(.calendar-weekday, .calendar-cell.is-empty, .calendar-cell:not(.is-clickable):not(.today)) { display: none !important; }
  html.neu #dividendCalendarView .calendar-cell { min-height: 0 !important; padding: 7px 9px !important; border-radius: 11px !important; }
  html.neu #dividendCalendarView .calendar-day { font-size: 12.5px; margin-bottom: 4px; }
  html.neu #dividendCalendarView .calendar-event { padding: 5px 8px !important; border-radius: 8px !important; margin-top: 3px; }
  html.neu #dividendCalendarView .calendar-event strong { font-size: 12px; } html.neu #dividendCalendarView .calendar-event small { font-size: 10.5px; }
}
@media (max-width: 600px) {
  /* Atlas Picks: 21 Karten à 226 px → enger */
  html.neu #picksView .picks-liste { gap: 6px !important; }
  html.neu #picksView .picks-karte { padding: 9px 11px !important; border-radius: 12px !important; }
  html.neu #picksView .picks-ticker { font-size: 15px !important; }
  html.neu #picksView .picks-seit { font-size: 10.5px !important; }
  html.neu #picksView .picks-firma { font-size: 12px !important; margin: 1px 0 0 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.neu #picksView .picks-branche { font-size: 10.5px !important; margin: 0 0 4px !important; }
  html.neu #picksView .picks-auffaellig { display: none; }
  html.neu #picksView .picks-belege { margin: 0 !important; padding-left: 14px !important; }
  html.neu #picksView .picks-belege li { font-size: 11.5px !important; line-height: 1.35 !important; margin: 0 !important; }
  html.neu #picksView .picks-zahlen { gap: 6px !important; }
  html.neu #picksView .picks-zahlen > * { padding: 9px 10px !important; border-radius: 12px !important; }
  html.neu #picksView .picks-rechtlich { padding: 8px 10px !important; font-size: 11.5px !important; }
  /* Watchlist: vier Knöpfe im Kopf in einer Reihe statt zwei */
  html.neu #watchlistView .page-head { flex-direction: column; align-items: stretch !important; }
  html.neu #watchlistView .page-actions { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 5px; scrollbar-width: none; }
  html.neu #watchlistView .page-actions > * { flex: 0 0 auto; white-space: nowrap; }
}
@media (max-width: 600px) {
  /* Hindsight-Regeln: vier Felder je Regel in zwei Zeilen statt vier (243 → ~90 px je Regel) */
  html.neu #hindsightView .condition-row { display: grid !important; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1fr) 36px !important; gap: 5px !important; padding: 7px !important; margin-bottom: 5px; border-radius: 11px; }
  html.neu #hindsightView .condition-row > * { width: 100% !important; min-width: 0 !important; margin: 0 !important; }
  html.neu #hindsightView .condition-row > [data-condition-field="metric"] { grid-column: 1 / 4; grid-row: 1; }
  html.neu #hindsightView .condition-row > [data-remove-condition] { grid-column: 4; grid-row: 1; width: 36px !important; max-width: none !important; height: 36px; min-height: 36px; padding: 0 !important; border-radius: 10px; }
  html.neu #hindsightView .condition-row > [data-condition-field="operator"] { padding-left: 10px !important; padding-right: 22px !important; }
  html.neu #hindsightView .condition-row > [data-condition-field="operator"] { grid-column: 1; grid-row: 2; }
  html.neu #hindsightView .condition-row > [data-condition-field="targetType"] { grid-column: 2; grid-row: 2; }
  html.neu #hindsightView .condition-row > :nth-child(n+4):not([data-remove-condition]) { grid-column: 3 / 5; grid-row: 2; }
  html.neu #hindsightView .full-width-theory-panel > .muted.small-copy { display: none; }
  html.neu #hindsightView #strategyTemplateHint { font-size: 11.5px !important; line-height: 1.35; }
  html.neu #hindsightView #hindsightMetricChips { gap: 4px !important; }
  html.neu #hindsightView #hindsightMetricChips > * { padding: 4px 8px !important; font-size: 11px !important; min-height: 0 !important; }
}
