/* ==========================================================================
   DWV KUNDENPORTAL — "COCKPIT" v4 (Plugin V1.7.5)
   --------------------------------------------------------------------------
   Komplettes Re-Design — App-Aesthetik in DWV-Farben, dunkel.
   Inspiriert von Engineering-HUDs, Apple-Wallet, Linear-Inbox.

   Layout-Strategie:
     • Mobile  (<768px) : Stacked + Bottom-Tab-Bar (iOS-Style)
     • Tablet  (768-1023): Top-Tabs unter Header
     • Desktop (≥1024px): Sidebar links + Header-HUD

   Schriften:
     • Bricolage Grotesque (display) — Hero-Headlines, Section-Titel
     • Manrope (body) — Navigation, UI, Texte
     • JetBrains Mono (mono) — alle technischen Werte / Codes

   Funktionalität: 100% erhalten — alle bestehenden Klassen
   (.dwv-top/.dwv-sidebar/.dwv-tabs/.dwv-bottom/.dwv-sheet/.dwv-overlay/
   .dwv-lic*/.dwv-stat*/.dwv-quick*/.dwv-faq/.dwv-form etc.) werden
   neu gestylt, Markup und JS-Hooks bleiben unverändert.

   Login-Block am Ende der Datei: 1:1 erhalten — Login wird ohnehin über
   isolierte inline-`.dwvlogin-*` Critical-CSS mit `all: initial` gerendert.
   ========================================================================== */

/* --------------------------------------------------------------------------
   GOOGLE FONTS — Bricolage Grotesque + Manrope + JetBrains Mono
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,600;12..96,700&family=Manrope:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* --------------------------------------------------------------------------
   GLOBALER RESET + WP-AdminBar-Kompatibilität
   -------------------------------------------------------------------------- */
html, body {
  margin: 0 !important;
  padding: 0 !important;
}

html {
  scroll-padding-top: 80px;
  scroll-behavior: smooth;
}

[data-dwv-view],
.dwv-section-h,
.dwv-section,
.dwv-view > h1,
.dwv-view > h2 { scroll-margin-top: 80px; }

[data-dwv-view].active { padding-top: 8px; }
body.admin-bar [data-dwv-view].active { padding-top: 16px; }

body.admin-bar .dwv-top { top: 32px; }
body.admin-bar .dwv-sidebar {
  top: calc(56px + 32px);
  height: calc(100vh - 56px - 32px);
}
body.admin-bar .dwv-tabs { top: calc(56px + 32px); }
@media screen and (max-width: 782px) {
  body.admin-bar .dwv-top { top: 46px; }
  body.admin-bar .dwv-sidebar {
    top: calc(56px + 46px);
    height: calc(100vh - 56px - 46px);
  }
  body.admin-bar .dwv-tabs { top: calc(56px + 46px); }
}

/* ==========================================================================
   DESIGN-TOKENS — Cockpit Carbon Skala
   ========================================================================== */
:root {
  /* Brand */
  --gold:   #FFE12D;
  --orange: #F0A52D;
  --accent: linear-gradient(135deg, #FFE12D 0%, #F0A52D 100%);
  --accent-soft: linear-gradient(135deg, rgba(255, 225, 45, 0.12), rgba(240, 165, 45, 0.06));

  /* Carbon-Skala (DARK) */
  --c-deep:    #050507;
  --c-app:     #0B0B0F;
  --c-surface: #14141A;
  --c-card:    #1B1B23;
  --c-card-hi: #25252E;
  --c-card-3:  #2F2F3A;

  /* Linien */
  --line:        rgba(255, 255, 255, 0.06);
  --line-2:      rgba(255, 255, 255, 0.10);
  --line-3:      rgba(255, 255, 255, 0.16);
  --line-gold:   rgba(255, 225, 45, 0.28);

  /* Tinte */
  --ink-1: #F5F5F4;
  --ink-2: #A0A0A8;
  --ink-3: #6B6B72;
  --ink-4: #4A4A52;
  --ink-on-gold: #0B0B0F;

  /* Status */
  --ok:    #10B981;
  --ok-bg: rgba(16, 185, 129, 0.12);
  --warn:  #F59E0B;
  --warn-bg: rgba(245, 158, 11, 0.12);
  --err:   #EF4444;
  --err-bg: rgba(239, 68, 68, 0.12);
  --info:  #60A5FA;
  --info-bg: rgba(96, 165, 250, 0.12);

  /* Schatten */
  --sh-sm:  0 1px 2px rgba(0, 0, 0, 0.4);
  --sh-md:  0 4px 14px rgba(0, 0, 0, 0.45);
  --sh-lg:  0 24px 56px -12px rgba(0, 0, 0, 0.7);
  --sh-glow: 0 0 0 1px rgba(255, 225, 45, 0.18), 0 12px 32px -8px rgba(240, 165, 45, 0.35);

  /* Radien */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Aliase für vorhandenen Code (Kompatibilität mit ui_hilfe_css() etc.) */
  --bg-primaer:        var(--c-card);
  --bg-sek:            var(--c-surface);
  --bg-tert:           var(--c-card-hi);
  --rahmen:            var(--line);
  --rahmen-stark:      var(--line-2);
  --text-primaer:      var(--ink-1);
  --text-sek:          var(--ink-2);
  --text-deaktiviert:  var(--ink-3);
  --gelb-hell:         rgba(255, 225, 45, 0.10);
  --dwv-gelb:          var(--gold);
  --dwv-gelb-tief:     #D6B900;
  --dwv-orange:        var(--orange);
  --dwv-schwarz:       #0B0B0F;
  --dwv-weiss:         #FFFFFF;
  --erfolg:            var(--ok);
  --warnung:           var(--warn);
  --fehler:            var(--err);
  --schatten-sm:       var(--sh-sm);
  --schatten-md:       var(--sh-md);
  --schatten-lg:       var(--sh-lg);
  --radius-sm:         var(--r-sm);
  --radius-md:         var(--r-md);
  --radius-lg:         var(--r-lg);
}

/* ==========================================================================
   ELEMENTOR PARENT-RESET — volle Breite, keine Theme-Padding
   ========================================================================== */
body.dwv-portal-active {
  background: var(--c-app);
}
body.dwv-portal-active .dwv-portal-parent,
body.dwv-portal-active .dwv-portal-parent > .elementor-container,
body.dwv-portal-active .dwv-portal-parent > .elementor-column,
body.dwv-portal-active .dwv-portal-parent > .elementor-widget-wrap,
body.dwv-portal-active .dwv-portal-parent > .elementor-widget-container {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.dwv-portal-active .elementor-widget-shortcode,
body.dwv-portal-active .elementor-widget-shortcode > .elementor-widget-container {
  padding: 0 !important;
}

/* ==========================================================================
   APP-SHELL — Grid-Layout mit 3 Responsive-Modi
   ========================================================================== */
.dwv-app {
  box-sizing: border-box;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-1);
  background:
    radial-gradient(ellipse at 8% -10%, rgba(255, 225, 45, 0.04), transparent 50%),
    radial-gradient(ellipse at 100% 110%, rgba(240, 165, 45, 0.03), transparent 50%),
    var(--c-app);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;

  display: grid;
  grid-template-areas:
    "top"
    "main"
    "bottom";
  grid-template-rows: 56px 1fr auto;
  padding-bottom: env(safe-area-inset-bottom);
}

.dwv-app *, .dwv-app *::before, .dwv-app *::after {
  box-sizing: border-box;
}
.dwv-app button, .dwv-app input, .dwv-app textarea, .dwv-app select {
  font-family: inherit;
  font-size: inherit;
}

/* Tablet Portrait: Top-Tabs unter Header */
@media (min-width: 768px) and (max-width: 1023px) {
  .dwv-app {
    grid-template-areas:
      "top"
      "tabs"
      "main";
    grid-template-rows: 56px auto 1fr;
  }
}

/* Desktop: Sidebar + Main */
@media (min-width: 1024px) {
  .dwv-app {
    grid-template-areas:
      "top top"
      "sidebar main";
    grid-template-rows: 56px 1fr;
    grid-template-columns: 240px 1fr;
  }
}
@media (min-width: 1440px) {
  .dwv-app { grid-template-columns: 256px 1fr; }
}

/* ==========================================================================
   TOPBAR — Schmal, präzise, dünne Gold-Akzent-Linie unten
   ========================================================================== */
.dwv-top {
  grid-area: top;
  position: sticky;
  top: 0;
  z-index: 80;

  display: flex;
  align-items: center;
  gap: 12px;
  /* V1.7.13: Topbar etwas hoeher fuer den groesseren Brand-Block */
  height: 68px;
  padding: 0 16px;

  background: var(--c-surface);
  border-bottom: 1px solid var(--line);
  color: var(--ink-1);
}
@media (min-width: 768px)  { .dwv-top { padding: 0 20px; height: 72px; } }
@media (min-width: 1024px) { .dwv-top { padding: 0 28px; height: 76px; } }

/* Sidebar/Tabs entsprechend tiefer einsticken (Topbar ist nun hoeher) */
.dwv-sidebar { top: 68px !important; height: calc(100vh - 68px) !important; }
.dwv-tabs    { top: 68px !important; }
@media (min-width: 768px) {
  .dwv-sidebar { top: 72px !important; height: calc(100vh - 72px) !important; }
  .dwv-tabs    { top: 72px !important; }
}
@media (min-width: 1024px) {
  .dwv-sidebar { top: 76px !important; height: calc(100vh - 76px) !important; }
  .dwv-tabs    { top: 76px !important; }
}
/* AdminBar-Korrektur: Topbar-Hoehe + AdminBar-Hoehe = Sidebar-Top */
body.admin-bar .dwv-sidebar {
  top: calc(68px + 32px) !important;
  height: calc(100vh - 68px - 32px) !important;
}
@media (min-width: 768px) {
  body.admin-bar .dwv-sidebar {
    top: calc(72px + 32px) !important;
    height: calc(100vh - 72px - 32px) !important;
  }
}
@media (min-width: 1024px) {
  body.admin-bar .dwv-sidebar {
    top: calc(76px + 32px) !important;
    height: calc(100vh - 76px - 32px) !important;
  }
}
@media screen and (max-width: 782px) {
  body.admin-bar .dwv-sidebar {
    top: calc(68px + 46px) !important;
    height: calc(100vh - 68px - 46px) !important;
  }
}

/* dünne statische Gold-Akzent-Linie ganz unten (immer da) */
.dwv-top::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 225, 45, 0.35) 30%,
    rgba(240, 165, 45, 0.35) 70%,
    transparent 100%);
  pointer-events: none;
}
/* V1.7.8: ANIMIERTER SHIMMER über der Akzent-Linie — wandert von links
   nach rechts wie ein Scanner-Beam (Cockpit-HUD-Feeling). */
.dwv-top::before {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    transparent 30%,
    rgba(255, 255, 255, 0.95) 48%,
    rgba(255, 225, 45, 0.85) 52%,
    transparent 70%,
    transparent 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  filter: blur(1.5px);
  pointer-events: none;
  z-index: 1;
  animation: dwv-top-shimmer 6s cubic-bezier(0.6, 0.05, 0.4, 0.95) infinite;
  opacity: 0;
}
@keyframes dwv-top-shimmer {
  0%   { background-position: 100% 0; opacity: 0; }
  15%  { opacity: 0.9; }
  85%  { opacity: 0.9; }
  100% { background-position: -100% 0; opacity: 0; }
}

/* ==========================================================================
   BRAND-BLOCK V2 (V1.7.13) — groesser, professioneller, zweizeilig
   --------------------------------------------------------------------------
   Vorher: einzeilig, klein, "+ Supportportal" als Mini-Pille rechts.
   Jetzt: Logo in eigenem Frame (mit Glow), Hauptname Bricolage 18px,
   Untertitel "Supportportal" als elegante Mono-Caption darunter.
   ========================================================================== */
.dwv-top-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px 6px 6px;
  border-radius: var(--r-sm);
  flex: 0 0 auto;
  text-decoration: none;
  color: inherit;
  transition: background 150ms ease;
}
.dwv-top-brand:hover { background: var(--c-card); }

/* Logo-Frame: groesser + dezenter Goldglow */
.dwv-top-brand img {
  width: 38px; height: 38px;
  padding: 4px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 225, 45, 0.16), rgba(255, 225, 45, 0.04));
  border: 1px solid var(--line-gold);
  border-radius: 9px;
  flex-shrink: 0;
  box-shadow:
    0 4px 14px -4px rgba(255, 225, 45, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
@media (min-width: 1024px) {
  .dwv-top-brand img { width: 42px; height: 42px; padding: 5px; }
}

/* ==========================================================================
   BRAND-BLOCK V3 (V1.7.16) — "Premium-Wordmark"
   --------------------------------------------------------------------------
   Logo in edlem Frame + zweizeiliger Wordmark-Stack:
     Zeile 1:  DWV ─── Konstruktion    ← Sans-Mark + Goldlinie + Corp-Name
     Zeile 2:  ● License Portal        ← Mono-Caption mit Status-Dot
   ========================================================================== */
.dwv-top-brand--wordmark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

/* Logo-Frame: edler Karton mit Innenring + Glow */
.dwv-brand-frame {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 225, 45, 0.18), rgba(255, 225, 45, 0.04));
  border: 1px solid var(--line-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow:
    0 6px 18px -4px rgba(255, 225, 45, 0.30),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.dwv-brand-frame::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}
.dwv-brand-frame img {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  position: relative;
  z-index: 1;
}
@media (min-width: 1024px) {
  .dwv-brand-frame { width: 48px; height: 48px; border-radius: 12px; }
  .dwv-brand-frame img { width: 32px; height: 32px; }
}

/* Wordmark-Stack rechts vom Logo */
.dwv-brand-stack {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
}

.dwv-brand-zeile1 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}
.dwv-brand-mark {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--ink-1);
  line-height: 1;
  /* "DWV" mit subtle Tracking damit's wie eine echte Wortmarke wirkt */
}
.dwv-brand-rule {
  display: inline-block;
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent, rgba(255, 225, 45, 0.6), rgba(240, 165, 45, 0.6), transparent);
  flex-shrink: 0;
}
.dwv-brand-corp {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.1px;
  color: var(--ink-2);
  line-height: 1;
}

.dwv-brand-zeile2 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1;
  padding-top: 1px;
}
.dwv-brand-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 2px rgba(255, 225, 45, 0.18);
  flex-shrink: 0;
}

/* Desktop: Zeile1 etwas größer */
@media (min-width: 1024px) {
  .dwv-brand-mark { font-size: 24px; letter-spacing: -0.8px; }
  .dwv-brand-corp { font-size: 14px; }
  .dwv-brand-rule { width: 22px; }
  .dwv-brand-zeile2 { font-size: 10.5px; letter-spacing: 1.8px; }
}

/* Tablet: kompakter */
@media (max-width: 767px) {
  .dwv-top-brand--wordmark { gap: 11px; }
  .dwv-brand-frame { width: 40px; height: 40px; }
  .dwv-brand-frame img { width: 26px; height: 26px; }
  .dwv-brand-mark { font-size: 19px; }
  .dwv-brand-corp { font-size: 12.5px; }
  .dwv-brand-rule { width: 14px; }
}

/* Mobile schmal (< 480px): "Konstruktion" + "License Portal" ausblenden,
   nur Logo + "DWV" + dünne Mono-Caption */
@media (max-width: 480px) {
  .dwv-brand-rule, .dwv-brand-corp { display: none; }
  .dwv-brand-zeile1 { gap: 0; }
  .dwv-brand-mark { font-size: 18px; }
  .dwv-brand-zeile2 { font-size: 9.5px; letter-spacing: 1.4px; }
}
@media (max-width: 380px) {
  .dwv-brand-frame { width: 36px; height: 36px; }
  .dwv-brand-frame img { width: 22px; height: 22px; }
  .dwv-brand-zeile2 { display: none; }
}

/* ===== TELEFON-BUTTON =====================================================
   Direktwahl-Link mit gruenem Akzent (Anruf-Affordance) — passt visuell
   neben den Support-Button. Hover wie andere icon-Buttons aber mit gruenem
   Glow statt Gold. */
.dwv-icon-btn--tel:hover {
  background: rgba(16, 185, 129, 0.10);
  color: var(--ok);
  border-color: rgba(16, 185, 129, 0.32);
}

.dwv-top-spacer { flex: 1 1 auto; }

.dwv-top-title {
  display: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink-3);
}
@media (min-width: 1024px) { .dwv-top-title { display: block; } }

.dwv-top-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.dwv-icon-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-2);
  cursor: pointer;
  padding: 0;
  border-radius: var(--r-sm);
  position: relative;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.dwv-icon-btn:hover {
  background: rgba(255, 225, 45, 0.08);
  color: var(--gold);
  border-color: var(--line-gold);
}
.dwv-icon-btn svg { width: 18px; height: 18px; fill: currentColor; }

.dwv-badge {
  position: absolute;
  top: 3px; right: 3px;
  background: var(--err);
  color: #FFF;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 600;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid var(--c-surface);
}

/* System-Status-Pille — nur Tablet+
   V1.7.48: jetzt klickbarer Button mit overall-status-Variante
   (--ok / --wartung / --wartung_geplant / --warnung). */
.dwv-sys-status {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  margin-right: 4px;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}
.dwv-sys-status:hover {
  border-color: var(--ink-2);
  color: var(--ink-1);
}
.dwv-sys-status:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.dwv-sys-status--wartung {
  border-color: #C53030;
  color: #C53030;
}
.dwv-sys-status--wartung_geplant {
  border-color: #F59E0B;
  color: #B45309;
}
.dwv-sys-status--warnung {
  border-color: #F59E0B;
  color: #B45309;
}
@media (min-width: 768px) { .dwv-sys-status { display: inline-flex; } }
.dwv-sys-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
  animation: dwv-pulse 2.4s ease-in-out infinite;
}
.dwv-sys-status--wartung .dwv-sys-dot {
  background: #C53030;
  box-shadow: 0 0 0 3px rgba(197,48,48,0.22);
  animation-name: dwv-pulse-rot;
}
.dwv-sys-status--wartung_geplant .dwv-sys-dot,
.dwv-sys-status--warnung .dwv-sys-dot {
  background: #F59E0B;
  box-shadow: 0 0 0 3px rgba(245,158,11,0.22);
  animation-name: dwv-pulse-orange;
}
@keyframes dwv-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.04); }
}
@keyframes dwv-pulse-rot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(197,48,48,0.22); }
  50%      { box-shadow: 0 0 0 6px rgba(197,48,48,0.05); }
}
@keyframes dwv-pulse-orange {
  0%, 100% { box-shadow: 0 0 0 3px rgba(245,158,11,0.22); }
  50%      { box-shadow: 0 0 0 6px rgba(245,158,11,0.05); }
}

/* V1.7.48: System-Status-Sheet — Detail-Anzeige im Bottom-Sheet */
.dwv-sheet--status .dwv-sheet-body { padding: 0 22px 22px; }
.dwv-status-section-titel {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--ink-3); margin: 24px 0 10px;
}
.dwv-status-liste {
  list-style: none; padding: 0; margin: 0 0 8px;
  display: grid; gap: 8px;
}
.dwv-status-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 12px;
}
.dwv-status-item-ic {
  font-size: 22px; line-height: 1; flex-shrink: 0;
}
.dwv-status-item-text { flex: 1; min-width: 0; }
.dwv-status-item-name {
  font-weight: 700; font-size: 14px;
  color: var(--ink-1); margin-bottom: 2px;
}
.dwv-status-item-msg {
  font-size: 12.5px; color: var(--ink-2);
  line-height: 1.4;
}
.dwv-status-item-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 1px;
  text-transform: uppercase; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  flex-shrink: 0;
  background: rgba(16,185,129,0.15);
  color: #047857;
}
.dwv-status-item--ok .dwv-status-item-pill {
  background: rgba(16,185,129,0.15); color: #047857;
}
.dwv-status-item--warnung .dwv-status-item-pill {
  background: rgba(245,158,11,0.18); color: #B45309;
}
.dwv-status-item--fehler .dwv-status-item-pill {
  background: rgba(197,48,48,0.18); color: #B91C1C;
}
.dwv-status-item--wartung .dwv-status-item-pill {
  background: rgba(197,48,48,0.18); color: #B91C1C;
}
.dwv-status-item--wartung_geplant .dwv-status-item-pill {
  background: rgba(245,158,11,0.18); color: #B45309;
}
.dwv-status-item--warnung,
.dwv-status-item--fehler,
.dwv-status-item--wartung {
  border-color: rgba(197,48,48,0.25);
}

.dwv-status-wartung-banner {
  display: flex; gap: 14px; padding: 16px 18px;
  border-radius: 12px; margin-top: 4px;
}
.dwv-status-wartung-banner--laufend {
  background: linear-gradient(135deg, #FEE2E2, #FECACA);
  border: 1px solid #F87171; color: #7F1D1D;
}
.dwv-status-wartung-banner--angekuendigt {
  background: #FEF3C7; border: 1px solid #F59E0B;
  color: #78350F;
}
.dwv-status-wartung-icon { font-size: 26px; flex-shrink: 0; }
.dwv-status-wartung-text { flex: 1; font-size: 13px; line-height: 1.5; }
.dwv-status-wartung-titel { font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.dwv-status-wartung-detail { font-size: 13px; opacity: 0.9; margin-bottom: 4px; }
.dwv-status-wartung-zeit {
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px;
  opacity: 0.85;
}

.dwv-status-historie {
  list-style: none; padding: 0; margin: 0 0 16px;
  display: grid; gap: 6px;
}
.dwv-status-historie-item {
  display: flex; gap: 14px; padding: 10px 14px;
  background: var(--surface-2);
  border-left: 2px solid var(--line-2);
  border-radius: 6px;
  font-size: 12.5px; color: var(--ink-2);
}
.dwv-status-historie-zeit {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; color: var(--ink-3);
  flex-shrink: 0; min-width: 100px;
}
.dwv-status-historie-text { flex: 1; }

.dwv-status-footer {
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--line-2);
  font-size: 12px; color: var(--ink-2);
  line-height: 1.6;
}
.dwv-status-footer a {
  color: var(--gold); text-decoration: none;
  font-weight: 700;
}
.dwv-status-footer a:hover { text-decoration: underline; }
.dwv-status-footer-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; color: var(--ink-3);
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   V1.7.28: HEADER-SPRACH-TOGGLE (DE / EN, segmentiertes Pill-Control)
   Sitzt zwischen Suche und Action-Icons. Aktiver Button bekommt vom
   bestehenden i18n-JS die Klasse `dwv-sprach-tile--aktiv` (gleiches
   Click-Delegate wie die Sprache-Sheet-Tiles).
   -------------------------------------------------------------------------- */
.dwv-top-lang {
  display: inline-flex;
  align-items: stretch;
  flex: 0 0 auto;
  background: var(--c-deep);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 2px;
  gap: 0;
  margin-right: 4px;
  height: 32px;
  overflow: hidden;
}
.dwv-top-lang-btn {
  background: transparent;
  border: none;
  color: var(--ink-3);
  cursor: pointer;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.7px;
  padding: 0 10px;
  height: 100%;
  border-radius: calc(var(--r-pill) - 2px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 30px;
  transition: background 160ms ease, color 160ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
/* V1.7.34: Flaggen sind echte SVGs inline. Container hat fixe Groesse,
   SVG fuellt 100% — keine Emoji-Fonts mehr noetig, kein Background-Fallback,
   kein "DE"/"EN"-Text drinne. */
.dwv-top-lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 13px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  /* Subtle border damit die Flagge auf dunklem Bg "abgehoben" wirkt */
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.dwv-top-lang-flag svg {
  display: block;
  width: 100%;
  height: 100%;
}
.dwv-top-lang-text { letter-spacing: 0.7px; }
.dwv-top-lang-btn:hover {
  color: var(--ink-1);
  background: rgba(255, 225, 45, 0.06);
}
.dwv-top-lang-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
/* Aktive Sprache: Goldener Pill-Hintergrund. Der Klassenname kommt aus
   dem bestehenden i18n-JS (dwv-sprach-tile--aktiv) — wir stylen ihn hier
   speziell fuer das Header-Pill-Layout. */
.dwv-top-lang .dwv-top-lang-btn.dwv-sprach-tile--aktiv {
  background: var(--gold);
  color: var(--ink-on-gold);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    0 1px 2px rgba(0, 0, 0, 0.18);
}
.dwv-top-lang .dwv-top-lang-btn.dwv-sprach-tile--aktiv:hover {
  background: #FFD700;
  color: var(--ink-on-gold);
}

/* Mobile: kompakter — Text ausblenden, nur Flaggen sichtbar */
@media (max-width: 640px) {
  .dwv-top-lang { height: 28px; margin-right: 2px; }
  .dwv-top-lang-btn { padding: 0 8px; min-width: 28px; gap: 0; }
  .dwv-top-lang-text { display: none; }
  .dwv-top-lang-flag { width: 20px; height: 14px; }
}
/* Sehr klein: nur 1 Buchstabe sichtbar (D/E) waere hier moeglich,
   wir behalten aber DE/EN — der Toggle ist klein genug. */

/* ==========================================================================
   SIDEBAR — Desktop ≥ 1024px (Full mit Icon + Label + Badge)
   ========================================================================== */
.dwv-sidebar {
  grid-area: sidebar;
  display: none;
  flex-direction: column;
  background: var(--c-surface);
  border-right: 1px solid var(--line);
  padding: 16px 12px 20px;

  position: sticky;
  top: 56px;
  align-self: start;
  height: calc(100vh - 56px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
@media (min-width: 1024px) { .dwv-sidebar { display: flex; } }

.dwv-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dwv-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  text-decoration: none;
  font-family: 'Manrope', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.1px;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
  background: transparent;
  border: none;
  text-align: left;
  width: 100%;
  position: relative;
}
.dwv-nav-item:hover {
  background: var(--c-card);
  color: var(--ink-1);
}
.dwv-nav-item.active {
  background: var(--c-card);
  color: var(--ink-1);
  font-weight: 600;
}
.dwv-nav-item.active::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}

.dwv-nav-ic {
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  color: inherit;
  transition: color 150ms ease;
}
.dwv-nav-ic svg { width: 16px; height: 16px; fill: currentColor; }
.dwv-nav-item.active .dwv-nav-ic { color: var(--gold); }

.dwv-nav-badge {
  margin-left: auto;
  background: var(--c-card-hi);
  color: var(--ink-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  min-width: 22px;
  text-align: center;
  letter-spacing: 0.2px;
}
.dwv-nav-item.active .dwv-nav-badge {
  background: var(--gold);
  color: var(--ink-on-gold);
}

.dwv-sidebar-fuss {
  margin-top: auto;
  padding: 14px 12px 4px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.6px;
  text-align: center;
  line-height: 1.6;
  text-transform: uppercase;
}

/* ==========================================================================
   TOP-TABS — Tablet (768-1023px), horizontal scrollbar
   ========================================================================== */
.dwv-tabs {
  grid-area: tabs;
  display: none;
  background: var(--c-surface);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: sticky;
  top: 56px;
  z-index: 60;
  padding: 6px 12px;
  gap: 4px;
}
.dwv-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 768px) and (max-width: 1023px) {
  .dwv-tabs { display: flex; }
}

.dwv-tab-item {
  flex: 0 0 auto;
  padding: 9px 16px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  border-radius: var(--r-sm);
  white-space: nowrap;
  background: transparent;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 150ms ease, color 150ms ease;
}
.dwv-tab-item:hover {
  color: var(--ink-1);
  background: var(--c-card);
}
.dwv-tab-item.active {
  background: var(--accent);
  color: var(--ink-on-gold);
  font-weight: 600;
  box-shadow: 0 4px 14px -4px rgba(240, 165, 45, 0.4);
}
.dwv-tab-item .dwv-tab-ic { font-size: 14px; line-height: 1; }

/* ==========================================================================
   BOTTOM-TAB-BAR — Mobile (<768px), iOS-Stil mit Gold-Indicator
   ========================================================================== */
.dwv-bottom {
  grid-area: bottom;
  display: flex;
  align-items: stretch;
  background: var(--c-surface);
  border-top: 1px solid var(--line);
  padding: 4px 4px;
  padding-bottom: calc(4px + env(safe-area-inset-bottom));
  position: sticky;
  bottom: 0;
  z-index: 70;
  box-shadow: 0 -8px 28px -8px rgba(0, 0, 0, 0.5);
  /* Goldakzent oben */
  position: sticky;
}
.dwv-bottom::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent, rgba(255, 225, 45, 0.35), transparent);
  pointer-events: none;
}
@media (min-width: 768px) { .dwv-bottom { display: none; } }

.dwv-bottom-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px 6px;
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1px;
  color: var(--ink-3);
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
  min-height: 56px;
  transition: color 150ms ease;
  position: relative;
}
.dwv-bottom-item .dwv-bn-ic {
  font-size: 20px;
  line-height: 1;
  transition: transform 200ms ease;
}
.dwv-bottom-item.active {
  color: var(--gold);
}
.dwv-bottom-item.active .dwv-bn-ic {
  color: var(--gold);
  transform: translateY(-1px);
}
.dwv-bottom-item.active::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  background: var(--accent);
  border-radius: 0 0 3px 3px;
}

/* ==========================================================================
   MAIN-CONTENT — generöses Padding, max-width auf großen Screens
   ========================================================================== */
.dwv-main {
  grid-area: main;
  padding: 20px 16px 80px;
  max-width: 100%;
  min-width: 0;
}
@media (min-width: 768px)  { .dwv-main { padding: 28px 28px 80px; } }
@media (min-width: 1024px) { .dwv-main { padding: 36px 40px 100px; } }
@media (min-width: 1440px) { .dwv-main { padding: 44px 56px 120px; max-width: 1280px; margin: 0 auto; } }
@media (min-width: 1680px) { .dwv-main { max-width: 1400px; } }

/* Tab-View-Sichtbarkeit */
.dwv-view { display: none; }
.dwv-view.active {
  display: block;
  animation: dwv-fade-in 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes dwv-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Stagger-Animation für direkte Kinder */
.dwv-main > * { animation: dwv-stagger 380ms cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
.dwv-main > *:nth-child(1) { animation-delay: 0.04s; }
.dwv-main > *:nth-child(2) { animation-delay: 0.10s; }
.dwv-main > *:nth-child(3) { animation-delay: 0.16s; }
.dwv-main > *:nth-child(4) { animation-delay: 0.22s; }
.dwv-main > *:nth-child(5) { animation-delay: 0.28s; }
.dwv-main > *:nth-child(6) { animation-delay: 0.34s; }
@keyframes dwv-stagger {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   TYPOGRAPHIE — Hero/Begrüßung + Section-Headers
   ========================================================================== */
/* V1.7.34: TEAMLEADER-Eyebrow ueber der Begruessung */
.dwv-gruss-rolle {
  margin: 0 0 8px;
  line-height: 1;
}
.dwv-gruss-rolle-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 10px;
  background: linear-gradient(135deg,
    rgba(255, 225, 45, 0.18) 0%,
    rgba(240, 165, 45, 0.14) 100%);
  border: 1px solid rgba(255, 225, 45, 0.50);
  border-radius: 999px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold);
  box-shadow: 0 2px 8px -4px rgba(255, 225, 45, 0.25);
}
.dwv-gruss-rolle-ic {
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0;
}
.dwv-gruss-rolle-txt {
  letter-spacing: 1.6px;
}

.dwv-gruss {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--ink-1);
  margin: 4px 0 4px;
  letter-spacing: -0.8px;
  line-height: 1.1;
}
@media (min-width: 768px)  { .dwv-gruss { font-size: 36px; } }
@media (min-width: 1024px) { .dwv-gruss { font-size: 44px; } }

.dwv-gruss-sub {
  color: var(--ink-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  margin: 0 0 32px;
  letter-spacing: 0.1px;
}

.dwv-section-h {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-1);
  margin: 36px 0 16px;
  letter-spacing: -0.4px;
  line-height: 1.2;
}
.dwv-section-h.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 24px 0 12px;
}

.dwv-section h2, .dwv-section h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--ink-1);
}
.dwv-section h2 { font-size: 20px; margin: 28px 0 14px; }
.dwv-section h3 { font-size: 16px; margin: 20px 0 10px; }

/* ==========================================================================
   STAT-CARDS — HUD-Anzeigen mit Hero-Wert
   ========================================================================== */
.dwv-stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 32px;
}
@media (min-width: 500px) { .dwv-stat-grid { grid-template-columns: 1fr 1fr; gap: 14px; } }
@media (min-width: 900px) { .dwv-stat-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

.dwv-stat {
  background: var(--c-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: border-color 200ms ease, background 200ms ease, transform 200ms ease;
}
.dwv-stat::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 200ms ease;
}
.dwv-stat:hover {
  border-color: var(--line-gold);
  background: var(--c-card-hi);
  transform: translateY(-2px);
}
.dwv-stat:hover::after { opacity: 1; }

.dwv-stat-ic {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}
.dwv-stat-ic.erfolg { background: var(--ok-bg);   color: var(--ok); }
.dwv-stat-ic.info   { background: var(--info-bg); color: var(--info); }
.dwv-stat-ic.warn   { background: var(--warn-bg); color: var(--warn); }

.dwv-stat-txt { flex: 1; min-width: 0; }
.dwv-stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-weight: 500;
  margin-bottom: 4px;
}
.dwv-stat-value {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--ink-1);
  line-height: 1.05;
  letter-spacing: -0.6px;
}
.dwv-stat-hint {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 4px;
}

/* ==========================================================================
   QUICK-ACTIONS — Touch-Tiles
   ========================================================================== */
.dwv-quick-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 32px;
}
@media (min-width: 500px) { .dwv-quick-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .dwv-quick-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }

.dwv-quick {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--c-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink-1);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
  min-height: 72px;
  text-align: left;
  font-family: inherit;
  font-size: inherit;
  position: relative;
  overflow: hidden;
}
.dwv-quick:hover {
  border-color: var(--line-gold);
  background: var(--c-card-hi);
  transform: translateY(-2px);
}
.dwv-quick-ic {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: rgba(255, 225, 45, 0.10);
  border: 1px solid var(--line-gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.dwv-quick-txt { flex: 1; min-width: 0; }
.dwv-quick-titel {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-1);
  letter-spacing: -0.1px;
}
.dwv-quick-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-2);
  margin-top: 3px;
  letter-spacing: 0.2px;
}
.dwv-quick-pfeil {
  color: var(--ink-3);
  font-size: 18px;
  transition: color 180ms ease, transform 180ms ease;
}
.dwv-quick:hover .dwv-quick-pfeil {
  color: var(--gold);
  transform: translateX(3px);
}

/* ==========================================================================
   LIZENZ-KARTEN V2 (V1.7.10) — statisch, kein Flip, prominenter Copy-Button
   --------------------------------------------------------------------------
   Vorher: 3D-Flip mit backface-visibility. Bug: auf Mobile-Safari / manchen
   Browsern wurde der Code spiegelverkehrt sichtbar (GPU-Compositing-Bug).
   Jetzt: Solide statische Karte, Detail-Daten als Sheet.
   ========================================================================== */
.dwv-lic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 8px;
}
@media (min-width: 640px)  { .dwv-lic-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .dwv-lic-grid { grid-template-columns: 1fr 1fr 1fr; } }

/* Container — kompakte Card, KEIN aspect-ratio, KEIN perspective */
.dwv-lic {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 18px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 225, 45, 0.10), transparent 55%),
    linear-gradient(150deg, #1F1F26 0%, #0E0E12 100%);
  border: 1px solid var(--line);
  color: #FFF;
  /* V1.7.21: overflow:visible damit Help-Tooltips aus der Karte rauspoppen
     koennen. Das Brushed-Metal-Pattern (::before mit inset:0) bleibt
     trotzdem im Element-Frame, weil border-radius via clip-path erzwungen.*/
  overflow: visible;
  box-shadow: var(--sh-md);
  position: relative;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 220ms ease,
              box-shadow 220ms ease;
}
/* Pseudo-Elements (Brushed-Metal-Pattern + Edge-Glow) clippen sich selbst
   per border-radius — nicht ueber overflow des Parents. */
.dwv-lic::before {
  border-radius: inherit;
}
.dwv-lic:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 225, 45, 0.30);
  box-shadow:
    var(--sh-md),
    0 0 0 1px rgba(255, 225, 45, 0.08),
    0 12px 30px -8px rgba(0, 0, 0, 0.6);
}

/* V1.7.21: Help-i Variante in der Lizenz-Karte — heller (gegen dunklen
   Karten-Hintergrund) und Tooltip nach links versetzt damit es nicht
   am rechten Karten-Rand abgeschnitten wird. */
.dwv-help--lic {
  background: rgba(255, 225, 45, 0.18) !important;
  color: var(--gold) !important;
  border-color: rgba(255, 225, 45, 0.55) !important;
}
.dwv-help--lic:hover, .dwv-help--lic:focus-visible {
  background: var(--gold) !important;
  color: var(--ink-on-gold) !important;
  border-color: var(--gold) !important;
}
.dwv-help--lic:hover::after,
.dwv-help--lic:focus-visible::after {
  /* Tooltip nach LINKS verschoben (Help-i steht in fuss-cell--right,
     also rechts in der Karte — Tooltip wuerde sonst rechts ueberlaufen) */
  left: auto !important;
  right: -10px !important;
  transform: translateX(0) translateY(0) !important;
  width: 240px !important;
}
@keyframes dwv-tip-in-rechts {
  from { opacity: 0; transform: translateX(0) translateY(4px); }
  to   { opacity: 1; transform: translateX(0) translateY(0); }
}
.dwv-help--lic:hover::after,
.dwv-help--lic:focus-visible::after {
  animation: dwv-tip-in-rechts 180ms ease-out !important;
}

/* Status-Varianten */
.dwv-lic-aktiv {
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 225, 45, 0.18), transparent 55%),
    linear-gradient(150deg, #21211A 0%, #0E0E0A 100%);
  border-color: rgba(255, 225, 45, 0.30);
  box-shadow: var(--sh-md), inset 0 0 0 1px rgba(255, 225, 45, 0.06);
}
.dwv-lic-inaktiv {
  background:
    radial-gradient(circle at 92% 8%, rgba(245, 158, 11, 0.12), transparent 55%),
    linear-gradient(150deg, #2A251A 0%, #14110A 100%);
}
.dwv-lic-gesperrt {
  background:
    radial-gradient(circle at 92% 8%, rgba(239, 68, 68, 0.18), transparent 55%),
    linear-gradient(150deg, #2A1414 0%, #160808 100%);
  border-color: rgba(239, 68, 68, 0.28);
}

/* V1.7.12: Professionellere Karten-Aesthetik.
   V1.7.27: Anzeige-Bug-Fix — vorher zeigte sich auf manchen Bildschirmen
   das Brushed-Metal-Streifenmuster (`repeating-linear-gradient` 135deg)
   als sichtbarer diagonaler Schleier mitten auf der Karte. Die Stripes
   sind jetzt komplett entfernt; uebrig bleibt nur ein dezenter
   Specular-Highlight oben rechts, kein wanderndes/atmendes Element mehr.
   Wirkt wie eine hochwertige Bank-/Kredit-Karte und ist auf jedem
   Display-Gamma-Profil sauber. */
.dwv-lic::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Nur EIN sehr dezenter Specular-Highlight oben rechts — keine Stripes,
     keine Animation, keine sichtbaren Banding-Linien. */
  background:
    radial-gradient(
      ellipse 50% 35% at 90% 8%,
      rgba(255, 255, 255, 0.035) 0%,
      transparent 65%
    );
  border-radius: inherit;
  z-index: 1;
}

/* Edge-Glow am unteren Kartenrand — STATISCH (V1.7.27: Animation entfernt,
   weil sie als pulsierender Bug wahrgenommen wurde). */
.dwv-lic::after {
  content: '';
  position: absolute;
  left: 18%; right: 18%;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 225, 45, 0.40) 50%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
}

/* Status-spezifische Edge-Glow-Farben */
.dwv-lic-aktiv::after    { background: linear-gradient(90deg, transparent, rgba(255, 225, 45, 0.50), transparent); }
.dwv-lic-inaktiv::after  { background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.40), transparent); }
.dwv-lic-gesperrt::after { background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.40), transparent); }

/* HEAD: Brand + Status-Chip */
.dwv-lic-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
  position: relative;
  z-index: 2;
}
.dwv-lic-brand {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.4px;
  color: var(--gold);
  text-transform: uppercase;
}
.dwv-lic-brand span { color: rgba(255, 255, 255, 0.65); }

.dwv-lic-chip {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.dwv-lic-chip.aktiv    { background: var(--ok-bg);   color: var(--ok); }
.dwv-lic-chip.inaktiv  { background: var(--warn-bg); color: var(--warn); }
.dwv-lic-chip.gesperrt { background: var(--err-bg);  color: var(--err); }
.dwv-lic-chip.aktiv::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.20);
}

/* MITTE: Code-Label + großer klickbarer Copy-Button */
.dwv-lic-mitte {
  position: relative;
  z-index: 2;
  margin-bottom: 22px;
}
.dwv-lic-mitte-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 8px;
}

.dwv-lic-code-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.30);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-md);
  color: #FFF;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 180ms ease, border-color 180ms ease, transform 120ms ease;
  -webkit-tap-highlight-color: transparent;
}
.dwv-lic-code-btn:hover {
  background: rgba(0, 0, 0, 0.40);
  border-color: rgba(255, 225, 45, 0.40);
}
.dwv-lic-code-btn:active { transform: scale(0.98); }

.dwv-lic-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(15px, 3.6vw, 20px);
  font-weight: 600;
  letter-spacing: 2.2px;
  color: #FFF;
  user-select: all;
  flex: 1;
  min-width: 0;
  word-break: break-all;
}

.dwv-lic-code-ic {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: rgba(255, 225, 45, 0.10);
  border: 1px solid rgba(255, 225, 45, 0.22);
  color: var(--gold);
  transition: background 150ms ease, transform 150ms ease;
}
.dwv-lic-code-btn:hover .dwv-lic-code-ic {
  background: rgba(255, 225, 45, 0.20);
  transform: scale(1.05);
}

/* "Kopiert"-Feedback nach erfolgreichem Copy (JS toggelt .dwv-copied) */
.dwv-lic-code-btn.dwv-copied {
  border-color: var(--ok) !important;
  background: rgba(16, 185, 129, 0.12) !important;
}
.dwv-lic-code-btn.dwv-copied .dwv-lic-code-ic {
  background: var(--ok-bg);
  border-color: rgba(16, 185, 129, 0.40);
  color: var(--ok);
}

/* FUSS: Kunde + Gültig bis */
.dwv-lic-fuss {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}
.dwv-lic-fuss-cell { min-width: 0; }
.dwv-lic-fuss-cell--right { text-align: right; }
.dwv-lic-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 3px;
}
.dwv-lic-val {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

/* AKTIONEN unten — Details + Kopieren als Sek-Buttons */
.dwv-lic-actions {
  display: flex;
  gap: 8px;
  position: relative;
  z-index: 2;
}
.dwv-lic-action-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  font-family: 'Manrope', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
  min-height: 36px;
}
.dwv-lic-action-btn:hover {
  background: rgba(255, 225, 45, 0.10);
  border-color: rgba(255, 225, 45, 0.30);
  color: var(--gold);
}
.dwv-lic-action-btn svg { flex-shrink: 0; }

/* ==========================================================================
   LIZENZ-DETAIL-SHEET — Inhalt im Modal (Code-Highlight + Daten-Liste)
   ========================================================================== */
.dwv-lic-detail-code {
  margin-bottom: 22px;
  padding: 16px 18px;
  background: var(--c-card-hi);
  border: 1px solid var(--line-gold);
  border-radius: var(--r-md);
  position: relative;
}
.dwv-lic-detail-code::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}
.dwv-lic-detail-code-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 10px;
}
.dwv-lic-detail-code-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.dwv-lic-detail-code-val {
  flex: 1;
  min-width: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(15px, 3vw, 18px);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 2px;
  word-break: break-all;
  user-select: all;
  background: transparent;
  padding: 0;
}
.dwv-lic-detail-copy {
  flex-shrink: 0;
  padding: 8px 14px !important;
  font-size: 12px !important;
  min-height: 36px !important;
}
.dwv-lic-detail-copy.dwv-copied {
  background: var(--ok) !important;
  color: #FFF !important;
}

/* Daten-Liste (Status, Firma, HWID, etc.) */
.dwv-lic-detail-grid {
  display: flex;
  flex-direction: column;
  background: var(--c-card-hi);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 18px;
}
.dwv-lic-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.dwv-lic-detail-row:last-child { border-bottom: none; }
.dwv-lic-detail-key {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.6px;
  color: var(--ink-2);
  text-transform: uppercase;
  flex-shrink: 0;
}
.dwv-lic-detail-val {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-1);
  text-align: right;
  word-break: break-word;
}
.dwv-lic-detail-val--mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.4px;
}

/* ==========================================================================
   DOWNLOAD — Hero-Block + History
   ========================================================================== */
.dwv-dl-hero {
  background:
    radial-gradient(circle at 95% 0%, rgba(255, 225, 45, 0.18), transparent 55%),
    linear-gradient(140deg, #21211A 0%, #14140E 100%);
  border: 1px solid var(--line-gold);
  border-radius: var(--r-lg);
  padding: 28px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  position: relative;
  overflow: hidden;
}
.dwv-dl-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 225, 45, 0.6), transparent);
}
.dwv-dl-ver {
  font-family: 'JetBrains Mono', monospace;
  font-size: 38px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: -1.5px;
  line-height: 1;
}
.dwv-dl-txt { flex: 1; min-width: 200px; }
.dwv-dl-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--ink-2);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 6px;
}
.dwv-dl-ver-sub {
  font-size: 13px;
  color: var(--ink-2);
}

.dwv-dl-history {
  background: var(--c-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 14px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.dwv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--c-card);
  color: var(--ink-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 11px 20px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
  min-height: 40px;
}
.dwv-btn:hover {
  background: var(--c-card-hi);
  border-color: var(--line-gold);
  transform: translateY(-1px);
}

.dwv-btn-primaer {
  background: var(--accent);
  color: var(--ink-on-gold);
  border-color: transparent;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  box-shadow:
    0 6px 18px -6px rgba(240, 165, 45, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.dwv-btn-primaer:hover {
  transform: translateY(-2px);
  background: var(--accent);
  border-color: transparent;
  box-shadow:
    0 12px 26px -6px rgba(240, 165, 45, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  color: var(--ink-on-gold);
}

.dwv-btn-sek {
  background: transparent;
  color: var(--ink-1);
  border: 1px solid var(--line-2);
}
.dwv-btn-sek:hover {
  background: var(--c-card);
  border-color: var(--line-gold);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.dwv-faq {
  background: var(--c-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.dwv-faq details { border-bottom: 1px solid var(--line); }
.dwv-faq details:last-child { border: none; }
.dwv-faq summary {
  padding: 16px 22px;
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  cursor: pointer;
  color: var(--ink-1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  min-height: 52px;
  transition: background 150ms ease;
}
.dwv-faq summary:hover { background: var(--c-card-hi); }
.dwv-faq summary::after {
  content: '+';
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  color: var(--ink-2);
  transition: transform 250ms ease, color 200ms ease;
}
.dwv-faq details[open] summary::after {
  transform: rotate(45deg);
  color: var(--gold);
}
.dwv-faq details[open] summary { color: var(--gold); }
.dwv-faq .faq-body {
  padding: 0 22px 18px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.65;
}

/* ==========================================================================
   TICKETS / SUPPORT
   ========================================================================== */
.dwv-ticket-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.dwv-ticket {
  background: var(--c-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}
.dwv-ticket:hover {
  border-color: var(--line-gold);
  background: var(--c-card-hi);
}
.dwv-ticket.ungelesen { border-left: 3px solid var(--gold); }
.dwv-ticket-kopf {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  gap: 10px;
}
.dwv-ticket-betreff { font-weight: 600; color: var(--ink-1); font-size: 14px; }
.dwv-ticket-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-2);
}
.dwv-ticket-status {
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.dwv-ticket-status.offen      { background: var(--warn-bg); color: var(--warn); }
.dwv-ticket-status.bearbeitet { background: var(--info-bg); color: var(--info); }
.dwv-ticket-status.geschlossen{ background: var(--c-card-hi); color: var(--ink-2); }

.dwv-ticket-thread {
  background: var(--c-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
  margin-top: 14px;
}
.dwv-msg {
  padding: 11px 15px;
  border-radius: var(--r-md);
  margin-bottom: 8px;
  max-width: 85%;
  font-size: 13.5px;
  line-height: 1.55;
}
.dwv-msg.kunde {
  background: var(--c-card-hi);
  color: var(--ink-1);
  margin-right: auto;
  border-top-left-radius: 4px;
}
.dwv-msg.admin {
  background: var(--accent);
  color: var(--ink-on-gold);
  margin-left: auto;
  border-top-right-radius: 4px;
}
.dwv-msg-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  opacity: 0.75;
  margin-bottom: 4px;
}

/* ==========================================================================
   FORMULARE + KARTEN-ALIASE
   ========================================================================== */
.dwv-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dwv-form label { display: block; }
.dwv-form label span.lbl,
.dwv-form .lbl {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 7px;
}
.dwv-form input[type="email"],
.dwv-form input[type="text"],
.dwv-form input[type="number"],
.dwv-form input[type="tel"],
.dwv-form input[type="url"],
.dwv-form input[type="password"],
.dwv-form textarea,
.dwv-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--c-deep);
  color: var(--ink-1);
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  min-height: 42px;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}
.dwv-form input::placeholder, .dwv-form textarea::placeholder {
  color: var(--ink-3);
}
.dwv-form input:focus, .dwv-form textarea:focus, .dwv-form select:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--c-deep);
  box-shadow: 0 0 0 4px rgba(255, 225, 45, 0.10);
}
.dwv-form textarea { resize: vertical; min-height: 96px; line-height: 1.5; }

/* Generische Karten-Aliase */
.dwv-karte, .dwv-panel, .dwv-kpi, .dwv-lizenz-karte {
  background: var(--c-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
  transition: border-color 200ms ease, background 200ms ease;
}
.dwv-karte:hover, .dwv-panel:hover, .dwv-kpi:hover, .dwv-lizenz-karte:hover {
  border-color: var(--line-gold);
}

/* Empty/Info-State */
.dwv-info, .dwv-empty, .dwv-notif-empty {
  background: var(--c-card);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-md);
  padding: 32px 24px;
  text-align: center;
  color: var(--ink-2);
  font-size: 13px;
}

/* ==========================================================================
   ============================================================================
   LOGIN — 1:1 ÜBERNOMMEN (Live nutzt ohnehin inline `.dwvlogin-*` mit
   `all: initial` — Login ist komplett von dieser CSS isoliert)
   ============================================================================
   ========================================================================== */
.dwv-login-wrapper {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: #0B0B0C;
  color: #F0F0EF;
  overflow: hidden;
  position: relative;
}
.dwv-login-visual {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.dwv-login-visual-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://dwv-konstruktion.de/wp-content/uploads/2023/04/wartung-H.gif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(0.85) contrast(1.05) brightness(0.65);
  transform: scale(1.04);
  z-index: 1;
  animation: dwvLoginBgKenBurns 22s ease-in-out infinite alternate;
}
.dwv-login-visual-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg,
      rgba(11, 11, 12, 0.75) 0%,
      rgba(11, 11, 12, 0.55) 45%,
      rgba(240, 165, 45, 0.28) 100%
    ),
    radial-gradient(circle at 80% 10%,
      rgba(255, 225, 45, 0.18) 0%,
      transparent 55%);
  z-index: 2;
  pointer-events: none;
}
.dwv-login-visual-grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.14;
  mix-blend-mode: overlay;
  background-image:
    repeating-linear-gradient(0deg,
      rgba(255, 255, 255, 0.04) 0,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px,
      transparent 3px);
}
@keyframes dwvLoginBgKenBurns {
  0%   { transform: scale(1.04) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1.5%, -1%); }
}
.dwv-login-visual-content {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 52px;
  color: #F5F5F3;
  animation: dwvLoginFadeUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes dwvLoginFadeUp {
  0%   { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}
.dwv-login-visual-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.dwv-login-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #FFF;
}
.dwv-login-brand-mark .bm-logo {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: #141416 url('logo_kompakt.png') center / 28px 28px no-repeat;
  border: 1px solid rgba(255, 225, 45, 0.3);
  box-shadow: 0 4px 14px -4px rgba(255, 225, 45, 0.35),
              inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}
.dwv-login-brand-mark .bm-text { font-size: 15px; color: #F5F5F3; }
.dwv-login-brand-mark .bm-text b { font-weight: 800; color: var(--dwv-gelb); }
.dwv-login-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: rgba(245, 245, 243, 0.9);
  background: rgba(20, 20, 22, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.dwv-login-status .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.22);
  animation: dwvLoginPulse 2s ease-in-out infinite;
}
@keyframes dwvLoginPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.22); }
  50%      { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0.06); }
}
.dwv-login-visual-main { padding: 30px 0; max-width: 560px; }
.dwv-login-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dwv-gelb);
  padding: 6px 12px;
  background: rgba(255, 225, 45, 0.1);
  border: 1px solid rgba(255, 225, 45, 0.28);
  border-radius: 999px;
  margin-bottom: 22px;
}
.dwv-login-claim {
  font-size: clamp(32px, 4.2vw, 54px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.5px;
  margin: 0 0 18px;
  color: #FFF;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
}
.dwv-login-claim span {
  background: linear-gradient(135deg, var(--dwv-gelb) 0%, var(--dwv-orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.dwv-login-sub {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(245, 245, 243, 0.78);
  margin: 0 0 36px;
  max-width: 480px;
}
.dwv-login-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 500px;
}
.dwv-login-features .feat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  background: rgba(20, 20, 22, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.dwv-login-features .feat:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 225, 45, 0.35);
  background: rgba(20, 20, 22, 0.65);
}
.dwv-login-features .feat-ic {
  font-size: 22px; line-height: 1; flex-shrink: 0;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 225, 45, 0.1);
  border-radius: 10px;
}
.dwv-login-features .feat b {
  display: block;
  font-size: 13.5px; font-weight: 700;
  color: #FFF; letter-spacing: -0.1px;
}
.dwv-login-features .feat small {
  display: block;
  font-size: 11.5px;
  color: rgba(245, 245, 243, 0.6);
  margin-top: 2px;
}
.dwv-login-visual-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 11.5px;
  color: rgba(245, 245, 243, 0.55);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.dwv-login-visual-foot .trust { display: inline-flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.dwv-login-visual-foot .trust .sep { color: rgba(255, 225, 45, 0.5); }
.dwv-login-visual-foot .copyright { font-variant-numeric: tabular-nums; }

.dwv-login-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  background: #0B0B0C;
  min-height: 100vh;
  min-height: 100dvh;
}
.dwv-login-card {
  width: 100%;
  max-width: 440px;
  padding: 40px 36px 32px;
  background: linear-gradient(180deg, #1A1A1C 0%, #141416 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 20px 50px -30px rgba(0, 0, 0, 0.9);
  animation: dwvLoginCardIn 0.8s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}
@keyframes dwvLoginCardIn {
  0%   { opacity: 0; transform: translateY(18px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.dwv-login-hero { text-align: center; margin-bottom: 28px; display: block; }
.dwv-login-hero .logo {
  display: block !important;
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  background: #141416 url('logo_kompakt.png') center / 42px 42px no-repeat;
  border-radius: 16px;
  border: 1px solid rgba(255, 225, 45, 0.28);
  box-shadow:
    0 10px 30px -10px rgba(255, 225, 45, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  font-size: 0;
}
.dwv-login-hero .logo span { display: none; }
.dwv-login-card h1 {
  font-size: 22px; font-weight: 800;
  letter-spacing: -0.4px;
  margin: 6px 0 6px;
  color: #FFF;
  line-height: 1.25;
  text-align: center;
}
.dwv-login-card h1 span {
  background: linear-gradient(135deg, var(--dwv-gelb) 0%, var(--dwv-orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 800;
}
.dwv-login-card h1 small {
  display: block; margin-top: 4px;
  font-size: 14px; font-weight: 600;
  letter-spacing: -0.1px;
  color: rgba(245, 245, 243, 0.7);
}
.dwv-login-card > p, .dwv-login-hero p {
  color: rgba(245, 245, 243, 0.55);
  font-size: 13px; margin: 4px 0 0;
  text-align: center;
}
.dwv-login-fehler {
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: #FFBABA;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 18px;
  text-align: center;
}
.dwv-login-form { display: flex; flex-direction: column; gap: 14px; }
.dwv-login-field { display: block; }
.dwv-login-field .lbl {
  display: block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: rgba(245, 245, 243, 0.55);
  margin-bottom: 7px;
}
.dwv-login-field .inp-wrap { position: relative; display: block; }
.dwv-login-field .inp-ic {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: rgba(245, 245, 243, 0.4);
  pointer-events: none;
  transition: color 0.25s ease, transform 0.25s ease;
}
.dwv-login-field input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  font-size: 15px;
  color: #FFF;
  background: rgba(11, 11, 12, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
  box-sizing: border-box;
}
.dwv-login-field input::placeholder { color: rgba(245, 245, 243, 0.3); }
.dwv-login-field input:focus {
  outline: none;
  border-color: var(--dwv-gelb);
  background: rgba(11, 11, 12, 0.75);
  box-shadow: 0 0 0 4px rgba(255, 225, 45, 0.14);
}
.dwv-login-field input:focus + .inp-ic,
.dwv-login-field .inp-wrap:focus-within .inp-ic {
  color: var(--dwv-gelb);
}
.dwv-login-code {
  font-family: ui-monospace, 'SF Mono', Consolas, Menlo, monospace !important;
  letter-spacing: 3px !important;
  text-transform: uppercase;
  font-weight: 600;
}
.dwv-login-submit {
  width: 100%;
  margin-top: 6px;
  padding: 14px 18px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.4px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px !important;
  background: linear-gradient(135deg, var(--dwv-gelb) 0%, var(--dwv-orange) 100%) !important;
  color: #0B0B0C !important;
  border: none !important;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 10px 30px -10px rgba(240, 165, 45, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  text-transform: uppercase;
}
.dwv-login-submit::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
.dwv-login-submit:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 34px -10px rgba(240, 165, 45, 0.7),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}
.dwv-login-submit:hover::before { transform: translateX(100%); }
.dwv-login-submit:active { transform: translateY(0); }
.dwv-login-submit svg { transition: transform 0.25s ease; }
.dwv-login-submit:hover svg { transform: translateX(3px); }
.dwv-login-meta {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
}
.dwv-login-badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.dwv-login-badges .badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.3px;
  color: rgba(245, 245, 243, 0.7);
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}
.dwv-login-badges .bdot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.22);
}
.dwv-login-help { font-size: 12px; color: rgba(245, 245, 243, 0.5); text-align: center; }
.dwv-login-help a { color: var(--dwv-gelb); font-weight: 600; text-decoration: none; transition: color 0.2s ease; }
.dwv-login-help a:hover { color: var(--dwv-orange); text-decoration: underline; }
@media (max-width: 1180px) {
  .dwv-login-wrapper { grid-template-columns: 1fr 1fr; }
  .dwv-login-visual-content { padding: 36px 36px; }
  .dwv-login-features { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .dwv-login-wrapper { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .dwv-login-visual { min-height: auto; height: 42vh; min-height: 340px; max-height: 440px; }
  .dwv-login-visual-content { padding: 24px 28px; }
  .dwv-login-visual-main { padding: 14px 0; }
  .dwv-login-claim { font-size: clamp(28px, 6vw, 40px); }
  .dwv-login-sub { font-size: 14px; margin-bottom: 18px; }
  .dwv-login-features { display: none; }
  .dwv-login-visual-foot { display: none; }
  .dwv-login-panel { min-height: auto; padding: 28px 20px 40px; }
  .dwv-login-card { padding: 32px 24px 24px; border-radius: 20px; }
}
@media (max-width: 480px) {
  .dwv-login-visual { height: 34vh; min-height: 240px; }
  .dwv-login-status { display: none; }
  .dwv-login-kicker { font-size: 10px; padding: 5px 10px; margin-bottom: 14px; }
  .dwv-login-sub { display: none; }
  .dwv-login-card { padding: 28px 20px 20px; }
  .dwv-login-card h1 { font-size: 19px; }
  .dwv-login-card h1 small { font-size: 12px; }
  .dwv-login-field input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .dwv-login-visual-bg, .dwv-login-visual-content, .dwv-login-card, .dwv-login-status .dot {
    animation: none !important;
  }
}

/* ==========================================================================
   NOTIFICATION-DROPDOWN
   ========================================================================== */
.dwv-notif-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 8px;
  background: var(--c-card);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  width: 340px;
  max-width: calc(100vw - 24px);
  max-height: 440px;
  overflow-y: auto;
  z-index: 90;
  padding: 4px;
  display: none;
}
.dwv-notif-dropdown.offen { display: block; }
.dwv-notif-item {
  padding: 11px 13px;
  border-radius: var(--r-sm);
  display: flex;
  gap: 11px;
  font-size: 13px;
  cursor: pointer;
  transition: background 150ms ease;
}
.dwv-notif-item:hover { background: var(--c-card-hi); }
.dwv-notif-item .nic { font-size: 17px; flex-shrink: 0; color: var(--gold); }
.dwv-notif-item .ntxt { color: var(--ink-1); }
.dwv-notif-item .nzeit {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-2);
  margin-top: 2px;
}
.dwv-notif-kopf {
  padding: 11px 13px 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-2);
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

/* ==========================================================================
   BOTTOM-SHEET / MODAL — Mobile = Bottom-Slide / Desktop = Center-Modal
   ========================================================================== */
.dwv-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  -webkit-backdrop-filter: blur(8px) saturate(1.05);
          backdrop-filter: blur(8px) saturate(1.05);
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: dwv-overlay-in 240ms ease-out;
}
@keyframes dwv-overlay-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@media (min-width: 768px) { .dwv-overlay { align-items: center; padding: 24px; } }

.dwv-sheet {
  background: linear-gradient(180deg, var(--c-card) 0%, var(--c-surface) 100%);
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border-radius: 22px 22px 0 0;
  border: 1px solid var(--line);
  border-bottom: none;
  padding: 24px 24px 32px;
  padding-bottom: calc(32px + env(safe-area-inset-bottom));
  animation: dwv-sheet-up 320ms cubic-bezier(0.2, 0.85, 0.2, 1);
  position: relative;
  box-shadow:
    var(--sh-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
@keyframes dwv-sheet-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
@media (min-width: 768px) {
  .dwv-sheet {
    border-radius: 22px;
    border: 1px solid var(--line);
    max-height: 88vh;
    animation: dwv-modal-in 280ms cubic-bezier(0.2, 0.85, 0.2, 1);
  }
  @keyframes dwv-modal-in {
    from { transform: scale(0.96); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
  }
}

.dwv-sheet-grabber {
  width: 40px; height: 4px;
  background: var(--line-3);
  border-radius: 2px;
  margin: -10px auto 16px;
}
@media (min-width: 768px) { .dwv-sheet-grabber { display: none; } }

.dwv-sheet-kopf {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  gap: 14px;
}
.dwv-sheet-kopf-text { min-width: 0; flex: 1; }
.dwv-sheet h2 {
  margin: 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-1);
  letter-spacing: -0.4px;
  line-height: 1.2;
}
.dwv-sheet-eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gold);
  padding: 3px 9px;
  background: rgba(255, 225, 45, 0.08);
  border: 1px solid var(--line-gold);
  border-radius: var(--r-pill);
  margin: 0 0 8px;
}
.dwv-sheet-lead {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
}
.dwv-sheet-close {
  background: var(--c-card-hi);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  width: 34px; height: 34px;
  font-size: 16px;
  cursor: pointer;
  color: var(--ink-2);
  flex-shrink: 0;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.dwv-sheet-close:hover {
  background: rgba(255, 225, 45, 0.12);
  color: var(--gold);
  border-color: var(--line-gold);
}
.dwv-sheet-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.dwv-sheet-field { display: block; }
.dwv-sheet-field .lbl {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.dwv-sheet-field input,
.dwv-sheet-field textarea,
.dwv-sheet-field select {
  width: 100%;
  padding: 12px 14px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: var(--ink-1);
  background: var(--c-deep);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.dwv-sheet-field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.dwv-sheet-field input::placeholder, .dwv-sheet-field textarea::placeholder {
  color: var(--ink-3);
}
.dwv-sheet-field input:focus,
.dwv-sheet-field textarea:focus,
.dwv-sheet-field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(255, 225, 45, 0.10);
}
.dwv-sheet-hint {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.45;
}
.dwv-sheet-aktionen {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.dwv-sheet-aktionen .dwv-btn { flex: 1; }
.dwv-sheet-submit { position: relative; overflow: hidden; }
.dwv-sheet-submit svg { transition: transform 250ms ease; }
.dwv-sheet-submit:hover svg { transform: translateX(2px); }
@media (max-width: 420px) {
  .dwv-sheet-aktionen { flex-direction: column-reverse; }
}

/* --------------------------------------------------------------------------
   SHEET-INHALT: Installationsanleitung (HTML aus Plugin-Editor / Default)
   Generische Wrapper-Styles — der eigentliche "Cockpit"-Look kommt unten
   über die semantischen .dwv-anl-* Klassen.
   -------------------------------------------------------------------------- */
.dwv-sheet-anleitung {
  color: var(--ink-1);
  font-size: 14px;
  line-height: 1.65;
}
.dwv-sheet-anleitung > *:first-child { margin-top: 0; }
.dwv-sheet-anleitung > *:last-child  { margin-bottom: 0; }
.dwv-sheet-anleitung a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 225, 45, 0.32);
  transition: border-color 150ms ease;
}
.dwv-sheet-anleitung a:hover { border-bottom-color: var(--gold); }

/* --------------------------------------------------------------------------
   COCKPIT-INSTALLATIONSANLEITUNG — semantisches Layout
   Greift sowohl im Sheet als auch wenn das Markup separat gerendert wird.
   -------------------------------------------------------------------------- */

/* Container */
.dwv-anl {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-1);
}

/* Intro-Block (Lead-Text vor der Timeline) */
.dwv-anl-intro {
  padding: 0 0 24px;
  margin: 0 0 8px;
  border-bottom: 1px solid var(--line);
}
.dwv-anl-intro p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
}
.dwv-anl-intro strong { color: var(--ink-1); font-weight: 600; }
.dwv-anl-intro a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 225, 45, 0.32);
  transition: border-color 150ms ease;
}
.dwv-anl-intro a:hover { border-bottom-color: var(--gold); }

/* TIMELINE — vertikale Connector-Linie zwischen den Step-Bubbles */
.dwv-anl-timeline {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  position: relative;
  counter-reset: dwv-anl-step;
}
/* Connector-Line: 1px dashed gold/grey, läuft durch die Bubble-Mitte (20px) */
.dwv-anl-timeline::before {
  content: '';
  position: absolute;
  top: 36px;
  bottom: 36px;
  left: 19px;
  width: 1px;
  background: linear-gradient(180deg,
    rgba(255, 225, 45, 0.35) 0%,
    var(--line-2) 50%,
    rgba(255, 225, 45, 0.35) 100%);
  pointer-events: none;
}

/* Einzelner Step */
.dwv-anl-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  counter-increment: dwv-anl-step;
}
.dwv-anl-step:first-child { padding-top: 24px; }
.dwv-anl-step:last-child  { padding-bottom: 8px; }

/* Number-Bubble — Gold mit Glow, JetBrains-Mono-Nummer */
.dwv-anl-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink-on-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0;
  box-shadow:
    0 0 0 4px var(--c-card),
    0 6px 18px -4px rgba(240, 165, 45, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  position: relative;
  z-index: 2;
}

/* Content rechts neben der Bubble */
.dwv-anl-content {
  flex: 1;
  min-width: 0;
  padding-top: 6px;
}
.dwv-anl-titel {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--ink-1);
  margin: 0 0 10px;
  line-height: 1.25;
}
.dwv-anl-body {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.dwv-anl-body p {
  margin: 0 0 10px;
}
.dwv-anl-body p:last-child { margin: 0; }
.dwv-anl-body strong { color: var(--ink-1); font-weight: 600; }
.dwv-anl-body em { color: var(--ink-2); font-style: italic; opacity: 0.92; }
.dwv-anl-body a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 225, 45, 0.32);
}
.dwv-anl-body a:hover { border-bottom-color: var(--gold); }

/* Inline-Code — Pfade, Dateinamen, Tasten */
.dwv-anl-code {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  padding: 2px 8px;
  background: rgba(255, 225, 45, 0.08);
  border: 1px solid rgba(255, 225, 45, 0.18);
  border-radius: 6px;
  color: var(--gold);
  letter-spacing: -0.1px;
  vertical-align: baseline;
  word-break: break-all;
}

/* HINWEISBOXEN (Note) — drei Varianten + Block-Variante */
.dwv-anl-note {
  margin: 14px 0 0;
  padding: 12px 14px 13px;
  background: var(--c-card-hi);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink-3);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.dwv-anl-note p { margin: 0; }
.dwv-anl-note p + p { margin-top: 8px; }
.dwv-anl-note strong { color: var(--ink-1); font-weight: 600; }
.dwv-anl-note em { color: var(--ink-2); font-style: italic; }

.dwv-anl-note-eyebrow {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--ink-3);
}

/* WARN-Variante (Orange) */
.dwv-anl-note--warn {
  border-left-color: var(--orange);
  background: rgba(240, 165, 45, 0.06);
}
.dwv-anl-note--warn .dwv-anl-note-eyebrow { color: var(--orange); }

/* INFO-Variante (Blau) */
.dwv-anl-note--info {
  border-left-color: var(--info);
  background: rgba(96, 165, 250, 0.06);
}
.dwv-anl-note--info .dwv-anl-note-eyebrow { color: var(--info); }

/* GOLD-Variante (Tipp / Hervorhebung) */
.dwv-anl-note--gold {
  border-left-color: var(--gold);
  background: rgba(255, 225, 45, 0.06);
}
.dwv-anl-note--gold .dwv-anl-note-eyebrow { color: var(--gold); }

/* BLOCK-Variante — eigenständige Box am Ende der Anleitung
   (gleichmäßige border auf allen 4 Seiten + größeres margin-top) */
.dwv-anl-note--block {
  margin: 18px 0 0;
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  border-left-width: 3px;
  background: var(--c-card);
}
.dwv-anl-note--block.dwv-anl-note--gold {
  border-color: var(--line-gold);
  border-left-color: var(--gold);
  background: rgba(255, 225, 45, 0.05);
}
.dwv-anl-note--block.dwv-anl-note--info {
  border-color: rgba(96, 165, 250, 0.22);
  border-left-color: var(--info);
  background: rgba(96, 165, 250, 0.05);
}
.dwv-anl-note--block.dwv-anl-note--warn {
  border-color: rgba(240, 165, 45, 0.22);
  border-left-color: var(--orange);
  background: rgba(240, 165, 45, 0.05);
}

/* Mobile-Anpassung — schmalere Bubbles, etwas weniger Gap */
@media (max-width: 480px) {
  .dwv-anl-num {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }
  .dwv-anl-step {
    gap: 14px;
    padding: 14px 0;
  }
  .dwv-anl-timeline::before {
    top: 32px;
    bottom: 32px;
    left: 16px;
  }
  .dwv-anl-titel { font-size: 15px; }
  .dwv-anl-body { font-size: 13px; }
}

/* Reduce-Motion: Connector-Line ohne Gradient-Pulsing falls je hinzugefügt */
@media (prefers-reduced-motion: reduce) {
  .dwv-anl-timeline::before { animation: none !important; }
}

/* Generische Sheet-Form (Altcode-Kompat) */
.dwv-sheet .dwv-form label { display: block; margin: 0 0 14px; }
.dwv-sheet .dwv-form .lbl {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.dwv-sheet .dwv-form input[type="text"],
.dwv-sheet .dwv-form input[type="email"],
.dwv-sheet .dwv-form input[type="password"],
.dwv-sheet .dwv-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ink-1);
  background: var(--c-deep);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  font-family: 'Manrope', sans-serif;
}
.dwv-sheet .dwv-form input:focus,
.dwv-sheet .dwv-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(255, 225, 45, 0.10);
}

/* ==========================================================================
   CHAT-FAB — V1.7.8 deaktiviert (Support-Button ist jetzt in der Topbar).
   Defensiv per display:none ausgeblendet falls anderes Markup ihn noch
   rendert (z.B. ältere Cache-Versionen).
   ========================================================================== */
.dwv-chat-fab { display: none !important; }

/* ==========================================================================
   PILL-GROUP — Modell-Auswahl (Drucker-FAQ) und ähnliche Toggle-Reihen
   ========================================================================== */
.dwv-pill-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  background: var(--c-card);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}
.dwv-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  font-family: 'Manrope', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
  min-height: 32px;
}
.dwv-pill:hover {
  color: var(--ink-1);
  background: var(--c-card-hi);
}
.dwv-pill--aktiv {
  background: var(--accent);
  color: var(--ink-on-gold);
  font-weight: 700;
  box-shadow:
    0 4px 14px -4px rgba(240, 165, 45, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.dwv-pill--aktiv:hover {
  background: var(--accent);
  color: var(--ink-on-gold);
}

/* ==========================================================================
   TOASTS
   ========================================================================== */
.dwv-toast-wrap {
  position: fixed;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  pointer-events: none;
  padding: 0 16px;
}
@media (min-width: 768px) {
  .dwv-toast-wrap { bottom: 32px; right: 32px; left: auto; transform: none; }
}
.dwv-toast {
  background: var(--c-card);
  border: 1px solid var(--line-2);
  color: var(--ink-1);
  padding: 12px 18px;
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  min-width: 240px;
  font-size: 13px;
  animation: dwv-toast-in 280ms ease-out, dwv-toast-out 280ms ease-out 3.5s forwards;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.dwv-toast.success { border-color: var(--ok); }
.dwv-toast.error   { border-color: var(--err); }
@keyframes dwv-toast-in {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes dwv-toast-out {
  to { opacity: 0; transform: translateY(20px); }
}

/* ==========================================================================
   INFO-BUTTONS / TOOLTIPS — V1.7.12 professioneller (SVG-i-Icon via mask)
   --------------------------------------------------------------------------
   Vorher: Text "i" oder "?" im Element, hat zentrierungs-mässig immer
   leicht schief gewirkt. Jetzt: ein gestochenes SVG-i-Icon via mask-image
   das die currentColor übernimmt — Fokus/Hover-Übergänge sauber.
   ========================================================================== */
.dwv-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(240, 165, 45, 0.14);
  color: var(--orange);
  border: 1px solid rgba(240, 165, 45, 0.45);
  cursor: help;
  margin-left: 6px;
  position: relative;
  vertical-align: middle;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  /* V1.7.21: text-transform explizit auf none erzwingen — sonst wird das
     "i" innerhalb von .dwv-lic-label oder anderen uppercase-Containern
     als "I" gerendert. Plus letter-spacing/font-variant zurueckgesetzt. */
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-variant: normal !important;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 150ms ease;
  box-sizing: border-box;
}
.dwv-help::before {
  content: 'i';
  display: inline-block;
  /* Optische Korrektur: kursives i hat leichten Linksversatz */
  margin-left: 1px;
  margin-top: -1px;
  text-transform: none !important;  /* Sicherheits-Lock */
}
.dwv-help:hover, .dwv-help:focus-visible {
  /* V1.7.15: Hover satter Orange-Akzent statt Gold */
  background: var(--orange);
  color: var(--ink-on-gold);
  border-color: var(--orange);
  outline: none;
  transform: scale(1.10);
  box-shadow: 0 0 0 4px rgba(240, 165, 45, 0.18);
}
.dwv-help:hover::after, .dwv-help:focus-visible::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-card);
  color: var(--ink-1);
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
  width: 260px;
  line-height: 1.55;
  z-index: 50;
  box-shadow: var(--sh-lg);
  pointer-events: none;
  animation: dwv-tip-in 180ms ease-out;
}
.dwv-help:hover::before, .dwv-help:focus-visible::before {
  /* keine zusätzliche Ueberlagerung — Triangle weglassen, cleaner */
}
@keyframes dwv-tip-in {
  from { opacity: 0; transform: translateX(-50%) translateY(4px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Identische Behandlung für .dwv-ui-info (aus ui_hilfe_css() in PHP) */
.dwv-ui-info {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 18px !important; height: 18px !important;
  border-radius: 50% !important;
  background: rgba(240, 165, 45, 0.14) !important;
  color: var(--orange) !important;
  border: 1px solid rgba(240, 165, 45, 0.45) !important;
  cursor: help !important;
  /* V1.7.17: i als kursives Serif-Char (kein mask-image mehr — robust) */
  font-family: 'Georgia', 'Times New Roman', serif !important;
  font-style: italic !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  line-height: 1 !important;
  /* V1.7.21: text-transform/letter-spacing/font-variant erzwingen damit
     "i" auch innerhalb von uppercase-Containern als kleines i bleibt */
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-variant: normal !important;
  margin-left: 6px;
  position: relative;
  vertical-align: middle;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 150ms ease;
  box-sizing: border-box;
}
.dwv-ui-info::before {
  content: 'i';
  display: inline-block;
  margin-left: 1px;
  margin-top: -1px;
  text-transform: none !important;  /* Sicherheits-Lock */
}
.dwv-ui-info:hover, .dwv-ui-info:focus-visible {
  /* V1.7.15: Hover satter Orange-Akzent statt Gold */
  background: var(--orange) !important;
  color: var(--ink-on-gold) !important;
  border-color: var(--orange) !important;
  outline: none;
  transform: scale(1.10);
  box-shadow: 0 0 0 4px rgba(240, 165, 45, 0.18);
}

/* ==========================================================================
   PULL-TO-REFRESH
   ========================================================================== */
.dwv-ptr {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms;
}
.dwv-ptr.active { opacity: 1; }
.dwv-ptr .spin {
  animation: dwv-spin 1s linear infinite;
  display: inline-block;
  margin-right: 6px;
}
@keyframes dwv-spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   UTILITIES + SCROLLBARS + REDUCED-MOTION
   ========================================================================== */
.dwv-hidden { display: none !important; }

/* Schmale dezente Scrollbars */
.dwv-app ::-webkit-scrollbar { width: 8px; height: 8px; }
.dwv-app ::-webkit-scrollbar-track { background: transparent; }
.dwv-app ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}
.dwv-app ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.16); }

/* Selection */
.dwv-app ::selection {
  background: rgba(255, 225, 45, 0.32);
  color: #FFF;
}

@media (prefers-reduced-motion: reduce) {
  .dwv-app *, .dwv-app *::before, .dwv-app *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .dwv-main > * { animation: none !important; }
  .dwv-lic-front::before { animation: none !important; }
}
/* ==========================================================================
   V1.7.9 — NEW-VERSION-BADGES + PROFIL-TILES + SHEET-SUBKOMPONENTEN
   ========================================================================== */

/* --- NEW-Badges in der Navigation (Sidebar / Tablet-Tabs / Mobile-Bottom) --- */

.dwv-nav-badge--new {
  background: var(--accent) !important;
  color: var(--ink-on-gold) !important;
  font-weight: 700 !important;
  letter-spacing: 0.6px;
  padding: 2px 8px;
  font-size: 9.5px;
  text-transform: uppercase;
  box-shadow:
    0 0 0 0 rgba(255, 225, 45, 0.5),
    0 4px 12px -4px rgba(240, 165, 45, 0.5);
  animation: dwv-new-pulse 2.4s ease-in-out infinite;
}
@keyframes dwv-new-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 0 rgba(255, 225, 45, 0.55),
      0 4px 12px -4px rgba(240, 165, 45, 0.5);
  }
  50% {
    box-shadow:
      0 0 0 8px rgba(255, 225, 45, 0),
      0 4px 12px -4px rgba(240, 165, 45, 0.65);
  }
}

/* Tab-Dot (Tablet) */
.dwv-tab-item { position: relative; }
.dwv-tab-dot {
  position: absolute;
  top: 6px; right: 8px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 2px var(--c-surface);
  animation: dwv-new-dot-pulse 2.4s ease-in-out infinite;
}
@keyframes dwv-new-dot-pulse {
  0%, 100% { transform: scale(1);   box-shadow: 0 0 0 2px var(--c-surface), 0 0 0 0 rgba(255, 225, 45, 0.5); }
  50%      { transform: scale(1.1); box-shadow: 0 0 0 2px var(--c-surface), 0 0 0 6px rgba(255, 225, 45, 0); }
}

/* Bottom-Nav-Dot (Mobile) */
.dwv-bottom-item .dwv-bn-ic { position: relative; display: inline-block; }
.dwv-bn-dot {
  position: absolute;
  top: -2px; right: -8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 2px var(--c-surface);
  animation: dwv-new-dot-pulse 2.4s ease-in-out infinite;
}

/* --- NEU-Pill in Hero-Card --- */
.dwv-new-pill {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 9px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--ink-on-gold);
  border-radius: var(--r-pill);
  vertical-align: middle;
  animation: dwv-new-pulse 2.4s ease-in-out infinite;
}
.dwv-dl-hero--neu {
  border-color: rgba(255, 225, 45, 0.55);
  box-shadow:
    0 0 0 1px rgba(255, 225, 45, 0.15),
    0 16px 40px -10px rgba(240, 165, 45, 0.3);
}

/* ==========================================================================
   PROFIL — Header + Action-Tile-Grid
   ========================================================================== */
.dwv-profil-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: var(--c-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.dwv-profil-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink-on-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow:
    0 6px 18px -4px rgba(240, 165, 45, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.dwv-profil-ident {
  flex: 1;
  min-width: 200px;
}
.dwv-profil-email {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-1);
  letter-spacing: -0.2px;
  word-break: break-all;
}
.dwv-profil-firma {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 4px;
  letter-spacing: 0.2px;
}
.dwv-profil-stats {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}
.dwv-profil-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px;
  padding: 4px 8px;
}
.dwv-profil-stat-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-1);
  letter-spacing: -0.5px;
  line-height: 1;
}
.dwv-profil-stat-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 500;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-top: 4px;
}
@media (max-width: 480px) {
  .dwv-profil-header { padding: 18px 18px; gap: 14px; }
  .dwv-profil-avatar { width: 48px; height: 48px; font-size: 19px; }
  .dwv-profil-stats { width: 100%; justify-content: space-around; gap: 8px; }
}

/* Action-Tile-Grid */
.dwv-profil-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 24px;
}
@media (min-width: 600px)  { .dwv-profil-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .dwv-profil-grid { grid-template-columns: 1fr 1fr 1fr; gap: 12px; } }

.dwv-profil-tile-form {
  margin: 0;
  display: contents;
}

.dwv-profil-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  /* V1.7.32: Alle Profil-Tiles bekommen denselben goldenen Akzent wie
     vorher nur das aktive Sound-Tile — radial Glow oben rechts und
     dezenter Goldrand. Macht den Profil-Bereich konsistent "wertig". */
  background:
    radial-gradient(ellipse 200px 140px at 100% 0%,
      rgba(255, 225, 45, 0.06), transparent 65%),
    var(--c-card);
  border: 1px solid rgba(255, 225, 45, 0.20);
  border-radius: var(--r-md);
  color: var(--ink-1);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  min-height: 76px;
  text-align: left;
  /* V1.7.25: Schrift mit !important fixieren, weil WP-Theme/Elementor
     <button>-Elementen sonst eigene Fonts (Roboto, system-ui, etc.) zuweist.
     Auch text-transform/letter-spacing zuruecksetzen, damit Themes nicht
     UPPERCASE oder gespreizte Buchstaben erzwingen. */
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  line-height: 1.4 !important;
  width: 100%;
  box-shadow: 0 1px 0 rgba(255, 225, 45, 0.04) inset;
}
/* Inner spans erben jetzt zwingend, damit kein Theme-Selector
   ".dwv-profil-tile span" o.ae. dazwischenfunkt. */
.dwv-profil-tile .dwv-profil-tile-titel,
.dwv-profil-tile .dwv-profil-tile-txt,
.dwv-profil-tile .dwv-profil-tile-pfeil {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif !important;
  text-transform: none !important;
  letter-spacing: -0.1px !important;
}
.dwv-profil-tile .dwv-profil-tile-hint {
  /* Hint behaelt Mono-Schrift bewusst — aber gegen Theme-Override gesichert. */
  font-family: 'JetBrains Mono', ui-monospace, monospace !important;
  text-transform: none !important;
}
.dwv-profil-tile:hover {
  border-color: rgba(255, 225, 45, 0.45);
  background:
    radial-gradient(ellipse 240px 160px at 100% 0%,
      rgba(255, 225, 45, 0.10), transparent 65%),
    var(--c-card-hi);
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 225, 45, 0.06) inset,
    0 8px 22px -10px rgba(255, 225, 45, 0.18);
}
.dwv-profil-tile-ic {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  background: rgba(255, 225, 45, 0.10);
  border: 1px solid var(--line-gold);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.dwv-profil-tile-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dwv-profil-tile-titel {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-1);
  letter-spacing: -0.1px;
}
.dwv-profil-tile-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: 0.1px;
}
.dwv-profil-tile-pfeil {
  flex-shrink: 0;
  font-size: 16px;
  color: var(--ink-3);
  transition: color 180ms ease, transform 180ms ease;
}
.dwv-profil-tile:hover .dwv-profil-tile-pfeil {
  color: var(--gold);
  transform: translateX(3px);
}
.dwv-profil-tile--logout .dwv-profil-tile-ic {
  background: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.28);
  color: var(--err);
}
.dwv-profil-tile--logout:hover { border-color: rgba(239, 68, 68, 0.35); }
.dwv-profil-tile--logout:hover .dwv-profil-tile-pfeil { color: var(--err); }

/* ==========================================================================
   SHEETS — Subkomponenten (Empty-States, Listen, Karten)
   ========================================================================== */
.dwv-sheet-empty {
  text-align: center;
  padding: 32px 20px;
}
.dwv-sheet-empty-ic {
  font-size: 36px;
  opacity: 0.7;
  margin-bottom: 12px;
}
.dwv-sheet-empty-titel {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-1);
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}
.dwv-sheet-empty-text {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 320px;
  margin: 0 auto;
}
.dwv-sheet-liste {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

/* Adressen-Karten */
.dwv-adr-card {
  background: var(--c-card-hi);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  position: relative;
}
.dwv-adr-card--std { border-left: 3px solid var(--gold); }
.dwv-adr-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.dwv-adr-typ {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 9px;
  background: rgba(255, 225, 45, 0.10);
  border: 1px solid var(--line-gold);
  color: var(--gold);
  border-radius: var(--r-pill);
}
.dwv-adr-std-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 9px;
  background: var(--accent);
  color: var(--ink-on-gold);
  border-radius: var(--r-pill);
}
.dwv-adr-titel {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-1);
  margin-bottom: 6px;
}
.dwv-adr-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.55;
  white-space: pre-line;
}
.dwv-adr-tel {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--ink-2);
  margin-top: 6px;
}
.dwv-adr-actions {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.dwv-adr-actions .dwv-btn {
  padding: 6px 12px;
  font-size: 11.5px;
  min-height: 32px;
  border-radius: var(--r-sm);
}

/* Download-Historie */
.dwv-dl-liste {
  display: flex;
  flex-direction: column;
  background: var(--c-card-hi);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.dwv-dl-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.dwv-dl-row:last-child { border-bottom: none; }
.dwv-dl-row-ver {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  background: rgba(255, 225, 45, 0.10);
  border: 1px solid var(--line-gold);
  color: var(--gold);
  border-radius: var(--r-sm);
  flex-shrink: 0;
}
.dwv-dl-row-meta { flex: 1; min-width: 0; }
.dwv-dl-row-zeit {
  font-size: 12.5px;
  color: var(--ink-1);
}
.dwv-dl-row-os {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--ink-2);
  margin-top: 2px;
  letter-spacing: 0.2px;
}
.dwv-dl-row-quelle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* Sicherheits-Card */
.dwv-sicher-card {
  background: var(--c-card-hi);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
}
.dwv-sicher-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 12px;
}
.dwv-sicher-titel {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-1);
  letter-spacing: -0.2px;
}
.dwv-sicher-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--c-card);
  color: var(--ink-3);
  border: 1px solid var(--line);
}
.dwv-sicher-status--an {
  background: var(--ok-bg);
  color: var(--ok);
  border-color: rgba(16, 185, 129, 0.28);
}
.dwv-sicher-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 16px;
}

/* DSGVO-Cards */
.dwv-dsgvo-card {
  background: var(--c-card-hi);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin-bottom: 14px;
}
.dwv-dsgvo-card:last-child { margin-bottom: 0; }
.dwv-dsgvo-card--info { border-left: 3px solid var(--gold); }
.dwv-dsgvo-card--danger { border-left: 3px solid var(--err); }
.dwv-dsgvo-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.dwv-dsgvo-ic { font-size: 18px; flex-shrink: 0; }
.dwv-dsgvo-titel {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-1);
  letter-spacing: -0.2px;
}
.dwv-dsgvo-titel small {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-3);
  margin-left: 6px;
  letter-spacing: 0.6px;
}
.dwv-dsgvo-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 14px;
}
.dwv-dsgvo-text b { color: var(--ink-1); font-weight: 600; }
.dwv-dsgvo-erfolg {
  margin-bottom: 12px;
  padding: 10px 14px;
  background: var(--ok-bg);
  border-left: 3px solid var(--ok);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--ok);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.5;
}
.dwv-dsgvo-status {
  padding: 12px 14px;
  background: var(--warn-bg);
  border-left: 3px solid var(--warn);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--ink-1);
  font-size: 12.5px;
  line-height: 1.55;
}
.dwv-dsgvo-grund {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 11.5px;
}

/* Danger-Button */
.dwv-btn-danger {
  background: var(--err) !important;
  color: #FFF !important;
  border-color: transparent !important;
  font-weight: 700;
}
.dwv-btn-danger:hover {
  background: #DC2626 !important;
  color: #FFF !important;
}


/* ==========================================================================
   V1.7.11 — PROGRAMM-NAME AUF LIZENZ-KARTE + NEU-INDIKATOR
   ========================================================================== */

/* V1.7.37: Meta-Zeile mit Programm-Tag + Rolle-Pill nebeneinander */
.dwv-lic-meta-zeile {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
.dwv-lic-meta-zeile .dwv-lic-produkt,
.dwv-lic-meta-zeile .dwv-lic-rolle-pill {
  margin: 0;
}

/* Programm-Name als kleines Label unter dem Brand */
.dwv-lic-produkt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px 4px 8px;
  margin-bottom: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.6px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(0, 0, 0, 0.30);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-pill);
  position: relative;
  z-index: 2;
  align-self: flex-start;
}
.dwv-lic-produkt-ic {
  font-size: 10px;
  color: var(--gold);
  line-height: 1;
}
.dwv-lic-produkt-name {
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* NEU-Indikator an einer einzelnen Lizenz-Karte (per JS gesetzt) */
.dwv-lic--neu {
  position: relative;
  border-color: rgba(255, 225, 45, 0.55) !important;
  box-shadow:
    0 0 0 1px rgba(255, 225, 45, 0.22),
    0 12px 32px -8px rgba(240, 165, 45, 0.35) !important;
  animation: dwv-lic-glow 2.4s ease-in-out infinite;
}
.dwv-lic--neu::after {
  content: 'NEU';
  position: absolute;
  top: -8px;
  right: 18px;
  z-index: 5;
  padding: 3px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink-on-gold);
  background: var(--accent);
  border-radius: var(--r-pill);
  box-shadow:
    0 4px 12px -2px rgba(240, 165, 45, 0.5),
    0 0 0 0 rgba(255, 225, 45, 0.5);
  animation: dwv-new-pulse 2.4s ease-in-out infinite;
}
@keyframes dwv-lic-glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(255, 225, 45, 0.22),
      0 12px 32px -8px rgba(240, 165, 45, 0.35);
  }
  50% {
    box-shadow:
      0 0 0 2px rgba(255, 225, 45, 0.32),
      0 16px 38px -8px rgba(240, 165, 45, 0.5);
  }
}


/* ==========================================================================
   V1.7.12 — MODAL-TYPO-KONSISTENZ
   --------------------------------------------------------------------------
   Setzt fuer alle Sheets (Modals) konsistente Typo-Defaults — gleicher
   Stil wie in der Installationsanleitung. Wirkt fuer freie HTML-Inhalte
   in Sheets (z.B. wenn ein Admin im TinyMCE Text einfuegt) UND fuer
   eingebettete Notes/Cards/Forms.
   --------------------------------------------------------------------------
   Wirkung beschraenkt auf direkten Sheet-Inhalt — die spezifischen Klassen
   wie .dwv-anl-*, .dwv-lic-detail-* etc. behalten ihre eigenen Styles.
   ========================================================================== */
.dwv-sheet {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-1);
}

/* Headlines im Sheet — Bricolage Grotesque, gleicher Stil wie Anleitung */
.dwv-sheet h1,
.dwv-sheet h2,
.dwv-sheet h3,
.dwv-sheet h4 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--ink-1);
  line-height: 1.25;
}
.dwv-sheet h1 { font-size: 22px; margin: 24px 0 12px; }
.dwv-sheet h2 { font-size: 20px; margin: 0; }   /* Sheet-Titel — Margin via .dwv-sheet-kopf */
.dwv-sheet h3 { font-size: 16px; margin: 22px 0 10px; }
.dwv-sheet h4 { font-size: 14px; margin: 18px 0 8px; }

/* Paragraphen */
.dwv-sheet p {
  margin: 0 0 14px;
  color: var(--ink-2);
  line-height: 1.65;
}
.dwv-sheet p:last-child { margin-bottom: 0; }
.dwv-sheet strong { color: var(--ink-1); font-weight: 600; }
.dwv-sheet em { color: var(--ink-2); font-style: italic; opacity: 0.92; }

/* Listen (ungeordnet) — Gold-Bullet-Punkte wie in der Anleitung */
.dwv-sheet ul:not(.dwv-anl-timeline):not([class*="dwv-"]) {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dwv-sheet ul:not(.dwv-anl-timeline):not([class*="dwv-"]) li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.6;
}
.dwv-sheet ul:not(.dwv-anl-timeline):not([class*="dwv-"]) li::before {
  content: '';
  position: absolute;
  left: 6px; top: 11px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* Listen (geordnet) — sofern kein eigener Stil aktiv */
.dwv-sheet ol:not(.dwv-anl-timeline):not([class*="dwv-"]) {
  padding-left: 22px;
  margin: 0 0 16px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.6;
}
.dwv-sheet ol:not(.dwv-anl-timeline):not([class*="dwv-"]) li {
  margin-bottom: 6px;
}

/* Inline-Code im Sheet — Gold-Pill identisch zur Anleitung */
.dwv-sheet code:not(.dwv-anl-code):not([class*="dwv-"]),
.dwv-sheet kbd {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  padding: 2px 8px;
  background: rgba(255, 225, 45, 0.08);
  border: 1px solid rgba(255, 225, 45, 0.18);
  border-radius: 6px;
  color: var(--gold);
  letter-spacing: -0.1px;
  vertical-align: baseline;
  word-break: break-all;
}

/* Code-Bloecke (pre) im Sheet */
.dwv-sheet pre {
  background: var(--c-deep);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  margin: 0 0 16px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-1);
}
.dwv-sheet pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
}

/* Links */
.dwv-sheet a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 225, 45, 0.32);
  transition: border-color 150ms ease;
}
.dwv-sheet a:hover { border-bottom-color: var(--gold); }

/* Trenner / Blockquote */
.dwv-sheet hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}
.dwv-sheet blockquote {
  margin: 0 0 16px;
  padding: 12px 16px;
  background: rgba(255, 225, 45, 0.06);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--ink-1);
  font-size: 13px;
  line-height: 1.55;
}

/* Tabellen */
.dwv-sheet table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 13px;
}
.dwv-sheet table th,
.dwv-sheet table td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.dwv-sheet table th {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-2);
}
.dwv-sheet table td { color: var(--ink-1); }


/* ==========================================================================
   V1.7.14 — LOGOUT-ICON IM HEADER + CONFIRM-SHEET
   ========================================================================== */

/* Logout-Icon-Button im Header — rot-Akzent beim Hover (signalisiert Exit) */
.dwv-icon-btn--logout:hover {
  background: rgba(239, 68, 68, 0.10);
  color: var(--err);
  border-color: rgba(239, 68, 68, 0.32);
}

/* Confirm-Sheets (kompakter, zentrisches Layout) */
.dwv-sheet--confirm {
  max-width: 460px;
}

/* Visuelles Hinweis-Icon im Sheet — grosser Kreis, gold/rot je Variante */
.dwv-confirm-icon {
  width: 76px;
  height: 76px;
  margin: 4px auto 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  position: relative;
}
.dwv-confirm-icon::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--line);
  pointer-events: none;
}

/* Logout-Variante: roter Glow + Stroke-Color */
.dwv-confirm-icon--logout {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.30);
  color: var(--err);
  box-shadow:
    0 8px 28px -10px rgba(239, 68, 68, 0.45);
}
.dwv-confirm-icon--logout::after {
  border-color: rgba(239, 68, 68, 0.18);
  animation: dwv-confirm-pulse 2.6s ease-in-out infinite;
}
@keyframes dwv-confirm-pulse {
  0%, 100% { transform: scale(1);    opacity: 0.7; }
  50%      { transform: scale(1.06); opacity: 0.3; }
}

/* Confirm-Form: Aktionen werden im Sheet zentriert dargestellt */
.dwv-confirm-form {
  margin: 0;
}
.dwv-confirm-form .dwv-sheet-aktionen {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}
.dwv-confirm-form .dwv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


/* ==========================================================================
   V1.7.17 — BEGRUESSUNG (Hero) + LAST-LOGIN-SUB
   --------------------------------------------------------------------------
   Layout: "Guten Morgen, Praxis Müller" als ein zusammenhängender Satz.
     - .dwv-gruss-zeit:  Tageszeit, in normalem ink-1
     - .dwv-gruss-komma: dezenter Komma-Trenner
     - .dwv-gruss-anrede: Firma/Name, mit Gold-Gradient als Akzent
   ========================================================================== */
.dwv-gruss-zeit {
  color: var(--ink-1);
}
.dwv-gruss-komma {
  color: var(--ink-2);
  margin-right: 4px;
}
.dwv-gruss-anrede {
  background: var(--accent);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* Sub-Zeile: "● Letzte Anmeldung 26.04.2024, 09:14 via Chrome / Windows" */
.dwv-gruss-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.2px;
  margin-bottom: 32px;
  margin-top: 10px;
}
.dwv-gruss-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
}
.dwv-gruss-login-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.20);
  flex-shrink: 0;
}
.dwv-gruss-zeitwert {
  color: var(--ink-1);
  font-weight: 500;
}
.dwv-gruss-meta {
  display: inline-block;
  color: var(--ink-3);
  margin-left: 4px;
  letter-spacing: 0.3px;
}
.dwv-gruss-erstmal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
}
@media (max-width: 600px) {
  .dwv-gruss-meta { display: none; }
  .dwv-gruss-sub { gap: 5px; font-size: 11px; }
}

/* ==========================================================================
   V1.7.16 — CHANGELOG-BUTTON + SHEET
   ========================================================================== */
.dwv-quick--changelog .dwv-quick-ic {
  background: rgba(255, 225, 45, 0.14);
  color: var(--gold);
}
.dwv-changelog-pill {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink-on-gold);
  background: var(--accent);
  border-radius: var(--r-pill);
  vertical-align: middle;
  animation: dwv-new-pulse 2.4s ease-in-out infinite;
}
.dwv-quick--changelog-gesehen .dwv-quick-ic {
  opacity: 0.7;
}

.dwv-changelog-block {
  background: var(--c-card-hi);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-md);
  padding: 18px 20px;
}
.dwv-changelog-text {
  font-family: 'Manrope', sans-serif;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-1);
  margin: 0;
  white-space: pre-wrap;
  background: transparent;
  border: none;
  padding: 0;
}

/* ==========================================================================
   V1.7.16 — AKTIVITAETS-TIMELINE (Profil-Sheet)
   ========================================================================== */
.dwv-akt-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  counter-reset: dwv-akt;
}
.dwv-akt-timeline::before {
  content: '';
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 16px;
  width: 1px;
  background: linear-gradient(180deg,
    rgba(255, 225, 45, 0.20) 0%,
    var(--line) 50%,
    rgba(255, 225, 45, 0.20) 100%);
  pointer-events: none;
}
.dwv-akt-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
}
.dwv-akt-ic {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-card-hi);
  border: 1px solid var(--line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  position: relative;
  z-index: 2;
}
.dwv-akt-body {
  flex: 1;
  min-width: 0;
  padding-top: 5px;
}
.dwv-akt-titel {
  font-family: 'Manrope', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-1);
  letter-spacing: -0.1px;
}
.dwv-akt-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-2);
  margin-top: 3px;
  letter-spacing: 0.2px;
}
.dwv-akt-zeit {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--ink-3);
  margin-top: 4px;
  letter-spacing: 0.4px;
}

/* ==========================================================================
   V1.7.16 — SPOTLIGHT-SUCHE im Header
   ========================================================================== */
.dwv-top-search {
  position: relative;
  display: none;  /* mobile default hidden, JS klappt auf */
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 12px;
  height: 36px;
  background: var(--c-card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  width: 220px;
  flex-shrink: 0;
  transition: border-color 150ms ease, background 150ms ease, width 200ms ease;
}
.dwv-top-search:focus-within {
  border-color: var(--line-gold);
  background: var(--c-card-hi);
  width: 280px;
}
.dwv-top-search-ic {
  color: var(--ink-3);
  flex-shrink: 0;
}
.dwv-top-search:focus-within .dwv-top-search-ic { color: var(--gold); }
.dwv-top-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--ink-1);
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  padding: 0;
  min-width: 0;
}
.dwv-top-search-input::placeholder {
  color: var(--ink-3);
}
/* V1.7.17: Kbd-Hint cleaner — kein ⌘ Glyph (renderte nicht in allen Browsern),
   stattdessen "Ctrl K" als feiner Mono-Tag rechts. Wird ausgeblendet wenn
   das Input fokussiert ist (sieht aufgeräumter aus). */
.dwv-top-search-kbd {
  display: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 500;
  color: var(--ink-3);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  flex-shrink: 0;
  transition: opacity 150ms ease;
}
.dwv-top-search:focus-within .dwv-top-search-kbd { opacity: 0; pointer-events: none; }

/* Tablet+ : Suche immer sichtbar inline */
@media (min-width: 768px) {
  .dwv-top-search { display: inline-flex; }
  .dwv-top-search-kbd { display: inline-block; }
}
@media (min-width: 1024px) {
  .dwv-top-search { width: 240px; }
  .dwv-top-search:focus-within { width: 320px; }
}

/* Mobile-Search-Toggle-Button */
.dwv-icon-btn--search-mobile { display: inline-flex; }
@media (min-width: 768px) {
  .dwv-icon-btn--search-mobile { display: none !important; }
}
/* Wenn auf Mobile aufgeklappt: Suche absolut über die gesamte Topbar */
.dwv-top-search--mobile-open {
  display: inline-flex !important;
  position: absolute;
  left: 12px;
  right: 12px;
  width: auto;
  z-index: 90;
  background: var(--c-surface);
  height: 40px;
  box-shadow: var(--sh-md);
}

/* Dropdown unter der Suche */
.dwv-top-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--c-card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  max-height: 380px;
  overflow-y: auto;
  z-index: 95;
  padding: 6px;
}
.dwv-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  width: 100%;
  background: transparent;
  border: none;
  border-radius: var(--r-sm);
  color: var(--ink-1);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 13px;
  transition: background 120ms ease;
}
.dwv-search-item:hover { background: var(--c-card-hi); }
.dwv-search-ic {
  flex-shrink: 0;
  font-size: 16px;
  width: 24px;
  text-align: center;
}
.dwv-search-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dwv-search-titel {
  font-weight: 500;
  color: var(--ink-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dwv-search-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-2);
}
.dwv-search-typ {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-3);
  flex-shrink: 0;
}
.dwv-search-empty {
  padding: 16px 14px;
  color: var(--ink-3);
  font-size: 13px;
  text-align: center;
}

/* Search-Flash: kurzer Goldglow auf dem Treffer-Element */
.dwv-search-flash {
  animation: dwv-search-flash 1.4s ease-out;
}
@keyframes dwv-search-flash {
  0%   { box-shadow: 0 0 0 0 rgba(255, 225, 45, 0.6); }
  30%  { box-shadow: 0 0 0 4px rgba(255, 225, 45, 0.4); }
  100% { box-shadow: 0 0 0 0 rgba(255, 225, 45, 0); }
}

/* ==========================================================================
   V1.7.16 — PRINT-LIZENZ-VORSCHAU (im Modal sichtbar) + PRINT-CSS
   ========================================================================== */
.dwv-print-vorschau {
  background: #FFFFFF;
  color: #1A1A1A !important;
  border-radius: var(--r-md);
  padding: 28px 32px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  font-family: 'Manrope', sans-serif;
  max-height: 60vh;
  overflow-y: auto;
}
/* V1.7.19: Alle Texte explizit dunkel — sonst greift .dwv-sheet strong/em
   mit var(--ink-1) (weiss im Dark-Theme) und die Inhalte sind unsichtbar. */
.dwv-print-vorschau,
.dwv-print-vorschau * {
  color: #1A1A1A !important;
}
.dwv-print-vorschau strong,
.dwv-print-vorschau b {
  color: #1A1A1A !important;
  font-weight: 700;
}
.dwv-print-doc {
  max-width: 600px;
  margin: 0 auto;
  color: #1A1A1A;
}
.dwv-print-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 16px;
  border-bottom: 2px solid #FFE12D;
  margin-bottom: 22px;
}
.dwv-print-marke-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #1A1A1A;
}
.dwv-print-marke-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #6B6B6B;
  margin-top: 3px;
}
.dwv-print-marke-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.6px;
  color: #6B6B6B;
  text-align: right;
}
.dwv-print-titel {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: #1A1A1A;
  margin-bottom: 18px;
}
.dwv-print-titel-meta {
  font-weight: 400;
  color: #888;
  font-size: 18px;
}
.dwv-print-card {
  background: #FFFBE5;
  border: 1px solid #F0A52D;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 24px;
}
.dwv-print-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(240, 165, 45, 0.2);
}
.dwv-print-card-row:last-child { border-bottom: none; }
.dwv-print-card-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #8C5D14;
}
.dwv-print-card-val {
  font-size: 14px;
  color: #1A1A1A !important;
  font-weight: 600;
  text-align: right;
}
/* V1.7.19: Status-Farben in der Card als visuelle Akzente */
.dwv-print-card-val--aktiv    { color: #047857 !important; }
.dwv-print-card-val--inaktiv  { color: #B45309 !important; }
.dwv-print-card-val--gesperrt { color: #B91C1C !important; }
.dwv-print-card-row--code {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px dashed rgba(240, 165, 45, 0.4);
}
.dwv-print-card-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #1A1A1A;
  word-break: break-all;
}
.dwv-print-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
  margin-bottom: 24px;
}
.dwv-print-cell-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 3px;
}
.dwv-print-cell-val {
  font-size: 13px;
  color: #1A1A1A !important;
  font-weight: 500;
}
/* V1.7.19: Mono-Variante (Rechner-ID) — eigene Box damit lange ID
   sauber wrapped */
.dwv-print-cell-val--mono {
  font-family: 'JetBrains Mono', 'Courier New', monospace !important;
  font-size: 12px !important;
  color: #1A1A1A !important;
  background: #F4F4F2;
  border: 1px solid #E5E5E0;
  border-radius: 4px;
  padding: 6px 8px;
  word-break: break-all;
  letter-spacing: 0.2px;
}
/* Cell die ueber beide Spalten geht (z.B. fuer komplette Rechner-ID) */
.dwv-print-cell--full {
  grid-column: 1 / -1;
}
.dwv-print-foot {
  border-top: 1px solid #DDD;
  padding-top: 16px;
  font-size: 11.5px;
  line-height: 1.55;
  color: #444 !important;
}
/* V1.7.19: Footer-Marke als eigenes Element, nicht mehr als <strong>
   (das wurde vom dunklen Sheet-CSS auf weiss gesetzt -> unsichtbar) */
.dwv-print-foot-marke {
  font-weight: 700;
  font-size: 13px;
  color: #1A1A1A !important;
  margin-bottom: 4px;
}
.dwv-print-foot-zeile {
  margin-bottom: 10px;
  color: #444 !important;
}
.dwv-print-foot-hinweis {
  font-size: 10.5px;
  color: #777 !important;
  font-style: italic;
}

/* ===== PRINT-MODE — wenn Body .dwv-druck-modus, alles ausser Druckbereich weg */
@media print {
  body.dwv-druck-modus * { visibility: hidden !important; }
  body.dwv-druck-modus .dwv-print-aktiv,
  body.dwv-druck-modus .dwv-print-aktiv * { visibility: visible !important; }
  body.dwv-druck-modus .dwv-print-aktiv {
    position: absolute !important;
    left: 0; top: 0;
    width: 100%;
    background: #FFFFFF;
    color: #1A1A1A;
    padding: 30px 40px !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    max-height: none !important;
    overflow: visible !important;
  }
  body.dwv-druck-modus .dwv-overlay,
  body.dwv-druck-modus .dwv-sheet {
    position: static !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    max-height: none !important;
  }
  /* Topbar / Sidebar / Footer komplett aus */
  body.dwv-druck-modus .dwv-top,
  body.dwv-druck-modus .dwv-sidebar,
  body.dwv-druck-modus .dwv-bottom,
  body.dwv-druck-modus .dwv-tabs,
  body.dwv-druck-modus .dwv-sheet-kopf,
  body.dwv-druck-modus .dwv-sheet-aktionen,
  body.dwv-druck-modus .dwv-sheet-grabber {
    display: none !important;
  }
  @page { margin: 1.5cm; }
}


/* ==========================================================================
   V1.7.18 — HERO-CHANGELOG-LINK + LIZENZ-CTA-CARD
   ========================================================================== */

/* Wrapper um den Download-Button damit Changelog-Link darunter andocken kann */
.dwv-dl-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

/* "Was ist neu?"-Link unter dem Download-Button in der Hero-Card */
.dwv-dl-changelog-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.dwv-dl-changelog-link:hover {
  background: rgba(255, 225, 45, 0.15);
  color: var(--gold);
  border-color: var(--line-gold);
}
.dwv-dl-changelog-link svg { color: var(--gold); flex-shrink: 0; }
.dwv-dl-changelog-pill {
  display: inline-block;
  padding: 1px 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink-on-gold);
  background: var(--accent);
  border-radius: var(--r-pill);
  animation: dwv-new-pulse 2.4s ease-in-out infinite;
}

/* ============================================================================
   LIZENZ-CTA-CARD am Ende der Lizenzen-Liste
   ============================================================================ */
.dwv-lic-cta {
  margin-top: 36px;
  padding: 28px 32px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 225, 45, 0.06), transparent 55%),
    var(--c-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}
/* V1.7.37: Variante fuer Teamleader — kompakter, ohne 2-Tile-Grid */
.dwv-lic-cta--team-erweitern {
  background:
    radial-gradient(circle at 0% 100%, rgba(74, 45, 122, 0.18), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(255, 225, 45, 0.06), transparent 55%),
    var(--c-card);
}
.dwv-lic-cta--team-erweitern .dwv-lic-cta-head { margin-bottom: 14px; }
.dwv-lic-cta-team-btn {
  font-size: 14.5px !important;
  padding: 12px 22px !important;
  letter-spacing: 0.2px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}
@media (max-width: 600px) {
  .dwv-lic-cta-team-btn { width: 100%; justify-content: center; }
}
.dwv-lic-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
}
.dwv-lic-cta-head {
  margin-bottom: 22px;
  max-width: 640px;
}
.dwv-lic-cta-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.dwv-lic-cta-titel {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--ink-1);
  margin: 0 0 8px;
  line-height: 1.2;
}
.dwv-lic-cta-lead {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}
.dwv-lic-cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 700px) {
  .dwv-lic-cta-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}

.dwv-lic-cta-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--c-card-hi);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink-1);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
  overflow: hidden;
}
.dwv-lic-cta-tile:hover {
  border-color: var(--line-gold);
  background: var(--c-card-3);
  transform: translateY(-2px);
}
.dwv-lic-cta-tile-ic {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: rgba(255, 225, 45, 0.10);
  border: 1px solid var(--line-gold);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.dwv-lic-cta-tile-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dwv-lic-cta-tile-titel {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--ink-1);
}
.dwv-lic-cta-tile-hint {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.5;
}
.dwv-lic-cta-tile-pfeil {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--ink-3);
  transition: color 180ms ease, transform 180ms ease;
}
.dwv-lic-cta-tile:hover .dwv-lic-cta-tile-pfeil {
  color: var(--gold);
  transform: translateX(3px);
}
.dwv-lic-cta-tile-badge {
  position: absolute;
  top: 10px; right: 12px;
  padding: 2px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink-on-gold);
  background: var(--accent);
  border-radius: var(--r-pill);
}

/* Feature-Variante (Teamlizenz-Tile) — etwas akzentuierter */
.dwv-lic-cta-tile--feature {
  background:
    radial-gradient(circle at 95% 0%, rgba(255, 225, 45, 0.10), transparent 55%),
    var(--c-card-hi);
  border-color: var(--line-gold);
}

@media (max-width: 600px) {
  .dwv-lic-cta { padding: 22px 20px; }
  .dwv-lic-cta-titel { font-size: 19px; }
  .dwv-lic-cta-lead { font-size: 13px; }
  .dwv-lic-cta-tile-badge { position: static; align-self: flex-start; margin-bottom: 6px; }
  .dwv-lic-cta-tile--feature {
    flex-wrap: wrap;
  }
}


/* ==========================================================================
   V1.7.20 — LIZENZ-ANFRAGE-SHEET (eigene Radio-Karten + Seat-Pills)
   ========================================================================== */

/* Radio-Karten fuer Lizenz-Art (Einzel vs Team) */
.dwv-licanf-typen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}
.dwv-licanf-typ {
  cursor: pointer;
  margin: 0;
  display: block;
}
/* Original-Radio verstecken, eigenes Card-UI nehmen */
.dwv-licanf-typ input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.dwv-licanf-typ-card {
  display: block;
  position: relative;
  padding: 14px 14px 14px 14px;
  background: var(--c-card-hi);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color 150ms ease, background 150ms ease;
}
.dwv-licanf-typ:hover .dwv-licanf-typ-card {
  border-color: var(--line-gold);
  background: var(--c-card-3);
}
.dwv-licanf-typ--aktiv .dwv-licanf-typ-card,
.dwv-licanf-typ input:checked + .dwv-licanf-typ-card {
  border-color: var(--gold);
  background: rgba(255, 225, 45, 0.08);
  box-shadow: 0 0 0 1px var(--gold);
}
.dwv-licanf-typ-ic {
  display: inline-block;
  font-size: 22px;
  margin-bottom: 6px;
  line-height: 1;
}
.dwv-licanf-typ-titel {
  display: block;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--ink-1);
  margin-bottom: 2px;
}
.dwv-licanf-typ-hint {
  display: block;
  font-size: 11.5px;
  color: var(--ink-2);
  line-height: 1.4;
}
.dwv-licanf-typ-badge {
  position: absolute;
  top: 10px; right: 10px;
  padding: 2px 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--ink-on-gold);
  background: var(--accent);
  border-radius: var(--r-pill);
}

/* Seat-Pills (3/5/10/20/Andere) */
.dwv-licanf-seats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.dwv-licanf-seat {
  cursor: pointer;
  margin: 0;
}
.dwv-licanf-seat input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.dwv-licanf-seat-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  font-family: 'Manrope', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: var(--ink-2);
  background: var(--c-card-hi);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.dwv-licanf-seat:hover .dwv-licanf-seat-pill {
  color: var(--ink-1);
  border-color: var(--line-2);
}
.dwv-licanf-seat input:checked + .dwv-licanf-seat-pill {
  background: var(--accent);
  color: var(--ink-on-gold);
  border-color: var(--orange);
  font-weight: 700;
}

/* Custom-Number-Input fuer "Andere Anzahl" */
[data-dwv-licanf-seats-custom] {
  padding: 9px 12px;
  background: var(--c-deep);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--ink-1);
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  width: 120px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
[data-dwv-licanf-seats-custom]:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 225, 45, 0.10);
}

@media (max-width: 480px) {
  .dwv-licanf-typen { grid-template-columns: 1fr; }
}


/* ==========================================================================
   V1.7.22 — UMFASSENDE MOBILE/TABLET-OPTIMIERUNG
   --------------------------------------------------------------------------
   Konsolidiert alle responsive Verbesserungen + Touch-Optimierungen:
     1. Touch-Targets min. 44x44px (Apple HIG)
     2. Tap-Highlight transparent (kein iOS-blauer-Flash)
     3. Hover-Effekte nur auf Geräten mit echtem Hover
     4. iOS-Zoom-Prevention auf Input-Fokus (font-size:16px)
     5. Bottom-Nav scrollbar bei vielen Items
     6. Kleine Screens (<360px) Spezialbehandlung
     7. Landscape-Mobile (Sheets nicht zu hoch)
     8. Lange Codes/Emails nicht überlaufen
   ========================================================================== */

/* --- Globale Touch-Optimierungen ----------------------------------------- */
.dwv-app button,
.dwv-app a,
.dwv-app [data-dwv-tab],
.dwv-app [data-dwv-sheet-open],
.dwv-app [data-dwv-copy] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* iOS: Input-Felder dürfen nicht reinzoomen — font-size >= 16px verhindert das */
@media (max-width: 768px) {
  .dwv-app input[type="text"],
  .dwv-app input[type="email"],
  .dwv-app input[type="tel"],
  .dwv-app input[type="url"],
  .dwv-app input[type="password"],
  .dwv-app input[type="number"],
  .dwv-app input[type="search"],
  .dwv-app textarea,
  .dwv-app select {
    font-size: 16px !important;
  }
}

/* --- Hover-Effekte nur auf echten Hover-Geräten -------------------------- */
@media (hover: none) {
  /* Auf Touch-Devices: Hover-States nicht "kleben" lassen.
     Wir entfernen die transform-Effekte beim Hover, weil der nach Tap
     bestehen bleibt und das Layout verschiebt. */
  .dwv-stat:hover,
  .dwv-quick:hover,
  .dwv-lic:hover,
  .dwv-profil-tile:hover,
  .dwv-lic-cta-tile:hover {
    transform: none !important;
  }
  /* Border/Background-Änderungen erlaubt — nur transform raus */
}

/* --- Bottom-Nav (Mobile) — horizontal scrollbar bei vielen Items --------- */
.dwv-bottom {
  /* Nicht mehr starr aufgeteilt — bei >5 Items horizontal scrollen */
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;  /* Firefox */
  scroll-snap-type: x mandatory;
}
.dwv-bottom::-webkit-scrollbar { display: none; }  /* WebKit */
.dwv-bottom-item {
  /* Min-Width damit auch bei wenig Items die Buttons nicht zu schmal werden,
     aber bei vielen Items horizontal scrollbar ist */
  min-width: 64px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  /* Bessere Touch-Hit-Area */
  padding: 8px 10px 6px;
}
@media (min-width: 380px) {
  .dwv-bottom-item { min-width: 72px; }
}
/* Wenn nur 4-5 Items: gleichmäßig verteilt (kein Scroll nötig) */
@media (min-width: 480px) {
  .dwv-bottom { overflow-x: visible; }
  .dwv-bottom-item { flex: 1 1 auto; min-width: 0; }
}

/* --- Topbar Mobile: Suche-Mobile-Toggle prominenter ---------------------- */
@media (max-width: 767px) {
  /* Brand kompakter — nur Logo + DWV bei sehr schmalem Screen */
  .dwv-top { gap: 8px; padding: 0 12px; }
  .dwv-top-actions { gap: 0; }
  .dwv-icon-btn { width: 38px; height: 38px; }

  /* System-Status-Pille auf Mobile ausblenden (zeigt eh nur Self-Promotion-Text) */
  .dwv-sys-status { display: none !important; }

  /* Suchleiste-Mobile-Open: cleaner Backdrop unter der Topbar */
  .dwv-top-search--mobile-open {
    box-shadow:
      var(--sh-md),
      0 4px 24px -8px rgba(0, 0, 0, 0.5);
  }
}
@media (max-width: 380px) {
  /* Topbar noch kompakter — alle Icons gleich, kein Brand-Frame wackelig */
  .dwv-top { gap: 6px; padding: 0 8px; height: 60px; }
  .dwv-icon-btn { width: 34px; height: 34px; }
  .dwv-icon-btn svg { width: 16px; height: 16px; }
  /* Suchleisten-Mobile-Toggle behalten, aber Telefon ggf. ausblenden */
  /* Telefon bleibt — wichtigste Action für Lab-Inhaber unterwegs */
}

/* --- Sheets Mobile: Drag-Handle prominenter, max-height angepasst --------- */
@media (max-width: 767px) {
  .dwv-sheet {
    /* Bottom-Sheet auf Mobile: max 92vh (kleines Stück Backdrop sichtbar) */
    max-height: 92vh;
    /* Padding etwas reduziert — Mobile braucht jeden Pixel */
    padding: 22px 18px 28px;
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
  }
  /* Drag-Handle prominenter — leichter zu greifen */
  .dwv-sheet-grabber {
    width: 48px;
    height: 5px;
    margin: -12px auto 18px;
    background: var(--line-3);
  }
  /* Sheet-Kopf kompakter */
  .dwv-sheet-kopf { margin-bottom: 18px; }
  .dwv-sheet h2 { font-size: 18px; }
  .dwv-sheet-lead { font-size: 12.5px; }
  /* Close-Button größer für Touch */
  .dwv-sheet-close { width: 38px; height: 38px; }
}

/* Landscape-Mobile: Sheet darf nicht zu hoch sein (sonst kein Backdrop sichtbar) */
@media (max-height: 500px) and (max-width: 900px) {
  .dwv-sheet {
    max-height: 96vh;
    padding-top: 14px;
  }
  .dwv-sheet-grabber { margin: -8px auto 12px; }
  .dwv-sheet-kopf { margin-bottom: 14px; padding-bottom: 12px; }
}

/* --- Lange Inhalte nicht überlaufen --------------------------------------- */
.dwv-lic-code,
.dwv-lic-detail-code-val,
.dwv-print-card-code,
.dwv-akt-titel,
.dwv-ticket-betreff,
.dwv-profil-email,
.dwv-search-titel {
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Lizenz-Card auf sehr schmalem Screen (<400px) */
@media (max-width: 400px) {
  .dwv-lic { padding: 18px 16px 14px; }
  .dwv-lic-code-btn { padding: 12px 14px; gap: 10px; }
  .dwv-lic-code { font-size: 16px; letter-spacing: 1.6px; }
  .dwv-lic-code-ic { width: 28px; height: 28px; }
  /* Aktions-Buttons untereinander wenn 3 nicht passen */
  .dwv-lic-actions {
    flex-wrap: wrap;
    gap: 6px;
  }
  .dwv-lic-action-btn {
    min-width: calc(50% - 3px);
    padding: 8px 10px;
    font-size: 11.5px;
  }
}

/* --- Profil-Tiles Mobile: kompakter ---------------------------------------- */
@media (max-width: 480px) {
  .dwv-profil-tile { padding: 13px 14px; min-height: 64px; gap: 11px; }
  .dwv-profil-tile-ic { width: 36px; height: 36px; font-size: 16px; }
  .dwv-profil-tile-titel { font-size: 13.5px; }
  .dwv-profil-tile-hint { font-size: 10.5px; }
  .dwv-profil-tile-pfeil { font-size: 14px; }
}

/* --- Lizenz-CTA-Tile Mobile: untereinander stacken ----------------------- */
@media (max-width: 480px) {
  .dwv-lic-cta { padding: 18px 16px; }
  .dwv-lic-cta-titel { font-size: 17px; }
  .dwv-lic-cta-tile {
    padding: 14px 14px;
    gap: 12px;
    min-height: 0;
  }
  .dwv-lic-cta-tile-ic { width: 38px; height: 38px; font-size: 17px; }
  .dwv-lic-cta-tile-titel { font-size: 14px; }
  .dwv-lic-cta-tile-hint { font-size: 11.5px; line-height: 1.4; }
}

/* --- Anfrage-Sheet (Lizenz) Mobile: Radio-Karten stacken (schon da) + Seat-Pills wrappen */
@media (max-width: 480px) {
  .dwv-licanf-typen { grid-template-columns: 1fr; }
  .dwv-licanf-typ-card { padding: 16px 14px; }
  .dwv-licanf-typ-titel { font-size: 15px; }
  .dwv-licanf-seats { gap: 6px; }
  .dwv-licanf-seat-pill { padding: 9px 12px; font-size: 13px; }
}

/* --- Hero-Card Download Mobile -------------------------------------------- */
@media (max-width: 600px) {
  .dwv-dl-hero {
    padding: 22px 18px;
    gap: 14px;
  }
  .dwv-dl-ver { font-size: 30px; letter-spacing: -0.8px; }
  .dwv-dl-cta-wrap { width: 100%; }
  .dwv-dl-cta-wrap .dwv-btn-primaer {
    width: 100%;
    justify-content: center;
    padding: 13px 18px;
    font-size: 13px;
  }
  .dwv-dl-changelog-link {
    width: 100%;
    justify-content: center;
  }
}

/* --- Stats-Grid Mobile: Stat-Cards kompakter ----------------------------- */
@media (max-width: 480px) {
  .dwv-stat { padding: 14px 16px; gap: 12px; }
  .dwv-stat-ic { width: 38px; height: 38px; font-size: 16px; }
  .dwv-stat-value { font-size: 19px; }
  .dwv-stat-label { font-size: 9.5px; letter-spacing: 1.2px; }
  .dwv-stat-hint { font-size: 11px; }
}

/* --- Quick-Actions Mobile: kompakter ------------------------------------- */
@media (max-width: 480px) {
  .dwv-quick { padding: 13px 14px; min-height: 64px; gap: 12px; }
  .dwv-quick-ic { width: 36px; height: 36px; font-size: 15px; }
  .dwv-quick-titel { font-size: 13.5px; }
  .dwv-quick-hint { font-size: 10.5px; }
}

/* --- Print-Vorschau Mobile (im Sheet) ------------------------------------- */
@media (max-width: 600px) {
  .dwv-print-vorschau {
    padding: 18px 18px;
    max-height: 50vh;
  }
  .dwv-print-doc { padding: 0; }
  .dwv-print-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .dwv-print-marke-tag { text-align: left; }
  .dwv-print-titel { font-size: 20px; }
  .dwv-print-card { padding: 14px 16px; }
  .dwv-print-card-code { font-size: 18px; letter-spacing: 2px; }
  .dwv-print-grid { grid-template-columns: 1fr; gap: 12px; }
  .dwv-print-cell--full { grid-column: auto; }
}

/* --- Ticket-Liste Mobile -------------------------------------------------- */
@media (max-width: 480px) {
  .dwv-ticket { padding: 14px 14px; }
  .dwv-ticket-betreff { font-size: 13.5px; }
  .dwv-ticket-meta { font-size: 10.5px; }
  .dwv-ticket-status { font-size: 9px; padding: 2px 7px; }
}

/* --- Aktivitäts-Timeline Mobile ------------------------------------------ */
@media (max-width: 480px) {
  .dwv-akt-timeline::before { left: 14px; }
  .dwv-akt-ic { width: 28px; height: 28px; font-size: 12px; }
  .dwv-akt-titel { font-size: 13px; }
  .dwv-akt-hint { font-size: 10px; }
}

/* --- Detail-Sheet (Lizenz) Mobile ----------------------------------------- */
@media (max-width: 480px) {
  .dwv-lic-detail-code { padding: 14px 16px; }
  .dwv-lic-detail-code-val { font-size: 14px; letter-spacing: 1.6px; }
  .dwv-lic-detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 14px;
  }
  .dwv-lic-detail-val { text-align: left; }
}

/* --- Spotlight-Suche-Mobile-Open: über die Topbar legen ----------------- */
@media (max-width: 767px) {
  .dwv-top-search--mobile-open {
    width: calc(100% - 24px);
    height: 42px;
  }
  .dwv-top-search--mobile-open .dwv-top-search-input {
    font-size: 16px;  /* iOS-zoom-prevent */
  }
}

/* --- Forms in Sheets: bessere Touch-Targets ------------------------------ */
@media (max-width: 767px) {
  .dwv-sheet-field input,
  .dwv-sheet-field textarea,
  .dwv-sheet-field select {
    padding: 13px 14px;
    min-height: 46px;
  }
  .dwv-sheet-aktionen { gap: 8px; }
  .dwv-sheet-aktionen .dwv-btn {
    padding: 13px 16px;
    min-height: 46px;
    font-size: 14px;
  }
  /* Bei sehr schmalem Mobile Buttons untereinander */
  @media (max-width: 380px) {
    .dwv-sheet-aktionen {
      flex-direction: column-reverse;
      gap: 8px;
    }
    .dwv-sheet-aktionen .dwv-btn { width: 100%; }
  }
}

/* --- Datenschutz-Sheet: Timeline-Bubbles auf Mobile kompakter ---------- */
@media (max-width: 480px) {
  .dwv-anl-num { width: 30px; height: 30px; font-size: 12px; }
  .dwv-anl-step { gap: 12px; padding: 12px 0; }
  .dwv-anl-timeline::before { left: 14px; top: 28px; bottom: 28px; }
  .dwv-anl-titel { font-size: 14.5px; }
  .dwv-anl-body { font-size: 12.5px; }
  .dwv-anl-note { padding: 10px 12px; font-size: 12px; }
  .dwv-anl-code { font-size: 11.5px; padding: 1px 6px; }
}

/* --- Notification-Dropdown Mobile: Vollbreit drüber ---------------------- */
@media (max-width: 480px) {
  .dwv-notif-dropdown {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    max-height: 70vh;
    border-radius: 18px 18px 0 0;
    border-bottom: none;
    padding: 8px 6px calc(12px + env(safe-area-inset-bottom));
    box-shadow:
      0 -4px 32px rgba(0, 0, 0, 0.5),
      var(--sh-lg);
    z-index: 1000;
  }
  .dwv-notif-item { padding: 14px 14px; min-height: 60px; }
  .dwv-notif-kopf { padding: 14px 14px 8px; }
}

/* --- Chat-FAB ist disabled — keine Mobile-Special nötig ------------------ */

/* --- Toast-Wrap Mobile: breiter, weniger weit unten ---------------------- */
@media (max-width: 480px) {
  .dwv-toast-wrap {
    bottom: 80px;  /* über der Bottom-Nav */
    padding: 0 12px;
  }
  .dwv-toast {
    min-width: 0;
    width: 100%;
    font-size: 12.5px;
    padding: 11px 14px;
  }
}

/* --- Begrüßung Mobile: kompakter ----------------------------------------- */
@media (max-width: 480px) {
  .dwv-gruss { font-size: 24px; letter-spacing: -0.4px; }
  .dwv-gruss-sub {
    flex-wrap: wrap;
    gap: 4px;
    font-size: 10.5px;
    margin-top: 8px;
    margin-bottom: 24px;
  }
  .dwv-gruss-meta { display: none; }
}

/* --- Profil-Header Mobile: Stats unter Identität ------------------------ */
@media (max-width: 600px) {
  .dwv-profil-stats {
    width: 100%;
    justify-content: space-around;
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }
  .dwv-profil-stat-num { font-size: 20px; }
  .dwv-profil-stat-lbl { font-size: 9px; }
}

/* --- Tablet Portrait: Top-Tabs bei vielen Items horizontal scrollen ----- */
@media (min-width: 768px) and (max-width: 1023px) {
  .dwv-tabs {
    /* Schon overflow-x:auto vorhanden — hier Snap-Points + min-width pro Item */
    scroll-snap-type: x mandatory;
  }
  .dwv-tab-item {
    scroll-snap-align: start;
    flex-shrink: 0;
  }
}

/* --- Globaler Schutz: keine X-Achsen-Scrollbars wegen ueberlaengerter Inhalte */
.dwv-app .dwv-main {
  overflow-x: hidden;
  word-wrap: break-word;
}

/* --- Reduced-Motion-Friendly Lizenz-Card-Hover ohne Transform ---------- */
@media (prefers-reduced-motion: reduce) {
  .dwv-lic:hover,
  .dwv-quick:hover,
  .dwv-stat:hover,
  .dwv-profil-tile:hover,
  .dwv-lic-cta-tile:hover {
    transform: none !important;
  }
  /* Border-Color-Change behalten (subtle Feedback ist trotzdem ok) */
}

/* --- Safe-Area-Insets für iPhone-X+-Notches/Home-Indicator -------------- */
.dwv-app {
  padding-bottom: env(safe-area-inset-bottom);
}
.dwv-bottom {
  padding-bottom: calc(4px + env(safe-area-inset-bottom));
}
.dwv-overlay {
  padding-bottom: env(safe-area-inset-bottom);
}
.dwv-chat-fab {
  bottom: calc(80px + env(safe-area-inset-bottom));
}
@media (min-width: 768px) {
  .dwv-chat-fab {
    bottom: calc(24px + env(safe-area-inset-bottom));
  }
}

/* --- Touch-Devices: Kbd-Hint in Suche ausblenden (Ctrl K macht keinen Sinn) */
@media (hover: none) {
  .dwv-top-search-kbd { display: none !important; }
}

/* --- Ticket-Thread Messages Mobile --------------------------------------- */
@media (max-width: 480px) {
  .dwv-msg { max-width: 92%; padding: 10px 13px; font-size: 12.5px; }
}

/* --- Adressen-Cards Mobile ------------------------------------------------ */
@media (max-width: 480px) {
  .dwv-adr-card { padding: 12px 14px; }
  .dwv-adr-titel { font-size: 13.5px; }
  .dwv-adr-text { font-size: 11.5px; }
  .dwv-adr-actions { gap: 4px; }
  .dwv-adr-actions .dwv-btn {
    flex: 1 1 calc(50% - 2px);
    padding: 7px 10px;
    font-size: 11px;
    min-height: 36px;
  }
}

/* --- DSGVO-Cards Mobile -------------------------------------------------- */
@media (max-width: 480px) {
  .dwv-dsgvo-card { padding: 14px 16px; }
  .dwv-dsgvo-titel { font-size: 14px; }
  .dwv-dsgvo-text { font-size: 12.5px; }
  .dwv-dsgvo-card .dwv-btn { width: 100%; justify-content: center; }
}

/* --- Sicherheits-Card Mobile --------------------------------------------- */
@media (max-width: 480px) {
  .dwv-sicher-card { padding: 14px 16px; }
  .dwv-sicher-head { gap: 10px; flex-wrap: wrap; }
  .dwv-sicher-titel { font-size: 14px; }
  .dwv-sicher-text { font-size: 12.5px; }
}

/* --- Inline-Code Mobile robust ------------------------------------------- */
@media (max-width: 480px) {
  .dwv-anl-code { font-size: 11px; padding: 1px 6px; word-break: break-all; }
}

/* --- Logout-Confirm-Sheet Mobile ----------------------------------------- */
@media (max-width: 480px) {
  .dwv-confirm-icon { width: 64px; height: 64px; margin-bottom: 18px; }
  .dwv-confirm-icon svg { width: 32px; height: 32px; }
}

/* --- Lizenz-Detail-Sheet Code-Highlight Mobile --------------------------- */
@media (max-width: 480px) {
  .dwv-lic-detail-code-row {
    flex-direction: column;
    align-items: stretch;
  }
  .dwv-lic-detail-copy { width: 100%; justify-content: center; }
}

/* --- FAQ Mobile ---------------------------------------------------------- */
@media (max-width: 480px) {
  .dwv-faq summary { padding: 14px 16px; min-height: 48px; font-size: 13.5px; }
  .dwv-faq .faq-body { padding: 0 16px 16px; font-size: 12.5px; }
}


/* ==========================================================================
   V1.7.23 — PTR-V2 + ONBOARDING + EMAIL-NOTIF-TOGGLES + SPRACH-TILES
   ========================================================================== */

/* --- Pull-to-Refresh V2: Indicator follows finger ---------------------- */
.dwv-ptr--v2 {
  position: fixed;
  top: -60px;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(0);
}
.dwv-ptr-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--c-card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-md);
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: 0.2px;
}
.dwv-ptr-spin {
  display: inline-block;
  font-size: 14px;
  color: var(--gold);
  transition: transform 250ms ease;
}
.dwv-ptr--ready .dwv-ptr-spin { transform: rotate(180deg); color: var(--orange); }
.dwv-ptr--ready .dwv-ptr-inner {
  border-color: var(--line-gold);
  background: rgba(255, 225, 45, 0.08);
  color: var(--ink-1);
}
.dwv-ptr--loading .dwv-ptr-spin { animation: dwv-spin 1s linear infinite; }
.dwv-ptr--loading .dwv-ptr-inner {
  background: var(--accent);
  color: var(--ink-on-gold);
  border-color: var(--orange);
}

/* --- Email-Notif-Toggle-Switches V2 (V1.7.24) ---------------------------
   Komplett gehaertet mit !important damit WP-Theme/Elementor die Switches
   nicht ueberschreiben. Native Checkbox mit appearance:none ausblenden,
   Switch-Pill via inline-block + explizite Dimensionen erzwingen. */
.dwv-notif-toggles {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.dwv-sheet .dwv-notif-toggle,
.dwv-notif-toggle {
  display: flex !important;
  align-items: flex-start !important;
  gap: 14px !important;
  padding: 14px 16px !important;
  background: var(--c-card-hi) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--r-md) !important;
  cursor: pointer !important;
  transition: border-color 150ms ease, background 150ms ease;
  position: relative !important;
  margin: 0 !important;  /* WP-Theme setzt oft margin auf labels */
  width: 100% !important;
  box-sizing: border-box !important;
}
.dwv-sheet .dwv-notif-toggle:hover,
.dwv-notif-toggle:hover {
  border-color: var(--line-2) !important;
  background: var(--c-card-3) !important;
}
/* Native Checkbox komplett verstecken (WP-Themes setzen oft display:inline-block
   was die "position:absolute opacity:0"-Variante manchmal sichtbar laesst) */
.dwv-sheet .dwv-notif-toggle input[type="checkbox"],
.dwv-notif-toggle input[type="checkbox"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  -webkit-clip-path: inset(50%) !important;
          clip-path: inset(50%) !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
/* Switch-Pill: inline-block mit fester Größe — WP-Theme setzt display:inline
   auf spans was width/height ignoriert. Daher inline-block + !important. */
.dwv-sheet .dwv-notif-toggle-switch,
.dwv-notif-toggle-switch {
  display: inline-block !important;
  flex-shrink: 0 !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 26px !important;
  min-height: 26px !important;
  border-radius: 13px !important;
  background: #0E0E12 !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  position: relative !important;
  transition: background 200ms ease, border-color 200ms ease !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  vertical-align: top !important;
}
.dwv-sheet .dwv-notif-toggle-switch::after,
.dwv-notif-toggle-switch::after {
  content: '' !important;
  position: absolute !important;
  top: 2px !important;
  left: 2px !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  background: #A0A0A8 !important;
  transition: transform 200ms cubic-bezier(0.3, 0.9, 0.4, 1.0), background 200ms ease !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}
.dwv-sheet .dwv-notif-toggle input:checked + .dwv-notif-toggle-switch,
.dwv-notif-toggle input:checked + .dwv-notif-toggle-switch {
  background: linear-gradient(135deg, #FFE12D 0%, #F0A52D 100%) !important;
  border-color: #F0A52D !important;
}
.dwv-sheet .dwv-notif-toggle input:checked + .dwv-notif-toggle-switch::after,
.dwv-notif-toggle input:checked + .dwv-notif-toggle-switch::after {
  transform: translateX(18px) !important;
  background: #06060A !important;
}
.dwv-notif-toggle input:focus-visible + .dwv-notif-toggle-switch {
  box-shadow: 0 0 0 3px rgba(255, 225, 45, 0.30) !important;
}
.dwv-notif-toggle-text {
  flex: 1 !important;
  min-width: 0 !important;
}
.dwv-notif-toggle-titel {
  display: block !important;
  font-family: 'Manrope', -apple-system, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #F5F5F4 !important;
  letter-spacing: -0.1px !important;
  margin: 0 !important;
  text-transform: none !important;
}
.dwv-notif-toggle-hint {
  display: block !important;
  font-size: 12px !important;
  color: #A0A0A8 !important;
  margin: 4px 0 0 !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
  text-transform: none !important;
}

/* --- Sprach-Tiles ------------------------------------------------------ */
.dwv-sprach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.dwv-sprach-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 14px;
  background: var(--c-card-hi);
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink-1);
  cursor: pointer;
  position: relative;
  transition: border-color 180ms ease, background 180ms ease;
  font-family: inherit;
}
.dwv-sprach-tile:hover {
  border-color: var(--line-gold);
  background: var(--c-card-3);
}
.dwv-sprach-tile--aktiv {
  border-color: var(--gold);
  background: rgba(255, 225, 45, 0.08);
}
.dwv-sprach-flagge { font-size: 32px; line-height: 1; }
.dwv-sprach-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-1);
  letter-spacing: -0.2px;
}
.dwv-sprach-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-3);
}
.dwv-sprach-check {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 14px;
  color: var(--gold);
  opacity: 0;
  transition: opacity 200ms ease;
}
.dwv-sprach-tile--aktiv .dwv-sprach-check { opacity: 1; }

/* --- Onboarding-Tour Overlay ------------------------------------------ */
.dwv-onb-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  /* V1.7.25: Backdrop ENTFERNT — das Spotlight zeichnet die Abdunkelung
     selbst per inverse box-shadow. Vorher lag hier ein zusaetzlicher
     dunkler+blur-Layer, der das hervorgehobene Element mit-verdunkelte
     und verschwommen erscheinen liess. */
  background: transparent;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  animation: dwv-onb-in 280ms ease-out;
}
@keyframes dwv-onb-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@media (min-width: 768px) {
  .dwv-onb-overlay { align-items: center; }
}
.dwv-onb-spotlight {
  position: absolute;
  top: 0; left: 0;
  border-radius: 12px;
  pointer-events: none;
  background: transparent;
  /* V1.7.25: Inverse-Mask ist jetzt ALLEINIGER Backdrop. Deutlich dunkler
     (0.82 statt 0.5), damit der Kontrast zum hellen Spotlight-Bereich klar
     ist. Goldener Glow + kraeftiger gelber Rahmen markiert das Ziel
     unmissverstaendlich. Innere Highlight-Box-Shadow hellt den Fokus-Bereich
     zusaetzlich auf. */
  box-shadow:
    inset 0 0 0 1px rgba(255, 225, 45, 0.18),
    inset 0 0 24px 0 rgba(255, 225, 45, 0.10),
    0 0 0 9999px rgba(5, 5, 7, 0.82),
    0 0 0 3px rgba(255, 225, 45, 0.85),
    0 0 0 6px rgba(255, 225, 45, 0.25),
    0 0 36px 10px rgba(255, 225, 45, 0.45);
  transition: top 350ms cubic-bezier(0.3, 0.8, 0.3, 1),
              left 350ms cubic-bezier(0.3, 0.8, 0.3, 1),
              width 350ms cubic-bezier(0.3, 0.8, 0.3, 1),
              height 350ms cubic-bezier(0.3, 0.8, 0.3, 1);
}
.dwv-onb-card {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, var(--c-card) 0%, var(--c-surface) 100%);
  border: 1px solid var(--line-gold);
  border-radius: var(--r-lg);
  padding: 24px 22px 20px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--sh-lg);
  animation: dwv-onb-card-in 350ms cubic-bezier(0.2, 0.85, 0.2, 1);
}
@keyframes dwv-onb-card-in {
  from { transform: translateY(20px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.dwv-onb-fortschritt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.dwv-onb-titel {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--ink-1);
  margin: 0 0 10px;
  line-height: 1.25;
}
.dwv-onb-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 18px;
}
.dwv-onb-aktionen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
/* V1.7.24: Onboarding-Buttons mit hoher Spezifitaet + !important damit
   WP-Theme-/Elementor-CSS sie nicht ueberschreiben kann (Text-Farbe war
   sonst unsichtbar weil von body color geerbt). */
.dwv-onb-overlay .dwv-onb-skip,
.dwv-onb-overlay button.dwv-onb-skip {
  background: transparent !important;
  border: none !important;
  color: #A0A0A8 !important;
  font-family: 'Manrope', -apple-system, sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  padding: 8px 4px !important;
  text-decoration: underline !important;
  text-decoration-color: rgba(255, 255, 255, 0.16) !important;
  text-underline-offset: 3px !important;
  text-transform: none !important;
  letter-spacing: 0.2px !important;
  text-shadow: none !important;
  line-height: 1.3 !important;
  transition: color 150ms ease;
}
.dwv-onb-overlay .dwv-onb-skip:hover,
.dwv-onb-overlay button.dwv-onb-skip:hover {
  color: #F5F5F4 !important;
  background: transparent !important;
}
.dwv-onb-overlay .dwv-onb-weiter,
.dwv-onb-overlay button.dwv-onb-weiter {
  background: linear-gradient(135deg, #FFE12D 0%, #F0A52D 100%) !important;
  color: #06060A !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 10px 22px !important;
  font-family: 'Manrope', -apple-system, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
  text-transform: none !important;
  text-shadow: none !important;
  line-height: 1.3 !important;
  min-width: 120px !important;
  cursor: pointer !important;
  transition: transform 150ms ease, box-shadow 150ms ease;
  box-shadow: 0 6px 18px -6px rgba(240, 165, 45, 0.5) !important;
}
.dwv-onb-overlay .dwv-onb-weiter:hover,
.dwv-onb-overlay button.dwv-onb-weiter:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -6px rgba(240, 165, 45, 0.65) !important;
  color: #06060A !important;
  background: linear-gradient(135deg, #FFE12D 0%, #F0A52D 100%) !important;
}
@media (max-width: 600px) {
  .dwv-onb-card {
    border-radius: 18px 18px 0 0;
    padding: 22px 18px 18px;
    margin: 0 -20px -20px;
    width: calc(100% + 40px);
    max-width: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dwv-onb-spotlight { transition: none !important; }
  .dwv-onb-card { animation: none !important; }
}

/* =========================================================================
   V1.7.27: TEAMLEADER-FLOW
   - Banner ueber der Begruessung
   - Erklaer-Block oben in der Lizenzen-Tab
   - Rolle-Pill auf der Lizenz-Karte (Admin / Mitglied)
   - Mitarbeiter-Mgmt-Panel direkt neben der Admin-Lizenz im Grid
   ========================================================================= */

/* --- Banner ueber der Begruessung --------------------------------------- */
.dwv-tl-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  margin: 0 0 14px;
  border-radius: var(--r-md);
  background:
    radial-gradient(circle at 8% 50%, rgba(255, 225, 45, 0.18), transparent 55%),
    linear-gradient(135deg, #2D1B4E 0%, #4A2D7A 60%, #382357 100%);
  border: 1px solid rgba(255, 225, 45, 0.30);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 8px 22px -8px rgba(74, 45, 122, 0.55);
  color: #F5F1FF;
  position: relative;
  overflow: hidden;
}
.dwv-tl-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 200px 80px at 0% 0%, rgba(255, 225, 45, 0.10), transparent 70%);
}
.dwv-tl-banner-ic {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border-radius: 12px;
  background: rgba(255, 225, 45, 0.18);
  border: 1px solid rgba(255, 225, 45, 0.45);
  text-shadow: none;
  position: relative;
  z-index: 1;
}
.dwv-tl-banner-text {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.dwv-tl-banner-titel {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #FFE57A;
  margin-bottom: 3px;
  text-transform: uppercase;
}
.dwv-tl-banner-team {
  color: #FFFFFF;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 4px;
  opacity: 0.92;
}
.dwv-tl-banner-sub {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(245, 241, 255, 0.85);
}
.dwv-tl-banner-sub strong {
  color: #FFE57A;
  font-weight: 700;
}
@media (max-width: 600px) {
  .dwv-tl-banner { padding: 12px 14px; gap: 12px; }
  .dwv-tl-banner-ic { width: 38px; height: 38px; font-size: 19px; }
  .dwv-tl-banner-titel { font-size: 13px; }
  .dwv-tl-banner-sub { font-size: 12px; }
}

/* --- Erklaer-Block oben in der Lizenzen-Tab ----------------------------- */
.dwv-tl-erklaer {
  background: linear-gradient(180deg, var(--c-card) 0%, var(--c-surface) 100%);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-md);
  padding: 16px 18px 14px;
  margin: 0 0 18px;
}
.dwv-tl-erklaer-kopf { margin-bottom: 10px; }
.dwv-tl-erklaer-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
}
.dwv-tl-erklaer-titel {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--ink-1);
  margin: 0;
  line-height: 1.3;
}
/* V1.7.37: Hinweis-Lead unter dem Titel — verweist auf gelbe Hero-Card */
.dwv-tl-erklaer-lead {
  margin: 8px 0 0;
  padding: 9px 12px;
  background: rgba(255, 225, 45, 0.06);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.dwv-tl-erklaer-lead strong { color: var(--ink-1); }
.dwv-tl-erklaer-highlight {
  color: var(--gold);
  font-weight: 700;
}
.dwv-tl-erklaer-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 720px) {
  .dwv-tl-erklaer-steps { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
.dwv-tl-erklaer-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.dwv-tl-erklaer-num {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--ink-on-gold);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 700;
  margin-top: 1px;
}
.dwv-tl-erklaer-txt {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.dwv-tl-erklaer-txt strong {
  color: var(--ink-1);
  font-weight: 600;
}

/* --- Rolle-Pill auf der Lizenz-Karte (Admin / Mitglied) ----------------- */
/* V1.7.37: Rolle-Pille passt sich an die Programm-Tag-Größe an
   (klein, neben "STL MERGER" in einer Reihe). */
.dwv-lic-rolle-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px 3px 7px;
  border-radius: var(--r-pill);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  position: relative;
  z-index: 3;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  align-self: center;
  width: max-content;
  max-width: 100%;
}
.dwv-lic-rolle-pill-ic {
  font-size: 11.5px;
  text-shadow: none;
  letter-spacing: 0;
}
.dwv-lic-rolle-pill--admin {
  background: linear-gradient(135deg, #6B3FA8 0%, #4A2D7A 100%);
  color: #FFE57A;
  border: 1px solid rgba(255, 225, 45, 0.50);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.20);
}
.dwv-lic-rolle-pill--mitglied {
  background: rgba(255, 225, 45, 0.08);
  color: var(--gold);
  border: 1px solid rgba(255, 225, 45, 0.32);
}
/* Admin-Lizenz extra hervorheben: kraeftigerer Karten-Rand */
.dwv-lic.dwv-lic-rolle-admin {
  border-color: rgba(255, 225, 45, 0.42) !important;
  box-shadow:
    var(--sh-md),
    0 0 0 1px rgba(255, 225, 45, 0.10),
    0 0 32px -10px rgba(255, 225, 45, 0.30);
}

/* --- Mitarbeiter-Mgmt-Panel ------------------------------------------- */
.dwv-lic-team-mgmt {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 225, 45, 0.06), transparent 50%),
    linear-gradient(180deg, var(--c-card) 0%, var(--c-surface) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px 14px;
  margin-top: -6px; /* matcht das Seats-Panel */
  margin-bottom: 18px;
  position: relative;
}
.dwv-lic-team-mgmt::before {
  content: '';
  position: absolute;
  top: 0; left: 18px; right: 18px;
  height: 2px;
  background: linear-gradient(90deg,
    transparent, var(--gold), transparent);
  opacity: 0.6;
  border-radius: 2px;
  pointer-events: none;
}
.dwv-lic-team-mgmt-kopf {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.dwv-lic-team-mgmt-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 2px;
}
.dwv-lic-team-mgmt-titel {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--ink-1);
  line-height: 1.25;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.dwv-lic-team-mgmt-zahl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--ink-3);
}
.dwv-lic-team-mgmt-frei {
  flex: 0 0 auto;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-2);
  background: rgba(255, 225, 45, 0.10);
  border: 1px solid rgba(255, 225, 45, 0.30);
  border-radius: 999px;
  padding: 4px 11px;
  white-space: nowrap;
}
.dwv-lic-team-mgmt-frei strong {
  color: var(--gold);
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

/* Mitglieder-Liste */
.dwv-lic-team-mgmt-empty {
  padding: 12px 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.dwv-lic-team-mgmt-liste {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dwv-lic-team-mgmt-eintrag {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--c-deep);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.dwv-lic-team-mgmt-ic {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 225, 45, 0.10);
  border: 1px solid rgba(255, 225, 45, 0.25);
  border-radius: 8px;
  font-size: 14px;
  text-shadow: none;
}
.dwv-lic-team-mgmt-eintrag-info {
  flex: 1;
  min-width: 0;
}
/* V1.7.33: Name-Hauptzeile, Email als sekundaere Info */
.dwv-lic-team-mgmt-eintrag-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dwv-lic-team-mgmt-eintrag-mail {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dwv-lic-team-mgmt-eintrag-firma {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--ink-3);
  margin-top: 1px;
}
.dwv-lic-team-mgmt-eintrag-status {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.dwv-lic-team-mgmt-eintrag-status.is-aktiv {
  background: rgba(34, 197, 94, 0.14);
  color: #5DD389;
  border: 1px solid rgba(34, 197, 94, 0.30);
}
.dwv-lic-team-mgmt-eintrag-status.is-inaktiv {
  background: rgba(168, 168, 178, 0.14);
  color: var(--ink-3);
  border: 1px solid var(--line);
}

/* Einlade-Form */
.dwv-lic-team-mgmt-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
@media (min-width: 520px) {
  .dwv-lic-team-mgmt-form {
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
  }
  .dwv-lic-team-mgmt-btn { grid-column: 1 / -1; }
  .dwv-lic-team-mgmt-hinweis { grid-column: 1 / -1; }
}
.dwv-lic-team-mgmt-feld {
  display: block;
  margin: 0;
}
.dwv-lic-team-mgmt-feld-lbl {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.dwv-lic-team-mgmt-feld input {
  width: 100%;
  padding: 9px 12px;
  font-size: 13px;
  background: var(--c-deep);
  color: var(--ink-1);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.dwv-lic-team-mgmt-feld input:focus {
  outline: none;
  border-color: rgba(255, 225, 45, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 225, 45, 0.12);
}
.dwv-lic-team-mgmt-btn {
  margin-top: 4px;
  font-weight: 700 !important;
  letter-spacing: 0.2px !important;
}
.dwv-lic-team-mgmt-hinweis {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-3);
  padding: 8px 0 0;
}

.dwv-lic-team-mgmt-voll {
  margin-top: 10px;
  padding: 12px 14px;
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 10px;
  color: #F5C76E;
  font-size: 12.5px;
  line-height: 1.5;
}
.dwv-lic-team-mgmt-voll strong {
  color: #FFD27A;
  display: inline;
}

/* =========================================================================
   V1.7.29: PREMIUM-EFFEKTE-PAKET (15 Items aus dem Brainstorm)
   01 Cursor-Spotlight · 03 Number-Counter · 04 Grain-Overlay · 05 Tab-Nums
   06 Edge-Fade · 07 Toast · 08 Border-Glow · 09 Reveal · 10 Skeleton
   11 Haptic (JS) · 12 Animated-Badges · 13 Topbar-Shrink · 14 Greeting
   16 Sound (JS) · 17 View-Transitions (JS) · 18 Confetti (JS)
   ========================================================================= */

/* --- #04: GRAIN-OVERLAY (ganze Seite, nur im aktiven Portal) ------------- */
.dwv-portal-active::after,
body.dwv-portal-active::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.9'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* --- #05: TABULAR-NUMS GLOBAL (hört Zucken bei sich ändernden Zahlen) --- */
.dwv-app, .dwv-app * {
  font-variant-numeric: tabular-nums;
}
/* Code-Buchstaben in JetBrains Mono profitieren von "calt"-Ligaturen
   (-> wird zu Pfeil etc.). Aber NUR auf Bereichen wo es Sinn macht — auf
   dem Lizenz-Code unbedingt AUS, sonst werden YV/ZC zu Glyphen. */
.dwv-lic-code, [data-dwv-copy], code {
  font-feature-settings: "calt" off, "liga" off;
  font-variant-ligatures: none;
}

/* --- #01: CURSOR-SPOTLIGHT auf der Hero-Karte --------------------------- */
.dwv-lic { --mx: 50%; --my: 50%; }
.dwv-lic::before {
  /* Bestehende statische Specular bleibt; ein zusaetzlicher cursor-folgender
     Goldglow wird drueber gelegt. Kein JS-Reflow, nur CSS-Variablen-Updates. */
  background:
    radial-gradient(
      circle 220px at var(--mx) var(--my),
      rgba(255, 225, 45, 0.10) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 35% at 90% 8%,
      rgba(255, 255, 255, 0.035) 0%,
      transparent 65%
    ) !important;
}
@media (hover: none) {
  /* Touch-Devices: Spotlight-Layer abschalten — Mausposition gibt's nicht */
  .dwv-lic::before {
    background: radial-gradient(
      ellipse 50% 35% at 90% 8%,
      rgba(255, 255, 255, 0.035) 0%,
      transparent 65%
    ) !important;
  }
}

/* --- #06: EDGE-FADE auf scrollbaren Listen ------------------------------ */
.dwv-edge-fade {
  -webkit-mask-image: linear-gradient(180deg,
    transparent 0%, #000 24px, #000 calc(100% - 24px), transparent 100%);
          mask-image: linear-gradient(180deg,
    transparent 0%, #000 24px, #000 calc(100% - 24px), transparent 100%);
}

/* --- #07: TOAST-SYSTEM -------------------------------------------------- */
#dwv-toast-stage {
  position: fixed;
  /* Header ist 68px (mobile) / 72px (tablet) / 76px (desktop). Mit
     Sicherheitsabstand drueber: 76px. WP-Adminbar (32px/46px) wird ueber
     `body.admin-bar`-Override eingerechnet. */
  top: 76px;
  right: 16px;
  z-index: 10000;     /* ueber Sheets (9999) */
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: calc(100vw - 32px);
  pointer-events: none;
}
body.admin-bar #dwv-toast-stage { top: calc(76px + 32px); }
@media (max-width: 782px) {
  body.admin-bar #dwv-toast-stage { top: calc(68px + 46px); }
}
.dwv-toast {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  max-width: 360px;
  padding: 11px 14px 0;
  background: rgba(20, 20, 28, 0.94);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
          backdrop-filter: blur(14px) saturate(120%);
  border: 1px solid rgba(255, 225, 45, 0.32);
  border-radius: 12px;
  box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.55);
  color: var(--ink-1);
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  line-height: 1.45;
  overflow: hidden;
  animation: dwv-toast-in 280ms cubic-bezier(0.2, 0.85, 0.25, 1);
}
.dwv-toast.is-out { animation: dwv-toast-out 220ms ease forwards; }
.dwv-toast.is-fehler { border-color: rgba(239, 68, 68, 0.45); }
.dwv-toast-row {
  display: flex; align-items: center; gap: 10px; padding-bottom: 10px;
}
.dwv-toast-ic {
  width: 22px; height: 22px;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ok); color: white;
  border-radius: 50%;
  font-size: 12px; font-weight: 700;
}
.dwv-toast.is-fehler .dwv-toast-ic { background: var(--err); }
.dwv-toast-bar {
  height: 2px;
  background: var(--gold);
  transform-origin: left;
  animation: dwv-toast-bar 4200ms linear forwards;
  margin: 0 -14px -1px;
}
.dwv-toast.is-fehler .dwv-toast-bar { background: var(--err); }
@keyframes dwv-toast-in {
  from { opacity: 0; transform: translateX(40px) scale(0.96); }
  to   { opacity: 1; transform: translateX(0)    scale(1); }
}
@keyframes dwv-toast-out {
  to { opacity: 0; transform: translateX(40px); }
}
@keyframes dwv-toast-bar {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}
@media (max-width: 600px) {
  /* Mobile-Header ist 68px hoch (Default) → Toast unterhalb ansiedeln,
     volle Breite minus Safe-Area, Bottom-Nav unten ist nicht relevant. */
  #dwv-toast-stage { top: 76px; right: 8px; left: 8px; }
  body.admin-bar #dwv-toast-stage { top: calc(76px + 46px); }
  .dwv-toast { min-width: 0; max-width: none; }
}

/* --- #08: BORDER-GLOW auf Profil-Tiles ----------------------------------
   V1.7.39: Erweitert auf ALLE Tile-/Card-/Button-artigen Elemente im
   Portal — der goldene cursor-following Glow wirkt jetzt überall, wo
   man drüberhovert. */
.dwv-profil-tile,
.dwv-quick,
.dwv-stat,
.dwv-lic-cta-tile,
.dwv-mitarb-cta,
.dwv-mitarb-modal-eintrag,
.dwv-lic-team-mgmt-eintrag,
.dwv-sessions-eintrag,
.dwv-licanf-typ-card,
.dwv-faq-item,
.dwv-tl-erklaer-steps li,
.dwv-akt-item {
  --gx: 50%;
  --gy: 50%;
  position: relative;
  overflow: hidden;
}
.dwv-profil-tile::before,
.dwv-quick::before,
.dwv-lic-cta-tile::before,
.dwv-mitarb-cta::before,
.dwv-mitarb-modal-eintrag::before,
.dwv-lic-team-mgmt-eintrag::before,
.dwv-sessions-eintrag::before,
.dwv-licanf-typ-card::before,
.dwv-faq-item::before,
.dwv-tl-erklaer-steps li::before,
.dwv-akt-item::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 200ms ease;
  background: radial-gradient(280px circle at var(--gx) var(--gy),
    rgba(255, 225, 45, 0.12), transparent 55%);
  z-index: 0;
}
/* .dwv-stat hat schon ein ::after fuer den Top-Line-Highlight —
   der Glow sitzt daher hier auf einem Hilfs-Layer ueber Background. */
.dwv-stat {
  background-image:
    radial-gradient(280px circle at var(--gx) var(--gy),
      rgba(255, 225, 45, 0) 0%, rgba(255, 225, 45, 0) 0%);
  transition: background-image 200ms ease, border-color 200ms ease,
              background-color 200ms ease, transform 200ms ease;
}
.dwv-stat:hover {
  background-image:
    radial-gradient(280px circle at var(--gx) var(--gy),
      rgba(255, 225, 45, 0.12), transparent 55%);
}

.dwv-profil-tile:hover::before,
.dwv-quick:hover::before,
.dwv-lic-cta-tile:hover::before,
.dwv-mitarb-cta:hover::before,
.dwv-mitarb-modal-eintrag:hover::before,
.dwv-lic-team-mgmt-eintrag:hover::before,
.dwv-sessions-eintrag:hover::before,
.dwv-licanf-typ-card:hover::before,
.dwv-faq-item:hover::before,
.dwv-tl-erklaer-steps li:hover::before,
.dwv-akt-item:hover::before { opacity: 1; }

/* Inhalte ueber den Glow legen */
.dwv-profil-tile > *,
.dwv-quick > *,
.dwv-lic-cta-tile > *,
.dwv-mitarb-cta > *,
.dwv-mitarb-modal-eintrag > *,
.dwv-lic-team-mgmt-eintrag > *,
.dwv-sessions-eintrag > *,
.dwv-licanf-typ-card > *,
.dwv-faq-item > *,
.dwv-tl-erklaer-steps li > *,
.dwv-akt-item > * {
  position: relative;
  z-index: 1;
}

@media (hover: none) {
  /* Touch: keinen Glow zeigen — der bleibt sonst kleben */
  .dwv-profil-tile::before,
  .dwv-quick::before,
  .dwv-lic-cta-tile::before,
  .dwv-mitarb-cta::before,
  .dwv-mitarb-modal-eintrag::before,
  .dwv-lic-team-mgmt-eintrag::before,
  .dwv-sessions-eintrag::before,
  .dwv-licanf-typ-card::before,
  .dwv-faq-item::before,
  .dwv-tl-erklaer-steps li::before,
  .dwv-akt-item::before { display: none; }
  .dwv-stat:hover { background-image: none; }
}

/* --- #09: REVEAL-ON-SCROLL (Stagger via data-dwv-reveal-delay) ----------
   Progressive Enhancement: Element wird NUR versteckt wenn JS die
   .dwv-reveal-ready-Klasse setzt. Faellt JS aus → Element bleibt sichtbar
   (statt fuer immer auf opacity:0 zu verharren). */
[data-dwv-reveal].dwv-reveal-ready {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
[data-dwv-reveal].dwv-reveal-ready.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  /* Reduced-Motion: nicht hide/transform — sofort sichtbar */
  [data-dwv-reveal].dwv-reveal-ready {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* --- #10: SKELETON-SHIMMER --------------------------------------------- */
.dwv-skel {
  background: linear-gradient(90deg,
    var(--c-card-hi) 0%,
    rgba(255, 225, 45, 0.06) 50%,
    var(--c-card-hi) 100%);
  background-size: 200% 100%;
  animation: dwv-skel-shimmer 1.4s ease-in-out infinite;
  border-radius: 6px;
  display: block;
}
.dwv-skel-zeile { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.dwv-skel-kreis { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }
.dwv-skel-line { height: 12px; }
.dwv-skel-line.kurz { width: 40%; }
.dwv-skel-line.mittel { width: 60%; }
.dwv-skel-line.lang { width: 80%; }
@keyframes dwv-skel-shimmer {
  from { background-position: 100% 0; }
  to   { background-position: -100% 0; }
}

/* --- #12: ANIMIERTE BADGE-COUNTS --------------------------------------- */
.dwv-badge.is-pop,
.dwv-nav-badge.is-pop,
.dwv-tab-badge.is-pop,
.dwv-bottom-badge.is-pop {
  animation: dwv-badge-pop 480ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes dwv-badge-pop {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.45);
         box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.22); }
  100% { transform: scale(1);
         box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* --- #13: STICKY-TOPBAR-SHRINK ----------------------------------------- */
/* WICHTIG: Header-Hoehe ist FIX (68/72/76px) und Sidebar/Tabs kleben mit
   `top: 68px !important` daran. Wir aendern daher NICHT die Hoehe, sondern
   nur die Glas-Optik (kraeftigerer Backdrop + Schatten unterhalb), damit
   beim Scrollen klar wird, dass der Header floated.
   Auf Mobile (Bottom-Nav uebernimmt Navigation) ist der Effekt dezenter. */
.dwv-top {
  transition:
    background-color 240ms ease,
    backdrop-filter 240ms ease,
    -webkit-backdrop-filter 240ms ease,
    box-shadow 240ms ease,
    border-bottom-color 240ms ease;
}
.dwv-top.is-shrunk {
  background-color: rgba(14, 14, 18, 0.78) !important;
  -webkit-backdrop-filter: blur(14px) saturate(140%) !important;
          backdrop-filter: blur(14px) saturate(140%) !important;
  border-bottom-color: rgba(255, 225, 45, 0.18) !important;
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.65);
}
@media (prefers-reduced-motion: reduce) {
  .dwv-top, .dwv-top * { transition: none !important; }
}

/* --- #16: SOUND-TILE Aktiv/Inaktiv-Pill ---
   Zeigt den aktuellen Zustand visuell (segmentiertes Pill: AN/AUS), gesteuert
   ueber die `.is-an`-Klasse die JS auf [data-dwv-sound-toggle] setzt. */
.dwv-sound-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: stretch;
  background: var(--c-deep);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 2px;
  height: 28px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  pointer-events: none;
}
.dwv-sound-pill-an,
.dwv-sound-pill-aus {
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: calc(var(--r-pill) - 2px);
  color: var(--ink-3);
  transition: background 180ms ease, color 180ms ease;
}
.dwv-sound-tile:not(.is-an) .dwv-sound-pill-aus {
  background: var(--ink-3);
  color: var(--c-deep);
}
.dwv-sound-tile.is-an .dwv-sound-pill-an {
  background: var(--gold);
  color: var(--ink-on-gold);
}
.dwv-sound-tile.is-an {
  border-color: rgba(255, 225, 45, 0.32) !important;
}

/* --- #17: VIEW-TRANSITIONS für Tab-Wechsel ----------------------------- */
@supports (view-transition-name: x) {
  /* Standard-Crossfade reicht, nur Timing anpassen */
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 240ms;
    animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation-duration: 0.01ms; }
}

/* --- Confetti-Canvas (#18) — keine eigenen Styles, JS setzt inline ------ */

/* =========================================================================
   V1.7.35: PERSONALIA-BANNER + WARN-Tile (alte Accounts ohne Anrede)
   ========================================================================= */
.dwv-personalia-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin: 4px 0 16px;
  background:
    radial-gradient(circle at 0% 50%, rgba(255, 225, 45, 0.08), transparent 55%),
    var(--c-card);
  border: 1px solid var(--line-gold);
  border-radius: var(--r-md);
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-1);
}
.dwv-personalia-banner-ic {
  flex: 0 0 auto;
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 225, 45, 0.12);
  border: 1px solid var(--line-gold);
  border-radius: var(--r-sm);
  font-size: 16px;
}
.dwv-personalia-banner-text { flex: 1; min-width: 0; }
.dwv-personalia-banner-text strong { color: var(--ink-1); display: block; margin-bottom: 2px; }
.dwv-personalia-banner-btn {
  flex: 0 0 auto;
  font-size: 13px !important;
  padding: 8px 14px !important;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .dwv-personalia-banner { flex-wrap: wrap; }
  .dwv-personalia-banner-btn { width: 100%; }
}

/* Warn-Indikator auf Profil-Tile bei unvollstaendigen Personalia */
.dwv-profil-tile--warn {
  border-color: rgba(245, 158, 11, 0.45) !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(245, 158, 11, 0.10), transparent 55%),
    var(--c-card) !important;
}
.dwv-profil-tile--warn .dwv-profil-tile-hint {
  color: #FBBF24 !important;
}

/* =========================================================================
   V1.7.34: MULTI-SEAT-TEAMLEADER (Empty-State + CTA im Lic-Seats-Panel)
   ========================================================================= */
.dwv-lic-seats-empty {
  padding: 8px 0 12px;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
}
.dwv-lic-seats-teamleader {
  margin-top: 12px;
  padding: 14px 14px 12px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 225, 45, 0.12), transparent 55%),
    var(--c-deep);
  border: 1px solid var(--line-gold);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dwv-lic-seats-teamleader-kopf {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.dwv-lic-seats-teamleader-ic {
  flex: 0 0 auto;
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 225, 45, 0.16);
  border: 1px solid var(--line-gold);
  border-radius: var(--r-sm);
  font-size: 16px;
}
.dwv-lic-seats-teamleader-titel {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink-1);
  letter-spacing: -0.2px;
  line-height: 1.2;
}
.dwv-lic-seats-teamleader-sub {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-2);
}
.dwv-lic-seats-teamleader-sub strong {
  color: var(--gold);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}
.dwv-lic-seats-cta-btn {
  width: 100%;
  font-weight: 700 !important;
}

/* =========================================================================
   V1.7.32: MITARBEITER-EINLADEN CTA-Banner (Lizenzen-Tab) + Modal
   ========================================================================= */
.dwv-mitarb-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 18px;
  margin: 0 0 18px;
  background:
    radial-gradient(circle at 0% 50%, rgba(255, 225, 45, 0.12), transparent 55%),
    linear-gradient(135deg, #2D1B4E 0%, #4A2D7A 60%, #382357 100%);
  border: 1px solid rgba(255, 225, 45, 0.40);
  border-radius: var(--r-md);
  color: var(--ink-1);
  cursor: pointer;
  font-family: 'Manrope', -apple-system, sans-serif !important;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  box-shadow: 0 4px 18px -8px rgba(74, 45, 122, 0.45);
}
.dwv-mitarb-cta:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 225, 45, 0.65);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 12px 28px -10px rgba(74, 45, 122, 0.65),
    0 0 0 1px rgba(255, 225, 45, 0.18);
}
.dwv-mitarb-cta-ic {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px;
  background: rgba(255, 225, 45, 0.18);
  border: 1px solid rgba(255, 225, 45, 0.55);
  border-radius: 12px;
}
.dwv-mitarb-cta-text { flex: 1; min-width: 0; }
.dwv-mitarb-cta-titel {
  display: block;
  font-family: 'Bricolage Grotesque', sans-serif !important;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: #FFFFFF;
  margin-bottom: 3px;
}
.dwv-mitarb-cta-sub {
  display: block;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(245, 241, 255, 0.85);
}
.dwv-mitarb-cta-sub strong {
  color: #FFE57A;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}
.dwv-mitarb-cta-pfeil {
  flex: 0 0 auto;
  font-size: 22px;
  color: var(--gold);
  transition: transform 180ms ease;
}
.dwv-mitarb-cta:hover .dwv-mitarb-cta-pfeil { transform: translateX(4px); }
@media (max-width: 600px) {
  .dwv-mitarb-cta { padding: 12px 14px; gap: 12px; }
  .dwv-mitarb-cta-ic { width: 42px; height: 42px; font-size: 20px; }
  .dwv-mitarb-cta-titel { font-size: 14.5px; }
  .dwv-mitarb-cta-sub { font-size: 12px; }
  .dwv-mitarb-cta-pfeil { font-size: 18px; }
}

/* Modal-spezifische Styles */
.dwv-mitarb-modal-status {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: var(--c-deep);
  border: 1px solid var(--line-gold);
  border-radius: var(--r-md);
}
.dwv-mitarb-modal-stat {
  text-align: center;
}
.dwv-mitarb-modal-stat-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--gold);
  line-height: 1;
}
.dwv-mitarb-modal-stat-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 5px;
}
.dwv-mitarb-modal-form { margin-bottom: 14px; }
/* V1.7.33: Zwei-Spalten-Reihe fuer Vor-/Nachname im Modal */
.dwv-sheet-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 480px) {
  .dwv-sheet-field-row { grid-template-columns: 1fr; gap: 0; }
}
.dwv-mitarb-modal-hinweis {
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-3);
}
.dwv-mitarb-modal-voll {
  padding: 14px 16px;
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: var(--r-md);
  color: #F5C76E;
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 14px;
}
.dwv-mitarb-modal-voll strong { color: #FFD27A; display: inline; }

.dwv-mitarb-modal-liste-titel {
  margin: 18px 0 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
}
.dwv-mitarb-modal-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dwv-mitarb-modal-eintrag {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--c-deep);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.dwv-mitarb-modal-eintrag-ic {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 225, 45, 0.10);
  border: 1px solid rgba(255, 225, 45, 0.25);
  border-radius: 8px;
  font-size: 14px;
}
.dwv-mitarb-modal-eintrag-info { flex: 1; min-width: 0; }
/* V1.7.33: Name oben (groesser), Email darunter (mono, blass) */
.dwv-mitarb-modal-eintrag-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dwv-mitarb-modal-eintrag-mail {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dwv-mitarb-modal-eintrag-firma {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--ink-3);
}
.dwv-mitarb-modal-eintrag-status {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
}
.dwv-mitarb-modal-eintrag-status.is-aktiv {
  background: rgba(34, 197, 94, 0.14);
  color: #5DD389;
  border: 1px solid rgba(34, 197, 94, 0.30);
}
.dwv-mitarb-modal-eintrag-status.is-inaktiv {
  background: rgba(168, 168, 178, 0.14);
  color: var(--ink-3);
  border: 1px solid var(--line);
}

/* =========================================================================
   V1.7.31: TICKET-TEMPLATE-SELECT (Support-Sheet + Antwort-Form)
   ========================================================================= */
.dwv-ticket-template-select {
  width: 100%;
  padding: 9px 12px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  background: var(--c-deep);
  color: var(--ink-1);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  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='%23A0A0A8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  transition: border-color 150ms ease;
}
.dwv-ticket-template-select:focus {
  outline: none;
  border-color: var(--line-gold);
  box-shadow: 0 0 0 3px rgba(255, 225, 45, 0.10);
}
/* Antwort-Form: kompakter Container */
.dwv-ticket-reply-templates {
  margin-bottom: 8px;
}
.dwv-ticket-reply-templates .dwv-ticket-template-select {
  font-size: 12.5px;
  padding: 7px 12px;
  padding-right: 32px;
}

/* =========================================================================
   V1.7.31: ROLLBACK-CARD (Programme-Bereich, unter Haupt-Download)
   ========================================================================= */
.dwv-rollback-card {
  margin: 14px 0 22px;
  padding: 16px 18px;
  background:
    radial-gradient(circle at 0% 0%, rgba(245,158,11,0.08), transparent 55%),
    var(--c-card);
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dwv-rollback-kopf { display: flex; gap: 12px; align-items: flex-start; }
.dwv-rollback-ic {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.40);
  border-radius: var(--r-sm);
  font-size: 18px;
  color: #FBBF24;
}
.dwv-rollback-titel {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink-1);
  letter-spacing: -0.2px;
}
.dwv-rollback-sub {
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.dwv-rollback-sub strong { color: #FBBF24; font-family: 'JetBrains Mono', monospace; }
.dwv-rollback-hinweis {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink-3);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--line);
  border-radius: 8px;
}
.dwv-rollback-hinweis strong { color: var(--ink-2); }
.dwv-rollback-btn {
  align-self: flex-start;
  background: rgba(245, 158, 11, 0.10) !important;
  border-color: rgba(245, 158, 11, 0.40) !important;
  color: #FBBF24 !important;
}
.dwv-rollback-btn:hover {
  background: rgba(245, 158, 11, 0.18) !important;
  border-color: rgba(245, 158, 11, 0.60) !important;
  color: #FCD34D !important;
}
@media (max-width: 600px) {
  .dwv-rollback-btn { width: 100%; }
}

/* =========================================================================
   V1.7.31: 2FA BACKUP-CODES (Sicherheits-Sheet + Anzeige-Sheet)
   ========================================================================= */
.dwv-backup-card { margin-top: 12px; }
.dwv-backup-card--warn {
  border-color: rgba(245, 158, 11, 0.40) !important;
  background: rgba(245, 158, 11, 0.05);
}
.dwv-backup-warn {
  margin-bottom: 12px;
  padding: 10px 12px;
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 8px;
  color: #F5C76E;
  font-size: 12.5px;
  line-height: 1.5;
}
.dwv-backup-warn strong { color: #FFD27A; }

/* Codes-Grid im Anzeige-Sheet */
.dwv-backup-codes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 18px 0;
}
@media (max-width: 480px) {
  .dwv-backup-codes-grid { grid-template-columns: 1fr; }
}
.dwv-backup-code {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: var(--c-deep);
  border: 1px solid var(--line-gold);
  border-radius: 10px;
}
.dwv-backup-code-num {
  flex: 0 0 auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(255, 225, 45, 0.12);
  border: 1px solid var(--line-gold);
  border-radius: 4px;
  padding: 3px 6px;
  letter-spacing: 0.4px;
}
.dwv-backup-code-val {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--ink-1);
  user-select: all;
}
.dwv-backup-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.dwv-backup-actions .dwv-btn { flex: 1 1 200px; min-width: 0; }
.dwv-backup-hinweis {
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(255, 225, 45, 0.06);
  border: 1px solid var(--line-gold);
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.dwv-backup-hinweis strong { color: var(--ink-1); }

/* =========================================================================
   V1.7.30: WARTUNGSFENSTER-BANNER (Portal-Main, oben)
   ========================================================================= */
.dwv-wartung-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  margin: 0 0 14px;
  border-radius: var(--r-md);
  font-size: 13px;
  line-height: 1.45;
  position: relative;
}
.dwv-wartung-banner--angekuendigt {
  background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(255,225,45,0.06));
  border: 1px solid rgba(245, 158, 11, 0.42);
  color: #F5C76E;
}
.dwv-wartung-banner--laufend {
  background: linear-gradient(135deg, rgba(239,68,68,0.10), rgba(245,158,11,0.10));
  border: 1px solid rgba(239, 68, 68, 0.40);
  color: #FCA5A5;
  box-shadow: 0 4px 18px -8px rgba(239, 68, 68, 0.30);
}
.dwv-wartung-ic {
  flex: 0 0 auto;
  font-size: 22px;
  line-height: 1;
  margin-top: 1px;
}
.dwv-wartung-text { flex: 1; min-width: 0; }
.dwv-wartung-titel {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.2px;
  color: var(--ink-1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dwv-wartung-pill {
  display: inline-flex;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
}
.dwv-wartung-banner--angekuendigt .dwv-wartung-pill {
  background: rgba(245, 158, 11, 0.18);
  color: #FCD34D;
  border: 1px solid rgba(245, 158, 11, 0.40);
}
.dwv-wartung-banner--laufend .dwv-wartung-pill {
  background: var(--err);
  color: white;
  animation: dwv-wartung-blink 1.6s ease-in-out infinite;
}
@keyframes dwv-wartung-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}
.dwv-wartung-detail {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 12.5px;
}
.dwv-wartung-zeit {
  margin-top: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.3px;
}
.dwv-wartung-close {
  flex: 0 0 auto;
  background: transparent;
  border: none;
  color: var(--ink-3);
  font-size: 22px;
  line-height: 1;
  padding: 0 6px;
  cursor: pointer;
  transition: color 150ms ease;
}
.dwv-wartung-close:hover { color: var(--ink-1); }
.dwv-wartung-banner.is-dismissed { display: none; }
@media (max-width: 600px) {
  .dwv-wartung-banner { font-size: 12.5px; padding: 11px 12px; }
  .dwv-wartung-titel { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .dwv-wartung-banner--laufend .dwv-wartung-pill { animation: none; }
}

/* =========================================================================
   V1.7.30: AKTIVE SITZUNGEN (Profile → Sessions-Sheet)
   ========================================================================= */
.dwv-sessions-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dwv-sessions-eintrag {
  background: var(--c-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dwv-sessions-eintrag.is-aktuell {
  border-color: var(--line-gold);
  background:
    radial-gradient(circle at 100% 0%, rgba(255,225,45,0.08), transparent 60%),
    var(--c-card);
}
.dwv-sessions-haupt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.dwv-sessions-ic {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 225, 45, 0.10);
  border: 1px solid var(--line-gold);
  border-radius: var(--r-sm);
  font-size: 18px;
}
.dwv-sessions-info { flex: 1; min-width: 0; }
.dwv-sessions-zeile1 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2px;
}
.dwv-sessions-name {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink-1);
  word-break: break-word;
}
.dwv-sessions-pill {
  display: inline-flex;
  padding: 2px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  border-radius: 999px;
  white-space: nowrap;
}
.dwv-sessions-pill--aktuell {
  background: var(--gold);
  color: var(--ink-on-gold);
  border: 1px solid var(--gold-2, #F0A52D);
}
.dwv-sessions-zeile2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-2);
  line-height: 1.55;
  word-break: break-word;
}
.dwv-sessions-zeile3 {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 2px;
}
.dwv-sessions-aktionen {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.dwv-sessions-label-form {
  display: flex;
  flex: 1 1 200px;
  gap: 6px;
  margin: 0;
}
.dwv-sessions-label-input {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  font-size: 12px;
  background: var(--c-deep);
  color: var(--ink-1);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.dwv-sessions-label-input:focus {
  outline: none;
  border-color: rgba(255, 225, 45, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 225, 45, 0.10);
}
.dwv-sessions-label-btn {
  padding: 6px 12px !important;
  font-size: 12px !important;
  flex-shrink: 0;
}
.dwv-sessions-logout-form { margin: 0; flex-shrink: 0; }
.dwv-sessions-logout-btn {
  background: rgba(239, 68, 68, 0.10) !important;
  border-color: rgba(239, 68, 68, 0.32) !important;
  color: #FCA5A5 !important;
  padding: 7px 14px !important;
  font-size: 12px !important;
}
.dwv-sessions-logout-btn:hover {
  background: rgba(239, 68, 68, 0.18) !important;
  border-color: rgba(239, 68, 68, 0.50) !important;
  color: #FECACA !important;
}
.dwv-sessions-aktuell-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.3px;
}
.dwv-sessions-fuss {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
}
.dwv-sessions-fuss strong {
  color: var(--ink-1);
  font-family: 'JetBrains Mono', monospace;
}

/* Mobile: Aktionen-Reihe stapelt sauber, Logout-Btn voll breit */
@media (max-width: 520px) {
  .dwv-sessions-aktionen { flex-direction: column; align-items: stretch; }
  .dwv-sessions-label-form { width: 100%; }
  .dwv-sessions-logout-form { width: 100%; }
  .dwv-sessions-logout-btn { width: 100%; }
}

/* =========================================================================
   V1.7.41: AKKORDION-Mechanik fuer <details>/<summary>
   Default-Marker ausblenden, Custom-Toggle-Pfeil rechts, der sich beim
   Open dreht. Sanft animiert via `interpolate-size: allow-keywords`
   (modernste Browser); Fallback ist instant-toggle (immer noch ok).
   ========================================================================= */
details.dwv-akkordion {
  /* Position muss relative bleiben damit der bestehende ::before-Glow
     (V1.7.39) korrekt zugeordnet ist — falls applizierbar. */
}
.dwv-akkordion > summary.dwv-akkordion-kopf {
  /* Native marker entfernen */
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  /* Klickbarer Bereich = ganzer Header */
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.dwv-akkordion > summary.dwv-akkordion-kopf::-webkit-details-marker {
  display: none;
}
.dwv-akkordion-kopf-text {
  flex: 1;
  min-width: 0;
}
.dwv-akkordion-toggle {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  background: rgba(255, 225, 45, 0.10);
  border: 1px solid var(--line-gold);
  color: var(--gold);
  transition: transform 240ms cubic-bezier(0.2, 0.85, 0.25, 1),
              background 200ms ease;
}
.dwv-akkordion[open] > summary .dwv-akkordion-toggle {
  transform: rotate(180deg);
  background: rgba(255, 225, 45, 0.20);
}
.dwv-akkordion > summary:hover .dwv-akkordion-toggle {
  background: rgba(255, 225, 45, 0.18);
}

/* Body bekommt einen sanften Slide-In-Effekt beim Open */
.dwv-akkordion-body {
  /* opacity-Fade reicht — height ist bei <details> nicht trivial
     animierbar (out of the box). Mit prefers-reduced-motion respekt. */
  animation: dwv-akkordion-in 280ms cubic-bezier(0.2, 0.85, 0.25, 1);
}
@keyframes dwv-akkordion-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .dwv-akkordion-toggle { transition: none; }
  .dwv-akkordion-body { animation: none; }
}

/* Spezifische Anpassungen — die existierenden Klassen erwarten
   Container-Layout (Padding, Border etc.). Der summary erbt das
   nicht automatisch, also ihn als block + padding rendern. */
.dwv-tl-erklaer.dwv-akkordion {
  /* Padding ist schon auf .dwv-tl-erklaer; summary hat eigenes Padding */
  padding: 0;
}
.dwv-tl-erklaer.dwv-akkordion > summary {
  padding: 16px 18px;
  border-radius: var(--r-md);
}
.dwv-tl-erklaer.dwv-akkordion[open] > summary {
  /* Wenn offen: untere Rundung weg, weil Body folgt */
  border-radius: var(--r-md) var(--r-md) 0 0;
  border-bottom: 1px solid var(--line);
}
.dwv-tl-erklaer.dwv-akkordion .dwv-akkordion-body {
  padding: 14px 18px 16px;
}
.dwv-tl-erklaer.dwv-akkordion .dwv-tl-erklaer-kopf {
  /* margin-bottom war 10px — als Akkordion brauchen wir das nicht */
  margin-bottom: 0;
}
.dwv-tl-erklaer.dwv-akkordion .dwv-tl-erklaer-lead {
  margin-top: 0;
}

.dwv-lic-cta--team-erweitern.dwv-akkordion {
  padding: 0;
}
.dwv-lic-cta--team-erweitern.dwv-akkordion > summary {
  padding: 22px 24px;
  border-radius: var(--r-lg);
}
.dwv-lic-cta--team-erweitern.dwv-akkordion[open] > summary {
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  border-bottom: 1px solid var(--line);
}
.dwv-lic-cta--team-erweitern.dwv-akkordion .dwv-akkordion-body {
  padding: 16px 24px 22px;
}
.dwv-lic-cta--team-erweitern.dwv-akkordion .dwv-lic-cta-head {
  margin-bottom: 0;
}
.dwv-lic-cta--team-erweitern.dwv-akkordion .dwv-lic-cta-lead {
  margin-top: 0;
  margin-bottom: 16px;
}
@media (max-width: 600px) {
  .dwv-lic-cta--team-erweitern.dwv-akkordion > summary { padding: 18px 18px; }
  .dwv-lic-cta--team-erweitern.dwv-akkordion .dwv-akkordion-body { padding: 14px 18px 18px; }
  .dwv-tl-erklaer.dwv-akkordion > summary { padding: 14px 14px; }
  .dwv-tl-erklaer.dwv-akkordion .dwv-akkordion-body { padding: 12px 14px 14px; }
}
