/* =====================================================================================================================
   Joghurt.bot Dashboard v1.5 - Designsystem (Testumgebung, seit 24.10.2026)
   Gleiche Designsprache wie die neue Startseite (css/joghurt-home.css): echtes OLED-Schwarz, EIN Akzent (Volt #c4ff2e),
   Inter + JetBrains Mono, feine Linien statt Flaechen, Pill-Knoepfe mit leichtem Glow, ruhige Bewegung (nur
   transform/opacity, prefers-reduced-motion schaltet alles ab). Es gibt NUR den dunklen Modus.

   Seit 25.10.2026 in zwei Dateien: die Grundlagen (Tokens, Basis, Hilfsklassen, Karten, Knoepfe, Formulare, Reiter,
   Marken, Hinweise, Fenster, Leer/Laden, Code, Bewegung, Kontrastmodus = Abschnitte 0, 1, 4-8, 10-14, 18, 20) stehen
   in css/dv-core.css - die gemeinsame Grundlage fuer Dashboard und Begleit-App. Diese Datei importiert sie als Erstes
   (@import unten) und enthaelt nur noch, was das Dashboard allein braucht (Abschnitte 0b, 1b, 2, 3, 9, 15-17b, 19, 20b).
   Die Kaskade ist dadurch dieselbe wie vorher. Was in den Kern gehoert, steht im Kopf von dv-core.css.

   Geladen von partials/head.ejs, wenn <html class="dv15"> gesetzt ist (alle Dashboard-Seiten mit Sitzung, dazu Seiten
   mit dashV15: true). Auf diesen Seiten laden apple.css und theme.css NICHT mehr - die Kaskade ist nur noch
       style.css (alte Basis)  ->  secretField.css  ->  dv-core.css + dash-v15.css (diese Datei)  ->  Bereichs-CSS / <style> der Seite.
   Anleitung fuer die Bereiche: scratchpad/redesign/DASH_SYSTEM.md (Tokens, Klassen, Beispiele, Regeln).

   Spezifitaet (wichtig fuer alle, die hier oder in Bereichs-CSS etwas aendern):
   - Basis-Komponenten (.card, .btn, Formularfelder, Tabellen ...) stehen unter ":where(.dv15)" - also genau so stark wie
     die alten Regeln in style.css. Sie gewinnen nur durch die Ladereihenfolge; jede Bereichs-CSS, die spaeter laedt,
     kann sie mit gleicher Staerke ueberschreiben.
   - Grundgeruest (Seitenleiste, Kopf, mobile Leiste, Profil-Fenster) steht unter ".dv15" (staerker), damit nichts
     Altes durchscheint.
   - Neue Bausteine heissen dv-* (Praefix wie jh- auf der Startseite).
   ===================================================================================================================== */
@import url("dv-core.css");

/* ================================================================ 0b. Alte Tokens + sehr breite Bildschirme (nur Dashboard)
   Die --dv-*-Tokens stehen in css/dv-core.css (Abschnitt 0). Hier nur, was die alten Views brauchen. */
html.dv15 {
  /* --- Alte globale Tokens umgebogen (Inline-Styles der Views nutzen sie: --text-muted 564x, --text-faint 197x ...) --- */
  --bg: var(--dv-bg);
  --bg-panel: var(--dv-surface);
  --bg-panel-2: var(--dv-surface-2);
  --bg-panel-3: var(--dv-surface-3);
  --border: var(--dv-line-strong);
  --border-soft: var(--dv-line);
  --text: var(--dv-text);
  --text-muted: var(--dv-muted);
  --text-faint: var(--dv-faint);
  --accent: var(--dv-volt);
  --accent-bright: var(--dv-volt-hover);
  --accent-dark: #a6db1c;
  --accent-glow: var(--dv-glow-soft);
  --success: var(--dv-volt);
  --success-glow: var(--dv-volt-soft);
  --error: var(--dv-danger-text);
  --error-glow: var(--dv-danger-soft);
  --danger: var(--dv-danger);
  --gold: var(--dv-warn);
  --gold-bright: #ffd46b;
  --gold-dark: #d9a21f;
  --gold-glow: var(--dv-warn-soft);
  --teal: var(--dv-volt);
  --teal-bright: var(--dv-volt-hover);
  --teal-glow: var(--dv-volt-soft);
  --discord: var(--dv-discord);
  --discord-bright: #a9aef2;
  --discord-glow: rgba(139, 146, 236, .14);
  --twitch: var(--dv-twitch);
  --twitch-bright: #c3afef;
  --twitch-glow: rgba(173, 148, 234, .14);
  --icon-obsstudio: var(--dv-obs);
  --radius: var(--dv-r-lg);
  --radius-sm: var(--dv-r-sm);
  --shadow-sm: none;
  --shadow-md: var(--dv-shadow-pop);
  --shadow-glow: 0 0 0 1px var(--dv-glow-soft), 0 10px 30px -10px var(--dv-glow);
  --glow-blue: none;
  --glass-blur: saturate(180%) blur(20px);
  --font-body: var(--dv-font);
  --font-display: var(--dv-font); /* vorher Orbitron (Zahlen, Avatare, Datei-Knopf) */
  --ease: var(--dv-ease);
  --joghurt-logo-filter: brightness(0) invert(1);
}
/* Sehr breite Bildschirme: alles in rem waechst leicht mit (wie die Startseite ab 2000 px). */
@media (min-width: 1900px) {
  html.dv15 { font-size: clamp(16px, calc(16px + (100vw - 1900px) * .0028), 18px); }
}

/* ================================================================ 1b. Logo (nur Dashboard: Bildpfade der Website) */
/* Logos (Wortmarke, Becher) weiss - war bisher theme.css */
html.dv15 body img[src*="/images/joghurt-"] { filter: var(--joghurt-logo-filter) !important; }

/* ================================================================ 2. Grundgeruest: Layout + Seitenleiste */
.dv15 .layout {
  position: relative;
  z-index: auto; /* style.css: z-index 1 - ohne eigenen Stapelkontext liegen Fenster (z 200) auch mobil ueber der Kopfleiste */
  display: flex;
  align-items: stretch;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--dv-bg);
}
/* Deko-Ebene der alten Optik (Punktraster, Lichtflecken) - dient nur noch mobil als Abdunklung hinter dem Menue. */
.dv15 .dashboard-bg { display: none; }
.dv15 .dashboard-bg::before,
.dv15 .dashboard-bg::after { content: none; }

.dv15 .dash-sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  flex: none;
  width: var(--dv-side-w);
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 14px 12px 12px;
  border: 0;
  border-right: 1px solid var(--dv-line);
  border-radius: 0;
  background: var(--dv-bg);
  box-shadow: none;
  overflow: visible;
  transition: width .45s var(--dv-ease);
}

/* Marke */
.dv15 .dash-mobile-bar { display: none; }
.dv15 .dash-brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 52px;
  margin: 0;
  padding: 0 6px 8px;
  border: 0;
}
.dv15 .dash-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 6px;
  border-radius: 12px;
  color: var(--dv-text);
  text-decoration: none;
}
.dv15 .dash-brand-mark { display: none; width: 20px; height: auto; }
.dv15 .dash-brand-word { display: inline-flex; align-items: center; gap: 1px; }
.dv15 .dash-brand-word img { display: block; width: 96px; height: auto; }
.dv15 .dash-brand-word span { margin-top: 6px; font-size: .82rem; font-weight: 500; letter-spacing: 0; color: var(--dv-faint); }

/* Einklapp-Knopf: kleiner runder Knopf auf der Kante der Leiste (Glyph aus sidebar.js wird ausgeblendet,
   der Pfeil ist ein gezeichneter Winkel und dreht sich mit). */
.dv15 .dash-sidebar .dash-collapse {
  position: absolute;
  /* mittig zur Lupe in der Markenzeile: (min-height 52 - padding-bottom 8) / 2 - 14 = 8 (vorher 16 = 8 px zu tief) */
  top: 8px;
  right: -26px;
  z-index: 2;
  /* flex statt grid: das ausgeblendete Zeichen "‹" (font-size 0) bildete im Grid eine zweite Zeile und schob den
     gezeichneten Pfeil nach oben links */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--dv-line-strong);
  border-radius: 50%;
  background: var(--dv-surface);
  color: var(--dv-muted);
  font-size: 0;
  line-height: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .6);
  cursor: pointer;
  transform: none;
  transition: color .2s ease, border-color .2s ease, transform .35s var(--dv-ease);
}
.dv15 .dash-sidebar .dash-collapse::before {
  content: "";
  /* fest in die Kreismitte (unabhaengig vom ausgeblendeten Textzeichen); leicht versetzt, weil der Winkel optisch
     auf einer Seite schwerer ist */
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: 0;
  border-left: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translate(-30%, -50%) rotate(45deg);
  transition: transform .45s var(--dv-ease);
}
.dv15 .dash-sidebar .dash-collapse:hover { color: var(--dv-text); border-color: var(--dv-line-hover); background: var(--dv-surface-2); transform: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .6); }
.dv15 .dash-sidebar.collapsed .dash-collapse::before { margin: 0; transform: translate(-70%, -50%) rotate(-135deg); }
/* Seite suchen (Strg+K): leiser Lupen-Knopf rechts in der Markenzeile; eingeklappt bleibt nur Strg+K */
.dv15 .dash-sidebar .dash-search {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  margin: 0 8px 0 auto;
  padding: 0;
  border: 1px solid var(--dv-line);
  border-radius: 10px;
  background: transparent;
  color: var(--dv-muted);
  box-shadow: none;
  cursor: pointer;
  transform: none;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.dv15 .dash-sidebar .dash-search:hover { color: var(--dv-text); border-color: var(--dv-line-hover); background: var(--dv-surface-2); transform: none; box-shadow: none; }
.dv15 .dash-sidebar .dash-search:focus-visible { outline: var(--dv-focus); outline-offset: 2px; }
.dv15 .dash-sidebar.collapsed .dash-search { display: none; }
/* Such-Fenster (dash-v15.js Teil 11) */
.dv15 dialog.dv-dialog.dv-palette { top: 12vh; bottom: auto; max-width: 560px; margin-top: 0; }
.dv15 .dv-palette-box { display: grid; gap: 0; }
.dv15 .dv-palette-box > input[type="search"] { width: 100%; max-width: none; min-height: 52px; margin: 0; padding: 0 18px; border: 0; border-bottom: 1px solid var(--dv-line); border-radius: var(--dv-r-lg) var(--dv-r-lg) 0 0; background: transparent; font-size: 1rem; }
.dv15 .dv-palette-box > input[type="search"]:focus-visible { outline: none; box-shadow: inset 0 -1px 0 var(--dv-volt-line); }
.dv15 .dv-palette-list { max-height: min(56vh, 460px); margin: 0; padding: 6px; overflow-y: auto; list-style: none; }
.dv15 .dv-palette-list > li { max-width: none; margin: 0; }
.dv15 .dv-palette-list a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 42px; padding: 10px 12px; border-radius: 10px; color: var(--dv-muted); text-decoration: none; }
.dv15 .dv-palette-list [aria-selected="true"] > a { background: var(--dv-surface-2); color: var(--dv-text); box-shadow: inset 2px 0 0 var(--dv-volt); }
.dv15 .dv-palette-title { color: var(--dv-text); font-weight: 600; }
.dv15 .dv-palette-area { flex: none; color: var(--dv-faint); font-size: .78rem; }
.dv15 .dv-palette-empty { padding: 16px 12px; color: var(--dv-muted); font-size: .875rem; }
.dv15 .dv-palette-foot { max-width: none; margin: 0; padding: 10px 16px; border-top: 1px solid var(--dv-line); color: var(--dv-faint); font-size: .75rem; }
.dv15 .dv-palette-foot kbd { display: inline-block; min-width: 1.6em; margin: 0 2px; padding: 1px 5px; border: 1px solid var(--dv-line-strong); border-radius: 6px; font: 500 .72rem/1.4 var(--dv-mono); text-align: center; }
@media (max-width: 760px) {
  .dv15 dialog.dv-dialog.dv-palette { top: 72px; }
  .dv15 .dv-palette-area { display: none; }
  .dv15 .dv-palette-foot { display: none; }
}

/* Menue */
.dv15 .dash-menu {
  flex: 1;
  min-height: 0;
  margin: 0 -12px;
  padding: 4px 12px 12px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #232326 transparent;
  overscroll-behavior: contain;
}
/* Menue laenger als die Leiste: weiche Kante oben/unten zeigt, dass es weitergeht (dash-v15.js setzt die Klassen,
   nur opacity-Maske - nichts verschiebt sich). */
.dv15 .dash-menu.dv-scroll-end { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 40px), transparent); }
.dv15 .dash-menu.dv-scroll-start { -webkit-mask-image: linear-gradient(180deg, transparent, #000 32px); mask-image: linear-gradient(180deg, transparent, #000 32px); }
.dv15 .dash-menu.dv-scroll-start.dv-scroll-end { -webkit-mask-image: linear-gradient(180deg, transparent, #000 32px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(180deg, transparent, #000 32px, #000 calc(100% - 40px), transparent); }
.dv15 .dash-group { margin: 0 0 10px; padding: 0; }
.dv15 .dash-group:last-child { margin-bottom: 0; }
.dv15 .dash-group-title {
  display: block;
  margin: 0;
  padding: 6px 10px 5px;
  color: var(--dv-faint);
  font: 600 .6875rem/1.3 var(--dv-font);
  letter-spacing: .04em;
  text-transform: none;
  white-space: nowrap;
}
.dv15 .dash-group a,
.dv15 .dash-group .dash-sub-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* style.css zentriert unter 900 px (alte Icon-Leiste) */
  gap: 11px;
  width: 100%;
  min-height: 36px;
  margin: 0 0 2px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  color: var(--dv-muted);
  font: 500 .875rem/1.2 var(--dv-font);
  letter-spacing: -.01em;
  text-align: left;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  transform: none;
  transition: color .2s ease, background-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.dv15 .dash-group a:hover,
.dv15 .dash-group .dash-sub-toggle:hover { color: var(--dv-text); background: rgba(255, 255, 255, .045); box-shadow: none; transform: none; }
.dv15 .dash-group a:focus-visible,
.dv15 .dash-group .dash-sub-toggle:focus-visible { outline: var(--dv-focus); outline-offset: -2px; box-shadow: none; }
/* "Bald" (seit 12.11.2026, z. B. Nite ohne NITE_ENABLED): sichtbar, aber nicht klickbar */
.dv15 .dash-group .dash-sub-toggle.dash-soon { cursor: default; color: var(--dv-faint); }
.dv15 .dash-group .dash-sub-toggle.dash-soon:hover { color: var(--dv-faint); background: transparent; }
/* Countdown bis zur Freigabe (13.11.2026): Ziffern gleich breit, nicht in Grossbuchstaben */
.dv15 .dash-plan-tier.dash-countdown { margin-left: auto; text-transform: none; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.dv15 .st-countdown { font-variant-numeric: tabular-nums; white-space: nowrap; }
.dv15 .dash-icon,
.dv15 .dash-group .dash-icon { flex: none; width: 18px; min-width: 18px; height: 18px; padding: 0; color: currentColor; background: none; box-shadow: none; }
/* style.css blendet die Beschriftungen unter 900 px aus (Icon-Leiste) - hier bleiben sie */
.dv15 .dash-label { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* Aktiver Punkt: gehobene Flaeche + Volt-Strich an der Kante (wie die Vignette der Startseite) */
.dv15 .dash-group a[aria-current="page"] { color: var(--dv-text); background: var(--dv-surface-2); font-weight: 600; }
.dv15 .dash-group a[aria-current="page"]::before,
.dv15 .dash-sidebar.collapsed .dash-group .dash-sub-toggle[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--dv-volt);
  box-shadow: 0 0 10px var(--dv-glow);
}
/* Bereich der aktuellen Seite: Schrift hell, der Unterpunkt traegt die Markierung */
.dv15 .dash-group .dash-sub-toggle[aria-current="page"] { color: var(--dv-text); background: transparent; font-weight: 600; box-shadow: none; }
.dv15 .dash-group .dash-sub-toggle[aria-current="page"]:hover { background: rgba(255, 255, 255, .045); }

/* Aufklappbare Bereiche (Discord, Twitch, OBS) */
.dv15 .dash-sub-arrow { flex: none; width: 15px; min-width: 15px; height: 15px; margin-left: auto; color: var(--dv-faint); opacity: 1; transition: transform .45s var(--dv-ease); }
.dv15 .dash-sub.open .dash-sub-arrow { transform: rotate(180deg); }
/* Akkordeon: offen ist nur der Bereich der aktuellen Seite (data-force-open) und was man selbst aufklappt.
   sidebarState.js stellt gemerkte Bereiche vor dem ersten Bild wieder her - die bleiben hier zu, bis dash-v15.js
   sie sauber schliesst (html.dv-nav-ready). So springt nichts und die Leiste ist auf jeder Seite gleich kurz. */
.dv15:not(.dv-nav-ready) .dash-sub.open:not([data-force-open]) .dash-sub-list { display: none; }
.dv15:not(.dv-nav-ready) .dash-sub.open:not([data-force-open]) .dash-sub-arrow { transform: none; }
.dv15 .dash-sub-list {
  position: relative;
  display: none;
  flex-direction: column;
  margin: 0 0 6px 19px;
  padding: 2px 0 2px 10px;
  border: 0;
  border-left: 1px solid var(--dv-line);
}
.dv15 .dash-sub.open .dash-sub-list { display: flex; }
/* Ohne JavaScript (sidebarState.js setzt html.dv-sb-js vor dem ersten Bild): die Bereichs-Knoepfe Discord/Twitch/OBS
   koennen nichts aufklappen - dann stehen alle Unterpunkte offen, jeder Bereich bleibt erreichbar. */
html.dv15:not(.dv-sb-js) .dash-sub-list { display: flex; }
html.dv15:not(.dv-sb-js) .dash-sub-arrow { display: none; }
.dv15 .dash-sub.dv-sub-in .dash-sub-list > a { animation: dv-sub-in .45s var(--dv-ease) backwards; }
.dv15 .dash-sub.dv-sub-in .dash-sub-list > a:nth-child(2) { animation-delay: .03s; }
.dv15 .dash-sub.dv-sub-in .dash-sub-list > a:nth-child(3) { animation-delay: .06s; }
.dv15 .dash-sub.dv-sub-in .dash-sub-list > a:nth-child(4) { animation-delay: .09s; }
.dv15 .dash-sub.dv-sub-in .dash-sub-list > a:nth-child(5) { animation-delay: .12s; }
.dv15 .dash-sub.dv-sub-in .dash-sub-list > a:nth-child(6) { animation-delay: .15s; }
.dv15 .dash-group .dash-sub-list a {
  min-height: 34px;
  margin: 0 0 1px;
  padding: 0 10px;
  gap: 0;
  font-size: .84rem;
}
.dv15 .dash-sub-dot {
  position: absolute;
  left: -14px;
  top: 50%;
  width: 7px;
  min-width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--dv-surface-3);
  box-shadow: 0 0 0 2px var(--dv-bg);
  opacity: 0;
  transform: scale(.5);
  transition: opacity .3s ease, transform .45s var(--dv-ease), background-color .3s ease;
}
.dv15 .dash-group .dash-sub-list a:hover .dash-sub-dot { opacity: 1; transform: none; background: var(--dv-faint); }
.dv15 .dash-group .dash-sub-list a[aria-current="page"] { background: var(--dv-surface-2); }
.dv15 .dash-group .dash-sub-list a[aria-current="page"]::before { content: none; }
.dv15 .dash-group .dash-sub-list a[aria-current="page"] .dash-sub-dot { opacity: 1; transform: none; background: var(--dv-volt); box-shadow: 0 0 0 2px var(--dv-bg), 0 0 10px var(--dv-glow); }

/* Fuss der Leiste: Abo, Server wechseln, Startseite, Profil */
.dv15 .dash-bottom { margin-top: auto; padding: 8px 0 0; border-top: 1px solid var(--dv-line); }
.dv15 .dash-account-links { display: grid; gap: 1px; padding: 0; border: 0; }
.dv15 .dash-plan,
.dv15 .dash-home {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  width: 100%;
  min-height: 34px;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  color: var(--dv-muted);
  font: 500 .84rem/1.2 var(--dv-font);
  text-decoration: none;
  text-transform: none;
  transition: color .2s ease, background-color .2s ease;
}
.dv15 .dash-plan:hover,
.dv15 .dash-home:hover { color: var(--dv-text); background: rgba(255, 255, 255, .045); transform: none; box-shadow: none; }
.dv15 .dash-plan[aria-current="page"] { color: var(--dv-text); background: var(--dv-surface-2); }
.dv15 .dash-plan[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--dv-volt); box-shadow: 0 0 10px var(--dv-glow); }
.dv15 .dash-bottom .dash-icon { width: 17px; min-width: 17px; height: 17px; color: currentColor; }
.dv15 .dash-plan .dash-label { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.dv15 .dash-plan-tier {
  display: inline-flex;
  flex: none;
  align-items: center;
  height: 19px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--dv-surface-3);
  color: var(--dv-muted);
  font: 700 .66rem/1 var(--dv-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.dv15 .dash-plan-tier.is-paid { background: var(--dv-volt-soft); color: var(--dv-volt); }

.dv15 .dash-sidebar .dash-profile {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  margin: 6px 0 0;
  padding: 7px 10px 7px 8px;
  border: 1px solid var(--dv-line);
  border-radius: 14px;
  background: var(--dv-surface);
  box-shadow: none;
  color: var(--dv-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transform: none;
  transition: background-color .2s ease, border-color .2s ease;
}
.dv15 .dash-sidebar .dash-profile:hover { background: var(--dv-surface-2); border-color: var(--dv-line-strong); transform: none; box-shadow: none; }
.dv15 .dash-sidebar .dash-profile:focus-visible { outline: var(--dv-focus); outline-offset: 2px; }
.dv15 .dash-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  min-width: 34px;
  height: 34px;
  border: 1px solid var(--dv-line-strong);
  border-radius: 50%;
  background: var(--dv-surface-3);
  color: var(--dv-text);
  font: 700 .72rem/1 var(--dv-font);
  overflow: hidden;
}
.dv15 .dash-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dv15 .dash-profile .dash-label { display: grid; gap: 2px; min-width: 0; }
.dv15 .dash-profile b,
.dv15 .dash-profile:hover b { display: block; overflow: hidden; color: var(--dv-text); font-size: .86rem; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.dv15 .dash-profile small { display: block; margin: 0; color: var(--dv-faint); font-size: .74rem; letter-spacing: 0; }
.dv15 .dash-profile-arrow { display: block; margin-left: auto; color: var(--dv-faint); font-size: 1.1rem; line-height: 1; }

/* --- Eingeklappt (nur Desktop/Tablet, ab 761 px) --- */
@media (min-width: 761px) {
  .dv15 .dash-sidebar.collapsed { width: var(--dv-side-w-collapsed); padding-inline: 12px; }
  .dv15 .dash-sidebar.collapsed .dash-brand { justify-content: center; padding-inline: 0; }
  .dv15 .dash-sidebar.collapsed .dash-brand-link { padding: 0 10px; }
  .dv15 .dash-sidebar.collapsed .dash-brand-mark { display: block; }
  .dv15 .dash-sidebar.collapsed .dash-brand-word { display: none; }
  .dv15 .dash-sidebar.collapsed .dash-collapse { right: -26px; }
  /* Beschriftungen nur optisch weg - Screenreader lesen sie weiter (Knoepfe haben kein aria-label) */
  .dv15 .dash-sidebar.collapsed .dash-label { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
  .dv15 .dash-sidebar.collapsed .dash-group-title { height: 1px; margin: 10px 12px; padding: 0; overflow: hidden; background: var(--dv-line); color: transparent; font-size: 0; }
  .dv15 .dash-sidebar.collapsed .dash-group:first-child .dash-group-title { display: none; }
  .dv15 .dash-sidebar.collapsed .dash-group { margin-bottom: 4px; }
  .dv15 .dash-sidebar.collapsed .dash-group a,
  .dv15 .dash-sidebar.collapsed .dash-group .dash-sub-toggle,
  .dv15 .dash-sidebar.collapsed .dash-plan,
  .dv15 .dash-sidebar.collapsed .dash-home { justify-content: center; padding: 0; }
  .dv15 .dash-sidebar.collapsed .dash-sub-list,
  .dv15 .dash-sidebar.collapsed .dash-sub-arrow,
  .dv15 .dash-sidebar.collapsed .dash-profile-arrow,
  .dv15 .dash-sidebar.collapsed .dash-plan-tier { display: none; }
  .dv15 .dash-sidebar.collapsed .dash-group .dash-sub-toggle[aria-current="page"] { background: var(--dv-surface-2); }
  .dv15 .dash-sidebar.collapsed .dash-profile { justify-content: center; padding: 8px 0; border-color: transparent; background: transparent; }
}

/* --- Wenig Hoehe (z. B. 1600 x 900, 1366 x 768): Menue dichter, damit Verwaltung & Co. ohne Scrollen sichtbar bleiben.
   Touch-Geraete behalten ihre 42-px-Ziele (pointer: coarse steht weiter unten und gewinnt). --- */
@media (min-width: 761px) and (max-height: 950px) {
  .dv15 .dash-sidebar { padding-top: 10px; }
  .dv15 .dash-brand { min-height: 44px; padding-bottom: 4px; }
  .dv15 .dash-sidebar .dash-collapse { top: 6px; }
  .dv15 .dash-group { margin-bottom: 6px; }
  .dv15 .dash-group-title { padding: 4px 10px 3px; }
  .dv15 .dash-group a,
  .dv15 .dash-group .dash-sub-toggle { min-height: 32px; }
  .dv15 .dash-group .dash-sub-list a { min-height: 30px; }
  .dv15 .dash-sub-list { margin-bottom: 4px; }
  .dv15 .dash-bottom { padding-top: 6px; }
  .dv15 .dash-sidebar .dash-profile { min-height: 44px; margin-top: 4px; padding-block: 5px; }
  .dv15 .dash-avatar { width: 30px; min-width: 30px; height: 30px; }
}
/* Fuss kompakt (wenig Hoehe und Handy-Schublade): Abo + Server wechseln + Homepage in EINER Zeile - Abo mit Text,
   die beiden anderen als Icon-Knoepfe (Name als Tooltip und fuer Screenreader). Ohne Abo-Link (Team-Mitglieder) bleibt
   die normale Liste. */
@media (min-width: 761px) and (max-height: 950px), (max-width: 760px) {
  .dv15 .dash-sidebar:not(.collapsed) .dash-account-links:has(.dash-plan) { display: flex; align-items: center; gap: 2px; }
  .dv15 .dash-sidebar:not(.collapsed) .dash-account-links:has(.dash-plan) .dash-plan { flex: 1 1 auto; min-width: 0; }
  .dv15 .dash-sidebar:not(.collapsed) .dash-account-links:has(.dash-plan) .dash-home { flex: none; justify-content: center; width: 38px; padding: 0; }
  .dv15 .dash-sidebar:not(.collapsed) .dash-account-links:has(.dash-plan) .dash-home .dash-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .dv15 .dash-sidebar:not(.collapsed) .dash-plan-more { display: none; }
}

/* ================================================================ 3. Inhaltsbereich + Seitenkopf */
.dv15 .main {
  position: relative;
  z-index: 1;
  flex: 1;
  width: auto;
  min-width: 0;
  /* Obergrenze nur fuer Ultra-Breit (ab ~2600 px): darueber steht der Inhalt mittig rechts der Seitenleiste
     (die auto-Raender nehmen im Flex-Layout den Rest auf). Bis 2560 px bleibt die volle Breite. */
  max-width: calc(var(--dv-content-max) + 2 * var(--dv-gutter));
  margin: 0 auto;
  padding: clamp(20px, 2.4vw, 40px) var(--dv-gutter) 96px;
}
.dv15 .main:focus,
.dv15 .main:focus-visible { outline: none; }

.dv15 .page-header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}
.dv15 .page-header::before { content: none; display: none; }
.dv15 .page-header-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.dv15 .page-header-title > div:last-child { min-width: 0; }
:where(.dv15) .page-header-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--dv-line-strong);
  border-radius: 14px;
  background: var(--dv-surface);
  box-shadow: none;
  color: var(--dv-text);
}
:where(.dv15) .page-header-icon.discord { border-color: color-mix(in srgb, var(--dv-discord) 32%, transparent); background: color-mix(in srgb, var(--dv-discord) 9%, var(--dv-surface)); color: var(--dv-discord); }
:where(.dv15) .page-header-icon.twitch { border-color: color-mix(in srgb, var(--dv-twitch) 32%, transparent); background: color-mix(in srgb, var(--dv-twitch) 9%, var(--dv-surface)); color: var(--dv-twitch); }
:where(.dv15) .page-header-icon.obs { color: var(--dv-obs); }
:where(.dv15) .page-header-icon :is(svg, .icon) { filter: none; }
.dv15 .page-header :is(h1, h2) {
  display: block;
  margin: 0;
  color: var(--dv-text);
  font-size: clamp(1.5rem, 1.05rem + 1vw, 2.15rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.04em;
  animation: none;
}
.dv15 .page-header :is(h1, h2) .grad { color: inherit; }
.dv15 .page-header .dv-crumb {
  margin: 0 0 4px;
  color: var(--dv-faint);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.2;
}
.dv15 .page-header .page-subtitle {
  max-width: var(--dv-measure);
  margin: 6px 0 0;
  color: var(--dv-muted);
  font-size: .92rem;
  line-height: 1.5;
  animation: none;
}
.dv15 .dv-pagehead-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* ---- Kopf-Regel (25.10.2026, Betreiber: "nur eine Zeile Beschreibung, einheitlich, damit sich die Wechsel smoother
   anfuehlen"). Der Seitenkopf aus partials/pageHeader.ejs ist auf JEDER Seite gleich hoch und gleich gebaut:
     Zeile 1  Bereichszeile ("Discord · Begruessung & Rollen")   - immer reserviert, auch ohne Bereich
     Zeile 2  Titel                                               - eine Zeile, zu lang endet mit "..."
     Zeile 3  Beschreibung                                        - GENAU EINE Zeile (<= --dv-measure), sonst "..."
   Volltext von Titel und Beschreibung steht im title-Attribut (Tooltip). Die Kachel steht links ueber alle Zeilen,
   Aktionen rechts unten - sie veraendern die Hoehe nie (kein Umbruch; in schmalen Koepfen nur Icon, siehe unten).
   Feste Zeilenhoehen + feste Kopfhoehe: Reiterleiste bzw. erste Karte beginnen auf allen Seiten an derselben Stelle.
   Hoehe = Bereich + Titel + Beschreibung: 1920 px ~89 px, 1366 px ~85 px, Handy (<= 760 px) ~72 px.
   Die Wrapper .page-header-title/.dv-pagehead-text bleiben im Markup (gleiches Markup wie vorher), werden hier aber
   mit display:contents aufgeloest, damit alle Teile im selben Raster stehen. */
.dv15 {
  --dv-ph-icon: 44px;                                         /* Kachel */
  --dv-ph-gap: 14px;                                          /* Kachel -> Text */
  --dv-ph-crumb: 1.25rem;                                     /* Zeile 1: Bereich (.8rem Schrift + Abstand) */
  --dv-ph-title-size: clamp(1.5rem, 1.05rem + 1vw, 2.15rem);  /* Titel-Schrift */
  --dv-ph-title: calc(var(--dv-ph-title-size) * 1.2);         /* Zeile 2: eine Titelzeile (1.2 = Unterlaengen frei) */
  --dv-ph-sub-line: 1.375rem;                                 /* Zeilenhoehe der Beschreibung (.92rem Schrift) */
  --dv-ph-sub: calc(var(--dv-ph-sub-line) + 6px);             /* Zeile 3: 6 px Abstand + eine Zeile */
  --dv-ph-h: calc(var(--dv-ph-crumb) + var(--dv-ph-title) + var(--dv-ph-sub));
}
.dv15 .page-header.dv-pagehead {
  /* Breite kommt nie aus dem Inhalt (Container fuer die Icon-Knoepfe unten) */
  container: dv-pagehead / inline-size;
  display: grid;
  grid-template-columns: var(--dv-ph-icon) minmax(0, 1fr) auto;
  grid-template-rows: var(--dv-ph-crumb) var(--dv-ph-title) var(--dv-ph-sub);
  gap: 0 var(--dv-ph-gap);
  align-items: start;
  justify-content: normal;
  width: 100%;
  height: var(--dv-ph-h);
  min-height: 0;
}
.dv15 .dv-pagehead :is(.page-header-title, .dv-pagehead-text) { display: contents; }
.dv15 .dv-pagehead .page-header-icon { grid-column: 1; grid-row: 1 / -1; align-self: center; }
.dv15 .dv-pagehead :is(.dv-crumb, h1, h2, .page-subtitle) {
  grid-column: 2;
  justify-self: start;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.dv15 .dv-pagehead .dv-crumb { grid-row: 1; margin: 0; }
.dv15 .dv-pagehead :is(h1, h2) { grid-row: 2; font-size: var(--dv-ph-title-size); line-height: var(--dv-ph-title); }
.dv15 .dv-pagehead .page-subtitle {
  grid-row: 3;
  align-self: end;
  max-width: min(100%, var(--dv-measure));
  margin: 0;
  line-height: var(--dv-ph-sub-line);
}
.dv15 .dv-pagehead .dv-pagehead-actions {
  grid-column: 3;
  grid-row: 1 / -1;
  align-self: end;
  flex-wrap: nowrap;
  margin-left: 10px;   /* mit dem Spaltenabstand 24 px Luft zum Text */
}
.dv15 .dv-pagehead .dv-pagehead-actions > .btn { flex: none; white-space: nowrap; }
/* Schmaler Kopf (Handy, schmales Fenster): Aktionen als runde Icon-Knoepfe (40 px), der Text bleibt fuer Screenreader
   und als Tooltip (title) - so bleibt der Titel lesbar und der Kopf gleich hoch. Knoepfe ohne Icon behalten ihren Text. */
@container dv-pagehead (max-width: 36rem) {
  .dv15 .dv-pagehead .dv-pagehead-actions > .btn:has(> .icon) { width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 0; gap: 0; }
  .dv15 .dv-pagehead .dv-pagehead-actions > .btn:has(> .icon) .dv-pagehead-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
}
/* Detailseiten (Einbettung, Reaktionsrollen-Panel, Giveaway-Teilnehmer): der Rueckweg ".dc-back" stand bisher 36-44 px
   ueber dem Kopf und schob ihn nach unten. Jetzt sitzt er in der Zeile der Bereichsangabe (die dort ausgeblendet ist),
   der Kopf steht an derselben Stelle wie auf jeder anderen Seite. Klickflaeche per ::after auf 36/40 px vergroessert.
   html.dv15 .main vorne: gewinnt gegen dash-v15-discord.css und die Touch-Regel (min-height 40 px) weiter unten. */
html.dv15 .main .dc-back:has(+ .dv-pagehead) {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  width: fit-content;
  max-width: calc(100% - var(--dv-ph-icon) - var(--dv-ph-gap));
  height: var(--dv-ph-crumb);
  min-height: 0;
  margin: 0 0 calc(-1 * var(--dv-ph-crumb)) calc(var(--dv-ph-icon) + var(--dv-ph-gap));
  font-size: .8rem;
  line-height: 1.2;
  white-space: nowrap;
}
html.dv15 .main .dc-back:has(+ .dv-pagehead)::after { content: ""; position: absolute; inset: -8px -8px -8px -6px; }
html.dv15 .main .dc-back + .dv-pagehead .dv-crumb { visibility: hidden; }

/* Login, 2FA-Code, Server-Auswahl, Onboarding, Verify-Ergebnisse, Einladungen (eigener Kopf in .dv-auth-card bzw.
   .dv-onb-head, kein pageHeader): die Karte beginnt oben an fester Stelle statt mittig - sonst rutschte sie mit jeder
   Kartenhoehe (Login 419 px, Server-Auswahl 551 px). Seiten mit Schritt-Leiste (Onboarding Tarif -> Twitch -> 2FA)
   beginnen alle wie die Tarifseite, die Schritt-Leiste bleibt beim Weiterklicken stehen.
   html.dv15 vorne: gewinnt gegen dash-v15-auth.css (laedt danach, gleiche Staerke). */
html.dv15 .center-page.dv-auth-main { justify-content: flex-start; padding-top: clamp(16px, 7vh, 80px); }
html.dv15 .center-page.dv-auth-main:has(> .dv-auth-steps) { padding-top: clamp(12px, 3vh, 40px); }

/* Abschnittskoepfe: ein Muster fuer alle (".dot"- und "01 · SIGNALS"-Variante sehen gleich aus) */
:where(.dv15) .section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  margin: 36px 0 14px;
}
:where(.dv15) .section-title > div { min-width: 0; }
:where(.dv15) .section-title h3 {
  margin: 0;
  color: var(--dv-text);
  font: 650 1.0625rem/1.3 var(--dv-font);
  letter-spacing: -.02em;
  text-transform: none;
}
:where(.dv15) .section-title .desc { color: var(--dv-faint); font-size: .875rem; font-weight: 400; }
:where(.dv15) .section-title :is(.dot, .section-title-rule, .section-title-kicker) { display: none; }
:where(.dv15) .page-header + .section-title,
:where(.dv15) .tab-bar + .section-title,
:where(.dv15) .main > .section-title:first-child { margin-top: 8px; }

/* ================================================================ 9. Tabellen */
:where(.dv15) table {
  width: 100%;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--dv-text);
  font-size: .875rem;
  overflow: visible;
  animation: none;
}
:where(.dv15) :is(th, td) { padding: 12px 14px; border-bottom: 1px solid var(--dv-line); text-align: left; vertical-align: middle; font-size: .875rem; }
:where(.dv15) th {
  padding-block: 10px;
  border-bottom-color: var(--dv-line-strong);
  background: transparent;
  color: var(--dv-faint);
  font: 600 .75rem/1.3 var(--dv-font);
  letter-spacing: .02em;
  text-transform: none;
  white-space: nowrap;
}
:where(.dv15) tr:last-child td { border-bottom: 0; }
:where(.dv15) tbody tr { transition: background-color .2s ease; }
:where(.dv15) tbody tr:hover { background: rgba(255, 255, 255, .025); box-shadow: none; }
:where(.dv15) :is(th, td):first-child { padding-left: 4px; }
:where(.dv15) :is(th, td):last-child { padding-right: 4px; }
/* Eigenstaendige Tabelle (direkt im Inhalt): als Karte. dash-v15.js legt jede Tabelle in .dv-table-wrap (wischbar). */
:where(.dv15) .dv-table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
:where(.dv15) :is(.main > table, .main > .dv-table-wrap, .dv-table) { margin: 0 0 24px; border: 1px solid var(--dv-line); border-radius: var(--dv-r-lg); background: var(--dv-surface); }
:where(.dv15) .main > table :is(th, td):first-child,
:where(.dv15) .main > .dv-table-wrap :is(th, td):first-child,
:where(.dv15) .dv-table :is(th, td):first-child { padding-left: 18px; }
:where(.dv15) .main > table :is(th, td):last-child,
:where(.dv15) .main > .dv-table-wrap :is(th, td):last-child,
:where(.dv15) .dv-table :is(th, td):last-child { padding-right: 18px; }
:where(.dv15) td.dv-num, :where(.dv15) th.dv-num { text-align: right; font-variant-numeric: tabular-nums; }
:where(.dv15) .dv-table-empty { padding: 28px 16px !important; color: var(--dv-muted); text-align: center !important; }
/* Lange Tabellen (dash-v15.js Teil 10): verborgene Zeilen bleiben verborgen, auch wenn mobile Regeln tr als Raster zeigen */
html.dv15 tbody[data-dv-more] > tr[hidden] { display: none !important; }
:where(.dv15) .dv-more-row { display: flex; justify-content: center; margin: 16px 0 0; }

/* Nutzer-Zellen, Initialen-Avatare */
:where(.dv15) .user-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
:where(.dv15) .user-cell .user-name { color: var(--dv-text); font-weight: 600; }
:where(.dv15) .user-cell .user-sub { margin-top: 1px; color: var(--dv-faint); font-size: .78rem; }
:where(.dv15) .avatar-circle {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--dv-line-strong);
  border-radius: 50%;
  background: var(--dv-surface-3);
  color: var(--dv-text);
  font: 700 .74rem/1 var(--dv-font);
  box-shadow: none;
}
:where(.dv15) tbody tr:hover .avatar-circle { box-shadow: none; }

/* ================================================================ 15. Preiskarten (Abo, Onboarding) - wie die Tarife der Startseite */
:where(.dv15) .price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--dv-gap); }
:where(.dv15) .price-card {
  position: relative;
  isolation: isolate;
  padding: clamp(22px, 2vw, 32px);
  border: 1px solid var(--dv-line-strong);
  border-radius: var(--dv-r-xl);
  background: var(--dv-surface);
  box-shadow: none;
  color: var(--dv-text);
  text-align: left;
  overflow: hidden;
}
:where(.dv15) .price-card.featured {
  border-color: color-mix(in srgb, var(--dv-volt) 55%, transparent);
  background:
    linear-gradient(90deg, transparent, rgba(240, 255, 200, .9) 50%, transparent) 50% 0 / 60% 2px no-repeat border-box,
    radial-gradient(40% 46px at 50% 0, rgba(214, 255, 110, .16), transparent) 50% 0 / 100% 64px no-repeat border-box,
    var(--dv-surface);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--dv-volt) 20%, transparent), 0 40px 120px -50px var(--dv-glow);
}
:where(.dv15) .price-card.selected { border-color: var(--dv-volt-line); }
:where(.dv15) .plan-label { color: var(--dv-faint); font: 700 .7rem/1.3 var(--dv-mono); letter-spacing: .08em; }
:where(.dv15) .featured .plan-label { color: var(--dv-volt); }
:where(.dv15) .price-card h3 { margin: 14px 0 10px; color: var(--dv-text); font: 650 1.45rem/1.15 var(--dv-font); letter-spacing: -.03em; }
:where(.dv15) .price { color: var(--dv-text); font: 700 clamp(2.2rem, 1.6rem + 1.4vw, 3rem)/1.05 var(--dv-font); letter-spacing: -.05em; white-space: nowrap; font-variant-numeric: tabular-nums; }
:where(.dv15) .price > span { padding-left: 8px; color: var(--dv-muted); font-size: .9rem; font-weight: 500; letter-spacing: 0; }
:where(.dv15) .price-card > p { margin: 14px 0 24px; color: var(--dv-muted); font-size: .9rem; line-height: 1.55; }
:where(.dv15) .price-card .button { width: 100%; }
:where(.dv15) .checklist { margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid var(--dv-line); list-style: none; }
:where(.dv15) .checklist li { position: relative; padding: 6px 0 6px 26px; color: var(--dv-text); font-size: .9rem; line-height: 1.45; }
:where(.dv15) .checklist li::before { content: "✓"; position: absolute; left: 0; top: 6px; color: var(--dv-volt); font-size: .85rem; font-weight: 700; }

/* ================================================================ 16. Eigenstaendige Seiten (Login, 2FA, Server-Auswahl, Onboarding)
   Grundlage - der Bereich Login/Onboarding verfeinert in eigener CSS. */
:where(.dv15) .center-page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 56px 20px;
  background: radial-gradient(60% 40% at 50% 0%, var(--dv-glow-soft), transparent 70%), var(--dv-bg);
  text-align: center;
}
:where(.dv15) .center-page > .icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 18px;
  border: 1px solid var(--dv-line-strong);
  border-radius: 20px;
  background: var(--dv-surface);
  box-shadow: none;
  color: var(--dv-text);
}
:where(.dv15) .center-page > .icon.icon-accent { border-color: var(--dv-volt-line); box-shadow: 0 0 0 1px var(--dv-glow-soft), 0 20px 60px -20px var(--dv-glow); color: var(--dv-volt); }
:where(.dv15) .center-page h1 { max-width: 760px; margin: 0 0 12px; color: var(--dv-text); font: 700 clamp(2rem, 1.4rem + 2.4vw, 3.2rem)/1.04 var(--dv-font); letter-spacing: -.05em; }
:where(.dv15) .center-page p { max-width: 520px; color: var(--dv-muted); font-size: 1rem; line-height: 1.55; }
:where(.dv15) .center-page :is(h1, p, .btn) { animation: none; }
:where(.dv15) .center-page > form { width: min(100%, 460px); }
:where(.dv15) .center-page .price-grid { width: min(100%, 1180px); }
:where(.dv15) .tenant-select-list { display: grid; gap: 10px; width: 100%; max-width: 420px; margin-top: 22px; animation: none; }
:where(.dv15) .tenant-select-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 10px 16px;
  border: 1px solid var(--dv-line-strong);
  border-radius: var(--dv-r);
  background: var(--dv-surface);
  box-shadow: none;
  color: var(--dv-text);
  font: 600 .95rem/1.3 var(--dv-font);
  text-align: left;
  transform: none;
}
:where(.dv15) .tenant-select-card::after { content: none; }
:where(.dv15) .tenant-select-card:hover { border-color: var(--dv-line-hover); background: var(--dv-surface-2); color: var(--dv-text); transform: translate3d(0, -2px, 0); }
:where(.dv15) .tenant-select-arrow { color: var(--dv-volt); }
:where(.dv15) .onboarding-progress { margin: 0 0 12px; color: var(--dv-faint); font: 600 .78rem/1.3 var(--dv-mono); letter-spacing: .04em; text-transform: none; animation: none; }

/* ================================================================ 17. Doku, Diagramme (Grundlage) */
:where(.dv15) .docs-layout { display: block; max-width: 1180px; }
:where(.dv15) .docs-nav { position: static; display: block; margin: 0 0 24px; padding: 0; border: 0; background: transparent; box-shadow: none; }
:where(.dv15) .docs-nav nav { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; }
:where(.dv15) .docs-nav nav a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--dv-line-strong); border-radius: 999px; background: transparent; color: var(--dv-muted); font-size: .84rem; font-weight: 600; text-decoration: none; }
:where(.dv15) .docs-nav nav a:hover { border-color: var(--dv-line-hover); color: var(--dv-text); }
:where(.dv15) .docs-nav nav a.active { border-color: transparent; background: var(--dv-text); box-shadow: none; color: var(--dv-bg); }
:where(.dv15) .docs-search { max-width: 460px; margin-bottom: 14px; }
:where(.dv15) .docs-search-results { border: 1px solid var(--dv-line-strong); border-radius: var(--dv-r); background: var(--dv-surface-2); box-shadow: var(--dv-shadow-pop); color: var(--dv-text); }
:where(.dv15) .docs-search-result { border-color: var(--dv-line); background: transparent; color: var(--dv-text); }
:where(.dv15) .docs-search-result:hover { background: var(--dv-surface-3); }
:where(.dv15) .docs-search-result-title { color: var(--dv-text); }
:where(.dv15) .docs-search-result-category { color: var(--dv-faint); }
:where(.dv15) .docs-content { min-width: 0; max-width: 980px; line-height: 1.7; }
:where(.dv15) .docs-content .docs-section { margin-bottom: 24px; }
:where(.dv15) .chart-container { border: 1px solid var(--dv-line); border-radius: var(--dv-r-lg); background: var(--dv-surface); }
:where(.dv15) .chart-gridline { stroke: rgba(255, 255, 255, .07); }
:where(.dv15) .chart-axis-label { color: var(--dv-faint); fill: var(--dv-faint); }
:where(.dv15) .chart-tooltip { border: 1px solid var(--dv-line-strong); border-radius: 12px; background: var(--dv-surface-2); box-shadow: var(--dv-shadow-pop); color: var(--dv-text); }
:where(.dv15) .chart-legend { color: var(--dv-muted); }

/* ================================================================ 17b. Anordnung (verbindlich: scratchpad/redesign/DASH_LAYOUT.md)
   Grundsatz des Betreibers: "Volle Breite" heisst MEHR SPALTEN, groessere Vorschau, breitere Tabellen - nie ein Satz,
   ein Hinweis, ein einzelnes Feld oder eine einzelne Karte ueber die ganze Breite.
   Teil A = Sicherheitsnetz fuer alle Seiten (greift ohne Markup-Aenderung, bewusst schwach: :where() bzw.
   Element-Staerke - Bereichs-CSS und die Klassen aus Teil B gewinnen). Teil B = Bausteine fuer den Seitenaufbau. */

/* ---- A1. Zeilenlaenge: Fliesstext, Hinweise, Beschreibungen hoechstens ~70 Zeichen ---- */
:where(.dv15 .main) :where(p, blockquote, dd, figcaption, .dv-hint, .dv-error, .dv-card-sub, .dv-list-desc, .form-group > small, .section-title .desc),
:where(.dv15 .main) :where(ul, ol):not([class]) > li,
:where(.dv15 .main) label:not([class]) { max-width: var(--dv-measure); }
/* Zentrierter Text (Leerzeilen, Einzelkarten) bleibt mittig: die begrenzte Box selbst zentrieren */
:where(.dv15 .main) :is(p, label, .dv-hint):is([style*="text-align:center"], [style*="text-align: center"]),
:where(.dv15 .main) :is([style*="text-align:center"], [style*="text-align: center"], .dv-center) > :is(p, .dv-hint, label) { margin-inline: auto; }
:where(.dv15) .dv-center { text-align: center; }

/* ---- A2. Feldbreite nach Inhalt (Obergrenzen; in schmalen Spalten bleiben Felder 100 %) ----
   Staerke (0,1,1) = wie die Feld-Grundregel, steht spaeter -> gewinnt. Ausnahme: class="dv-w-full" (volle Breite). */
:where(.dv15 .main) input:where(:not([type]), [type="text"], [type="email"], [type="password"], [type="search"], [type="tel"]):not(.dv-w-full),
:where(.dv15 .main) select:where(:not([size])):not(.dv-w-full) { max-width: min(100%, var(--dv-field-lg)); }
:where(.dv15 .main) input:where([type="url"], [readonly], [type="file"]):not(.dv-w-full),
:where(.dv15 .main) textarea:not(.dv-w-full) { max-width: min(100%, var(--dv-field-xl)); }
:where(.dv15 .main) input:where([type="number"], [type="date"], [type="time"], [type="month"], [type="week"]):not(.dv-w-full) { max-width: min(100%, var(--dv-field-sm)); }
:where(.dv15 .main) input:where([type="datetime-local"]):not(.dv-w-full) { max-width: min(100%, 15rem); }
:where(.dv15 .main) input:where([type="range"]):not(.dv-w-full) { max-width: min(100%, var(--dv-field-md)); }
:where(.dv15 .main) input:where([type="color"]):not(.dv-w-full) { max-width: min(100%, var(--dv-field-xs)); }
/* Bewusst gesetzte Breite: am Feld ODER an der Gruppe (.form-group, .dv-field-row ...) - dann gilt sie fuer die
   Felder darin, Label und Hinweis bleiben frei. */
.dv15 .dv-w-xs:is(input, select, textarea), .dv15 .dv-w-xs :where(input, select, textarea) { max-width: min(100%, var(--dv-field-xs)); }
.dv15 .dv-w-sm:is(input, select, textarea), .dv15 .dv-w-sm :where(input, select, textarea) { max-width: min(100%, var(--dv-field-sm)); }
.dv15 .dv-w-md:is(input, select, textarea), .dv15 .dv-w-md :where(input, select, textarea) { max-width: min(100%, var(--dv-field-md)); }
.dv15 .dv-w-lg:is(input, select, textarea), .dv15 .dv-w-lg :where(input, select, textarea) { max-width: min(100%, var(--dv-field-lg)); }
.dv15 .dv-w-xl:is(input, select, textarea), .dv15 .dv-w-xl :where(input, select, textarea) { max-width: min(100%, var(--dv-field-xl)); }
.dv15 .dv-w-full:is(input, select, textarea), .dv15 .dv-w-full :where(input, select, textarea) { max-width: 100%; }

/* ---- A3. Einzelne Karte / Hinweis-Kasten nie ueber die ganze Breite ----
   Karten ohne Raster, Tabelle, Liste in Spalten, Vorschau oder Zeichenflaeche bleiben bei --dv-panel-max (in Rastern
   und Spalten sind sie ohnehin schmaler). Breiter erlaubt: class="dv-card--wide" oder data-dv-wide an der Karte. */
:where(.dv15 .main) :is(.card, .dv-card):where(:not(:has(table, .grid, .dv-grid, .dv-cols, .dv-split, .dc-split, .dv-list--grid, .price-grid, iframe, canvas, video, .chart-container, .dv-preview, [data-dv-wide])):not(.dv-card--wide, [data-dv-wide])) { max-width: var(--dv-panel-max); }
:where(.dv15 .main) :where(.dv-callout, .alert, .support-mode-banner) { max-width: var(--dv-panel-max); }

/* ---- B1. Seitentypen: Kopf und Inhalt teilen dieselbe rechte Kante ----
   <div class="dv-page dv-page--form"> include pageHeader + Inhalt </div>. Ohne Klasse: volle Breite (Uebersichten,
   Listen, Raster, Einstellungen mit Vorschau). */
:where(.dv15) .dv-page { width: 100%; max-width: var(--dv-page-max, none); min-width: 0; }
:where(.dv15) .dv-page--form { --dv-page-max: var(--dv-form-max); }   /* ein Formular ohne Vorschau, Assistent */
:where(.dv15) .dv-page--read { --dv-page-max: var(--dv-read-max); }   /* Lesetext, Anleitung */
:where(.dv15) .dv-form { max-width: var(--dv-form-max); }             /* einspaltiges Formular in einer breiten Seite */

/* ---- B2. Einstellungen + Live-Vorschau: nebeneinander, sobald Platz ist (kein fester Umbruchpunkt) ----
   Einstellungen links bis --dv-form-max, die Vorschau rechts bekommt den ganzen Rest und klebt beim Scrollen.
   Unter ~860 px Inhaltsbreite untereinander (Vorschau unter den Einstellungen). */
:where(.dv15) .dv-split--preview { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px 24px; }
/* Basis 28rem + 20rem (+ Abstand) = ~800 px: bei 1024 px mit Icon-Leiste (Inhalt ~890 px) steht die Vorschau noch
   daneben; auf breiten Schirmen bleibt die Aufteilung gleich (beide Seiten wachsen gleich stark). */
:where(.dv15) .dv-split--preview > :first-child { flex: 1 1 28rem; min-width: 0; max-width: var(--dv-form-max); }
:where(.dv15) .dv-split--preview > :last-child { flex: 1 1 20rem; min-width: min(100%, 18rem); }
:where(.dv15) .dv-split--preview > .dv-rail { position: sticky; top: 20px; }
:where(.dv15) .dv-split--preview > :first-child:last-child { max-width: var(--dv-form-max); }
/* B2b. Inhalt + Leiste dicht beieinander (Anordnungs-Pruefung 24.10.): Inhalt, der nicht breiter als eine Karte werden
   soll (Liste, Schritte, wenige Kacheln), bleibt bei --dv-form-max und die Leiste steht DIREKT daneben - statt am
   rechten Rand mit 600-1000 px Loch dazwischen. Unter 1100 px wie .dv-split untereinander. */
:where(.dv15) .dv-split.dv-split--snug { grid-template-columns: minmax(0, var(--dv-form-max)) minmax(300px, 380px); }
:where(.dv15) .dv-split--wide-rail.dv-split--snug { grid-template-columns: minmax(0, var(--dv-form-max)) minmax(320px, 460px); }
@media (max-width: 1100px) {
  :where(.dv15) .dv-split.dv-split--snug { grid-template-columns: minmax(0, 1fr); }
}
/* Die Vorschau-Leiste klebt nur, solange sie neben den Einstellungen steht ((0,2,0) wie die Regel oben). Ob sie das tut,
   haengt an der Breite des Splits (Seitenleiste offen/eingeklappt), nicht am Fenster: dash-v15.js setzt .is-stacked,
   sobald die Leiste unter die Einstellungen rutscht (keine Container-Abfrage - die wuerde fixierte Fenster im
   Formular an den Split binden). */
:where(.dv15) .dv-split--preview.is-stacked > .dv-rail { position: static; }

/* ---- B3. Raster-Varianten ----
   .dv-grid (auto-fit) fuellt die Reihe; --fill haelt alle Kacheln gleich breit (Galerien, Overlays, Panels). */
:where(.dv15) .dv-grid--fill { grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--dv-min, 320px)), 1fr)); }
:where(.dv15) .dv-grid--sm { --dv-min: 220px; }
:where(.dv15) .dv-grid--lg { --dv-min: 420px; }
:where(.dv15) .dv-grid--start { align-items: start; }
/* Spalten fuer Einstellungs-Karten unterschiedlicher Hoehe (fliessen von oben nach unten, keine Loecher):
   auf Ultra-Breit kommen einfach Spalten dazu. Reihenfolge: Wichtigstes zuerst (oben links). */
:where(.dv15) .dv-cols { column-width: var(--dv-col, 26rem); column-gap: var(--dv-gap); }
:where(.dv15) .dv-cols > * { margin-top: 0; margin-bottom: var(--dv-gap); break-inside: avoid; }
/* Zeilenliste in Spalten (viele Module/Schalter): ab breiten Schirmen 2-4 Spalten statt endlos langer Zeilen */
:where(.dv15) .dv-list--grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--dv-min, 24rem)), 1fr)); column-gap: 32px; margin-top: -1px; clip-path: inset(1px -24px -24px -24px); }
:where(.dv15) .dv-stack--lg { gap: var(--dv-space-6); }
/* Feldgruppen in einer Zeile (kurze Anlage-Formulare: Felder + Knopf direkt dahinter). Gruppen mit Breitenklasse
   nehmen genau diese Breite ein, der Knopf steht unten buendig mit den Feldern. */
:where(.dv15) .dv-row--bottom { align-items: flex-end; }
/* Knopf hinter Feldern: so hoch wie die Felder (44 px), in allen Bereichen gleich (vorher Twitch 44, Discord 40) */
:where(.dv15) .dv-row--bottom > :is(.btn, button):not(.small, .large, .dv-iconbtn) { flex: none; min-height: 44px; }
:where(.dv15) .dv-row > .form-group { margin-bottom: 0; }
:where(.dv15) .dv-row > .form-group.dv-w-xs { flex: 0 1 var(--dv-field-xs); }
:where(.dv15) .dv-row > .form-group.dv-w-sm { flex: 0 1 var(--dv-field-sm); }
:where(.dv15) .dv-row > .form-group.dv-w-md { flex: 0 1 var(--dv-field-md); }
:where(.dv15) .dv-row > .form-group.dv-w-lg { flex: 0 1 var(--dv-field-lg); }
:where(.dv15) .dv-row > .form-group.dv-w-xl { flex: 0 1 var(--dv-field-xl); }

/* ---- B4. Formular-Zeile quer: Label + Hilfe links, Feld rechts (lange Einstellungs-Karten auf breiten Schirmen);
   bricht schmal von selbst untereinander um. */
:where(.dv15) .dv-field-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 32px; padding: 18px 0; border-top: 1px solid var(--dv-line); }
:where(.dv15) .dv-field-row:first-child { padding-top: 4px; border-top-color: transparent; }
:where(.dv15) .dv-field-row:last-child { padding-bottom: 0; }
:where(.dv15) .dv-field-row > :first-child { flex: 1 1 14rem; max-width: 22rem; min-width: 0; }
:where(.dv15) .dv-field-row > :first-child > label { margin-bottom: 2px; color: var(--dv-text); }
:where(.dv15) .dv-field-row > :last-child { flex: 999 1 18rem; min-width: 0; }
:where(.dv15) .dv-field-row > :last-child > * + * { margin-top: 10px; }

/* ---- B5. Karte als Spalte: Fuss (Knoepfe) sitzt in einer Kartenreihe immer unten ---- */
:where(.dv15) .dv-card--flex { display: flex; flex-direction: column; }
:where(.dv15) .dv-card--flex > .dv-card-foot { margin-top: auto; }
:where(.dv15) .dv-card--flex > :has(+ .dv-card-foot) { margin-bottom: 20px; }
:where(.dv15) .dv-card--flex > :is(a, button, span, img) { align-self: flex-start; }

/* ---- B6. Gefahrenbereich: getrennt am Seitenende, eine Zeile je Aktion ---- */
:where(.dv15) .dv-danger-zone { margin-top: var(--dv-space-7); border-color: var(--dv-danger-line); }
:where(.dv15) .dv-danger-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 14px 0; border-top: 1px solid var(--dv-line); }
:where(.dv15) .dv-danger-row:first-child { padding-top: 0; border-top: 0; }
:where(.dv15) .dv-danger-row:last-child { padding-bottom: 0; }
:where(.dv15) .dv-danger-row > :first-child { flex: 1 1 18rem; max-width: var(--dv-measure); }

/* ---- B7. Leerzustand: Inhalt mittig, Text schmal; als Seitenblock nicht breiter als eine Karte ---- */
/* Ueberall im Inhalt (auch in Bereichs-Huellen wie .obs-page/.tw-*): ein Leerzustand ist nie breiter als eine Karte */
:where(.dv15 .main) .dv-empty { max-width: var(--dv-panel-max); }
:where(.dv15) .dv-empty .dv-empty-title { max-width: var(--dv-measure); }
/* In einer Karte ist der Leerzustand Teil der Karte: weniger Luft als als eigener Seitenblock */
:where(.dv15) .card .dv-empty { padding: clamp(20px, 1.6vw, 28px) 16px; }

/* ================================================================ 19. Breiten */
@media (max-width: 1280px) {
  :where(.dv15) .dv-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  html.dv15 { --dv-side-w: 236px; }
  :where(.dv15) .dv-split,
  :where(.dv15) .dv-split--wide-rail { grid-template-columns: minmax(0, 1fr); }
  :where(.dv15) .dv-rail { position: static; }
  :where(.dv15) .dv-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  :where(.dv15) .price-grid { grid-template-columns: minmax(0, 1fr); }
  :where(.dv15) :is(.dv-grid--2, .dv-grid--3, .dv-grid--4) { grid-template-columns: minmax(0, 1fr); }
}
/* Grobe Zeiger (Touch): Ziele mindestens 40 px */
@media (pointer: coarse) {
  :where(.dv15) :is(.btn, button).small { min-height: 40px; }
  :where(.dv15) .dv-iconbtn.small { width: 40px; min-width: 40px; height: 40px; min-height: 40px; }
  :where(.dv15) :is(.tab-bar, .filters) :is(a, button),
  :where(.dv15) .dv-seg > label { min-height: 40px; }
  :where(.dv15) :is(input[type="checkbox"]:not([role="switch"]), input[type="radio"]) { width: 22px; height: 22px; }
  :where(.dv15) .dv-switch > input[type="checkbox"] { width: 1px; height: 1px; }
  .dv15 .dash-group a,
  .dv15 .dash-group .dash-sub-toggle,
  .dv15 .dash-plan,
  .dv15 .dash-home { min-height: 42px; }
  .dv15 .dash-group .dash-sub-list a { min-height: 40px; }
}

/* Haken-Zeilen: die Beschriftung ist das Ziel und so hoch wie die Zeile (vorher nur die 19-px-Textzeile klickbar) */
:where(.dv15) .checkbox-row > label { display: flex; align-items: center; align-self: stretch; }
/* Touch (grober Zeiger) und Handy: alle kleinen Ziele mindestens 40 px - ein Muster fuer alle Bereiche (Haken-Zeilen,
   Ruecklinks, "Alle ->", Chips als Links, Doku-Navigation, Zeitraum/Kennzahl-Chips der Analytics, Export-Knoepfe).
   html.dv15 vorne: gewinnt gegen die Bereichs-CSS mit gleicher Klassen-Staerke. */
@media (pointer: coarse), (max-width: 760px) {
  html.dv15 .main .checkbox-row,
  html.dv15 .main .consent-checkbox { min-height: 40px; }
  html.dv15 .main :is(.dc-back, .kt-qmore, .docs-toc-list a, .docs-nav nav a, .ano-range-item, .ano-chip, .creator-code-export-btn) { min-height: 40px; }
  html.dv15 .main a.dv-tag { height: auto; min-height: 40px; }
  html.dv15 .main :is(.dc-back, .kt-qmore, .docs-toc-list a) { display: inline-flex; align-items: center; }
  /* Rueckweg in der Bereichszeile des Kopfs (Abschnitt 3): 40 px Klickflaeche ueber ::after statt min-height */
  html.dv15 .main .dc-back:has(+ .dv-pagehead)::after { inset: -10px -8px -10px -6px; }
}

/* --- Handy/kleines Tablet (bis 760 px - gleiche Grenze wie apple-ui.js): Menue als Schublade --- */
@media (max-width: 760px) {
  html.dv15 { scroll-padding-top: calc(var(--dv-mobilebar-h) + 16px); }
  .dv15 .layout { display: block; padding-top: var(--dv-mobilebar-h); }
  .dv15 .main { padding: 20px 16px 88px; }

  /* Kopfleiste (baut apple-ui.js, dash-v15.js setzt die Wortmarke ein) */
  .dv15 .dash-mobile-bar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--dv-mobilebar-h);
    padding: 0 12px 0 16px;
    border-bottom: 1px solid var(--dv-line);
    background: rgba(0, 0, 0, .78);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
  }
  .dv15 .dash-mobile-bar > a { display: inline-flex; align-items: center; gap: 1px; min-height: 44px; color: var(--dv-text); font-size: 1.05rem; font-weight: 700; text-decoration: none; }
  .dv15 .dash-mobile-bar > a img { display: block; width: 92px; height: auto; }
  .dv15 .dash-mobile-bar > a span { margin-top: 5px; color: var(--dv-faint); font-size: .8rem; font-weight: 500; }
  /* Menue-Knopf: Glyph (☰/×) aus apple-ui.js ausgeblendet, zwei Striche werden zum Kreuz */
  .dv15 .dash-mobile-bar > button {
    position: relative;
    display: block;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid var(--dv-line-strong);
    border-radius: 50%;
    background: transparent;
    color: var(--dv-text);
    font-size: 0;
    line-height: 0;
    transform: none;
  }
  .dv15 .dash-mobile-bar > button:hover { background: rgba(255, 255, 255, .06); color: var(--dv-text); transform: none; }
  /* Seite suchen (dash-v15.js Teil 11) links neben dem Menue-Knopf */
  .dv15 .dash-mobile-tools { display: flex; align-items: center; margin-left: auto; margin-right: 8px; }
  .dv15 .dash-mobile-search { display: grid; place-items: center; width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 0; border: 1px solid var(--dv-line); border-radius: 50%; background: transparent; color: var(--dv-muted); box-shadow: none; transform: none; }
  .dv15 .dash-mobile-search:hover { color: var(--dv-text); background: rgba(255, 255, 255, .06); transform: none; box-shadow: none; }
  .dv15 .dash-mobile-bar > button::before,
  .dv15 .dash-mobile-bar > button::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    top: 50%;
    height: 1.6px;
    margin-top: -.8px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .45s var(--dv-ease);
  }
  .dv15 .dash-mobile-bar > button::before { transform: translate3d(0, -3.5px, 0); }
  .dv15 .dash-mobile-bar > button::after { transform: translate3d(0, 3.5px, 0); }
  html.dv15 body.sidebar-open .dash-mobile-bar > button::before { transform: rotate(45deg); }
  html.dv15 body.sidebar-open .dash-mobile-bar > button::after { transform: rotate(-45deg); }

  /* Schublade */
  .dv15 .dash-sidebar,
  .dv15 .dash-sidebar.collapsed {
    position: fixed;
    left: 0;
    top: var(--dv-mobilebar-h);
    z-index: 59;
    width: min(320px, 86vw);
    height: calc(100vh - var(--dv-mobilebar-h));
    height: calc(100dvh - var(--dv-mobilebar-h));
    padding: 8px 12px 12px;
    border-right: 1px solid var(--dv-line-strong);
    box-shadow: 30px 0 80px -30px rgba(0, 0, 0, .95);
    transform: translate3d(-104%, 0, 0);
    transition: transform .5s var(--dv-ease);
  }
  html.dv15 body.sidebar-open .dash-sidebar { transform: none; }
  .dv15 .dash-brand { display: none; }
  .dv15 .dash-sidebar .dash-collapse { display: none; }
  /* Abdunklung hinter der Schublade - offen faengt sie den Tipp ab (apple-ui.js schliesst dann nur), sonst loeste ein
     Tipp neben die Schublade den Link darunter aus. */
  .dv15 .dashboard-bg { position: fixed; inset: var(--dv-mobilebar-h) 0 0; z-index: 58; display: block; background: rgba(0, 0, 0, .6); opacity: 0; pointer-events: none; transition: opacity .4s ease; }
  html.dv15 body.sidebar-open .dashboard-bg { opacity: 1; pointer-events: auto; cursor: pointer; }
  /* Eingeklappt gibt es nur ab 761 px (sidebarState.js/sidebar.js setzen .collapsed mobil nicht). Netz gegen die alten
     style.css-Regeln, falls die Klasse doch einmal dasteht: Schublade immer mit Beschriftungen. */
  .dv15 .dash-sidebar.collapsed .dash-label { display: block; }
  .dv15 .dash-sidebar.collapsed .dash-group-title { display: block; }
  .dv15 .dash-sidebar.collapsed .dash-sub-arrow,
  .dv15 .dash-sidebar.collapsed .dash-profile-arrow { display: block; }
  .dv15 .dash-sidebar.collapsed .dash-group a,
  .dv15 .dash-sidebar.collapsed .dash-group .dash-sub-toggle,
  .dv15 .dash-sidebar.collapsed .dash-plan,
  .dv15 .dash-sidebar.collapsed .dash-home { justify-content: flex-start; padding: 0 10px; }
  .dv15 .dash-sidebar.collapsed .dash-group .dash-sub-list a { padding: 0 10px; }
  .dv15 .dash-sidebar.collapsed .dash-profile { justify-content: flex-start; padding: 7px 10px 7px 8px; }
  /* Schublade dichter: mit zugeklappten Bereichen passt alles bis "Einstellungen" ueber den Fuss */
  .dv15 .dash-group { margin-bottom: 6px; }
  .dv15 .dash-group-title { padding: 4px 10px 3px; }
  .dv15 .dash-bottom { padding-top: 6px; }
  .dv15 .dash-sidebar .dash-profile { min-height: 48px; margin-top: 4px; }
  /* Ohne JavaScript (keine Kopfleiste): Menue steht einfach oben */
  html.dv15 body:not(.ui-ready) .layout { padding-top: 0; }
  html.dv15 body:not(.ui-ready) .dash-sidebar { position: relative; top: 0; width: 100%; height: auto; transform: none; box-shadow: none; }
  html.dv15 body:not(.ui-ready) .dash-brand { display: flex; }

  /* Kopf-Regel am Handy (Abschnitt 3): eigene, aber ebenfalls feste Hoehe (~72 px). Kachel + Bereich + Titel oben,
     die eine Zeile Beschreibung darunter ueber die ganze Breite (358 statt 312 px neben der Kachel, ~52 Zeichen).
     Aktionen stehen als Icon-Knopf rechts neben dem Titel statt in einer eigenen Zeile darunter (+56 px). */
  .dv15 {
    --dv-ph-icon: 38px;
    --dv-ph-gap: 12px;
    --dv-ph-crumb: 1.125rem;
    --dv-ph-title-size: 1.5rem;
    --dv-ph-sub-line: 1.3125rem;
    --dv-ph-sub: calc(var(--dv-ph-sub-line) + 4px);
  }
  .dv15 .page-header { margin-bottom: 18px; }
  .dv15 .page-header-title { align-items: flex-start; gap: 12px; }
  :where(.dv15) .page-header-icon { width: 38px; height: 38px; border-radius: 12px; }
  .dv15 .page-header :is(h1, h2) { font-size: 1.5rem; }
  .dv15 .page-header .page-subtitle { font-size: .875rem; }
  .dv15 .dv-pagehead .page-header-icon { grid-row: 1 / 3; }
  .dv15 .dv-pagehead .page-subtitle { grid-column: 1 / -1; }
  .dv15 .dv-pagehead .dv-pagehead-actions { grid-row: 1 / 3; align-self: center; margin-left: 0; }
  html.dv15 .main .dc-back:has(+ .dv-pagehead)::after { inset: -11px -8px -11px -6px; }
  html.dv15 .center-page.dv-auth-main,
  html.dv15 .center-page.dv-auth-main:has(> .dv-auth-steps) { padding-top: 8px; }

  :where(.dv15) :is(.grid, .form-grid, .price-grid) { grid-template-columns: minmax(0, 1fr) !important; }
  :where(.dv15) .grid > *,
  :where(.dv15) .form-grid > * { min-width: 0; }
  :where(.dv15) .form-group.full { grid-column: auto; }
  :where(.dv15) .main [style*="min-width"] { min-width: 0 !important; max-width: 100%; }
  :where(.dv15) .card { padding: 16px; border-radius: 18px; }
  :where(.dv15) .section-title { margin-top: 28px; }
  :where(.dv15) .section-title .desc { flex-basis: 100%; }
  :where(.dv15) :is(.tab-bar, .filters, .dv-seg) { margin-bottom: 18px; }
  :where(.dv15) .main .inline-form { flex-wrap: wrap; }
  /* Tabellen: wischbar statt zerquetscht (Logs-Nachricht war 1 Zeichen breit) */
  :where(.dv15) .main table { min-width: 600px; }
  :where(.dv15) .main > table { display: block; min-width: 0; overflow-x: auto; }
  :where(.dv15) .card:has(> table) { overflow-x: auto; }
  /* Tabelle als Kartenliste (DASH_LAYOUT.md): <table class="dv-table--stack"> + <td data-label="Spalte">.
     Jede Zeile wird ein Block, jede Zelle eine Zeile "Spalte ........ Wert"; Zellen ohne data-label (Aktionen)
     stehen ohne Beschriftung darunter. */
  :where(.dv15) .main table.dv-table--stack { min-width: 0; }
  :where(.dv15) .main table.dv-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  :where(.dv15) .main table.dv-table--stack :is(tbody, tr) { display: block; }
  :where(.dv15) .main table.dv-table--stack tr { padding: 12px 16px; border-bottom: 1px solid var(--dv-line); }
  :where(.dv15) .main table.dv-table--stack tr:last-child { border-bottom: 0; }
  :where(.dv15) .main table.dv-table--stack td { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; padding: 5px 0; border: 0; text-align: right; overflow-wrap: anywhere; }
  /* doppelte Klasse = gegen die Rand-Abstaende der Tabellen-Karte (.main > .dv-table-wrap :is(th, td):first-child) */
  :where(.dv15) .main table.dv-table--stack.dv-table--stack td { padding: 5px 0; }
  :where(.dv15) .main table.dv-table--stack td::before { content: attr(data-label); flex: none; max-width: 45%; color: var(--dv-faint); font-size: .78rem; font-weight: 600; text-align: left; }
  :where(.dv15) .main table.dv-table--stack td:not([data-label]) { justify-content: flex-start; text-align: left; }
  :where(.dv15) .main table.dv-table--stack td:not([data-label])::before { content: none; }
  :where(.dv15) .main table.dv-table--stack td[colspan] { justify-content: center; text-align: center; }
  :where(.dv15) .dv-savebar { bottom: 8px; }
  /* Speichern-Leiste mit mehreren Knoepfen (Editoren): Hinweis + "Verwerfen" in einer Zeile, Speichern und
     Veroeffentlichen darunter nebeneinander (vorher stand "Veroeffentlichen" allein in einer dritten Zeile) */
  :where(.dv15) .dv-savebar > .dv-savebar-note { flex-basis: 9rem; }
  :where(.dv15) .dv-savebar > .btn.ghost { padding-inline: 10px; }
  :where(.dv15) .dv-field-row { padding-block: 14px; }
  /* Hinweis-Kasten mit Knopf: der Knopf steht unter dem Text (eingerueckt wie der Text) statt ihn auf wenige Woerter
     je Zeile zusammenzudruecken */
  :where(.dv15) .dv-callout { flex-wrap: wrap; row-gap: 12px; }
  :where(.dv15) .dv-callout > .dv-callout-body { flex: 1 1 calc(100% - 40px); }
  :where(.dv15) .dv-callout:has(> .icon, > .dv-callout-ico) > :is(.btn, .dv-btns, form) { margin-left: 32px; }
  .dv15 .toast-stack { top: calc(var(--dv-mobilebar-h) + 8px); right: 12px; width: calc(100vw - 24px); }
  .dv15 :is(.profile-modal, .crop-modal, .dv-dialog) { border-radius: 22px; }
}
@media (max-width: 420px) {
  .dv15 .main { padding-inline: 14px; }
  :where(.dv15) :is(.btn, button, .button) { padding-inline: 16px; }
}

/* ================================================================ 20b. Kontrastmodus (Seitenleiste), Druck - nur Dashboard */
@media (forced-colors: active) {
  .dv15 .dash-group a[aria-current="page"] { outline: 2px solid Highlight; outline-offset: -2px; }
}
@media print {
  .dv15 .dash-sidebar,
  .dv15 .dash-mobile-bar,
  .dv15 .toast-stack { display: none !important; }
  .dv15 .layout { display: block; padding: 0; }
  .dv15 .main { padding: 0; }
}
