/* ============================================================
   VEMO ACADEMY – Complete Design System
   Font: Poppins | Text: #282f47 | Accent: #7ed957
   ============================================================ */

/* <picture> als Layout-Transparent: die <source>/<img>-Kinder erben das Layout
   vom umgebenden Container (wichtig für crossfade-Wrappers, Hero-Images, etc.) */
picture {
  display: contents;
}

:root {
  /* --- Vemo Green palette (based on #7ed957) --- */
  --green-50: #f3fce9;
  --green-100: #e4f8cf;
  --green-200: #cbf0a3;
  --green-300: #a8e270;
  --green-400: #8edc59;
  --green-500: #7ed957;
  --green-600: #6bc948;
  --green-700: #5cb338;
  --green-800: #3a7d23;
  --green-900: #2a611a;

  /* --- Secondary accents --- */
  --blue-500: #2563eb;
  --blue-50: #eff6ff;
  --purple-500: #7c3aed;
  --purple-50: #f5f3ff;
  --orange-500: #ea580c;
  --orange-50: #fff7ed;
  --cyan-500: #0891b2;
  --cyan-50: #ecfeff;
  --red-500: #dc2626;
  --red-50: #fef2f2;
  --yellow-500: #f59e0b;
  --yellow-50: #fffbeb;

  /* --- Neutrals (based on #282f47) --- */
  --dark: #282f47;
  --dark-800: #343b55;
  --dark-700: #454d68;
  --dark-600: #5a6280;
  --grey-50: #f8fafc;
  --grey-100: #f1f5f9;
  --grey-200: #e2e8f0;
  --grey-300: #cbd5e1;
  --grey-400: #94a3b8;
  --grey-500: #64748b;
  --grey-600: #475569;
  --white: #ffffff;

  /* --- Layout --- */
  --sidebar-w: 270px;
  --topbar-h: 64px;

  /* --- Radius --- */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* --- Shadows --- */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.03);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.08), 0 8px 10px -6px rgba(0,0,0,.03);

  /* --- Transitions --- */
  --transition: 0.2s cubic-bezier(.4,0,.2,1);
  --transition-slow: 0.35s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; overscroll-behavior-x: none; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dark);
  background: var(--grey-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

.dot { color: var(--green-500); }

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 0.9rem; padding: 10px 22px;
  border-radius: var(--radius-sm); border: none;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
  line-height: 1.4;
}
.btn-primary { background: var(--green-500); color: var(--white); }
.btn-primary:hover { background: #6bc948; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(126,217,87,.3); }
.btn-secondary { background: var(--grey-100); color: var(--dark); }
.btn-secondary:hover { background: var(--grey-200); }
.btn-outline { background: transparent; color: var(--green-500); border: 2px solid var(--green-500); }
.btn-outline:hover { background: var(--green-50); }
.btn-danger { background: var(--red-500); color: var(--white); }
.btn-danger:hover { background: #b91c1c; }
.btn-ghost { background: transparent; color: var(--grey-500); border: none; padding: 8px 12px; }
.btn-ghost:hover { background: var(--grey-100); color: var(--dark); }
.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon { padding: 8px; border-radius: var(--radius-sm); }
.btn svg { flex-shrink: 0; }

/* ============================================================
   LOGIN SCREEN
   ============================================================ */
.login-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--dark);
  padding: 20px;
}
.login-container {
  display: grid; grid-template-columns: 1fr 1fr; max-width: 1100px; width: 100%;
  min-height: 640px; border-radius: var(--radius-2xl); overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,.3);
}
.login-left {
  background: linear-gradient(135deg, #3a7d23 0%, #5cb338 45%, #7ed957 100%);
  padding: 50px 48px; display: flex; flex-direction: column; justify-content: center;
  color: var(--white); position: relative; overflow: hidden;
}
.login-left::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.login-left::after {
  content: ''; position: absolute; bottom: -80px; left: -80px;
  width: 250px; height: 250px; border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.login-brand {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 40px;
  position: relative; z-index: 1;
}
.logo { font-size: 1.6rem; font-weight: 400; letter-spacing: -0.3px; }
.logo-sub { font-size: 1rem; font-weight: 400; opacity: 0.7; }
.login-left h1 {
  font-size: 2.2rem; font-weight: 700; line-height: 1.2;
  margin-bottom: 16px; position: relative; z-index: 1;
  letter-spacing: -0.5px;
}
.login-left p {
  font-size: 1rem; opacity: 0.85; line-height: 1.7;
  margin-bottom: 32px; position: relative; z-index: 1;
  font-weight: 300;
}
.login-features { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; }
.login-feature { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; opacity: 0.9; font-weight: 400; }
.login-feature svg { flex-shrink: 0; stroke: rgba(255,255,255,.8); }

.login-right {
  background: var(--white); padding: 50px 48px;
  display: flex; align-items: center; justify-content: center;
}
.login-card { width: 100%; max-width: 380px; }
.login-card h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.login-hint { color: var(--grey-500); font-size: 0.9rem; margin-bottom: 20px; }

/* Login Tabs */
.login-tabs {
  display: flex; gap: 0; margin-bottom: 24px;
  background: var(--grey-100); border-radius: var(--radius-sm);
  padding: 3px;
}
.login-tab {
  flex: 1; padding: 10px 16px; border: none; background: transparent;
  font-size: 0.85rem; font-weight: 600; color: var(--grey-500);
  border-radius: var(--radius-xs); cursor: pointer;
  transition: var(--transition); text-align: center;
}
.login-tab:hover { color: var(--dark); }
.login-tab.active {
  background: var(--white); color: var(--green-700);
  box-shadow: var(--shadow-sm);
}

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--dark-700); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-sm); font-size: 0.9rem; transition: var(--transition);
  background: var(--white); color: var(--dark);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(126,217,87,.15);
}
.form-group input::placeholder { color: var(--grey-400); }

.login-error {
  background: var(--red-50); color: var(--red-500); padding: 10px 14px;
  border-radius: var(--radius-sm); font-size: 0.85rem; margin-bottom: 16px;
  border: 1px solid rgba(220,38,38,.15);
}

/* Login Divider */
.login-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0; color: var(--grey-400); font-size: 0.82rem;
}
.login-divider::before, .login-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--grey-200);
}

/* Google Sign-In Button */
.btn-google {
  background: var(--white); color: var(--dark); border: 1.5px solid var(--grey-200);
  font-weight: 600; gap: 10px; transition: var(--transition);
}
.btn-google:hover {
  background: var(--grey-50); border-color: var(--grey-300);
  box-shadow: var(--shadow-sm); transform: translateY(-1px);
}
.btn-google svg { flex-shrink: 0; }

.login-success {
  background: var(--green-50); color: var(--green-800); padding: 10px 14px;
  border-radius: 8px; font-size: 0.85rem; margin-bottom: 12px;
  border: 1px solid var(--green-200);
}
.register-info {
  color: var(--grey-500); font-size: 0.82rem; line-height: 1.5;
  margin: 0 0 16px 0; padding: 10px 14px;
  background: var(--grey-50); border-radius: 8px;
  border: 1px solid var(--grey-200);
}
.register-success-msg {
  text-align: center; padding: 20px 0;
}
.register-success-msg svg { margin-bottom: 12px; }
.register-success-msg h3 {
  color: var(--dark); font-size: 1.15rem; margin-bottom: 8px;
}
.register-success-msg p {
  color: var(--grey-500); font-size: 0.9rem; line-height: 1.6;
}

/* Pending approval badge */
.badge-pending {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600;
  background: #fef3c7; color: #92400e; border: 1px solid #fde68a;
}
.badge-approved {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600;
  background: var(--green-50); color: var(--green-800); border: 1px solid var(--green-200);
}
.btn-approve {
  padding: 5px 14px; border-radius: 6px; font-size: 0.8rem; font-weight: 600;
  background: var(--green-600); color: #fff; border: none; cursor: pointer;
  transition: var(--transition);
}
.btn-approve:hover { background: var(--green-700); }
.btn-reject {
  padding: 5px 14px; border-radius: 6px; font-size: 0.8rem; font-weight: 600;
  background: var(--grey-100); color: var(--grey-600); border: 1px solid var(--grey-200);
  cursor: pointer; transition: var(--transition);
}
.btn-reject:hover { background: var(--grey-200); }

/* ============================================================
   APP SHELL
   ============================================================ */
.app-shell { display: flex; min-height: 100vh; }

/* ---- SIDEBAR ---- */
.sidebar {
  width: var(--sidebar-w); height: 100vh; position: fixed; top: 0; left: 0;
  background: var(--white); border-right: 1px solid var(--grey-200);
  display: flex; flex-direction: column; z-index: 100;
  transition: var(--transition-slow);
}
.sidebar-header {
  padding: 20px 20px 16px; display: flex; align-items: center;
  justify-content: space-between; border-bottom: 1px solid var(--grey-100);
}
.sidebar-logo { display: flex; align-items: baseline; gap: 6px; }
.sidebar-logo .logo { font-size: 1.3rem; color: var(--dark); }
.sidebar-logo .logo-sub { font-size: 0.8rem; font-weight: 400; color: var(--grey-500); }
.sidebar-close { display: none; background: none; border: none; color: var(--grey-500); }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 12px 10px; }
.sidebar-nav-group { margin-bottom: 8px; }
.sidebar-nav-label {
  padding: 8px 12px 4px; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--grey-400);
}
.sidebar-link {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border-radius: var(--radius-sm); color: var(--grey-600); font-size: 0.88rem;
  font-weight: 500; transition: var(--transition); cursor: pointer;
  border: none; background: none; width: 100%; text-align: left;
}
.sidebar-link:hover { background: var(--grey-50); color: var(--dark); }
.sidebar-link.active { background: var(--green-50); color: var(--green-700); font-weight: 600; }
.sidebar-link.active svg { stroke: var(--green-600); }
.sidebar-link svg { width: 20px; height: 20px; flex-shrink: 0; stroke: var(--grey-400); }
.sidebar-link .badge {
  margin-left: auto; background: var(--green-600); color: var(--white);
  font-size: 0.7rem; font-weight: 700; padding: 2px 8px;
  border-radius: var(--radius-full); min-width: 20px; text-align: center;
}

.sidebar-footer {
  padding: 12px 14px; border-top: 1px solid var(--grey-100);
  display: flex; align-items: center; gap: 8px;
}
.sidebar-user {
  flex: 1; display: flex; align-items: center; gap: 10px;
  padding: 8px; border-radius: var(--radius-sm); cursor: pointer;
  transition: var(--transition);
}
.sidebar-user:hover { background: var(--grey-50); }
.sidebar-user-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--green-100);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; color: var(--green-800);
  overflow: hidden; flex-shrink: 0; background-size: cover; background-position: center;
}
.sidebar-user-info strong { display: block; font-size: 0.82rem; line-height: 1.3; }
.sidebar-user-info small { color: var(--grey-500); font-size: 0.72rem; }
.sidebar-logout {
  padding: 8px; border-radius: var(--radius-sm); background: none;
  border: none; color: var(--grey-400); transition: var(--transition);
}
.sidebar-logout:hover { background: var(--red-50); color: var(--red-500); }

/* ---- MAIN CONTENT ---- */
.main-content {
  flex: 1; margin-left: var(--sidebar-w); min-height: 100vh;
  display: flex; flex-direction: column; position: relative;
}

/* ---- TOPBAR ---- */
.topbar {
  height: var(--topbar-h); padding: 0 28px; display: flex;
  align-items: center; gap: 16px; background: var(--white);
  border-bottom: 1px solid var(--grey-100); position: sticky;
  top: 0; z-index: 50;
}
.topbar-menu {
  display: none; background: none; border: none; color: var(--grey-600);
  padding: 4px;
}
.topbar-search {
  flex: 1; max-width: 480px; display: flex; align-items: center;
  gap: 10px; background: var(--grey-50); border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-full); padding: 0 16px; transition: var(--transition);
}
.topbar-search:focus-within { border-color: var(--green-500); background: var(--white); box-shadow: 0 0 0 3px rgba(126,217,87,.12); }
.topbar-search input {
  flex: 1; border: none; background: none; padding: 9px 0;
  font-size: 0.88rem; outline: none; color: var(--dark);
}
.topbar-search input::placeholder { color: var(--grey-400); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.topbar-notif {
  position: relative; background: none; border: none; padding: 8px;
  border-radius: var(--radius-sm); color: var(--grey-500); transition: var(--transition);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.topbar-notif:hover { background: var(--grey-100); }
.notif-badge {
  position: absolute; top: 2px; right: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--red-500); color: var(--white);
  font-size: 0.65rem; font-weight: 700; display: flex;
  align-items: center; justify-content: center;
}
.topbar-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--green-100);
  cursor: pointer; background-size: cover; background-position: center;
  border: 2px solid var(--grey-200); transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem; color: var(--green-800);
  flex-shrink: 0;
}
.topbar-avatar:hover { border-color: var(--green-500); }

/* Notification dropdown */
.notif-dropdown {
  position: absolute; top: var(--topbar-h); right: 28px;
  width: 360px; background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); z-index: 60;
  overflow: hidden;
}
.notif-header { padding: 16px 20px; border-bottom: 1px solid var(--grey-100); }
.notif-header h4 { font-size: 0.95rem; }
.notif-list { max-height: 320px; overflow-y: auto; }
.notif-item {
  padding: 14px 20px; border-bottom: 1px solid var(--grey-50);
  cursor: pointer; transition: var(--transition);
}
.notif-item:hover { background: var(--grey-50); }
.notif-item strong { display: block; font-size: 0.85rem; margin-bottom: 2px; }
.notif-item p { font-size: 0.8rem; color: var(--grey-500); line-height: 1.5; }
.notif-item small { font-size: 0.72rem; color: var(--grey-400); }

/* Search overlay */
.search-overlay {
  position: absolute; top: var(--topbar-h); left: 0; right: 0;
  background: rgba(0,0,0,.3); min-height: 200px; z-index: 55;
  padding: 20px 28px;
}
.search-results {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl); max-width: 600px; overflow: hidden;
}
.search-result-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 20px;
  cursor: pointer; transition: var(--transition); border-bottom: 1px solid var(--grey-50);
}
.search-result-item:hover { background: var(--green-50); }
.search-result-item img { width: 50px; height: 34px; border-radius: var(--radius-xs); object-fit: cover; }
.search-result-item .sr-info h4 { font-size: 0.88rem; }
.search-result-item .sr-info small { color: var(--grey-500); font-size: 0.78rem; }
.search-no-results { padding: 30px; text-align: center; color: var(--grey-400); font-size: 0.9rem; }

/* ---- PAGE CONTENT ---- */
.page-content { padding: 28px; flex: 1; }

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  margin-bottom: 28px;
}
.page-header h1 {
  font-size: 1.7rem; font-weight: 700; letter-spacing: -0.3px;
  margin-bottom: 4px;
}
.page-header p { color: var(--grey-500); font-size: 0.95rem; }
.page-header-row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}

/* ============================================================
   STAT CARDS
   ============================================================ */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px; margin-bottom: 28px;
}
.stat-card {
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg); padding: 22px;
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-card-icon {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.stat-card-icon.green { background: var(--green-50); color: var(--green-600); }
.stat-card-icon.blue { background: var(--blue-50); color: var(--blue-500); }
.stat-card-icon.purple { background: var(--purple-50); color: var(--purple-500); }
.stat-card-icon.orange { background: var(--orange-50); color: var(--orange-500); }
.stat-card h3 { font-size: 1.6rem; font-weight: 700; line-height: 1; margin-bottom: 4px; }
.stat-card p { font-size: 0.82rem; color: var(--grey-500); }
.stat-card .stat-change {
  display: inline-flex; align-items: center; gap: 4px; font-size: 0.75rem;
  font-weight: 600; margin-top: 8px; padding: 3px 8px;
  border-radius: var(--radius-full);
}
.stat-change.up { background: var(--green-50); color: var(--green-700); }
.stat-change.down { background: var(--red-50); color: var(--red-500); }

/* ============================================================
   CUSTOMER DASHBOARD (vemo.ch style)
   ============================================================ */

/* -- Hero / Greeting -- */
.dash-hero {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 28px; gap: 20px; flex-wrap: wrap;
}
.dash-greeting h1 {
  font-size: 1.85rem; font-weight: 700; letter-spacing: -0.5px;
  color: #101828; line-height: 1.2; margin-bottom: 2px;
}
.dash-greeting p {
  font-size: 0.88rem; color: #98A2B3; font-weight: 400;
}

/* -- Inline Stats -- */
.dash-stats-inline {
  display: flex; align-items: center; gap: 0;
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg); padding: 14px 6px;
}
.dash-stat-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 0 22px; min-width: 80px;
}
.dash-stat-value {
  font-size: 1.25rem; font-weight: 700; color: #101828; line-height: 1;
}
.dash-stat-total {
  font-size: 0.82rem; font-weight: 500; color: #98A2B3;
}
.dash-stat-label {
  font-size: 0.72rem; color: #98A2B3; font-weight: 500;
  margin-top: 3px; text-transform: uppercase; letter-spacing: 0.03em;
}
.dash-stat-divider {
  width: 1px; height: 30px; background: var(--grey-200); flex-shrink: 0;
}

/* -- Subscription Banners -- */
.dash-sub-banner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px; border-radius: var(--radius-md);
  margin-bottom: 32px; gap: 16px; flex-wrap: wrap;
}
.dash-sub-banner-content {
  display: flex; align-items: center; gap: 14px;
}
.dash-sub-banner-icon {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dash-sub-banner-content strong {
  display: block; font-size: 0.9rem; font-weight: 600; line-height: 1.3;
}
.dash-sub-banner-content span {
  display: block; font-size: 0.82rem; opacity: 0.85; line-height: 1.4;
}

.dash-sub-none {
  background: linear-gradient(135deg, #101828 0%, #1e293b 100%);
  color: #fff;
}
.dash-sub-none .dash-sub-banner-icon { background: rgba(126,217,87,.15); color: var(--green-400); }
.dash-sub-trial {
  background: var(--green-50); border: 1px solid var(--green-200); color: var(--dark);
}
.dash-sub-trial .dash-sub-banner-icon { background: var(--green-100); color: var(--green-600); }
.dash-sub-trial strong { color: var(--green-700); }
.dash-sub-active {
  background: var(--green-50); border: 1px solid var(--green-200); color: var(--dark);
}
.dash-sub-active .dash-sub-banner-icon { background: var(--green-100); color: var(--green-600); }
.dash-sub-active strong { color: var(--green-700); }
.dash-sub-cancelled {
  background: var(--orange-50); border: 1px solid #fed7aa; color: var(--dark);
}
.dash-sub-cancelled .dash-sub-banner-icon { background: #ffedd5; color: #ea580c; }
.dash-sub-cancelled strong { color: #c2410c; }
.dash-sub-pastdue {
  background: var(--red-50); border: 1px solid #fecaca; color: var(--dark);
}
.dash-sub-pastdue .dash-sub-banner-icon { background: #fee2e2; color: var(--red-500); }
.dash-sub-pastdue strong { color: #b91c1c; }

/* -- Section Headers -- */
.dash-section {
  margin-bottom: 36px;
}
.dash-section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 18px;
}
.dash-section-header h2 {
  font-size: 1.2rem; font-weight: 700; color: #101828;
  letter-spacing: -0.2px;
}
.dash-section-link {
  font-size: 0.82rem; font-weight: 600; color: var(--green-600);
  cursor: pointer; transition: var(--transition);
}
.dash-section-link:hover { color: var(--green-700); }

/* -- Continue Learning Cards (large visual) -- */
.dash-continue-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.dash-continue-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer; transition: var(--transition);
  border: 1px solid var(--grey-200);
}
.dash-continue-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px);
}
.dash-continue-thumb {
  height: 170px; background-size: cover; background-position: center;
  position: relative; background-color: var(--grey-100);
}
.dash-continue-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(0,0,0,.45); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
}
.dash-continue-card:hover .dash-continue-play { opacity: 1; }
.dash-continue-play svg { margin-left: 2px; }
.dash-continue-progress {
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: rgba(255,255,255,.3);
}
.dash-continue-progress-fill {
  height: 100%; background: var(--green-500); transition: width 0.5s ease;
}
.dash-continue-body { padding: 16px 18px; }
.dash-continue-cat {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; display: block; margin-bottom: 5px;
}
.dash-continue-body h3 {
  font-size: 0.95rem; font-weight: 600; color: #101828;
  line-height: 1.35; margin-bottom: 6px;
}
.dash-continue-next {
  font-size: 0.82rem; color: #475467; margin-bottom: 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dash-continue-meta {
  font-size: 0.75rem; color: #98A2B3; font-weight: 500;
}

/* -- All Courses Grid -- */
.dash-courses-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}
.dash-course-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer; transition: var(--transition);
  border: 1px solid var(--grey-200);
}
.dash-course-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.07); transform: translateY(-2px);
}
.dash-course-thumb {
  height: 155px; background-size: cover; background-position: center;
  position: relative; background-color: var(--grey-100);
}
.dash-course-lock {
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.92); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  color: #475467; transition: opacity 0.25s; z-index: 2;
}
.dash-course-progress-bar {
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: rgba(0,0,0,.12);
}
.dash-course-progress-fill {
  height: 100%; background: var(--green-500); border-radius: 0 2px 0 0;
}
.dash-course-body { padding: 15px 16px 16px; }
.dash-course-cat {
  font-size: 0.68rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; display: block; margin-bottom: 4px;
}
.dash-course-body h3 {
  font-size: 0.92rem; font-weight: 600; color: #101828;
  line-height: 1.35; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.dash-course-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.75rem; color: #98A2B3; margin-bottom: 12px;
}
.dash-course-meta span { display: flex; align-items: center; gap: 3px; }
.dash-course-meta svg { width: 13px; height: 13px; }
.dash-course-footer {
  display: flex; align-items: center; justify-content: flex-end;
  padding-top: 12px; border-top: 1px solid var(--grey-100);
}
.dash-course-creator {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem; color: #475467; margin-right: auto;
}
.dash-course-creator:empty { display: none; }
.dash-course-creator img {
  width: 22px; height: 22px; border-radius: 50%; object-fit: cover;
}
.dash-course-badge {
  font-size: 0.7rem; font-weight: 600; padding: 3px 10px;
  border-radius: var(--radius-full);
}
.dash-badge-free {
  background: var(--green-50); color: var(--green-700);
}
.dash-badge-premium {
  background: #f0f0ff; color: #5b4bd5;
}
.dash-badge-premium-cta {
  background: #5b4bd5; color: #fff; cursor: pointer;
  transition: background 0.2s;
}
.dash-badge-premium-cta:hover {
  background: #4a3bc4;
}

/* -- Course Card Hover Overlay -- */
.dash-course-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.25s;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.dash-course-hover-overlay span {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}
.dash-course-locked:hover .dash-course-hover-overlay {
  opacity: 1;
}
.dash-course-locked:hover .dash-course-lock {
  opacity: 0;
}

/* -- Dashboard Empty State -- */
.dash-empty {
  text-align: center; padding: 48px 20px;
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
}
.dash-empty p {
  color: #98A2B3; font-size: 0.9rem; margin-bottom: 16px;
}

/* -- Referral Page -- */
.referral-hero-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  text-align: center;
  margin-bottom: 20px;
}
.referral-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  background: var(--green-50);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
}
.referral-hero-card h2 {
  font-size: 1.2rem; font-weight: 700; color: #101828; margin-bottom: 8px;
}
.referral-hero-card p {
  font-size: 0.9rem; color: #667085; margin-bottom: 20px; max-width: 480px; margin-left: auto; margin-right: auto;
}
.referral-link-box {
  display: flex; gap: 8px; max-width: 520px; margin: 0 auto 20px;
}
.referral-link-box input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--grey-300);
  border-radius: var(--radius-md); font-size: 0.88rem;
  background: var(--grey-50); color: #101828; font-family: monospace;
}
.referral-link-box .btn {
  white-space: nowrap; display: flex; align-items: center; gap: 6px;
}
.referral-share-row {
  display: flex; gap: 12px; justify-content: center;
}
.referral-share-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-md);
  font-size: 0.88rem; font-weight: 600; text-decoration: none;
  transition: opacity 0.2s;
}
.referral-share-btn:hover { opacity: 0.85; }
.referral-share-whatsapp {
  background: #25d366; color: #fff;
}
.referral-share-email {
  background: #101828; color: #fff;
}

.referral-stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-bottom: 20px;
}
.referral-stat {
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg); padding: 24px 16px;
  text-align: center;
}
.referral-stat-value {
  display: block; font-size: 1.3rem; font-weight: 700; color: #101828; margin-bottom: 4px;
}
.referral-stat-label {
  font-size: 0.82rem; color: #98a2b3; text-transform: uppercase; letter-spacing: 0.5px;
}

.referral-history {
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--radius-xl); padding: 24px;
}
.referral-history h3 {
  font-size: 1rem; font-weight: 600; color: #101828; margin-bottom: 16px;
}
.referral-table {
  width: 100%; border-collapse: collapse;
}
.referral-table th {
  text-align: left; padding: 10px 12px; font-size: 0.82rem;
  color: #98a2b3; text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 1px solid var(--grey-200);
}
.referral-table td {
  padding: 12px; font-size: 0.9rem; color: #475467;
  border-bottom: 1px solid var(--grey-100);
}

.referral-empty {
  text-align: center; padding: 32px 20px;
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
}
.referral-empty p { color: #98a2b3; font-size: 0.9rem; }

@media (max-width: 768px) {
  .referral-hero-card { padding: 24px 16px; }
  .referral-link-box { flex-direction: column; }
  .referral-stats-row { grid-template-columns: 1fr; }
  .referral-share-row { flex-direction: column; align-items: center; }
}

/* -- Dashboard Upgrade Hero -- */
.dash-upgrade-hero {
  background: linear-gradient(135deg, #101828 0%, #1d2939 100%);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  color: #fff;
}
.dash-upgrade-hero-content {
  display: flex;
  gap: 40px;
  align-items: center;
}
.dash-upgrade-hero-text {
  flex: 1;
  min-width: 0;
}
.dash-upgrade-hero-text h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.3;
}
.dash-upgrade-benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.dash-upgrade-benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.93rem;
  color: #d0d5dd;
}
.dash-upgrade-benefit strong {
  color: #fff;
}
.dash-upgrade-sub {
  font-size: 0.85rem;
  color: #98a2b3;
  margin-bottom: 20px;
}
.dash-upgrade-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.dash-upgrade-actions .btn-primary {
  padding: 10px 24px;
  font-size: 0.93rem;
}
.dash-upgrade-actions .btn-ghost {
  color: #98a2b3;
  border-color: #344054;
  padding: 10px 20px;
  font-size: 0.87rem;
}
.dash-upgrade-actions .btn-ghost:hover {
  color: #fff;
  border-color: #667085;
}
.dash-upgrade-hero-visual {
  flex-shrink: 0;
  width: 220px;
}
.dash-upgrade-visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.dash-upgrade-visual-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
}
.dash-upgrade-visual-item span {
  font-size: 0.78rem;
  color: #98a2b3;
  font-weight: 500;
}

/* -- Dashboard Social Proof -- */
.dash-social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 16px 24px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  margin-top: 12px;
}
.dash-social-proof-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.87rem;
  color: #475467;
}
.dash-social-proof-item strong {
  color: #101828;
}
.dash-social-proof-divider {
  width: 1px;
  height: 20px;
  background: var(--grey-200);
}

/* -- Dashboard Premium Teaser -- */
.dash-teaser-section {
  background: linear-gradient(180deg, #f9fafb 0%, #fff 100%);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
}
.dash-teaser-header {
  margin-bottom: 32px;
}
.dash-teaser-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #101828;
  margin-bottom: 8px;
}
.dash-teaser-header p {
  font-size: 0.9rem;
  color: #667085;
}
.dash-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.dash-teaser-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dash-teaser-card:hover {
  border-color: var(--green-200);
  box-shadow: 0 4px 16px rgba(126,217,87,0.08);
}
.dash-teaser-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--green-50);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}
.dash-teaser-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #101828;
  margin-bottom: 8px;
}
.dash-teaser-card p {
  font-size: 0.83rem;
  color: #667085;
  line-height: 1.5;
}
.dash-teaser-cta {
  padding-top: 4px;
}
.dash-teaser-cta .btn-lg {
  padding: 12px 32px;
  font-size: 0.95rem;
}

/* -- Dashboard Responsive -- */
@media (max-width: 768px) {
  .dash-hero { flex-direction: column; align-items: flex-start; }
  .dash-stats-inline { width: 100%; justify-content: space-around; }
  .dash-stat-item { padding: 0 12px; min-width: 60px; }
  .dash-stat-value { font-size: 1.05rem; }
  .dash-continue-grid { grid-template-columns: 1fr; }
  .dash-courses-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .dash-upgrade-hero { padding: 28px 20px; }
  .dash-upgrade-hero-content { flex-direction: column; gap: 24px; }
  .dash-upgrade-hero-visual { width: 100%; }
  .dash-upgrade-hero-text h2 { font-size: 1.25rem; }
  .dash-social-proof { flex-direction: column; gap: 12px; padding: 16px; }
  .dash-social-proof-divider { width: 40px; height: 1px; }
  .dash-teaser-section { padding: 28px 16px; }
  .dash-teaser-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   COURSE CARDS
   ============================================================ */
.courses-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px; margin-bottom: 28px;
}
.course-card {
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: var(--transition); cursor: pointer;
}
.course-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.course-card-thumb {
  height: 170px; background-size: cover; background-position: center;
  position: relative;
}
.course-card-badge {
  position: absolute; top: 12px; left: 12px; padding: 4px 12px;
  border-radius: var(--radius-full); font-size: 0.72rem; font-weight: 700;
  background: rgba(255,255,255,.95); color: var(--dark);
  backdrop-filter: blur(4px);
}
.course-card-progress-bar {
  position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
  background: rgba(0,0,0,.15);
}
.course-card-progress-fill {
  height: 100%; background: var(--green-500); border-radius: 0 2px 2px 0;
  transition: width 0.5s ease;
}
.course-card-body { padding: 18px; }
.course-card-cat {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; margin-bottom: 6px;
}
.course-card-body h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; line-height: 1.35; }
.course-card-body p { font-size: 0.82rem; color: var(--grey-500); margin-bottom: 14px; line-height: 1.5; }
.course-card-meta {
  display: flex; align-items: center; gap: 14px; font-size: 0.78rem; color: var(--grey-400);
}
.course-card-meta span { display: flex; align-items: center; gap: 4px; }
.course-card-meta svg { width: 14px; height: 14px; }
.course-card-footer {
  padding: 14px 18px; border-top: 1px solid var(--grey-100);
  display: flex; align-items: center; justify-content: space-between;
}
.course-card-creator {
  display: flex; align-items: center; gap: 8px; font-size: 0.8rem;
}
.course-card-creator img {
  width: 26px; height: 26px; border-radius: 50%; object-fit: cover;
}
.course-card-rating {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.82rem; font-weight: 600;
}
.course-card-rating svg { width: 14px; height: 14px; fill: var(--yellow-500); stroke: none; }

/* ============================================================
   COURSE DETAIL
   ============================================================ */
.course-detail-hero {
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--radius-xl); overflow: hidden; margin-bottom: 24px;
}
.course-detail-banner {
  height: 240px; background-size: cover; background-position: center;
  position: relative;
}
.course-detail-banner::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(transparent 50%, rgba(0,0,0,.5));
}
.course-detail-banner .back-btn {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: rgba(255,255,255,.9); border: none; padding: 8px 14px;
  border-radius: var(--radius-full); font-size: 0.82rem; font-weight: 600;
  display: flex; align-items: center; gap: 6px; color: var(--dark);
  cursor: pointer; transition: var(--transition); backdrop-filter: blur(4px);
}
.course-detail-banner .back-btn:hover { background: var(--white); }
.course-detail-info { padding: 28px 32px; }
.course-detail-info .cd-cat {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; margin-bottom: 8px;
}
.course-detail-info h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 8px; line-height: 1.25; }
.course-detail-info .cd-subtitle { font-size: 1.05rem; color: var(--grey-500); margin-bottom: 18px; }
.cd-meta-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 20px;
  margin-bottom: 18px;
}
.cd-meta-item {
  display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--grey-600);
}
.cd-meta-item svg { width: 16px; height: 16px; stroke: var(--grey-400); }
.cd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.cd-tag {
  padding: 4px 12px; border-radius: var(--radius-full);
  background: var(--grey-100); font-size: 0.75rem; font-weight: 500; color: var(--grey-600);
}
.cd-description { font-size: 0.92rem; color: var(--dark-700); line-height: 1.7; margin-bottom: 20px; }
.cd-actions { display: flex; gap: 10px; }

/* -- Course Detail Premium Upsell Box -- */
.cd-premium-upsell {
  background: #fafaff;
  border: 1.5px solid #e0dff5;
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 400px;
}
.cd-premium-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.cd-premium-header span {
  font-weight: 700;
  font-size: 1rem;
  color: #5b4bd5;
}
.cd-premium-benefits {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.cd-benefit {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #475467;
}

/* Lessons list */
.lessons-panel {
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--radius-xl); overflow: hidden;
}
.lessons-panel-header {
  padding: 20px 24px; border-bottom: 1px solid var(--grey-100);
  display: flex; align-items: center; justify-content: space-between;
}
.lessons-panel-header h3 { font-size: 1.05rem; font-weight: 700; }
.lessons-panel-header span { font-size: 0.82rem; color: var(--grey-500); }

.lesson-item {
  display: flex; align-items: center; gap: 14px; padding: 16px 24px;
  border-bottom: 1px solid var(--grey-50); cursor: pointer;
  transition: var(--transition);
}
.lesson-item:hover { background: var(--green-50); }
.lesson-item.completed .lesson-check { background: var(--green-500); border-color: var(--green-500); color: var(--white); }
.lesson-item.active { background: var(--green-50); border-left: 3px solid var(--green-500); }
.lesson-check {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--grey-300); display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 0.75rem; color: transparent; transition: var(--transition);
}
.lesson-num { font-size: 0.78rem; color: var(--grey-400); font-weight: 600; min-width: 20px; }
.lesson-info { flex: 1; }
.lesson-info h4 { font-size: 0.9rem; font-weight: 600; }
.lesson-info small { color: var(--grey-400); font-size: 0.78rem; }
.lesson-play {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--green-50); color: var(--green-600);
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; transition: var(--transition); flex-shrink: 0;
}
.lesson-play:hover { background: var(--green-500); color: var(--white); }

/* ============================================================
   VIDEO PLAYER
   ============================================================ */
.player-layout { display: grid; grid-template-columns: 1fr 360px; gap: 0; margin: -28px; min-height: calc(100vh - var(--topbar-h)); }
.player-main { background: #000; display: flex; flex-direction: column; }
.player-video-wrap { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; }
.player-video-wrap video { width: 100%; height: 100%; object-fit: contain; }

.premium-upsell-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff; text-align: center; padding: 32px;
}
.premium-upsell-content { max-width: 420px; }
.premium-upsell-icon { margin-bottom: 16px; }
.premium-upsell-content h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.premium-upsell-content p { font-size: 0.92rem; color: rgba(255,255,255,0.75); line-height: 1.5; margin-bottom: 4px; }
.premium-upsell-benefits-mini {
  display: flex; gap: 16px; justify-content: center;
  margin: 14px 0 6px; flex-wrap: wrap;
}
.premium-upsell-benefits-mini span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.84rem; color: rgba(255,255,255,0.85); font-weight: 500;
}
.lesson-item.lesson-locked { opacity: 0.65; }
.lesson-item.lesson-locked:hover { opacity: 0.85; }

.player-controls {
  padding: 20px 28px; background: var(--white); flex: 1;
}
.player-controls h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.player-controls .pc-meta { font-size: 0.85rem; color: var(--grey-500); margin-bottom: 16px; }
.player-nav-btns { display: flex; gap: 10px; margin-bottom: 20px; }

.player-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--grey-200); margin-bottom: 16px; }
.player-tab {
  padding: 10px 20px; font-size: 0.88rem; font-weight: 600;
  color: var(--grey-500); background: none; border: none;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  cursor: pointer; transition: var(--transition);
}
.player-tab.active { color: var(--green-600); border-bottom-color: var(--green-500); }
.player-tab-content { font-size: 0.9rem; color: var(--dark-700); line-height: 1.7; }

.player-sidebar {
  background: var(--white); border-left: 1px solid var(--grey-200);
  display: flex; flex-direction: column; height: calc(100vh - var(--topbar-h)); overflow: hidden;
}
.player-sidebar-header {
  padding: 18px 20px; border-bottom: 1px solid var(--grey-100);
}
.player-sidebar-header h3 { font-size: 0.95rem; font-weight: 700; }
.player-sidebar-header small { color: var(--grey-500); font-size: 0.8rem; }
.player-sidebar-progress {
  height: 3px; background: var(--grey-200); margin-top: 10px; border-radius: 2px;
}
.player-sidebar-progress-fill { height: 100%; background: var(--green-500); border-radius: 2px; transition: width 0.5s ease; }
.player-lessons-list { flex: 1; overflow-y: auto; }

/* ============================================================
   CREATOR DASHBOARD
   ============================================================ */
.creator-course-card {
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg); padding: 20px;
  display: flex; gap: 18px; transition: var(--transition);
  margin-bottom: 12px;
}
.creator-course-card:hover { box-shadow: var(--shadow-md); }
.creator-course-card img {
  width: 140px; height: 90px; border-radius: var(--radius-sm);
  object-fit: cover; flex-shrink: 0;
}
.creator-course-info { flex: 1; }
.creator-course-info h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.creator-course-info p { font-size: 0.82rem; color: var(--grey-500); margin-bottom: 10px; }
.creator-course-stats {
  display: flex; gap: 16px; font-size: 0.78rem; color: var(--grey-400);
}
.creator-course-stats span { display: flex; align-items: center; gap: 4px; }
.creator-course-actions { display: flex; flex-direction: column; gap: 6px; justify-content: center; }

/* Upload modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(4px);
}
.modal {
  background: var(--white); border-radius: var(--radius-xl);
  width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 40px 80px rgba(0,0,0,.2);
}
.modal-header {
  padding: 24px 28px 0; display: flex; align-items: center;
  justify-content: space-between;
}
.modal-header h2 { font-size: 1.3rem; font-weight: 700; }
.modal-close {
  background: none; border: none; color: var(--grey-400); padding: 4px;
  cursor: pointer; transition: var(--transition);
}
.modal-close:hover { color: var(--dark); }
.modal-body { padding: 20px 28px 28px; }

.upload-zone {
  border: 2px dashed var(--grey-300); border-radius: var(--radius-lg);
  padding: 40px; text-align: center; cursor: pointer;
  transition: var(--transition); margin-bottom: 20px;
}
.upload-zone:hover { border-color: var(--green-500); background: var(--green-50); }
.upload-zone svg { color: var(--grey-400); margin-bottom: 10px; }
.upload-zone p { color: var(--grey-500); font-size: 0.9rem; }
.upload-zone small { color: var(--grey-400); font-size: 0.8rem; }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-table {
  width: 100%; background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg); overflow: hidden;
}
.admin-table table { width: 100%; border-collapse: collapse; }
.admin-table th {
  text-align: left; padding: 14px 18px; font-size: 0.78rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--grey-500); background: var(--grey-50);
  border-bottom: 1px solid var(--grey-200);
}
.admin-table td {
  padding: 14px 18px; font-size: 0.88rem;
  border-bottom: 1px solid var(--grey-50);
}
.admin-table tr:hover td { background: var(--grey-50); }
.admin-table .user-cell { display: flex; align-items: center; gap: 10px; }
.admin-table .user-cell-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--green-100); display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 0.8rem;
  color: var(--green-800); flex-shrink: 0; background-size: cover;
  background-position: center; line-height: 1; font-family: 'Poppins', sans-serif;
}
.role-badge {
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 0.72rem; font-weight: 700;
}
.role-badge.admin { background: var(--orange-50); color: var(--orange-500); }
.role-badge.creator { background: var(--purple-50); color: var(--purple-500); }
.role-badge.customer { background: var(--green-50); color: var(--green-600); }
.role-badge.student { background: #eff6ff; color: #2563eb; }
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px;
}
.status-dot.active { background: var(--green-500); }
.status-dot.draft { background: var(--yellow-500); }
.status-dot.inactive { background: var(--grey-400); }

/* ============================================================
   PROFILE PAGE
   ============================================================ */
.profile-header {
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--radius-xl); padding: 32px;
  display: flex; align-items: center; gap: 24px; margin-bottom: 24px;
}
.profile-avatar-wrapper {
  position: relative; cursor: pointer; flex-shrink: 0;
  width: 80px; height: 80px; border-radius: 50%;
}
.profile-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-400), var(--green-600));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 700; color: var(--white);
  flex-shrink: 0; background-size: cover; background-position: center;
}
.avatar-overlay {
  position: absolute; inset: 0; border-radius: 50%;
  background: rgba(0,0,0,0.55); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  opacity: 0; transition: opacity 0.2s; color: white; font-size: 0.65rem;
}
.avatar-overlay svg { width: 16px; height: 16px; stroke: white; }
.profile-avatar-wrapper:hover .avatar-overlay { opacity: 1; }
.profile-info h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 2px; }
.profile-info p { color: var(--grey-500); font-size: 0.9rem; }
.profile-stats-row { display: flex; gap: 24px; margin-top: 12px; }
.profile-stat { text-align: center; }
.profile-stat strong { display: block; font-size: 1.2rem; font-weight: 700; }
.profile-stat small { font-size: 0.78rem; color: var(--grey-500); }

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-bar {
  height: 8px; background: var(--grey-200); border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%; background: var(--green-500); border-radius: var(--radius-full);
  transition: width 0.6s ease;
}
.progress-bar.sm { height: 5px; }

/* ============================================================
   CERTIFICATES
   ============================================================ */
.certificate-card {
  background: linear-gradient(135deg, #3a7d23, #5cb338, #7ed957);
  border-radius: var(--radius-xl); padding: 32px; color: var(--white);
  position: relative; overflow: hidden; margin-bottom: 12px;
}
.certificate-card::before {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255,255,255,.1);
}
.certificate-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; position: relative; }
.certificate-card p { font-size: 0.85rem; opacity: 0.8; position: relative; }
.certificate-icon {
  position: absolute; top: 20px; right: 20px; opacity: 0.3;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--grey-400);
}
.empty-state svg { margin-bottom: 16px; opacity: 0.4; }
.empty-state h3 { font-size: 1.1rem; font-weight: 700; color: var(--grey-600); margin-bottom: 6px; }
.empty-state p { font-size: 0.9rem; margin-bottom: 20px; }

/* ============================================================
   CATEGORY PILLS / FILTER BAR
   ============================================================ */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px;
}
.filter-pill {
  padding: 7px 18px; border-radius: var(--radius-full);
  border: 1.5px solid var(--grey-200); background: var(--white);
  font-size: 0.82rem; font-weight: 600; color: var(--grey-600);
  cursor: pointer; transition: var(--transition);
}
.filter-pill:hover { border-color: var(--green-500); color: var(--green-600); }
.filter-pill.active { background: var(--green-600); color: var(--white); border-color: var(--green-600); }

/* ============================================================
   SECTION CARDS
   ============================================================ */
.section-card {
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--radius-xl); overflow: hidden; margin-bottom: 24px;
}
.section-card-header {
  padding: 20px 24px; border-bottom: 1px solid var(--grey-100);
  display: flex; align-items: center; justify-content: space-between;
}
.section-card-header h3 { font-size: 1.05rem; font-weight: 700; }
.section-card-body { padding: 20px 24px; }

/* ============================================================
   CONTINUE LEARNING CARDS (horizontal)
   ============================================================ */
.continue-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px; margin-bottom: 28px;
}
.continue-card {
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg); padding: 18px;
  display: flex; gap: 16px; cursor: pointer; transition: var(--transition);
}
.continue-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.continue-card-thumb {
  width: 110px; height: 72px; border-radius: var(--radius-sm);
  background-size: cover; background-position: center; flex-shrink: 0;
  position: relative;
}
.continue-card-thumb .play-overlay {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; background: rgba(0,0,0,.25); border-radius: var(--radius-sm);
  opacity: 0; transition: var(--transition);
}
.continue-card:hover .play-overlay { opacity: 1; }
.play-overlay svg { stroke: var(--white); }
.continue-card-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.continue-card-info h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; line-height: 1.3; }
.continue-card-info small { color: var(--grey-500); font-size: 0.78rem; display: block; margin-bottom: 8px; }

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.loading-spinner {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 80px 20px; color: var(--grey-400);
}
.spinner {
  width: 40px; height: 40px; border: 3px solid var(--grey-200);
  border-top-color: var(--green-500); border-radius: 50%;
  animation: spin 0.8s linear infinite; margin-bottom: 16px;
}
.loading-spinner p { font-size: 0.9rem; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   ADMIN USER DETAIL
   ============================================================ */
.admin-detail-header {
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--radius-xl); padding: 28px 32px;
  display: flex; align-items: center; gap: 20px; margin-bottom: 24px;
  position: relative;
}
.admin-detail-header .profile-avatar {
  width: 72px; height: 72px; font-size: 1.6rem;
}
.admin-detail-meta { flex: 1; }
.admin-detail-meta h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 2px; display: flex; align-items: center; gap: 10px; }
.admin-detail-meta p { color: var(--grey-500); font-size: 0.88rem; }
.admin-detail-stats {
  display: flex; gap: 18px; margin-top: 10px;
}
.admin-detail-stat {
  background: var(--grey-50); border-radius: var(--radius-md);
  padding: 6px 14px; font-size: 0.82rem; color: var(--grey-600); font-weight: 600;
}
.admin-detail-stat strong { color: var(--text-primary); margin-right: 4px; }
.admin-detail-actions {
  display: flex; gap: 8px; position: absolute; top: 24px; right: 28px;
}
.admin-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.admin-detail-section {
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--radius-xl); overflow: hidden;
}
.admin-detail-section-header {
  padding: 18px 24px; border-bottom: 1px solid var(--grey-100);
  font-size: 0.95rem; font-weight: 700; color: var(--text-primary);
  display: flex; align-items: center; gap: 8px;
}
.admin-detail-section-body { padding: 20px 24px; }

/* Edit form */
.admin-edit-row { margin-bottom: 16px; }
.admin-edit-row label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--grey-600); margin-bottom: 5px;
}
.admin-edit-row input,
.admin-edit-row select {
  width: 100%; padding: 9px 14px; border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-md); font-size: 0.9rem;
  font-family: 'Poppins', sans-serif; transition: var(--transition);
}
.admin-edit-row input:focus,
.admin-edit-row select:focus {
  border-color: var(--green-500); outline: none;
  box-shadow: 0 0 0 3px rgba(92, 179, 56, 0.12);
}

/* Admin Notes */
.admin-note-input-row {
  display: flex; gap: 8px; margin-bottom: 16px;
}
.admin-note-input-row textarea {
  flex: 1; padding: 10px 14px; border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-md); font-size: 0.88rem; resize: vertical;
  min-height: 60px; font-family: 'Poppins', sans-serif;
  transition: var(--transition);
}
.admin-note-input-row textarea:focus {
  border-color: var(--green-500); outline: none;
  box-shadow: 0 0 0 3px rgba(92, 179, 56, 0.12);
}
.admin-note-item {
  padding: 12px 0; border-bottom: 1px solid var(--grey-100);
}
.admin-note-item:last-child { border-bottom: none; }
.admin-note-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 4px;
}
.admin-note-author {
  font-size: 0.8rem; font-weight: 600; color: var(--grey-600);
}
.admin-note-date { font-size: 0.75rem; color: var(--grey-400); }
.admin-note-content { font-size: 0.88rem; color: var(--text-primary); line-height: 1.5; }
.admin-note-delete {
  background: none; border: none; color: var(--grey-400);
  cursor: pointer; font-size: 1rem; padding: 2px 6px;
  border-radius: var(--radius-sm); transition: var(--transition);
}
.admin-note-delete:hover { color: #e53e3e; background: #fff5f5; }

/* Course progress items */
.user-course-progress-item {
  padding: 14px 0; border-bottom: 1px solid var(--grey-100);
}
.user-course-progress-item:last-child { border-bottom: none; }
.user-course-progress-title {
  font-size: 0.9rem; font-weight: 600; margin-bottom: 6px;
  display: flex; align-items: center; justify-content: space-between;
}
.user-course-progress-title span { font-size: 0.82rem; color: var(--green-600); font-weight: 700; }
.user-course-progress-bar {
  height: 6px; background: var(--grey-200); border-radius: var(--radius-full);
  overflow: hidden;
}
.user-course-progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--green-500), var(--green-400));
  border-radius: var(--radius-full); transition: width 0.6s ease;
}
.user-course-progress-detail {
  font-size: 0.78rem; color: var(--grey-500); margin-top: 4px;
}

/* Certificates list in admin */
.admin-cert-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--grey-100);
}
.admin-cert-item:last-child { border-bottom: none; }
.admin-cert-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-400), var(--green-600));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.admin-cert-icon svg { stroke: var(--white); }
.admin-cert-info { flex: 1; }
.admin-cert-info strong { font-size: 0.88rem; display: block; }
.admin-cert-info small { font-size: 0.78rem; color: var(--grey-500); }

/* Bookmark list in admin */
.admin-bookmark-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--grey-100);
}
.admin-bookmark-item:last-child { border-bottom: none; }
.admin-bookmark-icon {
  color: var(--yellow-500); flex-shrink: 0;
}
.admin-bookmark-info { flex: 1; }
.admin-bookmark-info strong { font-size: 0.88rem; display: block; }
.admin-bookmark-info small { font-size: 0.78rem; color: var(--grey-500); }

/* Badges */
.badge-deactivated {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 0.72rem; font-weight: 700;
  background: #fff5f5; color: #e53e3e;
}
.badge-approved {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 0.72rem; font-weight: 700;
  background: var(--green-50); color: var(--green-600);
}
.badge-pending {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 0.72rem; font-weight: 700;
  background: var(--orange-50); color: var(--orange-500);
}

/* Extra button variants (used in admin/creator views) */
.btn-outline-danger {
  background: transparent; color: #e53e3e;
  border: 1.5px solid #e53e3e; padding: 8px 18px; border-radius: var(--radius-md);
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: var(--transition); font-family: 'Poppins', sans-serif;
}
.btn-outline-danger:hover { background: #fff5f5; }
.btn-success {
  background: var(--green-500); color: var(--white);
  border: none; padding: 8px 18px; border-radius: var(--radius-md);
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: var(--transition); font-family: 'Poppins', sans-serif;
}
.btn-success:hover { background: var(--green-600); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-xl); z-index: 9999; }
  .sidebar-close { display: block; }
  .main-content { margin-left: 0; }
  .topbar-menu { display: block; }
  .player-layout { grid-template-columns: 1fr; }
  .player-sidebar { height: auto; max-height: 50vh; border-left: none; border-top: 1px solid var(--grey-200); }
}

@media (max-width: 768px) {
  .login-container { grid-template-columns: 1fr; }
  .login-left { display: none; }
  .page-content { padding: 20px 16px; }
  .courses-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .continue-grid { grid-template-columns: 1fr; }
  .course-detail-info { padding: 20px; }
  .profile-header { flex-direction: column; text-align: center; }
  .profile-stats-row { justify-content: center; }
  .notif-dropdown { right: 10px; width: calc(100vw - 20px); }
  .admin-detail-grid { grid-template-columns: 1fr; }
  .admin-detail-header { flex-direction: column; text-align: center; padding: 20px; }
  .admin-detail-actions { position: static; justify-content: center; margin-top: 12px; }
  .admin-detail-stats { justify-content: center; flex-wrap: wrap; }

  /* Admin-Tabellen mobile */
  .admin-table { border-radius: 12px; }
  .admin-table table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-table th, .admin-table td { padding: 10px 12px; font-size: 0.82rem; white-space: nowrap; }
  .admin-table .user-cell { gap: 8px; }
  .admin-table .user-cell-avatar { width: 28px; height: 28px; font-size: 0.7rem; }

  /* Zertifikate mobile */
  .certificate-card { padding: 20px; }
  .certificate-card h3 { font-size: 0.95rem; }
  .certificate-card p { font-size: 0.8rem; }
  .certificate-icon { top: 12px; right: 12px; }

  /* Kursprogress mobile */
  .user-course-progress-card { padding: 16px; }
  .user-course-progress-header { flex-direction: column; gap: 8px; }

  /* Admin-Noten mobile */
  .admin-note-card { padding: 16px; }
  .admin-note-card textarea { font-size: 0.88rem; }

  /* Admin Zertifikats-Items mobile */
  .admin-cert-item { flex-direction: column; gap: 8px; padding: 12px; }

  /* Admin Lesezeichen mobile */
  .admin-bookmark-item { flex-direction: column; gap: 8px; }

  /* Section Cards mobile */
  .section-card-header { padding: 16px; }
  .section-card-body { padding: 16px; }

  /* Filter Bar mobile */
  .filter-bar { gap: 6px; }
  .filter-pill { padding: 6px 14px; font-size: 0.78rem; }

  /* Feedback Screenshot mobile */
  .feedback-screenshot-area { max-height: 200px; overflow: auto; }

  /* Einstellungen mobile */
  .settings-grid { grid-template-columns: 1fr; }
  .settings-card { padding: 20px; }
  .settings-section { padding: 16px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .creator-course-card { flex-direction: column; }
  .creator-course-card img { width: 100%; height: 140px; }

  /* Admin-Tabellen extra small */
  .admin-table th, .admin-table td { padding: 8px 10px; font-size: 0.78rem; }
  .page-content { padding: 16px 12px; }
}

/* ============================================================
   PUBLIC VIEW — Landing Page
   ============================================================ */

.public-view {
  min-height: 100vh;
  background: var(--white);
}

/* --- Header --- */
/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.public-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 40px;
  height: 64px;
  background: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}

.public-logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
  flex-shrink: 0;
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
  flex: 1;
  justify-content: center;
}

/* --- Nav Links with animated underline --- */
.public-nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  height: 36px;
  white-space: nowrap;
  position: relative;
}
/* Animated green underline on hover */
.public-nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #7ed957;
  border-radius: 2px;
  transition: width 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), left 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.public-nav-link:hover::after,
.public-nav-link.active::after {
  width: 60%;
  left: 20%;
}
.public-nav-link:hover {
  color: #1e293b;
}
.public-nav-link.active {
  color: #166534;
  font-weight: 600;
}
/* Chevron animation in dropdowns */
.public-nav-link svg {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.public-nav-dropdown-wrap:hover > .public-nav-link svg {
  transform: rotate(180deg);
}

/* --- Dropdown Wrapper — padding-bottom creates hover bridge --- */
.public-nav-dropdown-wrap {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.public-nav-dropdown-wrap > .public-nav-link {
  cursor: default;
}
/* Invisible hover bridge between link and dropdown */
.public-nav-dropdown-wrap::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 16px;
  pointer-events: none;
}
.public-nav-dropdown-wrap:hover::after {
  pointer-events: auto;
}

/* --- Standard Dropdown --- */
.public-nav-dropdown {
  position: absolute;
  top: calc(100%);
  left: 50%;
  transform: translateX(-50%) translateY(8px) scale(0.96);
  transform-origin: top center;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.04);
  min-width: 220px;
  padding: 8px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.25s;
}
.public-nav-dropdown-wrap:hover .public-nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* Dropdown items */
.public-nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #475569;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, padding-left 0.2s ease;
  text-decoration: none;
}
.public-nav-dropdown a:hover {
  background: rgba(126,217,87,0.08);
  color: #166534;
  padding-left: 18px;
}

/* --- Mega Dropdown (Tools) --- */
.public-nav-dropdown--mega {
  min-width: 560px;
  padding: 16px;
  left: 0;
  transform: translateX(0) translateY(8px) scale(0.96);
  transform-origin: top left;
}
.public-nav-dropdown-wrap:hover .public-nav-dropdown--mega {
  transform: translateX(0) translateY(0) scale(1);
}
.nav-dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.nav-dropdown-item {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 12px !important;
  border-radius: 12px !important;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease !important;
}
.nav-dropdown-item:hover {
  background: rgba(126,217,87,0.06) !important;
  transform: translateX(4px);
}
.nav-dropdown-item:hover .nav-dropdown-icon {
  transform: scale(1.05);
}
.nav-dropdown-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-dropdown-item span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-dropdown-item strong {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e293b;
  transition: color 0.15s ease;
}
.nav-dropdown-item small {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 400;
}
.nav-dropdown-item:hover strong {
  color: #166534;
}

/* Nav CTA Button */
.nav-cta {
  border-radius: 10px !important;
  font-weight: 600 !important;
  padding: 9px 20px !important;
  font-size: 0.85rem !important;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease !important;
}
.nav-cta:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 16px rgba(126,217,87,0.3);
}

/* ============================================================
   DARK MODE HEADER
   ============================================================ */
body.dark-mode .public-header {
  background: rgba(15,23,42,0.85);
  border-bottom-color: rgba(255,255,255,0.06);
}
body.dark-mode .public-logo { color: #e2e8f0; }
body.dark-mode .public-nav-link { color: #94a3b8; }
body.dark-mode .public-nav-link:hover { color: #e2e8f0; }
body.dark-mode .public-nav-link.active { color: #7ed957; }
body.dark-mode .public-nav-link::after { background: #7ed957; }
body.dark-mode .public-nav-dropdown {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
body.dark-mode .public-nav-dropdown a { color: #94a3b8; }
body.dark-mode .public-nav-dropdown a:hover { background: rgba(255,255,255,0.06); }
body.dark-mode .nav-dropdown-item strong { color: #e2e8f0; }
body.dark-mode .nav-dropdown-item small { color: #64748b; }
body.dark-mode .nav-dropdown-item:hover strong { color: #7ed957; }
body.dark-mode .nav-dropdown-item:hover { background: rgba(255,255,255,0.06) !important; }
body.dark-mode .public-header-actions { background: transparent; }
body.dark-mode .public-nav { background: transparent; border-color: #334155; }

.public-header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.public-mobile-menu {
  display: none;
  background: none;
  border: none;
  color: var(--dark);
  padding: 4px;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.public-mobile-menu:focus-visible {
  outline: 2px solid var(--green-400);
  outline-offset: 2px;
  border-radius: 8px;
}
/* Kein schwarzes Tap-Highlight auf ALLEN Nav-Elementen */
.public-nav-link,
.public-nav-dropdown a,
.nav-dropdown-item,
.public-darkmode-toggle,
.public-header-actions .btn,
.public-header-actions a {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.public-view .btn-sm { padding: 7px 16px; }
.public-view .btn-lg { padding: 14px 32px; }

.btn-outline-light {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-weight: 600;
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}
.btn-ghost {
  background: transparent !important;
  border: none !important;
  color: var(--grey-500);
  font-weight: 600;
  padding: 14px 20px;
  gap: 6px;
}
.btn-ghost:hover {
  color: var(--green-500);
  background: transparent !important;
}
body.dark-mode .btn-ghost { color: #94a3b8; }
body.dark-mode .btn-ghost:hover { color: #7ed957; }

.btn-vemo {
  background: #7ed957 !important;
  color: #fff !important;
  border: none !important;
  font-weight: 700;
}
.btn-vemo:hover {
  background: #6bc948 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(126,217,87,0.35);
}

.btn-secondary {
  background: var(--grey-100);
  color: var(--dark);
  font-weight: 600;
}
.btn-secondary:hover {
  background: var(--grey-200);
}
body.dark-mode .btn-secondary {
  background: #334155;
  color: #e2e8f0;
}
body.dark-mode .btn-secondary:hover {
  background: #475569;
}

.btn-white {
  background: var(--white);
  color: var(--dark);
  border: 2px solid var(--white);
  font-weight: 700;
}
.btn-white:hover {
  background: var(--grey-50);
}

/* --- Hero --- */
.lp-hero {
  background: var(--grey-50);
  padding: 80px 40px 0;
  overflow: hidden;
  position: relative;
}

.lp-hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.lp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow-50);
  color: #92400e;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.lp-hero-text h1 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--dark);
}

.lp-hero-accent {
  color: var(--green-500);
  font-style: italic;
}

.lp-hero-text p {
  font-size: 1.1rem;
  color: var(--grey-500);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}
.lp-hero-text p.lp-hero-subline {
  font-size: 0.95rem;
  color: var(--grey-400);
  margin-top: -24px;
  margin-bottom: 32px;
  font-style: italic;
  opacity: 0.85;
}
.lp-hero-provenexpert {
  margin-top: 16px;
  display: flex;
  align-items: center;
}
.lp-hero-provenexpert img {
  border-radius: 8px;
  max-width: 150px;
  height: auto;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.lp-hero-provenexpert img:hover {
  opacity: 1;
}
@media (max-width: 768px) {
  .lp-hero-provenexpert {
    justify-content: center;
    margin-top: 12px;
  }
  .lp-hero-provenexpert img {
    max-width: 130px;
  }
}

.lp-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero Visual / Mockup */
.lp-hero-visual {
  position: relative;
}

.lp-hero-mockup {
  background: var(--dark);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,0.05);
}

.lp-mockup-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--dark-800);
}

.lp-mockup-dots {
  display: flex;
  gap: 6px;
}

.lp-mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dark-600);
}

.lp-mockup-dots span:first-child { background: #ff5f57; }
.lp-mockup-dots span:nth-child(2) { background: #febc2e; }
.lp-mockup-dots span:last-child { background: #28c840; }

.lp-mockup-url {
  font-size: 0.72rem;
  color: var(--grey-400);
  background: var(--dark-700);
  padding: 4px 12px;
  border-radius: var(--radius-xs);
  flex: 1;
  text-align: center;
}

.lp-mockup-screen {
  aspect-ratio: 16/10;
  background: var(--grey-50);
  position: relative;
}

/* CSS-only mockup placeholder */
.lp-mockup-placeholder {
  display: flex;
  width: 100%;
  height: 100%;
}

.lp-mockup-sidebar {
  width: 22%;
  background: var(--white);
  padding: 12px 8px;
  border-right: 1px solid var(--grey-200);
}

.lp-m-logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  padding: 4px 8px;
  margin-bottom: 12px;
}

.lp-m-logo span { color: var(--green-500); }

.lp-m-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lp-m-nav span {
  height: 8px;
  background: var(--grey-100);
  border-radius: 4px;
  width: 80%;
}

.lp-m-nav span:first-child {
  background: var(--green-100);
}

.lp-mockup-main {
  flex: 1;
  padding: 12px;
}

.lp-m-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.lp-m-search {
  height: 10px;
  width: 40%;
  background: var(--grey-100);
  border-radius: 5px;
}

.lp-m-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-200);
}

.lp-m-title {
  height: 12px;
  width: 35%;
  background: var(--grey-200);
  border-radius: 4px;
  margin-bottom: 12px;
}

.lp-m-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 6px;
  margin-bottom: 12px;
}

.lp-m-card {
  aspect-ratio: 1;
  background: var(--grey-100);
  border-radius: 6px;
}

.lp-m-card:first-child { background: var(--green-50); }
.lp-m-card:nth-child(2) { background: var(--blue-50); }

.lp-m-chart {
  height: 40%;
  background: linear-gradient(135deg, var(--grey-100) 0%, var(--green-50) 100%);
  border-radius: 6px;
}

/* Floating badges */
.lp-hero-floating {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: -8px 10px 30px rgba(0,0,0,0.25), -2px 4px 12px rgba(0,0,0,0.12);
  font-size: 0.82rem;
  animation: floatBadge 6s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
@media (min-width: 769px) {
  .lp-hero-floating:hover {
    transform: translateY(-6px) scale(1.05) !important;
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
  }
}
.lp-hero-provenexpert-visual {
  position: absolute;
  bottom: -10px;
  right: -20px;
  z-index: 2;
}
.lp-hero-provenexpert-visual img {
  transition: opacity 0.2s, transform 0.2s;
}
.lp-hero-provenexpert-visual img:hover {
  opacity: 1 !important;
  transform: scale(1.04);
}

.lp-hero-floating strong {
  display: block;
  font-size: 0.95rem;
  color: var(--dark);
}

.lp-hero-floating small {
  display: block;
  color: var(--grey-500);
  font-size: 0.72rem;
}

.lp-float-1 {
  top: 45%;
  right: -90px;
  animation-delay: 0s;
}

.lp-float-2 {
  bottom: 12%;
  left: -70px;
  animation-delay: 1.5s;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* --- Stats Bar --- */
.lp-stats {
  background: var(--dark);
  padding: 40px;
}

.lp-stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.lp-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--white);
}

.lp-stat-icon {
  width: 52px;
  height: 52px;
  background: rgba(126,217,87,0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-400);
  flex-shrink: 0;
}

.lp-stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
  line-height: 1.1;
}

.lp-stat-label {
  font-size: 0.82rem;
  color: var(--grey-400);
  display: block;
}

.lp-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--dark-700);
}

/* --- Section Utilities --- */
.lp-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.lp-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.lp-section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #7ed957;
  margin-bottom: 12px;
}

.lp-section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}

.lp-section-header p {
  font-size: 1rem;
  color: var(--grey-500);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Features --- */
.lp-features {
  padding: 80px 0;
  background: var(--white);
}

.lp-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.lp-feature-card {
  background: var(--white);
  border: 2px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.lp-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  border-color: var(--green-300);
}

.lp-feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.lp-feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.lp-feature-card p {
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.6;
}

/* --- Courses Section --- */
.lp-courses {
  padding: 80px 0;
  background: var(--grey-50);
}

.public-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* Lock Badge on Course Cards */
.course-card-thumb { position: relative; }

.course-lock-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.course-lock-badge svg {
  width: 18px;
  height: 18px;
  color: var(--white);
  stroke: var(--white);
}

/* --- Curriculum / Learning Paths --- */
.lp-curriculum {
  padding: 80px 0;
  background: var(--white);
}

.lp-path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.lp-path-card {
  background: var(--grey-50);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.lp-path-card:hover {
  border-color: var(--green-200);
  box-shadow: var(--shadow-md);
}

.lp-path-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--green-100);
  line-height: 1;
  margin-bottom: 16px;
}

.lp-path-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--dark);
}

.lp-path-content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lp-path-content li {
  font-size: 0.88rem;
  color: var(--grey-600);
  padding-left: 24px;
  position: relative;
}

.lp-path-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green-100);
  border: 2px solid var(--green-400);
}

/* --- How It Works --- */
.lp-how {
  padding: 80px 0;
  background: var(--grey-50);
}

.lp-steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
}

.lp-step {
  flex: 1;
  max-width: 280px;
  text-align: center;
  position: relative;
}

.lp-step-icon {
  width: 64px;
  height: 64px;
  background: rgba(126,217,87,0.18);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #166534;
  margin: 0 auto 16px;
}

.lp-step-num {
  width: 28px;
  height: 28px;
  background: var(--green-500);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  position: absolute;
  top: 0;
  right: calc(50% - 48px);
}

.lp-step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.lp-step p {
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.6;
}

.lp-step-arrow {
  display: flex;
  align-items: center;
  padding-top: 32px;
}

/* --- Testimonials --- */
.lp-testimonials {
  padding: 80px 0;
  background: var(--white);
}

.lp-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.lp-testimonial {
  background: var(--grey-50);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.lp-testimonial-stars {
  color: #fbbc04;
  font-size: 1.1rem;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.lp-testimonial p {
  font-size: 0.9rem;
  color: var(--grey-600);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}

.lp-testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--grey-200);
  padding-top: 16px;
}

.lp-testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.lp-testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.lp-testimonial-author strong {
  display: block;
  font-size: 0.85rem;
}

.lp-testimonial-author span {
  display: block;
  font-size: 0.72rem;
  color: var(--grey-400);
}

/* --- FAQ --- */
.lp-faq {
  padding: 80px 0;
  background: var(--grey-50);
}

.lp-faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lp-faq-item {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.lp-faq-item summary {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition);
}

.lp-faq-item summary:hover {
  background: var(--grey-50);
}

.lp-faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--grey-500);
  transition: transform var(--transition);
}

.lp-faq-item[open] summary::after {
  content: '–';
}

.lp-faq-item summary::-webkit-details-marker {
  display: none;
}

.lp-faq-item p {
  padding: 0 24px 18px;
  font-size: 0.9rem;
  color: var(--grey-500);
  line-height: 1.7;
}

/* --- Final CTA --- */
.lp-cta {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 80px 40px;
  text-align: center;
  color: var(--white);
}

.lp-cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.lp-cta h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.lp-cta p {
  font-size: 1.05rem;
  color: var(--grey-300);
  margin-bottom: 32px;
  line-height: 1.7;
}

.lp-cta-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.lp-cta-sub {
  font-size: 0.8rem !important;
  color: var(--grey-400) !important;
  margin-bottom: 0 !important;
}

/* --- Footer --- */
.lp-footer {
  background: var(--dark);
  color: var(--grey-400);
}

.lp-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px 40px;
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 60px;
}

.lp-footer-brand p {
  font-size: 0.85rem;
  margin-top: 12px;
  line-height: 1.6;
  color: var(--grey-400);
}

.lp-footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.lp-footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.lp-footer-link {
  display: block;
  font-size: 0.85rem;
  color: var(--grey-400);
  margin-bottom: 10px;
  transition: color var(--transition);
}

.lp-footer-link:hover {
  color: var(--green-400);
}

.lp-footer-addr {
  font-size: 0.85rem;
  line-height: 1.6;
}

.lp-footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.lp-footer-social a {
  width: 36px;
  height: 36px;
  background: var(--dark-700);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-400);
  transition: var(--transition);
}

.lp-footer-social a:hover {
  background: var(--green-600);
  color: var(--white);
}

.lp-footer-disclaimer {
  padding: 16px 40px;
  border-top: 1px solid var(--dark-700);
}
.lp-footer-disclaimer p {
  font-size: 0.72rem;
  color: var(--grey-500);
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
}
.lp-footer-bottom {
  border-top: 1px solid var(--dark-700);
  padding: 20px 40px;
  text-align: center;
}

.lp-footer-bottom p {
  font-size: 0.78rem;
  color: var(--grey-500);
}

/* --- Announcement Bar --- */
.lp-announcement {
  background: var(--dark);
  color: var(--white);
  padding: 10px 20px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.lp-announcement-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.lp-announcement-inner svg { flex-shrink: 0; color: var(--green-400); }
.lp-announcement-inner strong { color: var(--green-400); }

/* --- Hero USPs --- */
.lp-hero-usps {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lp-hero-usps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--grey-600);
  font-weight: 500;
}
body.dark-mode .lp-hero-usps li { color: #cbd5e1; }
@media (max-width: 768px) {
  .lp-hero-usps li { font-size: 0.88rem; }
}

/* --- Hero Trust Stars --- */
.lp-hero-trust-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--grey-200);
}
.lp-hero-trust-stars {
  display: flex;
  gap: 2px;
}
.lp-hero-trust-mini > span {
  font-size: 0.85rem;
  color: var(--dark-600);
  font-weight: 600;
}

/* Hero trust avatars */
.lp-hero-trust-google {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lp-hero-trust-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-left: 8px;
}
.lp-hero-trust-text span {
  font-size: 0.82rem;
  color: var(--grey-500);
  font-weight: 500;
}
body.dark-mode .lp-hero-trust-mini { border-top-color: rgba(255,255,255,0.08); }
body.dark-mode .lp-hero-trust-text span { color: #94a3b8; }

/* Trust avatars stack */
.lp-hero-trust-avatars {
  display: flex;
  align-items: center;
}
.lp-hero-trust-avatars img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  margin-left: -8px;
}
.lp-hero-trust-avatars img:first-child {
  margin-left: 0;
}
body.dark-mode .lp-hero-trust-avatars img {
  border-color: #1e293b;
}

/* --- Hero Mockup Image (legacy) --- */
.lp-mockup-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Hero Dashboard Mockup --- */
.lp-mockup-dashboard {
  display: flex;
  width: 100%;
  height: 100%;
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
}

.lp-md-sidebar {
  width: 160px;
  min-width: 160px;
  background: var(--white);
  border-right: 1px solid var(--grey-200);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
}

.lp-md-logo {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--dark);
  padding: 2px 8px;
  margin-bottom: 16px;
}
.lp-md-logo span { color: var(--green-500); }

.lp-md-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lp-md-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--grey-400);
  cursor: default;
  transition: all 0.15s;
}
.lp-md-nav-item.active {
  background: var(--green-50);
  color: var(--green-700);
  font-weight: 600;
}
.lp-md-nav-item.active svg { stroke: var(--green-600); }

.lp-md-main {
  flex: 1;
  padding: 14px 16px;
  background: var(--grey-50);
  overflow: hidden;
}

.lp-md-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.lp-md-greeting {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--dark);
}
.lp-md-avatar-small {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-300), var(--green-500));
}

.lp-md-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.lp-md-stat-card {
  background: var(--white);
  border-radius: 8px;
  padding: 10px 10px 8px;
  border: 1px solid var(--grey-100);
}
.lp-md-stat-card.accent {
  background: var(--dark);
  border-color: var(--dark);
}
.lp-md-stat-card.accent .lp-md-stat-label { color: var(--grey-400); }
.lp-md-stat-card.accent .lp-md-stat-value { color: var(--green-400); }
.lp-md-stat-label {
  display: block;
  font-size: 0.52rem;
  color: var(--grey-400);
  font-weight: 500;
  margin-bottom: 2px;
}
.lp-md-stat-value {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.lp-md-progress {
  height: 4px;
  background: var(--grey-100);
  border-radius: 2px;
  overflow: hidden;
}
.lp-md-progress-bar {
  height: 100%;
  background: var(--green-500);
  border-radius: 2px;
  transition: width 1s ease;
}

.lp-md-section-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lp-md-courses {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}
.lp-md-course {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}
.lp-md-course.active {
  border-color: var(--green-400);
  box-shadow: 0 0 0 2px var(--green-100);
}
.lp-md-course.locked { opacity: 0.45; }
.lp-md-course-icon { font-size: 1rem; }
.lp-md-course-name {
  font-size: 0.52rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.2;
}
.lp-md-course-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-md-course-badge.done {
  background: var(--green-500);
  color: white;
}
.lp-md-course-progress {
  height: 3px;
  background: var(--grey-100);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 2px;
}
.lp-md-course-progress div {
  height: 100%;
  background: var(--green-500);
  border-radius: 2px;
}

/* Responsive mockup */
@media (max-width: 768px) {
  .lp-md-sidebar { display: none; }
  .lp-md-stats-row { grid-template-columns: 1fr 1fr; }
  .lp-md-stats-row .lp-md-stat-card:last-child { display: none; }
  .lp-md-courses { grid-template-columns: 1fr 1fr; }
  .lp-md-courses .lp-md-course:nth-child(n+5) { display: none; }
}

/* --- Module Section --- */
.lp-module {
  padding: 80px 0;
  background: var(--white);
}
.lp-module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.lp-module-card {
  background: var(--white);
  border: 2px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  position: relative;
  transition: var(--transition);
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}
.lp-module-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-color: var(--green-400);
}
.lp-module-number {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--green-500);
  opacity: 0.55;
  line-height: 1;
  margin-bottom: 12px;
}
.lp-module-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.lp-module-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}
.lp-module-card p {
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.6;
}
.lp-module-cta {
  text-align: center;
  margin-top: 40px;
}
.lp-module-cta-sub {
  font-size: 0.82rem;
  color: var(--grey-500);
  margin-top: 12px;
}

/* --- Comparison Section --- */
.lp-compare {
  padding: 80px 0;
  background: var(--dark);
}
.lp-compare .lp-section-header h2 {
  color: #fff;
}
.lp-compare .lp-section-header p {
  color: #cbd5e1;
}
body.dark-mode .lp-compare .lp-section-header h2 {
  color: #f1f5f9;
}
body.dark-mode .lp-compare .lp-section-header p {
  color: #94a3b8;
}
.lp-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.lp-compare-col {
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}
.lp-compare-bad {
  background: rgba(239,68,68,0.08);
  border: 2px solid rgba(239,68,68,0.25);
}
.lp-compare-good {
  background: rgba(126,217,87,0.08);
  border: 2px solid rgba(126,217,87,0.3);
}
.lp-compare-col-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.lp-compare-bad .lp-compare-col-header {
  color: #f87171;
  border-bottom-color: rgba(239,68,68,0.2);
}
.lp-compare-good .lp-compare-col-header {
  color: var(--green-400);
  border-bottom-color: rgba(126,217,87,0.2);
}
.lp-compare-col-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}
.lp-compare-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lp-compare-col ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.lp-compare-col ul li svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.lp-compare-bad ul li svg {
  color: #f87171;
}
.lp-compare-good ul li svg {
  color: var(--green-400);
}
.lp-compare-col ul li div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lp-compare-col ul li strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--white);
}
.lp-compare-col ul li span {
  font-size: 0.82rem;
  color: var(--grey-400);
  line-height: 1.5;
}

/* --- Finanz-Tunnel Section --- */
.lp-tunnel {
  padding: 80px 0;
  background: var(--white);
}
.lp-tunnel .lp-section-header em {
  color: var(--green-500);
  font-style: normal;
}

/* Tunnel Quiz Container */
.tunnel-quiz {
  max-width: 680px;
  margin: 0 auto;
}

/* Progress Bar */
.tunnel-progress {
  margin-bottom: 40px;
}
.tunnel-progress-bar {
  height: 6px;
  background: var(--grey-200);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 16px;
}
.tunnel-progress-fill {
  height: 100%;
  background: var(--green-500);
  border-radius: 3px;
  transition: width 0.4s ease;
}
.tunnel-progress-steps {
  display: flex;
  justify-content: space-between;
}
.tunnel-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grey-100);
  color: var(--grey-400);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.tunnel-dot.current {
  background: var(--green-500);
  color: white;
  box-shadow: 0 0 0 4px rgba(126,217,87,0.25);
}
.tunnel-dot.done {
  background: var(--green-500);
  color: white;
}

/* Tunnel Steps */
.tunnel-back-btn {
  background: none;
  border: none;
  color: var(--text-muted, #888);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px 0;
  margin-bottom: 8px;
  display: inline-block;
  transition: color 0.2s;
}
.tunnel-back-btn:hover {
  color: var(--primary, #2563eb);
}
.tunnel-step {
  display: none;
  animation: tunnelFadeIn 0.4s ease;
}
.tunnel-step.active {
  display: block;
}
@keyframes tunnelFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.tunnel-question {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  text-align: center;
}
.tunnel-subtitle {
  font-size: 0.9rem;
  color: var(--grey-500);
  text-align: center;
  margin-bottom: 28px;
}

/* Tunnel Options */
.tunnel-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tunnel-options-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.tunnel-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.tunnel-options-grid .tunnel-option:nth-child(4),
.tunnel-options-grid .tunnel-option:nth-child(5) {
  grid-column: span 1;
}

.tunnel-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--white);
  border: 2px solid var(--grey-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--dark);
  position: relative;
  overflow: hidden;
}
.tunnel-option::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(126,217,87,0.05), rgba(126,217,87,0.15));
  opacity: 0;
  transition: opacity 0.25s;
}
.tunnel-option:hover {
  border-color: var(--green-400);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(126,217,87,0.15);
}
.tunnel-option:hover::before {
  opacity: 1;
}
.tunnel-option.selected {
  border-color: var(--green-500);
  background: rgba(126,217,87,0.08);
  box-shadow: 0 0 0 3px rgba(126,217,87,0.2);
}

/* 2-col option cards (gender/goal) */
.tunnel-options-2 .tunnel-option {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px;
  gap: 12px;
}
/* Grid option cards (age) */
.tunnel-options-grid .tunnel-option {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 12px;
  gap: 8px;
}

.tunnel-option-emoji {
  font-size: 2rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.tunnel-option-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  z-index: 1;
}
.tunnel-option-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
  position: relative;
  z-index: 1;
}
.tunnel-option-desc {
  font-size: 0.8rem;
  color: var(--grey-500);
  font-weight: 400;
  position: relative;
  z-index: 1;
}

/* Tunnel Result */
.tunnel-result {
  max-width: 800px;
  margin: 0 auto;
  animation: tunnelFadeIn 0.5s ease;
}
.tunnel-result-hero {
  text-align: center;
  margin-bottom: 20px;
}
.tunnel-result-hero .tunnel-result-tag {
  display: inline-block;
  background: rgba(126,217,87,0.15);
  color: var(--green-600);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}
.tunnel-result-amount {
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--green-600);
  line-height: 1.1;
  margin-bottom: 8px;
}
.tunnel-result-subtitle {
  font-size: 1rem;
  color: var(--grey-500);
}

/* Breakdown Bars */
.tunnel-breakdown {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
  background: var(--grey-50);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.tunnel-breakdown-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.tunnel-breakdown-item {
  display: flex;
  align-items: center;
  gap: 16px;
}
.tunnel-breakdown-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}
.tunnel-breakdown-info {
  flex: 1;
  min-width: 0;
}
.tunnel-breakdown-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}
.tunnel-breakdown-bar {
  height: 10px;
  background: var(--grey-200);
  border-radius: 5px;
  overflow: hidden;
}
.tunnel-breakdown-bar-fill {
  height: 100%;
  background: var(--green-500);
  border-radius: 5px;
  transition: width 1s ease;
}
.tunnel-breakdown-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--green-600);
  white-space: nowrap;
  min-width: 100px;
  text-align: right;
}

/* Recommendation Card */
.tunnel-recommendation {
  background: var(--dark);
  border-radius: var(--radius-xl);
  padding: 36px;
  color: var(--white);
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.tunnel-recommendation::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(126,217,87,0.15), transparent 70%);
  pointer-events: none;
}
.tunnel-rec-badge {
  display: inline-block;
  background: var(--green-500);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tunnel-rec-plan {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.tunnel-rec-reason {
  font-size: 0.92rem;
  color: var(--grey-300);
  line-height: 1.6;
  margin-bottom: 24px;
}
.tunnel-rec-roi {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.tunnel-rec-roi-item {
  flex: 1;
  min-width: 120px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}
.tunnel-rec-roi-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-400);
  display: block;
}
.tunnel-rec-roi-label {
  font-size: 0.78rem;
  color: var(--grey-400);
  margin-top: 4px;
  display: block;
}
.tunnel-rec-cta-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.tunnel-rec-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
}
.tunnel-rec-cta-primary {
  background: var(--green-500);
  color: var(--white);
}
.tunnel-rec-cta-primary:hover {
  background: var(--green-600);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(126,217,87,0.3);
}
.tunnel-rec-cta-secondary {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 2px solid rgba(255,255,255,0.25);
}
.tunnel-rec-cta-secondary:hover {
  border-color: var(--green-400);
  color: var(--white);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Personalized Power-Moves */
.tunnel-examples {
  background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin-bottom: 32px;
  border: 1px solid rgba(126,217,87,0.15);
}
.tunnel-examples-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 24px;
  text-align: center;
}
.tunnel-examples-title span.power-label {
  display: inline-block;
  background: var(--green-500);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 10px;
}
.tunnel-examples-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.tunnel-example-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.tunnel-example-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--green-500), var(--green-300));
  opacity: 0;
  transition: var(--transition);
}
.tunnel-example-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: rgba(126,217,87,0.2);
}
.tunnel-example-item:hover::before {
  opacity: 1;
}
.tunnel-example-item .ex-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border-radius: 12px;
}
.tunnel-example-item .ex-text {
  font-size: 0.88rem;
  color: var(--grey-600);
  line-height: 1.6;
}
.tunnel-example-item .ex-text strong {
  display: block;
  color: var(--dark);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.tunnel-example-item .ex-amount {
  display: inline-block;
  background: linear-gradient(135deg, var(--green-500), #4ade80);
  color: white;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 50px;
  margin-top: 6px;
}

/* Tunnel Actions */
.tunnel-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}
.tunnel-actions button {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  border: 2px solid var(--grey-200);
  background: var(--white);
  color: var(--dark);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
}
.tunnel-actions button:hover {
  border-color: var(--green-400);
  color: var(--green-600);
}

/* Tunnel Fun Comparisons */
.tunnel-fun {
  margin-bottom: 16px;
}
.tunnel-fun-title {
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}
.tunnel-fun-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.tunnel-fun-card {
  text-align: center;
  padding: 16px 8px;
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.tunnel-fun-card:hover {
  background: rgba(126,217,87,0.08);
  border-color: rgba(126,217,87,0.3);
  transform: translateY(-3px);
}
.tunnel-fun-emoji {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 6px;
}
.tunnel-fun-card strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--green-600);
  line-height: 1.2;
}
.tunnel-fun-card span:last-child {
  display: block;
  font-size: 0.72rem;
  color: var(--grey-500);
  margin-top: 2px;
}

/* Compact Breakdown Chips */
.tunnel-breakdown-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}
.tbc-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 16px;
  padding: 14px 18px 12px;
  font-size: 0.82rem;
  color: var(--grey-600);
  min-width: 140px;
}
.tbc-chip strong {
  color: var(--dark);
  font-weight: 700;
  font-size: 0.95rem;
}
.tbc-icon {
  font-size: 1.1rem;
}
.tbc-context {
  font-size: 0.72rem;
  color: var(--grey-500);
  line-height: 1.3;
}

/* Fun grid — exactly 3 columns */
.tunnel-fun-grid-3 {
  grid-template-columns: repeat(3, 1fr) !important;
}

/* Tunnel Packages Section — uses .pkg-selection class, rendered outside lp-section-inner */
.tunnel-pkg-selection {
  padding-top: 0;
  padding-left: 24px;
  padding-right: 24px;
}
.tunnel-pkg-grid {
  text-align: left;
}
.tunnel-pkg-consult {
  display: block;
  text-align: center;
  color: var(--green-600);
  font-size: 0.82rem;
  margin-top: 12px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tunnel-pkg-consult:hover {
  color: var(--green-700);
}

/* Tunnel Footnote */
.tunnel-footnote {
  text-align: center;
  font-size: 0.75rem;
  color: var(--grey-400);
  margin-top: 24px;
  font-style: italic;
}

/* --- Goal CTA Section --- */
.lp-goal-cta {
  padding: 60px 0;
  background: var(--grey-50);
}
.lp-goal-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: linear-gradient(135deg, var(--dark) 0%, #1e2a40 100%);
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  position: relative;
  overflow: hidden;
}
.lp-goal-cta-inner::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(126,217,87,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.lp-goal-cta-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.3;
}
.lp-goal-cta-text p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  max-width: 520px;
}
.lp-goal-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-500);
  color: var(--white);
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition);
  flex-shrink: 0;
}
.lp-goal-cta-btn:hover {
  background: var(--green-600);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(126,217,87,0.35);
}

/* --- Was du lernst / Vorteile pro Bereich --- */
.lp-learn {
  padding: 80px 0;
  background: var(--dark);
}
.lp-learn .lp-section-header h2 {
  color: var(--white);
}
.lp-learn .lp-section-header p {
  color: rgba(255,255,255,0.75);
}
.lp-learn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.lp-learn-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.08);
}
.lp-learn-card:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(126,217,87,0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.12);
}
.lp-learn-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}
.lp-learn-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.lp-learn-card > p {
  font-size: 0.88rem;
  color: var(--grey-300);
  line-height: 1.6;
  margin-bottom: 16px;
}
.lp-learn-card strong {
  color: var(--green-400);
}
.lp-learn-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 14px;
}
.lp-learn-card ul li {
  font-size: 0.82rem;
  color: var(--grey-400);
  padding: 5px 0;
  padding-left: 20px;
  position: relative;
}
.lp-learn-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green-500);
  font-weight: 700;
  font-size: 0.78rem;
}

/* --- Video Section --- */
.lp-video-section {
  padding: 40px 0;
  background: var(--grey-50);
}
.lp-video-container {
  max-width: 800px;
  margin: 0 auto;
}
.lp-video-placeholder {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: var(--dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.lp-video-placeholder .lp-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 72px;
  height: 72px;
  background: rgba(126,217,87,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-video-placeholder .lp-video-play svg {
  margin-left: 4px;
}
.lp-video-placeholder span {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  color: var(--grey-400);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}
.lp-video-placeholder iframe,
.lp-video-placeholder video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-lg);
}

/* --- Advantages Section --- */
.lp-advantages {
  padding: 80px 0;
  background: var(--grey-50);
}
.lp-advantages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.lp-advantage-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border: 2px solid var(--grey-200);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.lp-advantage-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transform: translateY(-2px);
  border-color: var(--green-300);
}
.lp-advantage-icon {
  width: 48px;
  height: 48px;
  background: rgba(126,217,87,0.18);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #166534;
  flex-shrink: 0;
}
.lp-advantage-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.lp-advantage-card p {
  font-size: 0.84rem;
  color: #4b5563;
  line-height: 1.5;
}

/* --- Team Section --- */
.lp-team {
  padding: 80px 0;
  background: var(--white);
}
.lp-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.lp-team-card {
  background: var(--grey-50);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.lp-team-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.lp-team-photo {
  height: 340px;
  overflow: hidden;
  background: var(--grey-100);
}
.lp-team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 0.4s ease;
}
.lp-team-card:hover .lp-team-photo img {
  transform: scale(1.05);
}
/* Team Crossfade — light/dark mode images */
.team-img-crossfade {
  position: relative;
  width: 100%;
  height: 100%;
}
.team-img-crossfade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.team-img-dark {
  position: absolute;
  top: 0; left: 0;
  opacity: 0;
}
.team-img-light { opacity: 1; }
body.dark-mode .team-img-light { opacity: 0; }
body.dark-mode .team-img-dark { opacity: 1; }
.lp-team-info {
  padding: 20px;
}
.lp-team-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--dark);
}
.lp-team-role {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-600);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.lp-team-desc {
  font-size: 0.85rem;
  color: var(--grey-500);
  line-height: 1.5;
  margin-bottom: 12px;
}
.lp-team-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lp-team-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--green-50);
  color: var(--green-700);
  border: 1px solid var(--green-200);
}
.lp-team-exp {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--grey-400);
}
/* --- Swissborg-Style Photo Effect --- */
.lp-team-photo {
  position: relative;
}
.lp-team-photo img {
  filter: grayscale(100%) contrast(1.05) brightness(1.05);
}
.lp-team-photo-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(126, 217, 87, 0.25) 0%, rgba(40, 47, 71, 0.5) 100%);
  mix-blend-mode: multiply;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.lp-team-card:hover .lp-team-photo img {
  filter: grayscale(0%) contrast(1) brightness(1);
}
.lp-team-card:hover .lp-team-photo-overlay {
  opacity: 0;
}
.lp-team-card {
  cursor: pointer;
}
.lp-team-more {
  display: block;
  margin-top: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-600);
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.3s ease;
}
.lp-team-card:hover .lp-team-more {
  opacity: 1;
  transform: translateY(0);
}

/* --- Team Detail Modal --- */
.team-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 110000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.team-modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.team-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  border: none;
  background: var(--grey-100);
  border-radius: 50%;
  font-size: 1.3rem;
  color: var(--dark);
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-modal-close:hover {
  background: var(--grey-200);
  transform: rotate(90deg);
}
.team-modal-content {
  display: grid;
  grid-template-columns: 450px 1fr;
}
.team-modal-photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  min-height: 500px;
}
.team-modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}
.team-modal-body {
  padding: 40px 36px;
}
.team-modal-body h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.team-modal-role {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-600);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.team-modal-quote {
  font-size: 0.92rem;
  font-style: italic;
  color: var(--dark-600);
  border-left: 3px solid var(--green-500);
  padding-left: 16px;
  margin: 16px 0 24px;
  line-height: 1.6;
}
.team-modal-section {
  margin-bottom: 20px;
}
.team-modal-section h4 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--grey-400);
  margin-bottom: 8px;
}
.team-modal-section p {
  font-size: 0.88rem;
  color: var(--dark-600);
  line-height: 1.7;
}
.team-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.team-modal-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--green-50);
  color: var(--green-700);
  border: 1px solid var(--green-200);
}
.team-modal-cta {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--grey-100);
}
.team-modal-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* --- Booking Section --- */
.lp-booking {
  background: var(--dark);
  padding: 80px 40px;
}
.lp-booking-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.lp-booking-split {
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  text-align: left;
}
.lp-booking-inner h2,
.lp-booking-split h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}
.lp-booking-inner > p,
.lp-booking-text > p {
  font-size: 1rem;
  color: var(--grey-400);
  line-height: 1.7;
  margin-bottom: 32px;
}
.lp-booking-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.lp-booking-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--grey-300);
  font-weight: 500;
}
.lp-booking-list li svg {
  flex-shrink: 0;
}
.lp-booking-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.lp-booking-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--grey-400);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.lp-booking-calendly {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.lp-booking-calendly .calendly-inline-widget {
  min-height: 660px;
}
.lp-booking-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lp-booking-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.lp-booking-note {
  font-size: 0.78rem;
  color: var(--grey-500);
  font-weight: 500;
}

/* --- Footer Legal --- */
.lp-footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.lp-footer-legal {
  display: flex;
  gap: 20px;
}
.lp-footer-legal a {
  font-size: 0.78rem;
  color: var(--grey-500);
  transition: color var(--transition);
}
.lp-footer-legal a:hover {
  color: var(--green-400);
}

/* ============================================================
   LANDING PAGE — MOBILE RESPONSIVE (complete fix)
   ============================================================ */

@media (max-width: 1024px) {
  .lp-features-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-module-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-team-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .lp-testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Announcement */
  .lp-announcement { font-size: 0.75rem; padding: 8px 16px; }
  .lp-announcement-inner svg { display: none; }

  /* Body lock when menu is open — padding-top verhindert Content-Sprung */
  body.menu-open {
    overflow: hidden !important;
    padding-top: 60px !important;
  }
  /* Header — mobile: fixed, flex-wrap für Zeilen-Layout */
  .public-header {
    padding: 0 16px;
    min-height: 60px;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0 !important;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
  }
  /* Erste Zeile: Logo links, Toggle+Hamburger rechts */
  .public-header .public-logo { order: 1 !important; }
  .public-header .public-darkmode-toggle { order: 2 !important; margin-left: auto !important; }
  .public-header .public-mobile-menu { order: 3 !important; margin-left: 8px !important; }
  /* Zweite Zeile: Nav + Actions (volle Breite, unter der ersten Zeile) */
  .public-header .public-nav { order: 10 !important; }
  .public-header .public-header-actions { order: 11 !important; }
  /* Spacer damit Content nicht hinter dem fixed Header verschwindet */
  .public-header + * {
    margin-top: 60px;
  }
  .public-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 16px 0 8px;
    gap: 2px;
    border-top: 1px solid rgba(0,0,0,0.06);
    margin-top: 0;
    height: auto;
  }
  .public-nav-link {
    padding: 10px 14px;
    font-size: 0.9rem;
    height: auto;
    border-radius: 8px;
  }
  .public-nav-link::after { display: none; }
  .public-header.nav-open {
    height: auto;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    z-index: 1001;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow-y: auto;
    max-height: 80vh;
  }
  body.dark-mode .public-header.nav-open {
    background: var(--dark);
  }
  .public-header.nav-open .public-nav {
    display: flex;
    animation: navSlideDown 0.15s ease-out;
  }
  @keyframes navSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  /* Mobile dropdowns open inline */
  .public-nav-dropdown-wrap {
    height: auto;
    flex-direction: column;
  }
  .public-nav-dropdown-wrap > .public-nav-link {
    width: 100%;
  }
  .public-nav-dropdown {
    position: static !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    min-width: 0 !important;
    padding: 0 0 0 12px !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: none;
    background: transparent !important;
  }
  .public-nav-dropdown-wrap.mobile-open .public-nav-dropdown {
    display: block;
    animation: navSlideDown 0.25s ease;
  }
  .public-nav-dropdown--mega {
    min-width: 0 !important;
    padding: 4px 0 4px 8px !important;
  }
  .nav-dropdown-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 2px !important;
  }
  .nav-dropdown-item {
    padding: 8px 8px !important;
    gap: 8px !important;
  }
  .nav-dropdown-item strong {
    font-size: 0.78rem !important;
  }
  .nav-dropdown-item small {
    display: none !important;
  }
  .nav-dropdown-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px !important;
  }
  /* Mobile: header-actions komplett versteckt (Toggle ist separates Element) */
  .public-header-actions {
    display: none !important;
  }
  .public-mobile-menu {
    margin-left: 8px;
  }
  /* Wenn offen: header-actions als Button-Zeile unten */
  .public-header.nav-open .public-header-actions {
    display: flex !important;
    flex-wrap: wrap;
    width: 100%;
    order: 11;
    padding: 10px 0 8px;
    gap: 8px;
    border-top: 1px solid rgba(0,0,0,0.06);
    margin-top: 4px;
  }
  .public-header.nav-open .public-header-actions .public-darkmode-toggle {
    display: none !important;
  }
  .public-header.nav-open .public-header-actions .btn {
    display: flex !important;
    flex: 1 !important;
    text-align: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
    font-size: 0.82rem !important;
  }
  .public-mobile-menu { display: block; }

  /* Hero */
  .lp-hero { padding: 24px 20px 0; }
  .lp-hero-content { grid-template-columns: 1fr; gap: 20px; }
  .lp-hero-text h1 { font-size: 2rem; }
  .lp-hero-text p { font-size: 1rem; }
  .lp-hero-actions { flex-direction: column; }
  .lp-hero-actions .btn { width: 100%; justify-content: center; }
  .lp-hero-trust-mini {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
  }
  .lp-hero-trust-avatars img {
    width: 28px;
    height: 28px;
  }
  .lp-hero-trust-google svg {
    width: 22px;
    height: 22px;
  }
  .lp-hero-trust-text {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .lp-hero-trust-stars svg {
    width: 12px;
    height: 12px;
  }
  .lp-hero-trust-text span {
    font-size: 0.75rem;
  }
  .lp-hero-floating { display: none; }

  /* Stats */
  .lp-stats { padding: 24px 20px; }
  .lp-stats-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .lp-stat-divider { display: none; }
  .lp-stat {
    flex-direction: column;
    text-align: center;
    gap: 6px;
    min-width: auto;
  }
  .lp-stat-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto;
  }
  .lp-stat-number { font-size: 1.1rem; }
  .lp-stat-label { font-size: 0.7rem; white-space: nowrap; }

  /* Features */
  .lp-features { padding: 60px 0; }
  .lp-features-grid { grid-template-columns: 1fr; }
  .lp-section-header h2 { font-size: 1.5rem; }

  /* Courses */
  .lp-courses { padding: 60px 0; }
  .public-courses-grid { grid-template-columns: 1fr; }

  /* Module */
  .lp-module { padding: 60px 0; }
  .lp-module-grid { grid-template-columns: 1fr; }

  /* Comparison */
  .lp-compare { padding: 60px 0; }
  .lp-compare-grid { grid-template-columns: 1fr; position: relative; gap: 0; }
  .lp-compare-vs {
    position: relative;
    margin: -16px auto -16px;
    z-index: 2;
  }
  .lp-compare-col { padding: 24px 20px; }
  .lp-compare-col ul li { font-size: 0.82rem; padding: 10px 0; }
  .lp-compare-col ul li div strong { font-size: 0.85rem; }
  .lp-compare-col ul li div span { font-size: 0.75rem; }

  /* Finanz-Tunnel */
  .lp-tunnel { padding: 60px 0; }
  .tunnel-options-2 { grid-template-columns: 1fr; }
  .tunnel-options-grid { grid-template-columns: repeat(2, 1fr); }
  .tunnel-option { padding: 14px 16px; }
  .tunnel-options-2 .tunnel-option { padding: 20px 16px; }
  .tunnel-result-amount { font-size: 2.4rem; }
  .tunnel-breakdown { padding: 20px; }
  .tunnel-breakdown-item { flex-wrap: wrap; }
  .tunnel-breakdown-value { min-width: auto; text-align: left; }
  .tunnel-recommendation { padding: 24px; }
  .tunnel-rec-roi { flex-direction: column; gap: 12px; }
  .tunnel-rec-plan { font-size: 1.3rem; }
  .tunnel-actions { flex-direction: column; align-items: center; }
  .tunnel-fun-grid { grid-template-columns: repeat(3, 1fr); }
  .tunnel-fun-grid-3 { grid-template-columns: repeat(3, 1fr) !important; }
  .tunnel-breakdown-compact { gap: 6px; }
  .tbc-chip { padding: 10px 14px 8px; font-size: 0.75rem; min-width: 120px; }
  .tbc-context { font-size: 0.65rem; }

  /* Goal CTA */
  .lp-goal-cta-inner { flex-direction: column; text-align: center; padding: 32px 24px; }
  .lp-goal-cta-text p { max-width: 100%; }

  /* Was du lernst */
  .lp-learn { padding: 60px 0; }
  .lp-learn-grid { grid-template-columns: 1fr; }

  /* Video */
  .lp-video-section { padding: 30px 0; }

  /* Advantages */
  .lp-advantages { padding: 60px 0; }
  .lp-advantages-grid { grid-template-columns: 1fr; }

  /* Team */
  .lp-team { padding: 60px 0; }
  .lp-team-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .lp-team-photo {
    height: 200px;
    overflow: hidden;
  }
  .lp-team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }
  .lp-team-info h3 { font-size: 0.9rem; }
  .lp-team-role { font-size: 0.72rem; }
  .lp-team-desc { font-size: 0.75rem; -webkit-line-clamp: 2; }
  .lp-team-meta { display: none; }
  .lp-team-more { font-size: 0.75rem; opacity: 1; transform: none; }

  /* Team Modal */
  .team-modal-content { grid-template-columns: 1fr; }
  .team-modal-photo { min-height: 260px; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
  .team-modal-body { padding: 24px 20px 32px; }
  .team-modal { max-width: 100%; margin: 0 12px; border-radius: var(--radius-lg); }
  .team-modal-overlay { padding: 12px; }

  /* Booking */
  .lp-booking { padding: 60px 16px; }
  .lp-booking-inner, .lp-booking-split { padding: 0; }
  .lp-booking-split { grid-template-columns: 1fr; }
  .lp-booking-inner h2, .lp-booking-split h2 { font-size: 1.5rem; }
  .lp-booking-calendly {
    margin: 0 -4px;
    overflow: hidden;
    border-radius: 12px;
  }
  .lp-booking-calendly .calendly-inline-widget { min-height: 720px; margin: 0 auto; max-width: 100%; }

  /* How it works */
  .lp-how { padding: 60px 0; }
  .lp-steps-grid { flex-direction: column; align-items: center; }
  .lp-step { max-width: 100%; }
  .lp-step-arrow { transform: rotate(90deg); padding: 0; }

  /* Testimonials */
  .lp-testimonials { padding: 60px 0; }
  .lp-testimonials-grid { grid-template-columns: 1fr; }
  .lp-testimonial-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    overflow: hidden;
  }
  .lp-testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }
  .lp-testimonials-grid .lp-testimonial-card:nth-child(n+4):not(.lp-testimonial-hidden) {
    display: none;
  }
  .lp-testimonials-grid.show-all .lp-testimonial-card:nth-child(n+4):not(.lp-testimonial-hidden) {
    display: block;
  }

  /* FAQ */
  .lp-faq { padding: 60px 0; }

  /* Tunnel CTA row */
  .tunnel-rec-cta-row { flex-direction: column; width: 100%; }
  .tunnel-rec-cta { width: 100%; justify-content: center; }

  /* Floating button — smaller on mobile */
  .floating-beratung-btn { bottom: 16px; right: 16px; padding: 12px 18px; font-size: 0.82rem; }
  .floating-beratung-btn span { display: none; }

  /* CTA */
  .lp-cta { padding: 60px 20px; }
  .lp-cta h2 { font-size: 1.5rem; }
  .lp-cta-actions { flex-direction: column; gap: 12px; }
  .lp-cta-actions .btn { width: 100%; justify-content: center; }

  /* Footer */
  .lp-footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .lp-footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
  }
  .lp-footer-col h4 { font-size: 0.82rem; margin-bottom: 8px; }
  .lp-footer-link { font-size: 0.78rem; }
  .lp-footer-addr { font-size: 0.75rem; line-height: 1.4; }
  .lp-footer-bottom { padding: 16px 20px; }
  .lp-footer-bottom-inner { flex-direction: column; text-align: center; }
  .lp-footer-legal { justify-content: center; }

  /* Section inner padding */
  .lp-section-inner { padding: 0 20px; }

  /* Auth modal */
  .auth-modal { padding: 28px 20px; max-width: 100%; margin: 0 10px; }
}

@media (max-width: 480px) {
  .lp-hero-text h1 { font-size: 1.7rem; }
  .lp-stats-inner { gap: 12px; }
  .lp-stat { flex-direction: column; text-align: center; gap: 6px; }
  .lp-team-photo { height: 160px; }
  .lp-footer-links { grid-template-columns: 1fr; }
}

/* ============================================================
   AUTH MODAL — Login/Register overlay
   ============================================================ */

.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.auth-modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: modalSlideIn 0.25s ease-out;
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--grey-400);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.auth-modal-close:hover {
  background: var(--grey-100);
  color: var(--dark);
}

.auth-modal h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.auth-modal-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  background: var(--grey-100);
  border-radius: var(--radius-sm);
  padding: 4px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--grey-500);
  border-radius: var(--radius-xs);
  transition: var(--transition);
  cursor: pointer;
}

.auth-tab.active {
  background: var(--white);
  color: var(--dark);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   SALES / PRICING PAGE (v2 — Quiz + 3 Pakete + Beratung)
   ============================================================ */

.sales-page {
  min-height: 100vh;
  background: var(--grey-50);
  overflow-x: hidden;
}

.sales-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 0 0;
}

/* --- Quiz Section --- */
.sales-quiz {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.sales-quiz-step {
  display: none;
  animation: fadeIn 0.35s ease;
}
.sales-quiz-step.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.sales-quiz-progress {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 32px;
}
.sales-quiz-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--grey-200);
  transition: background 0.3s;
}
.sales-quiz-dot.done {
  background: var(--green-500);
}
.sales-quiz-dot.current {
  background: var(--green-400);
  box-shadow: 0 0 0 3px rgba(126,217,87,0.25);
}
.quiz-question {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}
.quiz-subtitle {
  color: var(--grey-500);
  font-size: 0.92rem;
  margin-bottom: 24px;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--white);
  border: 2px solid var(--grey-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--dark);
}
.quiz-option:hover {
  border-color: var(--green-400);
  background: var(--green-50);
}
.quiz-option .quiz-emoji {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.quiz-option-text strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.quiz-option-text span {
  font-size: 0.82rem;
  color: var(--grey-500);
  font-weight: 400;
}

/* --- Sales Hero (above pricing) --- */
.sales-hero {
  text-align: center;
  margin-bottom: 16px;
}
.sales-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}
.sales-hero h1 em {
  font-style: normal;
  color: var(--green-500);
}
.sales-hero p {
  color: var(--grey-500);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}
.sales-recommendation {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  color: var(--green-700);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  margin: 16px auto 32px;
}

/* --- Billing Toggle --- */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}
.billing-toggle-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--grey-500);
  cursor: pointer;
  transition: color 0.2s;
}
.billing-toggle-label.active {
  color: var(--dark);
  font-weight: 700;
}
.billing-toggle-switch {
  width: 48px; height: 26px;
  background: var(--grey-200);
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}
.billing-toggle-switch.yearly {
  background: var(--green-500);
}
.billing-toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.billing-toggle-switch.yearly::after {
  transform: translateX(22px);
}
.billing-toggle-save {
  background: var(--green-100);
  color: var(--green-700);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* --- Pricing Grid (3 cols) --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border: 2px solid var(--grey-200);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Highlighted (middle) card */
.pricing-card.highlighted {
  border-color: var(--green-500);
  box-shadow: 0 0 0 1px var(--green-500), var(--shadow-xl);
  transform: scale(1.04);
  z-index: 2;
}
.pricing-card.highlighted:hover {
  transform: scale(1.04) translateY(-3px);
}
.pricing-card.highlighted::before {
  content: 'Empfohlen';
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--green-500);
  color: var(--white);
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* VIP button */
.btn-vip { background: var(--dark); color: var(--white); }
.btn-vip:hover { background: #1a2332; }
body.dark-mode .btn-vip { background: var(--green-500); }
body.dark-mode .btn-vip:hover { background: #6bc948; }

.pricing-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.pricing-card-subtitle {
  font-size: 0.8rem;
  color: var(--grey-500);
  margin-bottom: 16px;
  min-height: 18px;
}

.pricing-card-price {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
}
.pricing-card-price small {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--grey-500);
}
.pricing-card-price-old {
  font-size: 0.85rem;
  color: var(--grey-400);
  text-decoration: line-through;
  margin-bottom: 4px;
}

.pricing-card-savings {
  color: var(--green-600);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
  min-height: 20px;
}

.pricing-card-trial {
  color: var(--green-500);
  font-size: 0.78rem;
  font-weight: 500;
  margin-bottom: 12px;
  padding: 4px 10px;
  background: var(--green-50);
  border-radius: 12px;
  display: inline-block;
}

/* Feature list */
.pricing-card-features {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
  flex: 1;
}
.pricing-card-features li {
  padding: 8px 0;
  font-size: 0.88rem;
  color: var(--grey-600);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}
.pricing-card-features li svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--green-500);
  stroke: var(--green-500);
  margin-top: 1px;
}
.pricing-card-features li.disabled {
  color: var(--grey-400);
  text-decoration: line-through;
}
.pricing-card-features li.disabled svg {
  color: var(--grey-300);
  stroke: var(--grey-300);
}

.pricing-card .btn {
  width: 100%;
  margin-top: auto;
}

/* Booking link under CTA */
.pricing-card-consult {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--grey-500);
}
.pricing-card-consult a {
  color: var(--green-600);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.pricing-card-consult a:hover {
  color: var(--green-700);
}

/* --- Social proof bar --- */
.sales-social-proof-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 16px 24px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  max-width: 780px;
  margin: 0 auto 40px;
  flex-wrap: wrap;
}
.sales-social-proof-bar .sp-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--grey-600);
  font-weight: 500;
}
.sales-social-proof-bar .sp-divider {
  width: 1px; height: 24px;
  background: var(--grey-200);
}

/* --- Comparison Table --- */
.comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 900px;
  margin: 0 auto;
}
.comparison-table {
  max-width: 900px;
  margin: 48px auto;
  border-collapse: collapse;
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-200);
}
.comparison-table th,
.comparison-table td {
  padding: 14px 18px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--grey-100);
  text-align: center;
}
.comparison-table th {
  background: var(--grey-50);
  font-weight: 700;
  color: var(--dark);
}
.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--grey-600);
}
.comparison-table th.highlight {
  background: var(--green-50);
  color: var(--green-700);
}
.comparison-table td.highlight {
  background: var(--green-50, #f3fce9);
}
.ct-check {
  color: var(--green-500);
  font-weight: 700;
  font-size: 1.1rem;
}
.ct-cross {
  color: var(--grey-300);
  font-size: 1.1rem;
}

/* --- Beratung / Consultation CTA --- */
.sales-consult-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 780px;
  margin: 40px auto;
  padding: 28px 32px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-700) 100%);
  border-radius: var(--radius-lg);
  color: white;
}
.sales-consult-banner .consult-icon {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sales-consult-banner .consult-text {
  flex: 1;
}
.sales-consult-banner .consult-text h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.sales-consult-banner .consult-text p {
  font-size: 0.85rem;
  opacity: 0.8;
  line-height: 1.4;
}
.sales-consult-banner .btn-white-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.6);
  color: white;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.sales-consult-banner .btn-white-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}

/* --- Calendly Modal --- */
.calendly-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.calendly-modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  padding: 32px;
  position: relative;
  text-align: center;
}
.calendly-modal-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.calendly-modal-content p {
  color: var(--grey-500);
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.calendly-modal-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--grey-400);
  cursor: pointer;
}
.consult-contact-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.consult-contact-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 2px solid var(--grey-200);
  border-radius: var(--radius-md);
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: var(--dark);
}
.consult-contact-btn:hover {
  border-color: var(--green-400);
  background: var(--green-50);
}
.consult-contact-btn .cc-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.consult-contact-btn .cc-text {
  text-align: left;
}
.consult-contact-btn .cc-text strong {
  display: block;
  font-size: 0.92rem;
}
.consult-contact-btn .cc-text span {
  font-size: 0.8rem;
  color: var(--grey-500);
}

/* --- Floating Beratung Button --- */
.floating-beratung-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--green-500);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  font-family: inherit;
  padding: 14px 24px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(126,217,87,0.35), 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
}
.floating-beratung-btn.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
.floating-beratung-btn:hover {
  background: var(--green-600);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 32px rgba(126,217,87,0.45), 0 4px 12px rgba(0,0,0,0.2);
}
.floating-beratung-btn svg {
  flex-shrink: 0;
}
body.dark-mode .floating-beratung-btn {
  color: #fff !important;
}

/* --- Outline White Button (for Final CTA) --- */
.btn-outline-white {
  background: transparent !important;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,0.4) !important;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.7) !important;
}

/* Override Calendly popup z-index to be above floating button */
.calendly-overlay {
  z-index: 99999 !important;
}

/* --- Sales Guarantee --- */
.sales-guarantee {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 560px;
  margin: 32px auto;
  padding: 20px 24px;
  background: var(--green-50, #f0fdf4);
  border: 1px solid var(--green-200, #bbf7d0);
  border-radius: var(--radius-md);
}
.sales-guarantee .guarantee-icon {
  flex-shrink: 0;
  margin-top: 2px;
}
.sales-guarantee strong {
  color: var(--green-600);
  font-size: 0.95rem;
}
.sales-guarantee p {
  color: var(--grey-600);
  font-size: 0.85rem;
  margin-top: 4px;
  line-height: 1.5;
}

/* --- Sales FAQ --- */
.sales-faq {
  max-width: 600px;
  margin: 32px auto;
}
.sales-faq h3 {
  text-align: center;
  margin-bottom: 16px;
  font-size: 1.2rem;
  color: var(--dark);
}
.faq-item {
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-item summary {
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--grey-400);
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: '\2212';
}
.faq-item p {
  padding: 0 18px 14px;
  font-size: 0.85rem;
  color: var(--grey-600);
  line-height: 1.6;
}

/* --- Sales Final CTA --- */
.sales-final-cta {
  text-align: center;
  padding: 40px 24px;
  max-width: 500px;
  margin: 0 auto;
}
.sales-final-cta h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.sales-final-cta > p:first-of-type {
  color: var(--grey-500);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* --- Sales back link --- */
.sales-back-link {
  text-align: center;
  margin-top: 20px;
  padding-bottom: 40px;
}
.sales-back-link a {
  color: var(--grey-500);
  font-size: 0.85rem;
  text-decoration: underline;
}

/* Auth Welcome Avatar */
.auth-welcome-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--grey-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 2px dashed var(--grey-300);
  transition: border-color 0.2s;
  background-size: cover;
  background-position: center;
}
.auth-welcome-avatar:hover {
  border-color: var(--green-500);
}
.auth-avatar-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.5);
  color: white;
  font-size: 0.7rem;
  padding: 4px 0;
  opacity: 0;
  transition: opacity 0.2s;
}
.auth-welcome-avatar:hover .auth-avatar-overlay {
  opacity: 1;
}

/* Beta Access Gate */
.beta-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f1218 0%, #1a1f2e 50%, #0f1218 100%);
  padding: 20px;
}
.beta-gate::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(126, 217, 87, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(126, 217, 87, 0.05) 0%, transparent 50%);
  pointer-events: none;
}
.beta-gate-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}
.beta-gate-logo {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.beta-gate-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(126, 217, 87, 0.12);
  color: var(--green-400);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  border-radius: 20px;
  border: 1px solid rgba(126, 217, 87, 0.2);
  margin-bottom: 20px;
}
.beta-gate-title {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.beta-gate-desc {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 28px;
}
/* Beta Keypad */
.beta-keypad { text-align: center; }
.beta-keypad-display {
  display: flex; gap: 16px; justify-content: center; margin-bottom: 24px;
}
.beta-dot {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  transition: all 0.2s;
}
.beta-dot.filled { background: #fff; border-color: #fff; }
.beta-dot.correct { background: var(--green-500); border-color: var(--green-500); }
.beta-dot.wrong { background: #ef4444; border-color: #ef4444; }
.beta-keypad-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  max-width: 240px; margin: 0 auto;
}
.beta-key {
  width: 100%; aspect-ratio: 1.4; border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #fff; font-size: 1.4rem; font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer; transition: all 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.beta-key:hover { background: rgba(255,255,255,0.12); transform: scale(1.05); }
.beta-key:active { background: var(--green-500); transform: scale(0.95); }
.beta-key-empty { visibility: hidden; }
.beta-key-del { font-size: 1.6rem; }
.beta-gate-error {
  color: #ef4444;
  font-size: 0.82rem;
  margin-top: 6px;
  text-align: left;
}
.beta-gate-footer {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.78rem;
  margin-top: 24px;
  line-height: 1.5;
}
.beta-gate-footer strong {
  color: rgba(255, 255, 255, 0.5);
}

/* Shake animation for wrong code */
@keyframes betaShake {
  0%, 100% { transform: translateX(0); }
  10%, 50%, 90% { transform: translateX(-6px); }
  30%, 70% { transform: translateX(6px); }
}
.beta-shake {
  animation: betaShake 0.5s ease;
}

@media (max-width: 480px) {
  .beta-gate-card {
    padding: 32px 24px;
  }
  .beta-gate-logo {
    font-size: 1.6rem;
  }
}

/* Email Verification Screen */
.email-verify-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--green-50);
  margin-bottom: 4px;
  animation: emailPulse 2s ease-in-out infinite;
}
@keyframes emailPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.2); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
}
.email-verify-tips {
  border: 1px solid var(--grey-100);
}
.email-verify-tips ul li {
  margin-bottom: 2px;
}

/* Sidebar Premium Link */
.sidebar-premium-link {
  background: var(--green-50) !important;
  color: var(--green-700) !important;
  border-radius: var(--radius-sm) !important;
  margin-top: 6px !important;
  font-weight: 600 !important;
  border: 1px solid var(--green-200) !important;
}
.sidebar-premium-link:hover {
  background: var(--green-100) !important;
}
.sidebar-premium-link svg {
  stroke: var(--green-600) !important;
}

/* Pricing recommended badge */
.pricing-recommended-badge {
  background: var(--green-500);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.pricing-card.highlighted .pricing-recommended-badge + .pricing-card-name {
  margin-top: 4px;
}

/* Hide default ::before when custom badge is used */
.pricing-card.highlighted:has(.pricing-recommended-badge)::before {
  display: none;
}

/* Sales Guarantee */
.sales-guarantee {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 560px;
  margin: 32px auto;
  padding: 20px 24px;
  background: var(--green-50, #f0fdf4);
  border: 1px solid var(--green-200, #bbf7d0);
  border-radius: var(--radius-md);
}
.sales-guarantee .guarantee-icon {
  flex-shrink: 0;
  margin-top: 2px;
}
.sales-guarantee strong {
  color: var(--green-600);
  font-size: 0.95rem;
}
.sales-guarantee p {
  color: var(--grey-600);
  font-size: 0.85rem;
  margin-top: 4px;
  line-height: 1.5;
}

/* Sales FAQ */
.sales-faq {
  max-width: 600px;
  margin: 32px auto;
}
.sales-faq h3 {
  text-align: center;
  margin-bottom: 16px;
  font-size: 1.2rem;
  color: var(--dark);
}
.faq-item {
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-item summary {
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--grey-400);
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-item p {
  padding: 0 18px 14px;
  font-size: 0.85rem;
  color: var(--grey-600);
  line-height: 1.6;
}

/* Sales Final CTA */
.sales-final-cta {
  text-align: center;
  padding: 40px 24px;
  max-width: 500px;
  margin: 0 auto;
}
.sales-final-cta h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.sales-final-cta > p:first-of-type {
  color: var(--grey-500);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* Sales back link */
.sales-back-link {
  text-align: center;
  margin-top: 20px;
  padding-bottom: 40px;
}

.sales-back-link a {
  color: var(--grey-500);
  font-size: 0.85rem;
  text-decoration: underline;
}

/* ============================================================
   RESPONSIVE — Public View & Auth Modal & Sales
   ============================================================ */

@media (max-width: 768px) {
  .public-header { padding: 12px 20px; }
  .public-hero { padding: 48px 20px; }
  .public-hero h1 { font-size: 1.8rem; }
  .public-courses { padding: 32px 20px 60px; }
  .public-courses-grid { grid-template-columns: 1fr; }
  .auth-modal { padding: 28px 20px; max-width: 100%; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.highlighted { transform: none; }
  .pricing-card.highlighted:hover { transform: translateY(-3px); }
  .sales-content { padding: 32px 20px 60px; }
  .sales-hero h1 { font-size: 1.5rem; }
  .sales-consult-banner { flex-direction: column; text-align: center; padding: 24px 20px; }
  .sales-consult-banner .btn-white-outline { width: 100%; }
  .sales-social-proof-bar { gap: 16px; padding: 16px 16px; }
  .sales-social-proof-bar .sp-divider { display: none; }
  .comparison-table { font-size: 0.82rem; }
  .comparison-table th, .comparison-table td { padding: 10px 10px; }
  .calendly-modal-content { padding: 24px 20px; }
}

/* ═══════════════════════════════════════════════════
   POST-REGISTRATION FLOW — Hide "Zurück" during onboarding
   ═══════════════════════════════════════════════════ */
.sales-page.postreg-flow .public-header-actions {
  display: none;
}

/* ═══════════════════════════════════════════════════
   POST-REGISTRATION TUNNEL (Fullscreen Quiz)
   ═══════════════════════════════════════════════════ */
.postreg-tunnel {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.postreg-tunnel-header {
  text-align: center;
  margin-bottom: 40px;
}
.postreg-tunnel-header .logo {
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 16px;
}
.postreg-tunnel-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.postreg-tunnel-subtitle {
  font-size: 1rem;
  color: var(--grey-500);
}
.postreg-tunnel-progress {
  margin-bottom: 32px;
}
.postreg-tunnel-progress-bar {
  height: 6px;
  background: var(--grey-100);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}
.postreg-tunnel-progress-fill {
  height: 100%;
  background: var(--green-500);
  border-radius: 3px;
  transition: width 0.4s ease;
}
.postreg-tunnel-progress-steps {
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
}
.postreg-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--grey-100);
  color: var(--grey-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
}
.postreg-dot.current {
  background: var(--green-500);
  color: white;
  box-shadow: 0 0 0 4px rgba(126, 217, 87, 0.2);
}
.postreg-dot.done {
  background: var(--green-500);
  color: white;
}
.postreg-step {
  display: none;
  animation: fadeInUp 0.35s ease;
}
.postreg-step.active {
  display: block;
}
/* Reuse existing tunnel-option styles from landing page */
.postreg-step .tunnel-question { font-size: 1.25rem; }
.postreg-step .tunnel-subtitle { margin-bottom: 24px; }

/* ═══════════════════════════════════════════════════
   PACKAGE SELECTION PAGE
   ═══════════════════════════════════════════════════ */
.pkg-selection {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0 80px;
}
.pkg-selection-header {
  text-align: center;
  margin-bottom: 32px;
}
.pkg-selection-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.pkg-selection-header p {
  font-size: 1.05rem;
  color: var(--grey-500);
  max-width: 600px;
  margin: 0 auto 16px;
}
.pkg-savings-hero {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  display: inline-block;
}
.pkg-savings-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green-600);
  margin-bottom: 4px;
}
/* Skip / X button */
.pkg-skip-btn {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 100;
  background: white;
  border: 1px solid var(--grey-200);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--grey-500);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.2s;
}
.pkg-skip-btn:hover { background: var(--grey-50); color: var(--dark); border-color: var(--grey-300); }

/* Result hero */
.pkg-result-hero {
  text-align: center;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-radius: 16px;
  padding: 32px 24px;
  margin-bottom: 32px;
}
.pkg-result-tag { font-size: 0.75rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--green-600); margin-bottom: 4px; }
.pkg-result-amount { font-size: 2.6rem; font-weight: 700; color: var(--dark); }
.pkg-result-subtitle { font-size: 0.9rem; color: var(--grey-500); margin-top: 4px; }

/* Breakdown bars */
.pkg-breakdown { margin-bottom: 40px; background: white; border-radius: 16px; padding: 28px; border: 1px solid var(--grey-100); }
.pkg-breakdown-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 20px; color: var(--dark); }
.pkg-breakdown-item { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.pkg-breakdown-item:last-child { margin-bottom: 0; }
.pkg-breakdown-icon { font-size: 1.4rem; width: 36px; text-align: center; }
.pkg-breakdown-info { flex: 1; }
.pkg-breakdown-label { font-size: 0.88rem; color: var(--grey-600); margin-bottom: 6px; }
.pkg-breakdown-bar { height: 10px; background: var(--grey-100); border-radius: 5px; overflow: hidden; }
.pkg-breakdown-bar-fill { height: 100%; background: linear-gradient(90deg, var(--green-400), var(--green-500)); border-radius: 5px; transition: width 0.8s ease; }
.pkg-breakdown-value { font-weight: 700; color: var(--dark); font-size: 0.92rem; min-width: 110px; text-align: right; }

/* Fun comparisons */
.pkg-fun { text-align: center; margin-bottom: 40px; padding: 28px 0; }
.pkg-fun-title { font-weight: 700; margin-bottom: 20px; font-size: 1.05rem; color: var(--dark); }
.pkg-fun-grid { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.pkg-fun-card { background: white; border: 1px solid var(--grey-100); border-radius: 16px; padding: 20px 24px; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 140px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.pkg-fun-emoji { font-size: 1.8rem; }
.pkg-fun-card strong { font-size: 1.4rem; color: var(--dark); }
.pkg-fun-card span { font-size: 0.82rem; color: var(--grey-500); }

/* Power moves */
.pkg-power-moves { margin-bottom: 40px; }
.pkg-power-title { font-size: 1.1rem; color: var(--dark); margin-bottom: 20px; line-height: 1.5; }
.power-label-tag { display: inline-block; background: var(--green-500); color: white; font-weight: 700; font-size: 0.72rem; padding: 4px 12px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 8px; }
.pkg-power-list { display: flex; flex-direction: column; gap: 14px; }
.pkg-power-item { display: flex; gap: 16px; background: white; border: 1px solid var(--grey-100); border-radius: 14px; padding: 20px; transition: box-shadow 0.2s; }
.pkg-power-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.pkg-power-icon { font-size: 1.6rem; margin-top: 2px; }
.pkg-power-text { flex: 1; }
.pkg-power-text strong { display: block; margin-bottom: 6px; color: var(--dark); font-size: 0.95rem; }
.pkg-power-text p { font-size: 0.88rem; color: var(--grey-600); margin: 0; line-height: 1.6; }
.pkg-power-amount { display: inline-block; background: #f0fdf4; color: var(--green-700); font-weight: 700; font-size: 0.82rem; padding: 4px 10px; border-radius: 6px; margin-top: 8px; }

/* Investment vs. Gewinn Grafik */
.pkg-invest-graphic {
  margin-bottom: 48px;
  background: linear-gradient(135deg, #f8fffe, #f0fdf4);
  border: 1px solid var(--green-100);
  border-radius: 20px;
  padding: 36px 32px;
  text-align: center;
}
.pkg-invest-title { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 28px; }
.pkg-invest-bars { display: flex; align-items: flex-end; justify-content: center; gap: 40px; margin-bottom: 20px; }
.pkg-invest-bar { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pkg-invest-bar-visual { width: 80px; border-radius: 12px 12px 0 0; display: flex; align-items: flex-end; justify-content: center; transition: height 0.6s ease; }
.pkg-invest-bar-invest { background: var(--grey-200); height: 40px; }
.pkg-invest-bar-gain { background: linear-gradient(180deg, var(--green-400), var(--green-500)); height: 180px; }
.pkg-invest-bar-value { font-weight: 700; font-size: 1.1rem; color: var(--dark); padding-bottom: 8px; }
.pkg-invest-bar-gain .pkg-invest-bar-value { color: white; }
.pkg-invest-bar-label { font-size: 0.82rem; color: var(--grey-500); font-weight: 500; }
.pkg-invest-multiplier {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; border: 2px solid var(--green-400);
  padding: 10px 24px; border-radius: 50px;
  font-size: 1rem; font-weight: 700; color: var(--dark);
}
.pkg-invest-multiplier strong { color: var(--green-600); font-size: 1.3rem; }

/* Compact Hero Section (top of package selection) */
.pkg-hero-compact {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1px solid var(--green-200);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 24px;
}
.pkg-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.pkg-hero-result { flex: 1; }
.pkg-hero-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 4px;
}
.pkg-hero-amount {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.1;
}
.pkg-hero-sub {
  font-size: 0.88rem;
  color: var(--grey-500);
  margin-top: 4px;
}
.pkg-hero-roi {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  border: 2px solid var(--green-400);
  border-radius: 14px;
  padding: 14px 20px;
  text-align: center;
  min-width: 90px;
}
.pkg-hero-roi-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green-600);
  line-height: 1;
}
.pkg-hero-roi-label {
  font-size: 0.68rem;
  color: var(--grey-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}
.pkg-hero-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pkg-hb-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1px solid var(--green-200);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.82rem;
  color: var(--grey-600);
}
.pkg-hb-chip span { font-size: 1rem; }
.pkg-hb-chip strong {
  color: var(--dark);
  font-weight: 700;
  margin-left: 2px;
}

/* Value Proposition Strip */
.pkg-value-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}
.pkg-vs-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  background: white;
  border: 1px solid var(--grey-100);
  border-radius: 12px;
}
.pkg-vs-icon {
  font-size: 1.4rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.pkg-vs-item strong {
  display: block;
  font-size: 0.88rem;
  color: var(--dark);
  margin-bottom: 3px;
}
.pkg-vs-item span {
  font-size: 0.78rem;
  color: var(--grey-500);
  line-height: 1.4;
}
.pkg-vs-amount {
  display: inline-block;
  background: #f0fdf4;
  color: var(--green-700) !important;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 6px;
}

@media (max-width: 1024px) {
  .pkg-value-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .pkg-hero-compact { padding: 20px; }
  .pkg-hero-top { flex-direction: column; align-items: flex-start; gap: 16px; }
  .pkg-hero-amount { font-size: 1.8rem; }
  .pkg-hero-breakdown { gap: 6px; }
  .pkg-hb-chip { font-size: 0.78rem; padding: 5px 10px; }
  .pkg-value-strip { grid-template-columns: 1fr; gap: 10px; }
  .pkg-vs-item { padding: 12px; }
}

/* Compact Analysis Section (collapsible, below packages) */
.pkg-analysis-compact {
  margin-top: 48px;
  border: 1px solid var(--grey-100);
  border-radius: 16px;
  background: white;
  overflow: hidden;
}
.pkg-analysis-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}
.pkg-analysis-header:hover { background: var(--grey-50); }
.pkg-analysis-header h3 { font-size: 1.05rem; margin: 0; color: var(--dark); }
.pkg-analysis-toggle-icon {
  transition: transform 0.3s;
  color: var(--grey-400);
  display: flex;
}
.pkg-analysis-compact .pkg-analysis-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 24px;
}
.pkg-analysis-compact.open .pkg-analysis-body {
  max-height: 2000px;
  padding: 0 24px 28px;
}
.pkg-analysis-compact.open .pkg-analysis-toggle-icon {
  transform: rotate(180deg);
}

/* Analysis Breakdown (compact horizontal) */
.pkg-analysis-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.pkg-ab-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--grey-50);
  border-radius: 10px;
  padding: 12px 14px;
}
.pkg-ab-icon { font-size: 1.2rem; }
.pkg-ab-label { flex: 1; font-size: 0.85rem; color: var(--grey-600); }
.pkg-ab-val { font-weight: 700; font-size: 0.88rem; color: var(--dark); white-space: nowrap; }

/* Analysis Power Moves (compact grid) */
.pkg-analysis-moves { margin-bottom: 24px; }
.pkg-am-title { font-size: 0.92rem; color: var(--grey-500); margin-bottom: 12px; font-weight: 600; }
.pkg-am-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.pkg-am-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--grey-50);
  border-radius: 10px;
}
.pkg-am-icon { font-size: 1.3rem; margin-top: 2px; }
.pkg-am-item strong { display: block; font-size: 0.88rem; color: var(--dark); margin-bottom: 4px; }
.pkg-am-item p { font-size: 0.82rem; color: var(--grey-600); margin: 0; line-height: 1.5; }
.pkg-am-amount {
  display: inline-block;
  background: #f0fdf4;
  color: var(--green-700);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 6px;
}

/* Analysis Fun Comparisons (compact chips) */
.pkg-analysis-fun { margin-bottom: 24px; }
.pkg-af-title { font-size: 0.92rem; color: var(--grey-500); margin-bottom: 10px; font-weight: 600; }
.pkg-af-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.pkg-af-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--grey-50);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--dark);
}
.pkg-af-chip strong { color: var(--green-600); }

/* Analysis ROI (compact inline) */
.pkg-analysis-roi {
  background: linear-gradient(135deg, #f8fffe, #f0fdf4);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
.pkg-ar-bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.pkg-ar-bar {
  background: white;
  border: 1px solid var(--grey-200);
  border-radius: 10px;
  padding: 10px 20px;
  min-width: 140px;
}
.pkg-ar-bar-gain {
  border-color: var(--green-400);
  background: #f0fdf4;
}
.pkg-ar-label { font-size: 0.75rem; color: var(--grey-500); display: block; margin-bottom: 2px; }
.pkg-ar-value { font-weight: 700; font-size: 1.05rem; color: var(--dark); }
.pkg-ar-bar-gain .pkg-ar-value { color: var(--green-600); }
.pkg-ar-arrow { font-size: 1.4rem; color: var(--green-500); font-weight: 700; }
.pkg-ar-multi { font-size: 0.92rem; color: var(--dark); }
.pkg-ar-multi strong { color: var(--green-600); font-size: 1.1rem; }

@media (max-width: 768px) {
  .pkg-result-banner { flex-direction: column; text-align: center; gap: 6px; }
  .pkg-analysis-breakdown { grid-template-columns: 1fr; }
  .pkg-am-grid { grid-template-columns: 1fr; }
  .pkg-ar-bars { flex-direction: column; gap: 8px; }
  .pkg-ar-arrow { transform: rotate(90deg); }
}

/* Package heading */
.pkg-heading-section { text-align: center; margin-top: 24px; margin-bottom: 20px; }
.pkg-heading-section h1 { font-size: 2rem; }
.pkg-heading-section p { color: var(--grey-500); margin-top: 10px; font-size: 1rem; }
.pkg-recommendation {
  display: inline-flex; align-items: center; gap: 8px;
  background: #f0fdf4; padding: 12px 24px; border-radius: 10px;
  font-size: 0.95rem; color: var(--dark); margin-top: 12px;
}

/* 3-col package grid */
.pkg-grid { display: grid; gap: 24px; margin-top: 36px; align-items: start; }
.pkg-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Personalized goals in cards */
.goal-item { background: #f0fdf4; border-radius: 8px; padding: 6px 8px; margin-bottom: 4px; font-weight: 500; }
.pricing-card-divider { height: 1px; background: var(--grey-100); margin: 14px 0; }
.pkg-recommended { border-color: var(--green-500) !important; box-shadow: 0 0 0 2px rgba(126,217,87,0.3), 0 8px 24px rgba(0,0,0,0.08) !important; }

/* Crossed-out features for Starter card */
.pricing-card-features-missing { opacity: 0.45; }
.pricing-card-features-missing li { text-decoration: line-through; }

/* Responsive Package Grid — match .pricing-grid breakpoints */
@media (max-width: 768px) {
  .pkg-grid-3 { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
  .pkg-invest-bars { gap: 24px; }
  .pkg-invest-bar-visual { width: 60px; }
  .pkg-selection-header h1 {
    font-size: 1.5rem;
  }
  .pkg-savings-amount {
    font-size: 1.8rem;
  }
  .postreg-tunnel-title {
    font-size: 1.3rem;
  }
  .postreg-dot {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }
}

/* ============================================================
   LIVE CALLS
   ============================================================ */
.live-calls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.lc-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.lc-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.07);
  transform: translateY(-2px);
}
.lc-card-live {
  border-color: var(--green-400);
  box-shadow: 0 0 0 2px var(--green-100);
}
.lc-card-soon {
  border-color: #f59e0b;
}
.lc-card-past {
  opacity: 0.7;
}
.lc-card-past:hover {
  opacity: 1;
}
.lc-card-header {
  padding: 16px 20px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lc-card-body {
  padding: 12px 20px 16px;
  flex: 1;
}
.lc-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}
.lc-card-body > p {
  font-size: 0.85rem;
  color: var(--grey-500);
  margin-bottom: 12px;
  line-height: 1.5;
}
.lc-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--grey-400);
}
.lc-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lc-card-footer {
  padding: 0 20px 20px;
}
/* Badges */
.lc-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}
.lc-badge-live {
  background: var(--green-50);
  color: var(--green-700);
  animation: lc-pulse 2s infinite;
}
@keyframes lc-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.lc-badge-soon {
  background: #fffbeb;
  color: #b45309;
}
.lc-badge-scheduled {
  background: var(--grey-100);
  color: var(--grey-600);
}
.lc-badge-past {
  background: var(--grey-50);
  color: var(--grey-400);
}
.lc-badge-premium {
  background: #f0f0ff;
  color: #5b4bd5;
}
.lc-badge-free {
  background: var(--green-50);
  color: var(--green-700);
}
/* Admin live call table */
.lc-admin-table {
  width: 100%;
  border-collapse: collapse;
}
.lc-admin-table th {
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--grey-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 12px;
  border-bottom: 2px solid var(--grey-100);
}
.lc-admin-table td {
  padding: 12px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--grey-100);
  vertical-align: middle;
}
.lc-admin-table tr:hover td {
  background: var(--grey-50);
}
/* Edit form inline */
.lc-edit-form {
  background: var(--grey-50);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 12px;
}
.lc-edit-form .form-group {
  margin-bottom: 14px;
}
.lc-edit-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--grey-500);
  margin-bottom: 4px;
}
.lc-edit-form input,
.lc-edit-form select,
.lc-edit-form textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: inherit;
}
.lc-edit-form textarea { min-height: 60px; resize: vertical; }
/* Responsive */
@media (max-width: 768px) {
  .live-calls-grid {
    grid-template-columns: 1fr;
  }
  .lc-admin-table { font-size: 0.82rem; }
  .lc-admin-table th, .lc-admin-table td { padding: 8px; }
}

/* ============================================================
   CALL ROOM PAGE
   ============================================================ */
.call-room {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 64px);
  overflow: hidden;
}

.call-room-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  flex-shrink: 0;
}
.call-room-topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.call-room-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
}
.call-room-host {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--grey-500);
}
.call-room-host-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--green-700);
}
.call-room-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.call-room-timer {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--grey-600);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  gap: 6px;
}
.call-room-timer .lc-badge-live {
  font-size: 0.7rem;
}
.call-room-participants {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--grey-500);
}
.call-room-leave {
  background: #ef4444;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
}
.call-room-leave:hover { background: #dc2626; }
.call-room-end-btn {
  background: #dc2626;
  box-shadow: 0 0 0 2px rgba(220,38,38,0.3);
  animation: pulse-end 2s infinite;
}
.call-room-end-btn:hover { background: #b91c1c; }
@keyframes pulse-end {
  0%, 100% { box-shadow: 0 0 0 2px rgba(220,38,38,0.3); }
  50% { box-shadow: 0 0 0 6px rgba(220,38,38,0.15); }
}

/* Main area: video + chat */
.call-room-main {
  display: flex;
  flex: 1;
  overflow: hidden;
}
.call-room-video {
  flex: 3;
  min-width: 0;
  background: #111;
}
.call-room-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Waiting state */
.call-room-waiting {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: var(--grey-50);
  text-align: center;
  padding: 40px;
}
.call-room-waiting h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.call-room-waiting p {
  color: var(--grey-500);
  font-size: 0.95rem;
  margin-bottom: 24px;
}
.call-room-join-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: var(--grey-50);
  text-align: center;
  padding: 40px;
}
.call-room-join-area h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin: 16px 0 8px;
}
.call-room-join-area p {
  color: var(--grey-500);
  font-size: 0.95rem;
}
.call-room-countdown {
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-500);
  font-variant-numeric: tabular-nums;
}

/* Chat Sidebar */
.call-room-chat {
  flex: 1;
  min-width: 280px;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--grey-200);
  background: var(--white);
}
.call-room-chat-header {
  padding: 14px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--grey-100);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.call-room-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.call-room-chat-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.call-room-chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--green-700);
  flex-shrink: 0;
}
.call-room-chat-avatar.host-avatar {
  background: #f0f0ff;
  color: #5b4bd5;
}
.call-room-chat-bubble { flex: 1; min-width: 0; }
.call-room-chat-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 2px;
}
.call-room-chat-name .chat-role-badge {
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 4px;
  font-weight: 600;
}
.chat-role-badge.host { background: #f0f0ff; color: #5b4bd5; }
.chat-role-badge.admin { background: #fef3c7; color: #92400e; }
.call-room-chat-text {
  font-size: 0.85rem;
  color: var(--grey-600);
  line-height: 1.4;
  word-break: break-word;
}
.call-room-chat-time {
  font-size: 0.68rem;
  color: var(--grey-400);
  margin-top: 2px;
}
.call-room-chat-input {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--grey-100);
  flex-shrink: 0;
}
.call-room-chat-input input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  outline: none;
  font-family: inherit;
}
.call-room-chat-input input:focus {
  border-color: var(--green-400);
  box-shadow: 0 0 0 2px var(--green-100);
}
.call-room-chat-send {
  background: var(--green-500);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.85rem;
}
.call-room-chat-send:hover { background: var(--green-600); }

/* ============================================================
   CLICKABLE CARDS + DASHBOARD WIDGETS
   ============================================================ */
.lc-card-clickable {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lc-card-clickable:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,.10);
}
.lc-card-action-hint {
  font-size: 0.82rem;
  color: var(--grey-400);
  font-weight: 500;
}
.lc-action-join {
  color: var(--green-600);
  font-weight: 600;
}
.lc-card-host {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Dashboard Live Call Widget */
.dash-live-call-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--grey-50);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--transition);
}
.dash-live-call-card:hover {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.dash-live-call-live {
  border-color: var(--green-400);
  background: var(--green-50);
}
.dash-live-call-info { flex: 1; min-width: 0; }
.dash-live-call-info strong {
  display: block;
  font-size: 0.9rem;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-live-call-countdown {
  font-size: 0.82rem;
  color: var(--grey-400);
  font-weight: 500;
  white-space: nowrap;
}

/* Call Detail Modal */
.call-detail-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}
.call-detail-modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 90%;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
  animation: slideUp 0.25s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.call-detail-modal h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.call-detail-modal p {
  font-size: 0.9rem;
  color: var(--grey-500);
  line-height: 1.5;
  margin-bottom: 16px;
}
.call-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--grey-500);
}
.call-detail-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.call-detail-countdown {
  text-align: center;
  padding: 20px;
  background: var(--grey-50);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}
.call-detail-countdown .countdown-label {
  font-size: 0.82rem;
  color: var(--grey-400);
  margin-bottom: 4px;
}
.call-detail-countdown .countdown-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green-500);
  font-variant-numeric: tabular-nums;
}
.call-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .call-room-main { flex-direction: column; }
  .call-room-video { height: 50vh; flex: none; }
  .call-room-chat { max-width: 100%; min-width: 100%; flex: 1; }
  .call-room-topbar { flex-wrap: wrap; gap: 8px; padding: 10px 16px; }
  .call-room-topbar-left, .call-room-topbar-right { width: 100%; justify-content: space-between; }
  .dash-live-call-card { flex-wrap: wrap; }
}

/* ============================================================
   DARK MODE TOGGLE BUTTON
   ============================================================ */
.topbar-theme-toggle {
  position: relative; background: none; border: none; padding: 8px;
  border-radius: var(--radius-sm); color: var(--grey-500); transition: var(--transition);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.topbar-theme-toggle:hover { background: var(--grey-100); }
.topbar-theme-toggle .icon-moon { display: none; }
.topbar-theme-toggle .icon-sun { display: block; }
body.dark-mode .topbar-theme-toggle .icon-moon { display: block; }
body.dark-mode .topbar-theme-toggle .icon-sun { display: none; }

/* ============================================================
   DARK MODE
   ============================================================ */
body.dark-mode {
  --dm-card-bg: #1e293b;
  --dm-toggle-knob: #e2e8f0;
  --dark: #e2e8f0;
  --dark-800: #cbd5e1;
  --dark-700: #94a3b8;
  --dark-600: #94a3b8;
  --grey-50: #0f172a;
  --grey-100: #1e293b;
  --grey-200: #334155;
  --grey-300: #475569;
  --grey-400: #94a3b8;
  --grey-500: #cbd5e1;
  --grey-600: #e2e8f0;
  --white: #1e293b;
  --border: #334155;

  --green-50: rgba(126,217,87,.08);
  --green-100: rgba(126,217,87,.12);
  --blue-50: rgba(37,99,235,.12);
  --purple-50: rgba(124,58,237,.12);
  --orange-50: rgba(234,88,12,.12);
  --red-50: rgba(220,38,38,.12);
  --yellow-50: rgba(245,158,11,.12);
  --cyan-50: rgba(8,145,178,.12);

  --shadow-xs: 0 1px 2px rgba(0,0,0,.2);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.25), 0 1px 2px rgba(0,0,0,.15);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.3), 0 2px 4px -2px rgba(0,0,0,.2);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.35), 0 4px 6px -4px rgba(0,0,0,.2);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.4), 0 8px 10px -6px rgba(0,0,0,.2);

  color-scheme: dark;
}

body.dark-mode { background: #0f172a; color: #e2e8f0; }

/* Sidebar */
body.dark-mode .sidebar { background: #1e293b; border-right-color: #334155; }
body.dark-mode .sidebar-header { border-bottom-color: #334155; }
body.dark-mode .sidebar-logo .logo { color: #e2e8f0; }
body.dark-mode .sidebar-footer { border-top-color: #334155; }
body.dark-mode .sidebar-link:hover { background: #334155; color: #e2e8f0; }

/* Topbar */
body.dark-mode .topbar { background: #1e293b; border-bottom-color: #334155; }
body.dark-mode .topbar-search { background: #0f172a; border-color: #334155; }
body.dark-mode .topbar-search:focus-within { background: #1e293b; border-color: var(--green-500); }
body.dark-mode .topbar-search input { color: #e2e8f0; }
body.dark-mode .topbar-notif:hover,
body.dark-mode .topbar-theme-toggle:hover { background: #334155; }

/* Cards & content */
body.dark-mode .stat-card { background: #1e293b; border-color: #334155; }
body.dark-mode .stat-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.4); }
body.dark-mode .dash-course-card { background: #1e293b; border-color: #334155; }
body.dark-mode .dash-course-card:hover { border-color: var(--green-500); }
body.dark-mode .course-card { background: #1e293b; border-color: #334155; }

/* Tables */
/* Dark mode: Neue Nutzer section */
body.dark-mode .card { background: #1e293b; border-color: #334155; }
body.dark-mode .admin-new-user-card { background: #0f172a !important; border-color: #334155 !important; }
body.dark-mode .admin-new-user-card strong { color: #e2e8f0 !important; }
body.dark-mode .admin-new-user-section { background: #1a2e1a !important; border-color: #4a9a2d !important; }
body.dark-mode .admin-new-user-section h3 { color: var(--green-400) !important; }
body.dark-mode .admin-new-user-section p { color: var(--green-300) !important; }
body.dark-mode .admin-table { background: #1e293b; border-color: #334155; }
body.dark-mode .admin-table th { background: #0f172a; border-bottom-color: #334155; color: #94a3b8; }
body.dark-mode .admin-table td { border-bottom-color: #334155; color: #e2e8f0; }
body.dark-mode .admin-table tr:hover td { background: #334155; }

/* Admin detail sections */
body.dark-mode .admin-detail-section { background: #1e293b; border-color: #334155; }
body.dark-mode .admin-detail-section-header { border-bottom-color: #334155; }
body.dark-mode .admin-detail-header { background: #1e293b; border-color: #334155; }

/* Notification dropdown */
body.dark-mode .notif-dropdown { background: #1e293b; border-color: #334155; }

/* Dashboard teaser dark mode */
body.dark-mode .dash-teaser-section { background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%); border-color: #334155; }
body.dark-mode .dash-teaser-header h2 { color: #e2e8f0; }
body.dark-mode .dash-teaser-header p { color: #94a3b8; }
body.dark-mode .dash-teaser-card { background: #0f172a; border-color: #334155; }
body.dark-mode .dash-teaser-card h3 { color: #e2e8f0; }
body.dark-mode .dash-teaser-card p { color: #94a3b8; }

/* Referral dark mode */
body.dark-mode .referral-hero-card { background: #1e293b; border-color: #334155; }
body.dark-mode .referral-hero-card h2 { color: #e2e8f0; }
body.dark-mode .referral-hero-card p { color: #94a3b8; }
body.dark-mode .referral-link-box input { background: #0f172a; border-color: #334155; color: #e2e8f0; }
body.dark-mode .referral-stat { background: #1e293b; border-color: #334155; }
body.dark-mode .referral-stat-value { color: #e2e8f0; }
body.dark-mode .referral-stat-label { color: #94a3b8; }
body.dark-mode .referral-history { background: #1e293b; border-color: #334155; }
body.dark-mode .referral-history h3 { color: #e2e8f0; }
body.dark-mode .referral-table th { color: #94a3b8; border-bottom-color: #334155; }
body.dark-mode .referral-table td { color: #cbd5e1; border-bottom-color: #334155; }
body.dark-mode .referral-empty { background: #1e293b; border-color: #334155; }
body.dark-mode .referral-share-email { background: #334155; }

/* Logo dark mode */
body.dark-mode .logo { color: #e2e8f0; }
/* dark-mode header styles moved to main header section */

/* Dashboard subscription banners dark mode */
body.dark-mode .dash-sub-banner { background: #1e293b; border-color: #334155; color: #e2e8f0; }
body.dark-mode .dash-sub-trial { background: rgba(126,217,87,.1); border-color: #4a9a2d; color: #e2e8f0; }
body.dark-mode .dash-sub-active { background: rgba(126,217,87,.1); border-color: #4a9a2d; color: #e2e8f0; }
body.dark-mode .dash-sub-cancelled { background: rgba(234,88,12,.1); border-color: #c2410c; color: #e2e8f0; }
body.dark-mode .dash-sub-pastdue { background: rgba(220,38,38,.1); border-color: #dc2626; color: #e2e8f0; }
body.dark-mode .dash-upgrade-card { background: #0f172a; border-color: #334155; }
body.dark-mode .postreg-tunnel-header .logo { color: #e2e8f0; }
body.dark-mode .notif-header { border-bottom-color: #334155; }

/* Search overlay */
body.dark-mode .search-overlay { background: rgba(15,23,42,.9); }
body.dark-mode .search-results { background: #1e293b; border-color: #334155; }

/* Buttons */
body.dark-mode .btn { color: #e2e8f0; }
body.dark-mode .btn:hover { background: #334155; }
body.dark-mode .btn-outline { border: 2px solid #475569; color: #94a3b8; }
body.dark-mode .btn-outline:hover { background: #334155; color: #e2e8f0; }

/* Inputs & forms */
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
  background: #0f172a; border-color: #334155; color: #e2e8f0;
}
body.dark-mode input:focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus {
  border-color: var(--green-500); background: #1e293b;
}
body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder { color: #475569; }

/* Progress bars */
body.dark-mode .dash-course-progress-bar,
body.dark-mode .course-card-progress-bar { background: #334155; }

/* Tabs */
body.dark-mode .admin-tabs button { color: #94a3b8; border-bottom-color: transparent; }
body.dark-mode .admin-tabs button:hover { color: #e2e8f0; }
body.dark-mode .admin-tabs button.active { color: var(--green-500); border-bottom-color: var(--green-500); }

/* Lesson viewer */
body.dark-mode .lesson-viewer { background: #0f172a; }
body.dark-mode .lesson-sidebar { background: #1e293b; border-color: #334155; }
body.dark-mode .lesson-sidebar-item { border-bottom-color: #334155; }
body.dark-mode .lesson-sidebar-item:hover { background: #334155; }
body.dark-mode .lesson-sidebar-item.active { background: rgba(126,217,87,.1); }

/* Dashboard sections */
body.dark-mode .dash-section-title { color: #e2e8f0; }
body.dark-mode .dash-welcome { background: linear-gradient(135deg, #1e3a2f 0%, #1e293b 100%); border-color: #334155; }

/* Badges & tags */
body.dark-mode .badge,
body.dark-mode .status-badge { border-color: #475569; }

/* Profile page */
body.dark-mode .profile-card { background: #1e293b; border-color: #334155; }

/* Referral box */
body.dark-mode .referral-link-box { background: #0f172a; border-color: #334155; }

/* Settings page */
body.dark-mode .settings-section { background: #1e293b; border-color: #334155; }

/* Modals */
body.dark-mode .modal-backdrop { background: rgba(0,0,0,.7); }
body.dark-mode .modal-content { background: #1e293b; border-color: #334155; }

/* Charts & finance */
body.dark-mode .finance-card { background: #1e293b; border-color: #334155; }

/* Scrollbar */
body.dark-mode ::-webkit-scrollbar { width: 8px; }
body.dark-mode ::-webkit-scrollbar-track { background: #0f172a; }
body.dark-mode ::-webkit-scrollbar-thumb { background: #475569; border-radius: 4px; }
body.dark-mode ::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* Live calls */
body.dark-mode .call-room-chat { background: #1e293b; border-color: #334155; }
body.dark-mode .call-room-msg { background: #334155; }

/* Upgrade banner */
body.dark-mode .dash-upgrade-card { border-color: #334155; }

/* ============================================================
   FEEDBACK SYSTEM
   ============================================================ */

/* --- Floating Feedback Button --- */
.feedback-floating-btn {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--green-500);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.feedback-floating-btn:hover {
  background: var(--green-600);
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(126, 217, 87, 0.35);
}

/* --- Feedback Modal --- */
.feedback-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s;
}
.feedback-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.25s;
}
.feedback-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}
.feedback-modal-header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
}
.feedback-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--grey-400);
  padding: 0 4px;
  line-height: 1;
}
.feedback-modal-close:hover { color: var(--dark); }
#feedbackForm {
  padding: 20px 24px 24px;
}
.feedback-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.feedback-form-group {
  margin-bottom: 16px;
}
.feedback-form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}
.feedback-form-group label .required { color: var(--red-500); }
.feedback-form-group select,
.feedback-form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.2s;
  resize: vertical;
}
.feedback-form-group select:focus,
.feedback-form-group textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(126, 217, 87, 0.15);
}

/* Priority Buttons */
.feedback-priority-buttons {
  display: flex;
  gap: 8px;
}
.fb-prio-btn {
  flex: 1;
  padding: 8px 4px;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--grey-500);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.fb-prio-btn:hover {
  border-color: var(--grey-400);
  color: var(--dark);
}
.fb-prio-btn.active[data-value="niedrig"] {
  background: #dbeafe;
  border-color: #3b82f6;
  color: #1d4ed8;
}
.fb-prio-btn.active[data-value="mittel"] {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
}
.fb-prio-btn.active[data-value="hoch"] {
  background: #fee2e2;
  border-color: #ef4444;
  color: #b91c1c;
}
.fb-prio-btn.active[data-value="kritisch"] {
  background: #fce7f3;
  border-color: #ec4899;
  color: #9d174d;
}

/* Dark mode priority buttons */
body.dark-mode .fb-prio-btn {
  background: #0f172a;
  border-color: #334155;
  color: #94a3b8;
}
body.dark-mode .fb-prio-btn:hover {
  border-color: #64748b;
  color: #e2e8f0;
}
body.dark-mode .fb-prio-btn.active[data-value="niedrig"] {
  background: #1e3a5f;
  border-color: #3b82f6;
  color: #93c5fd;
}
body.dark-mode .fb-prio-btn.active[data-value="mittel"] {
  background: #422006;
  border-color: #f59e0b;
  color: #fcd34d;
}
body.dark-mode .fb-prio-btn.active[data-value="hoch"] {
  background: #450a0a;
  border-color: #ef4444;
  color: #fca5a5;
}
body.dark-mode .fb-prio-btn.active[data-value="kritisch"] {
  background: #500724;
  border-color: #ec4899;
  color: #f9a8d4;
}
.feedback-screenshot-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feedback-screenshot-preview {
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grey-50);
}
.feedback-screenshot-preview img {
  width: 100%;
  max-height: 150px;
  object-fit: contain;
  display: block;
}
.feedback-screenshot-loading {
  font-size: 0.82rem;
  color: var(--grey-400);
  padding: 20px;
}
.feedback-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

/* --- Feedback Page (list) --- */
.feedback-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.feedback-page-header h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
}
.feedback-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.feedback-filters select {
  padding: 8px 12px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  color: var(--dark);
  background: var(--white);
}
.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feedback-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feedback-card:hover {
  border-color: var(--green-300);
  box-shadow: var(--shadow-sm);
}
.feedback-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.feedback-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.feedback-badge-offen { background: #fef3c7; color: #92400e; }
.feedback-badge-in_bearbeitung { background: #dbeafe; color: #1e40af; }
.feedback-badge-bitte_pruefen { background: #fde68a; color: #b45309; }
.feedback-badge-gefixt { background: #bfdbfe; color: #1d4ed8; }
.feedback-badge-erledigt { background: #dcfce7; color: #166534; }
.feedback-badge-abgeschlossen { background: #dcfce7; color: #166534; }
.feedback-badge-abgelehnt { background: var(--grey-100); color: var(--grey-500); }
.feedback-badge-bug { background: var(--red-50); color: var(--red-500); }
.feedback-badge-wunsch { background: var(--purple-50); color: var(--purple-500); }
.feedback-badge-verbesserung { background: var(--blue-50); color: var(--blue-500); }
.feedback-badge-sonstiges { background: var(--grey-100); color: var(--grey-500); }
.feedback-badge-niedrig { background: var(--grey-100); color: var(--grey-500); }
.feedback-badge-mittel { background: #f5e6d3; color: #78350f; }
.feedback-badge-hoch { background: #fce7f3; color: #db2777; }
.feedback-badge-kritisch { background: var(--red-50); color: var(--red-500); }
.feedback-card-desc {
  font-size: 0.88rem;
  color: var(--dark);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feedback-card-meta {
  font-size: 0.78rem;
  color: var(--grey-400);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.feedback-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.feedback-card-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.feedback-card-done {
  opacity: 0.7;
}
.feedback-card-done:hover {
  opacity: 1;
}
/* Small action buttons for feedback cards */
.btn-xs {
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-xs:hover { transform: translateY(-1px); }
.btn-blue {
  background: #dbeafe;
  color: #1e40af;
}
.btn-blue:hover { background: #bfdbfe; }
.btn-green {
  background: #dcfce7;
  color: #166534;
}
.btn-green:hover { background: #bbf7d0; }
.btn-outline-sm {
  background: transparent;
  color: var(--grey-500);
  border: 1px solid var(--grey-200);
}
.btn-outline-sm:hover { background: var(--grey-50); border-color: var(--grey-300); }
body.dark-mode .btn-blue { background: #1e3a5f; color: #93c5fd; }
body.dark-mode .btn-blue:hover { background: #1e40af; }
body.dark-mode .btn-green { background: #1a2e1a; color: #86efac; }
body.dark-mode .btn-green:hover { background: #166534; }
body.dark-mode .btn-outline-sm { border-color: #334155; color: #94a3b8; }
body.dark-mode .btn-outline-sm:hover { background: #1e293b; }

/* --- Feedback Detail --- */
.feedback-detail {
  max-width: 720px;
}
.feedback-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--grey-500);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 16px;
  font-family: 'Poppins', sans-serif;
}
.feedback-detail-back:hover { color: var(--green-600); }
.feedback-detail-header {
  margin-bottom: 20px;
}
.feedback-detail-header h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
}
.feedback-detail-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.feedback-detail-meta {
  font-size: 0.82rem;
  color: var(--grey-400);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.feedback-detail-body {
  background: var(--grey-50);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
}
.feedback-detail-body p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--dark);
  line-height: 1.6;
  white-space: pre-wrap;
}
.feedback-screenshot-toggle {
  margin-bottom: 20px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.feedback-screenshot-toggle summary {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--grey-500);
  list-style: none;
}
.feedback-screenshot-toggle summary::-webkit-details-marker { display: none; }
.feedback-screenshot-toggle summary::before { content: '\25B6  '; font-size: 0.7rem; }
.feedback-screenshot-toggle[open] summary::before { content: '\25BC  '; }
body.dark-mode .feedback-screenshot-toggle { border-color: #334155; }
body.dark-mode .feedback-screenshot-toggle summary { color: #94a3b8; }
.feedback-detail-screenshot {
  padding: 0 12px 12px;
}
.feedback-detail-screenshot img {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--grey-200);
  cursor: pointer;
}
.feedback-detail-screenshot img:hover { box-shadow: var(--shadow-md); }

/* Chat / comments */
.feedback-comments {
  margin-bottom: 20px;
}
.feedback-comments h4 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--dark);
  margin: 0 0 12px;
}
.feedback-comment {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.feedback-comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--green-100);
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}
.feedback-comment-avatar.admin-avatar {
  background: var(--blue-50);
  color: var(--blue-500);
}
.feedback-comment-body {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.feedback-comment-body.admin-body {
  background: var(--blue-50);
  border-color: #bfdbfe;
}
.feedback-comment-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 2px;
}
.feedback-comment-text {
  font-size: 0.85rem;
  color: var(--dark);
  line-height: 1.5;
  white-space: pre-wrap;
}
.feedback-comment-time {
  font-size: 0.72rem;
  color: var(--grey-400);
  margin-top: 4px;
}
.feedback-add-comment {
  display: flex;
  gap: 8px;
}
.feedback-add-comment textarea {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  resize: none;
  min-height: 44px;
}
.feedback-add-comment textarea:focus {
  outline: none;
  border-color: var(--green-500);
}

/* User reply section */
.feedback-user-reply {
  margin-top: 20px;
  padding: 20px;
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
}
.feedback-user-reply h4 {
  margin: 0 0 12px 0;
  font-size: 0.9rem;
  font-weight: 600;
}
body.dark-mode .feedback-user-reply {
  background: #1e293b;
  border-color: #334155;
}
body.dark-mode .feedback-user-reply textarea {
  background: #0f172a;
  color: #e2e8f0;
  border-color: #475569;
}
/* User chat bubble */
.feedback-comment.comment-user .feedback-comment-body {
  background: var(--green-50);
  border: 1px solid var(--green-100);
}
body.dark-mode .feedback-comment.comment-user .feedback-comment-body {
  background: #1a2e1a;
  border-color: #2d4a2d;
}
.feedback-comment-avatar.user-avatar {
  background: var(--green-100);
  color: var(--green-700);
}

/* Feedback notification dot */
.feedback-card { position: relative; }
.feedback-card-unread { border-left: 3px solid #f59e0b !important; }
.feedback-new-dot {
  position: absolute; top: 12px; right: 12px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #f59e0b; box-shadow: 0 0 6px rgba(245,158,11,0.5);
  animation: dotPulse 2s infinite;
}
@keyframes dotPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* WhatsApp-Style Chat Bubbles */
.chat-msg { display: flex; margin-bottom: 8px; }
.chat-msg-left { justify-content: flex-start; }
.chat-msg-right { justify-content: flex-end; }
.chat-bubble { max-width: 75%; padding: 10px 14px; border-radius: 12px; position: relative; }
.chat-bubble-name { font-size: 0.72rem; font-weight: 700; margin-bottom: 2px; }
.chat-bubble-text { font-size: 0.85rem; line-height: 1.5; white-space: pre-wrap; }
.chat-bubble-time { font-size: 0.68rem; opacity: 0.6; margin-top: 4px; text-align: right; }

/* Fixli = links, blau */
.chat-bubble-fixli { background: #dbeafe; color: #1e3a5f; border-bottom-left-radius: 4px; }
.chat-bubble-fixli .chat-bubble-name { color: #2563eb; }

/* Admin/Vemo Team = links, grün */
.chat-bubble-admin { background: #dcfce7; color: #14532d; border-bottom-left-radius: 4px; }
.chat-bubble-admin .chat-bubble-name { color: #16a34a; }

/* User = rechts, grau */
.chat-bubble-user { background: var(--grey-100); color: var(--dark); border-bottom-right-radius: 4px; }
.chat-bubble-user .chat-bubble-name { color: var(--grey-500); }

/* Dark mode chat */
body.dark-mode .chat-bubble-fixli { background: #1e3a5f; color: #dbeafe; }
body.dark-mode .chat-bubble-admin { background: #1a3a1a; color: #dcfce7; }
body.dark-mode .chat-bubble-user { background: #334155; color: #e2e8f0; }

/* Confirm resolution */
/* Done tickets toggle */
.feedback-done-section {
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: 0;
}
.feedback-done-toggle {
  padding: 14px 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--grey-500);
  list-style: none;
}
.feedback-done-toggle::-webkit-details-marker { display: none; }
.feedback-done-toggle::before { content: '\25B6  '; font-size: 0.7rem; }
details[open] > .feedback-done-toggle::before { content: '\25BC  '; }
body.dark-mode .feedback-done-section { border-color: #334155; }
body.dark-mode .feedback-done-toggle { color: #94a3b8; }

.feedback-confirm-box {
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
  text-align: center;
}
.feedback-confirm-box p {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--dark);
  font-weight: 500;
}
.feedback-confirm-box .btn { margin: 0 4px; }

/* Admin feedback controls */
.feedback-admin-controls {
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
}
.feedback-admin-controls h4 {
  margin: 0 0 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
}
.feedback-admin-controls select {
  padding: 8px 12px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  margin-right: 8px;
}
.feedback-admin-controls .feedback-admin-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* Sidebar badge */
.sidebar-feedback-badge {
  background: var(--red-500);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  margin-left: auto;
}

/* Stats row for admin feedback overview */
.feedback-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.feedback-stat-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}
.feedback-stat-card.clickable {
  cursor: pointer;
  transition: var(--transition);
}
.feedback-stat-card.clickable:hover {
  border-color: var(--green-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.feedback-stat-card.clickable.active {
  border-color: var(--green-500);
  background: var(--green-50);
}
body.dark-mode .feedback-stat-card.clickable.active {
  border-color: var(--green-500);
  background: #1a2e1a;
}
.feedback-stat-card .stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}
.feedback-stat-card .stat-label {
  font-size: 0.78rem;
  color: var(--grey-400);
  margin-top: 2px;
}

@media (max-width: 768px) {
  .feedback-floating-btn { bottom: 20px; left: 20px; width: 44px; height: 44px; }
  .feedback-modal { max-width: 100%; }
  .feedback-form-row { grid-template-columns: 1fr; }
  .feedback-card-meta { flex-direction: column; gap: 4px; }
  .feedback-admin-controls .feedback-admin-row { flex-direction: column; align-items: stretch; }
}

/* Dark mode feedback */
body.dark-mode .feedback-floating-btn { background: var(--green-600); }
body.dark-mode .feedback-modal { background: #1e293b; }
body.dark-mode .feedback-modal-header h3 { color: #f1f5f9; }
body.dark-mode .feedback-modal-close { color: #94a3b8; }
body.dark-mode .feedback-form-group label { color: #f1f5f9; }
body.dark-mode .feedback-form-group select,
body.dark-mode .feedback-form-group textarea { background: #0f172a; border-color: #334155; color: #f1f5f9; }
body.dark-mode .feedback-screenshot-preview { background: #0f172a; border-color: #334155; }
body.dark-mode .feedback-card { background: #1e293b; border-color: #334155; }
body.dark-mode .feedback-card:hover { border-color: var(--green-500); }
body.dark-mode .feedback-card-desc { color: #e2e8f0; }
body.dark-mode .feedback-card-meta { color: #94a3b8; }
body.dark-mode .feedback-detail-body { background: #0f172a; }
body.dark-mode .feedback-detail-body p { color: #e2e8f0; }
body.dark-mode .feedback-comment-body { background: #0f172a; border-color: #334155; }
body.dark-mode .feedback-comment-body.admin-body { background: #1e3a5f; border-color: #2563eb; }
body.dark-mode .feedback-confirm-box { background: #1a2e1a; border-color: #4a9a2d; }
body.dark-mode .feedback-admin-controls { background: #0f172a; border-color: #334155; }
body.dark-mode .feedback-admin-controls select { background: #1e293b; border-color: #334155; color: #f1f5f9; }
body.dark-mode .feedback-stat-card { background: #1e293b; border-color: #334155; }
body.dark-mode .feedback-stat-card .stat-num { color: #f1f5f9; }
body.dark-mode .feedback-filters select { background: #1e293b; border-color: #334155; color: #f1f5f9; }

/* ============================================================
   FIX #2: Dark mode — more contrast for dashboard elements
   ============================================================ */
body.dark-mode .stat-card { background: #1e293b; border-color: #475569; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
body.dark-mode .dash-course-card { background: #1e293b; border-color: #475569; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
body.dark-mode .course-card { background: #1e293b; border-color: #475569; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
body.dark-mode .card { background: #1e293b; border-color: #475569; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
body.dark-mode .admin-detail-section { background: #1e293b; border-color: #475569; }
body.dark-mode .admin-detail-header { background: #1e293b; border-color: #475569; }
body.dark-mode .profile-card { background: #1e293b; border-color: #475569; }
body.dark-mode .settings-section { background: #1e293b; border-color: #475569; }
body.dark-mode .referral-hero-card { background: #1e293b; border-color: #475569; }
body.dark-mode .referral-stat { background: #1e293b; border-color: #475569; }
body.dark-mode .referral-history { background: #1e293b; border-color: #475569; }
body.dark-mode .dash-teaser-card { background: #0f172a; border-color: #475569; }
body.dark-mode .dash-teaser-section { border-color: #475569; }
body.dark-mode .dash-welcome { border-color: #475569; }
body.dark-mode .finance-card { background: #1e293b; border-color: #475569; }
body.dark-mode .sidebar { border-right-color: #475569; }
body.dark-mode .topbar { border-bottom-color: #475569; }
body.dark-mode .notif-dropdown { border-color: #475569; }
body.dark-mode .dash-upgrade-card { border-color: #475569; }
body.dark-mode .feedback-card { border-color: #475569; }
body.dark-mode .admin-table { border-color: #475569; }
body.dark-mode .admin-table th { border-bottom-color: #475569; }
body.dark-mode .admin-table td { border-bottom-color: #3b4a63; }

/* ============================================================
   FIX #6 + #12: Better mobile responsive for dashboard
   ============================================================ */
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 16px; }
  .stat-card h3 { font-size: 1.3rem; }
  .stat-card p { font-size: 0.75rem; }
  .page-content { padding: 16px; }
  .page-header h1 { font-size: 1.3rem; }
  .dash-hero { margin-bottom: 16px; }
  .dash-greeting h1 { font-size: 1.4rem; }
  .dash-greeting p { font-size: 0.82rem; }
  .section-card { overflow-x: auto; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; gap: 8px; }
  .stat-card { padding: 14px; }
  .stat-card h3 { font-size: 1.1rem; }
  .dash-greeting h1 { font-size: 1.2rem; }
  .page-header h1 { font-size: 1.1rem; }
}

/* ============================================================
   FIX #7: Mobile menu z-index, page width containment
   ============================================================ */
html, body { max-width: 100vw; overflow-x: hidden; }
.app-shell { max-width: 100vw; overflow-x: hidden; }
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); z-index: 9999; }
  .main-content { margin-left: 0; }
  .topbar-menu { display: flex; }
  .sidebar-close { display: block; }
  .public-header.nav-open .public-nav {
    display: flex !important;
  }
  .public-header.nav-open .public-header-actions {
    display: flex !important;
  }
}

/* ============================================================
   FIX #9: Comparison table mobile scroll
   ============================================================ */
@media (max-width: 768px) {
  .comparison-table-wrapper { margin: 0 -16px; padding: 0 16px; }
  .comparison-table { font-size: 0.8rem; min-width: 500px; }
  .comparison-table th,
  .comparison-table td { padding: 10px 8px; font-size: 0.78rem; }
}

/* ============================================================
   FIX #14: Button hover color on "Kostenlos beraten lassen"
   ============================================================ */
.tunnel-pkg-consult:hover {
  color: var(--green-800) !important;
}
.pricing-card-consult a:hover {
  color: var(--green-800) !important;
}
.pricing-card.highlighted .tunnel-pkg-consult,
.pricing-card.highlighted .pricing-card-consult a {
  color: rgba(255,255,255,0.8);
}
.pricing-card.highlighted .tunnel-pkg-consult:hover,
.pricing-card.highlighted .pricing-card-consult a:hover {
  color: #ffffff !important;
}

/* ============================================================
   FIX #16: Dark mode toggle on landing page + LP dark mode
   ============================================================ */
.public-darkmode-toggle {
  background: none;
  border: none;
  border-radius: 0;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-500);
  transition: var(--transition);
}
.public-darkmode-toggle:hover { background: none; color: var(--dark); }
.public-darkmode-toggle .icon-moon { display: none; }
.public-darkmode-toggle .icon-sun { display: block; }
body.dark-mode .public-darkmode-toggle { color: #94a3b8; }
body.dark-mode .public-darkmode-toggle:hover { background: none; color: #e2e8f0; }
body.dark-mode .public-darkmode-toggle .icon-moon { display: block; }
body.dark-mode .public-darkmode-toggle .icon-sun { display: none; }

/* Landing page dark mode */
body.dark-mode .lp-hero { background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%); }
body.dark-mode .lp-hero-text h1 { color: #f1f5f9; }
body.dark-mode .lp-hero-text p { color: #94a3b8; }
body.dark-mode .lp-hero-badge { background: rgba(126,217,87,.1); border-color: #4a9a2d; color: #e2e8f0; }
body.dark-mode .lp-stats { background: #1e293b; border-color: #475569; }
body.dark-mode .lp-stat-number { color: #f1f5f9; }
body.dark-mode .lp-stat-label { color: #94a3b8; }
body.dark-mode .lp-section-header h2 { color: #f1f5f9; }
body.dark-mode .lp-section-header p { color: #94a3b8; }
body.dark-mode .lp-feature { background: #1e293b; border-color: #334155; }
body.dark-mode .lp-feature h3 { color: #f1f5f9; }
body.dark-mode .lp-feature p { color: #94a3b8; }
body.dark-mode .lp-module-card { background: #1e293b; border-color: #334155; }
body.dark-mode .lp-module-card h3 { color: #f1f5f9; }
body.dark-mode .lp-module-card p { color: #94a3b8; }
body.dark-mode .lp-compare { background: #0f172a; }
body.dark-mode .lp-compare-col { background: #1e293b; border-color: #334155; }
body.dark-mode .lp-compare-col h3 { color: #f1f5f9; }
body.dark-mode .lp-compare-col li { color: #cbd5e1; }
body.dark-mode .lp-compare-col ul li strong { color: #f1f5f9; }
body.dark-mode .lp-compare-col ul li span { color: #94a3b8; }
body.dark-mode .lp-compare-bad { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.2); }
body.dark-mode .lp-compare-good { background: rgba(126,217,87,0.08); border-color: rgba(126,217,87,0.25); }
body.dark-mode .lp-compare-bad .lp-compare-col-header { color: #f87171; }
body.dark-mode .lp-compare-good .lp-compare-col-header { color: #7ed957; }
body.dark-mode .lp-faq-item { background: #1e293b; border-color: #334155; }
body.dark-mode .lp-faq-q { color: #f1f5f9; }
body.dark-mode .lp-faq-a { color: #94a3b8; }
body.dark-mode .lp-footer { background: #0f172a; border-top-color: #334155; }
body.dark-mode .lp-footer-col h4 { color: #f1f5f9; }
body.dark-mode .lp-footer-col a { color: #94a3b8; }
body.dark-mode .lp-footer-col p { color: #94a3b8; }
body.dark-mode .lp-cta { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); }
body.dark-mode .lp-cta h2 { color: #f1f5f9; }
body.dark-mode .lp-cta p { color: #94a3b8; }
body.dark-mode .lp-cta-sub { color: #94a3b8; }
body.dark-mode .lp-service-card { background: #1e293b !important; border: none !important; box-shadow: 0 1px 3px rgba(0,0,0,0.15), 0 4px 20px rgba(0,0,0,0.2); }
body.dark-mode .lp-service-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.3), 0 2px 8px rgba(0,0,0,0.15); }
body.dark-mode .lp-service-card h3 { color: #f1f5f9; }
body.dark-mode .lp-service-card p { color: #94a3b8; }
body.dark-mode .lp-service-icon { background: rgba(255,255,255,0.06) !important; }
body.dark-mode .lp-service-link { color: #7ed957; }
body.dark-mode .lp-services { background: #0f172a; }
body.dark-mode .lp-blog-card { background: #1e293b; border-color: #334155; }
body.dark-mode .lp-blog-body h3 { color: #e2e8f0; }
body.dark-mode .lp-blog-body p { color: #94a3b8; }
body.dark-mode .lp-blog-meta { color: #94a3b8; }
body.dark-mode .lp-booking-features li { color: #cbd5e1; }
body.dark-mode .lp-booking-info h3 { color: #f1f5f9; }
body.dark-mode .lp-stat-divider { background: #334155; }
body.dark-mode .lp-courses { background: #0f172a; }
body.dark-mode .lp-faq-count { color: #94a3b8; }
body.dark-mode .lp-team-card { background: #1e293b; border-color: #334155; }
body.dark-mode .lp-team-info h3 { color: #f1f5f9; }
body.dark-mode .lp-team-info p { color: #94a3b8; }
body.dark-mode .lp-testimonial { background: #1e293b; border-color: #334155; }
body.dark-mode .lp-testimonial-text { color: #cbd5e1; }
body.dark-mode .lp-testimonial-name { color: #f1f5f9; }
body.dark-mode .lp-learn-card { background: #1e293b; border-color: #334155; }
body.dark-mode .lp-learn-card h3 { color: #f1f5f9; }
body.dark-mode .lp-learn-card p { color: #94a3b8; }
body.dark-mode .lp-advantage { background: #1e293b; border-color: #334155; }
body.dark-mode .lp-advantage h3 { color: #f1f5f9; }
body.dark-mode .lp-advantage p { color: #94a3b8; }
body.dark-mode .lp-step { background: #1e293b; border-color: #334155; }
body.dark-mode .lp-step h3 { color: #f1f5f9; }
body.dark-mode .lp-step p { color: #94a3b8; }
body.dark-mode .lp-goal-cta-inner { background: #1e293b; border-color: #334155; }
body.dark-mode .lp-booking { background: #0f172a; }
body.dark-mode .lp-booking h2 { color: #f1f5f9; }
body.dark-mode .lp-booking-info p { color: #e2e8f0; }
body.dark-mode .lp-booking-list li { color: #e2e8f0; }
body.dark-mode .lp-booking-trust-item { color: #cbd5e1; }
body.dark-mode .lp-booking-text > p { color: #e2e8f0; }
body.dark-mode .lp-booking .lp-section-tag { color: var(--green-400); }
/* Funnel/Tunnel Dark Mode — mehr Kontrast */
body.dark-mode .hf-q { color: #f1f5f9; }
body.dark-mode .hf-label { color: var(--green-400); }
body.dark-mode .hf-opt { color: #e2e8f0; }
body.dark-mode .hf-flabel { color: #cbd5e1; }
body.dark-mode .hf-back { color: #94a3b8; }
body.dark-mode .lp-announcement { background: #1e293b; color: #e2e8f0; }
body.dark-mode .auth-modal { background: #1e293b; border-color: #475569; }
body.dark-mode .auth-modal-tabs { background: #0f172a; }
body.dark-mode .auth-modal-tab { color: #94a3b8; }
body.dark-mode .auth-modal-tab.active { background: #1e293b; color: var(--green-400); }
body.dark-mode .team-modal { background: #1e293b; }
body.dark-mode .team-modal-body { color: #e2e8f0; }
body.dark-mode .team-modal-close { color: #94a3b8; }
body.dark-mode .team-modal-tag { background: #0f172a; color: #94a3b8; border-color: #475569; }
body.dark-mode .tunnel-option { background: #1e293b; border-color: #475569; color: #e2e8f0; }
body.dark-mode .tunnel-option:hover { border-color: var(--green-500); }
body.dark-mode .tunnel-option.selected { border-color: var(--green-500); background: rgba(126,217,87,.1); }
body.dark-mode .tunnel-question { color: #f1f5f9; }
body.dark-mode .tunnel-subtitle { color: #94a3b8; }
body.dark-mode .tunnel-result-hero { background: linear-gradient(135deg, #1e3a2f 0%, #1e293b 100%); }
body.dark-mode .tunnel-result-amount { color: #f1f5f9; }
body.dark-mode .tbc-chip { background: #0f172a; border-color: #475569; color: #e2e8f0; }
body.dark-mode .tunnel-fun-card { background: #1e293b; border-color: #475569; color: #e2e8f0; }
body.dark-mode .pricing-card { background: #1e293b; border-color: #475569; color: #e2e8f0; }
body.dark-mode .pricing-card.highlighted { background: linear-gradient(135deg, #1e3a2f 0%, #1a2e3a 100%); border-color: var(--green-500); }
body.dark-mode .pricing-card-name { color: #f1f5f9; }
body.dark-mode .pricing-card-subtitle { color: #94a3b8; }
body.dark-mode .pricing-card-price { color: #f1f5f9; }
body.dark-mode .pricing-card-features li { color: #cbd5e1; }
body.dark-mode .sales-social-proof-bar { background: #1e293b; border-color: #475569; color: #e2e8f0; }
body.dark-mode .sales-consult-banner { background: #1e293b; border-color: #475569; }
body.dark-mode .sales-consult-banner h3 { color: #f1f5f9; }
body.dark-mode .sales-consult-banner p { color: #94a3b8; }
body.dark-mode .sales-guarantee { background: #1e293b; border-color: #475569; color: #e2e8f0; }
body.dark-mode .pkg-analysis-compact { background: #1e293b; border-color: #475569; }
body.dark-mode .pkg-ab-item { background: #0f172a; }
body.dark-mode .pkg-hero-compact { background: linear-gradient(135deg, #1e3a2f 0%, #1e293b 100%); border-color: #475569; }
body.dark-mode .pkg-hb-chip { background: rgba(126,217,87,.08); border-color: #475569; color: #e2e8f0; }
body.dark-mode .pkg-value-strip { border-color: #475569; }
body.dark-mode .pkg-vs-item { background: #1e293b; border-color: #475569; }

/* ============================================================
   Dark mode: ALL remaining pkg-* components
   ============================================================ */

/* Selection header */
body.dark-mode .pkg-selection-header h1 { color: #e2e8f0; }
body.dark-mode .pkg-selection-header p { color: #94a3b8; }

/* Savings hero */
body.dark-mode .pkg-savings-hero { background: linear-gradient(135deg, #1e3a2f 0%, #1e293b 100%); }
body.dark-mode .pkg-savings-tag { color: #7ed957; }

/* Skip button */
body.dark-mode .pkg-skip-btn { background: #1e293b; border-color: #475569; color: #94a3b8; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
body.dark-mode .pkg-skip-btn:hover { background: #334155; color: #e2e8f0; border-color: #475569; }

/* Result hero */
body.dark-mode .pkg-result-hero { background: linear-gradient(135deg, #1e3a2f 0%, #1e293b 100%); }
body.dark-mode .pkg-result-tag { color: #7ed957; }
body.dark-mode .pkg-result-amount { color: #e2e8f0; }
body.dark-mode .pkg-result-subtitle { color: #94a3b8; }

/* Breakdown */
body.dark-mode .pkg-breakdown { background: #1e293b; border-color: #334155; }
body.dark-mode .pkg-breakdown-title { color: #e2e8f0; }
body.dark-mode .pkg-breakdown-label { color: #94a3b8; }
body.dark-mode .pkg-breakdown-bar { background: #334155; }
body.dark-mode .pkg-breakdown-value { color: #e2e8f0; }

/* Fun comparisons */
body.dark-mode .pkg-fun-title { color: #e2e8f0; }
body.dark-mode .pkg-fun-card { background: #1e293b; border-color: #334155; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
body.dark-mode .pkg-fun-card strong { color: #e2e8f0; }
body.dark-mode .pkg-fun-card span { color: #94a3b8; }

/* Power moves */
body.dark-mode .pkg-power-title { color: #e2e8f0; }
body.dark-mode .pkg-power-item { background: #1e293b; border-color: #334155; }
body.dark-mode .pkg-power-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
body.dark-mode .pkg-power-text strong { color: #e2e8f0; }
body.dark-mode .pkg-power-text p { color: #94a3b8; }
body.dark-mode .pkg-power-amount { background: rgba(126,217,87,0.1); color: #7ed957; }

/* Investment graphic */
body.dark-mode .pkg-invest-graphic { background: linear-gradient(135deg, #1e3a2f 0%, #1e293b 100%); border-color: #334155; }
body.dark-mode .pkg-invest-title { color: #e2e8f0; }
body.dark-mode .pkg-invest-bar-invest { background: #475569; }
body.dark-mode .pkg-invest-bar-value { color: #e2e8f0; }
body.dark-mode .pkg-invest-bar-label { color: #94a3b8; }
body.dark-mode .pkg-invest-multiplier { background: #0f172a; border-color: #475569; color: #e2e8f0; }

/* Hero ROI badge */
body.dark-mode .pkg-hero-roi { background: #0f172a; border-color: #475569; }
body.dark-mode .pkg-hero-roi-label { color: #94a3b8; }
body.dark-mode .pkg-hero-amount { color: #e2e8f0; }
body.dark-mode .pkg-hero-sub { color: #94a3b8; }
body.dark-mode .pkg-hb-chip strong { color: #e2e8f0; }

/* Value strip text */
body.dark-mode .pkg-vs-item strong { color: #e2e8f0; }
body.dark-mode .pkg-vs-item span { color: #94a3b8; }
body.dark-mode .pkg-vs-amount { background: rgba(126,217,87,0.1); color: #7ed957 !important; }

/* Analysis header & toggle */
body.dark-mode .pkg-analysis-header:hover { background: #334155; }
body.dark-mode .pkg-analysis-header h3 { color: #e2e8f0; }
body.dark-mode .pkg-analysis-toggle-icon { color: #94a3b8; }

/* Analysis breakdown labels/values */
body.dark-mode .pkg-ab-label { color: #94a3b8; }
body.dark-mode .pkg-ab-val { color: #e2e8f0; }

/* Analysis power moves */
body.dark-mode .pkg-am-item { background: #0f172a; }
body.dark-mode .pkg-am-title { color: #94a3b8; }
body.dark-mode .pkg-am-item strong { color: #e2e8f0; }
body.dark-mode .pkg-am-item p { color: #94a3b8; }
body.dark-mode .pkg-am-amount { background: rgba(126,217,87,0.1); color: #7ed957; }

/* Analysis fun chips */
body.dark-mode .pkg-af-title { color: #94a3b8; }
body.dark-mode .pkg-af-chip { background: #0f172a; color: #e2e8f0; }
body.dark-mode .pkg-af-chip strong { color: #7ed957; }

/* Analysis ROI section */
body.dark-mode .pkg-analysis-roi { background: linear-gradient(135deg, #1e3a2f 0%, #1e293b 100%); }
body.dark-mode .pkg-ar-bar { background: #1e293b; border-color: #475569; }
body.dark-mode .pkg-ar-bar-gain { background: rgba(126,217,87,0.08); border-color: #475569; }
body.dark-mode .pkg-ar-label { color: #94a3b8; }
body.dark-mode .pkg-ar-value { color: #e2e8f0; }
body.dark-mode .pkg-ar-bar-gain .pkg-ar-value { color: #7ed957; }
body.dark-mode .pkg-ar-arrow { color: #7ed957; }
body.dark-mode .pkg-ar-multi { color: #e2e8f0; }
body.dark-mode .pkg-ar-multi strong { color: #7ed957; }

/* Heading section & recommendation */
body.dark-mode .pkg-heading-section h1 { color: #e2e8f0; }
body.dark-mode .pkg-heading-section p { color: #94a3b8; }
body.dark-mode .pkg-recommendation { background: rgba(126,217,87,0.1); color: #e2e8f0; }

/* Goal items inside pricing cards */
body.dark-mode .goal-item { background: rgba(126,217,87,0.1); color: #e2e8f0; }
body.dark-mode .pricing-card-divider { background: #334155; }

body.dark-mode .comparison-table { background: #1e293b; border-color: #475569; }
body.dark-mode .comparison-table th { background: #0f172a; color: #94a3b8; border-bottom-color: #475569; }
body.dark-mode .comparison-table td { color: #e2e8f0; border-bottom-color: #3b4a63; }
body.dark-mode .consult-contact-btn { background: #0f172a; border-color: #475569; }
body.dark-mode .calendly-modal-content { background: #1e293b; color: #e2e8f0; }
body.dark-mode .calendly-modal-content h3 { color: #f1f5f9; }
body.dark-mode .calendly-modal-content p { color: #94a3b8; }

/* Mobile dark mode toggle — now standalone in header, styled in MOBILE FINAL OVERRIDES */

/* ============================================================
   FIX #3: Video speed control dark mode
   ============================================================ */
body.dark-mode .video-speed-control {
  background: #0f172a !important;
  border-color: #475569 !important;
  color: #e2e8f0 !important;
}

/* ============================================================
   FIX #4: Sidebar backdrop overlay for mobile
   ============================================================ */
.sidebar-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9998;
}

/* ============================================================
   FIX #5: Dark mode — dashboard greeting text
   ============================================================ */
body.dark-mode .dash-greeting h1 { color: #e2e8f0; }
body.dark-mode .dash-greeting p { color: #94a3b8; }

/* ============================================================
   FIX #6: Dark mode — course card badges, labels, filter pills
   ============================================================ */
body.dark-mode .course-card-badge { background: rgba(30,41,59,0.9); color: #e2e8f0; border: 1px solid #475569; }
body.dark-mode .course-card .course-cat { color: var(--green-400); }
body.dark-mode .course-card-info { color: #cbd5e1; }
body.dark-mode .course-card-title { color: #e2e8f0; }
body.dark-mode .course-card-desc { color: #94a3b8; }
body.dark-mode .course-card-footer { border-top-color: #334155; color: #94a3b8; }
body.dark-mode .filter-pill { background: #334155; color: #e2e8f0; border-color: #475569; }
body.dark-mode .filter-pill.active { background: var(--green-600); color: white; }

/* ============================================================
   FIX #7: Dark mode — topbar background consistency
   ============================================================ */
body.dark-mode .topbar { background: #0f172a; border-bottom-color: #1e293b; }
body.dark-mode .topbar-search input { background: transparent; border: none; color: #e2e8f0; }
body.dark-mode .topbar-search input::placeholder { color: #64748b; }

/* ============================================================
   FIX #8: Loading screen dark mode
   ============================================================ */
body.dark-mode #appLoader { background: #0f172a; }
body.dark-mode #appLoader .logo { color: #e2e8f0; }

/* ============================================================
   FIX: Dark mode — landing page section backgrounds
   Ticket #476e4d55 + #ce3389cf
   ============================================================ */
body.dark-mode .lp-features { background: #0f172a; }
body.dark-mode .lp-module { background: #0f172a; }
body.dark-mode .lp-faq { background: #1e293b; }
body.dark-mode .lp-section-tag { color: var(--green-400); }
body.dark-mode .lp-how { background: #1e293b; }
body.dark-mode .lp-step-arrow svg { stroke: #475569; }

/* ============================================================
   FIX: Comprehensive mobile optimization — customer area
   Ticket #ff9fe091
   ============================================================ */
@media (max-width: 768px) {
  /* Course detail page */
  .course-detail-info h1 { font-size: 1.3rem; }
  .course-detail-info .cd-subtitle { font-size: 0.9rem; }
  .course-detail-info { padding: 16px; }
  .cd-meta-row { flex-wrap: wrap; gap: 8px; }

  /* Section cards */
  .section-card-body { padding: 14px 16px; }
  .section-card-header { padding: 14px 16px; }

  /* Lesson items */
  .lesson-info h4 { font-size: 0.82rem; }
  .lesson-info small { font-size: 0.72rem; }

  /* Profile page */
  .profile-header { padding: 16px; gap: 12px; }
  .profile-stats-row { gap: 8px; flex-wrap: wrap; }

  /* Referral page */
  .referral-hero-card h2 { font-size: 1.2rem; }
  .referral-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Continue learning cards */
  .dash-continue-body { padding: 12px 14px; }
  .dash-continue-body h3 { font-size: 0.88rem; }

  /* Topbar */
  .topbar { padding: 10px 16px; }
  .topbar-search { display: none; }

  /* General tables horizontal scroll */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Cards full width */
  .card { width: 100%; }

  /* Reduce heading sizes */
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.15rem; }
  h3 { font-size: 1rem; }

  /* Chat area */
  .chat-messages { padding: 12px; }
  .chat-input-area { padding: 10px; }
}

@media (max-width: 480px) {
  /* Even smaller screens */
  .page-content { padding: 12px; }
  .course-detail-info { padding: 12px; }
  .section-card-body { padding: 10px 12px; }
  .section-card-header { padding: 10px 12px; }
  .topbar { padding: 8px 12px; }
  .dash-continue-grid { gap: 10px; }
  .course-detail-info h1 { font-size: 1.1rem; }
  .lesson-item { padding: 10px 12px; }
}

/* ============================================================
   TICKET #978a0cba: Dark mode search bar gray background fix
   ============================================================ */
body.dark-mode .topbar-search { background: transparent; border-color: #334155; }

/* ============================================================
   TICKET #6157e7f0: Dark mode admin course edit styling
   ============================================================ */
body.dark-mode .section-card { background: #1e293b; border-color: #334155; }
body.dark-mode .section-card-header { border-bottom-color: #334155; color: #e2e8f0; }
body.dark-mode .section-card-header h3 { color: #e2e8f0; }
body.dark-mode .section-card-body { color: #cbd5e1; }
body.dark-mode .form-group label { color: #cbd5e1; }
body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
  background: #0f172a; border-color: #334155; color: #e2e8f0;
}
body.dark-mode .form-group input::placeholder,
body.dark-mode .form-group textarea::placeholder { color: #64748b; }

/* ============================================================
   TICKET #09f01637: Dark mode lessons section white background
   ============================================================ */
body.dark-mode .edit-lesson-item {
  background: #0f172a !important; border-color: #334155 !important; color: #e2e8f0;
}
body.dark-mode .lessons-panel { background: #1e293b; border-color: #334155; }
body.dark-mode .lessons-panel-header { border-bottom-color: #334155; }
body.dark-mode .lesson-item { border-bottom-color: #334155; }

/* ============================================================
   TICKET #572cf0e8: Dark mode back button / btn-ghost fix
   ============================================================ */
body.dark-mode .btn-ghost { background: transparent; color: #e2e8f0; }
body.dark-mode .btn-ghost:hover { background: #334155; color: #f1f5f9; }
body.dark-mode .back-btn { background: rgba(15,23,42,0.7); color: #e2e8f0; }

/* ============================================================
   TICKET #10f52d67 + #dafaa2a7: Player sidebar full height
   ============================================================ */
.player-sidebar {
  min-height: 100%; flex: 1;
}
body.dark-mode .player-sidebar { background: #1e293b; border-left-color: #334155; }
body.dark-mode .player-sidebar-header { border-bottom-color: #334155; color: #e2e8f0; }
body.dark-mode .player-sidebar-header h3 { color: #e2e8f0; }
body.dark-mode .player-sidebar-header small { color: #94a3b8; }
body.dark-mode .player-lessons-list .lesson-item { border-bottom-color: #334155; }
body.dark-mode .player-lessons-list .lesson-item:hover { background: #334155; }

/* ============================================================
   TICKET #24e7d6bb: Remove black border on video
   ============================================================ */
#videoPlayer,
.player-video-wrap video {
  display: block; background: #000; object-fit: contain;
}

/* (Moved to consolidated section below) */

/* ============================================================
   TICKET #3201ee9e: Bookmark active state
   ============================================================ */
.bookmark-btn-active svg {
  fill: var(--green-500); stroke: var(--green-500);
}

/* ============================================================
   TICKET #6157e7f0: Dark mode lesson edit modal
   ============================================================ */
body.dark-mode .lesson-edit-modal-content {
  background: #1e293b !important;
  color: #e2e8f0;
}
body.dark-mode .lesson-edit-modal-content input,
body.dark-mode .lesson-edit-modal-content textarea,
body.dark-mode .lesson-edit-modal-content select {
  background: #0f172a !important;
  border-color: #475569 !important;
  color: #e2e8f0 !important;
}
body.dark-mode .lesson-edit-modal-content label {
  color: #94a3b8;
}
body.dark-mode .lesson-edit-modal-content h3 {
  color: #f1f5f9;
}

/* ============================================================
   TICKET #59222217 + #66138c91: Profile avatar border aligned
   ============================================================ */
.profile-avatar-wrapper {
  width: 88px;
  height: 88px;
  border: 2px solid var(--grey-200);
  border-radius: 50%;
  padding: 2px;
  transition: border-color 0.2s;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-avatar-wrapper .profile-avatar {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}
.profile-avatar-wrapper:hover {
  border-color: var(--green-500);
}
body.dark-mode .profile-avatar-wrapper {
  border-color: #475569;
}
body.dark-mode .profile-avatar-wrapper:hover {
  border-color: var(--green-400);
}

/* ============================================================
   TICKET #dc3b791b: Speed dropdown arrow more spacing
   ============================================================ */
.video-speed-control {
  padding-right: 28px !important;
  padding-left: 10px !important;
  appearance: auto;
}

/* ============================================================
   Services / Dienstleistungen Section
   ============================================================ */
.lp-services { padding: 80px 0; }
.lp-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.lp-service-card {
  background: #fff;
  border: none;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 8px 32px rgba(0,0,0,0.08);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background 0.25s ease, color 0.25s ease;
  display: flex;
  flex-direction: column;
}
.lp-service-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
}
.lp-service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.lp-service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.lp-service-card p {
  font-size: 0.92rem;
  color: var(--grey-500);
  line-height: 1.6;
  margin-bottom: 16px;
}
.lp-service-link {
  color: var(--green-600);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
  margin-top: auto;
}
.lp-service-link:hover { color: var(--green-700); }

/* Dark mode services */
[data-theme="dark"] .lp-service-card {
  background: var(--grey-800);
  border-color: var(--grey-700);
}
[data-theme="dark"] .lp-service-card:hover {
  border-color: var(--green-600);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
  .lp-services { padding: 48px 0; }
  .lp-services-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .lp-service-card { padding: 24px; }
}

/* Kostenvergleich Tool */
.lp-cost-compare { padding: 80px 0; background: var(--grey-50); }
.lp-cost-tool { max-width: 900px; margin: 48px auto 0; }
.lp-cost-slider-wrap { text-align: center; margin-bottom: 40px; }
.lp-cost-slider-label { font-size: 0.95rem; color: var(--grey-500); margin-bottom: 8px; display: block; }
.lp-cost-slider-value { font-size: 2rem; font-weight: 700; color: var(--text-primary); margin-bottom: 16px; }
.lp-cost-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; max-width: 500px; height: 8px;
  border-radius: 4px; background: var(--grey-200);
  outline: none; cursor: pointer;
}
.lp-cost-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--green-500); cursor: pointer;
  box-shadow: 0 2px 8px rgba(126,217,87,0.4);
}
.lp-cost-slider::-moz-range-thumb {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--green-500); cursor: pointer; border: none;
}
.lp-cost-slider-range { display: flex; justify-content: space-between; max-width: 500px; margin: 8px auto 0; font-size: 0.8rem; color: var(--grey-400); }
.lp-cost-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.lp-cost-result { background: var(--white); border-radius: 16px; padding: 28px; text-align: center; border: 2px solid var(--grey-100); transition: all 0.3s; }
.lp-cost-result-header { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; }
.lp-cost-result-label { font-weight: 700; font-size: 1rem; color: var(--text-primary); }
.lp-cost-result-badge { background: var(--green-500); color: white; font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; text-transform: uppercase; }
.lp-cost-result-fee { font-size: 0.85rem; color: var(--grey-400); margin-bottom: 16px; }
.lp-cost-result-total { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.lp-cost-result-endval { font-size: 1.1rem; font-weight: 700; margin-top: 12px; margin-bottom: 4px; }
.lp-cost-result-sub { font-size: 0.78rem; color: var(--grey-400); }
.lp-cost-good { border-color: var(--green-300); }
.lp-cost-good .lp-cost-result-total { color: var(--green-600); }
.lp-cost-good .lp-cost-result-endval { color: var(--green-600); }
.lp-cost-avg .lp-cost-result-total { color: var(--orange-500, #f97316); }
.lp-cost-avg .lp-cost-result-endval { color: var(--text-primary); }
.lp-cost-bad .lp-cost-result-total { color: #dc2626; }
.lp-cost-bad .lp-cost-result-endval { color: var(--text-primary); }
.lp-cost-saving { text-align: center; font-size: 1.1rem; padding: 20px; background: var(--green-50, rgba(126,217,87,0.1)); border-radius: 12px; margin-bottom: 16px; }
.lp-cost-saving strong { color: var(--green-600); font-size: 1.3rem; }
.lp-cost-disclaimer { text-align: center; font-size: 0.75rem; color: var(--grey-400); }

/* Dark mode cost compare */
body.dark-mode .lp-cost-compare { background: #0f172a; }
body.dark-mode .lp-cost-result { background: #1e293b; border-color: #334155; }
body.dark-mode .lp-cost-result h4 { color: #f1f5f9; }
body.dark-mode .lp-cost-result .lp-cost-amount { color: #f1f5f9; }
body.dark-mode .lp-cost-good { border-color: #7ed957; }
body.dark-mode .lp-cost-saving { background: rgba(126,217,87,0.1); }
body.dark-mode .lp-cost-saving strong { color: #7ed957; }
body.dark-mode .lp-cost-slider { background: #334155; }
body.dark-mode .lp-cost-slider-value { color: #f1f5f9; }
body.dark-mode .lp-cost-disclaimer { color: #94a3b8; }

@media (max-width: 768px) {
  .lp-cost-compare { padding: 48px 0; }
  .lp-cost-results { grid-template-columns: 1fr; gap: 12px; }
  .lp-cost-slider-value { font-size: 1.5rem; }
}

/* Scroll Animations */
.lp-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s cubic-bezier(.4,0,.2,1), transform 0.4s cubic-bezier(.4,0,.2,1);
}
.lp-animate.visible {
  opacity: 1;
  transform: translateY(0);
}
.lp-animate-children > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s cubic-bezier(.4,0,.2,1), transform 0.3s cubic-bezier(.4,0,.2,1);
}
.lp-animate-children.visible > *:nth-child(1) { transition-delay: 0s; }
.lp-animate-children.visible > *:nth-child(2) { transition-delay: 0.05s; }
.lp-animate-children.visible > *:nth-child(3) { transition-delay: 0.08s; }
.lp-animate-children.visible > *:nth-child(4) { transition-delay: 0.11s; }
.lp-animate-children.visible > *:nth-child(5) { transition-delay: 0.14s; }
.lp-animate-children.visible > *:nth-child(6) { transition-delay: 0.17s; }
.lp-animate-children.visible > *:nth-child(7) { transition-delay: 0.20s; }
.lp-animate-children.visible > *:nth-child(8) { transition-delay: 0.23s; }
.lp-animate-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Counter animation pulse */
.lp-stat-number.counting {
  color: var(--green-500);
  transition: color 0.3s ease;
}

/* Hero Team Photo */
/* Hero Team Image — cool effects */
.lp-hero-img-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}
.lp-hero-img-bg {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126,217,87,0.15) 0%, rgba(126,217,87,0.05) 50%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  animation: heroPulse 4s ease-in-out infinite;
}
.lp-hero-img-glow {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(126,217,87,0.2) 0%, transparent 70%);
  filter: blur(20px);
  z-index: 0;
}
/* Crossfade container for light/dark hero images */
.lp-hero-team-img {
  width: 120%;
  max-width: none;
  height: auto;
  object-fit: contain;
  margin-left: -10%;
  margin-top: -40px;
  margin-bottom: -30px;
  z-index: 1;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
  animation: heroFloat 8s ease-in-out infinite;
}
.lp-hero-img-ring {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 460px;
  height: 460px;
  border-radius: 50%;
  border: 2px solid rgba(126,217,87,0.15);
  z-index: 0;
  animation: heroRingSpin 20s linear infinite;
}
.lp-hero-img-ring::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-400);
  box-shadow: 0 0 12px var(--green-400);
}

/* Floating badge 3 */
.lp-hero-floating.lp-float-3 {
  bottom: 28%;
  left: -80px;
  animation-delay: 1.5s;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes heroPulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.05); }
}
@keyframes heroRingSpin {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(360deg); }
}

body.dark-mode .lp-hero-img-bg {
  background: radial-gradient(circle, rgba(126,217,87,0.1) 0%, rgba(126,217,87,0.03) 50%, transparent 70%);
}
body.dark-mode .lp-hero-img-ring {
  border-color: rgba(126,217,87,0.1);
}

@media (max-width: 768px) {
  .lp-hero-img-wrap { max-width: 340px; }
  .lp-hero-team-img { width: 120%; max-width: none; margin-left: -10%; margin-bottom: -40px; }
  .lp-hero-img-bg { width: 280px; height: 280px; }
  .lp-hero-img-ring { width: 260px; height: 260px; }
  .lp-hero-floating.lp-float-3 { display: none; }
}

/* Kundentool Section */
.lp-kundentool { padding: 80px 0; background: var(--grey-50); }
.lp-kundentool-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 48px;
}
.lp-kundentool-mockup { position: relative; }
.lp-kundentool-login {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.lp-kundentool-login h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.lp-kundentool-login p {
  color: var(--grey-500);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}
body.dark-mode .lp-kundentool { background: #1e293b; }
body.dark-mode .lp-kundentool-login { background: #334155; }
body.dark-mode .lp-kundentool-login h3 { color: #f1f5f9; }
body.dark-mode .lp-kundentool-login p { color: #94a3b8; }
@media (max-width: 768px) {
  .lp-kundentool-content { grid-template-columns: 1fr; }
  .lp-kundentool { padding: 48px 0; }
}

/* ============================================================
   TOOLS SECTION
   ============================================================ */
.lp-tools {
  padding: 80px 0;
  background: #fff !important;
}
.lp-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.lp-tool-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px;
  background: #fff;
  border: none;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 8px 32px rgba(0,0,0,0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.lp-tool-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(126,217,87,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.lp-tool-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
}
.lp-tool-card:hover::after {
  opacity: 1;
}
.lp-tool-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lp-tool-card:hover .lp-tool-icon {
  transform: scale(1.05);
}
.lp-tool-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
  transition: color 0.15s ease;
}
.lp-tool-card:hover h3 {
  color: #166534;
}
.lp-tool-card p {
  font-size: 0.88rem;
  color: var(--grey-500);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}
.lp-tool-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #7ed957;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease, letter-spacing 0.2s ease;
}
.lp-tool-card:hover .lp-tool-link {
  gap: 8px;
  letter-spacing: 0.02em;
}
body.dark-mode .lp-tools { background: #0f172a !important; }
body.dark-mode .lp-tool-card { background: #1e293b !important; border: none; box-shadow: 0 1px 3px rgba(0,0,0,0.15), 0 4px 20px rgba(0,0,0,0.2); }
body.dark-mode .lp-tool-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.3), 0 2px 8px rgba(0,0,0,0.15); }
body.dark-mode .lp-tool-card:hover h3 { color: #f1f5f9; }
body.dark-mode .lp-tool-card::after { background: linear-gradient(135deg, rgba(126,217,87,0.04) 0%, transparent 60%); }
body.dark-mode .lp-tool-card h3 { color: #f1f5f9; }
body.dark-mode .lp-tool-card p { color: #94a3b8; }
body.dark-mode .lp-tool-link { color: #94a3b8; }
body.dark-mode .lp-tool-card:hover .lp-tool-link { color: #e2e8f0; }
@media (max-width: 768px) {
  .lp-tools { padding: 48px 0; }
  .lp-tools-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   VISUAL UPGRADE — MEISTERWERK STYLES
   ============================================================ */

/* ============================================================
   DAY / NIGHT — GREEN DOTS → STARS TRANSITION
   ============================================================ */

/* No transition on hero bg — instant switch, green dots do the magic */

/* Sky container */
.hero-sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* ---- PERMANENT STARS (visible in dark mode) ---- */
.hero-stars {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-star {
  position: absolute;
  border-radius: 50%;
  background: #e2e8f0;
  opacity: 0;
  transition: opacity 1.5s ease-out;
  will-change: opacity;
}

body.dark-mode .hero-star {
  opacity: var(--star-opacity, 0.6);
  animation:
    starTwinkle var(--twinkle-duration, 3s) ease-in-out var(--twinkle-delay, 0s) infinite,
    starDrift var(--drift-duration, 20s) ease-in-out var(--twinkle-delay, 0s) infinite alternate;
}

@keyframes starTwinkle {
  0%, 100% { opacity: var(--star-opacity, 0.6); }
  50% { opacity: calc(var(--star-opacity, 0.6) * 0.25); }
}

@keyframes starDrift {
  0% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(var(--drift-x, 3px), var(--drift-y, -2px)) scale(1.1); }
  50% { transform: translate(calc(var(--drift-x, 3px) * -0.5), calc(var(--drift-y, -2px) * 1.5)) scale(0.9); }
  75% { transform: translate(calc(var(--drift-x, 3px) * 0.8), calc(var(--drift-y, -2px) * -0.7)) scale(1.05); }
  100% { transform: translate(calc(var(--drift-x, 3px) * -1), calc(var(--drift-y, -2px) * -1)) scale(1); }
}

.hero-star-bright {
  background: #f1f5f9;
}

body.dark-mode .hero-star-bright {
  box-shadow:
    0 0 4px rgba(241,245,249,0.5),
    0 0 8px rgba(241,245,249,0.2);
}

/* ---- TRANSITION DOTS (green → white → fade) ---- */
.hero-transition-dot {
  position: absolute;
  border-radius: 50%;
  background: #7ed957;
  opacity: 0;
  transform: scale(0.2);
  box-shadow: 0 0 8px rgba(126,217,87,0.6), 0 0 16px rgba(126,217,87,0.3);
  transition:
    opacity 0.4s ease-in,
    transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 1s ease,
    box-shadow 1s ease;
  z-index: 2;
  pointer-events: none;
}

/* Phase 1: green dot appears and grows — visible on LIGHT bg */
.hero-transition-dot.dot-phase-green {
  opacity: var(--dot-opacity, 0.9);
  transform: scale(1);
}

/* Phase 2: dot turns white (becomes a star) */
.hero-transition-dot.dot-phase-star {
  opacity: var(--dot-opacity, 0.8);
  transform: scale(1);
  background: #e2e8f0;
  box-shadow: 0 0 4px rgba(226,232,240,0.4);
}

/* Phase 3: most dots fade out */
.hero-transition-dot.dot-phase-fade {
  opacity: 0;
  transform: scale(0.5);
  background: #e2e8f0;
  box-shadow: none;
  transition:
    opacity 3s ease-out,
    transform 3s ease-out;
}

/* ---- SHOOTING STAR ---- */
.hero-shooting-star {
  position: absolute;
  top: 20%;
  left: -10%;
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e2e8f0 40%, transparent);
  border-radius: 2px;
  opacity: 0;
  transform: rotate(-35deg);
  z-index: 1;
  pointer-events: none;
}

body.dark-mode .hero-shooting-star {
  animation: shootingStar 8s 4s ease-in infinite;
}

@keyframes shootingStar {
  0% { opacity: 0; transform: rotate(-35deg) translateX(0); }
  2% { opacity: 1; }
  6% { opacity: 1; transform: rotate(-35deg) translateX(500px); }
  8% { opacity: 0; transform: rotate(-35deg) translateX(600px); }
  100% { opacity: 0; transform: rotate(-35deg) translateX(600px); }
}

/* ---- DARK MODE ORB ADJUSTMENTS ---- */
body.dark-mode .lp-orb-1 {
  background: radial-gradient(circle, rgba(126,217,87,0.12), transparent 70%);
  opacity: 0.3;
}
body.dark-mode .lp-orb-2 {
  background: radial-gradient(circle, rgba(59,130,246,0.08), transparent 70%);
  opacity: 0.25;
}
body.dark-mode .lp-orb-3 {
  background: radial-gradient(circle, rgba(139,92,246,0.06), transparent 70%);
  opacity: 0.2;
}

/* ---- DARK MODE GRID LINES ---- */
body.dark-mode .lp-hero-grid-lines {
  background-image:
    linear-gradient(rgba(226,232,240,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226,232,240,0.02) 1px, transparent 1px);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero-shooting-star { display: none; }
}

/* --- Hero Background Effects --- */
.lp-hero-bg-effects {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.lp-hero-content {
  position: relative;
  z-index: 1;
}

/* Animated gradient orbs */
.lp-hero-gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  will-change: transform;
}
.lp-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(126,217,87,0.3), transparent 70%);
  top: -200px;
  right: -100px;
  animation: orbFloat1 8s ease-in-out infinite;
}
.lp-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,0.15), transparent 70%);
  bottom: -100px;
  left: -50px;
  animation: orbFloat2 10s ease-in-out infinite;
}
.lp-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139,92,246,0.1), transparent 70%);
  top: 50%;
  left: 40%;
  animation: orbFloat3 12s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-30px, 20px) scale(1.05); }
  66% { transform: translate(20px, -15px) scale(0.95); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.1); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 20px); }
}

/* Subtle grid pattern overlay */
.lp-hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(126,217,87,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126,217,87,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 70% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 50%, black 20%, transparent 70%);
}

/* --- Glassmorphism Floating Badges --- */
.lp-hero-floating {
  background: rgba(255,255,255,0.85) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: -8px 10px 30px rgba(0,0,0,0.25), -2px 4px 12px rgba(0,0,0,0.12) !important;
  z-index: 10;
}
body.dark-mode .lp-hero-floating {
  background: rgba(30,41,59,0.85) !important;
  border-color: rgba(126,217,87,0.15);
}

/* --- Glow Button Effect --- */
.lp-btn-glow {
  position: relative;
  overflow: visible;
}
.lp-btn-glow::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--green-400), var(--green-600));
  z-index: -1;
  filter: blur(12px);
  opacity: 0.4;
  transition: opacity 0.3s;
}
.lp-btn-glow:hover::after {
  opacity: 0.7;
}

/* --- Stats Bar Glassmorphism Upgrade --- */
.lp-stats {
  background: linear-gradient(135deg, #282f47 0%, #1a2332 50%, #1e293b 100%) !important;
  position: relative;
  overflow: hidden;
}
body.dark-mode .lp-stats {
  background: linear-gradient(135deg, #0f172a 0%, #1a2332 50%, #1e293b 100%) !important;
  border-color: #334155 !important;
}
.lp-stats::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126,217,87,0.08), transparent 70%);
  pointer-events: none;
}
.lp-stat-icon {
  background: rgba(126,217,87,0.12) !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(126,217,87,0.15);
  transition: var(--transition);
}
.lp-stat:hover .lp-stat-icon {
  background: rgba(126,217,87,0.2) !important;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(126,217,87,0.2);
}
.lp-stat-number {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* --- Service Cards Upgrade --- */
.lp-service-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(.4,0,.2,1) !important;
}
.lp-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-400), var(--green-600), var(--blue-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.lp-service-card:hover::before {
  transform: scaleX(1);
}
.lp-service-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1), 0 0 0 1px rgba(126,217,87,0.2) !important;
}
.lp-service-icon {
  transition: all 0.3s ease;
}
.lp-service-card:hover .lp-service-icon {
  transform: scale(1.05);
}

/* --- Feature Cards Upgrade --- */
.lp-feature-card {
  position: relative;
  overflow: hidden;
}
.lp-feature-card::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126,217,87,0.06), transparent 70%);
  bottom: -80px;
  right: -80px;
  transition: transform 0.5s ease;
}
.lp-feature-card:hover::after {
  transform: scale(1.5);
}
.lp-feature-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,0.1), 0 0 0 1px rgba(126,217,87,0.15) !important;
  border-color: var(--green-200) !important;
}

/* --- Section Dividers with Gradient --- */
.lp-services,
.lp-features,
.lp-cost-compare,
.lp-kundentool {
  position: relative;
}
.lp-services::after,
.lp-features::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green-200), transparent);
}

/* --- Cost Compare Section Upgrade --- */
.lp-cost-compare {
  background: linear-gradient(180deg, var(--white) 0%, var(--grey-50) 100%) !important;
}
.lp-cost-result {
  transition: all 0.3s ease;
}
.lp-cost-result:hover {
  transform: translateY(-4px);
}
.lp-cost-result.lp-cost-good {
  position: relative;
}
.lp-cost-result.lp-cost-good::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--green-400), var(--green-600));
  z-index: -1;
  filter: blur(8px);
  opacity: 0.15;
}

/* --- Compare Section (dark) Upgrade --- */
.lp-compare {
  position: relative;
  overflow: hidden;
}
.lp-compare::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126,217,87,0.06), transparent 70%);
  pointer-events: none;
}
.lp-compare::after {
  content: '';
  position: absolute;
  bottom: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.05), transparent 70%);
  pointer-events: none;
}

/* --- Booking CTA Upgrade --- */
.lp-booking {
  position: relative;
  overflow: hidden;
}
.lp-booking::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(126,217,87,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(37,99,235,0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* --- Testimonial Cards Upgrade --- */
.lp-testimonial-card {
  transition: all 0.3s ease !important;
  position: relative;
  overflow: hidden;
}
.lp-testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08) !important;
}
.lp-testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  right: 20px;
  font-size: 8rem;
  font-weight: 900;
  color: rgba(126,217,87,0.06);
  line-height: 1;
  pointer-events: none;
}

/* --- FAQ Upgrade --- */
.lp-faq {
  position: relative;
}
.lp-faq::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126,217,87,0.04), transparent 70%);
  pointer-events: none;
}

/* --- Animated Section Tags --- */
.lp-section-tag {
  position: relative;
  padding: 4px 16px;
  background: rgba(126,217,87,0.1);
  border-radius: var(--radius-full);
  border: none;
  transition: all 0.3s ease;
}
.lp-section-tag:hover {
  background: rgba(126,217,87,0.15);
}

/* --- Scroll Progress Indicator --- */
.lp-scroll-progress {
  display: none; /* DISABLED: scroll progress bar removed */
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-400), var(--green-600), var(--blue-500));
  z-index: 10000;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(126,217,87,0.5);
}

/* --- Enhanced reveal animations (upgrades the base .lp-animate rules above) --- */

/* --- Fachwissen / Knowledge Section --- */
.lp-knowledge {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--grey-50) 0%, var(--white) 100%);
  position: relative;
}
.lp-knowledge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green-200), transparent);
}
.lp-knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.lp-knowledge-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}
.lp-knowledge-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  border-color: var(--green-200);
}
.lp-knowledge-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-400), var(--blue-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.lp-knowledge-card:hover::before {
  transform: scaleX(1);
}
.lp-knowledge-stat {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  line-height: 1.1;
}
.lp-knowledge-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark);
}
.lp-knowledge-card p {
  font-size: 0.88rem;
  color: var(--grey-500);
  line-height: 1.6;
  margin-bottom: 12px;
}
.lp-knowledge-source {
  font-size: 0.72rem;
  color: var(--grey-400);
  font-style: italic;
  padding-top: 12px;
  border-top: 1px solid var(--grey-100);
}
body.dark-mode .lp-knowledge {
  background: linear-gradient(180deg, var(--dark-800) 0%, #0f172a 100%);
}
body.dark-mode .lp-knowledge-card {
  background: #334155;
  border-color: #475569;
}
body.dark-mode .lp-knowledge-card h3 { color: #e2e8f0; }
body.dark-mode .lp-knowledge-card p { color: #94a3b8; }
body.dark-mode .lp-knowledge-source { color: #94a3b8; border-color: #475569; }

@media (max-width: 768px) {
  .lp-knowledge-grid { grid-template-columns: 1fr; }
  .lp-knowledge-stat { font-size: 2rem; }
  .lp-hero-bg-effects { display: block; opacity: 1; }
}
@media (max-width: 1024px) {
  .lp-knowledge-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Partner / Trust Logos Bar --- */
.lp-trust-bar {
  padding: 40px 0;
  background: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.lp-trust-bar-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--grey-400);
  font-weight: 600;
  margin-bottom: 24px;
}
.lp-trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}
.lp-trust-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--grey-300);
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lp-trust-logo:hover { color: var(--grey-500); }
.lp-trust-logo svg { opacity: 0.4; }
.lp-trust-logo:hover svg { opacity: 0.7; }
body.dark-mode .lp-trust-bar { background: #1e293b; }
body.dark-mode .lp-trust-logo { color: var(--grey-500); }
body.dark-mode .lp-trust-bar-label { color: var(--grey-500); }

/* ============================================================
   MEISTERWERK UPGRADE — Visual Effects & Animations
   ============================================================ */

/* --- Particle Canvas (behind hero) --- */
#heroParticles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* --- Hero Visual: align bottom flush --- */
.lp-hero-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* --- Animated gradient border on hero section --- */
/* shimmer line removed */

/* --- Trust Bar Marquee --- */
.lp-trust-logos {
  animation: marqueeScroll 20s linear infinite;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Section Backgrounds with Animated Mesh --- */
.lp-services {
  background: #fff !important;
}
.lp-features {
  background: var(--white) !important;
}
body.dark-mode .lp-services {
  background: #0f172a !important;
}
body.dark-mode .lp-features {
  background: #0f172a !important;
}

/* --- Floating shapes for section backgrounds --- */
.lp-section-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.lp-section-bg-shapes .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.04;
  background: var(--green-500);
}
.lp-section-bg-shapes .shape-1 {
  width: 400px; height: 400px;
  top: -150px; right: -100px;
  animation: shapeFloat 15s ease-in-out infinite;
}
.lp-section-bg-shapes .shape-2 {
  width: 250px; height: 250px;
  bottom: -80px; left: -60px;
  animation: shapeFloat 12s ease-in-out infinite reverse;
}
.lp-section-bg-shapes .shape-3 {
  width: 150px; height: 150px;
  top: 40%; left: 60%;
  background: var(--blue-500);
  animation: shapeFloat 18s ease-in-out infinite;
}
@keyframes shapeFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(20px, -30px) rotate(5deg); }
  50% { transform: translate(-10px, 20px) rotate(-3deg); }
  75% { transform: translate(15px, 10px) rotate(2deg); }
}

/* --- Enhanced Scroll Reveal Animations --- */
.lp-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s cubic-bezier(.4,0,.2,1), transform 0.4s cubic-bezier(.4,0,.2,1);
}
.lp-animate.visible {
  opacity: 1;
  transform: translateY(0);
}
.lp-animate-children > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s cubic-bezier(.4,0,.2,1), transform 0.3s cubic-bezier(.4,0,.2,1);
}
.lp-animate-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}
.lp-animate-children.visible > *:nth-child(1) { transition-delay: 0s; }
.lp-animate-children.visible > *:nth-child(2) { transition-delay: 0.05s; }
.lp-animate-children.visible > *:nth-child(3) { transition-delay: 0.08s; }
.lp-animate-children.visible > *:nth-child(4) { transition-delay: 0.11s; }
.lp-animate-children.visible > *:nth-child(5) { transition-delay: 0.14s; }
.lp-animate-children.visible > *:nth-child(6) { transition-delay: 0.17s; }
.lp-animate-children.visible > *:nth-child(7) { transition-delay: 0.20s; }
.lp-animate-children.visible > *:nth-child(8) { transition-delay: 0.23s; }

/* --- Parallax-like depth on scroll (via JS class) --- */
.lp-parallax-slow {
  transition: transform 0.3s ease-out;
  will-change: transform;
}

/* --- Glassmorphism Cards (universal) --- */
.lp-glass {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}
body.dark-mode .lp-glass {
  background: rgba(30,41,59,0.7);
  border-color: rgba(255,255,255,0.06);
}

/* --- Gradient Text Utility --- */
.lp-gradient-text {
  background: linear-gradient(135deg, var(--green-500) 0%, var(--green-700) 50%, var(--blue-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Enhanced Hero H1 --- */
.lp-hero-text h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem) !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.03em !important;
}

/* --- Animated gradient border on cards --- */
.lp-card-glow {
  position: relative;
}
.lp-card-glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--green-300), var(--green-500), var(--blue-400));
  z-index: -1;
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.4s ease;
}
.lp-card-glow:hover::before {
  opacity: 0.3;
}

/* --- Testimonial: animated quote mark --- */
.lp-testimonial {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(.4,0,.2,1) !important;
}
.lp-testimonial::before {
  content: '\201C';
  position: absolute;
  top: -20px;
  right: 16px;
  font-size: 10rem;
  font-weight: 900;
  color: rgba(126,217,87,0.05);
  line-height: 1;
  pointer-events: none;
  transition: transform 0.5s ease;
}
.lp-testimonial:hover::before {
  transform: scale(1.05);
}
.lp-testimonial:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1) !important;
}

/* --- Stats bar counter glow --- */
.lp-stat-number.counting {
  animation: counterPulse 0.4s ease-in-out infinite alternate !important;
}
@keyframes counterPulse {
  from { text-shadow: 0 0 10px rgba(126,217,87,0.3); }
  to { text-shadow: 0 0 25px rgba(126,217,87,0.6); }
}

/* --- Team Cards: photo zoom + gradient overlay --- */
.lp-team-card {
  transition: all 0.4s cubic-bezier(.4,0,.2,1) !important;
  overflow: hidden;
}
.lp-team-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 24px 48px rgba(0,0,0,0.12) !important;
}
.lp-team-photo img {
  transition: transform 0.6s cubic-bezier(.4,0,.2,1) !important;
}
.lp-team-card:hover .lp-team-photo img {
  transform: scale(1.08) !important;
}
.lp-team-photo-overlay {
  transition: opacity 0.4s ease !important;
}
.lp-team-card:hover .lp-team-photo-overlay {
  opacity: 1 !important;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%) !important;
}

/* --- Compare section: animated list items --- */
.lp-compare-col li {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.lp-compare-good li {
  transform: translateX(20px);
}
.lp-compare.visible .lp-compare-col li {
  opacity: 1;
  transform: translateX(0);
}
.lp-compare.visible .lp-compare-col li:nth-child(1) { transition-delay: 0.1s; }
.lp-compare.visible .lp-compare-col li:nth-child(2) { transition-delay: 0.2s; }
.lp-compare.visible .lp-compare-col li:nth-child(3) { transition-delay: 0.3s; }
.lp-compare.visible .lp-compare-col li:nth-child(4) { transition-delay: 0.4s; }
.lp-compare.visible .lp-compare-col li:nth-child(5) { transition-delay: 0.5s; }
.lp-compare.visible .lp-compare-col li:nth-child(6) { transition-delay: 0.6s; }
.lp-compare.visible .lp-compare-col li:nth-child(7) { transition-delay: 0.7s; }

/* --- Booking section: pulse ring on CTA --- */
.lp-booking-text .btn-primary {
  position: relative;
}
.lp-booking-text .btn-primary::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid var(--green-400);
  animation: ctaPulseRing 2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ctaPulseRing {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.05); }
}

/* --- Knowledge card: number counter shimmer --- */
.lp-knowledge-stat {
  position: relative;
  overflow: hidden;
}
.lp-knowledge-stat::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: statShimmer 3s ease-in-out infinite;
}
@keyframes statShimmer {
  0% { left: -100%; }
  50%, 100% { left: 150%; }
}

/* --- Cost Compare: animated saving highlight --- */
.lp-cost-saving {
  position: relative;
  overflow: hidden;
}
.lp-cost-saving::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(126,217,87,0.1), transparent);
  animation: savingPulse 3s ease-in-out infinite;
}
@keyframes savingPulse {
  0%, 100% { opacity: 0; transform: translateX(-100%); }
  50% { opacity: 1; transform: translateX(100%); }
}

/* --- FAQ: smooth hover on items --- */
.lp-faq-item {
  transition: all 0.3s ease !important;
}
.lp-faq-item:hover {
  border-color: var(--green-200) !important;
  box-shadow: 0 4px 16px rgba(126,217,87,0.08) !important;
}

/* --- Smooth page transitions --- */
html {
  scroll-behavior: smooth;
}

/* --- Mobile hero: show glow but hide ring --- */
@media (max-width: 768px) {
  .lp-hero-img-ring { display: none; }
  .lp-hero-img-bg { width: 300px; height: 300px; }
  .lp-hero-img-glow { width: 280px; }
  .lp-hero-img-wrap { max-width: 360px; }
  .lp-hero-team-img { width: 120% !important; max-width: none !important; margin-left: -10% !important; margin-bottom: -40px !important; }
  .lp-trust-logos { animation: none; }
  .lp-hero { padding: 40px 20px 0 !important; overflow: hidden !important; }
  .lp-hero-content { align-items: center !important; }
}

/* ============================================================
   BLOG SECTION
   ============================================================ */
.lp-blog {
  padding: 80px 0;
  background: var(--white);
}
body.dark-mode .lp-blog {
  background: #0f172a;
}
.lp-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.lp-blog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--grey-200);
  transition: all 0.4s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.lp-blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.1);
  border-color: var(--green-300);
}
.lp-blog-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--green-300), var(--green-500), var(--blue-400));
  opacity: 0;
  z-index: -1;
  filter: blur(10px);
  transition: opacity 0.4s ease;
}
.lp-blog-card:hover::after {
  opacity: 0.15;
}
.lp-blog-img {
  height: 200px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.lp-blog-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.6s cubic-bezier(.4,0,.2,1);
}
.lp-blog-card:hover .lp-blog-img img {
  transform: scale(1.08);
}
.lp-blog-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 60%);
  z-index: 1;
}
.lp-blog-category {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: 0.02em;
}
.lp-blog-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.lp-blog-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--dark);
}
.lp-blog-body p {
  font-size: 0.88rem;
  color: var(--grey-500);
  line-height: 1.6;
  flex: 1;
}
.lp-blog-meta {
  font-size: 0.78rem;
  color: var(--grey-400);
  margin-top: 14px;
  font-weight: 500;
}
body.dark-mode .lp-blog-card {
  background: #1e293b;
  border-color: rgba(255,255,255,0.06);
}
body.dark-mode .lp-blog-body h3 { color: #e2e8f0; }
body.dark-mode .lp-blog-category {
  background: rgba(30,41,59,0.9);
  color: #e2e8f0;
}
@media (max-width: 1024px) {
  .lp-blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .lp-blog-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .lp-blog-card { font-size: 0.85rem; }
  .lp-blog-body h3 { font-size: 0.85rem; }
  .lp-blog-body p { font-size: 0.72rem; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .lp-blog-meta { font-size: 0.68rem; }
  .lp-blog-img { height: 150px; }
}

/* ============================================================
   FAQ REDESIGN — Categories + Better UX
   ============================================================ */
.lp-faq-categories {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}
.lp-faq-cat-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--grey-200);
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--grey-500);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}
.lp-faq-cat-btn:hover {
  border-color: var(--green-400);
  color: var(--green-700);
  background: var(--green-50);
}
.lp-faq-cat-btn.active {
  background: var(--green-500);
  color: white;
  border-color: var(--green-500);
  box-shadow: 0 4px 14px rgba(126,217,87,0.3);
}
body.dark-mode .lp-faq-cat-btn {
  background: #1e293b;
  border-color: rgba(255,255,255,0.1);
  color: #94a3b8;
}
body.dark-mode .lp-faq-cat-btn:hover {
  border-color: #7ed957;
  background: rgba(126,217,87,0.1);
  color: #7ed957;
}
body.dark-mode .lp-faq-cat-btn.active {
  background: #5cb338;
  color: white;
  border-color: #5cb338;
}
.lp-faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.lp-faq-item {
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--white);
  transition: all 0.3s ease;
}
.lp-faq-item[open] {
  border-color: var(--green-300);
  box-shadow: 0 4px 20px rgba(126,217,87,0.1);
}
.lp-faq-item summary {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.2s ease;
  color: var(--dark);
}
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-item summary::after {
  content: '';
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--grey-100);
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.3s ease;
}
.lp-faq-item[open] summary::after {
  transform: rotate(180deg);
  background-color: var(--green-100);
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234a9a2d' stroke-width='2.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}
.lp-faq-item[open] summary {
  color: var(--green-700);
}
.lp-faq-item p {
  padding: 0 24px 18px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--grey-500);
  margin: 0;
}
body.dark-mode .lp-faq-item {
  background: #1e293b;
  border-color: rgba(255,255,255,0.06);
}
body.dark-mode .lp-faq-item[open] {
  border-color: #5cb338;
}
body.dark-mode .lp-faq-item summary { color: #f1f5f9; }
body.dark-mode .lp-faq-item[open] summary { color: #7ed957; }
body.dark-mode .lp-faq-item summary::after {
  background-color: #454d68;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}
body.dark-mode .lp-faq-item[open] summary::after {
  background-color: rgba(126,217,87,0.15);
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237ed957' stroke-width='2.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}
body.dark-mode .lp-faq-item p { color: var(--grey-400); }
.lp-faq-item[data-hidden="true"] {
  display: none;
}
#faqList .lp-faq-item:not([data-hidden="false"]) {
  display: none;
}
.lp-faq-count {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--grey-400);
}

/* ============================================================
   FOOTER REDESIGN — Modern & Clean
   ============================================================ */
.lp-footer {
  background: linear-gradient(180deg, var(--grey-50) 0%, #f1f5f9 100%);
  border-top: 1px solid var(--grey-200);
  position: relative;
  overflow: hidden;
}
.lp-footer::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126,217,87,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.lp-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px 40px;
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 60px;
}
.lp-footer-brand p {
  color: var(--grey-500);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 14px;
  max-width: 320px;
}
.lp-footer-social {
  display: flex;
  gap: 12px;
}
.lp-footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--grey-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-500);
  transition: all 0.3s ease;
}
.lp-footer-social a:hover {
  background: var(--green-500);
  color: white;
  border-color: var(--green-500);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(126,217,87,0.3);
}
.lp-footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.lp-footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dark);
  margin-bottom: 18px;
}
.lp-footer-link {
  display: block;
  font-size: 0.88rem;
  color: var(--grey-500);
  text-decoration: none;
  padding: 5px 0;
  transition: all 0.2s ease;
  position: relative;
}
.lp-footer-link:hover {
  color: var(--green-600);
  padding-left: 6px;
}
.lp-footer-addr {
  font-size: 0.85rem;
  color: var(--grey-500);
  line-height: 1.6;
  margin-bottom: 6px;
}
.lp-footer-bottom {
  border-top: 1px solid var(--grey-200);
  margin-top: 0;
}
.lp-footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lp-footer-bottom p {
  font-size: 0.82rem;
  color: var(--grey-400);
}
.lp-footer-legal {
  display: flex;
  gap: 24px;
}
.lp-footer-legal a {
  font-size: 0.82rem;
  color: var(--grey-400);
  text-decoration: none;
  transition: color 0.2s ease;
}
.lp-footer-legal a:hover { color: var(--green-600); }

/* Footer CTA banner */
.lp-footer-cta-banner {
  background: linear-gradient(135deg, #1a2e1a 0%, #0f2a1f 100%);
  padding: 0;
  position: relative;
  overflow: hidden;
}
.lp-footer-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(126,217,87,0.12) 0%, transparent 60%),
              radial-gradient(circle at 80% 50%, rgba(126,217,87,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.lp-footer-cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
}
.lp-footer-cta-text h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 6px;
}
.lp-footer-cta-text p {
  font-size: 0.92rem;
  color: #94a3b8;
}
@media (max-width: 768px) {
  .lp-footer-cta-inner { flex-direction: column; text-align: center; padding: 36px 24px; }
}

/* Footer Swiss badge */
.lp-footer-badge {
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--grey-400);
  display: flex;
  align-items: center;
}

/* Footer social spacing */
.lp-footer-social {
  margin-top: 20px;
}

/* Footer dark mode */
body.dark-mode .lp-footer {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-top-color: rgba(255,255,255,0.06);
}
body.dark-mode .lp-footer-badge { color: #94a3b8; }
body.dark-mode .lp-footer-brand p { color: #94a3b8; }
body.dark-mode .lp-footer-addr { color: #94a3b8; }
body.dark-mode .lp-footer-col h4 { color: #e2e8f0; }
body.dark-mode .lp-footer-link { color: #94a3b8; }
body.dark-mode .lp-footer-link:hover { color: #7ed957; }
body.dark-mode .lp-footer-social a {
  background: #334155;
  border-color: rgba(255,255,255,0.08);
  color: #cbd5e1;
}
body.dark-mode .lp-footer-social a:hover {
  background: var(--green-600);
  color: white;
  border-color: var(--green-600);
}
body.dark-mode .lp-footer-bottom { border-top-color: rgba(255,255,255,0.06); }
body.dark-mode .lp-footer-bottom p { color: var(--grey-500); }
body.dark-mode .lp-footer-legal a { color: var(--grey-500); }

@media (max-width: 1024px) {
  .lp-footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .lp-footer-links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .lp-footer-inner { padding: 50px 20px 30px; }
  .lp-footer-links { grid-template-columns: 1fr 1fr; gap: 24px; }
  .lp-footer-bottom-inner { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 480px) {
  .lp-footer-links { grid-template-columns: 1fr; }
}

/* ============================================================
   SERVICES SECTION — CREATIVE UPGRADE
   ============================================================ */

/* Rotating gradient border on hover */
@keyframes serviceGradientRotate {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes serviceIconPulse {
  0%, 100% { transform: scale(1); }
  50%  { transform: scale(1.06); }
}

@keyframes serviceShimmer {
  0%   { left: -75%; }
  100% { left: 125%; }
}

@keyframes serviceFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* Card numbering */
.lp-services-grid {
  counter-reset: service-counter;
}
.lp-service-card {
  counter-increment: service-counter;
  will-change: transform, box-shadow;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

/* Numbered badge top-right */
.lp-service-card::after {
  content: counter(service-counter, decimal-leading-zero);
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 2.4rem;
  font-weight: 900;
  color: rgba(126,217,87,0.5);
  line-height: 1;
  pointer-events: none;
  transition: color 0.4s ease, transform 0.4s ease;
  z-index: 0;
}
.lp-service-card:hover::after {
  color: rgba(255,255,255,0.7) !important;
  transform: scale(1.15) translateY(-4px);
}

/* Animated gradient border wrap */
.lp-service-card::before {
  content: '' !important;
  position: absolute !important;
  inset: -2px !important;
  border-radius: 18px !important;
  background: linear-gradient(90deg, #7ed957, #6bc948, #7ed957, #6bc948, #7ed957) !important;
  background-size: 300% 300% !important;
  z-index: -1 !important;
  opacity: 0 !important;
  transition: opacity 0.5s ease !important;
  height: auto !important;
  transform: none !important;
}
.lp-service-card:hover::before {
  opacity: 1 !important;
  animation: serviceGradientRotate 3s ease infinite !important;
  transform: none !important;
}

/* Inner background needs to mask the gradient border */
.lp-service-card {
  background-clip: padding-box !important;
  z-index: 1;
}

/* Card fill green on hover — text turns white for contrast */
.lp-service-card:hover {
  background: #7ed957 !important;
}
.lp-service-card:hover h3,
.lp-service-card:hover p,
.lp-service-card:hover .lp-service-icon,
.lp-service-card:hover .lp-service-link {
  color: #fff !important;
}
body.dark-mode .lp-service-card:hover {
  background: #7ed957 !important;
}
body.dark-mode .lp-service-card:hover h3,
body.dark-mode .lp-service-card:hover p,
body.dark-mode .lp-service-card:hover .lp-service-icon,
body.dark-mode .lp-service-card:hover .lp-service-link {
  color: #fff !important;
}

/* Icon bounce on hover */
.lp-service-card:hover .lp-service-icon {
  animation: serviceIconPulse 0.8s ease forwards !important;
  transform: none !important;
}

/* Shimmer sweep across card on hover */
.lp-service-card > * {
  position: relative;
  z-index: 1;
}

/* Subtle background pattern (dots) */
.lp-services-grid::before {
  content: '';
  position: absolute;
  inset: -40px;
  background-image: radial-gradient(circle, rgba(126,217,87,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}
.lp-services-grid {
  position: relative;
}

/* Link arrow animation */
.lp-service-link {
  transition: color 0.2s, gap 0.3s, letter-spacing 0.3s !important;
}
.lp-service-card:hover .lp-service-link {
  gap: 8px !important;
  letter-spacing: 0.02em;
}

/* 3D tilt perspective container */
.lp-service-card[data-tilt] {
  transition: transform 0.15s ease-out, box-shadow 0.3s ease !important;
}

/* Dark mode service cards */
body.dark-mode .lp-service-card::after {
  color: rgba(126,217,87,0.5);
}
body.dark-mode .lp-service-card:hover::after {
  color: rgba(255,255,255,0.7) !important;
}

/* ============================================================
   COMPARE SECTION — CREATIVE UPGRADE
   ============================================================ */

/* VS Badge between columns */
.lp-compare-grid {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  position: relative;
}

@keyframes vsPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.3), 0 0 20px rgba(126,217,87,0.2); transform: translate(-50%, -50%) scale(1); }
  50%      { box-shadow: 0 0 0 12px rgba(255,255,255,0), 0 0 40px rgba(126,217,87,0.4); transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes vsGlow {
  0%, 100% { text-shadow: 0 0 10px rgba(255,255,255,0.3); }
  50%      { text-shadow: 0 0 25px rgba(255,255,255,0.6), 0 0 50px rgba(126,217,87,0.3); }
}

@keyframes vsPulseMobile {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.3), 0 0 20px rgba(126,217,87,0.2); transform: scale(1); }
  50%      { box-shadow: 0 0 0 12px rgba(255,255,255,0), 0 0 40px rgba(126,217,87,0.4); transform: scale(1.08); }
}

.lp-compare-vs-badge {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  color: #f1f5f9;
  letter-spacing: 0.05em;
  z-index: 10;
  animation: vsPulse 3s ease-in-out infinite;
  /* Overlay between columns on desktop */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

/* Column color tinting */
.lp-compare-bad {
  background: rgba(239,68,68,0.06) !important;
  box-shadow: inset 0 0 60px rgba(239,68,68,0.04);
  transition: all 0.4s ease;
}
.lp-compare-good {
  background: rgba(126,217,87,0.06) !important;
  box-shadow: inset 0 0 60px rgba(126,217,87,0.04);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* Sparkle overlay on good column */
@keyframes sparkleFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  50%  { transform: translate(15px, -30px) scale(1.5); opacity: 0.8; }
  90%  { opacity: 0; }
}
@keyframes sparkleFloat2 {
  0%, 100% { transform: translate(0, 0) scale(0.8); opacity: 0; }
  15%  { opacity: 0.9; }
  60%  { transform: translate(-20px, -25px) scale(1.3); opacity: 0.6; }
  95%  { opacity: 0; }
}
@keyframes sparkleFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1.2); opacity: 0; }
  20%  { opacity: 0.7; }
  55%  { transform: translate(10px, -35px) scale(0.9); opacity: 0.5; }
  90%  { opacity: 0; }
}

.lp-compare-good::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(126,217,87,0.6) 50%, transparent 100%),
    radial-gradient(2px 2px at 50% 60%, rgba(126,217,87,0.4) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 75% 20%, rgba(126,217,87,0.5) 50%, transparent 100%),
    radial-gradient(2px 2px at 85% 70%, rgba(126,217,87,0.3) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 30% 80%, rgba(126,217,87,0.5) 50%, transparent 100%),
    radial-gradient(2px 2px at 60% 90%, rgba(126,217,87,0.4) 50%, transparent 100%);
  animation: sparkleShimmer 4s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.lp-compare.visible .lp-compare-good::after {
  opacity: 1;
}

@keyframes sparkleShimmer {
  0%   { opacity: 0.3; filter: blur(0px); }
  50%  { opacity: 0.7; filter: blur(0.5px); }
  100% { opacity: 0.3; filter: blur(0px); }
}

/* SVG check/cross draw-in effect */
.lp-compare-col li svg {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  transition: stroke-dashoffset 0.6s ease;
}
.lp-compare.visible .lp-compare-col li svg {
  stroke-dashoffset: 0;
}
/* Stagger the SVG draw-in per li */
.lp-compare.visible .lp-compare-col li:nth-child(1) svg { transition-delay: 0.15s; }
.lp-compare.visible .lp-compare-col li:nth-child(2) svg { transition-delay: 0.25s; }
.lp-compare.visible .lp-compare-col li:nth-child(3) svg { transition-delay: 0.35s; }
.lp-compare.visible .lp-compare-col li:nth-child(4) svg { transition-delay: 0.45s; }
.lp-compare.visible .lp-compare-col li:nth-child(5) svg { transition-delay: 0.55s; }
.lp-compare.visible .lp-compare-col li:nth-child(6) svg { transition-delay: 0.65s; }
.lp-compare.visible .lp-compare-col li:nth-child(7) svg { transition-delay: 0.75s; }

/* Row hover: highlight corresponding row in other column */
.lp-compare-col ul li {
  padding: 8px 10px;
  border-radius: 8px;
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.3s ease !important;
  cursor: default;
}
.lp-compare-col ul li:hover {
  background: rgba(255,255,255,0.05);
}
.lp-compare-col.lp-row-dimmed ul li {
  opacity: 0.35;
}
.lp-compare-col.lp-row-dimmed ul li.lp-row-highlight {
  opacity: 1;
  background: rgba(255,255,255,0.06);
}

/* Bad column: red glow on header hover */
.lp-compare-bad .lp-compare-col-header:hover svg {
  filter: drop-shadow(0 0 8px rgba(248,113,113,0.5));
  transition: filter 0.3s ease;
}

/* Good column: green glow on header hover */
.lp-compare-good .lp-compare-col-header:hover svg {
  filter: drop-shadow(0 0 8px rgba(126,217,87,0.5));
  transition: filter 0.3s ease;
}

/* Compare column hover lift */
.lp-compare-col {
  transition: transform 0.4s cubic-bezier(.4,0,.2,1), box-shadow 0.4s ease !important;
  will-change: transform;
}
.lp-compare-good:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(126,217,87,0.12), inset 0 0 60px rgba(126,217,87,0.04) !important;
}
.lp-compare-bad:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(239,68,68,0.08), inset 0 0 60px rgba(239,68,68,0.04) !important;
}

/* Dark mode compare overrides (hardcoded hex) */
body.dark-mode .lp-compare-vs-badge {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-color: rgba(255,255,255,0.1);
  color: #e2e8f0;
}

/* Mobile: hide VS badge, adjust columns */
@media (max-width: 768px) {
  .lp-compare-vs-badge {
    width: 44px;
    height: 44px;
    font-size: 0.75rem;
    line-height: 44px;
  }
  .lp-service-card::after {
    font-size: 1.8rem;
    top: 12px;
    right: 14px;
  }
}

/* ============================================================
   GLOBAL MICRO-INTERACTIONS & CREATIVE EFFECTS
   ============================================================ */

/* --- Custom Cursor (Desktop only) --- DISABLED: too distracting ---
@media (min-width: 1025px) {
  .vemo-cursor {
    position: fixed;
    top: 0; left: 0;
    width: 12px; height: 12px;
    background: #7ed957;
    border-radius: 50%;
    pointer-events: none;
    z-index: 100000;
    mix-blend-mode: difference;
    transition: width 0.25s cubic-bezier(.4,0,.2,1),
                height 0.25s cubic-bezier(.4,0,.2,1),
                opacity 0.25s ease,
                background 0.25s ease;
    transform: translate(-50%, -50%);
    will-change: transform;
    opacity: 0;
  }
  .vemo-cursor.visible { opacity: 1; }
  .vemo-cursor.hovering {
    width: 40px; height: 40px;
    background: rgba(126,217,87,0.25);
    border: 2px solid #7ed957;
  }
  .vemo-cursor-trail {
    position: fixed;
    top: 0; left: 0;
    width: 6px; height: 6px;
    background: rgba(126,217,87,0.35);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    will-change: transform;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .vemo-cursor-trail.visible { opacity: 1; }
}
--- end disabled custom cursor --- */
.vemo-cursor, .vemo-cursor-trail { display: none !important; }

/* --- Ripple Effect on Buttons --- */
.btn {
  position: relative;
  overflow: hidden;
}
.btn .ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* --- Magnetic Button Hover --- */
@media (min-width: 1025px) {
  .btn-primary,
  .btn-outline,
  .lp-btn-glow {
    transition: transform 0.2s cubic-bezier(.4,0,.2,1),
                box-shadow 0.2s ease,
                background-position 0.5s ease,
                background 0.2s ease,
                border-color 0.2s ease,
                color 0.2s ease;
  }
}

/* --- Link Hover Underline Grow --- */
.lp-nav-link,
.lp-footer-link {
  position: relative;
  display: block;
}
.lp-nav-link::after,
.lp-footer-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: #7ed957;
  border-radius: 1px;
  transition: width 0.3s cubic-bezier(.4,0,.2,1);
}
.lp-nav-link:hover::after,
.lp-footer-link:hover::after {
  width: 100%;
}

/* --- Card Hover: scale + subtle tilt --- */
.lp-service-card,
.lp-blog-card,
.lp-testimonial-card {
  transition: transform 0.35s cubic-bezier(.4,0,.2,1),
              box-shadow 0.35s ease;
}
@media (min-width: 1025px) {
  .lp-blog-card:hover {
    transform: translateY(-6px) rotate(-0.5deg);
    box-shadow: 0 20px 40px rgba(126,217,87,0.1), 0 8px 16px rgba(0,0,0,0.06);
  }
  .lp-testimonial-card:hover {
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 16px 32px rgba(0,0,0,0.08);
  }
}

/* --- Section Tag Slide-in with green line --- */
.lp-section-tag {
  position: relative;
}
.lp-section-tag::before {
  content: '';
  position: absolute;
  left: -12px; top: 50%;
  width: 3px; height: 0;
  background: #7ed957;
  border-radius: 2px;
  transform: translateY(-50%);
  transition: height 0.5s cubic-bezier(.34,1.56,.64,1);
}
.lp-animate.in-view .lp-section-tag::before {
  height: 70%;
}

/* --- Scroll Progress Dots (right edge) --- */
.scroll-nav-dots {
  display: none !important; /* DISABLED: scroll nav dots removed */
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9998;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.scroll-nav-dots.visible { opacity: 1; }
.scroll-nav-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(126,217,87,0.2);
  border: 2px solid rgba(126,217,87,0.35);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.scroll-nav-dot:hover {
  background: rgba(126,217,87,0.5);
  transform: scale(1.3);
}
.scroll-nav-dot.active {
  background: #7ed957;
  border-color: #7ed957;
  transform: scale(1.3);
  box-shadow: 0 0 12px rgba(126,217,87,0.5);
}
.scroll-nav-dot .dot-tooltip {
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: #282f47;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}
.scroll-nav-dot:hover .dot-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
@media (max-width: 1024px) {
  .scroll-nav-dots { display: none; }
}

/* --- Sparkle / Celebration Effect --- */
.sparkle-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.sparkle {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #7ed957;
  animation: sparkleBurst 0.8s ease-out forwards;
}
@keyframes sparkleBurst {
  0% { transform: scale(0) translate(0,0); opacity: 1; }
  100% { transform: scale(1) translate(var(--sx), var(--sy)); opacity: 0; }
}

/* --- Confetti (Konami Easter Egg) --- */
.confetti-piece {
  position: fixed;
  width: 10px; height: 10px;
  z-index: 100001;
  animation: confettiFall linear forwards;
  pointer-events: none;
}
@keyframes confettiFall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* --- SVG Wave Dividers between sections --- */
.section-wave-divider {
  position: relative;
  width: 100%;
  height: 60px;
  overflow: hidden;
  margin: -1px 0;
  line-height: 0;
}
.section-wave-divider svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* --- Gradient shift on primary buttons --- */
.btn-primary {
  background-size: 200% 100%;
  background-image: linear-gradient(90deg, #5cb338 0%, #7ed957 50%, #5cb338 100%);
  background-position: 0% 0%;
}
.btn-primary:hover {
  background-position: 100% 0%;
}

/* --- Dark mode overrides for new effects (hardcoded hex) --- */
body.dark-mode .scroll-nav-dot .dot-tooltip {
  background: #e2e8f0;
  color: #1e293b;
}
body.dark-mode .scroll-nav-dot {
  background: rgba(126,217,87,0.15);
  border-color: rgba(126,217,87,0.3);
}
body.dark-mode .scroll-nav-dot.active {
  background: #7ed957;
  border-color: #7ed957;
}
/* DISABLED: custom cursor removed
body.dark-mode .vemo-cursor {
  background: #7ed957;
}
*/

/* ============================================================
   TESTIMONIALS: MARQUEE AUTO-SCROLL + GLASSMORPHISM
   ============================================================ */

/* Testimonials multi-row grid */
.lp-testimonials-rows {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}
.lp-testimonials-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) {
  .lp-testimonials-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .lp-testimonials-row { grid-template-columns: 1fr; }
}

/* Glassmorphism testimonial cards */
.lp-testimonial {
  background: rgba(255,255,255,0.7) !important;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.5) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.6);
}

body.dark-mode .lp-testimonial {
  background: rgba(30,41,59,0.7) !important;
  backdrop-filter: blur(16px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.4) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05) !important;
}

/* Avatar ring (subtle) */
.lp-testimonial-avatar {
  position: relative;
  z-index: 1;
}

/* Star cascade fall-in */
@keyframes starFallIn {
  0% { opacity: 0; transform: translateY(-18px) scale(0.3) rotate(-20deg); }
  60% { transform: translateY(2px) scale(1.15) rotate(3deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}

/* Responsive: vertical stack on mobile */
@media (max-width: 768px) {
  .lp-testimonials-grid {
    flex-direction: column !important;
    overflow: visible !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
    animation: none !important;
    width: auto !important;
  }
  .lp-testimonials-grid.marquee-active {
    animation: none !important;
    width: auto !important;
  }
  .marquee-active .lp-testimonial {
    min-width: unset;
    max-width: unset;
  }
}


/* ============================================================
   BOOKING SECTION: ANIMATED MESH BG + STROKE DRAW
   ============================================================ */

.lp-booking {
  position: relative;
  overflow: hidden;
}

/* Animated gradient mesh overlay */
.lp-booking::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 30%, rgba(126,217,87,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 80% 70%, rgba(59,130,246,0.1) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 50% 50%, rgba(139,92,246,0.08) 0%, transparent 70%);
  animation: bookingMeshFloat 8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

@keyframes bookingMeshFloat {
  0% { transform: scale(1) translate(0, 0); }
  33% { transform: scale(1.05) translate(20px, -10px); }
  66% { transform: scale(0.98) translate(-15px, 15px); }
  100% { transform: scale(1.03) translate(10px, -5px); }
}

.lp-booking > * {
  position: relative;
  z-index: 1;
}

/* Checkmark SVG stroke draw-in */
@keyframes checkDraw {
  0% { stroke-dashoffset: 24; opacity: 0.3; }
  50% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

.lp-booking.visible .lp-booking-list li svg polyline {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: checkDraw 0.6s ease forwards;
}
.lp-booking.visible .lp-booking-list li:nth-child(1) svg polyline { animation-delay: 0.2s; }
.lp-booking.visible .lp-booking-list li:nth-child(2) svg polyline { animation-delay: 0.4s; }
.lp-booking.visible .lp-booking-list li:nth-child(3) svg polyline { animation-delay: 0.6s; }
.lp-booking.visible .lp-booking-list li:nth-child(4) svg polyline { animation-delay: 0.8s; }

/* Booking list items stagger slide-in */
.lp-booking-list li {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.lp-booking.visible .lp-booking-list li {
  opacity: 1;
  transform: translateX(0);
}
.lp-booking.visible .lp-booking-list li:nth-child(1) { transition-delay: 0.15s; }
.lp-booking.visible .lp-booking-list li:nth-child(2) { transition-delay: 0.3s; }
.lp-booking.visible .lp-booking-list li:nth-child(3) { transition-delay: 0.45s; }
.lp-booking.visible .lp-booking-list li:nth-child(4) { transition-delay: 0.6s; }

/* "Kostenlos" last list item glow pulse */
/* kostenlosGlow removed */

/* Trust items fade-in stagger */
.lp-booking-trust-item {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.lp-booking.visible .lp-booking-trust-item {
  opacity: 1;
  transform: translateY(0);
}
.lp-booking.visible .lp-booking-trust-item:nth-child(1) { transition-delay: 0.8s; }
.lp-booking.visible .lp-booking-trust-item:nth-child(2) { transition-delay: 0.95s; }
.lp-booking.visible .lp-booking-trust-item:nth-child(3) { transition-delay: 1.1s; }

/* Calendly card entrance */
.lp-booking-calendly {
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  transition: opacity 0.7s ease 0.3s, transform 0.7s cubic-bezier(.4,0,.2,1) 0.3s;
}
.lp-booking.visible .lp-booking-calendly {
  opacity: 1;
  transform: translateY(0) scale(1);
}


/* ============================================================
   BLOG CARDS: ZOOM, SLIDE-IN BADGE, STAGGER, SHIMMER
   ============================================================ */

/* Image zoom on hover */
.lp-blog-img {
  transition: transform 0.6s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.lp-blog-card:hover .lp-blog-img {
  transform: scale(1.06);
}

/* Category badge slides in from left */
.lp-blog-category {
  transform: translateX(-20px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1), opacity 0.4s ease;
}
.lp-blog-card:hover .lp-blog-category {
  transform: translateX(0);
  opacity: 1;
}

/* Staggered reveal on scroll */
.lp-blog-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.4,0,.2,1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.lp-blog.visible .lp-blog-card {
  opacity: 1;
  transform: translateY(0);
}
.lp-blog.visible .lp-blog-card:nth-child(1) { transition-delay: 0.1s; }
.lp-blog.visible .lp-blog-card:nth-child(2) { transition-delay: 0.25s; }
.lp-blog.visible .lp-blog-card:nth-child(3) { transition-delay: 0.4s; }

/* Shimmer sweep on image hover */
.lp-blog-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.25) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.8s ease;
  z-index: 1;
  pointer-events: none;
}
.lp-blog-card:hover .lp-blog-img::after {
  transform: translateX(100%);
}

/* Enhanced hover glow */
.lp-blog-card:hover {
  border-color: rgba(126,217,87,0.4) !important;
  box-shadow: 0 24px 48px rgba(0,0,0,0.1), 0 0 0 1px rgba(126,217,87,0.15) !important;
}

/* Reading time animated clock icon */
.lp-blog-meta {
  position: relative;
  padding-left: 20px;
}
.lp-blog-meta::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
  opacity: 0.4;
}
.lp-blog-meta::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 50%;
  width: 2px;
  height: 5px;
  background: currentColor;
  transform-origin: bottom center;
  transform: translateY(-70%);
  opacity: 0.4;
  animation: clockTick 2s steps(12) infinite;
}
@keyframes clockTick {
  to { transform: translateY(-70%) rotate(360deg); }
}

/* Dark mode blog */
body.dark-mode .lp-blog-card:hover {
  border-color: rgba(126,217,87,0.3) !important;
  box-shadow: 0 24px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(126,217,87,0.1) !important;
}
body.dark-mode .lp-blog-img::after {
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.08) 50%, transparent 60%);
}


/* ============================================================
   REDUCED MOTION — respect user preference
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .lp-testimonials-grid.marquee-active,
  .lp-booking::after,
  .lp-testimonial-avatar::before,
  .lp-blog-meta::after {
    animation: none !important;
  }
  .lp-blog-card, .lp-booking-list li, .lp-booking-trust-item, .lp-booking-calendly {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* ============================================================
   TESTIMONIALS: CARD GRID + EXPANDABLE
   ============================================================ */

/* ── Testimonials Card Grid ── */
.lp-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 1024px) {
  .lp-testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .lp-testimonials-grid { grid-template-columns: 1fr; }
}

.lp-testimonial-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lp-testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
body.dark-mode .lp-testimonial-card {
  background: rgba(30,41,59,0.85);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
body.dark-mode .lp-testimonial-card:hover {
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.lp-testimonial-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.lp-testimonial-card-header .lp-testimonial-avatar {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  overflow: hidden;
}
.lp-testimonial-card-header .lp-testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lp-testimonial-card-header > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.lp-testimonial-card-header strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.dark-mode .lp-testimonial-card-header strong {
  color: #e2e8f0;
}
.lp-testimonial-card-header span {
  color: #f59e0b;
  font-size: 0.85rem;
  letter-spacing: 1px;
}
.lp-google-icon {
  flex-shrink: 0;
  margin-left: auto;
}

.lp-testimonial-card-text p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--dark-700);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.dark-mode .lp-testimonial-card-text p {
  color: #94a3b8;
}
.lp-testimonial-card-text.expanded p {
  -webkit-line-clamp: unset;
  overflow: visible;
}
.lp-testimonial-expand {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #7ed957;
  cursor: pointer;
  transition: color 0.2s;
}
.lp-testimonial-expand:hover {
  color: #6bc948;
}

/* Hidden testimonials for "mehr anzeigen" */
.lp-testimonial-hidden {
  display: none;
}
.lp-testimonials-grid.show-all .lp-testimonial-hidden {
  display: block;
}
.lp-testimonial-google-link {
  display: block;
  margin-top: 10px;
  font-size: 0.85rem;
  color: #4285F4;
  text-decoration: none;
  font-weight: 500;
}
.lp-testimonial-google-link:hover {
  text-decoration: underline;
}
.lp-testimonials-more {
  text-align: center;
  margin-top: 32px;
}
.lp-testimonials-more .btn {
  padding: 12px 32px;
  font-size: 0.95rem;
}


/* ============================================================
   BOOKING SECTION: ANIMATED MESH BG + STROKE DRAW
   ============================================================ */

.lp-booking {
  position: relative;
  overflow: hidden;
}

/* Animated gradient mesh overlay */
.lp-booking::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 30%, rgba(126,217,87,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 80% 70%, rgba(59,130,246,0.1) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 50% 50%, rgba(139,92,246,0.08) 0%, transparent 70%);
  animation: bookingMeshFloat 8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

@keyframes bookingMeshFloat {
  0% { transform: scale(1) translate(0, 0); }
  33% { transform: scale(1.05) translate(20px, -10px); }
  66% { transform: scale(0.98) translate(-15px, 15px); }
  100% { transform: scale(1.03) translate(10px, -5px); }
}

.lp-booking > * {
  position: relative;
  z-index: 1;
}

/* Checkmark SVG stroke draw-in */
@keyframes checkDraw {
  0% { stroke-dashoffset: 24; opacity: 0.3; }
  50% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

.lp-booking.visible .lp-booking-list li svg polyline {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: checkDraw 0.6s ease forwards;
}
.lp-booking.visible .lp-booking-list li:nth-child(1) svg polyline { animation-delay: 0.2s; }
.lp-booking.visible .lp-booking-list li:nth-child(2) svg polyline { animation-delay: 0.4s; }
.lp-booking.visible .lp-booking-list li:nth-child(3) svg polyline { animation-delay: 0.6s; }
.lp-booking.visible .lp-booking-list li:nth-child(4) svg polyline { animation-delay: 0.8s; }

/* Booking list items stagger slide-in */
.lp-booking-list li {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.lp-booking.visible .lp-booking-list li {
  opacity: 1;
  transform: translateX(0);
}
.lp-booking.visible .lp-booking-list li:nth-child(1) { transition-delay: 0.15s; }
.lp-booking.visible .lp-booking-list li:nth-child(2) { transition-delay: 0.3s; }
.lp-booking.visible .lp-booking-list li:nth-child(3) { transition-delay: 0.45s; }
.lp-booking.visible .lp-booking-list li:nth-child(4) { transition-delay: 0.6s; }

/* "Kostenlos" last list item glow pulse */
/* kostenlosGlow removed */

/* Trust items fade-in stagger */
.lp-booking-trust-item {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.lp-booking.visible .lp-booking-trust-item {
  opacity: 1;
  transform: translateY(0);
}
.lp-booking.visible .lp-booking-trust-item:nth-child(1) { transition-delay: 0.8s; }
.lp-booking.visible .lp-booking-trust-item:nth-child(2) { transition-delay: 0.95s; }
.lp-booking.visible .lp-booking-trust-item:nth-child(3) { transition-delay: 1.1s; }

/* Calendly card entrance */
.lp-booking-calendly {
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  transition: opacity 0.7s ease 0.3s, transform 0.7s cubic-bezier(.4,0,.2,1) 0.3s;
}
.lp-booking.visible .lp-booking-calendly {
  opacity: 1;
  transform: translateY(0) scale(1);
}


/* ============================================================
   BLOG CARDS: ZOOM, SLIDE-IN BADGE, STAGGER, SHIMMER
   ============================================================ */

/* Image zoom on hover */
.lp-blog-img {
  transition: transform 0.6s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.lp-blog-card:hover .lp-blog-img {
  transform: scale(1.06);
}

/* Category badge slides in from left */
.lp-blog-category {
  transform: translateX(-20px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1), opacity 0.4s ease;
}
.lp-blog-card:hover .lp-blog-category {
  transform: translateX(0);
  opacity: 1;
}

/* Staggered reveal on scroll */
.lp-blog-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.4,0,.2,1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.lp-blog.visible .lp-blog-card {
  opacity: 1;
  transform: translateY(0);
}
.lp-blog.visible .lp-blog-card:nth-child(1) { transition-delay: 0.1s; }
.lp-blog.visible .lp-blog-card:nth-child(2) { transition-delay: 0.25s; }
.lp-blog.visible .lp-blog-card:nth-child(3) { transition-delay: 0.4s; }

/* Shimmer sweep on image hover */
.lp-blog-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.25) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.8s ease;
  z-index: 1;
  pointer-events: none;
}
.lp-blog-card:hover .lp-blog-img::after {
  transform: translateX(100%);
}

/* Enhanced hover glow */
.lp-blog-card:hover {
  border-color: rgba(126,217,87,0.4) !important;
  box-shadow: 0 24px 48px rgba(0,0,0,0.1), 0 0 0 1px rgba(126,217,87,0.15) !important;
}

/* Reading time animated clock icon */
.lp-blog-meta {
  position: relative;
  padding-left: 20px;
}
.lp-blog-meta::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
  opacity: 0.4;
}
.lp-blog-meta::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 50%;
  width: 2px;
  height: 5px;
  background: currentColor;
  transform-origin: bottom center;
  transform: translateY(-70%);
  opacity: 0.4;
  animation: clockTick 2s steps(12) infinite;
}
@keyframes clockTick {
  to { transform: translateY(-70%) rotate(360deg); }
}

/* Dark mode blog */
body.dark-mode .lp-blog-card:hover {
  border-color: rgba(126,217,87,0.3) !important;
  box-shadow: 0 24px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(126,217,87,0.1) !important;
}
body.dark-mode .lp-blog-img::after {
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.08) 50%, transparent 60%);
}


/* ============================================================
   REDUCED MOTION — respect user preference
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .lp-testimonials-grid.marquee-active,
  .lp-booking::after,
  .lp-testimonial-avatar::before,
  .lp-blog-meta::after {
    animation: none !important;
  }
  .lp-blog-card, .lp-booking-list li, .lp-booking-trust-item, .lp-booking-calendly {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* --- Print: hide ALL effects --- */
@media print {
  .lp-hero-bg-effects, #heroParticles, .lp-scroll-progress,
  .lp-hero-floating, .lp-hero-img-ring, .lp-hero-img-bg,
  .lp-hero-img-glow, .vemo-cursor, .vemo-cursor-trail,
  .scroll-nav-dots, .section-wave-divider,
  .confetti-piece, .sparkle-container { display: none !important; }
}

/* --- Print: hide ALL effects --- */
@media print {
  .lp-hero-bg-effects, #heroParticles, .lp-scroll-progress,
  .lp-hero-floating, .lp-hero-img-ring, .lp-hero-img-bg,
  .lp-hero-img-glow, .vemo-cursor, .vemo-cursor-trail,
  .scroll-nav-dots, .section-wave-divider,
  .confetti-piece, .sparkle-container { display: none !important; }
}



/* HONORARBERATUNG PORTFOLIO — Redesigned Kundenansicht v2 */

#kundePortfolioView {
  --ka-bg: #f8fafc;
  --ka-card: #ffffff;
  --ka-text: #282f47;
  --ka-text-muted: #6b7080;
  --ka-accent: #7ed957;
  --ka-accent-hover: #6ac66e;
  --ka-accent-light: rgba(126,217,87,0.12);
  --ka-accent-border: rgba(126,217,87,0.3);
  --ka-border: rgba(0,0,0,0.06);
  --ka-shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --ka-shadow: 0 4px 24px rgba(0,0,0,0.06);
  --ka-shadow-lg: 0 4px 16px rgba(0,0,0,0.08);
  --ka-radius: 16px;
  --ka-radius-sm: 12px;
  color: var(--ka-text);
  font-family: inherit;
}


/* ---- Animations ---- */
@keyframes kaDonutFadeIn { from { opacity:0; transform:scale(0.85); } to { opacity:1; transform:scale(1); } }
@keyframes kaSlideUp { from { opacity:0; transform:translateY(24px) scale(0.96); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes kaPulse { 0%,100% { box-shadow:0 0 0 0 rgba(126,217,87,0.3); } 50% { box-shadow:0 0 0 8px rgba(126,217,87,0); } }
@keyframes kaFadeSlide { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

/* ALL elements inside kundePortfolioView are always visible — no hiding at all */
#kundePortfolioView .ka-reveal { opacity:1 !important; transform:none !important; }
#kundePortfolioView .ka-stagger { opacity:1 !important; animation:none !important; }
/* ---- Hero Section ---- */
#kundePortfolioView .ka-hero {
  background: #f8faf8;
  border-radius: 12px;
  padding: 28px 24px;
  margin-bottom: 24px;
  border: 1px solid var(--ka-border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
#kundePortfolioView .ka-hero-inner { display:flex; flex-wrap:wrap; gap:24px; align-items:center; justify-content:space-between; }
#kundePortfolioView .ka-hero-title { margin:0 0 4px; font-size:1.3rem; font-weight:700; letter-spacing:-0.01em; color:var(--ka-text); }
#kundePortfolioView .ka-hero-sub { margin:0 0 8px; color:var(--ka-text-muted); font-size:0.92rem; }
#kundePortfolioView .ka-hero-meta { margin:0; color:var(--ka-text-muted); font-size:0.82rem; font-weight:500; }

/* ---- Main layout ---- */
#kundePortfolioView .ka-main { display:grid; gap:24px; }

/* ---- Sections ---- */
#kundePortfolioView .ka-section {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--ka-border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
#kundePortfolioView .ka-section-title { margin:0 0 4px; font-size:1.1rem; font-weight:700; color:var(--ka-text); }
#kundePortfolioView .ka-section-sub { margin:0 0 20px; color:var(--ka-text-muted); font-size:0.82rem; line-height:1.5; }
#kundePortfolioView .ka-legal-note { margin:16px 0 0; color:var(--ka-text-muted); font-size:0.82rem; line-height:1.5; }

/* ---- Empty state ---- */
#kundePortfolioView .ka-empty { text-align:center; padding:32px 16px; color:var(--ka-text-muted); font-size:14px; }
/* ---- Card base ---- */
#kundePortfolioView .ka-card { background:#fff; border-radius:12px; padding:24px; border:1px solid var(--ka-border); box-shadow:0 2px 12px rgba(0,0,0,0.04); transition:all 0.2s ease; }
#kundePortfolioView .ka-card:hover { transform:translateY(-2px); box-shadow:0 4px 16px rgba(0,0,0,0.08); }

/* ---- Buttons ---- */
#kundePortfolioView .ka-btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:10px 16px; border-radius:10px; font-weight:700; font-size:13px; text-decoration:none; cursor:pointer; border:none; transition:all 0.2s ease; line-height:1.2; white-space:nowrap; }
#kundePortfolioView .ka-btn-primary { background:#7ed957; color:#fff; }
#kundePortfolioView .ka-btn-primary:hover { background:#6ac66e; }
#kundePortfolioView .ka-btn-secondary { background:var(--ka-card); color:var(--ka-text); border:1px solid #dfe3ec; box-shadow:var(--ka-shadow-sm); }
#kundePortfolioView .ka-btn-secondary:hover { background:#f1f5fb; border-color:#c5ccd8; transform:translateY(-1px); }
#kundePortfolioView .ka-btn-ghost { background:rgba(0,0,0,0.03); color:var(--ka-text); border:1px solid var(--ka-border); padding:8px 12px; font-size:12px; }
#kundePortfolioView .ka-btn-ghost:hover { background:rgba(0,0,0,0.06); }
#kundePortfolioView .ka-disabled { opacity:0.5; pointer-events:none; border-style:dashed; }
#kundePortfolioView .ka-btn:focus-visible { outline:2px solid var(--ka-accent); outline-offset:2px; }

/* ---- Mantel Grid ---- */
#kundePortfolioView .ka-mantel-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:16px; }
#kundePortfolioView .ka-mantel-card { position:relative; cursor:pointer; border:2px solid rgba(0,0,0,0.06); opacity:0.8; transition:all 0.2s ease; }
#kundePortfolioView .ka-mantel-card:hover { opacity:0.95; box-shadow:0 4px 16px rgba(0,0,0,0.08); }
#kundePortfolioView .ka-mantel-card.active { border:2px solid #7ed957; box-shadow:0 0 0 3px rgba(126,217,87,0.12); background:#fafefa; opacity:1; }
#kundePortfolioView .ka-mantel-top { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:12px; min-height:40px; }
#kundePortfolioView .ka-mantel-logo { width:48px; height:48px; object-fit:cover; border-radius:12px; background:#fff; border:1px solid var(--ka-border); padding:4px; box-shadow:var(--ka-shadow-sm); }
#kundePortfolioView .ka-new-badge { background:rgba(251,146,60,0.15); color:#9a3412; font-size:10px; font-weight:700; padding:4px 10px; border-radius:999px; text-transform:uppercase; letter-spacing:0.5px; animation:kaPulse 2s infinite; border:1px solid rgba(251,146,60,0.3); }
#kundePortfolioView .ka-active-badge { background:var(--ka-accent-light); color:#1a6b2a; font-size:10px; font-weight:700; padding:4px 10px; border-radius:999px; text-transform:uppercase; letter-spacing:0.5px; border:1px solid var(--ka-accent-border); }
#kundePortfolioView .ka-mantel-title { margin:0 0 6px; font-size:16px; font-weight:700; color:var(--ka-text); line-height:1.3; }
#kundePortfolioView .ka-mantel-desc { margin:0 0 12px; color:var(--ka-text-muted); font-size:13px; line-height:1.5; }
#kundePortfolioView .ka-mantel-meta { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:12px; }
#kundePortfolioView .ka-meta-item { background:#f7f9fb; border:1px solid #edf0f5; border-radius:10px; padding:10px 12px; display:flex; flex-direction:column; gap:2px; }
#kundePortfolioView .ka-meta-label { font-size:11px; color:var(--ka-text-muted); font-weight:600; text-transform:uppercase; letter-spacing:0.3px; }
#kundePortfolioView .ka-meta-value { font-size:13px; font-weight:700; color:var(--ka-text); }

/* Mantel details (expandable) */
#kundePortfolioView .ka-mantel-details { transition:max-height 0.4s ease; }
#kundePortfolioView .ka-details-inner { padding:12px 0 0; }
#kundePortfolioView .ka-pros h4, #kundePortfolioView .ka-cons h4 { display:flex; align-items:center; gap:6px; font-size:13px; font-weight:700; margin:0 0 8px; }
#kundePortfolioView .ka-pros ul, #kundePortfolioView .ka-cons ul { list-style:none; padding:0; margin:0 0 12px; display:grid; gap:6px; }
#kundePortfolioView .ka-pro { background:rgba(34,197,94,0.08); border:1px solid rgba(34,197,94,0.2); color:#166534; border-radius:8px; padding:8px 10px; font-size:12px; }
#kundePortfolioView .ka-con { background:rgba(239,68,68,0.06); border:1px solid rgba(239,68,68,0.15); color:#991b1b; border-radius:8px; padding:8px 10px; font-size:12px; }

/* Mantel actions */
#kundePortfolioView .ka-mantel-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:4px; }
#kundePortfolioView .ka-mantel-actions .ka-btn { width:100%; text-align:center; }
#kundePortfolioView .ka-is-new { border-color:rgba(251,146,60,0.5) !important; }
@media (max-width:520px) { #kundePortfolioView .ka-mantel-actions { grid-template-columns:1fr; } #kundePortfolioView .ka-mantel-meta { grid-template-columns:1fr; } }
/* ---- Tab Bar with sliding indicator ---- */
#kundePortfolioView .ka-tab-bar { display:flex; position:relative; background:rgba(0,0,0,0.04); border-radius:10px; padding:3px; gap:2px; margin-bottom:16px; flex-wrap:wrap; }
#kundePortfolioView .ka-tab-indicator { position:absolute; bottom:3px; top:3px; background:var(--ka-accent-light); border-radius:8px; transition:left 0.35s cubic-bezier(0.4,0,0.2,1), width 0.35s cubic-bezier(0.4,0,0.2,1); pointer-events:none; z-index:0; }
#kundePortfolioView .ka-tab { position:relative; z-index:1; border:none; background:transparent; color:var(--ka-text-muted); padding:8px 14px; border-radius:8px; cursor:pointer; font-weight:600; font-size:13px; transition:color 0.2s ease; display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
#kundePortfolioView .ka-tab.active { color:var(--ka-text); }
#kundePortfolioView .ka-tab:hover { color:var(--ka-text); }

/* ---- Portfolio list & shells ---- */
#kundePortfolioView .ka-portfolio-list { display:grid; gap:20px; }
#kundePortfolioView .ka-portfolio-shell { background:var(--ka-card); border:1px solid var(--ka-border); border-radius:var(--ka-radius); padding:24px; box-shadow:var(--ka-shadow); }
#kundePortfolioView .ka-portfolio-header { display:flex; align-items:center; gap:12px; margin-bottom:20px; flex-wrap:wrap; }
#kundePortfolioView .ka-portfolio-title { margin:0; font-size:17px; font-weight:700; color:var(--ka-text); }
#kundePortfolioView .ka-portfolio-chip { display:inline-flex; align-items:center; padding:5px 12px; border-radius:999px; background:rgba(126,217,87,0.1); color:var(--ka-text); font-weight:600; font-size:0.82rem; border:1px solid var(--ka-border); }

/* ---- SVG Donut Chart ---- */
#kundePortfolioView .ka-chart-section { display:grid; grid-template-columns:minmax(240px,280px) 1fr; gap:24px; align-items:center; padding:20px; background:#f9fafb; border:1px solid #edf0f5; border-radius:12px; margin-bottom:20px; }
#kundePortfolioView .ka-chart-visual { position:relative; display:grid; place-items:center; }
#kundePortfolioView .ka-donut-wrap { position:relative; width:220px; height:220px; }
#kundePortfolioView .ka-donut-svg { width:220px; height:220px; }
#kundePortfolioView .ka-donut-segment { transition:opacity 0.2s ease, transform 0.15s ease; cursor:pointer; }
#kundePortfolioView .ka-donut-segment.ka-segment-active { opacity:1 !important; filter:brightness(1.08); }
#kundePortfolioView .ka-donut-segment.ka-segment-dim { opacity:0.45; }
#kundePortfolioView .ka-donut-center { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:100px; height:100px; display:flex; flex-direction:column; align-items:center; justify-content:center; background:rgba(255,255,255,0.95); border-radius:50%; box-shadow:0 4px 16px rgba(0,0,0,0.06); pointer-events:none; }
#kundePortfolioView .ka-donut-center-label { font-size:10px; text-transform:uppercase; letter-spacing:0.5px; color:var(--ka-text-muted); font-weight:600; }
#kundePortfolioView .ka-donut-center-value { font-size:16px; font-weight:800; color:var(--ka-text); }
#kundePortfolioView .ka-donut-tooltip { position:absolute; bottom:-8px; left:50%; transform:translateX(-50%); background:var(--ka-card); border:1px solid var(--ka-border); border-radius:8px; padding:6px 12px; font-size:12px; font-weight:600; display:flex; align-items:center; gap:6px; box-shadow:var(--ka-shadow); opacity:0; pointer-events:none; transition:opacity 0.2s ease; white-space:nowrap; z-index:5; }
#kundePortfolioView .ka-donut-tooltip.visible { opacity:1; }
#kundePortfolioView .ka-tt-dot { width:10px; height:10px; border-radius:50%; flex-shrink:0; }

/* ---- Chart Legend ---- */
#kundePortfolioView .ka-chart-legend-col { display:grid; gap:12px; }
#kundePortfolioView .ka-chart-legend { display:grid; gap:6px; }
#kundePortfolioView .ka-legend-item { display:flex; align-items:center; justify-content:space-between; padding:8px 12px; background:#fff; border:1px solid #edf0f5; border-radius:8px; font-size:12px; transition:all 0.2s ease; }
#kundePortfolioView .ka-legend-item:hover { border-color:var(--ka-accent-border); background:#f8fdf6; }
#kundePortfolioView .ka-legend-left { display:flex; align-items:center; gap:8px; }
#kundePortfolioView .ka-legend-dot { width:10px; height:10px; border-radius:50%; flex-shrink:0; }
#kundePortfolioView .ka-legend-pct { font-weight:700; color:var(--ka-text); }
#kundePortfolioView .ka-portfolio-meta { margin:0; color:var(--ka-text-muted); font-size:13px; line-height:1.5; }

/* ---- Fund Cards ---- */
#kundePortfolioView .ka-funds-grid { display:grid; gap:14px; }
#kundePortfolioView .ka-fund-card { position:relative; background:var(--ka-card); border:1px solid var(--ka-border); border-radius:var(--ka-radius-sm); overflow:hidden; transition:all 0.3s ease; }
#kundePortfolioView .ka-fund-card:hover { transform:translateY(-2px); box-shadow:0 8px 24px rgba(0,0,0,0.08); border-color:var(--fund-color, var(--ka-accent-border)); }
#kundePortfolioView .ka-fund-color-bar { height:4px; width:100%; }
#kundePortfolioView .ka-fund-body { padding:16px 18px; }
#kundePortfolioView .ka-fund-header { margin-bottom:8px; }
#kundePortfolioView .ka-fund-header h4 { margin:0 0 8px; font-size:15px; font-weight:700; color:var(--ka-text); }
#kundePortfolioView .ka-fund-badges { display:flex; gap:6px; flex-wrap:wrap; }
#kundePortfolioView .ka-fund-badge { display:inline-flex; padding:4px 10px; border-radius:999px; font-size:11px; font-weight:600; }
#kundePortfolioView .ka-fund-badge-muted { background:#f1f3f8; color:var(--ka-text-muted); border:1px solid #e5e8ef; }
#kundePortfolioView .ka-fund-desc { margin:0 0 10px; color:var(--ka-text-muted); font-size:13px; line-height:1.5; }
#kundePortfolioView .ka-fund-alloc-row { display:flex; justify-content:space-between; align-items:center; padding:8px 12px; background:#f7f9fb; border-radius:8px; border:1px solid #edf0f5; margin-bottom:10px; font-size:13px; }
#kundePortfolioView .ka-fund-alloc-val { font-weight:800; color:var(--ka-text); }
#kundePortfolioView .ka-fund-actions { display:flex; gap:8px; flex-wrap:wrap; }
#kundePortfolioView .ka-fund-details { background:#f9fafb; border-radius:10px; border:1px solid #edf0f5; padding:0; margin-top:10px; }
#kundePortfolioView .ka-fund-details.ka-expanded { padding:14px; }
#kundePortfolioView .ka-fund-stats-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:8px; margin-bottom:10px; }
#kundePortfolioView .ka-fund-stat { display:flex; flex-direction:column; gap:2px; padding:10px 12px; background:#fff; border:1px solid #edf0f5; border-radius:8px; }
#kundePortfolioView .ka-fund-stat-label { font-size:11px; color:var(--ka-text-muted); font-weight:600; }
#kundePortfolioView .ka-fund-stat-val { font-size:13px; font-weight:700; color:var(--ka-text); }
#kundePortfolioView .ka-fund-description { color:var(--ka-text-muted); font-size:13px; line-height:1.5; background:#fff; border:1px solid #edf0f5; border-radius:8px; padding:10px 12px; }
#kundePortfolioView .ka-legal-micro { margin:10px 0 0; color:var(--ka-text-muted); font-size:10px; line-height:1.4; opacity:0.7; }

/* ---- Ablauf ---- */
#kundePortfolioView .ka-ablauf-shell { background:#fff; border:1px solid #edf0f5; border-radius:12px; padding:16px; box-shadow:0 2px 12px rgba(0,0,0,0.04); }
#kundePortfolioView .ka-ablauf-scroll { overflow-x:auto; display:grid; gap:8px; }
#kundePortfolioView .ka-ablauf-head, #kundePortfolioView .ka-ablauf-row { display:grid; align-items:stretch; gap:6px; min-width:720px; }
#kundePortfolioView .ka-ablauf-head { background:#f3f5f8; border:1px solid #e2e6ed; border-radius:8px; font-weight:700; font-size:0.82rem; letter-spacing:0.2px; color:#0f213c; }
#kundePortfolioView .ka-ablauf-body { display:grid; gap:6px; }
#kundePortfolioView .ka-ablauf-row { background:#fff; border:1px solid #edf0f5; border-radius:10px; transition:transform 0.15s ease, box-shadow 0.2s ease; }
#kundePortfolioView .ka-ablauf-row:hover { transform:translateY(-1px); box-shadow:0 6px 20px rgba(0,0,0,0.06); }
#kundePortfolioView .ka-ablauf-cell { padding:10px 12px; text-align:center; font-size:13px; color:var(--ka-text); }
#kundePortfolioView .ka-ablauf-label { text-align:left; font-weight:700; color:var(--ka-text); }
#kundePortfolioView .ka-ablauf-value span { display:block; background:#f8fafc; border:1px solid #edf0f5; border-radius:8px; padding:6px 8px; font-variant-numeric:tabular-nums; }
#kundePortfolioView .ka-ablauf-age { font-size:11px; color:var(--ka-text-muted); }
#kundePortfolioView .ka-ablauf-age.ka-ablauf-pension { color:#7ed957; font-weight:700; }

/* ---- Advisors ---- */
#kundePortfolioView .ka-advisor-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:16px; }
#kundePortfolioView .ka-advisor-card { display:flex; flex-direction:column; gap:12px; }
#kundePortfolioView .ka-advisor-card:hover { border-color:var(--ka-accent-border); }
#kundePortfolioView .ka-advisor-header { display:flex; gap:14px; align-items:center; }
#kundePortfolioView .ka-avatar { width:64px; height:64px; border-radius:50%; background-size:cover; background-position:center; flex-shrink:0; border:2px solid var(--ka-accent-light); box-shadow:var(--ka-shadow-sm); }
#kundePortfolioView .ka-advisor-info h4 { margin:0 0 4px; font-size:15px; font-weight:700; }
#kundePortfolioView .ka-role-badge { display:inline-flex; padding:3px 10px; background:var(--ka-accent-light); color:#1a6b2a; border-radius:999px; font-size:11px; font-weight:700; border:1px solid var(--ka-accent-border); }
#kundePortfolioView .ka-advisor-desc { margin:0; color:var(--ka-text-muted); font-size:13px; line-height:1.5; }
#kundePortfolioView .ka-advisor-quals { margin-top:auto; }
#kundePortfolioView .ka-qual-group h5 { margin:0 0 4px; font-size:11px; text-transform:uppercase; letter-spacing:0.4px; color:var(--ka-text-muted); font-weight:700; }
#kundePortfolioView .ka-qual-group ul { margin:0 0 10px 14px; padding:0; color:var(--ka-text-muted); font-size:12px; display:grid; gap:3px; }
#kundePortfolioView .ka-btn-calendly { width:100%; justify-content:center; margin-top:auto; }

/* ---- Footer ---- */
#kundePortfolioView .ka-footer { margin-top:24px; }
#kundePortfolioView .ka-footer-inner { background:#f9fafb; border:1px solid var(--ka-border); border-radius:12px; padding:20px 24px; }
#kundePortfolioView .ka-footer-disclaimer { display:flex; gap:12px; align-items:flex-start; color:var(--ka-text-muted); font-size:12px; line-height:1.6; }
#kundePortfolioView .ka-footer-disclaimer svg { flex-shrink:0; color:var(--ka-text-muted); margin-top:2px; }
#kundePortfolioView .ka-footer-disclaimer p { margin:0 0 4px; }
#kundePortfolioView .ka-footer-meta { display:flex; justify-content:space-between; align-items:center; margin-top:12px; padding-top:12px; border-top:1px solid #edf0f5; font-size:11px; color:var(--ka-text-muted); font-weight:600; }

/* ---- Responsive ---- */
@media (max-width:720px) {
  #kundePortfolioView .ka-chart-section { grid-template-columns:1fr; }
  #kundePortfolioView .ka-hero-inner { flex-direction:column; }
}
@media (max-width:520px) {
  #kundePortfolioView .ka-hero { padding:20px 16px; }
  #kundePortfolioView .ka-hero-meta { font-size:0.82rem; }
  #kundePortfolioView .ka-section { padding:16px; }
  #kundePortfolioView .ka-mantel-grid { grid-template-columns:1fr; }
  #kundePortfolioView .ka-advisor-grid { grid-template-columns:1fr; }
}

/* Mantel buttons always clickable */
#kundePortfolioView .ka-mantel-card .ka-mantel-actions,
#kundePortfolioView .ka-mantel-card .ka-mantel-actions .ka-btn {
  filter:none !important; opacity:1 !important; user-select:auto !important; cursor:pointer !important;
}



/* ============================================================
   MOBILE OPTIMIZATION v4 — Confident, Clean, Polished
   2026-03-21 — Big typography, clean layout, professional feel
   Design-Philosophie: Layout ändern, nicht Schriften schrumpfen
   ============================================================ */

/* ---- TABLET (max 1024px) ---- */
@media (max-width: 1024px) {
  .lp-services-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .lp-tools-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .lp-blog-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ---- MOBILE (max 768px) ---- */
@media (max-width: 768px) {

  /* === MOBILE MENU FIX === */
  .public-header {
    z-index: 10000 !important;
  }
  .public-header.nav-open {
    position: fixed !important;
    top: 0; left: 0; right: 0;
    max-height: 100vh;
    overflow-y: auto;
    background: #fff !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  }
  body.dark-mode .public-header.nav-open {
    background: #1e293b !important;
  }

  /* === ANNOUNCEMENT: hide on mobile — redundant with trust === */
  .lp-announcement { display: none !important; }

  /* === GLOBAL SECTIONS === */
  .lp-section-header { margin-bottom: 28px; }
  .lp-section-header h2 { font-size: 1.5rem !important; font-weight: 700 !important; line-height: 1.25 !important; }
  .lp-section-header p { font-size: 0.9rem; line-height: 1.6; }
  .lp-section-tag { font-size: 0.72rem; padding: 5px 14px; margin-bottom: 12px; }
  .lp-section-inner { padding: 0 24px; }

  /* === HERO — bold, confident, clean === */
  .lp-hero { padding: 28px 24px 0 !important; overflow: hidden !important; }
  .lp-hero-content { gap: 40px !important; align-items: center !important; }
  .lp-hero-text h1 {
    font-size: 1.75rem !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
  }
  .lp-hero-text > p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 16px !important;
    color: var(--grey-500);
  }
  .lp-hero-usps { margin: 12px 0 0; gap: 8px; }
  .lp-hero-usps li { font-size: 0.88rem !important; gap: 8px; }
  .lp-hero-usps li svg { width: 18px; height: 18px; flex-shrink: 0; }
  .lp-hero-actions { gap: 12px; margin-top: 12px; }
  .lp-hero-actions .btn {
    padding: 14px 24px;
    font-size: 0.92rem;
    border-radius: 14px;
    font-weight: 600;
  }
  /* Hero trust — single line, compact */
  .lp-hero-trust-mini {
    margin-top: 16px !important;
    padding-top: 16px !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: wrap;
    gap: 8px;
  }
  .lp-hero-trust-mini > span { font-size: 0.82rem; font-weight: 600; }
  .lp-hero-trust-stars svg { width: 14px; height: 14px; }
  .lp-hero-trust-google img,
  .lp-hero-trust-google svg { width: 20px !important; height: 20px !important; }
  /* Hero image */
  .lp-hero-img-wrap { max-width: 280px !important; margin: 32px auto 0; padding-bottom: 20px; }
  .lp-hero-img-bg { width: 250px !important; height: 250px !important; }
  .lp-hero-img-glow { width: 230px !important; }
  .lp-hero-img-ring { display: block !important; width: 240px !important; height: 240px !important; }
  .lp-hero-team-img { margin-bottom: -20px !important; }
  .lp-hero-floating { display: flex !important; opacity: 0.6 !important; transform: scale(0.75) !important; }
  .lp-hero-bg-effects { display: block !important; opacity: 1 !important; }
  .hero-shooting-star { display: none !important; }

  /* === STATS BAR — clean, readable === */
  .lp-stats { padding: 18px 24px !important; }
  .lp-stats-inner {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    justify-items: center;
  }
  .lp-stat {
    min-width: 0 !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
    text-align: center;
  }
  .lp-stat-divider { display: none !important; }
  .lp-stat-icon { width: 32px !important; height: 32px !important; }
  .lp-stat-icon svg { width: 15px !important; height: 15px !important; }
  .lp-stat-number { font-size: 1.05rem !important; font-weight: 700 !important; }
  .lp-stat-label { font-size: 0.62rem !important; text-transform: uppercase; letter-spacing: 0.03em; opacity: 0.85; }

  /* === SERVICES — 2-col, professional === */
  .lp-services { padding: 44px 0 !important; }
  .lp-services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
    margin-top: 24px !important;
  }
  .lp-service-card { padding: 20px !important; border-radius: 16px !important; }
  .lp-service-icon { width: 44px !important; height: 44px !important; margin-bottom: 12px; border-radius: 12px; }
  .lp-service-card h3 { font-size: 0.95rem !important; font-weight: 700; margin-bottom: 6px; }
  .lp-service-card p { font-size: 0.82rem !important; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .lp-service-link { font-size: 0.8rem; margin-top: 10px; }
  .lp-service-card::after { font-size: 1.4rem !important; top: 12px !important; right: 14px !important; opacity: 0.25; }

  /* === COMPARISON — clean === */
  .lp-compare { padding: 44px 0 !important; }
  .lp-compare-col { padding: 20px !important; border-radius: 16px; }
  .lp-compare-col-header h3 { font-size: 1.05rem; }
  .lp-compare-col ul li { padding: 10px 0 !important; font-size: 0.88rem; }
  .lp-compare-col ul li strong { font-size: 0.88rem; }
  .lp-compare-col ul li span { font-size: 0.78rem; line-height: 1.5; }
  .lp-compare-vs-badge {
    width: 44px !important; height: 44px !important;
    font-size: 0.75rem !important; line-height: 44px !important;
  }

  /* === TEAM — 2-col, polished === */
  .lp-team { padding: 44px 0 !important; }
  .lp-team-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }
  .lp-team-photo { height: 200px !important; }
  .lp-team-info { padding: 16px !important; }
  .lp-team-info h3 { font-size: 0.92rem !important; }
  .lp-team-info .lp-team-role { font-size: 0.75rem; }
  .lp-team-info p { font-size: 0.8rem !important; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .lp-team-more { font-size: 0.75rem; margin-top: 6px; }
  .lp-team-card { border-radius: 16px !important; }

  /* === TOOLS — 2-col, clean cards === */
  .lp-tools { padding: 44px 0 !important; }
  .lp-tools-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }
  .lp-tool-card { padding: 18px !important; gap: 10px !important; border-radius: 16px !important; }
  .lp-tool-icon { width: 40px !important; height: 40px !important; border-radius: 12px; }
  .lp-tool-icon svg { width: 20px !important; height: 20px !important; }
  .lp-tool-card h3 { font-size: 0.92rem !important; }
  .lp-tool-card p { font-size: 0.78rem !important; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .lp-tool-link { font-size: 0.78rem; }

  /* === BOOKING === */
  .lp-booking { padding: 44px 24px !important; }
  .lp-booking-inner h2,
  .lp-booking-split h2 { font-size: 1.4rem !important; }
  .lp-booking-info p { font-size: 0.9rem; }
  .lp-booking-features li { font-size: 0.88rem; padding: 8px 0; }

  /* === TESTIMONIALS === */
  .lp-testimonials { padding: 44px 0 !important; }
  .lp-testimonials-rows { gap: 14px !important; margin-top: 24px !important; }
  .lp-testimonials-row { gap: 14px !important; }
  .lp-testimonial { padding: 20px !important; border-radius: 16px !important; }
  .lp-testimonial-stars { font-size: 0.92rem !important; margin-bottom: 10px !important; }
  .lp-testimonial-text { font-size: 0.88rem !important; line-height: 1.6 !important; }
  .lp-testimonial-author { margin-top: 12px !important; gap: 10px !important; }
  .lp-testimonial-avatar { width: 34px !important; height: 34px !important; }
  .lp-testimonial-name { font-size: 0.82rem !important; font-weight: 600; }
  .lp-testimonial::before { font-size: 5rem !important; }

  /* === KUNDENTOOL === */
  .lp-kundentool { padding: 44px 0 !important; }
  .lp-kundentool-content { gap: 28px !important; margin-top: 24px !important; }
  .lp-kundentool-login { padding: 28px !important; border-radius: 18px; }
  .lp-kundentool-login h3 { font-size: 1.15rem; }
  .lp-kundentool-login p { font-size: 0.88rem; margin-bottom: 18px; }

  /* === COURSES === */
  .lp-courses { padding: 44px 0 !important; }

  /* === BLOG === */
  .lp-blog { padding: 44px 0 !important; }
  .lp-blog-grid { gap: 16px !important; margin-top: 24px !important; }
  .lp-blog-img { height: 140px !important; }
  .lp-blog-body { padding: 18px !important; }
  .lp-blog-body h3 { font-size: 0.95rem !important; margin-bottom: 6px; line-height: 1.3; }
  .lp-blog-body p { font-size: 0.82rem !important; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .lp-blog-meta { font-size: 0.75rem !important; margin-top: 10px; }
  .lp-blog-category { font-size: 0.7rem; padding: 4px 10px; }
  .lp-blog-card { border-radius: 16px !important; }

  /* === FAQ === */
  .lp-faq { padding: 44px 0 !important; }
  .lp-faq-categories { gap: 8px; margin-bottom: 24px; }
  .lp-faq-cat-btn { padding: 7px 16px; font-size: 0.82rem; }
  .lp-faq-item { margin-bottom: 10px; border-radius: 14px !important; }
  .lp-faq-item summary { padding: 16px 18px; font-size: 0.92rem; }
  .lp-faq-item summary::after { width: 26px; height: 26px; min-width: 26px; }
  .lp-faq-item p { padding: 0 18px 16px; font-size: 0.85rem; line-height: 1.7; }

  /* === CTA === */
  .lp-cta { padding: 44px 24px !important; }
  .lp-cta h2 { font-size: 1.4rem !important; margin-bottom: 12px; }
  .lp-cta p { font-size: 0.9rem; }
  .lp-cta-sub { font-size: 0.75rem; margin-top: 14px; }
  .lp-cta-actions { gap: 12px !important; }
  .lp-cta-actions .btn { padding: 14px 24px; font-size: 0.9rem; }

  /* === FOOTER === */
  .lp-footer-inner { padding: 36px 24px 28px !important; gap: 32px !important; }
  .lp-footer-brand p { font-size: 0.85rem; margin-top: 12px; }
  .lp-footer-social { margin-top: 14px; gap: 10px; }
  .lp-footer-social a { width: 36px; height: 36px; }
  .lp-footer-links { gap: 24px !important; }
  .lp-footer-col h4 { font-size: 0.78rem; margin-bottom: 12px; }
  .lp-footer-link { font-size: 0.85rem; padding: 4px 0; }
  .lp-footer-addr { font-size: 0.82rem; }
  .lp-footer-bottom-inner { padding: 18px 24px !important; }
  .lp-footer-bottom p { font-size: 0.75rem; }
  .lp-footer-legal a { font-size: 0.75rem; }
  .lp-footer-legal { gap: 18px; }
  .lp-footer-badge { font-size: 0.72rem; }
  .lp-footer-cta-inner { padding: 28px 24px !important; }
  .lp-footer-cta-text h3 { font-size: 1.15rem; }
  .lp-footer-cta-text p { font-size: 0.85rem; }

  /* === MISC === */
  .lp-cost-compare { padding: 44px 0 !important; }
  .lp-cost-result { padding: 22px !important; border-radius: 14px; }
  .lp-cost-result-total { font-size: 1.3rem; }
  .lp-knowledge-grid { gap: 12px !important; }
  .lp-knowledge-stat { font-size: 1.6rem !important; }
  .lp-tunnel { padding: 44px 0 !important; }
  .lp-learn { padding: 44px 0 !important; }
  .lp-video-section { padding: 24px 0 !important; }
  .lp-advantages { padding: 44px 0 !important; }
  .lp-features { padding: 44px 0 !important; }
  .lp-module { padding: 44px 0 !important; }
  .lp-goal-cta-inner { padding: 28px 24px !important; }
  .lp-md-stats-row { gap: 8px !important; }
  .lp-md-stat { padding: 12px !important; border-radius: 10px; }
}

/* ---- SMALL MOBILE (max 480px) ---- */
@media (max-width: 480px) {
  .lp-hero-text h1 { font-size: 1.5rem !important; }
  .lp-hero { padding: 24px 20px 0 !important; }
  .lp-section-inner { padding: 0 20px; }
  .lp-section-header h2 { font-size: 1.3rem !important; }

  /* Services: show descriptions + action buttons */
  .lp-service-card p { display: block !important; font-size: 0.78rem !important; -webkit-line-clamp: unset; }
  .lp-service-link { display: inline-block !important; font-size: 0.78rem !important; margin-top: 8px !important; padding: 6px 14px !important; background: rgba(126,217,87,0.15) !important; border-radius: 8px !important; font-weight: 600 !important; }
  .lp-service-card::after { display: none !important; }

  /* Team */
  .lp-team-photo { height: 160px !important; }
  .lp-team-info p { display: none !important; }
  .lp-team-more { display: none !important; }

  /* Tools: show descriptions + action links */
  .lp-tool-card p { display: block !important; font-size: 0.78rem !important; }
  .lp-tool-link { display: inline-block !important; font-size: 0.78rem !important; margin-top: 6px !important; }

  /* Blog 1-column on mobile */
  .lp-blog-grid { grid-template-columns: 1fr !important; }

  /* Footer single column */
  .lp-footer-links { grid-template-columns: 1fr !important; }
}

/* ---- EXTRA SMALL (max 360px) ---- */
@media (max-width: 360px) {
  .lp-hero-text h1 { font-size: 1.35rem !important; }
  .lp-hero-img-wrap { max-width: 220px !important; }
  .lp-team-photo { height: 140px !important; }
}

/* ============================================================
   MOBILE REDESIGN 2026 — Premium Startup Look
   ============================================================ */

/* --- GLOBAL MOBILE TYPOGRAPHY & SPACING --- */
@media (max-width: 768px) {
  /* Section headers - bigger, bolder */
  .lp-section-header h2 {
    font-size: 1.75rem !important;
    line-height: 1.2;
    letter-spacing: -0.02em;
  }
  .lp-section-header p {
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 100%;
  }
  .lp-section-tag {
    font-size: 0.82rem;
    letter-spacing: 0.05em;
  }
  .lp-section-inner {
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .lp-section-header h2 {
    font-size: 1.5rem !important;
  }
}

/* --- HERO SECTION — Impactful Mobile --- */
@media (max-width: 768px) {
  .lp-hero {
    padding: 32px 24px 0 !important;
    min-height: auto;
  }
  .lp-hero-content {
    gap: 32px !important;
  }
  .lp-hero-badge {
    font-size: 0.8rem;
    padding: 8px 14px;
    border-radius: 99px;
  }
  .lp-hero-text h1 {
    font-size: 2.2rem !important;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
  }
  .lp-hero-text > p {
    font-size: 1.05rem !important;
    line-height: 1.6;
    color: var(--grey-500);
    margin-bottom: 24px;
  }
  .lp-hero-actions {
    gap: 12px !important;
  }
  .lp-hero-actions .btn {
    padding: 16px 24px !important;
    font-size: 1rem !important;
    border-radius: 14px !important;
  }
  .lp-hero-trust-mini {
    margin-top: 28px;
    padding: 16px;
    background: rgba(126,217,87,0.06);
    border-radius: 16px;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
  }
  .lp-hero-trust-avatars img {
    width: 32px;
    height: 32px;
  }
  .lp-hero-trust-text span {
    font-size: 0.82rem;
  }

  /* Team image in hero */
  .lp-hero-img-wrap {
    max-width: 300px !important;
  }
  .lp-hero-team-img {
    margin-bottom: -30px !important;
  }
}

@media (max-width: 480px) {
  .lp-hero-text h1 {
    font-size: 1.85rem !important;
  }
  .lp-hero {
    padding: 24px 20px 0 !important;
  }
}

/* --- STATS SECTION — 2x2 Grid --- */
@media (max-width: 768px) {
  .lp-stats {
    padding: 28px 20px !important;
  }
  .lp-stats-inner {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 16px !important;
    justify-content: center;
  }
  .lp-stat-divider {
    display: none !important;
  }
  .lp-stat {
    flex-direction: column !important;
    text-align: center;
    gap: 10px !important;
    padding: 16px 12px;
    background: rgba(126,217,87,0.04);
    border-radius: 16px;
    min-width: auto !important;
  }
  .lp-stat-icon {
    width: 48px !important;
    height: 48px !important;
    margin: 0 auto;
  }
  .lp-stat-number {
    font-size: 1.4rem !important;
    font-weight: 700;
  }
  .lp-stat-label {
    font-size: 0.78rem;
    line-height: 1.3;
  }
}

/* --- SERVICES — 2-Column Grid on Tablet, 1 on Small --- */
@media (max-width: 768px) {
  .lp-services {
    padding: 56px 0 !important;
  }
  .lp-services-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
    margin-top: 28px !important;
  }
  .lp-service-card {
    padding: 20px !important;
    border-radius: 16px;
  }
  .lp-service-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px;
    margin-bottom: 14px !important;
  }
  .lp-service-icon svg {
    width: 24px;
    height: 24px;
  }
  .lp-service-card h3 {
    font-size: 0.95rem !important;
    margin-bottom: 8px;
  }
  .lp-service-card p {
    font-size: 0.82rem !important;
    line-height: 1.5;
    margin-bottom: 12px;
  }
  .lp-service-link {
    display: inline-block !important;
    font-size: 0.78rem !important;
    margin-top: 10px !important;
    padding: 6px 14px !important;
    background: rgba(126,217,87,0.15) !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
  }
  .lp-service-card p {
    display: block !important;
    font-size: 0.82rem !important;
    line-height: 1.5;
    margin-bottom: 8px !important;
  }
}

@media (max-width: 420px) {
  .lp-services-grid {
    grid-template-columns: 1fr !important;
  }
  .lp-service-card {
    padding: 24px !important;
  }
  .lp-service-card h3 {
    font-size: 1.05rem !important;
  }
  .lp-service-card p {
    font-size: 0.88rem !important;
  }
}

/* --- COMPARE SECTION — Better Mobile Cards --- */
@media (max-width: 768px) {
  .lp-compare {
    padding: 56px 0 !important;
  }
  .lp-compare-grid {
    gap: 20px !important;
  }
  .lp-compare-col {
    padding: 24px 20px !important;
    border-radius: 20px !important;
  }
  .lp-compare-col li {
    padding: 14px 0 !important;
    gap: 12px !important;
  }
  .lp-compare-col li strong {
    font-size: 0.9rem;
  }
  .lp-compare-col li span {
    font-size: 0.8rem;
    line-height: 1.5;
  }
  .lp-compare-col-header h3 {
    font-size: 1.1rem !important;
  }
}

/* --- TEAM — Better 2x2 Grid --- */
@media (max-width: 768px) {
  .lp-team {
    padding: 56px 0 !important;
  }
  .lp-team-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
  }
  .lp-team-card {
    border-radius: 16px !important;
    overflow: hidden;
  }
  .lp-team-info {
    padding: 14px !important;
  }
  .lp-team-info h3 {
    font-size: 0.9rem !important;
  }
  .lp-team-role {
    font-size: 0.75rem !important;
  }
  .lp-team-desc {
    font-size: 0.78rem !important;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .lp-team-meta {
    flex-wrap: wrap;
    gap: 4px !important;
  }
  .lp-team-badge {
    font-size: 0.65rem !important;
    padding: 2px 6px !important;
  }
  .lp-team-exp {
    font-size: 0.65rem !important;
  }
  .lp-team-more {
    font-size: 0.78rem !important;
  }
}

@media (max-width: 420px) {
  .lp-team-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .lp-team-photo {
    height: 160px !important;
  }
  .lp-team-photo img {
    object-position: top center !important;
  }
  .lp-team-info h3 {
    font-size: 0.85rem !important;
  }
  .lp-team-desc {
    -webkit-line-clamp: 2;
    font-size: 0.72rem !important;
  }
}

/* --- TOOLS — 2-Column Grid --- */
@media (max-width: 768px) {
  .lp-tools {
    padding: 56px 0 !important;
  }
  .lp-tools-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  .lp-tool-card {
    padding: 20px 16px !important;
    border-radius: 16px !important;
    gap: 10px !important;
  }
  .lp-tool-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
  }
  .lp-tool-icon svg {
    width: 22px;
    height: 22px;
  }
  .lp-tool-card h3 {
    font-size: 0.92rem !important;
  }
  .lp-tool-card p {
    font-size: 0.78rem !important;
    line-height: 1.4;
  }
  .lp-tool-link {
    font-size: 0.78rem !important;
  }
}

@media (max-width: 420px) {
  .lp-tools-grid {
    grid-template-columns: 1fr !important;
  }
  .lp-tool-card {
    padding: 24px 20px !important;
  }
  .lp-tool-card h3 {
    font-size: 1.05rem !important;
  }
  .lp-tool-card p {
    font-size: 0.85rem !important;
  }
}

/* --- BOOKING SECTION --- */
@media (max-width: 768px) {
  .lp-booking {
    padding: 56px 16px !important;
  }
  .lp-booking-content {
    gap: 32px !important;
  }
  .lp-booking-info h2 {
    font-size: 1.5rem !important;
  }
  .lp-booking-check {
    font-size: 0.9rem;
    gap: 10px;
  }
  .lp-booking-badges {
    flex-wrap: wrap;
    gap: 8px !important;
  }
  .lp-booking-badge {
    font-size: 0.75rem !important;
    padding: 6px 12px !important;
  }
}

/* --- TESTIMONIALS — Horizontal Scroll Carousel --- */
@media (max-width: 768px) {
  .lp-testimonials {
    padding: 56px 0 !important;
  }
  .lp-testimonials-grid {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px !important;
    padding: 0 20px 20px !important;
    margin: 0 -20px;
    scrollbar-width: none;
  }
  .lp-testimonials-grid::-webkit-scrollbar {
    display: none;
  }
  .lp-testimonials-grid .lp-testimonial-card {
    flex: 0 0 85% !important;
    max-width: 85% !important;
    scroll-snap-align: center;
    margin: 0 !important;
  }
  /* Show all testimonial cards in carousel mode */
  .lp-testimonials-grid .lp-testimonial-hidden {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
    height: auto !important;
    overflow: visible !important;
  }
  .lp-testimonial-card {
    padding: 24px 20px !important;
    border-radius: 20px !important;
  }
  .lp-testimonial-card-text p {
    font-size: 0.9rem !important;
    line-height: 1.6;
  }
  /* Hide "show more" button on mobile since carousel shows all */
  .lp-testimonials-more {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .lp-testimonials-grid .lp-testimonial-card {
    flex: 0 0 90% !important;
    max-width: 90% !important;
  }
}

/* --- KUNDENTOOL SECTION --- */
@media (max-width: 768px) {
  .lp-kundentool {
    padding: 56px 0 !important;
  }
  .lp-kundentool-content {
    gap: 32px !important;
  }
  .lp-kundentool-login {
    padding: 28px 24px !important;
    border-radius: 20px;
  }
  .lp-kundentool-login h3 {
    font-size: 1.2rem;
  }
  .lp-kundentool-login .btn {
    padding: 14px !important;
    font-size: 0.95rem;
    border-radius: 14px !important;
  }
}

/* --- COURSES SECTION --- */
@media (max-width: 768px) {
  .lp-courses {
    padding: 56px 0 !important;
  }
  .public-courses-grid {
    gap: 16px !important;
  }
  .course-card {
    border-radius: 16px !important;
  }
}

/* --- BLOG — 1 Column, Bigger Cards --- */
@media (max-width: 768px) {
  .lp-blog {
    padding: 56px 0 !important;
  }
  .lp-blog-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .lp-blog-card {
    border-radius: 20px !important;
    overflow: hidden;
  }
  .lp-blog-img img {
    height: 200px;
    object-fit: cover;
  }
  .lp-blog-body {
    padding: 20px !important;
  }
  .lp-blog-body h3 {
    font-size: 1.05rem !important;
    line-height: 1.3;
  }
  .lp-blog-body p {
    font-size: 0.88rem !important;
    line-height: 1.5;
  }
}

/* --- FAQ — Horizontal Scroll Filter + Better Accordion --- */
@media (max-width: 768px) {
  .lp-faq {
    padding: 56px 0 !important;
  }
  .lp-faq-categories {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    gap: 8px !important;
    padding: 0 20px 16px !important;
    margin: 0 -20px !important;
    scrollbar-width: none;
    flex-wrap: nowrap !important;
  }
  .lp-faq-categories::-webkit-scrollbar {
    display: none;
  }
  .lp-faq-cat-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 10px 18px !important;
    font-size: 0.85rem !important;
    border-radius: 99px !important;
  }
  .lp-faq-item summary {
    padding: 18px 16px !important;
    font-size: 0.95rem !important;
    font-weight: 600;
    line-height: 1.4;
  }
  .lp-faq-item p {
    padding: 0 16px 18px !important;
    font-size: 0.88rem !important;
    line-height: 1.65;
  }
}

/* --- FINAL CTA --- */
@media (max-width: 768px) {
  .lp-cta {
    padding: 56px 0 !important;
  }
  .lp-cta-inner {
    padding: 48px 24px !important;
    border-radius: 24px !important;
  }
  .lp-cta-inner h2 {
    font-size: 1.6rem !important;
    line-height: 1.2;
  }
  .lp-cta-inner > p {
    font-size: 0.95rem !important;
  }
  .lp-cta-actions .btn {
    padding: 16px 28px !important;
    font-size: 1rem !important;
    border-radius: 14px !important;
  }
  .lp-cta-sub {
    font-size: 0.8rem !important;
  }
}

/* --- FOOTER — Better Spacing & Layout --- */
@media (max-width: 768px) {
  .lp-footer {
    padding-top: 48px !important;
  }
  .lp-footer-inner {
    padding: 0 24px !important;
    gap: 40px !important;
  }
  .lp-footer-brand {
    text-align: center;
  }
  .lp-footer-brand p {
    font-size: 0.9rem;
    max-width: 300px;
    margin: 12px auto;
  }
  .lp-footer-social {
    justify-content: center;
    margin-top: 16px;
  }
  .lp-footer-links {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 32px 24px !important;
  }
  .lp-footer-col h4 {
    font-size: 0.9rem !important;
    margin-bottom: 14px !important;
    font-weight: 700;
  }
  .lp-footer-link {
    display: block !important;
    padding: 6px 0 !important;
    font-size: 0.88rem !important;
    line-height: 1.4;
  }
  .lp-footer-addr {
    font-size: 0.82rem !important;
    line-height: 1.5;
    margin-bottom: 8px;
  }
  .lp-footer-bottom {
    margin-top: 32px;
  }
  .lp-footer-bottom-inner {
    padding: 20px 24px !important;
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .lp-footer-legal {
    gap: 16px;
  }
  .lp-footer-legal a {
    font-size: 0.82rem;
  }
}

/* --- FLOATING BUTTONS — Non-overlapping, Modern --- */
@media (max-width: 768px) {
  .floating-beratung-btn {
    bottom: 20px !important;
    right: 20px !important;
    left: auto !important;
    padding: 14px 20px !important;
    border-radius: 99px !important;
    font-size: 0.88rem !important;
    box-shadow: 0 4px 20px rgba(126,217,87,0.35), 0 2px 8px rgba(0,0,0,0.1) !important;
    z-index: 999 !important;
  }
  .floating-beratung-btn span {
    display: inline !important;
  }
  .feedback-floating-btn {
    bottom: 20px !important;
    left: 20px !important;
    right: auto !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    opacity: 0.7;
    z-index: 999 !important;
  }
  .feedback-floating-btn:hover {
    opacity: 1;
  }
}

/* --- SMOOTHER SCROLL ANIMATIONS --- */
@media (max-width: 768px) {
  .lp-animate {
    transform: translateY(30px) !important;
    transition: opacity 0.6s cubic-bezier(.16,1,.3,1), transform 0.6s cubic-bezier(.16,1,.3,1) !important;
  }
  .lp-animate.visible {
    transform: translateY(0) !important;
  }
  .lp-animate-children > * {
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(.16,1,.3,1), transform 0.5s cubic-bezier(.16,1,.3,1) !important;
  }
  .lp-animate-children.visible > * {
    transform: translateY(0);
  }
}

/* --- MOBILE NAVIGATION POLISH --- */
@media (max-width: 768px) {
  .public-header {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  .public-header.nav-open {
    border-radius: 0 0 20px 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  }
  .public-nav-link {
    padding: 14px 16px !important;
    font-size: 0.95rem !important;
    border-radius: 12px;
  }
  .public-nav-link:hover {
    background: rgba(126,217,87,0.06);
  }
  .public-header-actions .btn {
    border-radius: 12px !important;
    padding: 12px 20px !important;
  }
}

/* --- DARK MODE MOBILE ADJUSTMENTS --- */
@media (max-width: 768px) {
  body.dark-mode .lp-stat {
    background: rgba(126,217,87,0.06);
  }
  body.dark-mode .lp-hero-trust-mini {
    background: rgba(126,217,87,0.08);
  }
  body.dark-mode .lp-service-card {
    background: #1e293b;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }
  body.dark-mode .lp-tool-card {
    background: #1e293b;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }
  body.dark-mode .lp-testimonial-card {
    background: #1e293b;
  }
}

/* --- SCROLL PROGRESS BAR — Thinner on Mobile --- */
@media (max-width: 768px) {
  .lp-scroll-progress {
    height: 3px !important;
  }
}

/* --- COMPARE SECTION — VS Badge Mobile --- */
@media (max-width: 768px) {
  .lp-compare-vs {
    width: 48px !important;
    height: 48px !important;
    font-size: 0.85rem !important;
    position: relative;
    margin: -16px auto -16px;
    z-index: 2;
  }
}

/* --- BETA GATE MOBILE --- */
@media (max-width: 768px) {
  .beta-gate-card {
    padding: 32px 24px !important;
    border-radius: 24px !important;
    margin: 0 16px;
  }
  .beta-gate-title {
    font-size: 1.3rem !important;
  }
}


/* Mobile-only nav links — HIDE on desktop */
.mobile-only-nav {
  display: none !important;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE FINAL OVERRIDES — 2026-03-22 v3
   Premium glassmorphism menu with silky-smooth animations
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* --- 1. HERO: Mehr Abstand oben --- */
  .lp-hero {
    padding: 52px 24px 0 !important;
  }

  /* --- 2A. HAMBURGER BUTTON --- */
  .public-mobile-menu {
    width: 44px !important;
    height: 44px !important;
    position: relative !important;
    z-index: 10001 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    order: 6 !important;
    margin-left: 6px !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  /* --- 2B. HAMBURGER ICON → X ANIMATION (smooth spring) --- */
  .hamburger-icon {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 20px !important;
    height: 20px !important;
    position: relative !important;
    gap: 0 !important;
  }
  .hamburger-icon span {
    display: block !important;
    width: 20px !important;
    height: 2px !important;
    background: currentColor !important;
    border-radius: 2px !important;
    transition: top 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s,
                opacity 0.2s ease !important;
    position: absolute !important;
    transform-origin: center !important;
  }
  .hamburger-icon span:nth-child(1) { top: 4px !important; }
  .hamburger-icon span:nth-child(2) { top: 9px !important; }
  .hamburger-icon span:nth-child(3) { top: 14px !important; }

  /* X state: smooth spring rotation */
  .public-header.nav-open .hamburger-icon span {
    transition: top 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s,
                opacity 0.2s ease !important;
  }
  .public-header.nav-open .hamburger-icon span:nth-child(1) {
    top: 9px !important;
    transform: rotate(45deg) !important;
  }
  .public-header.nav-open .hamburger-icon span:nth-child(2) {
    opacity: 0 !important;
    transform: scaleX(0) !important;
  }
  .public-header.nav-open .hamburger-icon span:nth-child(3) {
    top: 9px !important;
    transform: rotate(-45deg) !important;
  }

  /* --- Dark Toggle: gleich gross wie Hamburger (44x44), links daneben --- */
  .public-darkmode-toggle {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 0 !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    color: #475569 !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  .public-darkmode-toggle svg {
    stroke-width: 2 !important;
    width: 22px !important;
    height: 22px !important;
    position: absolute !important;
  }
  .public-darkmode-toggle .icon-sun { display: block !important; }
  .public-darkmode-toggle .icon-moon { display: block !important; }
  body.dark-mode .public-darkmode-toggle .icon-sun { opacity: 0 !important; transform: rotate(90deg) scale(0) !important; pointer-events: none !important; }
  body.dark-mode .public-darkmode-toggle .icon-moon { opacity: 1 !important; transform: rotate(0deg) scale(1) !important; }
  body:not(.dark-mode) .public-darkmode-toggle .icon-sun { opacity: 1 !important; transform: rotate(0deg) scale(1) !important; }
  body:not(.dark-mode) .public-darkmode-toggle .icon-moon { opacity: 0 !important; transform: rotate(-90deg) scale(0) !important; pointer-events: none !important; }
  body.dark-mode .public-darkmode-toggle { color: #94a3b8 !important; }

  /* ============================================================
     GLASSMORPHISM MENU — Premium Overlay
     ============================================================ */

  /* --- Open State: Glassmorphism with strong transparency --- */
  .public-header.nav-open {
    height: auto !important;
    flex-wrap: wrap !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(32px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(32px) saturate(180%) !important;
    z-index: 10000 !important;
    border-radius: 0 0 24px 24px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12),
                0 2px 8px rgba(0, 0, 0, 0.06) !important;
  }
  body.dark-mode .public-header.nav-open {
    background: rgba(15, 23, 42, 0.82) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4),
                0 2px 8px rgba(0, 0, 0, 0.2) !important;
  }

  /* --- Nav Container --- */
  .public-header.nav-open .public-nav {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 16px 0 8px !important;
    gap: 0 !important;
    margin-top: 8px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
  }
  body.dark-mode .public-header.nav-open .public-nav {
    border-top-color: rgba(255, 255, 255, 0.06) !important;
  }

  /* --- Nav Links: clean, centered, subtle hover --- */
  .public-nav .public-nav-link,
  .public-nav .public-nav-dropdown-wrap > .public-nav-link {
    padding: 14px 24px !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: #1e293b !important;
    border-bottom: none !important;
    border-radius: 12px !important;
    margin: 0 8px !important;
    text-align: center !important;
    justify-content: center !important;
    transition: background 0.2s ease, color 0.2s ease !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  body.dark-mode .public-nav .public-nav-link,
  body.dark-mode .public-nav .public-nav-dropdown-wrap > .public-nav-link {
    color: #e2e8f0 !important;
  }

  /* Hover/Active: subtle highlight */
  .public-header.nav-open .public-nav-link:hover,
  .public-header.nav-open .public-nav-link:active {
    background: rgba(0, 0, 0, 0.03) !important;
  }
  body.dark-mode .public-header.nav-open .public-nav-link:hover,
  body.dark-mode .public-header.nav-open .public-nav-link:active {
    background: rgba(255, 255, 255, 0.06) !important;
  }

  /* --- Chevron Animation --- */
  .public-nav-dropdown-wrap > .public-nav-link svg {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    will-change: transform;
  }
  .public-nav-dropdown-wrap.mobile-open > .public-nav-link svg {
    transform: rotate(180deg) !important;
  }

  /* --- Dropdown: smooth accordion with reverse animation --- */
  .public-header.nav-open .public-nav-dropdown {
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    padding: 0 8px !important;
    margin: 0 !important;
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    transform: translateY(-4px) !important;
    /* CLOSE animation: smooth collapse */
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease,
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.3s ease !important;
  }
  .public-nav-dropdown-wrap.mobile-open .public-nav-dropdown {
    max-height: 500px !important;
    opacity: 1 !important;
    padding: 8px 8px !important;
    transform: translateY(0) !important;
    /* OPEN animation: smooth expand with slight delay */
    transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.05s,
                opacity 0.4s ease 0.08s,
                transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.05s,
                padding 0.4s ease 0.05s !important;
  }

  /* --- Tool Grid: 2 columns --- */
  .public-header.nav-open .nav-dropdown-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    padding: 0 8px !important;
  }

  /* --- Tool Cards: glassmorphism cards (NUR Tools-Mega-Dropdown mit Icons) --- */
  .public-header.nav-open .public-nav-dropdown--mega .nav-dropdown-item {
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 14px !important;
    padding: 12px !important;
    gap: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    -webkit-tap-highlight-color: transparent !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
  }
  .public-header.nav-open .public-nav-dropdown--mega .nav-dropdown-item:active {
    transform: scale(0.97) !important;
  }
  /* --- Einfaches Dropdown (Grow): nur Text-Links, zentriert (wie Hauptmenu) --- */
  .public-header.nav-open .public-nav-dropdown:not(.public-nav-dropdown--mega) {
    text-align: center !important;
    padding-left: 0 !important;
  }
  .public-header.nav-open .public-nav-dropdown:not(.public-nav-dropdown--mega) .nav-dropdown-item {
    background: transparent !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    box-shadow: none !important;
    gap: 0 !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .public-header.nav-open .public-nav-dropdown:not(.public-nav-dropdown--mega) .nav-dropdown-item small {
    display: none !important;
  }
  .public-header.nav-open .public-nav-dropdown:not(.public-nav-dropdown--mega) .nav-dropdown-item span {
    text-align: center !important;
  }

  /* Cards: staggered pop-in on open */
  .public-nav-dropdown-wrap.mobile-open .nav-dropdown-item {
    animation: toolCardIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both !important;
  }
  .public-nav-dropdown-wrap.mobile-open .nav-dropdown-item:nth-child(1) { animation-delay: 0.1s !important; }
  .public-nav-dropdown-wrap.mobile-open .nav-dropdown-item:nth-child(2) { animation-delay: 0.14s !important; }
  .public-nav-dropdown-wrap.mobile-open .nav-dropdown-item:nth-child(3) { animation-delay: 0.18s !important; }
  .public-nav-dropdown-wrap.mobile-open .nav-dropdown-item:nth-child(4) { animation-delay: 0.22s !important; }
  .public-nav-dropdown-wrap.mobile-open .nav-dropdown-item:nth-child(5) { animation-delay: 0.26s !important; }
  .public-nav-dropdown-wrap.mobile-open .nav-dropdown-item:nth-child(6) { animation-delay: 0.30s !important; }
  .public-nav-dropdown-wrap.mobile-open .nav-dropdown-item:nth-child(7) { animation-delay: 0.34s !important; }

  /* Cards: reverse animation on close */
  .public-nav-dropdown-wrap:not(.mobile-open) .nav-dropdown-item {
    animation: toolCardOut 0.25s cubic-bezier(0.4, 0, 0.2, 1) both !important;
  }

  @keyframes toolCardIn {
    0% { opacity: 0; transform: translateY(10px) scale(0.92); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
  }
  @keyframes toolCardOut {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-6px) scale(0.95); }
  }

  .public-header.nav-open .nav-dropdown-item strong {
    font-size: 0.82rem !important;
    color: #1e293b !important;
  }
  .public-header.nav-open .nav-dropdown-item small { display: none !important; }
  .public-header.nav-open .nav-dropdown-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
  }

  /* Dark mode cards */
  body.dark-mode .public-header.nav-open .nav-dropdown-item {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  }
  body.dark-mode .public-header.nav-open .nav-dropdown-item strong { color: #e2e8f0 !important; }

  /* --- Buttons: ALWAYS visible when menu open (JS handles animation) --- */
  .public-header.nav-open .public-header-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    order: 11 !important;
    padding: 12px 8px 16px !important;
    gap: 8px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
    margin-top: 4px !important;
    /* No CSS animation — JS controls opacity/transform for smooth open/close */
  }
  body.dark-mode .public-header.nav-open .public-header-actions {
    border-top-color: rgba(255, 255, 255, 0.06) !important;
  }
  .public-header.nav-open .public-header-actions .public-darkmode-toggle {
    display: none !important;
  }
  .public-header.nav-open .public-header-actions .btn {
    display: flex !important;
    flex: 1 !important;
    text-align: center !important;
    justify-content: center !important;
    border-radius: 14px !important;
    padding: 12px 16px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  }
  .public-header.nav-open .public-header-actions .btn:active {
    transform: scale(0.97) !important;
  }

  /* --- Mobile-only Links --- */
  .mobile-only-nav { display: block !important; }
  .public-header.nav-open .public-nav-dropdown-wrap:last-of-type { display: none !important; }

  /* --- 4. TRUST-BEREICH: Alles auf einer Linie --- */
  .lp-hero-trust-mini {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
    margin-top: 16px !important;
    padding: 10px 14px !important;
    overflow: hidden !important;
  }
  .lp-hero-trust-avatars {
    flex-shrink: 0 !important;
    display: flex !important;
  }
  .lp-hero-trust-avatars img {
    width: 24px !important;
    height: 24px !important;
    margin-left: -6px !important;
    border: 2px solid #fff !important;
    border-radius: 50% !important;
  }
  .lp-hero-trust-avatars img:first-child {
    margin-left: 0 !important;
  }
  .lp-hero-trust-google {
    flex-shrink: 0 !important;
  }
  .lp-hero-trust-google svg {
    width: 18px !important;
    height: 18px !important;
  }
  .lp-hero-trust-text {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
  }
  .lp-hero-trust-stars {
    display: flex !important;
    gap: 1px !important;
  }
  .lp-hero-trust-stars svg {
    width: 11px !important;
    height: 11px !important;
  }
  .lp-hero-trust-text > span {
    font-size: 0.68rem !important;
    white-space: nowrap !important;
  }

  /* --- 5. TEAM-BILDER: Grösser --- */
  .lp-hero-visual {
    margin-top: -20px !important;
  }
  .lp-hero-team-img {
    width: 130% !important;
    margin-left: -8% !important;
    margin-bottom: -35px !important;
  }

  /* --- 6. HINTERGRUND-ANIMATIONEN: Sichtbar auf Mobile --- */
  .lp-hero-bg-effects {
    display: block !important;
    opacity: 1 !important;
  }
  .lp-hero-gradient-orb {
    display: block !important;
    opacity: 0.35 !important;
  }
  .lp-orb-1 {
    width: 350px !important;
    height: 350px !important;
    top: auto !important;
    bottom: 5% !important;
    right: -10% !important;
    opacity: 0.4 !important;
  }
  .lp-orb-2 {
    width: 250px !important;
    height: 250px !important;
    top: auto !important;
    bottom: 0 !important;
    left: -5% !important;
    opacity: 0.3 !important;
  }
  .lp-orb-3 {
    width: 200px !important;
    height: 200px !important;
    top: auto !important;
    bottom: 10% !important;
    left: 30% !important;
    opacity: 0.3 !important;
  }
  .lp-hero-grid-lines {
    display: block !important;
    opacity: 0.12 !important;
  }
  #heroParticles {
    display: block !important;
    opacity: 0.5 !important;
  }
  .hero-sky {
    display: block !important;
    opacity: 0.35 !important;
  }
  .lp-hero-floating {
    display: flex !important;
    opacity: 0.7 !important;
    transform: scale(0.62) !important;
    animation: none !important;
    transition: none !important;
  }
  .lp-hero-floating:hover,
  .lp-hero-floating:active,
  .lp-hero-floating:focus {
    transform: scale(0.62) !important;
    box-shadow: none !important;
    animation: none !important;
  }
  .lp-hero-floating.lp-float-1 {
    top: 48% !important;
    right: -14% !important;
    z-index: 12 !important;
    opacity: 0.85 !important;
  }
  .lp-hero-floating.lp-float-2 {
    bottom: 20% !important;
    left: -10% !important;
    opacity: 0.85 !important;
  }
  .lp-hero-floating.lp-float-3 {
    display: none !important;
  }

  /* --- 7. STATS: Horizontal in einer Reihe (Original) --- */
  .lp-stats-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    gap: 6px !important;
  }
  .lp-stat {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
    text-align: center !important;
    padding: 10px 4px !important;
  }
  .lp-stat-divider {
    display: none !important;
  }
  .lp-stat-icon {
    width: 30px !important;
    height: 30px !important;
  }
  .lp-stat-icon svg {
    width: 16px !important;
    height: 16px !important;
  }
  .lp-stat-number {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
  }
  .lp-stat-label {
    font-size: 0.58rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    white-space: nowrap !important;
  }

  /* --- 8. VS-ZEICHEN: Zwischen den Spalten --- */
  .lp-compare-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }
  .lp-compare-col.lp-compare-bad {
    order: 0 !important;
  }
  .lp-compare-col.lp-compare-good {
    order: 2 !important;
  }
  .lp-compare-vs-badge {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    animation: vsPulseMobile 3s ease-in-out infinite !important;
    order: 1 !important;
    width: 48px !important;
    height: 48px !important;
    font-size: 0.8rem !important;
    line-height: 48px !important;
    margin: -24px auto -24px !important;
    z-index: 10 !important;
    flex-shrink: 0 !important;
  }

  /* --- 9. CALENDLY: Kleiner --- */
  .calendly-inline-widget {
    min-height: 580px !important;
    height: 580px !important;
  }
  .lp-booking-calendly {
    margin: 0 !important;
    padding: 0 !important;
  }
  .lp-booking {
    padding: 48px 20px !important;
  }

  /* --- 10. REZENSIONEN: Runde Avatare --- */
  .lp-testimonial-avatar {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    aspect-ratio: 1 / 1 !important;
    flex-shrink: 0 !important;
  }
  .lp-testimonial-avatar img {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    aspect-ratio: 1 / 1 !important;
    display: block !important;
  }
  .lp-testimonial-google-link {
    display: none !important;
  }

  /* --- 10B. TESTIMONIALS: Single column, centered button, no overflow --- */
  .lp-testimonials-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    overflow-x: visible !important;
    overflow: hidden !important;
    scroll-snap-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
    justify-items: center !important;
  }
  .lp-testimonials-grid.show-all {
    grid-template-columns: 1fr !important;
  }
  .lp-testimonials-grid .lp-testimonial-card {
    flex: unset !important;
    max-width: 100% !important;
    width: 100% !important;
    scroll-snap-align: unset !important;
    overflow: hidden !important;
  }
  .lp-testimonial-card {
    max-width: 100% !important;
    overflow: hidden !important;
  }
  /* Hide 9th+ visible card (not .lp-testimonial-hidden) */
  .lp-testimonials-grid .lp-testimonial-card:nth-child(n+9):not(.lp-testimonial-hidden) {
    display: none !important;
  }
  /* Hidden cards stay hidden until show-all */
  .lp-testimonials-grid .lp-testimonial-hidden {
    display: none !important;
  }
  .lp-testimonials-grid.show-all .lp-testimonial-hidden {
    display: block !important;
  }
  .lp-testimonials-grid.show-all .lp-testimonial-card:nth-child(n+9):not(.lp-testimonial-hidden) {
    display: block !important;
  }
  /* "Mehr anzeigen" button — centered */
  .lp-testimonials-more {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    text-align: center !important;
    margin: 24px 0 0 !important;
  }
  .lp-testimonials-more .btn {
    margin: 0 auto !important;
  }
  #showMoreTestimonials {
    display: inline-flex !important;
    margin: 0 auto !important;
  }

  a.lp-testimonial-card {
    text-decoration: none !important;
    color: inherit !important;
    display: block !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  }
  a.lp-testimonial-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
  }

  /* --- 11. BLOG: 1 pro Reihe auf Mobile --- */
  .lp-blog-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .lp-blog-card {
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  }
  .lp-blog-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1) !important;
  }
  .lp-blog-img img {
    height: 110px !important;
    object-fit: cover !important;
    width: 100% !important;
  }
  .lp-blog-body {
    padding: 10px !important;
  }
  .lp-blog-body h3 {
    font-size: 0.82rem !important;
    line-height: 1.3 !important;
    margin-bottom: 4px !important;
  }
  .lp-blog-body p {
    font-size: 0.7rem !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
  .lp-blog-meta {
    font-size: 0.62rem !important;
  }
  .lp-blog-category {
    font-size: 0.58rem !important;
    padding: 2px 6px !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   PAGE LOAD ANIMATIONS — Premium entrance effects
   Header slides from top, hero content rises from bottom
   ═══════════════════════════════════════════════════════════ */

/* Initial hidden state (no-JS fallback: elements are visible) */
.public-header.page-entering {
  opacity: 0;
  transform: translateY(-100%);
}
.lp-hero.page-entering .lp-hero-text,
.lp-hero.page-entering .lp-hero-visual,
.lp-hero.page-entering .lp-hero-trust-mini {
  opacity: 0;
  transform: translateY(40px);
}

/* Animated entrance */
.public-header.page-entered {
  animation: headerSlideIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.lp-hero.page-entered .lp-hero-text {
  animation: heroContentUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}
.lp-hero.page-entered .lp-hero-visual {
  animation: heroContentUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}
.lp-hero.page-entered .lp-hero-trust-mini {
  animation: heroContentUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

@keyframes headerSlideIn {
  0% {
    opacity: 0;
    transform: translateY(-100%);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroContentUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   FINAL MOBILE OVERRIDE — CSS GRID statt Flex (kein Wrapping-Problem)
   ============================================================ */
@media (max-width: 768px) {
  .public-header {
    display: grid !important;
    grid-template-columns: 1fr auto auto !important;
    grid-template-rows: 60px !important;
    align-items: center !important;
    padding: 0 16px !important;
    gap: 0 4px !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10000 !important;
  }
  /* Row 1: Logo (1fr links) | Toggle | Hamburger — Toggle und Burger eng zusammen rechts */
  .public-header .public-logo { grid-column: 1 !important; grid-row: 1 !important; justify-self: start !important; }
  .public-header .public-darkmode-toggle { grid-column: 2 !important; grid-row: 1 !important; }
  .public-header .public-mobile-menu { grid-column: 3 !important; grid-row: 1 !important; }
  /* Row 2+: Nav und Actions (volle Breite, nur sichtbar wenn offen) */
  .public-header .public-nav { grid-column: 1 / -1 !important; grid-row: 2 !important; }
  .public-header .public-header-actions { grid-column: 1 / -1 !important; grid-row: 3 !important; }

  .public-header.nav-open {
    grid-template-rows: 60px auto auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-height: 85vh !important;
  }
}

/* ---- Ablaufmanagement new design ---- */
#kundePortfolioView .ka-ablauf-info-card { background:rgba(126,217,87,0.06); border:1px solid rgba(126,217,87,0.2); border-radius:12px; padding:20px; display:flex; flex-direction:column; align-items:center; text-align:center; gap:6px; margin-bottom:20px; }
#kundePortfolioView .ka-ablauf-info-text { font-size:1rem; font-weight:600; color:var(--ka-text); margin:0; }
#kundePortfolioView .ka-ablauf-info-sub { font-size:0.85rem; color:var(--ka-text-muted); margin:0; }
#kundePortfolioView .ka-ablauf-strategies { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:12px; margin-bottom:20px; }
#kundePortfolioView .ka-ablauf-strategy-card { background:white; border:2px solid var(--ka-border); border-radius:12px; padding:16px 14px; text-align:center; cursor:pointer; transition:all .2s ease; }
#kundePortfolioView .ka-ablauf-strategy-card:hover { border-color:rgba(126,217,87,0.5); box-shadow:0 2px 8px rgba(0,0,0,0.05); }
#kundePortfolioView .ka-ablauf-strategy-card.active { border-color:#7ed957; background:rgba(126,217,87,0.04); }
#kundePortfolioView .ka-ablauf-strategy-card h4 { margin:0 0 4px; font-size:0.92rem; font-weight:700; color:var(--ka-text); }
#kundePortfolioView .ka-ablauf-strategy-card p { margin:0; font-size:0.82rem; color:var(--ka-text-muted); line-height:1.4; }
#kundePortfolioView .ka-ablauf-chart-wrapper { background:white; border:1px solid var(--ka-border); border-radius:12px; padding:20px; margin-bottom:16px; }
#kundePortfolioView .ka-ablauf-summary { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; }
#kundePortfolioView .ka-ablauf-summary-item { background:rgba(0,0,0,0.04); padding:6px 14px; border-radius:20px; font-size:0.82rem; font-weight:600; color:var(--ka-text); }

/* ---- Deine Zahlen personalized cards ---- */
#kundePortfolioView .ka-zahlen-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
@media (max-width:900px) { #kundePortfolioView .ka-zahlen-grid { grid-template-columns:1fr; } }
#kundePortfolioView .ka-zahlen-card { display:flex; flex-direction:column; gap:6px; padding:24px; }
#kundePortfolioView .ka-zahlen-card:hover { border-color:var(--ka-accent-border); transform:translateY(-2px); }
#kundePortfolioView .ka-zahlen-card-title { margin:0; font-size:1rem; font-weight:700; color:var(--ka-text); }
#kundePortfolioView .ka-zahlen-card-desc { margin:0; font-size:0.82rem; color:var(--ka-text-muted); line-height:1.5; }
#kundePortfolioView .ka-zahlen-card-sub { margin:0; font-size:0.82rem; color:var(--ka-text-muted); text-align:center; }
#kundePortfolioView .ka-zahlen-card-hint { margin:4px 0 0; font-size:0.82rem; color:var(--grey-400); text-align:center; }
#kundePortfolioView .ka-zahlen-ersparnis-amount { text-align:center; padding:12px 0 4px; }
#kundePortfolioView .ka-zahlen-counter { font-size:1.8rem; font-weight:800; color:#22c55e; }
#kundePortfolioView .ka-zahlen-big { font-size:1.8rem; font-weight:800; color:#3b82f6; display:block; }
#kundePortfolioView .ka-zahlen-big-label { font-size:0.82rem; font-weight:600; color:var(--ka-text-muted); text-transform:uppercase; letter-spacing:0.5px; display:block; margin-bottom:2px; }
#kundePortfolioView .ka-zahlen-prognose-amount { text-align:center; padding:10px 0 4px; }
#kundePortfolioView .ka-zahlen-prognose-sub { display:flex; justify-content:space-between; font-size:0.82rem; color:var(--ka-text-muted); padding:0 4px; }
#kundePortfolioView .ka-zahlen-link { font-size:0.82rem; font-weight:600; color:#7ed957; text-decoration:none; margin-top:4px; display:inline-block; }
#kundePortfolioView .ka-zahlen-link:hover { text-decoration:underline; }

/* ---- Flip Card (Vermögensprognose / Zinseszinsrechner) ---- */
#kundePortfolioView .ka-flip-card { overflow:hidden; }
#kundePortfolioView .ka-flip-card:hover { transform:none; }
#kundePortfolioView .ka-flip-inner { position:relative; transition:transform 0.25s ease, opacity 0.25s ease; }
#kundePortfolioView .ka-flip-inner.ka-shrinking { transform:scale(0.92); opacity:0; }
#kundePortfolioView .ka-flip-front { }
#kundePortfolioView .ka-flip-back { display:none; }

/* ---- Prognose Scenarios (front of flip card) ---- */
#kundePortfolioView .ka-prognose-scenarios { display:flex; flex-direction:column; gap:10px; }
#kundePortfolioView .ka-prognose-row { display:flex; align-items:center; justify-content:space-between; padding:6px 0; border-bottom:1px solid #f1f5f9; }
#kundePortfolioView .ka-prognose-row:last-child { border-bottom:none; }
#kundePortfolioView .ka-prognose-label { display:flex; align-items:center; gap:8px; font-size:0.82rem; font-weight:600; }
#kundePortfolioView .ka-prognose-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
#kundePortfolioView .ka-prognose-vals { text-align:right; display:flex; flex-direction:column; gap:1px; }
#kundePortfolioView .ka-prognose-end { font-size:0.92rem; font-weight:700; color:var(--ka-text); }
#kundePortfolioView .ka-prognose-gewinn { font-size:0.82rem; font-weight:600; }

/* ---- Zinseszinsrechner Inputs ---- */
#kundePortfolioView .ka-zins-inputs { display:flex; flex-direction:column; gap:12px; margin-top:8px; }
#kundePortfolioView .ka-zins-row { display:flex; align-items:center; justify-content:space-between; gap:12px; }
#kundePortfolioView .ka-zins-label { font-size:0.82rem; font-weight:600; color:var(--ka-text-muted); flex:1; }
#kundePortfolioView .ka-zins-input-wrap { display:flex; align-items:center; gap:6px; background:#f7f9fb; border:1px solid #e2e8f0; border-radius:10px; padding:6px 12px; transition:border-color 0.2s, box-shadow 0.2s; }
#kundePortfolioView .ka-zins-input-wrap:focus-within { border-color:#7ed957; box-shadow:0 0 0 3px rgba(126,217,87,0.15); }
#kundePortfolioView .ka-zins-input { border:none; background:transparent; width:70px; font-size:0.95rem; font-weight:700; color:var(--ka-text); text-align:right; outline:none; -moz-appearance:textfield; }
#kundePortfolioView .ka-zins-input::-webkit-outer-spin-button,
#kundePortfolioView .ka-zins-input::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
#kundePortfolioView .ka-zins-unit { font-size:0.82rem; font-weight:600; color:#94a3b8; white-space:nowrap; }
#kundePortfolioView .ka-zins-divider { height:1px; background:#e2e8f0; margin:14px 0; }
#kundePortfolioView .ka-zins-results { display:flex; flex-direction:column; gap:8px; }
#kundePortfolioView .ka-zins-result-row { display:flex; align-items:center; justify-content:space-between; }
#kundePortfolioView .ka-zins-result-label { font-size:0.82rem; font-weight:600; color:var(--ka-text-muted); }
#kundePortfolioView .ka-zins-result-value { font-weight:700; font-size:0.95rem; }

/* Bar comparison */
#kundePortfolioView .ka-zahlen-bars { display:flex; flex-direction:column; gap:10px; margin-top:8px; }
#kundePortfolioView .ka-zahlen-bar-row { display:flex; flex-direction:column; gap:4px; }
#kundePortfolioView .ka-zahlen-bar-label { font-size:0.82rem; font-weight:600; color:var(--ka-text-muted); }
#kundePortfolioView .ka-zahlen-bar-track { height:28px; background:var(--grey-100); border-radius:8px; overflow:hidden; position:relative; }
#kundePortfolioView .ka-zahlen-bar-fill { height:100%; border-radius:8px; width:0%; transition:width 1.2s cubic-bezier(.4,0,.2,1); display:flex; align-items:center; justify-content:flex-end; padding-right:8px; font-size:0.75rem; font-weight:700; color:white; white-space:nowrap; min-width:0; }
#kundePortfolioView .ka-zahlen-bar-fill::after { content:attr(data-value); }
#kundePortfolioView .ka-zahlen-bar-fill.ka-bar-visible { width:var(--bar-pct); }

/* Portfolio profile grid */
#kundePortfolioView .ka-zahlen-profil-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:4px 0; }
#kundePortfolioView .ka-zahlen-profil-item { display:flex; flex-direction:column; gap:2px; }
#kundePortfolioView .ka-zahlen-profil-label { font-size:0.82rem; font-weight:500; color:var(--ka-text-muted); }
#kundePortfolioView .ka-zahlen-profil-value { font-size:0.95rem; font-weight:700; color:var(--ka-text); }
#kundePortfolioView .ka-zahlen-profil-badge { display:inline-block; padding:2px 10px; border-radius:12px; font-size:0.82rem; font-weight:600; width:fit-content; }

/* Progress bars in profile card */
#kundePortfolioView .ka-zahlen-profil-bars { display:flex; flex-direction:column; gap:8px; margin-top:8px; padding-top:10px; border-top:1px solid var(--grey-100); }
#kundePortfolioView .ka-zahlen-pbar-row { display:grid; grid-template-columns:90px 1fr 60px; align-items:center; gap:8px; }
#kundePortfolioView .ka-zahlen-pbar-row > span:first-child { font-size:0.82rem; font-weight:500; color:var(--ka-text-muted); }
#kundePortfolioView .ka-zahlen-pbar-track { height:6px; background:var(--grey-100); border-radius:4px; overflow:hidden; }
#kundePortfolioView .ka-zahlen-pbar-fill { height:100%; border-radius:4px; transition:width 1s ease; }
#kundePortfolioView .ka-zahlen-pbar-score { font-size:0.82rem; font-weight:600; color:var(--ka-text); text-align:right; }

/* Portfolio Setup Animation */
@keyframes kaFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   WISSENSBIBLIOTHEK
   ============================================================ */

/* Container */
.wissen-container { max-width: 1200px; margin: 0 auto; }

/* Header */
.wissen-header { margin-bottom: 32px; }
.wissen-header h1 { font-size: 2rem; font-weight: 700; color: var(--dark); margin: 0 0 8px; }
.wissen-header p { color: var(--grey-400); font-size: 1rem; margin: 0; }

/* Search */
.wissen-search-wrap { position: relative; margin-bottom: 24px; }
.wissen-search { 
  width: 100%; padding: 14px 16px 14px 48px; 
  border: 2px solid var(--grey-100); border-radius: var(--radius-lg); 
  font-size: 1rem; font-family: inherit; background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.wissen-search:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(126,217,87,0.15); }
.wissen-search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--grey-300); pointer-events: none; }
.wissen-search-clear { 
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--grey-300); cursor: pointer; padding: 4px;
  display: none;
}
.wissen-search-clear.visible { display: block; }

/* Category Tabs */
.wissen-tabs { 
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; 
  padding-bottom: 4px;
}
.wissen-tab { 
  padding: 8px 18px; border-radius: var(--radius-xl); border: 1.5px solid var(--grey-100); 
  background: var(--white); color: var(--grey-400); font-size: 0.875rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s; font-family: inherit; white-space: nowrap;
}
.wissen-tab:hover { border-color: var(--green-500); color: var(--green-600); }
.wissen-tab.active { background: var(--green-500); color: #fff; border-color: var(--green-500); }

/* Progress Bar */
.wissen-progress { 
  background: var(--grey-50); border-radius: var(--radius-lg); padding: 16px 20px; 
  margin-bottom: 28px; display: flex; align-items: center; gap: 16px;
}
.wissen-progress-bar { flex: 1; height: 8px; background: var(--grey-100); border-radius: 4px; overflow: hidden; }
.wissen-progress-fill { height: 100%; background: linear-gradient(90deg, var(--green-500), var(--green-600)); border-radius: 4px; transition: width 0.5s ease; }
.wissen-progress-text { font-size: 0.85rem; color: var(--grey-400); white-space: nowrap; }
.wissen-progress-text strong { color: var(--green-600); }

/* Article Grid */
.wissen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }

/* Article Card */
.wissen-card { 
  background: var(--white); border-radius: var(--radius-lg); border: 1.5px solid var(--grey-100);
  overflow: hidden; transition: all 0.25s ease; cursor: pointer; position: relative;
}
.wissen-card:hover { border-color: var(--green-500); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.wissen-card.read { border-left: 4px solid var(--green-500); }
.wissen-card.expanded { grid-column: 1 / -1; cursor: default; transform: none; border-color: var(--green-500); }

.wissen-card-header { padding: 20px 20px 16px; display: flex; gap: 14px; align-items: flex-start; }
.wissen-card-icon { 
  width: 44px; height: 44px; min-width: 44px; border-radius: var(--radius-md); 
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--green-50), #e8f5e0);
  color: var(--green-600);
}
.wissen-card-meta { flex: 1; }
.wissen-card-meta h3 { font-size: 1rem; font-weight: 600; color: var(--dark); margin: 0 0 4px; line-height: 1.4; }
.wissen-card-meta p { font-size: 0.85rem; color: var(--grey-400); margin: 0; line-height: 1.4; }
.wissen-card-badges { display: flex; gap: 8px; padding: 0 20px 16px; }
.wissen-badge { 
  font-size: 0.75rem; padding: 3px 10px; border-radius: var(--radius-xl); 
  background: var(--grey-50); color: var(--grey-400); font-weight: 500;
}
.wissen-badge-cat { background: rgba(126,217,87,0.12); color: var(--green-700); }
.wissen-badge-read { background: rgba(126,217,87,0.2); color: var(--green-700); }

/* Expanded Content */
.wissen-content { 
  display: none; padding: 0 24px 24px; border-top: 1px solid var(--grey-100); 
  font-size: 0.925rem; line-height: 1.7; color: var(--dark);
}
.wissen-card.expanded .wissen-content { display: block; }
.wissen-content h3 { font-size: 1.15rem; font-weight: 600; margin: 24px 0 12px; color: var(--dark); }
.wissen-content h4 { font-size: 1rem; font-weight: 600; margin: 20px 0 8px; color: var(--dark); }
.wissen-content p { margin: 0 0 12px; }
.wissen-content ul, .wissen-content ol { margin: 0 0 16px; padding-left: 24px; }
.wissen-content li { margin-bottom: 6px; }
.wissen-content strong { color: var(--dark); font-weight: 600; }

/* Info Box inside content */
.wissen-info { 
  background: var(--green-50); border-left: 4px solid var(--green-500); 
  padding: 14px 18px; border-radius: 0 var(--radius-md) var(--radius-md) 0; 
  margin: 16px 0; font-size: 0.9rem;
}
.wissen-info strong { color: var(--green-700); }

.wissen-warn { 
  background: #fff8e1; border-left: 4px solid #ffc107; 
  padding: 14px 18px; border-radius: 0 var(--radius-md) var(--radius-md) 0; 
  margin: 16px 0; font-size: 0.9rem;
}

/* Tables inside content */
.wissen-content table { 
  width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.875rem;
  border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--grey-100);
}
.wissen-content th { 
  background: var(--grey-50); padding: 10px 14px; text-align: left; font-weight: 600; 
  border-bottom: 2px solid var(--grey-100); color: var(--dark); font-size: 0.85rem;
}
.wissen-content td { padding: 10px 14px; border-bottom: 1px solid var(--grey-50); }
.wissen-content tr:last-child td { border-bottom: none; }
.wissen-content tr:hover td { background: rgba(126,217,87,0.04); }

/* Collapse button */
.wissen-collapse-btn { 
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; padding: 8px 16px; border-radius: var(--radius-md); 
  background: var(--grey-50); border: 1px solid var(--grey-100); 
  cursor: pointer; font-size: 0.85rem; color: var(--grey-400); font-family: inherit;
  transition: all 0.2s;
}
.wissen-collapse-btn:hover { background: var(--grey-100); }

/* Empty State */
.wissen-empty { 
  text-align: center; padding: 60px 20px; color: var(--grey-300);
}
.wissen-empty svg { margin-bottom: 16px; opacity: 0.5; }
.wissen-empty h3 { color: var(--grey-400); margin: 0 0 8px; }
.wissen-empty p { margin: 0; }

/* Dark mode */
.dark-mode .wissen-header h1 { color: #fff; }
.dark-mode .wissen-header p { color: var(--grey-300); }
.dark-mode .wissen-search { background: var(--grey-600); border-color: var(--grey-500); color: #fff; }
.dark-mode .wissen-search::placeholder { color: var(--grey-300); }
.dark-mode .wissen-tab { background: var(--grey-600); border-color: var(--grey-500); color: var(--grey-200); }
.dark-mode .wissen-tab.active { background: var(--green-500); color: #fff; }
.dark-mode .wissen-progress { background: var(--grey-600); }
.dark-mode .wissen-card { background: var(--grey-600); border-color: var(--grey-500); }
.dark-mode .wissen-card-meta h3, .dark-mode .wissen-content h3, .dark-mode .wissen-content h4 { color: #fff; }
.dark-mode .wissen-card-meta p { color: var(--grey-200); }
.dark-mode .wissen-content { color: var(--grey-100); border-color: var(--grey-500); }
.dark-mode .wissen-content th { background: var(--grey-500); color: #fff; }
.dark-mode .wissen-content td { border-color: var(--grey-500); }
.dark-mode .wissen-badge { background: var(--grey-500); color: var(--grey-200); }
.dark-mode .wissen-info { background: rgba(126,217,87,0.1); }
.dark-mode .wissen-collapse-btn { background: var(--grey-500); border-color: var(--grey-400); color: var(--grey-200); }

/* Responsive */
@media (max-width: 768px) {
  .wissen-grid { grid-template-columns: 1fr; }
  .wissen-header h1 { font-size: 1.5rem; }
  .wissen-tabs { gap: 6px; }
  .wissen-tab { padding: 6px 14px; font-size: 0.8rem; }
  .wissen-content { padding: 0 16px 16px; font-size: 0.875rem; }
  .wissen-content table { font-size: 0.8rem; }
  .wissen-content th, .wissen-content td { padding: 8px 10px; }
}

/* ============================================================
   KUNDE EMPFEHLUNG — Clean Tunnel UI
   ============================================================ */

/* Tunnel Wrap */
.ke-tunnel-wrap {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 20px;
  padding: 40px 36px;
  margin-bottom: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.ke-tunnel-wrap > div { max-width: 520px; margin: 0 auto; }

/* Tunnel Animation & Progress */
.ke-tunnel-step { opacity: 1; transform: translateY(0); transition: opacity 0.25s ease, transform 0.25s ease; }
.ke-tunnel-step.ke-step-hidden { opacity: 0; transform: translateY(6px); pointer-events: none; }
.ke-tunnel-step.ke-step-active { opacity: 1; transform: translateY(0); }
.ke-tunnel-progress { height: 3px; background: var(--border, #e2e8f0); border-radius: 3px; margin-bottom: 32px; overflow: hidden; }
.ke-tunnel-bar { height: 100%; background: linear-gradient(90deg, #7ed957, #5cb83c); border-radius: 3px; transition: width 0.4s ease; }

/* Tunnel Header */
.ke-tunnel-header { text-align: center; margin-bottom: 28px; }
.ke-tunnel-emoji { font-size: 2.5rem; margin-bottom: 12px; }
.ke-tunnel-header h2 { font-size: 1.4rem; font-weight: 700; margin: 0 0 10px; color: var(--text-primary, #1a1a2e); }
.ke-tunnel-header p { font-size: 0.95rem; color: var(--text-secondary, #64748b); margin: 0; line-height: 1.6; }

/* Tunnel Input */
.ke-tunnel-label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text-primary, #1a1a2e); margin-bottom: 10px; text-align: center; }
.ke-tunnel-label span { font-weight: 400; color: var(--text-secondary, #94a3b8); }
.ke-tunnel-input { width: 100%; padding: 16px 20px; border: 2px solid var(--border, #e2e8f0); border-radius: 14px; font-size: 1.1rem; font-family: inherit; background: var(--card-bg, #fff); color: var(--text-primary); text-align: center; transition: border-color 0.2s, box-shadow 0.2s; outline: none; box-sizing: border-box; margin-bottom: 24px; }
.ke-tunnel-input:focus { border-color: #7ed957; box-shadow: 0 0 0 4px rgba(126,217,87,0.12); }
.ke-tunnel-input::placeholder { color: var(--text-secondary, #94a3b8); }

/* Tunnel Button */
.ke-tunnel-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 16px; background: #7ed957; color: #fff; border: none; border-radius: 14px; font-size: 1rem; font-weight: 700; cursor: pointer; font-family: inherit; transition: all 0.2s; }
.ke-tunnel-btn:hover { background: #6bc948; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(126,217,87,0.3); }
.ke-tunnel-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.ke-tunnel-btn-outline { background: none; border: 1.5px solid var(--border, #e2e8f0); color: var(--text-secondary, #64748b); margin-top: 16px; }
.ke-tunnel-btn-outline:hover { border-color: #7ed957; color: #7ed957; background: none; box-shadow: none; }

/* Tunnel Options */
.ke-tunnel-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.ke-tunnel-option { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border: 2px solid var(--border, #e2e8f0); border-radius: 14px; background: var(--card-bg, #fff); cursor: pointer; text-align: left; font-family: inherit; transition: all 0.2s; }
.ke-tunnel-option:hover { border-color: #7ed957; background: rgba(126,217,87,0.03); }
.ke-tunnel-option.selected { border-color: #7ed957; background: rgba(126,217,87,0.06); box-shadow: 0 0 0 3px rgba(126,217,87,0.12); }
.ke-tunnel-option svg { flex-shrink: 0; color: var(--text-secondary, #94a3b8); }
.ke-tunnel-option.selected svg { color: #7ed957; }
.ke-tunnel-option div { flex: 1; }
.ke-tunnel-option strong { display: block; font-size: 0.95rem; color: var(--text-primary, #1a1a2e); }
.ke-tunnel-option span { font-size: 0.82rem; color: var(--text-secondary, #94a3b8); }
.ke-tunnel-back { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; color: var(--text-secondary, #94a3b8); font-size: 0.88rem; cursor: pointer; padding: 8px 0; font-family: inherit; transition: color 0.2s; }
.ke-tunnel-back:hover { color: var(--text-primary, #1a1a2e); }

/* Result */
.ke-link-success { text-align: center; padding: 8px 0 20px; }
.ke-link-success-icon { margin-bottom: 12px; }
.ke-link-success h3 { font-size: 1.2rem; font-weight: 700; margin: 0 0 6px; color: var(--text-primary, #1a1a2e); }
.ke-link-success p { margin: 0; font-size: 0.9rem; color: var(--text-secondary, #64748b); }
.ke-link-box { display: flex; gap: 8px; margin-bottom: 16px; }
.ke-link-box input { flex: 1; padding: 12px 16px; border: 1.5px solid var(--border, #e2e8f0); border-radius: 12px; font-size: 0.85rem; background: var(--bg, #f8fafc); color: var(--text-primary); font-family: monospace; }
.ke-link-box .btn { white-space: nowrap; }
.ke-share-row { display: flex; gap: 10px; margin-bottom: 12px; }
.ke-share-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 12px; font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: all 0.2s; flex: 1; justify-content: center; }
.ke-share-whatsapp { background: #25D366; color: #fff; }
.ke-share-whatsapp:hover { background: #1ebe5a; }
.ke-share-email { background: var(--bg, #f1f5f9); color: var(--text-primary); border: 1px solid var(--border, #e2e8f0); }
.ke-share-email:hover { border-color: #7ed957; }
.ke-result-info { text-align: center; padding: 12px 16px; background: rgba(126,217,87,0.06); border-radius: 10px; margin-top: 4px; }
.ke-result-info p { margin: 0; font-size: 0.85rem; color: var(--text-secondary, #64748b); line-height: 1.5; }

/* History */
.ke-history { margin-bottom: 28px; }
.ke-history h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 16px; color: var(--text-primary, #1a1a2e); }
.ke-history-list { display: flex; flex-direction: column; gap: 12px; }

/* History Cards */
.ke-history-card { background: var(--card-bg, #fff); border: 1px solid var(--border, #e2e8f0); border-radius: 16px; padding: 20px 24px; box-shadow: 0 2px 12px rgba(0,0,0,0.04); transition: border-color 0.2s; }
.ke-history-card:hover { border-color: #7ed957; }
.ke-history-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.ke-history-name-row { display: flex; align-items: center; gap: 10px; }
.ke-history-name-row strong { font-size: 1rem; font-weight: 700; color: var(--text-primary, #1a1a2e); }
.ke-delete-btn { background: none; border: none; color: var(--text-secondary, #c4c4c4); cursor: pointer; padding: 6px; border-radius: 8px; transition: all 0.2s; }
.ke-delete-btn:hover { color: #ef4444; background: rgba(239,68,68,0.08); }
.ke-history-date { font-size: 0.8rem; color: var(--text-secondary, #94a3b8); }

/* History Actions */
.ke-history-actions { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border, #f1f5f9); }
.ke-copy-link-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--border, #e2e8f0); border-radius: 8px; padding: 6px 14px; font-size: 0.8rem; font-weight: 500; color: var(--text-secondary, #64748b); cursor: pointer; font-family: inherit; transition: all 0.2s; }
.ke-copy-link-btn:hover { border-color: #7ed957; color: #7ed957; }

/* Pipeline — modern flat */
.ke-pipeline { display: flex; align-items: center; gap: 0; position: relative; }
.ke-pipe-step { display: flex; align-items: center; gap: 8px; flex: 1; position: relative; z-index: 1; }
.ke-pipe-dot { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; background: var(--border, #e5e7eb); color: var(--text-secondary, #c4c4c4); flex-shrink: 0; transition: all 0.3s; }
.ke-pipe-step.done .ke-pipe-dot { background: #7ed957; color: #fff; }
.ke-pipe-step.active .ke-pipe-dot { box-shadow: 0 0 0 3px rgba(126,217,87,0.2); }
.ke-pipe-num { font-weight: 700; font-size: 0.65rem; }
.ke-pipe-step span { font-size: 0.8rem; font-weight: 500; color: var(--text-secondary, #94a3b8); white-space: nowrap; }
.ke-pipe-step.done span { color: #3a7d23; font-weight: 600; }
.ke-pipe-line { display: none; }

/* Responsive */
@media (max-width: 768px) {
  .ke-tunnel-wrap { padding: 28px 20px; margin-left: 0; margin-right: 0; }
  .ke-tunnel-header h2 { font-size: 1.2rem; }
  .ke-link-box { flex-direction: column; }
  .ke-share-row { flex-direction: column; }
  .ke-pipeline { flex-wrap: wrap; gap: 8px; }
  .ke-pipe-step span { font-size: 0.75rem; }
  .ke-history-card { padding: 16px 18px; }
  .ke-history { margin-left: 0; margin-right: 0; }
}

/* ============================================================
   EMPFEHLUNG LANDING PAGE (Public, ohne Login)
   ============================================================ */
.emp-landing { font-family: 'Poppins', sans-serif; color: #1a1a2e; background: #fff; }
.emp-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid #e5e7eb; }
.emp-header-inner { max-width: 1100px; margin: 0 auto; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; }
.emp-logo { font-size: 1.6rem; font-weight: 400; color: #1a1a2e; text-decoration: none; letter-spacing: -0.3px; }
.emp-header-btn { background: #7ed957; color: #fff; padding: 10px 24px; border-radius: 10px; font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: all 0.2s; }
.emp-header-btn:hover { background: #6bc948; transform: translateY(-1px); }

/* Hero */
.emp-hero { background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f8fafc 100%); padding: 80px 24px 60px; text-align: center; }
.emp-hero-content { max-width: 700px; margin: 0 auto; }
.emp-badge { display: inline-block; background: rgba(126,217,87,0.15); color: #3a7d23; padding: 8px 20px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; margin-bottom: 24px; }
.emp-hero h1 { font-size: 2.2rem; font-weight: 800; line-height: 1.3; margin: 0 0 20px; color: #1a1a2e; }
.emp-highlight { color: #7ed957; }
.emp-hero-sub { font-size: 1.1rem; color: #64748b; line-height: 1.65; margin: 0 0 32px; }
.emp-hero-cta { display: inline-flex; align-items: center; gap: 8px; background: #7ed957; color: #fff; padding: 16px 36px; border-radius: 14px; font-size: 1.05rem; font-weight: 700; text-decoration: none; transition: all 0.2s; box-shadow: 0 4px 16px rgba(126,217,87,0.3); }
.emp-hero-cta:hover { background: #6bc948; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(126,217,87,0.35); }
.emp-hero-note { margin: 20px 0 0; font-size: 0.85rem; color: #94a3b8; }

/* Sections */
.emp-section { max-width: 1100px; margin: 0 auto; padding: 60px 24px; }
.emp-section h2 { font-size: 1.6rem; font-weight: 700; text-align: center; margin: 0 0 36px; color: #1a1a2e; }
.emp-section-alt { background: #f8fafc; }

/* Personal Message from Cyrill */
.emp-personal { display: flex; gap: 28px; align-items: flex-start; max-width: 720px; margin: 0 auto; }
.emp-personal-photo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid #7ed957; }
.emp-personal h2 { font-size: 1.25rem; font-weight: 700; margin: 0 0 10px; color: #1a1a2e; }
.emp-personal p { font-size: 0.95rem; color: #64748b; line-height: 1.65; margin: 0 0 10px; }
.emp-personal p:last-child { margin: 0; }

/* Gesprächsablauf */
.emp-flow { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 0; }
.emp-flow-step { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid #f1f5f9; }
.emp-flow-step:last-child { border-bottom: none; }
.emp-flow-num { width: 36px; height: 36px; border-radius: 50%; background: #7ed957; color: #fff; font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.emp-flow-step strong { display: block; font-size: 0.95rem; color: #1a1a2e; margin-bottom: 4px; }
.emp-flow-step p { margin: 0; font-size: 0.88rem; color: #64748b; line-height: 1.5; }

@media (max-width: 768px) {
  .emp-personal { flex-direction: column; text-align: center; align-items: center; }
  .emp-personal-photo { margin: 0 auto; }
}

/* Cards grid */
.emp-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.emp-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.emp-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 28px; text-align: center; transition: all 0.2s; }
.emp-card:hover { border-color: #7ed957; box-shadow: 0 4px 20px rgba(0,0,0,0.06); transform: translateY(-2px); }
.emp-card-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.emp-card h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 8px; }
.emp-card p { font-size: 0.9rem; color: #64748b; line-height: 1.55; margin: 0; }

/* Benefits */
.emp-benefits { list-style: none; padding: 0; max-width: 600px; margin: 0 auto; }
.emp-benefits li { padding: 14px 0 14px 36px; position: relative; font-size: 1rem; color: #334155; line-height: 1.6; border-bottom: 1px solid #f1f5f9; }
.emp-benefits li:last-child { border-bottom: none; }
.emp-benefits li::before { content: '✓'; position: absolute; left: 0; color: #7ed957; font-weight: 700; font-size: 1.1rem; }

/* Testimonials */
.emp-testimonial { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 28px; }
.emp-stars { color: #f59e0b; font-size: 1.1rem; margin-bottom: 12px; letter-spacing: 2px; }
.emp-testimonial p { font-size: 0.95rem; color: #334155; line-height: 1.6; margin: 0 0 12px; font-style: italic; }
.emp-testimonial-name { font-size: 0.85rem; color: #94a3b8; font-weight: 500; }

/* CTA Section */
.emp-cta-section { padding: 80px 24px; background: linear-gradient(135deg, #f0fdf4, #ecfdf5); }
.emp-cta-card { max-width: 560px; margin: 0 auto; background: #fff; border-radius: 20px; padding: 40px; box-shadow: 0 8px 40px rgba(0,0,0,0.08); text-align: center; }
.emp-cta-card h2 { font-size: 1.4rem; margin: 0 0 12px; }
.emp-cta-card > p { color: #64748b; font-size: 0.95rem; margin: 0 0 28px; }
.emp-register-form input { width: 100%; padding: 14px 18px; border: 2px solid #e5e7eb; border-radius: 12px; font-size: 0.95rem; font-family: inherit; margin-bottom: 12px; box-sizing: border-box; transition: border-color 0.2s; }
.emp-register-form input:focus { outline: none; border-color: #7ed957; box-shadow: 0 0 0 3px rgba(126,217,87,0.12); }
.emp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.emp-cta-btn { width: 100%; padding: 16px; background: #7ed957; color: #fff; border: none; border-radius: 12px; font-size: 1rem; font-weight: 700; cursor: pointer; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.2s; margin-top: 4px; }
.emp-cta-btn:hover { background: #6bc948; transform: translateY(-1px); }
.emp-cta-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.emp-cta-note { margin: 24px 0 0; font-size: 0.82rem; color: #94a3b8; }

/* Team Hero Photo */
.emp-team-hero { width: 100%; max-width: 600px; height: auto; border-radius: 16px; display: block; margin: 0 auto 32px; object-fit: cover; box-shadow: 0 4px 24px rgba(0,0,0,0.08); }

/* Footer */
.emp-footer { text-align: center; padding: 32px 24px; color: #94a3b8; font-size: 0.85rem; border-top: 1px solid #e5e7eb; }

/* Responsive */
@media (max-width: 768px) {
  .emp-hero { padding: 48px 20px 40px; }
  .emp-hero h1 { font-size: 1.6rem; }
  .emp-hero-sub { font-size: 0.95rem; }
  .emp-hero-cta { padding: 14px 28px; font-size: 0.95rem; }
  .emp-grid-3 { grid-template-columns: 1fr; }
  .emp-grid-2 { grid-template-columns: 1fr; }
  .emp-section { padding: 40px 20px; }
  .emp-cta-card { padding: 28px 20px; }
  .emp-form-row { grid-template-columns: 1fr; }
  .emp-cta-section { padding: 48px 20px; }
}

/* ============================================================
   EMPFEHLUNG DARK MODE
   ============================================================ */
/* Landing wrapper */
body.dark-mode .emp-landing { color: #e2e8f0; background: #0f172a; }

/* Header */
body.dark-mode .emp-header { background: rgba(15,23,42,0.95); border-bottom-color: #334155; }
body.dark-mode .emp-logo { color: #e2e8f0; }

/* Hero */
body.dark-mode .emp-hero { background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%); }
body.dark-mode .emp-badge { background: rgba(126,217,87,0.12); color: #7ed957; }
body.dark-mode .emp-hero h1 { color: #e2e8f0; }
body.dark-mode .emp-hero-sub { color: #94a3b8; }
body.dark-mode .emp-hero-note { color: #64748b; }

/* Sections */
body.dark-mode .emp-section h2 { color: #e2e8f0; }
body.dark-mode .emp-section-alt { background: #1e293b; }

/* Personal Message */
body.dark-mode .emp-personal h2 { color: #e2e8f0; }
body.dark-mode .emp-personal p { color: #94a3b8; }

/* Flow Steps */
body.dark-mode .emp-flow-step { border-bottom-color: #334155; }
body.dark-mode .emp-flow-step strong { color: #e2e8f0; }
body.dark-mode .emp-flow-step p { color: #94a3b8; }

/* Cards */
body.dark-mode .emp-card { background: #1e293b; border-color: #334155; }
body.dark-mode .emp-card:hover { border-color: #7ed957; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
body.dark-mode .emp-card h3 { color: #e2e8f0; }
body.dark-mode .emp-card p { color: #94a3b8; }

/* Benefits */
body.dark-mode .emp-benefits li { color: #e2e8f0; border-bottom-color: #334155; }

/* Testimonials */
body.dark-mode .emp-testimonial { background: #1e293b; border-color: #334155; }
body.dark-mode .emp-testimonial p { color: #e2e8f0; }
body.dark-mode .emp-testimonial-name { color: #64748b; }

/* CTA Section */
body.dark-mode .emp-cta-section { background: linear-gradient(135deg, #0f172a, #1e293b); }
body.dark-mode .emp-cta-card { background: #1e293b; box-shadow: 0 8px 40px rgba(0,0,0,0.3); }
body.dark-mode .emp-cta-card h2 { color: #e2e8f0; }
body.dark-mode .emp-cta-card > p { color: #94a3b8; }
body.dark-mode .emp-cta-note { color: #64748b; }

/* Register Form */
body.dark-mode .emp-register-form input { background: #0f172a; border-color: #334155; color: #e2e8f0; }
body.dark-mode .emp-register-form input::placeholder { color: #64748b; }
body.dark-mode .emp-register-form input:focus { border-color: #7ed957; box-shadow: 0 0 0 3px rgba(126,217,87,0.15); }

/* Team Hero Photo */
body.dark-mode .emp-team-hero { box-shadow: 0 4px 24px rgba(0,0,0,0.3); }

/* Footer */
body.dark-mode .emp-footer { color: #64748b; border-top-color: #334155; }

/* ============================================================
   WISSENSBIBLIOTHEK
   ============================================================ */
.wissen-container { max-width: 1200px; margin: 0 auto; }
.wissen-header { margin-bottom: 32px; }
.wissen-header h1 { font-size: 2rem; font-weight: 700; color: var(--dark); margin: 0 0 8px; }
.wissen-header p { color: var(--grey-400); font-size: 1rem; margin: 0; }
.wissen-search-wrap { position: relative; margin-bottom: 24px; }
.wissen-search { width: 100%; padding: 14px 16px 14px 48px; border: 2px solid var(--grey-100); border-radius: var(--radius-lg); font-size: 1rem; font-family: inherit; background: var(--white); transition: border-color 0.2s, box-shadow 0.2s; box-sizing: border-box; }
.wissen-search:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(126,217,87,0.15); }
.wissen-search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--grey-300); pointer-events: none; }
.wissen-search-clear { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--grey-300); cursor: pointer; padding: 4px; display: none; font-size: 1.1rem; }
.wissen-search-clear.visible { display: block; }
.wissen-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.wissen-tab { padding: 8px 18px; border-radius: var(--radius-xl); border: 1.5px solid var(--grey-100); background: var(--white); color: var(--grey-400); font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: all 0.2s; font-family: inherit; white-space: nowrap; }
.wissen-tab:hover { border-color: var(--green-500); color: var(--green-600); }
.wissen-tab.active { background: var(--green-500); color: #fff; border-color: var(--green-500); }
.wissen-tab small { opacity: 0.7; }
.wissen-progress { background: var(--grey-50); border-radius: var(--radius-lg); padding: 16px 20px; margin-bottom: 28px; display: flex; align-items: center; gap: 16px; }
.wissen-progress-bar { flex: 1; height: 8px; background: var(--grey-100); border-radius: 4px; overflow: hidden; }
.wissen-progress-fill { height: 100%; background: linear-gradient(90deg, var(--green-500), var(--green-600)); border-radius: 4px; transition: width 0.5s ease; }
.wissen-progress-text { font-size: 0.85rem; color: var(--grey-400); white-space: nowrap; }
.wissen-progress-text strong { color: var(--green-600); }
.wissen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.wissen-card { background: var(--white); border-radius: var(--radius-lg); border: 1.5px solid var(--grey-100); overflow: hidden; transition: all 0.25s ease; cursor: pointer; position: relative; }
.wissen-card:hover { border-color: var(--green-500); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.wissen-card.read { border-left: 4px solid var(--green-500); }
.wissen-card.expanded { grid-column: 1 / -1; cursor: default; transform: none; border-color: var(--green-500); }
.wissen-card-header { padding: 20px 20px 16px; display: flex; gap: 14px; align-items: flex-start; }
.wissen-card-icon { width: 44px; height: 44px; min-width: 44px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--green-50), #e8f5e0); color: var(--green-600); }
.wissen-card-meta { flex: 1; }
.wissen-card-meta h3 { font-size: 1rem; font-weight: 600; color: var(--dark); margin: 0 0 4px; line-height: 1.4; }
.wissen-card-meta p { font-size: 0.85rem; color: var(--grey-400); margin: 0; line-height: 1.4; }
.wissen-card-badges { display: flex; gap: 8px; padding: 0 20px 16px; flex-wrap: wrap; }
.wissen-badge { font-size: 0.75rem; padding: 3px 10px; border-radius: var(--radius-xl); background: var(--grey-50); color: var(--grey-400); font-weight: 500; }
.wissen-badge-cat { background: rgba(126,217,87,0.12); color: var(--green-700); }
.wissen-badge-read { background: rgba(126,217,87,0.2); color: var(--green-700); }
.wissen-content { display: none; padding: 0 24px 24px; border-top: 1px solid var(--grey-100); font-size: 0.925rem; line-height: 1.7; color: var(--dark); }
.wissen-card.expanded .wissen-content { display: block; padding-top: 20px; }
.wissen-content h3 { font-size: 1.15rem; font-weight: 600; margin: 24px 0 12px; color: var(--dark); }
.wissen-content h3:first-child { margin-top: 0; }
.wissen-content h4 { font-size: 1rem; font-weight: 600; margin: 20px 0 8px; color: var(--dark); }
.wissen-content p { margin: 0 0 12px; }
.wissen-content ul, .wissen-content ol { margin: 0 0 16px; padding-left: 24px; }
.wissen-content li { margin-bottom: 6px; }
.wissen-content strong { color: var(--dark); font-weight: 600; }
.wissen-info { background: var(--green-50); border-left: 4px solid var(--green-500); padding: 14px 18px; border-radius: 0 var(--radius-md) var(--radius-md) 0; margin: 16px 0; font-size: 0.9rem; }
.wissen-info strong { color: var(--green-700); }
.wissen-warn { background: #fff8e1; border-left: 4px solid #ffc107; padding: 14px 18px; border-radius: 0 var(--radius-md) var(--radius-md) 0; margin: 16px 0; font-size: 0.9rem; }
.wissen-content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.875rem; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--grey-100); }
.wissen-content th { background: var(--grey-50); padding: 10px 14px; text-align: left; font-weight: 600; border-bottom: 2px solid var(--grey-100); color: var(--dark); font-size: 0.85rem; }
.wissen-content td { padding: 10px 14px; border-bottom: 1px solid var(--grey-50); }
.wissen-content tr:last-child td { border-bottom: none; }
.wissen-content tr:hover td { background: rgba(126,217,87,0.04); }
.wissen-collapse-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; padding: 8px 16px; border-radius: var(--radius-md); background: var(--grey-50); border: 1px solid var(--grey-100); cursor: pointer; font-size: 0.85rem; color: var(--grey-400); font-family: inherit; transition: all 0.2s; }
.wissen-collapse-btn:hover { background: var(--grey-100); }
.wissen-empty { text-align: center; padding: 60px 20px; color: var(--grey-300); }
.wissen-empty svg { margin-bottom: 16px; opacity: 0.5; }
.wissen-empty h3 { color: var(--grey-400); margin: 0 0 8px; }
.wissen-empty p { margin: 0; }
.dark-mode .wissen-header h1 { color: #fff; }
.dark-mode .wissen-header p { color: var(--grey-300); }
.dark-mode .wissen-search { background: var(--grey-600); border-color: var(--grey-500); color: #fff; }
.dark-mode .wissen-search::placeholder { color: var(--grey-300); }
.dark-mode .wissen-tab { background: var(--grey-600); border-color: var(--grey-500); color: var(--grey-200); }
.dark-mode .wissen-tab.active { background: var(--green-500); color: #fff; }
.dark-mode .wissen-progress { background: var(--grey-600); }
.dark-mode .wissen-card { background: var(--grey-600); border-color: var(--grey-500); }
.dark-mode .wissen-card-meta h3, .dark-mode .wissen-content h3, .dark-mode .wissen-content h4 { color: #fff; }
.dark-mode .wissen-card-meta p { color: var(--grey-200); }
.dark-mode .wissen-content { color: var(--grey-100); border-color: var(--grey-500); }
.dark-mode .wissen-content strong { color: #fff; }
.dark-mode .wissen-content th { background: var(--grey-500); color: #fff; border-color: var(--grey-400); }
.dark-mode .wissen-content td { border-color: var(--grey-500); }
.dark-mode .wissen-badge { background: var(--grey-500); color: var(--grey-200); }
.dark-mode .wissen-info { background: rgba(126,217,87,0.1); }
.dark-mode .wissen-warn { background: rgba(255,193,7,0.1); }
.dark-mode .wissen-collapse-btn { background: var(--grey-500); border-color: var(--grey-400); color: var(--grey-200); }
@media (max-width: 768px) {
  .wissen-grid { grid-template-columns: 1fr; }
  .wissen-header h1 { font-size: 1.5rem; }
  .wissen-tabs { gap: 6px; }
  .wissen-tab { padding: 6px 14px; font-size: 0.8rem; }
  .wissen-content { padding: 0 16px 16px; font-size: 0.875rem; }
  .wissen-content table { font-size: 0.8rem; }
  .wissen-content th, .wissen-content td { padding: 8px 10px; }
  .wissen-progress { flex-direction: column; gap: 8px; align-items: stretch; }
}

/* Wissensbibliothek Search Highlights */
.wissen-highlight { background: rgba(126,217,87,0.35); color: inherit; padding: 1px 2px; border-radius: 3px; font-weight: inherit; }
.dark-mode .wissen-highlight { background: rgba(126,217,87,0.3); }

/* ============================================================
   ADMIN PORTFOLIOS REDESIGN (ap- prefix)
   ============================================================ */

/* Segment Control Tabs */
.ap-tabs { display:flex; background:#f1f5f9; border-radius:10px; padding:3px; gap:2px; margin-bottom:24px; }
.ap-tab-btn { flex:1; padding:9px 16px; border:none; background:transparent; border-radius:8px; font-weight:600; font-size:0.88rem; cursor:pointer; transition:all 0.2s; color:#64748b; white-space:nowrap; }
.ap-tab-btn:hover { color:#374151; }
.ap-tab-btn.active { background:#fff; color:#1a1a2e; box-shadow:0 1px 3px rgba(0,0,0,0.1); }

/* Section Header */
.ap-section-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
.ap-section-header h3 { margin:0; font-size:1.05rem; font-weight:700; color:#1a1a2e; }
.ap-count { font-weight:400; color:#94a3b8; font-size:0.9rem; margin-left:6px; }

/* Buttons */
.ap-btn { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; border-radius:8px; font-weight:600; font-size:0.85rem; cursor:pointer; transition:all 0.15s; border:none; font-family:inherit; line-height:1.4; }
.ap-btn-primary { background:#7ed957; color:#fff; }
.ap-btn-primary:hover { background:#6bc348; }
.ap-btn-ghost { background:transparent; border:1px solid #e2e8f0; color:#374151; }
.ap-btn-ghost:hover { background:#f8fafc; border-color:#cbd5e1; }
.ap-btn-danger { background:transparent; color:#ef4444; border:1px solid #fecaca; }
.ap-btn-danger:hover { background:#fef2f2; }
.ap-btn-sm { padding:6px 12px; font-size:0.8rem; }
.ap-btn-xs { padding:4px 8px; font-size:0.75rem; }
.ap-btn:disabled { opacity:0.4; cursor:not-allowed; }
.ap-btn-icon { padding:6px; width:32px; height:32px; display:inline-flex; align-items:center; justify-content:center; border-radius:8px; border:1px solid #e2e8f0; background:transparent; color:#64748b; cursor:pointer; transition:all 0.15s; font-size:0.85rem; }
.ap-btn-icon:hover { background:#f8fafc; color:#374151; }
.ap-btn-icon:disabled { opacity:0.3; cursor:not-allowed; }

/* Mantel List Items */
.ap-mantel-list { display:flex; flex-direction:column; gap:2px; }
.ap-mantel-item { display:flex; align-items:center; gap:16px; padding:14px 18px; background:#fff; border:1px solid #f1f5f9; border-radius:10px; transition:all 0.15s; }
.ap-mantel-item:hover { border-color:#e2e8f0; box-shadow:0 2px 8px rgba(0,0,0,0.04); }
.ap-mantel-rank { display:flex; flex-direction:column; align-items:center; gap:2px; min-width:28px; }
.ap-mantel-rank-num { font-size:0.72rem; color:#94a3b8; font-weight:600; }
.ap-mantel-info { flex:1; min-width:0; }
.ap-mantel-title-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.ap-mantel-logo { height:20px; width:auto; flex-shrink:0; }
.ap-mantel-title { font-weight:700; font-size:0.95rem; color:#1a1a2e; }
.ap-badge { font-size:0.68rem; font-weight:600; padding:2px 8px; border-radius:6px; white-space:nowrap; }
.ap-badge-active { background:#ecfdf5; color:#059669; }
.ap-badge-new { background:#fff7ed; color:#ea580c; }
.ap-badge-type { background:#f0f9ff; color:#0284c7; }
.ap-mantel-desc { font-size:0.83rem; color:#64748b; margin-top:3px; line-height:1.4; }
.ap-mantel-meta { font-size:0.78rem; color:#94a3b8; margin-top:4px; display:flex; gap:12px; flex-wrap:wrap; }
.ap-mantel-actions { display:flex; gap:6px; flex-shrink:0; }

/* Portfolio Groups */
.ap-portfolio-group { margin-bottom:20px; }
.ap-portfolio-group-header { display:flex; align-items:center; gap:8px; padding:10px 0; margin-bottom:8px; border-bottom:1px solid #f1f5f9; }
.ap-portfolio-group-logo { height:18px; }
.ap-portfolio-group-title { font-weight:700; font-size:0.9rem; color:#374151; }
.ap-portfolio-group-count { font-weight:400; color:#94a3b8; font-size:0.82rem; }

/* Portfolio Cards */
.ap-portfolio-list { display:flex; flex-direction:column; gap:2px; }
.ap-portfolio-item { display:flex; align-items:flex-start; gap:14px; padding:12px 16px; background:#fff; border:1px solid #f1f5f9; border-radius:10px; transition:all 0.15s; }
.ap-portfolio-item:hover { border-color:#e2e8f0; box-shadow:0 2px 8px rgba(0,0,0,0.04); }
.ap-portfolio-info { flex:1; min-width:0; }
.ap-portfolio-title-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.ap-portfolio-title { font-weight:700; font-size:0.9rem; color:#1a1a2e; }
.ap-portfolio-meta { font-size:0.78rem; color:#94a3b8; margin-top:3px; }
.ap-portfolio-funds { display:flex; flex-wrap:wrap; gap:4px; margin-top:6px; }
.ap-portfolio-fund-tag { font-size:0.7rem; background:#f8fafc; color:#475569; padding:3px 8px; border-radius:5px; border:1px solid #f1f5f9; }
.ap-portfolio-actions { display:flex; gap:6px; flex-shrink:0; }

/* Modal */
.ap-modal-overlay { display:none; position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(15,23,42,0.4); backdrop-filter:blur(4px); z-index:1000; overflow-y:auto; }
.ap-modal { max-width:640px; margin:40px auto; background:#fff; border-radius:14px; overflow:hidden; position:relative; box-shadow:0 20px 60px rgba(0,0,0,0.15); }
.ap-modal-lg { max-width:720px; }
.ap-modal-header { display:flex; justify-content:space-between; align-items:center; padding:20px 24px 0; }
.ap-modal-header h3 { margin:0; font-size:1.05rem; font-weight:700; color:#1a1a2e; }
.ap-modal-close { width:32px; height:32px; border-radius:8px; border:none; background:#f1f5f9; color:#64748b; font-size:1.1rem; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all 0.15s; }
.ap-modal-close:hover { background:#e2e8f0; color:#1a1a2e; }
.ap-modal-body { padding:20px 24px 24px; }

/* Form fields */
.ap-form-group { margin-bottom:14px; }
.ap-form-label { font-size:0.78rem; font-weight:600; color:#374151; display:block; margin-bottom:4px; }
.ap-form-row { display:grid; gap:12px; }
.ap-form-row-2 { grid-template-columns:1fr 1fr; }
.ap-form-row-3 { grid-template-columns:1fr 1fr 1fr; }
.ap-form-row-rank { grid-template-columns:80px 1fr; }
.ap-form-section { margin-top:18px; padding-top:16px; border-top:1px solid #f1f5f9; }
.ap-form-section-title { font-size:0.82rem; font-weight:700; color:#374151; margin-bottom:12px; display:flex; align-items:center; gap:8px; }
.ap-form-actions { display:flex; gap:8px; justify-content:flex-end; margin-top:20px; padding-top:16px; border-top:1px solid #f1f5f9; }
.ap-form-input { width:100%; padding:9px 12px; border:1px solid #e2e8f0; border-radius:8px; font-size:0.88rem; outline:none; background:#fff; font-family:inherit; box-sizing:border-box; color:#1a1a2e; transition:border-color 0.15s, box-shadow 0.15s; }
.ap-form-input:focus { border-color:#7ed957; box-shadow:0 0 0 3px rgba(126,217,87,0.15); }
.ap-form-input::placeholder { color:#94a3b8; }
textarea.ap-form-input { resize:vertical; }
select.ap-form-input { cursor:pointer; }
.ap-checkbox-row { display:flex; gap:20px; margin-top:4px; }
.ap-checkbox-label { display:flex; align-items:center; gap:6px; font-size:0.85rem; cursor:pointer; color:#374151; }

/* Fund rows in portfolio modal */
.ap-fund-card { background:#f8fafc; border-radius:8px; padding:12px; margin-bottom:8px; border:1px solid #f1f5f9; }
.ap-fund-card-row { display:grid; gap:8px; }
.ap-fund-card-row-2 { grid-template-columns:1fr 1fr; }
.ap-fund-card-row-5 { grid-template-columns:1fr 1fr 1fr 1fr auto; }
.ap-fund-card .ap-form-label { font-size:0.72rem; }
.ap-fund-card .ap-form-input { font-size:0.83rem; padding:6px 10px; }

/* Ablauf Table */
.ap-ablauf-table { width:100%; border-collapse:separate; border-spacing:0; background:#fff; border-radius:10px; overflow:hidden; border:1px solid #f1f5f9; }
.ap-ablauf-table thead { background:#f8fafc; }
.ap-ablauf-table th { padding:10px 12px; font-size:0.78rem; font-weight:600; color:#64748b; text-align:center; border-bottom:1px solid #f1f5f9; }
.ap-ablauf-table th:first-child { text-align:left; min-width:140px; }
.ap-ablauf-table td { padding:6px 8px; text-align:center; border-bottom:1px solid #f8fafc; }
.ap-ablauf-table td:first-child { text-align:left; }
.ap-ablauf-table tr:last-child td { border-bottom:none; }
.ap-ablauf-table tr:hover td { background:#fafbfc; }
.ap-ablauf-table .ap-form-input { text-align:center; width:60px; padding:5px 6px; font-size:0.82rem; }
.ap-ablauf-table td:first-child .ap-form-input { text-align:left; width:100%; font-weight:600; }
.ap-ablauf-actions { display:flex; gap:8px; margin-top:14px; }
.ap-ablauf-risk-tabs { display:flex; background:#f1f5f9; border-radius:8px; padding:2px; gap:2px; margin-bottom:16px; max-width:360px; }
.ap-ablauf-risk-tab { flex:1; padding:7px 14px; border:none; background:transparent; border-radius:6px; font-weight:600; font-size:0.82rem; cursor:pointer; transition:all 0.2s; color:#64748b; }
.ap-ablauf-risk-tab:hover { color:#374151; }
.ap-ablauf-risk-tab.active { background:#fff; color:#1a1a2e; box-shadow:0 1px 2px rgba(0,0,0,0.08); }

/* Empty state */
.ap-empty { color:#94a3b8; font-size:0.88rem; padding:20px 0; }

/* Dark mode */
body.dark-mode .ap-tabs { background:#1e293b; }
body.dark-mode .ap-tab-btn { color:#94a3b8; }
body.dark-mode .ap-tab-btn:hover { color:#cbd5e1; }
body.dark-mode .ap-tab-btn.active { background:#334155; color:#f1f5f9; box-shadow:0 1px 3px rgba(0,0,0,0.3); }
body.dark-mode .ap-mantel-item,
body.dark-mode .ap-portfolio-item { background:#1e293b; border-color:#334155; }
body.dark-mode .ap-mantel-item:hover,
body.dark-mode .ap-portfolio-item:hover { border-color:#475569; }
body.dark-mode .ap-mantel-title,
body.dark-mode .ap-portfolio-title { color:#f1f5f9; }
body.dark-mode .ap-mantel-desc { color:#94a3b8; }
body.dark-mode .ap-mantel-meta,
body.dark-mode .ap-portfolio-meta { color:#64748b; }
body.dark-mode .ap-section-header h3 { color:#f1f5f9; }
body.dark-mode .ap-modal { background:#1e293b; }
body.dark-mode .ap-modal-header h3 { color:#f1f5f9; }
body.dark-mode .ap-modal-close { background:#334155; color:#94a3b8; }
body.dark-mode .ap-modal-close:hover { background:#475569; color:#f1f5f9; }
body.dark-mode .ap-form-input { background:#0f172a; border-color:#334155; color:#e2e8f0; }
body.dark-mode .ap-form-input:focus { border-color:#7ed957; box-shadow:0 0 0 3px rgba(126,217,87,0.1); }
body.dark-mode .ap-form-label { color:#cbd5e1; }
body.dark-mode .ap-form-section { border-top-color:#334155; }
body.dark-mode .ap-form-actions { border-top-color:#334155; }
body.dark-mode .ap-btn-ghost { border-color:#475569; color:#cbd5e1; }
body.dark-mode .ap-btn-ghost:hover { background:#334155; }
body.dark-mode .ap-btn-danger { border-color:#7f1d1d; color:#f87171; }
body.dark-mode .ap-btn-danger:hover { background:#1c1917; }
body.dark-mode .ap-btn-icon { border-color:#475569; color:#94a3b8; }
body.dark-mode .ap-btn-icon:hover { background:#334155; color:#e2e8f0; }
body.dark-mode .ap-fund-card { background:#0f172a; border-color:#334155; }
body.dark-mode .ap-portfolio-fund-tag { background:#0f172a; border-color:#334155; color:#94a3b8; }
body.dark-mode .ap-portfolio-group-header { border-bottom-color:#334155; }
body.dark-mode .ap-portfolio-group-title { color:#e2e8f0; }
body.dark-mode .ap-ablauf-table { background:#1e293b; border-color:#334155; }
body.dark-mode .ap-ablauf-table thead { background:#0f172a; }
body.dark-mode .ap-ablauf-table th { color:#94a3b8; border-bottom-color:#334155; }
body.dark-mode .ap-ablauf-table td { border-bottom-color:#1e293b; }
body.dark-mode .ap-ablauf-table tr:hover td { background:#334155; }
body.dark-mode .ap-ablauf-risk-tabs { background:#1e293b; }
body.dark-mode .ap-ablauf-risk-tab { color:#94a3b8; }
body.dark-mode .ap-ablauf-risk-tab.active { background:#334155; color:#f1f5f9; }
body.dark-mode .ap-badge-active { background:rgba(5,150,105,0.15); color:#34d399; }
body.dark-mode .ap-badge-new { background:rgba(234,88,12,0.15); color:#fb923c; }
body.dark-mode .ap-badge-type { background:rgba(2,132,199,0.15); color:#38bdf8; }

/* Responsive */
@media (max-width:768px) {
  .ap-tabs { flex-direction:column; }
  .ap-mantel-item { flex-direction:column; gap:10px; align-items:stretch; }
  .ap-mantel-actions { justify-content:flex-end; }
  .ap-portfolio-item { flex-direction:column; gap:8px; align-items:stretch; }
  .ap-portfolio-actions { justify-content:flex-end; }
  .ap-form-row-2, .ap-form-row-3, .ap-form-row-rank { grid-template-columns:1fr; }
  .ap-fund-card-row-5 { grid-template-columns:1fr 1fr; }
  .ap-modal { margin:16px; border-radius:12px; }
  .ap-ablauf-table { font-size:0.8rem; }
}

/* ============================================================
   COMMUNITY — Reddit-Style Forum
   ============================================================ */

/* Layout */
.community-layout { display:flex; gap:20px; max-width:980px; margin:0 auto; padding:20px 16px; }
.community-main { flex:1; min-width:0; }
.community-sidebar-right { width:280px; flex-shrink:0; position:sticky; top:20px; align-self:flex-start; }

/* Header */
.community-header {
  background:linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-radius:16px; padding:28px 32px; margin-bottom:20px; color:#fff;
  position:relative; overflow:hidden;
}
.community-header::before {
  content:''; position:absolute; top:-30px; right:-30px; width:120px; height:120px;
  background:rgba(126,217,87,0.15); border-radius:50%; filter:blur(40px);
}
.community-title { font-size:1.6rem; font-weight:800; margin:0 0 4px; color:#fff; }
.community-subtitle { font-size:0.88rem; color:rgba(255,255,255,0.6); margin:0; }
.community-member-count {
  display:inline-flex; align-items:center; gap:6px; margin-top:10px;
  font-size:0.8rem; color:rgba(255,255,255,0.5); background:rgba(255,255,255,0.08);
  padding:4px 12px; border-radius:20px;
}
.community-member-count .dot { width:6px; height:6px; border-radius:50%; background:#7ed957; }

/* Sort Tabs */
.community-sort-bar {
  display:flex; align-items:center; gap:4px; background:#fff; border-radius:12px;
  padding:8px 12px; margin-bottom:16px; border:1px solid #e2e8f0;
}
.community-sort-btn {
  padding:6px 14px; border-radius:8px; border:none; background:transparent;
  font-size:0.82rem; font-weight:500; color:#64748b; cursor:pointer;
  transition:all 0.15s; font-family:inherit;
}
.community-sort-btn:hover { background:#f1f5f9; color:#1e293b; }
.community-sort-btn.active { background:#1e293b; color:#fff; font-weight:600; }
.community-sort-divider { width:1px; height:20px; background:#e2e8f0; margin:0 4px; }

/* Tag Filter Chips */
.community-tags {
  display:flex; gap:6px; overflow-x:auto; padding-bottom:4px; margin-bottom:16px;
  scrollbar-width:none; -ms-overflow-style:none;
}
.community-tags::-webkit-scrollbar { display:none; }
.community-tag-chip {
  padding:5px 12px; border-radius:16px; border:1px solid #e2e8f0; background:#fff;
  font-size:0.78rem; font-weight:500; color:#64748b; cursor:pointer; white-space:nowrap;
  transition:all 0.15s; font-family:inherit;
}
.community-tag-chip:hover { border-color:#7ed957; color:#1e293b; background:#f0fdf4; }
.community-tag-chip.active { background:#7ed957; color:#fff; border-color:#7ed957; }

/* New Post Button & Form */
.community-create-bar {
  display:flex; align-items:center; gap:12px; background:#fff; border-radius:12px;
  padding:12px 16px; margin-bottom:16px; border:1px solid #e2e8f0; cursor:pointer;
  transition:border-color 0.2s;
}
.community-create-bar:hover { border-color:#7ed957; }
.community-create-bar input {
  flex:1; border:none; outline:none; font-size:0.9rem; color:#64748b;
  background:transparent; font-family:inherit; cursor:pointer;
}
.community-create-form {
  background:#fff; border-radius:16px; padding:24px; margin-bottom:16px;
  border:1px solid #e2e8f0; box-shadow:0 4px 20px rgba(0,0,0,0.06);
}
.community-create-form input[type="text"] {
  width:100%; border:1px solid #e2e8f0; border-radius:10px; padding:12px 16px;
  font-size:1rem; font-weight:600; font-family:inherit; margin-bottom:12px;
  transition:border-color 0.2s;
}
.community-create-form input[type="text"]:focus { outline:none; border-color:#7ed957; }
.community-create-form textarea {
  width:100%; border:1px solid #e2e8f0; border-radius:10px; padding:12px 16px;
  font-size:0.9rem; font-family:inherit; resize:vertical; min-height:100px;
  transition:border-color 0.2s;
}
.community-create-form textarea:focus { outline:none; border-color:#7ed957; }
.community-create-form-footer {
  display:flex; justify-content:space-between; align-items:center; margin-top:12px; gap:12px;
}
.community-create-form-footer select {
  padding:8px 12px; border-radius:8px; border:1px solid #e2e8f0; font-size:0.82rem;
  color:#475569; font-family:inherit; background:#f8fafc; cursor:pointer;
}
.community-create-form-actions { display:flex; gap:8px; margin-left:auto; }

/* Avatar */
.community-avatar {
  width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  color:#fff; font-weight:700; font-size:0.85rem; flex-shrink:0; background-size:cover;
  background-position:center; overflow:hidden;
}
.community-avatar img { width:100%; height:100%; object-fit:cover; display:block; }

/* Post Card — Reddit Style */
.community-post {
  display:flex; gap:0; background:#fff; border-radius:12px; margin-bottom:12px;
  border:1px solid #e2e8f0; overflow:hidden; transition:border-color 0.2s;
}
.community-post:hover { border-color:#cbd5e1; }

/* Vote Column */
.community-vote-col {
  display:flex; flex-direction:column; align-items:center; padding:16px 14px;
  background:#f8fafc; min-width:64px; gap:4px;
}
.community-vote-btn {
  background:none; border:none; cursor:pointer; padding:6px; border-radius:6px;
  color:#94a3b8; transition:all 0.15s; display:flex; align-items:center; justify-content:center;
}
.community-vote-btn:hover { background:#e2e8f0; }
.community-vote-btn.upvoted { color:#7ed957; background:rgba(126,217,87,0.1); }
.community-vote-btn.downvoted { color:#ef4444; background:rgba(239,68,68,0.1); }
.community-vote-score {
  font-size:0.95rem; font-weight:800; color:#1e293b; padding:2px 0;
  min-width:24px; text-align:center;
}

/* Post Content */
.community-post-content { flex:1; padding:12px 16px 12px 12px; min-width:0; }
.community-post-top {
  display:flex; align-items:center; gap:6px; margin-bottom:6px; flex-wrap:wrap;
}
.community-post-author {
  font-size:0.78rem; color:#64748b;
}
.community-post-author strong { color:#1e293b; font-weight:600; }
.community-post-dot { width:3px; height:3px; border-radius:50%; background:#cbd5e1; flex-shrink:0; }
.community-post-time { font-size:0.75rem; color:#94a3b8; }
.community-post-tag {
  font-size:0.7rem; font-weight:600; padding:2px 8px; border-radius:10px;
  background:#f1f5f9; color:#475569;
}
.community-post-title {
  font-size:1.05rem; font-weight:700; color:#1e293b; margin:0 0 6px;
  line-height:1.35; cursor:pointer;
}
.community-post-title:hover { color:#7ed957; }
.community-post-body {
  font-size:0.88rem; color:#475569; line-height:1.6; word-break:break-word;
  white-space:pre-wrap; max-height:200px; overflow:hidden; position:relative;
}
.community-post-body.expanded { max-height:none; }
.community-post-body-fade {
  position:absolute; bottom:0; left:0; right:0; height:60px;
  background:linear-gradient(transparent, #fff); pointer-events:none;
}
.community-post-expand {
  font-size:0.8rem; color:#7ed957; cursor:pointer; font-weight:600;
  margin-top:4px; background:none; border:none; padding:0; font-family:inherit;
}
.community-post-expand:hover { text-decoration:underline; }
.community-edited { font-size:0.72rem; color:#94a3b8; font-style:italic; margin-left:4px; }

/* Post Footer */
.community-post-footer {
  display:flex; align-items:center; gap:4px; margin-top:10px; flex-wrap:wrap;
}
.community-post-action {
  display:flex; align-items:center; gap:5px; padding:5px 10px; border-radius:6px;
  font-size:0.78rem; color:#64748b; cursor:pointer; border:none; background:none;
  font-family:inherit; transition:background 0.15s; font-weight:500;
}
.community-post-action:hover { background:#f1f5f9; color:#1e293b; }
.community-post-action svg { flex-shrink:0; }

/* Admin Actions */
.community-admin-actions { margin-left:auto; display:flex; gap:2px; }
.community-admin-btn {
  background:none; border:none; cursor:pointer; padding:5px; border-radius:6px;
  color:#94a3b8; transition:all 0.15s; display:flex;
}
.community-admin-btn:hover { background:#f1f5f9; color:#475569; }
.community-admin-btn.delete:hover { background:#fef2f2; color:#ef4444; }

/* Comments Section */
.community-comments-section {
  border-top:1px solid #f1f5f9; padding:16px; background:#fafbfc;
}
.community-comments-list { margin-bottom:12px; }
.community-comment {
  display:flex; gap:10px; padding:10px 0;
  border-left:2px solid #e2e8f0; padding-left:12px; margin-left:4px;
}
.community-comment + .community-comment { margin-top:4px; }
.community-comment-content { flex:1; min-width:0; }
.community-comment-top {
  display:flex; align-items:center; gap:6px; margin-bottom:4px;
}
.community-comment-author { font-size:0.8rem; font-weight:600; color:#1e293b; }
.community-comment-time { font-size:0.72rem; color:#94a3b8; }
.community-comment-body {
  font-size:0.85rem; color:#475569; line-height:1.5; word-break:break-word; white-space:pre-wrap;
}
.community-comment-actions { display:flex; gap:6px; margin-top:6px; align-items:center; }
.community-comment-vote {
  background:none; border:none; cursor:pointer; padding:3px; border-radius:4px;
  color:#94a3b8; display:flex; align-items:center; justify-content:center; transition:all 0.15s;
}
.community-comment-vote:hover { background:#f1f5f9; }
.community-comment-vote.upvoted { color:#7ed957; background:rgba(126,217,87,0.1); }
.community-comment-vote.downvoted { color:#ef4444; background:rgba(239,68,68,0.1); }
.community-comment-score {
  font-size:0.75rem; font-weight:700; min-width:18px; text-align:center; padding:0 2px;
}
.community-comment-action {
  font-size:0.72rem; color:#94a3b8; cursor:pointer; background:none; border:none;
  padding:0; font-family:inherit; font-weight:500;
}
.community-comment-action:hover { color:#7ed957; }

/* Comment Input */
.community-comment-input { display:flex; gap:8px; align-items:flex-start; margin-top:8px; }
.community-comment-input textarea {
  flex:1; border:1px solid #e2e8f0; border-radius:8px; padding:10px 12px;
  font-size:0.85rem; resize:none; font-family:inherit; min-height:40px;
  transition:border-color 0.2s; background:#fff;
}
.community-comment-input textarea:focus { outline:none; border-color:#7ed957; }

/* Sidebar Cards */
.community-sidebar-card {
  background:#fff; border-radius:12px; padding:16px; border:1px solid #e2e8f0;
  margin-bottom:12px;
}
.community-sidebar-card h4 {
  font-size:0.82rem; font-weight:700; color:#1e293b; margin:0 0 12px;
  text-transform:uppercase; letter-spacing:0.05em;
}
.community-sidebar-rule {
  display:flex; gap:8px; padding:8px 0; border-bottom:1px solid #f8fafc;
  font-size:0.8rem; color:#475569; line-height:1.4;
}
.community-sidebar-rule:last-child { border-bottom:none; }
.community-sidebar-rule-num {
  font-weight:700; color:#7ed957; min-width:18px;
}
.community-sidebar-tags { display:flex; flex-wrap:wrap; gap:6px; }
.community-sidebar-tag {
  font-size:0.75rem; padding:4px 10px; border-radius:12px; background:#f1f5f9;
  color:#475569; cursor:pointer; transition:all 0.15s; border:none; font-family:inherit;
}
.community-sidebar-tag:hover { background:#7ed957; color:#fff; }
.community-sidebar-tag.active { background:#1e293b; color:#fff; }
.community-sidebar-stat {
  display:flex; justify-content:space-between; padding:6px 0; font-size:0.82rem; color:#64748b;
}
.community-sidebar-stat strong { color:#1e293b; }

/* Empty State */
.community-empty {
  text-align:center; padding:60px 20px; color:#94a3b8;
  background:#fff; border-radius:12px; border:1px solid #e2e8f0;
}
.community-empty h3 { color:#475569; font-size:1.1rem; margin:12px 0 6px; }
.community-empty p { font-size:0.88rem; margin:0; }

/* Activation Screen */
.community-activation {
  display:flex; align-items:center; justify-content:center; min-height:60vh; padding:24px;
}
.community-activation-card {
  background:#fff; border-radius:20px; padding:48px 40px; max-width:640px; width:100%;
  text-align:center; box-shadow:0 8px 40px rgba(0,0,0,0.08); border:1px solid #e2e8f0;
}
.community-activation-icon { margin-bottom:20px; }
.community-activation-info {
  background:#fffbeb; border:1px solid #fde68a; border-radius:12px; padding:16px 20px;
  margin-bottom:24px; text-align:left;
}
.community-activation-info-item {
  display:flex; gap:12px; align-items:flex-start; font-size:0.9rem; color:#92400e; line-height:1.5;
}
.community-activation-info-item svg { flex-shrink:0; margin-top:2px; }
.community-terms-box {
  background:#f8fafc; border:1px solid #e2e8f0; border-radius:12px; padding:20px;
  margin-bottom:20px; text-align:left; max-height:240px; overflow-y:auto;
}
.community-terms-content p { margin:0 0 12px; font-size:0.85rem; color:#475569; line-height:1.6; }
.community-terms-content p:last-child { margin-bottom:0; }
.community-checkbox-label {
  display:flex; gap:10px; align-items:flex-start; text-align:left; margin-bottom:24px;
  font-size:0.88rem; color:#334155; cursor:pointer; line-height:1.5;
}
.community-checkbox-label input[type="checkbox"] {
  margin-top:3px; width:18px; height:18px; flex-shrink:0; accent-color:#7ed957;
}
.community-activate-btn {
  width:100%; padding:14px 24px !important; font-size:1rem !important; border-radius:12px !important;
}
.community-activate-btn:disabled { opacity:0.5; cursor:not-allowed; }

/* Responsive */
@media (max-width:768px) {
  .community-layout { flex-direction:column; padding:12px 8px; }
  .community-sidebar-right { width:100%; position:static; order:-1; }
  .community-header { padding:20px; border-radius:12px; }
  .community-post { flex-direction:column; }
  .community-vote-col { flex-direction:row; padding:8px 12px; min-width:auto; background:transparent; border-top:1px solid #f1f5f9; order:2; }
  .community-post-content { padding:12px; }
  .community-create-form { padding:16px; }
  .community-sort-bar { overflow-x:auto; }
  .community-activation-card { padding:24px 16px; }
}

/* ============================================================
   NOTIFICATION CENTER
   ============================================================ */
.notif-center { display:flex; flex-direction:column; gap:0; }
.notif-row {
  display:flex; align-items:center; gap:16px;
  padding:16px 0;
  border-bottom:1px solid var(--grey-100, #f1f5f9);
}
.notif-row:last-child { border-bottom:none; }
.notif-icon {
  width:40px; height:40px; border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0; font-size:1.2rem;
}
.notif-icon.live { background:#ede9fe; color:#7c3aed; }
.notif-icon.video { background:#dbeafe; color:#2563eb; }
.notif-icon.chat { background:#fce7f3; color:#db2777; }
.notif-icon.empfehlung { background:#fef3c7; color:#d97706; }
.notif-icon.portfolio { background:#d1fae5; color:#059669; }
.notif-icon.vemo { background:#e0e7ff; color:#4338ca; }
.notif-icon.newsletter { background:#f0fdf4; color:#16a34a; }
.notif-text { flex:1; min-width:0; }
.notif-text h4 { margin:0; font-size:0.92rem; font-weight:600; color:var(--dark, #1a1a2e); }
.notif-text p { margin:2px 0 0; font-size:0.8rem; color:var(--text-muted, #94a3b8); line-height:1.3; }
.notif-toggle {
  position:relative; width:48px; height:26px; flex-shrink:0;
  background:var(--grey-200, #e2e8f0); border-radius:13px;
  cursor:pointer; transition:background 0.25s;
}
.notif-toggle.active { background:#22c55e; }
.notif-toggle::after {
  content:''; position:absolute; top:3px; left:3px;
  width:20px; height:20px; background:#fff;
  border-radius:50%; transition:transform 0.25s;
  box-shadow:0 1px 3px rgba(0,0,0,0.15);
}
.notif-toggle.active::after { transform:translateX(22px); }
@media (max-width:640px) {
  .notif-row { gap:12px; padding:12px 0; }
  .notif-icon { width:36px; height:36px; font-size:1rem; }
  .notif-text h4 { font-size:0.85rem; }
  .notif-text p { font-size:0.75rem; }
}

/* Emoji Picker */
.community-emoji-toggle {
  position:absolute; right:8px; bottom:8px; background:none; border:none; cursor:pointer;
  font-size:1.2rem; padding:4px; border-radius:6px; transition:background 0.15s; line-height:1;
  opacity:0.5;
}
.community-emoji-toggle:hover { background:#f1f5f9; opacity:1; }
.community-emoji-picker {
  display:flex; flex-wrap:wrap; gap:4px; padding:10px; background:#fff;
  border:1px solid #e2e8f0; border-radius:12px; box-shadow:0 8px 24px rgba(0,0,0,0.1);
  max-width:300px; margin-top:4px; z-index:100; position:relative;
}
.community-emoji-btn {
  width:36px; height:36px; display:flex; align-items:center; justify-content:center;
  border:none; background:none; cursor:pointer; font-size:1.2rem; border-radius:8px;
  transition:background 0.1s;
}
.community-emoji-btn:hover { background:#f1f5f9; transform:scale(1.15); }

/* ============================================================
   DASHBOARD TOUR — Interactive Spotlight Walkthrough
   ============================================================ */
.tour-spotlight-hole {
  position:fixed;
  z-index:99998;
  border-radius:12px;
  box-shadow:0 0 0 9999px rgba(0,0,0,0.55);
  transition:all 0.45s cubic-bezier(.16,1,.3,1);
  pointer-events:none;
}
.tour-spotlight-hole::before {
  content:'';
  position:absolute;
  inset:-4px;
  border-radius:16px;
  border:2px solid rgba(126,217,87,0.6);
  animation:tourPulseRing 2s ease-in-out infinite;
}
.tour-spotlight-hole-page {
  border-radius:20px;
}
.tour-spotlight-hole-page::before {
  border-radius:24px;
}
.tour-tooltip {
  position:fixed;
  z-index:99999;
  max-width:380px;
  width:calc(100vw - 32px);
  background:#fff;
  border-radius:20px;
  padding:28px;
  box-shadow:0 20px 60px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.04);
  animation:tourFadeUp 0.4s cubic-bezier(.16,1,.3,1) both;
}
.tour-tooltip-arrow {
  position:absolute;
  width:14px;height:14px;
  background:#fff;
  transform:rotate(45deg);
  box-shadow:-2px -2px 4px rgba(0,0,0,0.04);
}
.tour-tooltip-badge {
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:4px 12px;
  background:rgba(126,217,87,0.12);
  color:#15803d;
  border-radius:100px;
  font-size:0.72rem;
  font-weight:700;
  letter-spacing:0.03em;
  text-transform:uppercase;
  margin-bottom:12px;
}
.tour-tooltip-title {
  font-size:1.2rem;
  font-weight:800;
  color:#0f172a;
  margin:0 0 8px;
  line-height:1.3;
}
.tour-tooltip-desc {
  color:#64748b;
  font-size:0.92rem;
  line-height:1.65;
  margin:0 0 20px;
}
.tour-tooltip-btn {
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:12px 24px;
  border-radius:12px;
  background:linear-gradient(135deg,#7ed957,#22c55e);
  border:none;
  color:#fff;
  font-size:0.95rem;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 4px 16px rgba(126,217,87,0.3);
  transition:all 0.2s;
  font-family:inherit;
}
.tour-tooltip-btn:hover {
  transform:translateY(-1px);
  box-shadow:0 6px 24px rgba(126,217,87,0.4);
}
.tour-tooltip-btn svg { transition:transform 0.2s; }
.tour-tooltip-btn:hover svg { transform:translateX(2px); }
.tour-tooltip-progress {
  display:flex;
  align-items:center;
  gap:5px;
  margin-top:16px;
}
.tour-tooltip-dot {
  width:7px;height:7px;
  border-radius:50%;
  background:#e2e8f0;
  transition:all 0.3s;
}
.tour-tooltip-dot.active {
  width:22px;
  border-radius:4px;
  background:linear-gradient(90deg,#7ed957,#22c55e);
}
.tour-tooltip-dot.done { background:#7ed957; }
.tour-tooltip-step {
  font-size:0.7rem;
  color:#94a3b8;
  font-weight:600;
  margin-left:auto;
}
/* Welcome & Finish modal (centered, no spotlight) */
.tour-modal-backdrop {
  position:fixed;
  inset:0;
  z-index:99998;
  background:rgba(0,0,0,0.55);
  display:flex;
  align-items:center;
  justify-content:center;
  animation:tourFadeIn 0.3s ease both;
}
.tour-modal {
  z-index:99999;
  max-width:480px;
  width:calc(100vw - 32px);
  background:#fff;
  border-radius:24px;
  padding:40px 36px;
  text-align:center;
  box-shadow:0 24px 80px rgba(0,0,0,0.2);
  animation:tourFadeUp 0.5s cubic-bezier(.16,1,.3,1) both;
}
.tour-modal-emoji { font-size:3.2rem; margin-bottom:12px; }
.tour-modal-title {
  font-size:1.6rem;
  font-weight:800;
  color:#0f172a;
  margin:0 0 12px;
  line-height:1.3;
}
.tour-modal-desc {
  color:#64748b;
  font-size:0.98rem;
  line-height:1.7;
  margin:0 0 28px;
}
.tour-modal-btn {
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:16px 36px;
  border-radius:14px;
  background:linear-gradient(135deg,#7ed957,#22c55e);
  border:none;
  color:#fff;
  font-size:1.05rem;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 4px 20px rgba(126,217,87,0.35);
  transition:all 0.2s;
  font-family:inherit;
}
.tour-modal-btn:hover {
  transform:translateY(-2px);
  box-shadow:0 8px 30px rgba(126,217,87,0.4);
}
/* Empfehlung special */
body.onboarding-active .top-bar,
body.onboarding-active .sidebar { display:none !important; }
body.onboarding-active .main-content { margin-left:0 !important; }

.tour-empfehlung-box {
  background:linear-gradient(135deg,#f0fdf4,#dcfce7);
  border:1px solid #86efac;
  border-radius:14px;
  padding:18px;
  margin-bottom:16px;
  text-align:left;
}
.tour-empfehlung-reward {
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 14px;
  background:linear-gradient(135deg,#7ed957,#22c55e);
  color:#fff;
  border-radius:10px;
  font-size:0.95rem;
  font-weight:800;
  margin-top:10px;
}
/* Animations */
@keyframes tourFadeUp {
  0% { opacity:0; transform:translateY(20px); }
  100% { opacity:1; transform:translateY(0); }
}
@keyframes tourFadeIn {
  0% { opacity:0; }
  100% { opacity:1; }
}
@keyframes tourPulseRing {
  0%,100% { opacity:0.6; transform:scale(1); }
  50% { opacity:1; transform:scale(1.03); }
}
/* Mobile */
@media (max-width:768px) {
  .tour-tooltip { max-width:calc(100vw - 24px); padding:20px; border-radius:16px; }
  .tour-tooltip-title { font-size:1.05rem; }
  .tour-tooltip-desc { font-size:0.85rem; }
  .tour-tooltip-btn { padding:10px 20px; font-size:0.9rem; }
  .tour-modal { padding:28px 24px; border-radius:20px; }
  .tour-modal-title { font-size:1.3rem; }
  .tour-modal-desc { font-size:0.9rem; }
  .tour-modal-btn { padding:14px 28px; font-size:0.98rem; width:100%; justify-content:center; }
}

/* ============================================================
   DARK MODE — kundePortfolioView (ka-* classes)
   ============================================================ */

/* Override CSS custom properties for dark mode */
body.dark-mode #kundePortfolioView {
  --ka-bg: #0f172a;
  --ka-card: #1e293b;
  --ka-text: #e2e8f0;
  --ka-text-muted: #94a3b8;
  --ka-border: #334155;
  --ka-shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --ka-shadow: 0 4px 24px rgba(0,0,0,0.4);
  --ka-shadow-lg: 0 4px 16px rgba(0,0,0,0.5);
  --ka-accent-light: rgba(126,217,87,0.15);
  --ka-accent-border: rgba(126,217,87,0.35);
  color: #e2e8f0;
}

/* ---- Hero Section ---- */
body.dark-mode #kundePortfolioView .ka-hero {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
body.dark-mode #kundePortfolioView .ka-hero-title { color: #e2e8f0; }
body.dark-mode #kundePortfolioView .ka-hero-sub { color: #94a3b8; }
body.dark-mode #kundePortfolioView .ka-hero-meta { color: #94a3b8; }

/* ---- Sections ---- */
body.dark-mode #kundePortfolioView .ka-section {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
body.dark-mode #kundePortfolioView .ka-section-title { color: #e2e8f0; }
body.dark-mode #kundePortfolioView .ka-section-sub { color: #94a3b8; }
body.dark-mode #kundePortfolioView .ka-legal-note { color: #94a3b8; }

/* ---- Empty state ---- */
body.dark-mode #kundePortfolioView .ka-empty { color: #94a3b8; }

/* ---- Card base ---- */
body.dark-mode #kundePortfolioView .ka-card {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
body.dark-mode #kundePortfolioView .ka-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

/* ---- Buttons ---- */
body.dark-mode #kundePortfolioView .ka-btn-secondary {
  background: #0f172a;
  color: #e2e8f0;
  border-color: #334155;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
body.dark-mode #kundePortfolioView .ka-btn-secondary:hover {
  background: #334155;
  border-color: #475569;
}
body.dark-mode #kundePortfolioView .ka-btn-ghost {
  background: rgba(255,255,255,0.04);
  color: #e2e8f0;
  border-color: #334155;
}
body.dark-mode #kundePortfolioView .ka-btn-ghost:hover {
  background: rgba(255,255,255,0.08);
}
body.dark-mode #kundePortfolioView .ka-disabled {
  opacity: 0.4;
}

/* ---- Mantel Grid ---- */
body.dark-mode #kundePortfolioView .ka-mantel-card {
  border-color: #334155;
}
body.dark-mode #kundePortfolioView .ka-mantel-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
body.dark-mode #kundePortfolioView .ka-mantel-card.active {
  border-color: #7ed957;
  box-shadow: 0 0 0 3px rgba(126,217,87,0.15);
  background: #1a2e1f;
}
body.dark-mode #kundePortfolioView .ka-mantel-logo {
  background: #0f172a;
  border-color: #334155;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
body.dark-mode #kundePortfolioView .ka-new-badge {
  background: rgba(251,146,60,0.12);
  color: #fb923c;
  border-color: rgba(251,146,60,0.25);
}
body.dark-mode #kundePortfolioView .ka-active-badge {
  background: rgba(126,217,87,0.12);
  color: #7ed957;
  border-color: rgba(126,217,87,0.25);
}
body.dark-mode #kundePortfolioView .ka-mantel-title { color: #e2e8f0; }
body.dark-mode #kundePortfolioView .ka-mantel-desc { color: #94a3b8; }

/* Mantel meta items */
body.dark-mode #kundePortfolioView .ka-meta-item {
  background: #0f172a;
  border-color: #334155;
}
body.dark-mode #kundePortfolioView .ka-meta-label { color: #94a3b8; }
body.dark-mode #kundePortfolioView .ka-meta-value { color: #e2e8f0; }

/* Mantel details (expandable) */
body.dark-mode #kundePortfolioView .ka-pro {
  background: rgba(34,197,94,0.1);
  border-color: rgba(34,197,94,0.2);
  color: #4ade80;
}
body.dark-mode #kundePortfolioView .ka-con {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.15);
  color: #f87171;
}
body.dark-mode #kundePortfolioView .ka-pros h4 { color: #e2e8f0; }
body.dark-mode #kundePortfolioView .ka-cons h4 { color: #e2e8f0; }

/* Mantel new border highlight */
body.dark-mode #kundePortfolioView .ka-is-new {
  border-color: rgba(251,146,60,0.4) !important;
}

/* ---- Tab Bar ---- */
body.dark-mode #kundePortfolioView .ka-tab-bar {
  background: rgba(255,255,255,0.04);
}
body.dark-mode #kundePortfolioView .ka-tab-indicator {
  background: rgba(126,217,87,0.15);
}
body.dark-mode #kundePortfolioView .ka-tab {
  color: #94a3b8;
}
body.dark-mode #kundePortfolioView .ka-tab.active {
  color: #e2e8f0;
}
body.dark-mode #kundePortfolioView .ka-tab:hover {
  color: #e2e8f0;
}

/* ---- Portfolio list & shells ---- */
body.dark-mode #kundePortfolioView .ka-portfolio-shell {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
body.dark-mode #kundePortfolioView .ka-portfolio-title { color: #e2e8f0; }
body.dark-mode #kundePortfolioView .ka-portfolio-chip {
  background: rgba(126,217,87,0.1);
  color: #e2e8f0;
  border-color: #334155;
}

/* ---- SVG Donut Chart ---- */
body.dark-mode #kundePortfolioView .ka-chart-section {
  background: #0f172a;
  border-color: #334155;
}
body.dark-mode #kundePortfolioView .ka-donut-center {
  background: rgba(15,23,42,0.95);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
body.dark-mode #kundePortfolioView .ka-donut-center-label { color: #94a3b8; }
body.dark-mode #kundePortfolioView .ka-donut-center-value { color: #e2e8f0; }
body.dark-mode #kundePortfolioView .ka-donut-tooltip {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

/* ---- Chart Legend ---- */
body.dark-mode #kundePortfolioView .ka-legend-item {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}
body.dark-mode #kundePortfolioView .ka-legend-item:hover {
  border-color: rgba(126,217,87,0.35);
  background: #1a2e1f;
}
body.dark-mode #kundePortfolioView .ka-legend-pct { color: #e2e8f0; }
body.dark-mode #kundePortfolioView .ka-portfolio-meta { color: #94a3b8; }

/* ---- Fund Cards ---- */
body.dark-mode #kundePortfolioView .ka-fund-card {
  background: #1e293b;
  border-color: #334155;
}
body.dark-mode #kundePortfolioView .ka-fund-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
body.dark-mode #kundePortfolioView .ka-fund-header h4 { color: #e2e8f0; }
body.dark-mode #kundePortfolioView .ka-fund-badge-muted {
  background: #0f172a;
  color: #94a3b8;
  border-color: #334155;
}
body.dark-mode #kundePortfolioView .ka-fund-desc { color: #94a3b8; }
body.dark-mode #kundePortfolioView .ka-fund-alloc-row {
  background: #0f172a;
  border-color: #334155;
  color: #94a3b8;
}
body.dark-mode #kundePortfolioView .ka-fund-alloc-val { color: #e2e8f0; }
body.dark-mode #kundePortfolioView .ka-fund-details {
  background: #0f172a;
  border-color: #334155;
}
body.dark-mode #kundePortfolioView .ka-fund-stat {
  background: #1e293b;
  border-color: #334155;
}
body.dark-mode #kundePortfolioView .ka-fund-stat-label { color: #94a3b8; }
body.dark-mode #kundePortfolioView .ka-fund-stat-val { color: #e2e8f0; }
body.dark-mode #kundePortfolioView .ka-fund-description {
  background: #1e293b;
  border-color: #334155;
  color: #94a3b8;
}
body.dark-mode #kundePortfolioView .ka-legal-micro { color: #64748b; }

/* ---- Ablauf ---- */
body.dark-mode #kundePortfolioView .ka-ablauf-shell {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
body.dark-mode #kundePortfolioView .ka-ablauf-head {
  background: #0f172a;
  border-color: #334155;
  color: #94a3b8;
}
body.dark-mode #kundePortfolioView .ka-ablauf-row {
  background: #1e293b;
  border-color: #334155;
}
body.dark-mode #kundePortfolioView .ka-ablauf-row:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
body.dark-mode #kundePortfolioView .ka-ablauf-cell { color: #e2e8f0; }
body.dark-mode #kundePortfolioView .ka-ablauf-label { color: #e2e8f0; }
body.dark-mode #kundePortfolioView .ka-ablauf-value span {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}
body.dark-mode #kundePortfolioView .ka-ablauf-age { color: #94a3b8; }

/* ---- Advisors ---- */
body.dark-mode #kundePortfolioView .ka-advisor-card {
  border-color: #334155;
}
body.dark-mode #kundePortfolioView .ka-advisor-card:hover {
  border-color: rgba(126,217,87,0.35);
}
body.dark-mode #kundePortfolioView .ka-avatar {
  border-color: rgba(126,217,87,0.2);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
body.dark-mode #kundePortfolioView .ka-advisor-info h4 { color: #e2e8f0; }
body.dark-mode #kundePortfolioView .ka-role-badge {
  background: rgba(126,217,87,0.12);
  color: #7ed957;
  border-color: rgba(126,217,87,0.25);
}
body.dark-mode #kundePortfolioView .ka-advisor-desc { color: #94a3b8; }
body.dark-mode #kundePortfolioView .ka-qual-group h5 { color: #94a3b8; }
body.dark-mode #kundePortfolioView .ka-qual-group ul { color: #94a3b8; }

/* ---- Footer ---- */
body.dark-mode #kundePortfolioView .ka-footer-inner {
  background: #0f172a;
  border-color: #334155;
}
body.dark-mode #kundePortfolioView .ka-footer-disclaimer { color: #94a3b8; }
body.dark-mode #kundePortfolioView .ka-footer-disclaimer svg { color: #64748b; }
body.dark-mode #kundePortfolioView .ka-footer-meta {
  border-top-color: #334155;
  color: #64748b;
}

/* ---- Ablauf Info & Strategy Cards ---- */
body.dark-mode #kundePortfolioView .ka-ablauf-info-card {
  background: rgba(126,217,87,0.08);
  border-color: rgba(126,217,87,0.2);
}
body.dark-mode #kundePortfolioView .ka-ablauf-info-text { color: #e2e8f0; }
body.dark-mode #kundePortfolioView .ka-ablauf-info-sub { color: #94a3b8; }
body.dark-mode #kundePortfolioView .ka-ablauf-strategies { color: #e2e8f0; }
body.dark-mode #kundePortfolioView .ka-ablauf-strategy-card {
  background: #1e293b;
  border-color: #334155;
}
body.dark-mode #kundePortfolioView .ka-ablauf-strategy-card:hover {
  border-color: rgba(126,217,87,0.5);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
body.dark-mode #kundePortfolioView .ka-ablauf-strategy-card.active {
  border-color: #7ed957;
  background: rgba(126,217,87,0.06);
}
body.dark-mode #kundePortfolioView .ka-ablauf-strategy-card h4 { color: #e2e8f0; }
body.dark-mode #kundePortfolioView .ka-ablauf-strategy-card p { color: #94a3b8; }
body.dark-mode #kundePortfolioView .ka-ablauf-chart-wrapper {
  background: #1e293b;
  border-color: #334155;
}
body.dark-mode #kundePortfolioView .ka-ablauf-summary-item {
  background: rgba(255,255,255,0.06);
  color: #e2e8f0;
}

/* ---- Zahlen (Numbers) Cards ---- */
body.dark-mode #kundePortfolioView .ka-zahlen-card {
  background: #1e293b;
  border-color: #334155;
}
body.dark-mode #kundePortfolioView .ka-zahlen-card:hover {
  border-color: rgba(126,217,87,0.35);
}
body.dark-mode #kundePortfolioView .ka-zahlen-card-title { color: #e2e8f0; }
body.dark-mode #kundePortfolioView .ka-zahlen-card-desc { color: #94a3b8; }
body.dark-mode #kundePortfolioView .ka-zahlen-card-sub { color: #94a3b8; }
body.dark-mode #kundePortfolioView .ka-zahlen-card-hint { color: #64748b; }
body.dark-mode #kundePortfolioView .ka-zahlen-big-label { color: #94a3b8; }
body.dark-mode #kundePortfolioView .ka-zahlen-prognose-sub { color: #94a3b8; }
body.dark-mode #kundePortfolioView .ka-zahlen-link { color: #7ed957; }

/* Zahlen Bars */
body.dark-mode #kundePortfolioView .ka-zahlen-bar-label { color: #94a3b8; }
body.dark-mode #kundePortfolioView .ka-zahlen-bar-track {
  background: #334155;
}

/* Zahlen Profil */
body.dark-mode #kundePortfolioView .ka-zahlen-profil-label { color: #94a3b8; }
body.dark-mode #kundePortfolioView .ka-zahlen-profil-value { color: #e2e8f0; }
body.dark-mode #kundePortfolioView .ka-zahlen-profil-bars {
  border-top-color: #334155;
}
body.dark-mode #kundePortfolioView .ka-zahlen-pbar-row > span:first-child { color: #94a3b8; }
body.dark-mode #kundePortfolioView .ka-zahlen-pbar-track {
  background: #334155;
}
body.dark-mode #kundePortfolioView .ka-zahlen-pbar-score { color: #e2e8f0; }

/* ---- Prognose ---- */
body.dark-mode #kundePortfolioView .ka-prognose-row {
  border-bottom-color: #334155;
}
body.dark-mode #kundePortfolioView .ka-prognose-label { color: #e2e8f0; }
body.dark-mode #kundePortfolioView .ka-prognose-end { color: #e2e8f0; }

/* ---- Zins (Interest) Calculator ---- */
body.dark-mode #kundePortfolioView .ka-zins-label { color: #94a3b8; }
body.dark-mode #kundePortfolioView .ka-zins-input-wrap {
  background: #0f172a;
  border-color: #334155;
}
body.dark-mode #kundePortfolioView .ka-zins-input-wrap:focus-within {
  border-color: #7ed957;
  box-shadow: 0 0 0 3px rgba(126,217,87,0.15);
}
body.dark-mode #kundePortfolioView .ka-zins-input {
  color: #e2e8f0;
}
body.dark-mode #kundePortfolioView .ka-zins-unit { color: #64748b; }
body.dark-mode #kundePortfolioView .ka-zins-divider {
  background: #334155;
}
body.dark-mode #kundePortfolioView .ka-zins-result-label { color: #94a3b8; }
body.dark-mode #kundePortfolioView .ka-zins-result-value { color: #e2e8f0; }

/* ---- Flip Card ---- */
body.dark-mode #kundePortfolioView .ka-flip-card {
  background: #1e293b;
  border-color: #334155;
}

/* ============================================================
   DARK MODE — Customer Onboarding Tunnel
   ============================================================ */
body.dark-mode .onboarding-berater-option {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
body.dark-mode .onboarding-berater-option:hover {
  border-color: #7ed957 !important;
}
body.dark-mode .onboarding-berater-option strong { color: #e2e8f0 !important; }
body.dark-mode .onboarding-berater-option span { color: #94a3b8 !important; }
body.dark-mode .onboarding-check { border-color: #475569 !important; }
body.dark-mode .ob-step h2 { color: #e2e8f0 !important; }
body.dark-mode .ob-step p { color: #94a3b8 !important; }
body.dark-mode #onboardingAlterInput,
body.dark-mode #onboardingMonatlichInput {
  background: #0f172a !important;
  color: #e2e8f0 !important;
  border-color: #334155 !important;
}
body.dark-mode #onboardingAlterInput::placeholder,
body.dark-mode #onboardingMonatlichInput::placeholder { color: #64748b !important; }
body.dark-mode #onboardingHorizontDisplay {
  background: rgba(126,217,87,0.1) !important;
  border-color: #2d6b1e !important;
  color: #7ed957 !important;
}
body.dark-mode #obBackBtn {
  color: #94a3b8 !important;
  border-color: #334155 !important;
}
body.dark-mode #obBackBtn:hover {
  border-color: #7ed957 !important;
  color: #7ed957 !important;
}
body.dark-mode #obStepNum { color: #94a3b8 !important; }
body.dark-mode .onboarding-berater-option span[style*="color:#1a1a2e"] { color: #e2e8f0 !important; }
body.dark-mode .onboarding-berater-option div[style*="background:#f3f4f6"] { background: #334155 !important; }

/* --- Base styles for onboarding elements (light mode defaults) --- */
.onboarding-berater-option {
  background: #fff;
  border: 2px solid #e5e7eb;
}
.onboarding-check {
  border: 2px solid #d1d5db;
}
.ob-outer-container {
  background: linear-gradient(180deg, #f8fdf5 0%, #fff 50%);
}
.ob-progress-track {
  background: #e5e7eb;
}
.ob-step h2 {
  color: #1a1a1a;
}
#obBackBtn {
  border: 1px solid #e5e7eb;
  color: #6b7280;
}
#onboardingAlterInput,
#onboardingMonatlichInput {
  background: #fff;
  border: 2px solid #e5e7eb;
}
#onboardingHorizontDisplay {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

/* --- Dark mode overrides for onboarding outer container & progress --- */
body.dark-mode .ob-outer-container {
  background: linear-gradient(180deg, #0f172a 0%, #0f172a 50%);
}
body.dark-mode .ob-progress-track {
  background: #334155;
}

/* --- Base styles for chat/card elements (light mode defaults) --- */
.dm-card {
  background: #fff;
  border: 1px solid #f0f0f0;
}
.dm-text {
  color: #1a1a1a;
}
.dm-emoji-picker {
  background: #ffffff;
  border: 1px solid #e5e7eb;
}
.dm-chat-form {
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
}
.dm-badge {
  background: #f8f9fa;
  color: #98a2b3;
}
.dm-contact-row {
  background: #f8f9fa;
}
.dm-contact-icon {
  background: #f1f5f9;
}

/* --- Dark mode overrides for chat/card elements --- */
body.dark-mode .dm-card {
  background: #1e293b;
  border-color: #334155;
}
body.dark-mode .dm-text {
  color: #e2e8f0;
}
body.dark-mode .dm-emoji-picker {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
body.dark-mode .dm-chat-form {
  background: #0f172a;
  border-color: #334155;
}
body.dark-mode .dm-badge {
  background: #334155;
  color: #94a3b8;
}
body.dark-mode .dm-contact-row {
  background: #0f172a;
}
body.dark-mode .dm-contact-icon {
  background: #1e293b;
}

/* ============================================================
   DARK MODE — Finanz-Tunnel (Quiz + Results)
   ============================================================ */
body.dark-mode .lp-tunnel { background: #0f172a; }
body.dark-mode .tunnel-progress-bar { background: #334155; }
body.dark-mode .tunnel-dot { background: #334155; color: #94a3b8; }
body.dark-mode .tunnel-dot.current { background: var(--green-500); color: #fff; }
body.dark-mode .tunnel-dot.done { background: var(--green-500); color: #fff; }
body.dark-mode .tunnel-back-btn { color: #94a3b8; }
body.dark-mode .tunnel-back-btn:hover { color: #7ed957; }
body.dark-mode .tunnel-option-label { color: #e2e8f0; }
body.dark-mode .tunnel-option-desc { color: #94a3b8; }
body.dark-mode .tunnel-result-tag { background: rgba(126,217,87,0.15); color: #7ed957; }
body.dark-mode .tunnel-result-subtitle { color: #94a3b8; }
body.dark-mode .tunnel-breakdown { background: #1e293b; border-color: #334155; }
body.dark-mode .tunnel-breakdown-title { color: #e2e8f0; }
body.dark-mode .tunnel-breakdown-label { color: #cbd5e1; }
body.dark-mode .tunnel-breakdown-bar { background: #334155; }
body.dark-mode .tunnel-breakdown-value { color: #7ed957; }
body.dark-mode .tunnel-fun-title { color: #e2e8f0; }
body.dark-mode .tbc-chip strong { color: #e2e8f0; }
body.dark-mode .tbc-context { color: #94a3b8; }
body.dark-mode .tunnel-actions button { background: #1e293b; border-color: #334155; color: #e2e8f0; }
body.dark-mode .tunnel-actions button:hover { border-color: #7ed957; color: #7ed957; }
body.dark-mode .tunnel-footnote { color: #64748b; }
body.dark-mode .tunnel-examples { background: linear-gradient(135deg, rgba(30,58,47,0.5) 0%, #1e293b 100%); border-color: rgba(126,217,87,0.15); }
body.dark-mode .tunnel-examples-title { color: #e2e8f0; }
body.dark-mode .tunnel-example-item { background: #0f172a; border-color: #334155; }
body.dark-mode .tunnel-example-item:hover { border-color: rgba(126,217,87,0.3); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
body.dark-mode .tunnel-example-item .ex-icon { background: linear-gradient(135deg, rgba(126,217,87,0.1), rgba(126,217,87,0.05)); }
body.dark-mode .tunnel-example-item .ex-text { color: #94a3b8; }
body.dark-mode .tunnel-example-item .ex-text strong { color: #e2e8f0; }
body.dark-mode .tunnel-recommendation { background: #0f172a; }
body.dark-mode .tunnel-pkg-consult { color: #7ed957; }
body.dark-mode .tunnel-pkg-consult:hover { color: #9aed7a; }
body.dark-mode .pricing-card-features-missing li { color: #64748b !important; }
body.dark-mode .pricing-card-price-old { color: #64748b; }
body.dark-mode .pricing-card-savings { color: #94a3b8; }
body.dark-mode .pricing-card-savings strong { color: #7ed957; }
body.dark-mode .pricing-card-trial { color: #7ed957; background: rgba(126,217,87,0.1); }
body.dark-mode .pricing-recommended-badge { background: #7ed957; color: #fff; }
body.dark-mode .billing-toggle-label { color: #94a3b8; }
body.dark-mode .billing-toggle-label.active { color: #e2e8f0; }
body.dark-mode .billing-toggle-switch { background: #334155; }
body.dark-mode .billing-toggle-switch.yearly { background: var(--green-500); }
body.dark-mode .billing-toggle-save { background: rgba(126,217,87,0.15); color: #7ed957; }
body.dark-mode .sales-social-proof-bar .sp-item { color: #e2e8f0; }
body.dark-mode .sales-social-proof-bar .sp-divider { background: #475569; }

/* ============================================================
   DARK MODE — Post-Registration Tunnel
   ============================================================ */
body.dark-mode .postreg-tunnel-title { color: #e2e8f0; }
body.dark-mode .postreg-tunnel-subtitle { color: #94a3b8; }
body.dark-mode .postreg-tunnel-progress-bar { background: #334155; }
body.dark-mode .postreg-dot { background: #334155; color: #94a3b8; }
body.dark-mode .postreg-dot.current { background: var(--green-500); color: #fff; }
body.dark-mode .postreg-dot.done { background: var(--green-500); color: #fff; }

/* ============================================================
   DARK MODE — Dashboard Tour Overlay
   ============================================================ */
body.dark-mode .tour-tooltip { background: #1e293b; box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06); }
body.dark-mode .tour-tooltip-arrow { background: #1e293b; box-shadow: -2px -2px 4px rgba(0,0,0,0.2); }
body.dark-mode .tour-tooltip-badge { background: rgba(126,217,87,0.15); color: #7ed957; }
body.dark-mode .tour-tooltip-title { color: #e2e8f0; }
body.dark-mode .tour-tooltip-desc { color: #94a3b8; }
body.dark-mode .tour-tooltip-dot { background: #475569; }
body.dark-mode .tour-modal-backdrop { background: rgba(0,0,0,0.75); }
body.dark-mode .tour-modal { background: #1e293b; box-shadow: 0 24px 80px rgba(0,0,0,0.5); }
body.dark-mode .tour-modal-title { color: #e2e8f0; }
body.dark-mode .tour-modal-desc { color: #94a3b8; }
body.dark-mode .tour-empfehlung-box { background: linear-gradient(135deg, rgba(30,58,47,0.6), rgba(30,41,59,0.8)); border-color: rgba(126,217,87,0.3); }
body.dark-mode .tour-empfehlung-box p { color: #94a3b8 !important; }
body.dark-mode .tour-empfehlung-box strong { color: #e2e8f0; }
body.dark-mode .tour-spotlight-hole { box-shadow: 0 0 0 9999px rgba(0,0,0,0.7); }

/* ============================================================
   DARK MODE — Modals, Overlays, Dropdowns, Floating UI
   Comprehensive fix for ALL floating UI elements
   ============================================================ */

/* ---- Upload Modal (generic .modal) ---- */
body.dark-mode .modal-overlay { background: rgba(0,0,0,0.7); }
body.dark-mode .modal { background: #1e293b; box-shadow: 0 40px 80px rgba(0,0,0,0.5); }
body.dark-mode .modal-header h2 { color: #f1f5f9; }
body.dark-mode .modal-close { color: #94a3b8; }
body.dark-mode .modal-close:hover { color: #e2e8f0; }
body.dark-mode .modal-body { color: #e2e8f0; }

/* ---- Upload zone inside modals ---- */
body.dark-mode .upload-zone { border-color: #475569; background: transparent; }
body.dark-mode .upload-zone:hover { border-color: var(--green-500); background: rgba(126,217,87,0.05); }
body.dark-mode .upload-zone svg { color: #94a3b8; }
body.dark-mode .upload-zone p { color: #94a3b8; }
body.dark-mode .upload-zone small { color: #64748b; }

/* ---- Admin notes inside modals/panels ---- */
body.dark-mode .admin-note-input-row textarea {
  background: #0f172a; border-color: #334155; color: #e2e8f0;
}
body.dark-mode .admin-note-input-row textarea:focus {
  border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(126,217,87,0.12);
}
body.dark-mode .admin-note-item { border-bottom-color: #334155; }
body.dark-mode .admin-note-author { color: #94a3b8; }
body.dark-mode .admin-note-date { color: #64748b; }
body.dark-mode .admin-note-content { color: #e2e8f0; }
body.dark-mode .admin-note-delete { color: #64748b; }
body.dark-mode .admin-note-delete:hover { color: #f87171; background: rgba(239,68,68,0.1); }

/* ---- Admin edit row inputs ---- */
body.dark-mode .admin-edit-row input,
body.dark-mode .admin-edit-row select {
  background: #0f172a; border-color: #334155; color: #e2e8f0;
}
body.dark-mode .admin-edit-row input:focus,
body.dark-mode .admin-edit-row select:focus {
  border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(126,217,87,0.12);
}

/* ---- Notification dropdown items ---- */
body.dark-mode .notif-list { background: #1e293b; }
body.dark-mode .notif-item { border-bottom-color: #334155; }
body.dark-mode .notif-item:hover { background: #334155; }
body.dark-mode .notif-item strong { color: #e2e8f0; }
body.dark-mode .notif-item p { color: #94a3b8; }
body.dark-mode .notif-item small { color: #64748b; }
body.dark-mode .notif-header h4 { color: #e2e8f0; }

/* ---- Search overlay items ---- */
body.dark-mode .search-result-item { border-bottom-color: #334155; }
body.dark-mode .search-result-item:hover { background: rgba(126,217,87,0.08); }
body.dark-mode .search-result-item .sr-info h4 { color: #e2e8f0; }
body.dark-mode .search-result-item .sr-info small { color: #94a3b8; }
body.dark-mode .search-no-results { color: #64748b; }

/* ---- Sidebar backdrop (mobile) ---- */
body.dark-mode .sidebar-backdrop { background: rgba(0,0,0,0.7); }

/* ---- Team modal overlay & missing children ---- */
body.dark-mode .team-modal-overlay { background: rgba(0,0,0,0.7); backdrop-filter: blur(6px); }
body.dark-mode .team-modal { box-shadow: 0 40px 80px rgba(0,0,0,0.5); }
body.dark-mode .team-modal-content { background: #1e293b; }
body.dark-mode .team-modal-body h2 { color: #f1f5f9; }
body.dark-mode .team-modal-role { color: var(--green-400); }
body.dark-mode .team-modal-quote { color: #94a3b8; border-left-color: var(--green-500); }
body.dark-mode .team-modal-section h4 { color: #e2e8f0; }
body.dark-mode .team-modal-section p { color: #94a3b8; }
body.dark-mode .team-modal-cta { background: #0f172a; }

/* ---- Auth modal overlay & missing children ---- */
body.dark-mode .auth-modal-overlay { background: rgba(0,0,0,0.7); backdrop-filter: blur(6px); }
body.dark-mode .auth-modal { box-shadow: 0 40px 80px rgba(0,0,0,0.5); }
body.dark-mode .auth-modal h2 { color: #f1f5f9; }
body.dark-mode .auth-modal-close { color: #94a3b8; }
body.dark-mode .auth-modal-close:hover { background: #334155; color: #e2e8f0; }
body.dark-mode .auth-tab {
  color: #94a3b8; background: transparent; border-color: transparent;
}
body.dark-mode .auth-tab:hover { color: #e2e8f0; }
body.dark-mode .auth-tab.active { background: #1e293b; color: var(--green-400); }
body.dark-mode .auth-modal input {
  background: #0f172a; border-color: #334155; color: #e2e8f0;
}
body.dark-mode .auth-modal input::placeholder { color: #475569; }
body.dark-mode .auth-modal input:focus {
  border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(126,217,87,0.12);
}
body.dark-mode .auth-modal label { color: #cbd5e1; }

/* ---- Calendly modal overlay & close ---- */
body.dark-mode .calendly-modal-overlay { background: rgba(0,0,0,0.7); backdrop-filter: blur(6px); }
body.dark-mode .calendly-modal-close { color: #94a3b8; }
body.dark-mode .calendly-modal-close:hover { color: #e2e8f0; }

/* ---- Feedback modal overlay ---- */
body.dark-mode .feedback-modal-overlay { background: rgba(0,0,0,0.7); }
body.dark-mode .feedback-modal-close:hover { color: #e2e8f0; }

/* ---- Feedback add comment textarea ---- */
body.dark-mode .feedback-add-comment textarea {
  background: #0f172a; border-color: #334155; color: #e2e8f0;
}
body.dark-mode .feedback-add-comment textarea:focus {
  border-color: var(--green-500);
}

/* ---- Feedback comment details ---- */
body.dark-mode .feedback-comment-name { color: #e2e8f0; }
body.dark-mode .feedback-comment-text { color: #cbd5e1; }
body.dark-mode .feedback-comment-time { color: #64748b; }
body.dark-mode .feedback-comment-avatar { background: #334155; color: var(--green-400); }
body.dark-mode .feedback-comment-avatar.admin-avatar { background: #1e3a5f; color: #93c5fd; }
body.dark-mode .feedback-comment-avatar.user-avatar { background: #1a2e1a; color: #86efac; }

/* ---- Feedback detail header & page header ---- */
body.dark-mode .feedback-detail-header h2 { color: #f1f5f9; }
body.dark-mode .feedback-page-header h2 { color: #f1f5f9; }
body.dark-mode .feedback-comments h4 { color: #e2e8f0; }
body.dark-mode .feedback-confirm-box p { color: #e2e8f0; }
body.dark-mode .feedback-admin-controls h4 { color: #e2e8f0; }
body.dark-mode .feedback-detail-back { color: #94a3b8; }
body.dark-mode .feedback-detail-back:hover { color: var(--green-400); }
body.dark-mode .feedback-detail-meta { color: #64748b; }
body.dark-mode .feedback-detail-screenshot img { border-color: #334155; }

/* ---- Role badges ---- */
body.dark-mode .role-badge.admin { background: rgba(249,115,22,0.15); color: #fb923c; }
body.dark-mode .role-badge.creator { background: rgba(168,85,247,0.15); color: #c084fc; }
body.dark-mode .role-badge.customer { background: rgba(126,217,87,0.15); color: #86efac; }
body.dark-mode .role-badge.student { background: rgba(37,99,235,0.15); color: #93c5fd; }

/* ---- Status dots (ensure visibility) ---- */
body.dark-mode .status-dot.inactive { background: #64748b; }

/* ---- Notification center (settings page) ---- */
body.dark-mode .notif-center { background: transparent; }
body.dark-mode .notif-row { border-bottom-color: #334155; }
body.dark-mode .notif-icon.live { background: rgba(124,58,237,0.15); color: #a78bfa; }
body.dark-mode .notif-icon.video { background: rgba(37,99,235,0.15); color: #93c5fd; }
body.dark-mode .notif-icon.chat { background: rgba(219,39,119,0.15); color: #f472b6; }
body.dark-mode .notif-icon.empfehlung { background: rgba(217,119,6,0.15); color: #fbbf24; }
body.dark-mode .notif-icon.portfolio { background: rgba(5,150,105,0.15); color: #6ee7b7; }
body.dark-mode .notif-icon.vemo { background: rgba(67,56,202,0.15); color: #a5b4fc; }
body.dark-mode .notif-icon.newsletter { background: rgba(22,163,74,0.15); color: #86efac; }
body.dark-mode .notif-text h4 { color: #e2e8f0; }
body.dark-mode .notif-text p { color: #94a3b8; }
body.dark-mode .notif-toggle { background: #334155; }
body.dark-mode .notif-toggle.active { background: #22c55e; }
body.dark-mode .notif-toggle::after { background: #e2e8f0; }

/* ---- Community section ---- */
body.dark-mode .community-header { background: #1e293b; border-color: #334155; }
body.dark-mode .community-header h2 { color: #f1f5f9; }
body.dark-mode .community-header p { color: #94a3b8; }
body.dark-mode .community-post { background: #1e293b; border-color: #334155; }
body.dark-mode .community-post:hover { border-color: #475569; }
body.dark-mode .community-post-title { color: #e2e8f0; }
body.dark-mode .community-post-body { color: #94a3b8; }
body.dark-mode .community-post-meta { color: #64748b; }
body.dark-mode .community-post-tag { background: #0f172a; color: #94a3b8; border-color: #334155; }
body.dark-mode .community-vote-col { background: transparent; }
body.dark-mode .community-vote-btn { color: #64748b; }
body.dark-mode .community-vote-btn:hover { background: #334155; }
body.dark-mode .community-vote-btn.upvoted { color: #7ed957; background: rgba(126,217,87,0.1); }
body.dark-mode .community-vote-btn.downvoted { color: #ef4444; background: rgba(239,68,68,0.1); }
body.dark-mode .community-sort-bar { background: transparent; }
body.dark-mode .community-sort-btn { color: #94a3b8; }
body.dark-mode .community-sort-btn:hover { color: #e2e8f0; }
body.dark-mode .community-sort-btn.active { color: #7ed957; }
body.dark-mode .community-create-form { background: #1e293b; border-color: #334155; }
body.dark-mode .community-create-form input,
body.dark-mode .community-create-form textarea,
body.dark-mode .community-create-form select {
  background: #0f172a; border-color: #334155; color: #e2e8f0;
}
body.dark-mode .community-create-form input:focus,
body.dark-mode .community-create-form textarea:focus {
  border-color: #7ed957;
}
body.dark-mode .community-comment-body { background: #0f172a; border-color: #334155; }
body.dark-mode .community-comment-author { color: #e2e8f0; }
body.dark-mode .community-comment-text { color: #cbd5e1; }
body.dark-mode .community-comment-meta { color: #64748b; }
body.dark-mode .community-comment-vote:hover { background: #334155; }
body.dark-mode .community-comment-action { color: #64748b; }
body.dark-mode .community-comment-action:hover { color: #7ed957; }
body.dark-mode .community-comment-input textarea {
  background: #0f172a; border-color: #334155; color: #e2e8f0;
}
body.dark-mode .community-comment-input textarea:focus { border-color: #7ed957; }
body.dark-mode .community-comment-score { color: #e2e8f0; }
body.dark-mode .community-sidebar-card { background: #1e293b; border-color: #334155; }
body.dark-mode .community-sidebar-card h4 { color: #94a3b8; }
body.dark-mode .community-sidebar-rule { border-bottom-color: #334155; color: #94a3b8; }
body.dark-mode .community-sidebar-tag { background: #0f172a; color: #94a3b8; }
body.dark-mode .community-sidebar-tag:hover { background: #7ed957; color: #fff; }
body.dark-mode .community-sidebar-tag.active { background: #f1f5f9; color: #1e293b; }
body.dark-mode .community-sidebar-stat { color: #94a3b8; }
body.dark-mode .community-sidebar-stat strong { color: #e2e8f0; }
body.dark-mode .community-empty { background: #1e293b; border-color: #334155; }
body.dark-mode .community-empty h3 { color: #94a3b8; }
body.dark-mode .community-activation-card { background: #1e293b; border-color: #334155; box-shadow: 0 8px 40px rgba(0,0,0,0.3); }
body.dark-mode .community-activation-info { background: rgba(254,243,199,0.08); border-color: rgba(253,230,138,0.2); }
body.dark-mode .community-activation-info-item { color: #fbbf24; }
body.dark-mode .community-terms-box { background: #0f172a; border-color: #334155; }
body.dark-mode .community-terms-content p { color: #94a3b8; }
body.dark-mode .community-checkbox-label { color: #cbd5e1; }

/* ---- Community emoji picker ---- */
body.dark-mode .community-emoji-toggle:hover { background: #334155; }
body.dark-mode .community-emoji-picker { background: #1e293b; border-color: #334155; box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
body.dark-mode .community-emoji-btn:hover { background: #334155; }

/* ---- Floating beratung button dark mode refinement ---- */
body.dark-mode .floating-beratung-btn svg { color: #fff; }

/* ---- AP modal overlay ---- */
body.dark-mode .ap-modal-overlay { background: rgba(0,0,0,0.7); backdrop-filter: blur(6px); }

/* ---- Generic form inputs inside any modal ---- */
body.dark-mode .modal input,
body.dark-mode .modal textarea,
body.dark-mode .modal select {
  background: #0f172a; border-color: #334155; color: #e2e8f0;
}
body.dark-mode .modal input::placeholder,
body.dark-mode .modal textarea::placeholder { color: #475569; }
body.dark-mode .modal input:focus,
body.dark-mode .modal textarea:focus,
body.dark-mode .modal select:focus {
  border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(126,217,87,0.12);
}
body.dark-mode .modal label { color: #cbd5e1; }

/* ============================================================
   COMPREHENSIVE DARK MODE — remaining sections
   ============================================================ */

/* ---- Dashboard: Stat Inline Row ---- */
body.dark-mode .dash-stats-inline { background: #1e293b; border-color: #334155; }
body.dark-mode .dash-stat-value { color: #e2e8f0; }
body.dark-mode .dash-stat-total { color: #64748b; }
body.dark-mode .dash-stat-label { color: #64748b; }
body.dark-mode .dash-stat-divider { background: #334155; }
body.dark-mode .dash-section-header h2 { color: #e2e8f0; }
body.dark-mode .dash-section-link { color: var(--green-400); }

/* ---- Dashboard: Continue Learning Cards ---- */
body.dark-mode .dash-continue-card { background: #1e293b; border-color: #334155; }
body.dark-mode .dash-continue-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.3); }
body.dark-mode .dash-continue-body h3 { color: #e2e8f0; }
body.dark-mode .dash-continue-next { color: #94a3b8; }
body.dark-mode .dash-continue-meta { color: #64748b; }
body.dark-mode .dash-continue-thumb { background-color: #334155; }

/* ---- Dashboard: Course Card Detail Text ---- */
body.dark-mode .dash-course-body h3 { color: #e2e8f0; }
body.dark-mode .dash-course-meta { color: #64748b; }
body.dark-mode .dash-course-footer { border-top-color: #334155; }
body.dark-mode .dash-course-creator { color: #94a3b8; }
body.dark-mode .dash-course-lock { background: rgba(30,41,59,0.92); color: #94a3b8; }
body.dark-mode .dash-course-thumb { background-color: #334155; }
body.dark-mode .dash-badge-free { background: rgba(126,217,87,0.15); color: #86efac; }
body.dark-mode .dash-badge-premium { background: rgba(91,75,213,0.15); color: #a78bfa; }
body.dark-mode .dash-badge-premium-cta { background: #6d5bdb; color: #fff; }
body.dark-mode .dash-course-hover-overlay { background: rgba(15,23,42,0.85); }

/* ---- Dashboard: Live Call Cards ---- */
body.dark-mode .dash-live-call-card { background: #1e293b; border-color: #334155; }
body.dark-mode .dash-live-call-card:hover { background: #334155; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
body.dark-mode .dash-live-call-live { background: rgba(126,217,87,0.08); border-color: var(--green-600); }
body.dark-mode .dash-live-call-info strong { color: #e2e8f0; }
body.dark-mode .dash-live-call-countdown { color: #64748b; }

/* ---- Live Calls: LC Cards ---- */
body.dark-mode .lc-card { background: #1e293b; border-color: #334155; }
body.dark-mode .lc-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.3); }
body.dark-mode .lc-card-live { border-color: var(--green-500); box-shadow: 0 0 0 2px rgba(126,217,87,0.15); }
body.dark-mode .lc-card-soon { border-color: #b45309; }
body.dark-mode .lc-card-body h3 { color: #e2e8f0; }
body.dark-mode .lc-card-body > p { color: #94a3b8; }
body.dark-mode .lc-card-meta { color: #64748b; }
body.dark-mode .lc-card-action-hint { color: #64748b; }
body.dark-mode .lc-action-join { color: var(--green-400); }
body.dark-mode .lc-card-host { color: #94a3b8; }
body.dark-mode .lc-admin-table { background: #1e293b; border-color: #334155; }
body.dark-mode .lc-admin-table th { background: #0f172a; border-bottom-color: #334155; color: #94a3b8; }
body.dark-mode .lc-admin-table td { border-bottom-color: #334155; color: #e2e8f0; }
body.dark-mode .lc-admin-table tr:hover td { background: #334155; }
body.dark-mode .lc-card-clickable:hover { box-shadow: 0 12px 32px rgba(0,0,0,.3); }

/* ---- Call Room ---- */
body.dark-mode .call-room-topbar { background: #1e293b; border-bottom-color: #334155; }
body.dark-mode .call-room-title { color: #e2e8f0; }
body.dark-mode .call-room-host { color: #94a3b8; }
body.dark-mode .call-room-timer { color: #cbd5e1; }
body.dark-mode .call-room-participants { color: #94a3b8; }
body.dark-mode .call-room-waiting { background: #0f172a; }
body.dark-mode .call-room-waiting h2 { color: #e2e8f0; }
body.dark-mode .call-room-waiting p { color: #94a3b8; }
body.dark-mode .call-room-join-area { background: #0f172a; }
body.dark-mode .call-room-join-area h2 { color: #e2e8f0; }
body.dark-mode .call-room-join-area p { color: #94a3b8; }
body.dark-mode .call-room-chat-header { border-bottom-color: #334155; color: #e2e8f0; }
body.dark-mode .call-room-chat-name { color: #e2e8f0; }
body.dark-mode .call-room-chat-text { color: #cbd5e1; }
body.dark-mode .call-room-chat-time { color: #64748b; }
body.dark-mode .call-room-chat-input { border-top-color: #334155; }
body.dark-mode .call-room-chat-input input { background: #0f172a; border-color: #334155; color: #e2e8f0; }
body.dark-mode .call-room-chat-input input:focus { border-color: var(--green-400); box-shadow: 0 0 0 2px rgba(126,217,87,0.15); }
body.dark-mode .chat-role-badge.host { background: rgba(91,75,213,0.15); color: #a78bfa; }
body.dark-mode .chat-role-badge.admin { background: rgba(217,119,6,0.15); color: #fbbf24; }

/* ---- Call Detail Modal ---- */
body.dark-mode .call-detail-overlay { background: rgba(0,0,0,.6); }
body.dark-mode .call-detail-modal { background: #1e293b; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
body.dark-mode .call-detail-modal h2 { color: #e2e8f0; }
body.dark-mode .call-detail-modal p { color: #94a3b8; }
body.dark-mode .call-detail-meta { color: #94a3b8; }
body.dark-mode .call-detail-countdown { background: #0f172a; }
body.dark-mode .call-detail-countdown .countdown-label { color: #64748b; }

/* ---- Player Controls & Tabs ---- */
body.dark-mode .player-controls { background: #1e293b; }
body.dark-mode .player-controls h2 { color: #e2e8f0; }
body.dark-mode .player-controls .pc-meta { color: #94a3b8; }
body.dark-mode .player-tabs { border-bottom-color: #334155; }
body.dark-mode .player-tab { color: #94a3b8; }
body.dark-mode .player-tab.active { color: var(--green-400); border-bottom-color: var(--green-500); }
body.dark-mode .player-tab-content { color: #cbd5e1; }
body.dark-mode .player-sidebar-progress { background: #334155; }

/* ---- Profile Header ---- */
body.dark-mode .profile-header { background: #1e293b; border-color: #334155; }
body.dark-mode .profile-info h2 { color: #e2e8f0; }
body.dark-mode .profile-info p { color: #94a3b8; }
body.dark-mode .profile-stat strong { color: #e2e8f0; }
body.dark-mode .profile-stat small { color: #94a3b8; }

/* ---- Creator Course Cards ---- */
body.dark-mode .creator-course-card { background: #1e293b; border-color: #334155; }
body.dark-mode .creator-course-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.3); }
body.dark-mode .creator-course-info h3 { color: #e2e8f0; }
body.dark-mode .creator-course-info p { color: #94a3b8; }
body.dark-mode .creator-course-stats { color: #64748b; }

/* ---- Empty State ---- */
body.dark-mode .empty-state { color: #64748b; }
body.dark-mode .empty-state h3 { color: #94a3b8; }
body.dark-mode .empty-state p { color: #64748b; }

/* ---- Progress Bar ---- */
body.dark-mode .progress-bar { background: #334155; }

/* ---- Certificate Card (text is white already, just ensure icon area) ---- */
body.dark-mode .admin-cert-info strong { color: #e2e8f0; }
body.dark-mode .admin-cert-info small { color: #94a3b8; }
body.dark-mode .admin-cert-item { border-bottom-color: #334155; }
body.dark-mode .admin-bookmark-info strong { color: #e2e8f0; }
body.dark-mode .admin-bookmark-info small { color: #94a3b8; }
body.dark-mode .admin-bookmark-item { border-bottom-color: #334155; }

/* ---- Admin Detail Sub-elements ---- */
body.dark-mode .admin-detail-meta h2 { color: #e2e8f0; }
body.dark-mode .admin-detail-meta p { color: #94a3b8; }
body.dark-mode .admin-detail-stat { color: #94a3b8; }
body.dark-mode .admin-detail-stat strong { color: #e2e8f0; }
body.dark-mode .admin-detail-section-body { color: #cbd5e1; }
body.dark-mode .admin-edit-row label { color: #cbd5e1; }

/* ---- Sidebar: Active Link, User, Premium, Close ---- */
body.dark-mode .sidebar-link { color: #94a3b8; }
body.dark-mode .sidebar-link.active { background: rgba(126,217,87,0.1); color: var(--green-400); }
body.dark-mode .sidebar-link.active svg { stroke: var(--green-400); }
body.dark-mode .sidebar-link svg { stroke: #64748b; }
body.dark-mode .sidebar-nav-label { color: #64748b; }
body.dark-mode .sidebar-user { color: #e2e8f0; }
body.dark-mode .sidebar-user:hover { background: #334155; }
body.dark-mode .sidebar-user-info strong { color: #e2e8f0; }
body.dark-mode .sidebar-user-info small { color: #94a3b8; }
body.dark-mode .sidebar-logout { color: #94a3b8; }
body.dark-mode .sidebar-logout:hover { background: rgba(239,68,68,0.1); color: #f87171; }
body.dark-mode .sidebar-close { color: #94a3b8; }
body.dark-mode .sidebar-premium-link { background: rgba(126,217,87,0.08); border-color: #334155; color: #e2e8f0; }
body.dark-mode .sidebar-premium-link:hover { background: rgba(126,217,87,0.15); }

/* ---- Feedback Badges ---- */
body.dark-mode .feedback-badge-offen { background: rgba(217,119,6,0.15); color: #fbbf24; }
body.dark-mode .feedback-badge-in_bearbeitung { background: rgba(37,99,235,0.15); color: #93c5fd; }
body.dark-mode .feedback-badge-bitte_pruefen { background: rgba(245,158,11,0.15); color: #fbbf24; }
body.dark-mode .feedback-badge-gefixt { background: rgba(34,197,94,0.15); color: #86efac; }
body.dark-mode .feedback-badge-abgeschlossen { background: rgba(100,116,139,0.15); color: #94a3b8; }
body.dark-mode .feedback-badge-niedrig { background: rgba(37,99,235,0.15); color: #93c5fd; }
body.dark-mode .feedback-badge-mittel { background: rgba(120,53,15,0.15); color: #fbbf24; }
body.dark-mode .feedback-badge-hoch { background: rgba(219,39,119,0.15); color: #f472b6; }

/* ---- Wissen (Knowledge Base) ---- */
body.dark-mode .wissen-header h1 { color: #e2e8f0; }
body.dark-mode .wissen-header p { color: #94a3b8; }
body.dark-mode .wissen-search { background: #0f172a; border-color: #334155; color: #e2e8f0; }
body.dark-mode .wissen-search:focus { border-color: var(--green-500); }
body.dark-mode .wissen-search-icon { color: #64748b; }
body.dark-mode .wissen-search-clear { color: #64748b; }
body.dark-mode .wissen-tab { background: #1e293b; border-color: #334155; color: #94a3b8; }
body.dark-mode .wissen-tab:hover { border-color: var(--green-500); color: var(--green-400); }
body.dark-mode .wissen-tab.active { background: var(--green-500); color: #fff; border-color: var(--green-500); }
body.dark-mode .wissen-progress-bar { background: #334155; }
body.dark-mode .wissen-progress-text { color: #64748b; }
body.dark-mode .wissen-progress-text strong { color: var(--green-400); }
body.dark-mode .wissen-card { background: #1e293b; border-color: #334155; }
body.dark-mode .wissen-card:hover { border-color: var(--green-500); box-shadow: 0 4px 12px rgba(0,0,0,.3); }
body.dark-mode .wissen-card-icon { background: rgba(126,217,87,0.1); color: var(--green-400); }
body.dark-mode .wissen-card-meta h3 { color: #e2e8f0; }
body.dark-mode .wissen-card-meta p { color: #94a3b8; }
body.dark-mode .wissen-badge { background: #334155; color: #94a3b8; }
body.dark-mode .wissen-badge-cat { background: rgba(126,217,87,0.12); color: var(--green-400); }
body.dark-mode .wissen-badge-read { background: rgba(126,217,87,0.2); color: var(--green-400); }
body.dark-mode .wissen-content { border-top-color: #334155; color: #cbd5e1; }
body.dark-mode .wissen-content h3,
body.dark-mode .wissen-content h4 { color: #e2e8f0; }
body.dark-mode .wissen-content strong { color: #e2e8f0; }
body.dark-mode .wissen-content table { border-color: #334155; }
body.dark-mode .wissen-content th { background: #0f172a; border-bottom-color: #334155; color: #e2e8f0; }
body.dark-mode .wissen-content td { border-bottom-color: #334155; color: #cbd5e1; }
body.dark-mode .wissen-content tr:hover td { background: rgba(126,217,87,0.04); }
body.dark-mode .wissen-info { background: rgba(126,217,87,0.08); border-left-color: var(--green-500); }
body.dark-mode .wissen-info strong { color: var(--green-400); }
body.dark-mode .wissen-warn { background: rgba(255,193,7,0.08); border-left-color: #fbbf24; color: #e2e8f0; }
body.dark-mode .wissen-collapse-btn { background: #334155; border-color: #475569; color: #94a3b8; }
body.dark-mode .wissen-collapse-btn:hover { background: #475569; color: #e2e8f0; }

/* ---- Stat Card text colors ---- */
body.dark-mode .stat-card h3 { color: #e2e8f0; }
body.dark-mode .stat-card p { color: #94a3b8; }
body.dark-mode .stat-change.up { background: rgba(126,217,87,0.15); color: #86efac; }
body.dark-mode .stat-change.down { background: rgba(239,68,68,0.15); color: #fca5a5; }

/* ---- Course Card detail text ---- */
body.dark-mode .course-card-body h3 { color: #e2e8f0; }
body.dark-mode .course-card-body p { color: #94a3b8; }
body.dark-mode .course-card-meta { color: #64748b; }
body.dark-mode .course-card-cat { color: var(--green-400); }
body.dark-mode .course-card-creator { color: #94a3b8; }

/* ---- Course Detail Hero ---- */
body.dark-mode .course-detail-info h1 { color: #e2e8f0; }
body.dark-mode .course-detail-info .cd-subtitle { color: #94a3b8; }
body.dark-mode .course-detail-info .cd-cat { color: var(--green-400); }

/* ---- Lesson Items ---- */
body.dark-mode .lesson-item { color: #e2e8f0; }
body.dark-mode .lesson-item:hover { background: #334155; }
body.dark-mode .lesson-play { background: rgba(126,217,87,0.15); color: var(--green-400); }
body.dark-mode .lesson-play:hover { background: var(--green-500); color: #fff; }

/* ============================================================
   DARK MODE UTILITY CLASSES (inline-style replacements)
   ============================================================ */

/* --- Base (light) defaults --- */
.dm-text-primary { color: #1a1a1a; }
.dm-card { background: #fff; border: 1px solid #f0f0f0; }
.dm-card-featured { background: linear-gradient(145deg, #f0fdf4 0%, #ffffff 60%); }
.dm-card-featured-blue { background: linear-gradient(145deg, #eff6ff 0%, #ffffff 60%); }
.dm-modal { background: #fff; }
.dm-surface-alt { background: #f8fafc; }
.dm-input { background: #fff; }

/* --- Dark overrides --- */
body.dark-mode .dm-text-primary { color: #e2e8f0; }
body.dark-mode .dm-card { background: #1e293b; border-color: #334155; }
body.dark-mode .dm-card-featured { background: linear-gradient(145deg, rgba(126,217,87,0.08) 0%, #1e293b 60%); }
body.dark-mode .dm-card-featured-blue { background: linear-gradient(145deg, rgba(59,130,246,0.08) 0%, #1e293b 60%); }
body.dark-mode .dm-modal { background: #1e293b; }
body.dark-mode .dm-surface-alt { background: #0f172a; }
body.dark-mode .dm-input { background: #0f172a; color: #e2e8f0; }

/* --- Berater chip (dashboard) --- */
.dm-berater-chip { background: #f8f9fa; }
.dm-berater-avatar { background: #e8f5e9; color: #15803d; }
body.dark-mode .dm-berater-chip { background: #334155; }
body.dark-mode .dm-berater-avatar { background: rgba(126,217,87,0.15); color: #7ed957; }

/* --- Chat bubble (received / not mine) --- */
.dm-chat-bubble-other { background: #f3f4f6; color: #1a1a1a; }
body.dark-mode .dm-chat-bubble-other { background: #334155; color: #e2e8f0; }

/* --- Weekday checkbox label --- */
.dm-wd-label { background: #fff; border-color: #e2e8f0; }
.dm-wd-label.checked { background: #eff6ff; border-color: #3b82f6; }
body.dark-mode .dm-wd-label { background: #1e293b; border-color: #475569; }
body.dark-mode .dm-wd-label.checked { background: rgba(59,130,246,0.15); border-color: #3b82f6; }

/* --- Document upload drop zone --- */
.dm-upload-zone { background: #fafafa; border-color: #d1d5db; }
.dm-upload-zone.has-docs { background: #f0fdf4; border-color: var(--green-300); }
body.dark-mode .dm-upload-zone { background: #0f172a; border-color: #475569; }
body.dark-mode .dm-upload-zone.has-docs { background: rgba(126,217,87,0.08); border-color: rgba(126,217,87,0.3); }

/* --- Mini status dot (neutral/not-due) --- */
.dm-dot-neutral { background: #e2e8f0; }
body.dark-mode .dm-dot-neutral { background: #475569; }

/* --- Provider selection card --- */
.dm-provider-card-inactive { background: white; }
body.dark-mode .dm-provider-card-inactive { background: #1e293b; }

/* --- Admin KPI icon containers --- */
.dm-kpi-error-bg { background: #fef2f2; color: #ef4444; }
.dm-kpi-neutral-bg { background: #f3f5f7; color: #7a8694; }
body.dark-mode .dm-kpi-error-bg { background: rgba(239,68,68,0.12); color: #f87171; }
body.dark-mode .dm-kpi-neutral-bg { background: #334155; color: #94a3b8; }

/* ============================================================
   DARK MODE — AGGRESSIVE CATCH-ALL OVERRIDES
   Forces dark mode on ALL remaining white/light elements
   ============================================================ */

/* --- Force all dm-* utility cards, containers, modals to dark --- */
body.dark-mode .dm-card,
body.dark-mode .dm-card-featured,
body.dark-mode .dm-card-featured-blue,
body.dark-mode .dm-modal,
body.dark-mode .dm-input,
body.dark-mode .dm-surface-alt {
  color: #e2e8f0 !important;
}

body.dark-mode .dm-card {
  background: #1e293b !important;
  border-color: #334155 !important;
}

body.dark-mode .dm-card-featured {
  background: linear-gradient(145deg, rgba(126,217,87,0.1) 0%, #1e293b 60%) !important;
  border-color: rgba(126,217,87,0.2) !important;
}

body.dark-mode .dm-card-featured-blue {
  background: linear-gradient(145deg, rgba(59,130,246,0.1) 0%, #1e293b 60%) !important;
  border-color: rgba(59,130,246,0.15) !important;
}

.emp-hidden { display: none !important; }

body.dark-mode .dm-modal {
  background: #1e293b !important;
}

body.dark-mode .dm-surface-alt {
  background: #0f172a !important;
}

body.dark-mode .dm-input {
  background: #0f172a !important;
  color: #e2e8f0 !important;
  border-color: #334155 !important;
}

body.dark-mode .dm-text-primary {
  color: #e2e8f0 !important;
}

/* --- Global: Force dark on ANY element with inline white bg --- */
body.dark-mode [style*="background:#fff"],
body.dark-mode [style*="background: #fff"],
body.dark-mode [style*="background:white"],
body.dark-mode [style*="background: white"],
body.dark-mode [style*="background:#ffffff"],
body.dark-mode [style*="background: #ffffff"] {
  background: #1e293b !important;
  border-color: #334155 !important;
}

body.dark-mode [style*="background-color:#fff"],
body.dark-mode [style*="background-color: #fff"],
body.dark-mode [style*="background-color:white"],
body.dark-mode [style*="background-color: white"],
body.dark-mode [style*="background-color:#ffffff"],
body.dark-mode [style*="background-color: #ffffff"] {
  background-color: #1e293b !important;
  border-color: #334155 !important;
}

body.dark-mode [style*="background:#f8f9fa"],
body.dark-mode [style*="background: #f8f9fa"],
body.dark-mode [style*="background:#f3f4f6"],
body.dark-mode [style*="background: #f3f4f6"],
body.dark-mode [style*="background:#f8fafc"],
body.dark-mode [style*="background: #f8fafc"],
body.dark-mode [style*="background:#f1f5f9"],
body.dark-mode [style*="background: #f1f5f9"],
body.dark-mode [style*="background:#f0f0f0"],
body.dark-mode [style*="background:#f9fafb"],
body.dark-mode [style*="background: #f9fafb"] {
  background: #0f172a !important;
}

/* --- Force dark text colors on elements with hardcoded dark text --- */
body.dark-mode [style*="color:#1a1a1a"],
body.dark-mode [style*="color: #1a1a1a"],
body.dark-mode [style*="color:#1a1a2e"],
body.dark-mode [style*="color: #1a1a2e"],
body.dark-mode [style*="color:#282f47"],
body.dark-mode [style*="color: #282f47"],
body.dark-mode [style*="color:#1f2937"],
body.dark-mode [style*="color: #1f2937"],
body.dark-mode [style*="color:#101828"],
body.dark-mode [style*="color: #101828"],
body.dark-mode [style*="color:#0f172a"],
body.dark-mode [style*="color: #0f172a"],
body.dark-mode [style*="color:#000"],
body.dark-mode [style*="color: #000"],
body.dark-mode [style*="color:black"],
body.dark-mode [style*="color: black"] {
  color: #e2e8f0 !important;
}

/* --- Force light borders on elements with hardcoded light borders --- */
body.dark-mode [style*="border:1px solid #e2e8f0"],
body.dark-mode [style*="border:1px solid #e5e7eb"],
body.dark-mode [style*="border:1px solid #f0f0f0"],
body.dark-mode [style*="border:2px solid #e5e7eb"],
body.dark-mode [style*="border:2px solid #d1d5db"],
body.dark-mode [style*="border:1px solid #edf0f5"],
body.dark-mode [style*="border:1px solid #dfe3ec"],
body.dark-mode [style*="border-bottom:1px solid #e"],
body.dark-mode [style*="border-bottom:2px solid #e"] {
  border-color: #334155 !important;
}

/* --- Force light-colored secondary text --- */
body.dark-mode [style*="color:#6b7280"],
body.dark-mode [style*="color: #6b7280"],
body.dark-mode [style*="color:#98a2b3"],
body.dark-mode [style*="color: #98a2b3"],
body.dark-mode [style*="color:#64748b"],
body.dark-mode [style*="color: #64748b"] {
  color: #94a3b8 !important;
}

/* --- Force dark on light green/blue tinted backgrounds --- */
body.dark-mode [style*="background:#f0fdf4"],
body.dark-mode [style*="background: #f0fdf4"],
body.dark-mode [style*="background:#e8f5e9"],
body.dark-mode [style*="background: #e8f5e9"],
body.dark-mode [style*="background:#eff6ff"],
body.dark-mode [style*="background: #eff6ff"],
body.dark-mode [style*="background:#eef2ff"],
body.dark-mode [style*="background: #eef2ff"],
body.dark-mode [style*="background:#fff7ed"],
body.dark-mode [style*="background: #fff7ed"],
body.dark-mode [style*="background:#fef3c7"],
body.dark-mode [style*="background: #fef3c7"],
body.dark-mode [style*="background:#fee2e2"],
body.dark-mode [style*="background: #fee2e2"],
body.dark-mode [style*="background:#fef2f2"],
body.dark-mode [style*="background: #fef2f2"],
body.dark-mode [style*="background:#fff5f5"],
body.dark-mode [style*="background: #fff5f5"],
body.dark-mode [style*="background:#dcfce7"],
body.dark-mode [style*="background: #dcfce7"],
body.dark-mode [style*="background:#dbeafe"],
body.dark-mode [style*="background: #dbeafe"] {
  background: rgba(30,41,59,0.8) !important;
}

/* --- Force dark on light gradient backgrounds --- */
body.dark-mode [style*="background:linear-gradient(180deg,#f0fdf4"],
body.dark-mode [style*="background:linear-gradient(180deg,#f8fdf5"],
body.dark-mode [style*="background:linear-gradient(145deg, #f0fdf4"],
body.dark-mode [style*="background:linear-gradient(135deg,#f0fdf4"] {
  background: linear-gradient(145deg, rgba(126,217,87,0.06) 0%, #1e293b 60%) !important;
}

/* --- Input and form elements global override --- */
body.dark-mode input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
body.dark-mode textarea,
body.dark-mode select {
  background-color: #0f172a !important;
  color: #e2e8f0 !important;
  border-color: #334155 !important;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
  color: #64748b !important;
}

/* --- Table overrides --- */
body.dark-mode table {
  border-color: #334155 !important;
}

body.dark-mode th {
  background: #0f172a !important;
  color: #e2e8f0 !important;
  border-color: #334155 !important;
}

body.dark-mode td {
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}

body.dark-mode tr:hover td {
  background: rgba(51,65,85,0.3) !important;
}

/* --- Status badges with colored backgrounds - keep colors but adapt for dark --- */
body.dark-mode [style*="background:#fef3c7"][style*="color:#92400e"] {
  background: rgba(245,158,11,0.15) !important;
  color: #fbbf24 !important;
}

body.dark-mode [style*="background:#dcfce7"][style*="color:#166534"] {
  background: rgba(34,197,94,0.15) !important;
  color: #4ade80 !important;
}

body.dark-mode [style*="background:#fee2e2"][style*="color:#991b1b"],
body.dark-mode [style*="background:#fef2f2"][style*="color:#991b1b"] {
  background: rgba(239,68,68,0.15) !important;
  color: #f87171 !important;
}

body.dark-mode [style*="background:#dbeafe"][style*="color:#1e40af"] {
  background: rgba(59,130,246,0.15) !important;
  color: #60a5fa !important;
}

/* ============================================================
   DARK MODE — SPECIFIC CLASS OVERRIDES (remaining gaps)
   ============================================================ */

/* --- Community page missing overrides --- */
body.dark-mode .community-tag-chip {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #94a3b8 !important;
}
body.dark-mode .community-tag-chip:hover {
  border-color: #7ed957 !important;
  color: #e2e8f0 !important;
  background: rgba(126,217,87,0.08) !important;
}
body.dark-mode .community-tag-chip.active {
  background: #7ed957 !important;
  color: #fff !important;
  border-color: #7ed957 !important;
}

body.dark-mode .community-create-bar {
  background: #1e293b !important;
  border-color: #334155 !important;
}
body.dark-mode .community-create-bar:hover {
  border-color: #7ed957 !important;
}
body.dark-mode .community-create-bar input {
  color: #94a3b8 !important;
}

body.dark-mode .community-sort-bar {
  background: #1e293b !important;
  border-color: #334155 !important;
}
body.dark-mode .community-sort-btn:hover {
  background: #334155 !important;
  color: #e2e8f0 !important;
}
body.dark-mode .community-sort-divider {
  background: #334155 !important;
}

body.dark-mode .community-sidebar-rule {
  border-bottom-color: #1e293b !important;
  color: #94a3b8 !important;
}
body.dark-mode .community-sidebar-stat strong {
  color: #e2e8f0 !important;
}
body.dark-mode .community-sidebar-tag {
  background: #334155 !important;
  color: #94a3b8 !important;
}
body.dark-mode .community-sidebar-tag:hover {
  background: #7ed957 !important;
  color: #fff !important;
}

body.dark-mode .community-activation-info {
  background: rgba(245,158,11,0.08) !important;
  border-color: rgba(253,230,138,0.2) !important;
}
body.dark-mode .community-activation-info-item {
  color: #fbbf24 !important;
}

/* --- Notification toggle in dark mode --- */
body.dark-mode .notif-toggle {
  background: #475569 !important;
}
body.dark-mode .notif-toggle.active {
  background: #22c55e !important;
}
body.dark-mode .notif-toggle::after {
  background: #e2e8f0 !important;
}

/* --- Onboarding inputs --- */
body.dark-mode #onboardingAlterInput,
body.dark-mode #onboardingMonatlichInput {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
body.dark-mode #onboardingHorizontDisplay {
  background: rgba(126,217,87,0.1) !important;
  border-color: rgba(126,217,87,0.2) !important;
  color: #7ed957 !important;
}

/* --- Landing page service/tool cards --- */
body.dark-mode .lp-service-card {
  background: #1e293b !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2), 0 8px 32px rgba(0,0,0,0.15) !important;
}

body.dark-mode .lp-tools {
  background: #0f172a !important;
}

body.dark-mode .lp-tool-card {
  background: #1e293b !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2), 0 8px 32px rgba(0,0,0,0.15) !important;
}

/* --- Employer landing page --- */
body.dark-mode .emp-landing {
  background: #0f172a !important;
  color: #e2e8f0 !important;
}

body.dark-mode .emp-card {
  background: #1e293b !important;
  border-color: #334155 !important;
}

body.dark-mode .emp-testimonial {
  background: #1e293b !important;
  border-color: #334155 !important;
}

body.dark-mode .emp-cta-card {
  background: #1e293b !important;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3) !important;
}

/* --- Wissen warn box --- */
body.dark-mode .wissen-warn {
  background: rgba(255,193,7,0.08) !important;
  border-left-color: #fbbf24 !important;
  color: #e2e8f0 !important;
}

/* --- Additional background-color overrides for inline styles --- */
body.dark-mode [style*="background-color:#f8f9fa"],
body.dark-mode [style*="background-color: #f8f9fa"],
body.dark-mode [style*="background-color:#f3f4f6"],
body.dark-mode [style*="background-color: #f3f4f6"],
body.dark-mode [style*="background-color:#f8fafc"],
body.dark-mode [style*="background-color: #f8fafc"],
body.dark-mode [style*="background-color:#f1f5f9"],
body.dark-mode [style*="background-color: #f1f5f9"] {
  background-color: #0f172a !important;
}

/* --- Inline tinted background-color overrides --- */
body.dark-mode [style*="background-color:#f0fdf4"],
body.dark-mode [style*="background-color: #f0fdf4"],
body.dark-mode [style*="background-color:#e8f5e9"],
body.dark-mode [style*="background-color:#eff6ff"],
body.dark-mode [style*="background-color:#eef2ff"],
body.dark-mode [style*="background-color:#fff7ed"],
body.dark-mode [style*="background-color:#fef3c7"],
body.dark-mode [style*="background-color:#fee2e2"],
body.dark-mode [style*="background-color:#fef2f2"],
body.dark-mode [style*="background-color:#dcfce7"],
body.dark-mode [style*="background-color:#dbeafe"] {
  background-color: rgba(30,41,59,0.8) !important;
}

/* --- Inline box-shadow overrides (lighten heavy shadows in dark) --- */
body.dark-mode [style*="box-shadow:0 2px 8px rgba(0,0,0,0.06)"],
body.dark-mode [style*="box-shadow:0 4px 12px rgba(0,0,0,0.06)"],
body.dark-mode [style*="box-shadow:0 8px 32px rgba(0,0,0,0.08)"],
body.dark-mode [style*="box-shadow:0 8px 40px rgba(0,0,0,0.08)"] {
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

/* --- Remaining #fffbeb (amber warning) backgrounds --- */
body.dark-mode [style*="background:#fffbeb"],
body.dark-mode [style*="background: #fffbeb"],
body.dark-mode [style*="background:#fff8e1"],
body.dark-mode [style*="background: #fff8e1"] {
  background: rgba(245,158,11,0.08) !important;
}

/* --- Force white text in dark cards that might have dark text --- */
body.dark-mode [style*="color:#475569"],
body.dark-mode [style*="color: #475569"],
body.dark-mode [style*="color:#374151"],
body.dark-mode [style*="color: #374151"],
body.dark-mode [style*="color:#334155"],
body.dark-mode [style*="color: #334155"] {
  color: #94a3b8 !important;
}

body.dark-mode [style*="color:#1e293b"],
body.dark-mode [style*="color: #1e293b"],
body.dark-mode [style*="color:#111827"],
body.dark-mode [style*="color: #111827"],
body.dark-mode [style*="color:#0a0a0a"],
body.dark-mode [style*="color: #0a0a0a"] {
  color: #e2e8f0 !important;
}

/* --- Inline border overrides (more patterns) --- */
body.dark-mode [style*="border:1px solid #f1f5f9"],
body.dark-mode [style*="border:1px solid #f8fafc"],
body.dark-mode [style*="border:1px solid #f0f0f0"],
body.dark-mode [style*="border:2px solid #e2e8f0"],
body.dark-mode [style*="border:1px solid #d1d5db"],
body.dark-mode [style*="border:1px solid #e8edf4"],
body.dark-mode [style*="border:1px solid #dee2e6"] {
  border-color: #334155 !important;
}

/* --- Force dark on rgb/rgba near-white backgrounds --- */
body.dark-mode [style*="background:rgb(255"],
body.dark-mode [style*="background: rgb(255"],
body.dark-mode [style*="background-color:rgb(255"],
body.dark-mode [style*="background-color: rgb(255"] {
  background: #1e293b !important;
}

/* --- Additional inline overrides for #fff8e1, #fff5f5, #fffbeb warn/error tints --- */
body.dark-mode [style*="background-color:#fffbeb"],
body.dark-mode [style*="background-color:#fff8e1"],
body.dark-mode [style*="background-color:#fff5f5"],
body.dark-mode [style*="background-color:#fff7ed"] {
  background-color: rgba(30,41,59,0.8) !important;
}

/* --- SVG / icon color fixes for dark mode --- */
body.dark-mode [style*="color:#15803d"],
body.dark-mode [style*="color: #15803d"] {
  color: #7ed957 !important;
}

body.dark-mode [style*="color:#166534"],
body.dark-mode [style*="color: #166534"] {
  color: #4ade80 !important;
}

body.dark-mode [style*="color:#1e40af"],
body.dark-mode [style*="color: #1e40af"] {
  color: #60a5fa !important;
}

body.dark-mode [style*="color:#92400e"],
body.dark-mode [style*="color: #92400e"] {
  color: #fbbf24 !important;
}

body.dark-mode [style*="color:#991b1b"],
body.dark-mode [style*="color: #991b1b"] {
  color: #f87171 !important;
}

body.dark-mode [style*="color:#ea580c"],
body.dark-mode [style*="color: #ea580c"] {
  color: #fb923c !important;
}

/* ============================================================
   DARK MODE — Chat Contact Fix (mb-chat-contact)
   ============================================================ */
body.dark-mode .mb-chat-contact {
  border-bottom-color: #334155 !important;
}
body.dark-mode .mb-chat-contact.active {
  background: rgba(126,217,87,0.1) !important;
}
body.dark-mode .mb-chat-contact:hover {
  background: rgba(51,65,85,0.5) !important;
}

/* Video call button in chat */
body.dark-mode button[onclick*="startChatVideoCall"] {
  background: rgba(126,217,87,0.1) !important;
  border-color: #334155 !important;
  color: #7ed957 !important;
}

/* Berater ansehen button */
body.dark-mode button[onclick*="navigate('meine-berater')"] {
  background: rgba(126,217,87,0.1) !important;
  border-color: #334155 !important;
}

/* Dashboard berater card gradient in Kunde-Dashboard */
body.dark-mode [style*="background:linear-gradient"][style*="#f0fdf4"][style*="#ffffff"] {
  background: linear-gradient(145deg, rgba(126,217,87,0.08) 0%, #1e293b 100%) !important;
}

/* ============================================================
   DARK MODE FIX — Protect avatar/gradient elements from catch-all override
   The green-gradient avatar circles and profile images in chat must
   keep their background-image and gradient colors in dark mode.
   ============================================================ */
body.dark-mode .mb-chat-contact div[style*="background:linear-gradient(135deg,#7ed957"] {
  background: linear-gradient(135deg,#7ed957,#6ac66e) !important;
}
body.dark-mode .mb-chat-contact div[style*="background-image:url("] {
  background-color: transparent !important;
  background-size: cover !important;
  background-position: center !important;
}
body.dark-mode div[style*="background:linear-gradient(135deg,#7ed957"][style*="border-radius"] {
  background: linear-gradient(135deg,#7ed957,#6ac66e) !important;
}
body.dark-mode div[style*="background-image:url("][style*="background-size:cover"] {
  background-color: transparent !important;
  background-size: cover !important;
  background-position: center !important;
}

/* ============================================================
   DARK MODE FIX — Wissensbibliothek progress bar white line
   ============================================================ */
body.dark-mode .wissen-progress {
  background: #1e293b !important;
  border: 1px solid #334155;
}

/* ============================================================
   DARK MODE FIX — Empfehlungsprogramm (Referral) cards
   ============================================================ */
body.dark-mode .ke-tunnel-wrap {
  background: #1e293b !important;
  border-color: #334155 !important;
}
body.dark-mode .ke-tunnel-header h2 {
  color: #e2e8f0 !important;
}
body.dark-mode .ke-tunnel-header p {
  color: #94a3b8 !important;
}
body.dark-mode .ke-tunnel-label {
  color: #e2e8f0 !important;
}
body.dark-mode .ke-tunnel-label span {
  color: #64748b !important;
}
body.dark-mode .ke-tunnel-input {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
body.dark-mode .ke-tunnel-input:focus {
  border-color: #7ed957 !important;
}
body.dark-mode .ke-tunnel-option {
  background: #0f172a !important;
  border-color: #334155 !important;
}
body.dark-mode .ke-tunnel-option:hover {
  border-color: #7ed957 !important;
  background: rgba(126,217,87,0.05) !important;
}
body.dark-mode .ke-tunnel-option.selected {
  background: rgba(126,217,87,0.08) !important;
  border-color: #7ed957 !important;
}
body.dark-mode .ke-tunnel-option strong {
  color: #e2e8f0 !important;
}
body.dark-mode .ke-tunnel-option span {
  color: #94a3b8 !important;
}
body.dark-mode .ke-tunnel-progress {
  background: #334155 !important;
}
body.dark-mode .ke-tunnel-btn-outline {
  border-color: #334155 !important;
  color: #94a3b8 !important;
}
body.dark-mode .ke-tunnel-btn-outline:hover {
  border-color: #7ed957 !important;
  color: #7ed957 !important;
}
body.dark-mode .ke-tunnel-back {
  color: #94a3b8 !important;
}
body.dark-mode .ke-tunnel-back:hover {
  color: #e2e8f0 !important;
}
body.dark-mode .ke-link-success h3 {
  color: #e2e8f0 !important;
}
body.dark-mode .ke-link-success p {
  color: #94a3b8 !important;
}
body.dark-mode .ke-link-box input {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
body.dark-mode .ke-share-email {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
body.dark-mode .ke-result-info {
  background: rgba(126,217,87,0.06) !important;
}
body.dark-mode .ke-result-info p {
  color: #94a3b8 !important;
}
body.dark-mode .ke-history h3 {
  color: #e2e8f0 !important;
}
body.dark-mode .ke-history-card {
  background: #1e293b !important;
  border-color: #334155 !important;
}
body.dark-mode .ke-history-card:hover {
  border-color: #7ed957 !important;
}
body.dark-mode .ke-history-name-row strong {
  color: #e2e8f0 !important;
}
body.dark-mode .ke-history-date {
  color: #64748b !important;
}
body.dark-mode .ke-history-actions {
  border-top-color: #334155 !important;
}
body.dark-mode .ke-copy-link-btn {
  border-color: #334155 !important;
  color: #94a3b8 !important;
}
body.dark-mode .ke-copy-link-btn:hover {
  border-color: #7ed957 !important;
  color: #7ed957 !important;
}
body.dark-mode .ke-pipe-dot {
  background: #334155 !important;
  color: #64748b !important;
}
body.dark-mode .ke-pipe-step.done .ke-pipe-dot {
  background: #7ed957 !important;
  color: #fff !important;
}
body.dark-mode .ke-pipe-step span {
  color: #94a3b8 !important;
}
body.dark-mode .ke-pipe-step.done span {
  color: #7ed957 !important;
}
body.dark-mode .ke-delete-btn {
  color: #64748b !important;
}
body.dark-mode .ke-delete-btn:hover {
  color: #ef4444 !important;
  background: rgba(239,68,68,0.1) !important;
}

/* =========================================================
   DARKMODE KOMPLETT-FIX — öffentliche Seiten
   Vemo Academy — Public Pages Dark Mode Perfektion
   ========================================================= */

/* --- GLOBAL Brand-Regel: Grüne Buttons IMMER weißer Text --- */
body.dark-mode .btn-primary,
body.dark-mode .btn-primary:hover,
body.dark-mode .btn-primary:active,
body.dark-mode .btn-primary:focus {
  color: #fff !important;
}
body.dark-mode .btn-vip,
body.dark-mode .btn-vip:hover {
  color: #fff !important;
}
body.dark-mode .nav-cta,
body.dark-mode .nav-cta:hover {
  color: #fff !important;
}
body.dark-mode button#nlBtn,
body.dark-mode button#nlBtn:hover {
  color: #fff !important;
}

/* --- INDEX: Hero-Mockup & Stat-Cards --- */
body.dark-mode .lp-hero-mockup {
  background: #0f172a !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08) !important;
}
body.dark-mode .lp-mockup-topbar {
  background: #1e293b !important;
  border-bottom: 1px solid #334155 !important;
}
body.dark-mode .lp-mockup-url {
  background: #334155 !important;
  color: #94a3b8 !important;
}
body.dark-mode .lp-md-stat-card {
  background: #1e293b !important;
  border-color: #334155 !important;
}
body.dark-mode .lp-md-stat-card.accent {
  background: #334155 !important;
  border-color: #475569 !important;
}
body.dark-mode .lp-md-stat-card .lp-md-stat-label,
body.dark-mode .lp-md-stat-card.accent .lp-md-stat-label {
  color: #94a3b8 !important;
}
body.dark-mode .lp-md-stat-card .lp-md-stat-value {
  color: #e2e8f0 !important;
}
body.dark-mode .lp-md-stat-card.accent .lp-md-stat-value {
  color: #7ed957 !important;
}
body.dark-mode .blog-tb {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}
body.dark-mode #appLoader { background: #0f172a !important; }

/* --- TEAM-PAGE: Card-Fix (dark-800 invertiert) --- */
body.dark-mode .tp-card {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
}
body.dark-mode .tp-card-name { color: #f1f5f9 !important; }
body.dark-mode .tp-card-role { color: #86efac !important; }
body.dark-mode .tp-card-meta { color: #cbd5e1 !important; }
body.dark-mode .tp-card-bio { color: #94a3b8 !important; }
body.dark-mode .tp-badge {
  background: rgba(126,217,87,0.15) !important;
  color: #86efac !important;
}
body.dark-mode .tp-exp {
  background: #334155 !important;
  color: #e2e8f0 !important;
}

/* --- BROKER-VERGLEICH: Kompletter Darkmode (war komplett fehlend) --- */
body.dark-mode .bv-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  color: #e2e8f0 !important;
}
body.dark-mode .bv-hero h1 { color: #f1f5f9 !important; }
body.dark-mode .bv-hero p { color: #94a3b8 !important; }
body.dark-mode .bv-badge {
  background: rgba(126,217,87,0.15) !important;
  color: #7ed957 !important;
}
body.dark-mode .bv-filter-btn {
  background: #1e293b !important;
  color: #e2e8f0 !important;
  border-color: #334155 !important;
}
body.dark-mode .bv-filter-btn:hover {
  border-color: #7ed957 !important;
  background: rgba(126,217,87,0.1) !important;
}
body.dark-mode .bv-filter-btn.active {
  background: #7ed957 !important;
  color: #fff !important;
  border-color: #7ed957 !important;
}
body.dark-mode .bv-top-card {
  background: #1e293b !important;
  border-color: #334155 !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4) !important;
}
body.dark-mode .bv-top-card.gold {
  border-color: #7ed957 !important;
  box-shadow: 0 8px 32px rgba(126,217,87,0.2) !important;
}
body.dark-mode .bv-top-card .bv-broker-name { color: #f1f5f9 !important; }
body.dark-mode .bv-top-card .bv-meta { color: #94a3b8 !important; }
body.dark-mode .bv-top-card .bv-meta-row strong { color: #e2e8f0 !important; }
body.dark-mode .bv-rank-badge.rank-2 { background: #334155 !important; color: #e2e8f0 !important; }
body.dark-mode .bv-rank-badge.rank-3 { background: rgba(251,146,60,0.2) !important; color: #fb923c !important; }
body.dark-mode .bv-tag-yes {
  background: rgba(126,217,87,0.15) !important;
  color: #7ed957 !important;
}
body.dark-mode .bv-tag-no {
  background: #334155 !important;
  color: #94a3b8 !important;
}
body.dark-mode .bv-table-wrap {
  background: #1e293b !important;
  border-color: #334155 !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3) !important;
}
body.dark-mode .bv-table-title { color: #f1f5f9 !important; }
body.dark-mode .bv-table thead th {
  color: #94a3b8 !important;
  border-bottom-color: #334155 !important;
  background: #0f172a !important;
}
body.dark-mode .bv-table tbody tr { border-bottom-color: #334155 !important; }
body.dark-mode .bv-table tbody tr:hover { background: rgba(126,217,87,0.05) !important; }
body.dark-mode .bv-table .bv-cell-rank { color: #94a3b8 !important; }
body.dark-mode .bv-table .bv-cell-broker { color: #e2e8f0 !important; }
body.dark-mode .bv-table .bv-cell-score { color: #7ed957 !important; }
body.dark-mode .bv-table .bv-icon-yes { color: #7ed957 !important; }
body.dark-mode .bv-table .bv-icon-no { color: #475569 !important; }
body.dark-mode .bv-disclaimer {
  background: rgba(126,217,87,0.08) !important;
  border-color: rgba(126,217,87,0.2) !important;
}
body.dark-mode .bv-disclaimer p { color: #cbd5e1 !important; }
body.dark-mode .bv-disclaimer strong { color: #f1f5f9 !important; }
body.dark-mode .bv-mobile-card {
  background: #1e293b !important;
  border-color: #334155 !important;
}
body.dark-mode .bv-mobile-rank { background: #334155 !important; color: #e2e8f0 !important; }
body.dark-mode .bv-mobile-card-name { color: #f1f5f9 !important; }
body.dark-mode .bv-mobile-score { color: #7ed957 !important; }
body.dark-mode .bv-mobile-card-item { border-bottom-color: #334155 !important; }
body.dark-mode .bv-mobile-card-item .label { color: #94a3b8 !important; }
body.dark-mode .bv-mobile-card-item .value { color: #e2e8f0 !important; }

/* --- INVESTIEREN: CTA & Headings-Fix --- */
body.dark-mode .inv-section.inv-bg-dark,
body.dark-mode .inv-cta {
  background: #0f172a !important;
  color: #e2e8f0 !important;
}
body.dark-mode .inv-section.inv-bg-dark h2,
body.dark-mode .inv-section.inv-bg-dark h3,
body.dark-mode .inv-section.inv-bg-dark h4,
body.dark-mode .inv-cta h2,
body.dark-mode .inv-cta h3 {
  color: #f1f5f9 !important;
}
body.dark-mode .inv-section.inv-bg-dark p,
body.dark-mode .inv-section.inv-bg-dark li,
body.dark-mode .inv-cta p {
  color: #cbd5e1 !important;
}
body.dark-mode .inv-section.inv-bg-white {
  background: #0f172a !important;
}
body.dark-mode .inv-section.inv-bg-grey {
  background: #1e293b !important;
}
body.dark-mode .inv-card {
  background: #1e293b !important;
  border-color: #334155 !important;
}
body.dark-mode .inv-card h3,
body.dark-mode .inv-card h4 { color: #f1f5f9 !important; }
body.dark-mode .inv-card p,
body.dark-mode .inv-card li { color: #cbd5e1 !important; }
body.dark-mode .inv-text { color: #cbd5e1 !important; }
body.dark-mode .inv-sources {
  background: rgba(255,255,255,0.03) !important;
  border-color: #334155 !important;
}
body.dark-mode .inv-sources strong { color: #e2e8f0 !important; }

/* --- BUDGETRECHNER: Meter-Balken --- */
body.dark-mode .vb-meter { background: #334155 !important; }

/* --- ZINSESZINSRECHNER: Range-Slider --- */
body.dark-mode #zinseszins-app input[type="range"] {
  background: linear-gradient(90deg, var(--green-500) var(--val, 0%), #334155 var(--val, 0%)) !important;
}
body.dark-mode #zinseszins-app input[type="range"]::-moz-range-track {
  background: #334155 !important;
}

/* --- ANLAGERISIKO: Chart-Panel --- */
body.dark-mode #vemo-ui .chartPanel.panel,
body.dark-mode #vemo-ui .panel {
  background: #1e293b !important;
  border-color: #334155 !important;
}
body.dark-mode #vemo-ui input[type="range"].input {
  background: #334155 !important;
}
body.dark-mode #vemo-ui input[type="range"] {
  background: linear-gradient(90deg, var(--green-500) var(--val, 0%), #334155 var(--val, 0%)) !important;
}

/* --- FINANZIELLE-FREIHEIT: KPI-Hover-Fix --- */
body.dark-mode #freiheit .kpi.endcap,
body.dark-mode #freiheit .kpi.status,
body.dark-mode #freiheit .kpi.accent,
body.dark-mode #freiheit .kpi {
  background: #1e293b !important;
  border-color: #334155 !important;
}
body.dark-mode #freiheit .kpi.endcap:hover,
body.dark-mode #freiheit .kpi.status:hover,
body.dark-mode #freiheit .kpi.accent:hover,
body.dark-mode #freiheit .kpi:hover {
  background: #263247 !important;
}
body.dark-mode #freiheit .kpi.endcap { border-top-color: #5b7cfa !important; }
body.dark-mode #freiheit .kpi.status { border-top-color: #7ed957 !important; }
body.dark-mode #freiheit .kpi.status.warn { border-top-color: #eab308 !important; }
body.dark-mode #freiheit .kpi.status.danger { border-top-color: #ef4444 !important; }
body.dark-mode #freiheit .kpi.accent { border-top-color: #7ed957 !important; }
body.dark-mode #freiheit .kpi .kpi-label { color: #94a3b8 !important; }
body.dark-mode #freiheit .kpi .kpi-value { color: #f1f5f9 !important; }

/* --- BLOG-ARTIKEL: Inline-styled Info-Boxes aus CMS --- */
body.dark-mode .blog-article-content div[style*="background:#f0f4f8"],
body.dark-mode .blog-article-content div[style*="background: #f0f4f8"],
body.dark-mode .blog-article-content div[style*="#f0f4f8"] {
  background: rgba(37,99,235,0.12) !important;
  border-left-color: #60a5fa !important;
  color: #e2e8f0 !important;
}
body.dark-mode .blog-article-content div[style*="#f0f4f8"] h3,
body.dark-mode .blog-article-content h3[style*="color:#1a73e8"],
body.dark-mode .blog-article-content h3[style*="color: #1a73e8"] {
  color: #60a5fa !important;
}
body.dark-mode .blog-article-content div[style*="#f0f4f8"] p,
body.dark-mode .blog-article-content div[style*="#f0f4f8"] li,
body.dark-mode .blog-article-content div[style*="#f0f4f8"] strong {
  color: #e2e8f0 !important;
}
body.dark-mode .blog-article-content tr[style*="background:#1a73e8"],
body.dark-mode .blog-article-content tr[style*="background: #1a73e8"] {
  background: #1e3a8a !important;
}
body.dark-mode .blog-article-content tr[style*="#1a73e8"] th {
  color: #e2e8f0 !important;
}
body.dark-mode .blog-article-content [style*="background:#fff"],
body.dark-mode .blog-article-content [style*="background: #fff"],
body.dark-mode .blog-article-content [style*="background:#f0"],
body.dark-mode .blog-article-content [style*="background: #f0"] {
  background: #1e293b !important;
  color: #e2e8f0 !important;
}
body.dark-mode .blog-article-content blockquote {
  background: rgba(255,255,255,0.04) !important;
  border-left-color: #7ed957 !important;
  color: #cbd5e1 !important;
}

/* --- DATENSCHUTZ: Tabellen-Card-Optik --- */
body.dark-mode .legal-content table {
  background: #1e293b !important;
  border-radius: 12px !important;
  overflow: hidden;
  border: 1px solid #334155;
}
body.dark-mode .legal-content td {
  color: #cbd5e1 !important;
}

/* =========================================================
   ENDE DARKMODE KOMPLETT-FIX
   ========================================================= */

/* --- TEAM-PAGE: Quote-Box Konsistenz --- */
body.dark-mode .tp-card-quote {
  background: rgba(126,217,87,0.08) !important;
  color: #e2e8f0 !important;
  border-color: rgba(126,217,87,0.2) !important;
}
body.dark-mode .tp-card-quote::before,
body.dark-mode .tp-card-quote::after {
  color: #86efac !important;
}

/* ═══════════════════════════════════════════════════
   MOBILE FIXES (Touch-Optimierung, Admin-Bereich)
   ═══════════════════════════════════════════════════ */

/* Touch-Devices: Mindestgrößen für Buttons und Inputs */
@media (hover: none) and (pointer: coarse) {
  .btn, .btn-primary, .btn-secondary, .btn-danger,
  .btn-sm, .sidebar-link, .nav-link, .tab-btn, .filter-chip,
  .admin-action-btn, .pill, .secondary-btn {
    min-height: 44px;
  }
  input[type="text"], input[type="email"], input[type="password"],
  input[type="search"], input[type="tel"], input[type="number"],
  input[type="url"], input[type="date"], input[type="time"],
  textarea, select {
    min-height: 44px;
    font-size: 16px !important; /* iOS Auto-Zoom Prevention */
  }
}

/* Mobile: Topbar & Page-Content kompakter */
@media (max-width: 640px) {
  .topbar { padding: 0 12px; }
  .topbar-search { max-width: 100%; flex: 1; }
  .page-content { padding: 12px; }
  .dash-courses-grid { grid-template-columns: 1fr; gap: 12px; }
  .cr-stats-grid { grid-template-columns: 1fr; }
  .admin-table th, .admin-table td { padding: 10px 8px; font-size: 0.82rem; white-space: normal; }
  .admin-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 480px) {
  .topbar { padding: 0 10px; }
  .page-content { padding: 10px; }
  .sidebar { padding: 16px 12px; }
  .dash-courses-grid, .cr-stats-grid, .stats-grid { grid-template-columns: 1fr; }
  .btn { padding: 12px 18px; }
  .admin-action-btn { padding: 10px 14px; }
}

@media (max-width: 360px) {
  .topbar { padding: 0 8px; }
  .page-content { padding: 8px; }
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.2rem; }
}

/* ═══════════════════════════════════════════════════════
   ADMIN-VERTEILER (Lead-Verteiler) — Mobile-Fixes
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .vt-container { padding: 0 12px !important; max-width: 100% !important; }
  .vt-tabs { margin-bottom: 16px !important; }
  .vt-tab-btn { padding: 10px 14px !important; font-size: 0.85rem !important; min-height: 44px; }
  /* Log-Rows auf Handy umbrechen */
  .vt-log-row { flex-wrap: wrap !important; }
  .vt-log-row > div:first-child { flex-basis: 100%; }
  .vt-log-row > div:not(:first-child) { flex: 0 0 auto; }
  /* KPI-Karten in Verteiler */
  .vt-container > div[style*="display:flex"][style*="gap:"] { flex-wrap: wrap !important; }
}
@media (max-width: 480px) {
  .vt-container { padding: 0 8px !important; }
  .vt-tabs { gap: 0 !important; }
  .vt-tab-btn { padding: 10px 12px !important; font-size: 0.8rem !important; }
  .vt-container h1 { font-size: 1.25rem !important; }
}

/* ═══════════════════════════════════════════════════════
   ADMIN-VIEWS — Universelle Mobile-Fixes (für alle renderAdmin*)
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Alle inline-styled Container mit max-width werden auf Handy full-width */
  .page-content > div[style*="max-width:1200px"],
  .page-content > div[style*="max-width:1100px"],
  .page-content > div[style*="max-width:1000px"],
  .page-content > div[style*="max-width:900px"] {
    max-width: 100% !important;
    padding: 0 !important;
  }
  /* Flex-Container mit mehreren Inline-Cards brechen um */
  .page-content div[style*="display:flex"][style*="min-width"] {
    flex-wrap: wrap !important;
  }
  /* Tabellen im Admin scrollen horizontal */
  .page-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
  /* KPI-Cards in Admin-Übersichten: mind. 1 pro Zeile, nicht kleiner als 140px */
  .page-content div[style*="flex:1"][style*="min-width:200px"] { min-width: 140px !important; }
}
@media (max-width: 480px) {
  /* Inline h1 kleiner */
  .page-content h1[style*="font-size:1.5rem"],
  .page-content h1[style*="font-size: 1.5rem"] { font-size: 1.25rem !important; }
  .page-content h2[style*="font-size:1.2rem"] { font-size: 1.05rem !important; }
  /* Action-Buttons in Admin-Headers voll breit */
  .page-content div[style*="display:flex"][style*="gap"][style*="margin-bottom"] button,
  .page-content div[style*="display:flex"][style*="gap"][style*="margin-bottom"] a.btn { min-height: 40px; }
}

/* ═══════════════════════════════════════════════════════
   INLINE GRIDS in Admin/Creator/Kunde Views → Responsive
   ═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* 4-spaltige Grids werden 2-spaltig */
  .page-content div[style*="grid-template-columns:repeat(4,1fr)"],
  .page-content div[style*="grid-template-columns:repeat(4, 1fr)"],
  .page-content div[style*="grid-template-columns: 1fr 1fr 1fr 1fr"],
  .page-content div[style*="grid-template-columns:1fr 1fr 1fr 1fr"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 768px) {
  /* 3-spaltige Grids werden 2-spaltig (außer Emoji-Grids mit 8) */
  .page-content div[style*="grid-template-columns:repeat(3,1fr)"]:not([id*="Emoji"]),
  .page-content div[style*="grid-template-columns:repeat(3, 1fr)"]:not([id*="Emoji"]),
  .page-content div[style*="grid-template-columns: 1fr 1fr 1fr"]:not([style*="1fr 1fr 1fr 1fr"]):not([id*="Emoji"]),
  .page-content div[style*="grid-template-columns:1fr 1fr 1fr"]:not([style*="1fr 1fr 1fr 1fr"]):not([id*="Emoji"]) {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  /* Auto-fill Grids min 240px werden kleiner */
  .page-content div[style*="minmax(380px"],
  .page-content div[style*="minmax(340px"],
  .page-content div[style*="minmax(280px"] {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 768px) {
  /* Split-Views (Sidebar + Content): stacken auf Mobile */
  .page-content div[style*="grid-template-columns: 240px 1fr"],
  .page-content div[style*="grid-template-columns:240px 1fr"],
  .page-content div[style*="grid-template-columns: 260px 1fr"],
  .page-content div[style*="grid-template-columns:260px 1fr"],
  .page-content div[style*="grid-template-columns: 280px 1fr"],
  .page-content div[style*="grid-template-columns:280px 1fr"],
  .page-content div[style*="grid-template-columns: 300px 1fr"],
  .page-content div[style*="grid-template-columns:300px 1fr"],
  .page-content div[style*="grid-template-columns: 320px 1fr"],
  .page-content div[style*="grid-template-columns:320px 1fr"],
  .page-content div[style*="grid-template-columns: 1fr 240px"],
  .page-content div[style*="grid-template-columns:1fr 240px"],
  .page-content div[style*="grid-template-columns: 1fr 280px"],
  .page-content div[style*="grid-template-columns:1fr 280px"],
  .page-content div[style*="grid-template-columns: 1fr 300px"],
  .page-content div[style*="grid-template-columns:1fr 300px"] {
    grid-template-columns: 1fr !important;
  }
}
/* ═══════════════════════════════════════════════════════
   GLOBAL OVERFLOW-SAFETY (verhindert Handy-Überlauf rechts)
   ═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  .page-content, main, .main-content, .app-content {
    overflow-x: hidden !important;
    max-width: 100% !important;
  }
  /* Bilder, Videos, iFrames nie breiter als Container */
  .page-content img,
  .page-content video,
  .page-content iframe,
  main img, main video, main iframe {
    max-width: 100% !important;
    height: auto !important;
  }
  /* Lange URLs / Texte brechen um */
  .page-content p,
  .page-content span,
  .page-content div,
  .page-content a,
  .page-content li,
  .page-content td,
  .page-content h1,
  .page-content h2,
  .page-content h3,
  .page-content h4 {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  /* Code-Blöcke scrollen statt überlaufen */
  .page-content pre, .page-content code {
    overflow-x: auto;
    max-width: 100%;
  }
  /* Absolut/Fixed positionierte Popups max 100vw */
  .notif-dropdown, .tooltip, .popover, .dropdown-menu, .user-menu,
  [class*="dropdown"], [class*="popup"], [class*="tooltip"] {
    max-width: calc(100vw - 20px) !important;
  }
  /* Emoji-Picker etc max 100vw */
  .dm-emoji-picker, [class*="emoji-picker"] {
    max-width: calc(100vw - 20px) !important;
  }
  /* Inline breite Elemente auf 100% */
  .page-content [style*="width:400px"],
  .page-content [style*="width: 400px"],
  .page-content [style*="width:500px"],
  .page-content [style*="width: 500px"],
  .page-content [style*="width:600px"],
  .page-content [style*="width: 600px"],
  .page-content [style*="min-width:400px"],
  .page-content [style*="min-width: 400px"],
  .page-content [style*="min-width:500px"],
  .page-content [style*="min-width: 500px"] {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  /* Chat-Bubbles + lange Nachrichten-Container */
  .chat-message, .message-bubble, .msg-bubble, [class*="message-"] {
    max-width: 85% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
}

/* Modals + Dialogs Mobile-friendly */
@media (max-width: 768px) {
  .modal-overlay { padding: 12px !important; align-items: flex-start !important; padding-top: 40px !important; }
  .modal { max-width: 100% !important; max-height: calc(100vh - 80px) !important; border-radius: 14px !important; }
  .modal-header { padding: 18px 20px 0 !important; }
  .modal-header h2 { font-size: 1.1rem !important; }
  .modal-body { padding: 16px 20px 20px !important; }
  /* Inline modals mit max-width */
  div[style*="max-width:600px"][style*="margin:"],
  div[style*="max-width:500px"][style*="margin:"],
  div[style*="max-width:680px"][style*="margin:"] { max-width: calc(100vw - 24px) !important; }
}
@media (max-width: 480px) {
  .modal-overlay { padding: 8px !important; padding-top: 30px !important; }
  .modal-header { padding: 14px 16px 0 !important; }
  .modal-body { padding: 12px 16px 16px !important; }
  .modal-header h2 { font-size: 1rem !important; }
}

@media (max-width: 560px) {
  /* Alle 2-3-4 spaltigen Grids werden 1-spaltig (außer Emoji) */
  .page-content div[style*="grid-template-columns:repeat(2,1fr)"]:not([id*="Emoji"]),
  .page-content div[style*="grid-template-columns:repeat(2, 1fr)"]:not([id*="Emoji"]),
  .page-content div[style*="grid-template-columns:repeat(3,1fr)"]:not([id*="Emoji"]),
  .page-content div[style*="grid-template-columns:repeat(3, 1fr)"]:not([id*="Emoji"]),
  .page-content div[style*="grid-template-columns:repeat(4,1fr)"],
  .page-content div[style*="grid-template-columns:repeat(4, 1fr)"],
  .page-content div[style*="grid-template-columns: 1fr 1fr"]:not([id*="Emoji"]),
  .page-content div[style*="grid-template-columns:1fr 1fr"]:not([id*="Emoji"]) {
    grid-template-columns: 1fr !important;
  }
  /* Padding der Container reduzieren */
  .page-content div[style*="padding:28px"],
  .page-content div[style*="padding: 28px"],
  .page-content div[style*="padding:32px"],
  .page-content div[style*="padding: 32px"] {
    padding: 16px !important;
  }
}

/* =========================================================
   DARKMODE FIX: Admin-Dashboard Lead-Preise Cards
   (Safety-Net für inline-styled #fff / #0b1117)
   ========================================================= */
body.dark-mode div[style*="background:#fff"][style*="border-radius:14px"] {
  background: #1e293b !important;
  border-color: #334155 !important;
}
body.dark-mode div[style*="color:#0b1117"] {
  color: #f1f5f9 !important;
}
/* Auch alle Cards auf dem Admin-Dashboard mit hart-codiertem #fff */
body.dark-mode div[style*="background:#fff"][style*="border:1px solid #e5e8ec"] {
  background: #1e293b !important;
  border-color: #334155 !important;
}
/* Text auf diesen Cards */
body.dark-mode div[style*="background:#fff"] [style*="color:#0b1117"],
body.dark-mode div[style*="background:#fff"] [style*="color: #0b1117"] {
  color: #f1f5f9 !important;
}

/* ============================================
   VEMO CI: em-Highlighting (Cyrill 2026-04-21)
   - keine Italic / Schrägstellung
   - gleiche font-weight wie Parent (nicht dünner)
   - exakt Vemo-Grün #7ed957 (nicht --accent-deep)
   ============================================ */
em, i { font-style: normal !important; font-weight: inherit !important; }
h1 em, h2 em, h3 em, h4 em, h5 em, h6 em {
  font-style: normal !important;
  font-weight: inherit !important;
  color: #7ed957 !important;
}/* Cyrill 2026-05-09: Sun/Moon Drehung-Animation für Dark-Mode-Toggle */
.public-darkmode-toggle {
  position: relative;
  width: 32px;
  height: 32px;
}
.public-darkmode-toggle .icon-sun,
.public-darkmode-toggle .icon-moon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  display: block !important;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.public-darkmode-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
.public-darkmode-toggle .icon-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0);
  pointer-events: none;
}
body.dark-mode .public-darkmode-toggle .icon-sun {
  opacity: 0;
  transform: rotate(90deg) scale(0);
  pointer-events: none;
}
body.dark-mode .public-darkmode-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  pointer-events: auto;
}