/* ============================================================================
   DESIGN "STUBE" — warm, ruhig, handwerklich
   Idee: Eine Gaststube statt eines Raumschiffs. Tannengrün als Haltung, Honig als
   Wärme-Akzent (nur dort, wo etwas Aufmerksamkeit verdient), warmes Steingrau
   statt kaltem Blau-Weiss. Schriften: Bricolage Grotesque (Überschriften, Zahlen)
   und Figtree (Text). Keine Verläufe als Dekoration, keine Glow-Effekte,
   keine Großbuchstaben-Etiketten. Gilt für die Themes "Modern" und "Dark";
   "Classic" bleibt bewusst unverändert.
   Lädt NACH base/theme/v10/landing (überschreibt gezielt, ohne Struktur zu ändern).
   ============================================================================ */

/* ---------- Tokens: hell ---------- */
body.theme-modern {
  --tanne: #2f5b4f;
  --tanne-dark: #234539;
  --tanne-deep: #1b362d;
  --tanne-soft: #e4eee9;
  --tanne-ring: rgba(47, 91, 79, .22);
  --honig: #d9962b;
  --honig-soft: #fbefd6;
  --honig-ink: #6b4506;
  --stein: #f3f1ed;
  --stein-2: #faf9f6;
  --linie: #e6e2da;
  --linie-2: #d4cfc3;
  --text-warm: #272a28;
  --text-soft-warm: #5e6259;

  --color-bg: var(--stein);
  --color-surface: #ffffff;
  --color-border: var(--linie);
  --color-text: var(--text-warm);
  --color-text-soft: var(--text-soft-warm);
  --color-primary: var(--tanne);
  --color-primary-dark: var(--tanne-dark);
  --color-primary-soft: var(--tanne-soft);
  --color-accent: var(--tanne);
  --color-accent-soft: var(--tanne-soft);
  --color-success: #2f7d4f;
  --color-success-soft: #e6f2ea;
  --color-warning: #a8670d;
  --color-warning-soft: var(--honig-soft);
  --color-danger: #b3402e;
  --color-danger-soft: #f8e7e3;

  --v10-accent: var(--tanne);
  --v10-accent-dark: var(--tanne-dark);
  --v10-accent-soft: var(--tanne-soft);
  --v10-ring: 0 0 0 3px var(--tanne-ring);
  --v10-line: var(--linie);
  --ix: var(--tanne);
  --ix-dark: var(--tanne-dark);
  --ix-soft: var(--tanne-soft);
  --ink: var(--tanne-deep);
  --brand-dot: var(--tanne);
  --grid-header-bg: var(--tanne-dark);
  --grid-header-text: #fff;

  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(60, 48, 20, .06);
  --shadow-md: 0 1px 2px rgba(60, 48, 20, .05), 0 6px 18px -8px rgba(60, 48, 20, .14);
  --shadow-lg: 0 2px 4px rgba(60, 48, 20, .06), 0 20px 44px -18px rgba(60, 48, 20, .28);

  --sidebar-bg: var(--stein-2);
  --sidebar-text: #474c45;
  --sidebar-muted: #7d8076;
  --sidebar-hover: rgba(60, 48, 20, .05);
  --sidebar-border: var(--linie);
  --sidebar-active-bg: var(--tanne-soft);
  --sidebar-active-text: var(--tanne-dark);
  --sidebar-brand-text: var(--text-warm);

  --font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Bricolage Grotesque', 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--stein);
  letter-spacing: 0;
}

/* ---------- Tokens: dunkel (warmes Anthrazit mit Grünstich, kein Blau-Schwarz) ---------- */
body.theme-dark {
  --tanne: #86c6ab;
  --tanne-dark: #6fb293;
  --tanne-deep: #121513;
  --tanne-soft: #243a31;
  --tanne-ring: rgba(134, 198, 171, .30);
  --honig: #e6b050;
  --honig-soft: #3a2f16;
  --honig-ink: #f0cd85;
  --stein: #151816;
  --stein-2: #1a1e1b;
  --linie: #2c332e;
  --linie-2: #3a423c;
  --text-warm: #ece9e1;
  --text-soft-warm: #a3a89d;

  --color-bg: var(--stein);
  --color-surface: #1e2320;
  --color-border: var(--linie);
  --color-text: var(--text-warm);
  --color-text-soft: var(--text-soft-warm);
  --color-primary: var(--tanne);
  --color-primary-dark: var(--tanne-dark);
  --color-primary-soft: var(--tanne-soft);
  --color-accent: var(--tanne);
  --color-accent-soft: var(--tanne-soft);
  --color-success: #6fcf97;
  --color-success-soft: #1f3a2b;
  --color-warning: #e6b050;
  --color-warning-soft: var(--honig-soft);
  --color-danger: #ee8573;
  --color-danger-soft: #3d1f1a;

  --v10-accent: var(--tanne);
  --v10-accent-dark: var(--tanne-dark);
  --v10-accent-soft: var(--tanne-soft);
  --v10-ring: 0 0 0 3px var(--tanne-ring);
  --v10-line: var(--linie);
  --ix: var(--tanne);
  --ix-dark: var(--tanne-dark);
  --ix-soft: var(--tanne-soft);
  --ink: #0f1210;
  --brand-dot: var(--tanne);
  --grid-header-bg: #0f1210;
  --grid-header-text: #ece9e1;

  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 22px -10px rgba(0, 0, 0, .55);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .35), 0 22px 48px -18px rgba(0, 0, 0, .7);

  --sidebar-bg: #181c19;
  --sidebar-text: #b4b9ae;
  --sidebar-muted: #7f857a;
  --sidebar-hover: rgba(255, 255, 255, .05);
  --sidebar-border: var(--linie);
  --sidebar-active-bg: var(--tanne-soft);
  --sidebar-active-text: #b9e3d0;
  --sidebar-brand-text: #ece9e1;

  --font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Bricolage Grotesque', 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--stein);
}
body.theme-dark input[type=text], body.theme-dark input[type=email], body.theme-dark input[type=password],
body.theme-dark input[type=number], body.theme-dark input[type=date], body.theme-dark input[type=tel],
body.theme-dark input[type=search], body.theme-dark input[type=time], body.theme-dark select, body.theme-dark textarea {
  background: #151816; color: var(--color-text);
}

/* ---------- Gemeinsame Typografie ---------- */
body.theme-modern, body.theme-dark { font-size: 15px; line-height: 1.55; font-feature-settings: "ss01" 0; }
body.theme-modern h1, body.theme-modern h2, body.theme-modern h3, body.theme-modern h4,
body.theme-dark h1, body.theme-dark h2, body.theme-dark h3, body.theme-dark h4 {
  font-family: var(--font-display); letter-spacing: -0.018em; font-weight: 650; color: var(--color-text);
}
::selection { background: var(--tanne-soft); color: var(--text-warm); }
a { text-underline-offset: 3px; }

/* ---------- App-Shell: feste, ruhige Navigation (keine schwebende Glow-Karte) ---------- */
@media (min-width: 901px) {
  body.theme-modern .app-shell, body.theme-dark .app-shell { padding: 0; gap: 0; }
  body.theme-modern .sidebar, body.theme-dark .sidebar {
    top: 0; height: 100vh; border-radius: 0; background: var(--sidebar-bg);
    border: 0; border-right: 1px solid var(--linie); box-shadow: none; padding: 20px 14px;
    scrollbar-width: thin; scrollbar-color: var(--linie-2) transparent;
  }
  body.theme-modern .main, body.theme-dark .main { padding-left: 0; }
}
body.theme-modern .sidebar .brand, body.theme-dark .sidebar .brand {
  font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em;
}
body.theme-modern .sidebar .brand .dot, body.theme-dark .sidebar .brand .dot {
  width: 26px; height: 26px; border-radius: 8px; background: var(--tanne) !important; box-shadow: none !important; position: relative; flex: none;
}
body.theme-modern .sidebar .brand .dot::after, body.theme-dark .sidebar .brand .dot::after {
  content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--honig); right: 5px; bottom: 5px;
}
body.theme-dark .sidebar .brand .dot::before, body.theme-modern .sidebar .brand .dot::before {
  content: ""; position: absolute; left: 6px; top: 6px; width: 12px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.9);
  box-shadow: 0 6px 0 rgba(255,255,255,.55);
}
body.theme-dark .sidebar .brand .dot::before { background: #10201a; box-shadow: 0 6px 0 rgba(16,32,26,.55); }
body.theme-modern .sidebar .nav-section-title, body.theme-dark .sidebar .nav-section-title {
  color: var(--sidebar-muted); font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 650; opacity: 1;
  border-bottom: 0; margin: 20px 10px 6px; padding-bottom: 0;
}
body.theme-modern .sidebar a.nav-link, body.theme-modern .sidebar summary.nav-link,
body.theme-dark .sidebar a.nav-link, body.theme-dark .sidebar summary.nav-link {
  border-radius: 9px; color: var(--sidebar-text); font-weight: 520; font-size: 14px; padding: 8px 11px;
}
body.theme-modern .sidebar a.nav-link:hover, body.theme-modern .sidebar summary.nav-link:hover,
body.theme-dark .sidebar a.nav-link:hover, body.theme-dark .sidebar summary.nav-link:hover {
  background: var(--sidebar-hover); color: var(--text-warm); padding-left: 11px;
}
body.theme-modern .sidebar a.nav-link.active, body.theme-dark .sidebar a.nav-link.active { color: var(--sidebar-active-text); font-weight: 650; }
body.theme-modern .sidebar a.nav-link.active .nav-ico, body.theme-dark .sidebar a.nav-link.active .nav-ico { stroke: var(--sidebar-active-text); }
body.theme-modern .sidebar-active-slider, body.theme-dark .sidebar-active-slider {
  background: var(--sidebar-active-bg) !important; border: 0 !important; border-radius: 9px !important; box-shadow: none !important;
}
body.theme-modern .sidebar .badge-version, body.theme-dark .sidebar .badge-version { background: var(--tanne-soft); color: var(--sidebar-active-text); }
body.theme-modern .sidebar .nav-role, body.theme-dark .sidebar .nav-role { border-radius: 10px; }

/* ---------- Kopfzeile ---------- */
body.theme-modern .topbar, body.theme-dark .topbar {
  background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 0; box-shadow: none; padding: 20px 36px 6px;
}
body.theme-modern .topbar h2, body.theme-dark .topbar h2 { font-size: 26px; font-weight: 650; letter-spacing: -0.025em; }
body.theme-modern .company-badge, body.theme-dark .company-badge {
  background: var(--color-surface); border: 1px solid var(--linie); border-radius: 999px; box-shadow: none;
}
body.theme-modern .content, body.theme-dark .content { padding: 14px 36px 48px; }
@media (max-width: 900px) {
  body.theme-modern .topbar, body.theme-dark .topbar { padding: 10px 16px 4px; background: color-mix(in srgb, var(--stein) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  body.theme-modern .topbar h2, body.theme-dark .topbar h2 { font-size: 20px; }
  body.theme-modern .content, body.theme-dark .content { padding: 8px 16px 96px; }
  body.theme-modern .sidebar, body.theme-dark .sidebar { background: var(--sidebar-bg); }
}

/* ---------- Hinweisleiste (News) ---------- */
body.theme-modern .site-banner, body.theme-dark .site-banner {
  background: var(--honig-soft); color: var(--honig-ink); border-bottom: 1px solid color-mix(in srgb, var(--honig) 35%, transparent);
  font-size: 13.5px; padding: 8px 16px;
}
body.theme-modern .site-banner:hover, body.theme-dark .site-banner:hover { background: color-mix(in srgb, var(--honig-soft) 80%, var(--honig)); }
.site-banner .banner-ico { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ---------- Karten: Haarlinie statt Schwebeschatten, Hierarchie über Radius und Fläche ---------- */
body.theme-modern .card, body.theme-dark .card {
  background: var(--color-surface); border: 1px solid var(--linie); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
body.theme-modern .card:hover, body.theme-dark .card:hover { box-shadow: var(--shadow-sm); }
body.theme-modern .card-header, body.theme-dark .card-header { border-bottom: 0; padding-bottom: 4px; }
body.theme-modern .card-header h3, body.theme-dark .card-header h3 { font-size: 18px; font-weight: 650; letter-spacing: -0.02em; }
body.theme-modern .stat-card::before, body.theme-dark .stat-card::before { display: none; }
body.theme-modern .stat-card .stat-value, body.theme-dark .stat-card .stat-value {
  font-family: var(--font-display); font-size: 34px; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
body.theme-modern .stat-card .stat-label, body.theme-dark .stat-card .stat-label { font-size: 13.5px; font-weight: 550; color: var(--color-text-soft); }
body.theme-modern .stat-card .stat-icon, body.theme-dark .stat-card .stat-icon { border-radius: 12px; }
body.theme-modern .stat-icon.icon-blue   { background: #e2ebf2; color: #3d6584; }
body.theme-modern .stat-icon.icon-purple { background: #ece5ee; color: #6d4b7d; }
body.theme-modern .stat-icon.icon-green  { background: var(--tanne-soft); color: var(--tanne); }
body.theme-modern .stat-icon.icon-orange { background: #f9e6d8; color: #a6501c; }
body.theme-modern .stat-icon.icon-yellow { background: var(--honig-soft); color: var(--honig-ink); }
body.theme-dark .stat-icon.icon-blue   { background: #1f3140; color: #8fb8d6; }
body.theme-dark .stat-icon.icon-purple { background: #2f2535; color: #c6a3d6; }
body.theme-dark .stat-icon.icon-green  { background: var(--tanne-soft); color: var(--tanne); }
body.theme-dark .stat-icon.icon-orange { background: #3b2618; color: #eba878; }
body.theme-dark .stat-icon.icon-yellow { background: var(--honig-soft); color: var(--honig); }

/* ---------- Buttons: gedeckt, fester Körper, kein Glühen ---------- */
body.theme-modern .btn, body.theme-dark .btn {
  border-radius: 10px; font-weight: 650; letter-spacing: 0; padding: 9px 18px;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .12s ease;
}
body.theme-modern .btn:not(.btn-outline):not(.btn-danger):not(.btn-success):not(.btn-ghost),
body.theme-dark .btn:not(.btn-outline):not(.btn-danger):not(.btn-success):not(.btn-ghost) {
  background: var(--tanne); color: #fff; border: 1px solid var(--tanne-dark);
  box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 1px 2px rgba(27, 54, 45, .22);
}
body.theme-dark .btn:not(.btn-outline):not(.btn-danger):not(.btn-success):not(.btn-ghost) { color: #10201a; border-color: var(--tanne-dark); }
body.theme-modern .btn:not(.btn-outline):not(.btn-danger):not(.btn-success):not(.btn-ghost):hover,
body.theme-dark .btn:not(.btn-outline):not(.btn-danger):not(.btn-success):not(.btn-ghost):hover {
  background: var(--tanne-dark); filter: none; transform: none; box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 2px 6px rgba(27, 54, 45, .26);
}
body.theme-modern .btn:active, body.theme-dark .btn:active { transform: scale(.98); }
body.theme-modern .btn.btn-sm, body.theme-dark .btn.btn-sm { padding: 6px 13px; font-size: 13px; border-radius: 9px; }
body.theme-modern .btn-outline, body.theme-dark .btn-outline {
  background: var(--color-surface); border: 1px solid var(--linie-2); color: var(--text-warm); box-shadow: none;
}
body.theme-modern .btn-outline:hover, body.theme-dark .btn-outline:hover {
  border-color: var(--tanne); color: var(--tanne-dark); background: var(--tanne-soft); box-shadow: none;
}
body.theme-dark .btn-outline:hover { color: var(--tanne); }
body.theme-modern .btn-success, body.theme-dark .btn-success { background: var(--color-success); color: #fff; box-shadow: none; border: 0; }
body.theme-dark .btn-success { color: #0f2418; }
body.theme-modern .btn-danger, body.theme-dark .btn-danger { background: var(--color-danger); color: #fff; box-shadow: none; border: 0; }
body.theme-dark .btn-danger { color: #2b0f0a; }

/* ---------- Formulare ---------- */
body.theme-modern input[type=text], body.theme-modern input[type=email], body.theme-modern input[type=password],
body.theme-modern input[type=number], body.theme-modern input[type=date], body.theme-modern input[type=tel],
body.theme-modern input[type=search], body.theme-modern input[type=time], body.theme-modern select, body.theme-modern textarea,
body.theme-dark input[type=text], body.theme-dark input[type=email], body.theme-dark input[type=password],
body.theme-dark input[type=number], body.theme-dark input[type=date], body.theme-dark input[type=tel],
body.theme-dark input[type=search], body.theme-dark input[type=time], body.theme-dark select, body.theme-dark textarea {
  border-radius: 10px; border: 1px solid var(--linie-2); padding-top: 10px; padding-bottom: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
body.theme-modern input[type=text], body.theme-modern input[type=email], body.theme-modern input[type=password],
body.theme-modern input[type=number], body.theme-modern input[type=date], body.theme-modern input[type=tel],
body.theme-modern input[type=search], body.theme-modern input[type=time], body.theme-modern select, body.theme-modern textarea { background: #fff; }
body.theme-modern input:hover, body.theme-modern select:hover, body.theme-modern textarea:hover,
body.theme-dark input:hover, body.theme-dark select:hover, body.theme-dark textarea:hover { border-color: color-mix(in srgb, var(--linie-2) 60%, var(--text-warm)); }
body.theme-modern input:focus, body.theme-modern select:focus, body.theme-modern textarea:focus,
body.theme-dark input:focus, body.theme-dark select:focus, body.theme-dark textarea:focus { border-color: var(--tanne); box-shadow: var(--v10-ring); outline: none; }
body.theme-modern label, body.theme-dark label { font-weight: 600; }
body.theme-modern input[type=checkbox], body.theme-modern input[type=radio], body.theme-dark input[type=checkbox], body.theme-dark input[type=radio] { accent-color: var(--tanne); }
:focus-visible { outline: 2px solid var(--tanne); outline-offset: 2px; }
body.theme-modern button:focus-visible, body.theme-dark button:focus-visible { box-shadow: var(--v10-ring); outline: none; }

/* ---------- Tabellen: Satzschreibung statt Versalien ---------- */
body.theme-modern .data-table, body.theme-dark .data-table { border-collapse: separate; border-spacing: 0; }
body.theme-modern .data-table thead th, body.theme-dark .data-table thead th {
  background: transparent; font-size: 13px; font-weight: 650; text-transform: none; letter-spacing: 0;
  color: var(--color-text-soft); box-shadow: 0 1px 0 var(--linie);
}
body.theme-modern .data-table tbody td, body.theme-dark .data-table tbody td { border-bottom: 1px solid color-mix(in srgb, var(--linie) 70%, transparent); }
body.theme-modern .data-table tbody tr:hover td { background: var(--stein-2); }
body.theme-dark .data-table tbody tr:hover td { background: #232825; }
body.theme-modern .data-table tbody tr:last-child td, body.theme-dark .data-table tbody tr:last-child td { border-bottom: 0; }

/* ---------- Badges, Hinweise ---------- */
body.theme-modern .badge, body.theme-dark .badge { border-radius: 999px; font-weight: 650; padding: 3px 11px; letter-spacing: 0; }
body.theme-modern .alert, body.theme-dark .alert { border-radius: 12px; border-left-width: 1px; box-shadow: none; }
body.theme-modern .alert-info    { background: #edf2f5; border-color: #d3dfe7; color: #2f4e66; }
body.theme-modern .alert-error   { background: #faeceA; border-color: #efccc5; color: #8e2f20; }
body.theme-modern .alert-success { background: #e9f3ed; border-color: #c9e1d2; color: #1f5b38; }
body.theme-dark .alert-info    { background: #1d2b34; border-color: #2c4150; color: #a9cbe0; }
body.theme-dark .alert-error   { background: #3a1f1a; border-color: #5c322a; color: #f0b3a7; }
body.theme-dark .alert-success { background: #1e3a2b; border-color: #2e5842; color: #a8dcbd; }
body.theme-modern .wn-banner, body.theme-dark .wn-banner { border-radius: 12px; }

/* ---------- Reiter-Leisten ---------- */
body.theme-modern .company-status-tabs, body.theme-dark .company-status-tabs { background: color-mix(in srgb, var(--linie) 70%, transparent); padding: 4px; border-radius: 12px; display: inline-flex; gap: 2px; }
body.theme-modern .company-status-tab, body.theme-dark .company-status-tab { border: 0; background: transparent; box-shadow: none; padding: 7px 15px; border-radius: 9px; color: var(--color-text-soft); }
body.theme-modern .company-status-tab.active, body.theme-dark .company-status-tab.active { background: var(--color-surface); color: var(--text-warm); box-shadow: 0 1px 2px rgba(60,48,20,.12); border: 0; }
body.theme-modern .company-status-tab.tab-expired.active, body.theme-dark .company-status-tab.tab-expired.active { background: var(--color-surface); color: var(--color-danger); border: 0; }
body.theme-modern .company-status-tab.active .tab-count, body.theme-dark .company-status-tab.active .tab-count { background: var(--tanne-soft); color: var(--tanne-dark); }
body.theme-dark .company-status-tab.active .tab-count { color: var(--tanne); }
body.theme-modern .company-status-tab.tab-expired.active .tab-count { background: var(--color-danger-soft); color: var(--color-danger); }

/* ---------- Schichtplan ---------- */
body.theme-modern .data-table.shift-grid thead th, body.theme-modern .shift-grid thead th,
body.theme-dark .data-table.shift-grid thead th, body.theme-dark .shift-grid thead th { background: var(--grid-header-bg); color: var(--grid-header-text); text-transform: none; letter-spacing: 0; }

/* ---------- Mobile Navigation ---------- */
body.theme-modern .bottom-nav, body.theme-dark .bottom-nav {
  background: color-mix(in srgb, var(--color-surface) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--linie); border-radius: 20px; box-shadow: 0 10px 28px -12px rgba(60, 48, 20, .3);
}
body.theme-modern .bottom-nav-item.active, body.theme-dark .bottom-nav-item.active { color: var(--tanne-dark); }
body.theme-dark .bottom-nav-item.active { color: var(--tanne); }
body.theme-modern .bottom-nav-item.active::before, body.theme-modern .bottom-nav-item.active::after,
body.theme-dark .bottom-nav-item.active::before, body.theme-dark .bottom-nav-item.active::after { background: var(--tanne); }

/* ============================================================================
   ÖFFENTLICHE SEITEN (Startseite, Rechtstexte)
   ============================================================================ */
body.lp-page { font-family: var(--font-family); }
body.theme-modern .lp-header, body.theme-dark .lp-header {
  background: color-mix(in srgb, var(--stein) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--linie);
}
body.theme-modern .lp-brand, body.theme-dark .lp-brand { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; font-size: 20px; }
body.theme-modern .lp-brand .dot, body.theme-dark .lp-brand .dot {
  width: 26px; height: 26px; border-radius: 8px; background: var(--tanne) !important; box-shadow: none !important; position: relative; display: inline-block; vertical-align: -7px; margin-right: 6px;
}
body.theme-modern .lp-brand .dot::after, body.theme-dark .lp-brand .dot::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--honig); right: 5px; bottom: 5px; }
body.theme-modern .lp-brand .dot::before, body.theme-dark .lp-brand .dot::before { content: ""; position: absolute; left: 6px; top: 6px; width: 12px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.9); box-shadow: 0 6px 0 rgba(255,255,255,.55); }
body.theme-modern .lp-nav a.lp-link, body.theme-dark .lp-nav a.lp-link { font-weight: 560; border-radius: 9px; padding: 7px 11px; transition: background .15s, color .15s; }
body.theme-modern .lp-nav a.lp-link:hover, body.theme-dark .lp-nav a.lp-link:hover { background: var(--tanne-soft); color: var(--tanne-dark); }

/* Hero: zweispaltig, hell, ruhig. Links die Aussage, rechts der echte Schichtplan. */
body.theme-modern .lp-hero, body.theme-dark .lp-hero {
  background: var(--stein); color: var(--text-warm); padding: 84px 32px 76px;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; align-items: center;
  max-width: 1240px; margin: 0 auto; text-align: left;
}
body.theme-modern .lp-hero::before, body.theme-modern .lp-hero::after, body.theme-dark .lp-hero::before, body.theme-dark .lp-hero::after { display: none; }
body.theme-modern .lp-hero-content, body.theme-dark .lp-hero-content { text-align: left; margin: 0; max-width: none; }
body.theme-modern .lp-badge, body.theme-dark .lp-badge {
  background: var(--tanne-soft); border: 0; color: var(--tanne-dark); backdrop-filter: none; font-weight: 650; font-size: 13.5px; text-transform: none; letter-spacing: 0;
}
body.theme-dark .lp-badge { color: var(--tanne); }
body.theme-modern .lp-hero h1, body.theme-dark .lp-hero h1 {
  font-family: var(--font-display); font-size: clamp(38px, 4.8vw, 62px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700;
  max-width: 14em; margin-left: 0; margin-right: 0; background: none; color: var(--text-warm); -webkit-text-fill-color: currentColor;
}
body.theme-modern .lp-hero p.lead, body.theme-dark .lp-hero p.lead { font-size: 19px; line-height: 1.55; color: var(--text-soft-warm); max-width: 33em; margin-left: 0; margin-right: 0; }
body.theme-modern .lp-hero-actions, body.theme-dark .lp-hero-actions { justify-content: flex-start; }
body.theme-modern .lp-btn-white, body.theme-modern .lp-btn-ghost, body.theme-dark .lp-btn-white, body.theme-dark .lp-btn-ghost { border-radius: 11px; padding: 14px 26px; font-weight: 650; backdrop-filter: none; }
body.theme-modern .lp-btn-white, body.theme-dark .lp-btn-white { background: var(--tanne); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 2px 8px rgba(27,54,45,.25); border: 1px solid var(--tanne-dark); }
body.theme-dark .lp-btn-white { color: #10201a; }
body.theme-modern .lp-btn-white:hover, body.theme-dark .lp-btn-white:hover { background: var(--tanne-dark); transform: none; }
body.theme-modern .lp-btn-ghost, body.theme-dark .lp-btn-ghost { background: transparent; color: var(--text-warm); border: 1px solid var(--linie-2); }
body.theme-modern .lp-btn-ghost:hover, body.theme-dark .lp-btn-ghost:hover { background: var(--tanne-soft); border-color: var(--tanne); color: var(--tanne-dark); }
body.theme-modern .lp-stats-bar, body.theme-dark .lp-stats-bar { border-top: 1px solid var(--linie); justify-content: flex-start; gap: 40px; margin-top: 44px; padding-top: 26px; }
body.theme-modern .lp-stats-bar .stat, body.theme-dark .lp-stats-bar .stat { text-align: left; }
body.theme-modern .lp-stats-bar .stat-num, body.theme-dark .lp-stats-bar .stat-num { font-family: var(--font-display); font-weight: 650; letter-spacing: -0.03em; color: var(--tanne-dark); font-size: 34px; }
body.theme-dark .lp-stats-bar .stat-num { color: var(--tanne); }
body.theme-modern .lp-stats-bar .stat-label, body.theme-dark .lp-stats-bar .stat-label { color: var(--text-soft-warm); text-transform: none; letter-spacing: 0; font-size: 14px; }
body.theme-modern .lp-mockup-wrap, body.theme-dark .lp-mockup-wrap { margin: 0; padding: 0; max-width: none; width: 100%; }
body.theme-modern .lp-mockup, body.theme-dark .lp-mockup {
  border-radius: 16px; border: 1px solid var(--linie); background: var(--color-surface);
  box-shadow: var(--shadow-lg); transform: none; transition: none;
}
body.theme-modern .lp-mockup:hover, body.theme-dark .lp-mockup:hover { transform: none; }
body.theme-modern .lp-mockup-grid th, body.theme-dark .lp-mockup-grid th { background: var(--tanne-dark); color: #fff; text-transform: none; letter-spacing: 0; }
@media (max-width: 980px) {
  body.theme-modern .lp-hero, body.theme-dark .lp-hero { grid-template-columns: 1fr; gap: 40px; padding: 48px 20px 48px; }
}

body.theme-modern .lp-section, body.theme-dark .lp-section { padding: 96px 24px; }
body.theme-modern .lp-section-alt, body.theme-dark .lp-section-alt { background: var(--stein-2); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
body.theme-modern .lp-section-head h2, body.theme-dark .lp-section-head h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
body.theme-modern .lp-section-head p, body.theme-dark .lp-section-head p { font-size: 17.5px; color: var(--text-soft-warm); }
body.theme-modern .lp-section-head .lp-eyebrow, body.theme-dark .lp-section-head .lp-eyebrow, .lp-eyebrow, .lp-kicker { text-transform: none !important; letter-spacing: 0 !important; }

body.theme-modern .lp-step, body.theme-modern .lp-detail-item, body.theme-modern .perms-card, body.theme-modern .az-item,
body.theme-dark .lp-step, body.theme-dark .lp-detail-item, body.theme-dark .perms-card, body.theme-dark .az-item {
  border-radius: 16px; border: 1px solid var(--linie); background: var(--color-surface); box-shadow: none;
}
body.theme-modern .lp-step .lp-step-num, body.theme-dark .lp-step .lp-step-num { background: var(--tanne-soft); color: var(--tanne-dark); font-family: var(--font-display); }
body.theme-dark .lp-step .lp-step-num { color: var(--tanne); }
body.theme-modern .az-item, body.theme-dark .az-item { border-radius: 12px; }
body.theme-modern .lp-feature, body.theme-dark .lp-feature { border-radius: 18px !important; }
body.theme-modern .lp-feature:not(.lp-bento-dark):not(.lp-bento-accent), body.theme-dark .lp-feature:not(.lp-bento-dark):not(.lp-bento-accent) { box-shadow: none; background: var(--color-surface); }
body.theme-modern .lp-feature.lp-bento-dark, body.theme-dark .lp-feature.lp-bento-dark { background: var(--tanne-deep); border-color: var(--tanne-deep); }
body.theme-modern .lp-feature.lp-bento-accent, body.theme-dark .lp-feature.lp-bento-accent { background: var(--tanne); border-color: var(--tanne); }
body.theme-dark .lp-feature.lp-bento-accent h3, body.theme-dark .lp-feature.lp-bento-accent p, body.theme-dark .lp-feature.lp-bento-accent .lp-feature-icon { color: #10201a; }
body.theme-dark .lp-feature.lp-bento-dark { background: #0f1210; }
body.theme-modern .lp-feature:hover, body.theme-dark .lp-feature:hover { box-shadow: var(--shadow-md); }
body.theme-modern .lp-feature-icon, body.theme-dark .lp-feature-icon { border-radius: 12px; }
body.theme-modern .sec-item .sec-icon, body.theme-dark .sec-item .sec-icon { background: var(--tanne-soft); color: var(--tanne-dark); }
body.theme-dark .sec-item .sec-icon { color: var(--tanne); }
body.theme-modern .price-card-v2, body.theme-dark .price-card-v2 { border-radius: 18px; border: 1px solid var(--linie); box-shadow: none; background: var(--color-surface); }
body.theme-modern .price-card-v2.is-highlighted, body.theme-dark .price-card-v2.is-highlighted { border: 2px solid var(--tanne); box-shadow: var(--shadow-md); }
body.theme-modern .lp-faq-item, body.theme-dark .lp-faq-item { border-radius: 14px; border: 1px solid var(--linie); box-shadow: none; background: var(--color-surface); }
body.theme-modern .lp-cta, body.theme-dark .lp-cta { background: var(--tanne-deep); border-radius: 22px; }
body.theme-dark .lp-cta { background: #0f1210; border: 1px solid var(--linie); }
body.theme-modern .lp-footer, body.theme-dark .lp-footer { border-top: 1px solid var(--linie); }

/* ---------- Anmeldung / Registrierung: tiefes Tannengrün, weiße Karte ---------- */
body.auth-body, body.theme-modern.auth-body, body.theme-dark.auth-body {
  --auth-primary: #2f5b4f; --auth-primary-2: #234539; --auth-bg: #1b362d; --auth-bg-2: #15291f;
  font-family: var(--font-family);
  background: radial-gradient(900px 520px at 50% -10%, #2a5446 0%, transparent 65%), #1b362d;
}
.auth-page::before, .auth-page::after { display: none !important; }
.btn-primary, body.theme-modern.auth-body .btn, body.theme-modern.auth-body button[type=submit] {
  background: #2f5b4f !important; background-image: none !important; border: 1px solid #234539 !important; border-radius: 11px !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 2px 8px rgba(27,54,45,.28) !important;
}
.btn-primary:hover { background: #234539 !important; transform: none; }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  body.theme-modern .btn, body.theme-dark .btn { transition: none; }
}

/* =====================================================================
   Sichtbares Scrollen: echte Scrollbalken, „weiter unten“-Hinweis, Nach-oben
   ===================================================================== */
html { scrollbar-width: auto; scrollbar-color: #b3ad9e #e8e4da; }
html:has(body.theme-dark) { scrollbar-color: #4a5249 #1a1e1b; }
@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar { width: 14px; height: 14px; }
  ::-webkit-scrollbar-track { background: #e8e4da; }
  ::-webkit-scrollbar-thumb { background: #b3ad9e; border-radius: 10px; border: 3px solid #e8e4da; }
  ::-webkit-scrollbar-thumb:hover { background: var(--ix, #2f5b4f); }
}
body.theme-modern .sidebar,
body.theme-modern .sidebar nav { scrollbar-width: auto; scrollbar-color: rgba(60,48,20,.28) rgba(60,48,20,.06); }
@supports not (scrollbar-color: auto) {
  body.theme-modern .sidebar::-webkit-scrollbar { width: 10px; }
  body.theme-modern .sidebar::-webkit-scrollbar-track { background: rgba(60,48,20,.06); border-radius: 10px; }
  body.theme-modern .sidebar::-webkit-scrollbar-thumb { background: rgba(60,48,20,.28); border-radius: 10px; }
}
.table-scroll { scrollbar-width: auto; scrollbar-color: #b3ad9e #e8e4da; }
.table-scroll, table.data-table {
  background:
    linear-gradient(to right, var(--color-surface, #fff) 30%, rgba(255,255,255,0)) left center / 28px 100% no-repeat local,
    linear-gradient(to left, var(--color-surface, #fff) 30%, rgba(255,255,255,0)) right center / 28px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(47,91,79,.22), rgba(91,84,240,0)) left center / 12px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(47,91,79,.22), rgba(91,84,240,0)) right center / 12px 100% no-repeat scroll;
}

/* Sidebar: Verlauf + animierter Pfeil, solange darunter noch Menüpunkte liegen */
.sb-more {
  position: sticky; bottom: -18px; height: 64px; margin: -64px -12px -18px; z-index: 5;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 10px;
  background: linear-gradient(to top, var(--sidebar-bg, #faf9f6) 28%, rgba(250,249,246,0));
  border-radius: 0 0 24px 24px; pointer-events: none; opacity: 0; transition: opacity .25s ease;
}
.sb-more.show { opacity: 1; }
.sb-more button {
  pointer-events: auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--linie-2, #d4cfc3);
  background: var(--color-surface, #fff); color: var(--tanne-dark, #234539); display: grid; place-items: center; cursor: pointer;
  animation: sbBounce 1.6s ease-in-out infinite;
}
.sb-more button:hover { background: rgba(47,91,79,.26); }
.sb-more svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@keyframes sbBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (max-width: 900px) { .sb-more { bottom: 0; margin-bottom: 0; background: linear-gradient(to top, var(--sidebar-bg, #faf9f6) 28%, rgba(250,249,246,0)); } }

/* Nach-oben-Knopf */
.to-top {
  position: fixed; right: 18px; bottom: 82px; z-index: 60; width: 46px; height: 46px; border-radius: 50%;
  border: 0; cursor: pointer; color: #fff; background: var(--ix, #2f5b4f);
  box-shadow: 0 10px 26px -6px rgba(47,91,79,.65); display: grid; place-items: center;
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { filter: brightness(1.1); }
.to-top svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 901px) { .to-top { bottom: 24px; right: 24px; } }

/* ---------- Verlängern in Sekunden (Startseite) ---------- */
.renew-steps { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: stretch; }
.renew-step { background: #fff; border: 1px solid rgba(47,91,79,.14); border-radius: 20px; padding: 22px 20px; text-align: center; box-shadow: 0 10px 30px -18px rgba(33,31,110,.35); }
.renew-step h3 { font-size: 16px; margin: 10px 0 6px; }
.renew-step p { font-size: 13.5px; margin: 0; color: var(--color-text-soft, #5b6275); line-height: 1.5; }
.renew-ic { width: 46px; height: 46px; border-radius: 14px; display: inline-grid; place-items: center; background: rgba(47,91,79,.12); color: var(--ix, #2f5b4f); }
.renew-ic svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.renew-arrow { align-self: center; font-size: 22px; color: var(--ix, #2f5b4f); font-weight: 700; }
.renew-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.renew-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: rgba(34,160,107,.12); color: #17724c; font-size: 13.5px; font-weight: 600; }
.renew-chip svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) { .renew-steps { grid-template-columns: 1fr; } .renew-arrow { transform: rotate(90deg); justify-self: center; } }

/* ---------- Verlängerungs-Karte (Dashboard) & Hinweis (Laufzeit-Seite) ---------- */
.renew-cta { display: flex; align-items: center; gap: 16px; padding: 16px 18px; margin-bottom: 18px; border-radius: 18px; background: linear-gradient(135deg, rgba(47,91,79,.12), rgba(47,91,79,.04)); border: 1px solid rgba(47,91,79,.28); }
.renew-cta.is-expired { background: linear-gradient(135deg, rgba(220,60,60,.12), rgba(220,60,60,.04)); border-color: rgba(220,60,60,.35); }
.renew-cta-ic { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--ix, #2f5b4f); color: #fff; }
.renew-cta.is-expired .renew-cta-ic { background: #d64545; }
.renew-cta-ic svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.renew-cta-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.renew-cta-body b { font-size: 15.5px; }
.renew-cta-body span { font-size: 13.5px; line-height: 1.45; opacity: .85; }
.renew-cta-btn { flex: none; white-space: nowrap; }
@media (max-width: 700px) { .renew-cta { flex-wrap: wrap; } .renew-cta-btn { width: 100%; text-align: center; } }
.renew-trust { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: rgba(34,160,107,.1); color: #17724c; font-size: 13.5px; font-weight: 600; }
.renew-trust svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 3; flex: none; }

/* ---------- Anmeldung: Feinschliff (ruhige Karte, keine Glanz-/Schwebe-Effekte) ---------- */
.ambient, .ambient-a, .ambient-b, .ambient-c { display: none !important; }
.auth-card::before, .auth-card::after, .brand-mark::after, .btn-primary::before, .btn-primary::after { display: none !important; animation: none !important; }
.auth-card-wrap { animation: none; perspective: none; }
.auth-card {
  background: #fffefc; border: 1px solid rgba(255,255,255,.9); border-radius: 20px;
  box-shadow: 0 30px 70px -24px rgba(8, 20, 15, .55), 0 2px 6px rgba(8, 20, 15, .18);
}
.brand-mark { background: #2f5b4f; border-radius: 9px; width: 32px; height: 32px; box-shadow: 0 0 0 1px rgba(255,255,255,.16); }
.brand-mark span { width: 9px; height: 9px; background: #d9962b; box-shadow: none; transform: translate(5px, 5px); }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.auth-title { font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em; color: #272a28; }
.auth-subtitle { color: #5e6259; }
.secure-pill { text-transform: none; letter-spacing: 0; font-size: .8rem; }
.secure-dot { animation: none; background: #2f7d4f; box-shadow: none; }
.auth-tabs { background: #ece8df; border-radius: 12px; }
.auth-tab { border-radius: 9px; color: #5e6259; }
.auth-tab[aria-selected="true"] { color: #272a28; box-shadow: 0 1px 2px rgba(60,48,20,.14); }
.form-control, .auth-card input[type=text], .auth-card input[type=email], .auth-card input[type=password] { border-radius: 10px; border-color: #d4cfc3; }
.form-group label { font-weight: 600; color: #3b3f39; }
.trial-icon { background: #2f5b4f; box-shadow: none; }
.captcha-box { background: #f3f1ed; }
.auth-footer-link a, .auth-footer-main a, .auth-switch { color: #2f5b4f; font-weight: 700; }
.auth-footer-link a:hover, .auth-footer-main a:hover { color: #234539; }
.trust-row svg { color: #2f7d4f; }
.lp-lang-btn { font-family: var(--font-family); }

/* ---------- Kleinteile: keine Versalien-Etiketten, ruhige Auswahlfelder ---------- */
body.theme-modern .company-badge-select, body.theme-modern .company-badge select,
body.theme-dark .company-badge-select, body.theme-dark .company-badge select {
  border: 0 !important; box-shadow: none !important; background: transparent !important; border-radius: 8px;
}

/* Icons in Buttons/Zeilen (ersetzen die früheren Emoji) */
.btn .nav-ico.ico-inl, .user-menu-item .nav-ico, .sl-tool .nav-ico { width: 1.1em; height: 1.1em; vertical-align: -.2em; }
.seat-choice-btn .nav-ico { width: 18px; height: 18px; }
.pay-icon .nav-ico { width: 26px; height: 26px; color: var(--tanne); }
.push-prompt-icon .nav-ico { width: 34px; height: 34px; color: var(--tanne); }
.sl-watch .nav-ico { width: .95em; height: .95em; }

/* Banner „Neuigkeiten“ */
body.theme-modern .wn-banner { background: var(--tanne-soft); border: 1px solid color-mix(in srgb, var(--tanne) 22%, transparent); color: var(--tanne-dark); }
body.theme-modern .wn-banner .btn-outline { color: var(--tanne-dark); }
body.theme-dark .wn-banner { background: var(--tanne-soft); border: 1px solid color-mix(in srgb, var(--tanne) 30%, transparent); color: var(--text-warm); }

/* Dark: keine Leuchteffekte */
body.theme-dark .badge-success, body.theme-dark .badge-warning, body.theme-dark .badge-danger,
body.theme-dark .btn-outline:hover:not(:disabled), body.theme-dark .nav-badge-new, body.theme-dark .bottom-nav-item.active { box-shadow: none !important; text-shadow: none !important; }
body.theme-dark .nav-badge-new { background: var(--honig); color: #2a1c02; }
body.theme-dark .card { box-shadow: none; }
body.theme-dark .alert, body.theme-dark .site-banner { box-shadow: none; }
.brand-mark::before { content: ""; position: absolute; left: 8px; top: 9px; width: 14px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.92); box-shadow: 0 7px 0 rgba(255,255,255,.55); }

/* Startseiten-Kopfzeile: passt auch bei 1280–1360 px ohne Überlauf */
body.theme-modern .lp-nav a.lp-link, body.theme-dark .lp-nav a.lp-link { padding: 7px 8px; font-size: 14px; }
body.theme-modern .lp-brand, body.theme-dark .lp-brand { font-size: 19px; white-space: nowrap; }
body.theme-modern .lp-section-alt, body.theme-dark .lp-section-alt { border-top: 0; border-bottom: 0; border-radius: 28px; }

/* Mobile: Menü-Knopf */
@media (max-width: 900px) {
  body.theme-modern .nav-toggle-btn, body.theme-dark .nav-toggle-btn {
    background: var(--color-surface); color: var(--text-warm); border: 1px solid var(--linie); border-radius: 10px; width: 40px; height: 40px;
    display: inline-grid; place-items: center; padding: 0;
  }
  body.theme-modern .nav-toggle-btn:hover, body.theme-dark .nav-toggle-btn:hover { background: var(--tanne-soft); }
  .nav-toggle-btn .nav-ico { width: 20px; height: 20px; }
}

body:not(.theme-dark) #mass-action-bar #mass-assign-btn { background: var(--tanne); color: #fff; box-shadow: none; }

/* ---------- Feinschliff nach Designer-Durchgang ---------- */
/* Rollen-Hinweis in der Seitenleiste: drei ruhige Töne statt Gelb/Blau/Lila */
.sidebar .nav-role { letter-spacing: 0; font-weight: 650; }
body.theme-modern .sidebar .nav-role-company_admin { background: var(--honig-soft); color: var(--honig-ink); }
body.theme-modern .sidebar .nav-role-personal { background: var(--tanne-soft); color: var(--tanne-dark); }
body.theme-modern .sidebar .nav-role-super_admin { background: #e6e2d8; color: #2b2f2c; }
body.theme-dark .sidebar .nav-role-company_admin { background: var(--honig-soft); color: var(--honig); }
body.theme-dark .sidebar .nav-role-personal { background: var(--tanne-soft); color: var(--tanne); }
body.theme-dark .sidebar .nav-role-super_admin { background: #2b312c; color: #d9d6cd; }

/* Keine Farbverläufe auf Buttons und Flächen der Oberfläche (höchste Spezifität der Altregeln schlagen) */
body.theme-modern .btn, body.theme-dark .btn { background-image: none !important; }
body.theme-modern .btn.btn-success, body.theme-dark .btn.btn-success { background-color: var(--color-success) !important; color: #fff; }
body.theme-dark .btn.btn-success { color: #0f2418; }
body.theme-modern .btn.btn-danger, body.theme-dark .btn.btn-danger { background-color: var(--color-danger) !important; color: #fff; }
body.theme-dark .btn.btn-danger { color: #2b0f0a; }
body.theme-modern .btn.btn-outline, body.theme-dark .btn.btn-outline { background-color: var(--color-surface) !important; }
body.theme-modern .btn.btn-outline:hover, body.theme-dark .btn.btn-outline:hover { background-color: var(--tanne-soft) !important; }
body.theme-modern .btn:not(.btn-outline):not(.btn-success):not(.btn-danger):not(.btn-ghost) { background-color: var(--tanne) !important; }
body.theme-modern .btn:not(.btn-outline):not(.btn-success):not(.btn-danger):not(.btn-ghost):hover { background-color: var(--tanne-dark) !important; }
body.theme-dark .btn:not(.btn-outline):not(.btn-success):not(.btn-danger):not(.btn-ghost) { background-color: var(--tanne) !important; }
body.theme-dark .btn:not(.btn-outline):not(.btn-success):not(.btn-danger):not(.btn-ghost):hover { background-color: var(--tanne-dark) !important; }

/* Ruhiger Seitengrund: kein farbiger Schimmer oben rechts */
body.theme-modern .main, body.theme-dark .main { background: transparent; }
body.theme-modern, body.theme-dark { background-image: none; }

/* Dashboard-Karte „Nächste Schicht“: ohne Deko-Kreis */
.next-shift::after { display: none; }
.next-shift { border-radius: 16px; }

/* Hinweiskarten: flach statt Verlauf */
body.theme-modern .ev-card, body.theme-modern .ev-box { background-image: none; }
.nav-badge-new { background: var(--honig) !important; color: #2a1c02 !important; box-shadow: none !important; animation: none !important; }
body.theme-modern .ev-card.is-warn { background: var(--honig-soft); border-color: color-mix(in srgb, var(--honig) 40%, transparent); }
body.theme-modern .ev-card.is-ok { background: var(--color-success-soft); }
body.theme-dark .ev-card.is-warn { background: var(--honig-soft); }
.ev-ic { background: var(--honig); color: #2a1c02; }
.ev-card.is-ok .ev-ic { background: var(--color-success); color: #fff; }
.ev-suggest { color: var(--honig-ink); }

/* ============================================================================
   STARTSEITE: ruhiger Rhythmus (ein Abstand, durchgehende Bänder, lesbare Schlussfläche)
   ============================================================================ */
@media (min-width: 981px) {
  body.lp-page .lp-header-inner { max-width: 1240px; margin: 0 auto; padding: 12px 24px; gap: 16px; flex-wrap: nowrap; }
  body.lp-page .lp-nav { flex: 1 1 auto; min-width: 0; justify-content: center; gap: 0; }
  body.lp-page .lp-header-actions { flex: none; gap: 8px; }
  body.lp-page .lp-header-actions .btn { white-space: nowrap; }
}
@media (max-width: 980px) {
  body.lp-page .lp-header-inner { flex-wrap: nowrap; padding: 10px 16px; gap: 8px; }
  body.lp-page .lp-header-actions { gap: 6px; margin-left: auto; }
  body.lp-page .lp-header-actions .btn { padding: 7px 12px; font-size: 13px; white-space: nowrap; }
  body.lp-page .lp-brand { font-size: 17px; }
  body.lp-page .lp-section { padding: 52px 18px; }
}
@media (max-width: 1500px) { body.lp-page .lp-nav a[href="#details"], body.lp-page .lp-nav a[href="#permissions"] { display: none; } }
@media (max-width: 1180px) { body.lp-page .lp-nav { display: none; } }

/* Abschnitte: einheitlich 72 px innen; hintere Abschnitte gleicher Art rücken ohne Doppelabstand an */
body.lp-page .lp-section { padding: 72px 24px; }
body.lp-page .lp-section:not(.lp-section-alt) + .lp-section:not(.lp-section-alt),
body.lp-page .lp-section-alt + .lp-section-alt { padding-top: 0; }
body.lp-page .lp-section-head { max-width: 760px; margin-bottom: 40px; }
body.lp-page .lp-section-head h2 { font-size: clamp(28px, 3.2vw, 38px); text-wrap: balance; }
body.lp-page .lp-section-head p { max-width: 36em; margin-left: auto; margin-right: auto; }

/* Alternierende Abschnitte als durchgehendes Band über die volle Breite (statt eingerückter Kasten) */
body.theme-modern .lp-section-alt, body.theme-dark .lp-section-alt {
  background: var(--stein-2); border: 0; border-radius: 0;
  box-shadow: 0 0 0 100vmax var(--stein-2); clip-path: inset(0 -100vmax);
}
body.theme-dark .lp-section-alt { background: #191d1a; box-shadow: 0 0 0 100vmax #191d1a; }

/* Schlussfläche "Bereit loszulegen?" — Schrift war auf dunklem Grund unlesbar (Überschriften-Regel überschrieb Weiß) */
body.theme-modern .lp-cta, body.theme-dark .lp-cta { padding: 64px 32px; border-radius: 20px; max-width: 1112px; }
body.theme-modern .lp-cta h2, body.theme-dark .lp-cta h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 12px; }
body.theme-modern .lp-cta p, body.theme-dark .lp-cta p { color: rgba(255,255,255,.82); font-size: 17px; margin: 0 auto 28px; max-width: 32em; }
body.theme-modern .lp-cta .btn, body.theme-dark .lp-cta .btn, .lp-cta a.btn {
  background-color: var(--honig) !important; color: #2a1c02 !important; border: 0 !important; padding: 14px 30px; font-size: 16px; box-shadow: none;
}
body.theme-modern .lp-cta .btn:hover, .lp-cta a.btn:hover { background-color: #e6a940 !important; }
body.lp-page .lp-footer { margin-top: 24px; max-width: 1240px; margin-left: auto; margin-right: auto; }
body.theme-modern .lp-cta .lp-btn-white, body.theme-dark .lp-cta .lp-btn-white {
  background: var(--honig); color: #2a1c02; border: 0; padding: 14px 32px; font-size: 16px; box-shadow: none; display: inline-block;
}
body.theme-modern .lp-cta .lp-btn-white:hover, body.theme-dark .lp-cta .lp-btn-white:hover { background: #e6a940; }
@media (max-width: 980px) { body.lp-page .lp-header-actions .btn-outline { display: none; } }
.lp-detail-item:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ============================================================================
   MENÜ-SYSTEM "STUBE"
   Raster: 4 px. Zeilenhöhe 38 px (mobil 46 px), Symbole 20 px / Strich 1.7,
   Radius 10 px, Übergänge 150 ms. Aktiver Punkt = sanfte Tönung + schmaler Balken.
   ============================================================================ */
body.theme-modern, body.theme-dark {
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px;
  --t-fast: 150ms; --ease: cubic-bezier(.2, .7, .2, 1);
  --sidebar-w: 252px;
  --page-max: 1296px;
}
.nav-ico { stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Seitenleiste (Desktop) ---------- */
@media (min-width: 901px) {
  body.theme-modern .sidebar, body.theme-dark .sidebar { width: var(--sidebar-w); padding: 18px 12px 12px; gap: 0; }
  body.theme-modern .sidebar .brand, body.theme-dark .sidebar .brand { padding: 2px 8px 18px; gap: 10px; }
  body.theme-modern .sidebar nav, body.theme-dark .sidebar nav { gap: 0; padding-bottom: 8px; }
}
/* Rolle: ruhige Kontextzeile statt farbiger Fläche */
body.theme-modern .sidebar .nav-role, body.theme-dark .sidebar .nav-role {
  margin: 0 4px 10px; padding: 7px 10px; gap: 8px; border-radius: 10px; font-size: 12.5px; font-weight: 600;
  background: transparent !important; color: var(--text-soft-warm) !important; border: 1px solid var(--linie);
}
body.theme-modern .sidebar .nav-role .nav-ico, body.theme-dark .sidebar .nav-role .nav-ico { color: var(--tanne); width: 16px; height: 16px; }
/* Suche */
body.theme-modern .sidebar .nav-search-btn, body.theme-dark .sidebar .nav-search-btn {
  margin: 0 4px 6px; width: calc(100% - 8px); height: 38px; padding: 0 10px; border-radius: 10px; font-size: 13.5px;
  background: var(--color-surface); border: 1px solid var(--linie); color: var(--sidebar-muted);
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
body.theme-modern .sidebar .nav-search-btn:hover, body.theme-dark .sidebar .nav-search-btn:hover { background: var(--color-surface); border-color: var(--linie-2); color: var(--text-warm); }
body.theme-modern .sidebar .nav-search-btn kbd, body.theme-dark .sidebar .nav-search-btn kbd { margin-left: auto; font: 600 11px/1 var(--font-family); padding: 3px 6px; border-radius: 6px; border: 1px solid var(--linie); background: var(--stein-2); color: var(--sidebar-muted); opacity: 1; }
/* Gruppen */
body.theme-modern .sidebar .nav-section-title, body.theme-dark .sidebar .nav-section-title {
  margin: 16px 4px 4px; padding: 6px 8px; font-size: 12px; font-weight: 650; color: var(--sidebar-muted); border-radius: 8px;
}
body.theme-modern .sidebar .nav-section-title.is-toggle:hover, body.theme-dark .sidebar .nav-section-title.is-toggle:hover { background: transparent; color: var(--text-warm); }
body.theme-modern .sidebar .nav-grp-chev, body.theme-dark .sidebar .nav-grp-chev { width: 6px; height: 6px; opacity: .55; }
body.theme-modern .sidebar .nav-items, body.theme-dark .sidebar .nav-items { gap: 1px; padding: 0 4px; }
/* Einträge */
body.theme-modern .sidebar a.nav-link, body.theme-modern .sidebar summary.nav-link, body.theme-modern .sidebar button.nav-link,
body.theme-dark .sidebar a.nav-link, body.theme-dark .sidebar summary.nav-link, body.theme-dark .sidebar button.nav-link {
  min-height: 38px; padding: 0 10px; gap: 12px; border-radius: 10px; font-size: 14px; font-weight: 520; color: var(--sidebar-text);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
body.theme-modern .sidebar .nav-link .nav-ico, body.theme-dark .sidebar .nav-link .nav-ico { width: 20px; height: 20px; flex: 0 0 20px; color: var(--sidebar-muted); stroke: currentColor; transition: color var(--t-fast) var(--ease); }
body.theme-modern .sidebar a.nav-link:hover .nav-ico, body.theme-dark .sidebar a.nav-link:hover .nav-ico { color: var(--text-warm); }
body.theme-modern .sidebar a.nav-link.active .nav-ico, body.theme-dark .sidebar a.nav-link.active .nav-ico { color: var(--tanne); stroke: currentColor; }
body.theme-modern .sidebar a.nav-link.active, body.theme-dark .sidebar a.nav-link.active { color: var(--sidebar-active-text); font-weight: 650; }
/* Aktiver Balken am Schieber */
body.theme-modern .sidebar-active-slider::before, body.theme-dark .sidebar-active-slider::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 18px; transform: translateY(-50%); border-radius: 0 3px 3px 0; background: var(--tanne);
}
/* Unterpunkte (Einstellungen) mit Führungslinie */
body.theme-modern .sidebar .nav-sublink, body.theme-dark .sidebar .nav-sublink { margin-left: 20px; padding-left: 14px; min-height: 34px; font-size: 13.5px; border-radius: 8px; box-shadow: inset 1px 0 0 var(--linie); }
body.theme-modern .sidebar .nav-sublink.active, body.theme-dark .sidebar .nav-sublink.active { box-shadow: inset 2px 0 0 var(--tanne); }
/* Abmelden: abgesetzt am Ende */
body.theme-modern .sidebar .nav-logout, body.theme-dark .sidebar .nav-logout { margin-top: 12px; color: var(--sidebar-muted); border-top: 1px solid var(--linie); border-radius: 0 0 10px 10px; padding-top: 4px; min-height: 44px; }
body.theme-modern .sidebar .nav-logout:hover, body.theme-dark .sidebar .nav-logout:hover { color: var(--color-danger); background: transparent; }
body.theme-modern .sidebar .nav-logout:hover .nav-ico, body.theme-dark .sidebar .nav-logout:hover .nav-ico { color: var(--color-danger); }
/* Zähler und Hinweis-Punkte */
.nav-dot { background: var(--honig) !important; box-shadow: none !important; animation: none !important; }
body.theme-modern .sidebar .nav-badge-new, body.theme-dark .sidebar .nav-badge-new { margin-left: auto; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; letter-spacing: 0; }
/* Einklapp-Knopf und Fußzeile */
body.theme-modern .sidebar-mini-btn, body.theme-dark .sidebar-mini-btn { background: transparent; color: var(--sidebar-muted); border: 1px solid transparent; }
body.theme-modern .sidebar-mini-btn:hover, body.theme-dark .sidebar-mini-btn:hover { background: var(--sidebar-hover); color: var(--text-warm); border-color: var(--linie); }
.sidebar-footer { color: var(--sidebar-muted); font-size: 12px; padding: 10px 12px 2px; }
/* Weiter-unten-Hinweis: ruhig, ohne Hüpfen */
.sb-more button { animation: none; width: 30px; height: 30px; box-shadow: var(--shadow-sm); }

/* Eingeklappt: Tooltips statt nur Titel */
@media (min-width: 901px) {
  body.nav-mini .sidebar { width: 72px; }
  body.nav-mini .sidebar a.nav-link { position: relative; }
  body.nav-mini .sidebar a.nav-link:hover::after {
    content: attr(title); position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); z-index: 300; white-space: nowrap;
    padding: 6px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: #fff; background: var(--tanne-deep); box-shadow: var(--shadow-md); pointer-events: none;
  }
  body.nav-mini .sidebar .nav-role { border: 0; justify-content: center; }
  body.nav-mini .sidebar .nav-items { padding: 0; }
}

/* ---------- Kopfzeile ---------- */
@media (min-width: 901px) {
  body.theme-modern .topbar, body.theme-dark .topbar {
    position: sticky; top: 0; z-index: 40; padding: 18px max(36px, calc((100% - var(--page-max)) / 2)) 10px;
    background: color-mix(in srgb, var(--stein) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transition: box-shadow var(--t-fast) var(--ease);
  }
  body.theme-modern .topbar.is-scrolled, body.theme-dark .topbar.is-scrolled { box-shadow: 0 1px 0 var(--linie); }
  body.theme-modern .content, body.theme-dark .content { max-width: none; margin: 0; padding-left: max(36px, calc((100% - var(--page-max)) / 2)); padding-right: max(36px, calc((100% - var(--page-max)) / 2)); }
}
/* Konto-Menü */
body.theme-modern .user-menu-trigger, body.theme-dark .user-menu-trigger {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid transparent; background: transparent; cursor: pointer; font: inherit; color: var(--text-warm);
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
body.theme-modern .user-menu-trigger:hover, body.theme-dark .user-menu-trigger:hover, .user-menu.open .user-menu-trigger { background: var(--color-surface); border-color: var(--linie); }
body.theme-modern .avatar, body.theme-dark .avatar { background: var(--tanne); color: #fff; font-family: var(--font-display); font-weight: 650; }
body.theme-dark .avatar { color: #10201a; }
.user-menu-name { font-weight: 600; font-size: 14px; }
body.theme-modern .user-menu-dropdown, body.theme-dark .user-menu-dropdown {
  min-width: 264px; padding: 6px; border-radius: 14px; border: 1px solid var(--linie); background: var(--color-surface); box-shadow: var(--shadow-lg);
}
.user-menu.open .user-menu-dropdown { animation: ddIn 140ms var(--ease); transform-origin: top right; }
@keyframes ddIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
body.theme-modern .user-menu-header, body.theme-dark .user-menu-header { padding: 10px 12px 12px; border-bottom: 1px solid var(--linie); margin-bottom: 6px; }
body.theme-modern .user-menu-fullname, body.theme-dark .user-menu-fullname { font-family: var(--font-display); font-size: 15px; font-weight: 650; }
body.theme-modern .user-menu-item, body.theme-dark .user-menu-item { min-height: 38px; padding: 0 12px; gap: 10px; border-radius: 8px; font-size: 14px; font-weight: 560; transition: background var(--t-fast) var(--ease); }
body.theme-modern .user-menu-item:hover, body.theme-dark .user-menu-item:hover { background: var(--stein-2); }
body.theme-dark .user-menu-item:hover { background: #262b27; }
body.theme-modern .user-menu-item .nav-ico, body.theme-dark .user-menu-item .nav-ico { color: var(--sidebar-muted); }
body.theme-modern .user-menu-item-danger, body.theme-dark .user-menu-item-danger { color: var(--color-danger); }
body.theme-modern .user-menu-divider, body.theme-dark .user-menu-divider { height: 1px; background: var(--linie); margin: 6px 0; }
body.theme-modern .user-menu-lang-select, body.theme-dark .user-menu-lang-select { border-radius: 8px; }

/* Seiteneinblendung: eine ruhige Bewegung beim Laden, nichts Weiteres */
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
body.theme-modern .content, body.theme-dark .content { animation: pageIn 220ms var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  body.theme-modern .content, body.theme-dark .content, .user-menu.open .user-menu-dropdown { animation: none; }
}

/* ---------- Mobil: Leiste unten + Schublade ---------- */
@media (max-width: 900px) {
  body.theme-modern .bottom-nav, body.theme-dark .bottom-nav {
    left: 0; right: 0; bottom: 0; border-radius: 0; border: 0; border-top: 1px solid var(--linie);
    background: color-mix(in srgb, var(--color-surface) 94%, transparent); box-shadow: none;
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px)); transition: transform 200ms var(--ease), opacity 200ms var(--ease);
  }
  body.theme-modern .bottom-nav-item, body.theme-dark .bottom-nav-item { border-radius: 10px; padding: 8px 2px 6px; color: var(--sidebar-muted); gap: 3px; }
  body.theme-modern .bottom-nav-icon, body.theme-dark .bottom-nav-icon { filter: none; }
  body.theme-modern .bottom-nav-icon .nav-ico, body.theme-dark .bottom-nav-icon .nav-ico { width: 22px; height: 22px; }
  body.theme-modern .bottom-nav-label, body.theme-dark .bottom-nav-label { font-size: 11px; opacity: 1; font-weight: 600; }
  body.theme-modern .bottom-nav-item.active, body.theme-dark .bottom-nav-item.active { color: var(--tanne-dark); }
  body.theme-dark .bottom-nav-item.active { color: var(--tanne); }
  body.theme-modern .bottom-nav-item.active .bottom-nav-icon, body.theme-dark .bottom-nav-item.active .bottom-nav-icon { transform: none; }
  body.theme-modern .bottom-nav-item.active::before, body.theme-dark .bottom-nav-item.active::before { inset: 0 calc(50% - 14px) auto calc(50% - 14px); height: 3px; border-radius: 0 0 3px 3px; background: var(--tanne); animation: none; }
  body:has(.sidebar.nav-open) .bottom-nav { transform: translateY(110%); opacity: 0; pointer-events: none; }
  body.theme-modern .content, body.theme-dark .content { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }

  body.theme-modern .sidebar, body.theme-dark .sidebar { width: min(86vw, 330px); max-width: none; padding: 16px 12px 24px; border-radius: 0 20px 20px 0; border: 0; box-shadow: var(--shadow-lg); z-index: 260; }
  body.theme-modern .sidebar-backdrop, body.theme-dark .sidebar-backdrop { background: rgba(24, 30, 26, .45); backdrop-filter: blur(2px); z-index: 250; }
  body.theme-modern .sidebar .brand, body.theme-dark .sidebar .brand { padding: 4px 8px 16px; }
  body.theme-modern .sidebar a.nav-link, body.theme-modern .sidebar summary.nav-link, body.theme-dark .sidebar a.nav-link, body.theme-dark .sidebar summary.nav-link { min-height: 46px; font-size: 15px; }
  body.theme-modern .sidebar .nav-sublink, body.theme-dark .sidebar .nav-sublink { min-height: 42px; font-size: 14.5px; }
  .sidebar-close-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--linie); background: var(--color-surface); color: var(--text-warm); font-size: 15px; cursor: pointer; display: inline-grid; place-items: center; }
  .sidebar-mobile-lang { margin: 12px 4px 0; padding-top: 12px; border-top: 1px solid var(--linie); }
  .sidebar-lang-select { border-radius: 10px; }
}

/* Feinschliff Menü: nichts in der Seitenleiste schrumpft zusammen */
.sidebar .nav-search-btn, .sidebar .nav-role, .sidebar .nav-link, .sidebar .nav-section-title { flex-shrink: 0; }
body.theme-modern .sidebar .nav-search-btn, body.theme-dark .sidebar .nav-search-btn { min-height: 38px; box-sizing: border-box; }
body.theme-modern .company-badge, body.theme-dark .company-badge { border-radius: 12px; padding: 8px 14px; }
@media (min-width: 901px) {
  body.nav-mini .sidebar .nav-search-btn { width: 44px; margin: 0 auto 6px; padding: 0; }
  body.nav-mini .sidebar a.nav-link:hover::after { display: none; }
}
/* Tooltip im eingeklappten Menü (per Skript positioniert, damit es nicht abgeschnitten wird) */
.os-tip { position: fixed; z-index: 400; padding: 6px 10px; border-radius: 8px; font: 600 12.5px/1.2 var(--font-family); color: #fff; background: var(--tanne-deep); box-shadow: var(--shadow-md); pointer-events: none; opacity: 0; transform: translateX(-4px); transition: opacity 120ms, transform 120ms; white-space: nowrap; }
.os-tip.on { opacity: 1; transform: none; }
.wn-icon, .ft-icon, .dev-icon { color: var(--tanne); }
body.theme-dark .wn-icon, body.theme-dark .ft-icon, body.theme-dark .dev-icon { color: var(--mint, #86c6ab); }
.sys-row .sys-icon .nav-ico { width: 18px; height: 18px; }
.sys-row .sys-icon { color: var(--text-soft-warm); }

/* Schrift in allen Bedienelementen wie im restlichen System */
button, input, select, textarea { font-family: inherit; }
body.theme-modern .btn, body.theme-dark .btn, body.theme-modern button[type=submit], body.theme-dark button[type=submit] { font-family: var(--font-family); }

/* ============================================================================
   ANMELDUNG: GLAS-KARTE
   Dunkles Tannengrün mit weichen, fließenden Bändern; die Karte ist Milchglas
   (Weichzeichner), Eingaben und Tasten leuchten in Honig.
   ============================================================================ */
body.auth-body {
  background: radial-gradient(1100px 700px at 15% 105%, rgba(217,150,43,.10), transparent 60%), radial-gradient(900px 600px at 85% -10%, #2f6b58 0%, transparent 62%), #112019;
  background-attachment: fixed;
}
body.auth-body .auth-page { position: relative; isolation: isolate; }
body.auth-body .auth-page::before {
  content: ""; display: block !important; position: fixed; inset: -4%; z-index: -1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1600 1000%22 preserveAspectRatio=%22xMidYMid slice%22%3E%3Cdefs%3E%3ClinearGradient id=%22a%22 x1=%220%22 y1=%220%22 x2=%221%22 y2=%220%22%3E%3Cstop offset=%220%22 stop-color=%22%232f6b58%22 stop-opacity=%220%22/%3E%3Cstop offset=%22.45%22 stop-color=%22%234f9c82%22 stop-opacity=%22.55%22/%3E%3Cstop offset=%221%22 stop-color=%22%231f4a3b%22 stop-opacity=%220%22/%3E%3C/linearGradient%3E%3ClinearGradient id=%22b%22 x1=%220%22 y1=%221%22 x2=%221%22 y2=%220%22%3E%3Cstop offset=%220%22 stop-color=%22%230f2119%22 stop-opacity=%220%22/%3E%3Cstop offset=%22.5%22 stop-color=%22%232f6b58%22 stop-opacity=%22.5%22/%3E%3Cstop offset=%221%22 stop-color=%22%238fd0b5%22 stop-opacity=%22.18%22/%3E%3C/linearGradient%3E%3ClinearGradient id=%22h%22 x1=%220%22 y1=%220%22 x2=%221%22 y2=%220%22%3E%3Cstop offset=%220%22 stop-color=%22%23d9962b%22 stop-opacity=%220%22/%3E%3Cstop offset=%22.5%22 stop-color=%22%23e8b04f%22 stop-opacity=%22.8%22/%3E%3Cstop offset=%221%22 stop-color=%22%23d9962b%22 stop-opacity=%220%22/%3E%3C/linearGradient%3E%3Cfilter id=%22f%22%3E%3CfeGaussianBlur stdDeviation=%2214%22/%3E%3C/filter%3E%3C/defs%3E%3Cg filter=%22url(%23f)%22%3E%3Cpath d=%22M-200 760C150 520 480 930 900 640S1450 260 1800 420V640C1450 520 1200 860 900 880S250 780 -200 980Z%22 fill=%22url(%23a)%22/%3E%3Cpath d=%22M-200 300C200 380 420 120 820 240S1300 560 1800 330V120C1400 330 1100 60 820 90S250 200 -200 120Z%22 fill=%22url(%23b)%22/%3E%3C/g%3E%3Cg fill=%22none%22 stroke-linecap=%22round%22%3E%3Cpath d=%22M-100 790C230 580 520 960 930 680S1460 330 1700 470%22 stroke=%22%23fff%22 stroke-opacity=%22.22%22 stroke-width=%221.6%22/%3E%3Cpath d=%22M-100 830C250 640 540 990 940 720S1470 380 1700 520%22 stroke=%22%23fff%22 stroke-opacity=%22.12%22 stroke-width=%221.2%22/%3E%3Cpath d=%22M-100 870C270 700 560 1020 950 760S1480 430 1700 570%22 stroke=%22%23fff%22 stroke-opacity=%22.08%22 stroke-width=%221%22/%3E%3Cpath d=%22M-100 250C230 330 450 80 830 200S1290 520 1700 300%22 stroke=%22%23fff%22 stroke-opacity=%22.16%22 stroke-width=%221.4%22/%3E%3Cpath d=%22M-100 290C250 380 470 130 840 245S1300 565 1700 345%22 stroke=%22%23fff%22 stroke-opacity=%22.08%22 stroke-width=%221%22/%3E%3Cpath d=%22M-100 810C240 610 530 975 935 700S1465 355 1700 495%22 stroke=%22url(%23h)%22 stroke-width=%221.6%22/%3E%3C/g%3E%3C/svg%3E") center / cover no-repeat;
  animation: flowDrift 48s ease-in-out infinite alternate;
}
@keyframes flowDrift { from { transform: translate3d(-1.5%, 0, 0) scale(1.02); } to { transform: translate3d(1.5%, -1%, 0) scale(1.06); } }

body.auth-body .auth-card {
  position: relative; color: rgba(255,255,255,.88);
  background: linear-gradient(155deg, rgba(255,255,255,.13) 0%, rgba(255,255,255,.05) 45%, rgba(255,255,255,.08) 100%);
  -webkit-backdrop-filter: blur(26px) saturate(150%); backdrop-filter: blur(26px) saturate(150%);
  border: 1px solid rgba(255,255,255,.17); border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 40px 90px -30px rgba(0,0,0,.65);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { body.auth-body .auth-card { background: rgba(20,40,32,.92); } }
body.auth-body .auth-title { color: #fff; }
body.auth-body .auth-subtitle, body.auth-body .form-hint, body.auth-body .trust-row, body.auth-body .auth-footer-link, body.auth-body .auth-footer-main { color: rgba(255,255,255,.68); }
body.auth-body .form-group label { color: rgba(255,255,255,.86); }
body.auth-body .secure-pill { background: rgba(143,208,181,.14); color: #c6ebdb; border: 1px solid rgba(143,208,181,.28); }
body.auth-body .secure-dot { background: #8fd0b5; }

body.auth-body .auth-tabs { background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.08); }
body.auth-body .auth-tab { color: rgba(255,255,255,.7); }
body.auth-body .auth-tab:hover { color: #fff; }
body.auth-body .auth-tab[aria-selected="true"] { background: rgba(255,255,255,.16); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }

body.auth-body .form-control, body.auth-body .auth-card input[type=text], body.auth-body .auth-card input[type=email], body.auth-body .auth-card input[type=password] {
  background: rgba(8,20,15,.38); border: 1px solid rgba(255,255,255,.18); color: #fff; caret-color: #e8b04f;
  transition: border-color 150ms, box-shadow 150ms, background 150ms;
}
body.auth-body .form-control::placeholder { color: rgba(255,255,255,.42); }
body.auth-body .form-control:hover { border-color: rgba(255,255,255,.3); }
body.auth-body .form-control:focus, body.auth-body .auth-card input:focus { background: rgba(8,20,15,.5); border-color: #e8b04f; box-shadow: 0 0 0 3px rgba(232,176,79,.22); outline: none; }
body.auth-body .form-control:-webkit-autofill { -webkit-text-fill-color: #fff; box-shadow: 0 0 0 100px #1a3329 inset; caret-color: #fff; }
body.auth-body .input-icon, body.auth-body .toggle-password { color: rgba(255,255,255,.55); }
body.auth-body .toggle-password:hover { color: #fff; }

body.auth-body .btn-primary, body.auth-body button.btn-primary {
  background: linear-gradient(180deg, #e8b04f, #d9962b) !important; border: 0 !important; color: #2a1d05 !important; font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 24px -10px rgba(217,150,43,.7) !important;
  transition: filter 150ms, transform 150ms;
}
body.auth-body .btn-primary:hover { background: linear-gradient(180deg, #efba5c, #e0a033) !important; filter: none; transform: translateY(-1px); }
body.auth-body .btn-primary:active { transform: none; }
body.auth-body .btn-primary:focus-visible, body.auth-body .auth-tab:focus-visible, body.auth-body .auth-switch:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

body.auth-body .trust-row svg { color: #8fd0b5; }
body.auth-body .auth-footer-link { border-top-color: rgba(255,255,255,.12); }
body.auth-body .auth-footer-link a, body.auth-body .auth-footer-main a, body.auth-body .auth-switch { color: #e8b04f; }
body.auth-body .auth-footer-link a:hover, body.auth-body .auth-footer-main a:hover, body.auth-body .auth-switch:hover { color: #f3c876; }

body.auth-body .alert-error { background: rgba(226,84,70,.16); border: 1px solid rgba(255,138,126,.4); color: #ffe0dc; }
body.auth-body .trial-highlight { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.86); }
body.auth-body .trial-highlight b, body.auth-body .trial-highlight strong { color: #fff; }
body.auth-body .trial-icon { background: rgba(232,176,79,.2); color: #e8b04f; }
body.auth-body .captcha-box { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.16); }
body.auth-body .auth-legal-label, body.auth-body .auth-legal a { color: rgba(255,255,255,.8); }
body.auth-body .auth-legal a { color: #e8b04f; }
body.auth-body .auth-card input[type=checkbox] { accent-color: #d9962b; }
body.auth-body .auth-ref-code summary { color: rgba(255,255,255,.75); }

@media (prefers-reduced-motion: reduce) { body.auth-body .auth-page::before { animation: none; } }
body.auth-body.auth-body.auth-body button.btn-primary[type=submit], body.auth-body.auth-body.auth-body .btn-primary {
  background: linear-gradient(180deg, #e8b04f, #d9962b) !important; border: 0 !important; color: #2a1d05 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 24px -10px rgba(217,150,43,.7) !important;
}
body.auth-body.auth-body.auth-body .btn-primary:hover { background: linear-gradient(180deg, #efba5c, #e0a033) !important; }
body.auth-body .auth-bottom { color: rgba(255,255,255,.5); }
body.auth-body .auth-footer-link a, body.auth-body .auth-footer-main a, body.auth-body .auth-back, body.auth-body .auth-card a { color: #e8b04f; }
