/* Ersatzschrift in den Massen von Poppins (12.11.2026, SEO-Lane, Punkt 5 Tempo).
   Poppins kommt von Google und laedt nach dem ersten Bild. Bis dahin zeichnet der Browser eine Ersatzschrift, und weil
   Poppins 6 bis 11 Prozent breiter laeuft, verschob sich beim Wechsel der Inhalt (gemessen: Kontaktseite 0,108, Grenze 0,1).
   PoppinsErsatz ist das Arial des Geraets, auf die Breite und Hoehe von Poppins gebracht. Sie steht in jedem Schrift-Stapel
   direkt hinter Poppins. Werte gemessen in Chrome am 12.11.2026 (Breite desselben Textes): 400 = 110,3 %, 700 = 106,2 %.
   Hoehen aus den Massen von Poppins (Oberlaenge 1,05, Unterlaenge 0,35, Zeilenabstand 0,10), geteilt durch size-adjust. */
@font-face {
  font-family: PoppinsErsatz;
  src: local('Arial'), local('ArialMT'), local('Helvetica Neue'), local('Roboto');
  font-weight: 100 500;
  size-adjust: 110.3%; ascent-override: 95.2%; descent-override: 31.7%; line-gap-override: 9.1%;
}
@font-face {
  font-family: PoppinsErsatz;
  src: local('Arial Bold'), local('Arial-BoldMT'), local('Helvetica Neue Bold'), local('Roboto Bold');
  font-weight: 600 900;
  size-adjust: 106.2%; ascent-override: 98.9%; descent-override: 33%; line-gap-override: 9.4%;
}

/* ============================================================
   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;

  /* --- Secondary accents --- */
  --blue-500: #2563eb;
  --blue-50: #eff6ff;
  --purple-500: #7c3aed;
  --purple-50: #f5f3ff;
  --orange-500: #ea580c;
  --orange-50: #fff7ed;
  --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; }

/* SCROLLBAR-STRATEGIE (Cyrill 2026-05-28 v2):
   overflow-y:scroll verhindert Layout-Shift. scrollbar-width:none + ::webkit
   versteckt visuell -> volle Viewport-Breite ohne 15px Slot. Scroll via
   Mausrad/Trackpad/Keyboard funktioniert weiter. */
html { scroll-behavior: smooth; overflow-x: hidden; overflow-y: scroll; overscroll-behavior-x: none; scrollbar-gutter: stable; scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar { width: 0; height: 0; display: none; background: transparent; }

body {
  font-family: 'Poppins', PoppinsErsatz, -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-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 svg { flex-shrink: 0; }

/* ============================================================
   LOGIN SCREEN
   ============================================================ */
.logo { font-size: 1.6rem; font-weight: 400; letter-spacing: -0.3px; }
.logo-sub { font-size: 1rem; font-weight: 400; opacity: 0.7; }

/* Login Tabs */

.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);
}


/* ============================================================
   APP-RAHMEN (Grow, eingeloggt) — im Stil der Vemo-App
   EINE Stelle für den Grund, das Glas, die Seitenleiste, die Kopfknöpfe, das
   Mitteilungs-Fenster und die Startseite: hell UND dunkel, alle Breiten.
   Die Werte kommen aus der iOS-App (DesignSystem/Theme.swift, AppBackground.swift,
   LiquidGlass.swift, Startseitenmasse.swift): Grund #F4F7FB mit den vier Akzenttönen
   an den Ecken, Glas statt Rahmenlinien, Karten-Ecke 20+, Etikett 700 in Versalien,
   Zahl 600 mit enger Laufweite, Navy nur auf der dunklen Karte.
   Die WERTE des Rahmens (Grund, Tinte, Grautöne, Glas) und der Farbgrund gelten auch auf den drei Kundenseiten
   (body.kundenseite: Terminbuchung, Präsentation, Unterschrift); das LAYOUT (Seitenleiste, Spalte) nur in .app-shell.
   Wer hier etwas für den Rahmen braucht, ändert es HIER — nie weiter unten ein
   «FIX #n» darüberlegen (dort lagen bis 20.11.2026 zehn verstreute Schichten).
   ============================================================ */
/* ---- MARKEN-WERTE: die EINE Stelle für die Farbe der Marke im eingeloggten Bereich ----
   Gesetzt von _marke/werte-umstellen.py. Eine Marke (White-Label) setzt NUR diese Werte neu (z. B. eine marke.css nach style.css);
   jede Seite folgt von selbst. Vorgabe = Vemo.
     --akzent         der Hauptweg: Hauptknopf, Schalter an, Balken, Zähl-Marke, gewählte Punkte, Punkt nach dem Titel
     --akzent-stark   etwas dunkler, für :hover            --auf-akzent    Schrift auf einer Akzent-Fläche
     --akzent-hell    Balken auf der dunklen Karte         --akzent-schrift Zeichen und kleine Schrift in der Farbe der Marke
     --akzent-rgb     drei Zahlen für Schatten und Tönungen: rgba(var(--akzent-rgb), .3)
     --karte-dunkel-1/-2/-3   der Verlauf der dunklen Karte (.glas-karte.dunkel); ihr Licht kommt aus --akzent-rgb
     --grund-ecke-1…5 die Töne an den Ecken des Farbgrunds (drei Zahlen; 1 oben links, 2 oben rechts, 3 rechts Mitte,
                      4 unten links, 5 unten rechts); die Zartheit (Deckkraft) bleibt im Grund selbst
   Erfolg ist eigen: was «gut / erledigt / aktiv» BEDEUTET (--ton-gruen, .marke.gruen, .gut …), bleibt grün und hängt nie am Akzent. */
/* Auch auf :root: Bausteine des eingeloggten Bereichs, die app.js AUSSERHALB des Rahmens zeichnet (Anmelde-Ablauf, Meldungen),
   lesen dieselben Werte; ohne :root wäre var(--akzent) dort leer. Eine Marke überschreibt auf body.im-app, .app-shell (wiegt mehr). */
:root, body.im-app, .app-shell {
  --akzent: #7ed957;
  --akzent-stark: #72cf4b;
  --akzent-hell: #8edc59;
  --akzent-schrift: #6bc948;
  --auf-akzent: #fff;
  --akzent-rgb: 126, 217, 87;
  --karte-dunkel-1: #0f1729; --karte-dunkel-2: #1a2540; --karte-dunkel-3: #1f2c4d;
  --grund-ecke-1: 126, 217, 87; --grund-ecke-2: 76, 175, 220; --grund-ecke-3: 168, 145, 245;
  --grund-ecke-4: 245, 154, 196; --grund-ecke-5: 168, 145, 245;
}
body.dark-mode.im-app, body.dark-mode .app-shell { --grund-ecke-5: 124, 108, 242; }
/* Der Punkt nach einem Titel (Vemo.) trägt im eingeloggten Bereich die Marke */
body.im-app .dot { color: var(--akzent); }

/* Die Werte des Rahmens. Auch auf body.kundenseite: die Kundenseiten lesen Grund, Tinte, Grautöne und Glas aus DIESER Quelle.
   Sie sind immer hell: die Dunkel-Fassungen unten nennen kundenseite bewusst nicht. */
.app-shell, body.kundenseite {
  --app-grund: #f4f7fb;
  --app-tinte: #0f172a;
  --app-tinte-weich: #5c6a80;
  --app-grau: #63718a;        /* Schrift: mind. 4,5:1 auf Glas UND Grund (das #94A3B8 der App reicht im Web nur fuer Flaechen) */
  --app-schiefer: #5b6884;
  --app-zeichen: #454d68;
  --app-strich: rgba(15, 23, 42, .07);
  --app-violett: #7c6cf2;
  --app-saeule: rgba(69, 77, 104, .16);
  --app-saeule-heute: #454d68;
  --app-kreis: #282f47;

  --glas: rgba(255, 255, 255, .56);
  --glas-dicht: rgba(255, 255, 255, .84);
  --glas-linse: rgba(255, 255, 255, .95);
  --glas-wisch: rgba(255, 255, 255, .5);
  --glas-kante: rgba(255, 255, 255, .92);
  --glas-schatten: inset 0 -1px 0 rgba(15, 23, 42, .04), 0 1px 1px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --glas-schatten-hoch: inset 0 -1px 0 rgba(15, 23, 42, .04), 0 2px 4px rgba(15, 23, 42, .05), 0 18px 40px rgba(15, 23, 42, .11);
  --glas-unschaerfe: blur(22px) saturate(1.5);
  --rahmen-rand: 14px;
  --feder: cubic-bezier(.32, .72, 0, 1);
}
/* Das Layout des Rahmens (Seitenleiste links, Inhalt rechts): nur im eingeloggten Bereich */
.app-shell { display: flex; min-height: 100vh; color: var(--app-tinte); }
body.dark-mode .app-shell {
  --app-grund: #0b1120;
  --app-tinte: #eef2f9;
  --app-tinte-weich: #a3b0c6;
  --app-grau: #8492ab;
  --app-schiefer: #c9d3e6;
  --app-zeichen: #dde4f1;
  --app-strich: rgba(255, 255, 255, .08);
  --app-saeule: rgba(255, 255, 255, .14);
  --app-saeule-heute: #e6ecf7;
  --app-kreis: #3a4566;

  --glas: rgba(255, 255, 255, .06);
  --glas-dicht: rgba(20, 28, 48, .86);
  --glas-linse: rgba(255, 255, 255, .13);
  --glas-wisch: rgba(255, 255, 255, .07);
  --glas-kante: rgba(255, 255, 255, .12);
  --glas-schatten: inset 0 1px 0 rgba(255, 255, 255, .05), 0 1px 1px rgba(0, 0, 0, .2), 0 10px 30px rgba(0, 0, 0, .28);
  --glas-schatten-hoch: inset 0 1px 0 rgba(255, 255, 255, .07), 0 2px 4px rgba(0, 0, 0, .25), 0 20px 46px rgba(0, 0, 0, .42);
}

/* ---- Der Grund: die helle Basis mit den vier Akzenttönen der App an den Ecken ----
   Ohne z-index und ohne eigenen Stapel am Rahmen: Seitenleiste (9999) und ihr Schleier (9998, hängt am <body>)
   müssen im selben Stapel stehen, sonst liegt der Schleier über der Leiste.
   Auf einer Kundenseite hängt der Grund am <body>, und dessen Inhalt steht nicht wie im Rahmen in eigenen Ebenen:
   darum liegt er dort mit z-index -1 unter dem Inhalt (der <body> bildet keinen Stapel, der Grund bleibt über der Leinwand). */
.app-shell::before, body.kundenseite::before {
  content: ""; position: fixed; inset: 0; pointer-events: none;
  background:
    radial-gradient(58% 52% at 0% 0%, rgba(var(--grund-ecke-1), .22), transparent 72%),
    radial-gradient(52% 46% at 100% 0%, rgba(var(--grund-ecke-2), .17), transparent 72%),
    radial-gradient(46% 50% at 100% 52%, rgba(var(--grund-ecke-3), .12), transparent 72%),
    radial-gradient(52% 50% at 0% 100%, rgba(var(--grund-ecke-4), .13), transparent 72%),
    radial-gradient(58% 52% at 100% 100%, rgba(var(--grund-ecke-5), .19), transparent 72%),
    var(--app-grund);
}
body.kundenseite::before { z-index: -1; }
body.dark-mode .app-shell::before {
  background:
    radial-gradient(58% 52% at 0% 0%, rgba(var(--grund-ecke-1), .15), transparent 72%),
    radial-gradient(52% 46% at 100% 0%, rgba(var(--grund-ecke-2), .13), transparent 72%),
    radial-gradient(46% 50% at 100% 52%, rgba(var(--grund-ecke-3), .09), transparent 72%),
    radial-gradient(52% 50% at 0% 100%, rgba(var(--grund-ecke-4), .07), transparent 72%),
    radial-gradient(58% 52% at 100% 100%, rgba(var(--grund-ecke-5), .17), transparent 72%),
    var(--app-grund);
}

/* ---- Das Glas: EIN Rezept für jede schwebende Fläche des Rahmens (auch der Kopf der Kundenseiten) ---- */
.sidebar,
.topbar-menu, .topbar-notif, .topbar-theme-toggle,
.glas-karte, .start-aktion-kreis, .kunden-kopf {
  background: var(--glas);
  -webkit-backdrop-filter: var(--glas-unschaerfe); backdrop-filter: var(--glas-unschaerfe);
  border: 1px solid var(--glas-kante);
  box-shadow: var(--glas-schatten);
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .app-shell, body.dark-mode .app-shell, body.kundenseite { --glas: var(--glas-dicht); }
}

/* ---- Seitenleiste: eine schwebende Glas-Tafel ---- */
.sidebar {
  position: fixed; top: var(--rahmen-rand); left: var(--rahmen-rand); bottom: var(--rahmen-rand);
  width: calc(var(--sidebar-w) - 20px); border-radius: 26px;
  display: flex; flex-direction: column; overflow: hidden; z-index: 100;
  transition: transform .45s var(--feder);
}
.sidebar-header {
  padding: 22px 22px 8px; display: flex; align-items: center; justify-content: space-between;
}
.sidebar-logo { display: flex; align-items: baseline; gap: 6px; }
.sidebar-logo .logo, .kunden-kopf .logo { font-size: 1.4rem; font-weight: 400; letter-spacing: -0.3px; color: var(--app-tinte); }
.sidebar-logo .logo-sub { font-size: 0.8rem; font-weight: 400; color: var(--app-tinte-weich); }
.sidebar-close {
  display: none; width: 36px; height: 36px; border-radius: 50%; place-items: center; padding: 0;
  background: var(--glas-wisch); border: 1px solid var(--glas-kante); color: var(--app-tinte-weich);
}

.sidebar-nav {
  flex: 1; overflow-y: auto; padding: 10px 12px 16px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 16px), transparent); mask-image: linear-gradient(#000 calc(100% - 16px), transparent);
}
.sidebar-nav::-webkit-scrollbar { display: none; }
.sidebar-nav-group { margin-bottom: 10px; }
.sidebar-nav-group:last-child { margin-bottom: 0; }
.sidebar-nav-label {
  padding: 4px 12px 5px; font-size: 0.64rem; font-weight: 600; line-height: 1.4;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--app-grau);
}
.sidebar-link {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 7px 12px;
  border: 1px solid transparent; border-radius: 14px; background: none; line-height: 1.5;
  color: var(--app-tinte-weich); font-size: 0.85rem; font-weight: 500; text-align: left; cursor: pointer;
  transition: background .2s ease, color .2s ease, box-shadow .25s ease, transform .25s var(--feder);
}
.sidebar-link svg {
  width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor;
  stroke-linecap: round; stroke-linejoin: round; opacity: .82;
}
.sidebar-link:hover { background: var(--glas-wisch); color: var(--app-tinte); }
.sidebar-link:active { transform: scale(.98); }
/* Der aktive Reiter trägt die weisse Linse der App-Leiste, nicht eine Farbe. */
.sidebar-link.active {
  background: var(--glas-linse); border-color: var(--glas-kante);
  color: var(--app-tinte); font-weight: 600;
  box-shadow: 0 1px 1px rgba(15, 23, 42, .04), 0 6px 14px rgba(40, 47, 71, .1);
}
.sidebar-link.active svg { opacity: 1; }
/* Die Zahl am Reiter (ungelesene Nachrichten, neue Benutzer): Grün mit weisser Schrift, wie in der App. */
.sidebar-feedback-badge {
  display: inline-flex; margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--radius-full);
  align-items: center; justify-content: center;
  background: var(--akzent); color: var(--auf-akzent); font-size: 0.68rem; font-weight: 600; line-height: 1;
}

.sidebar-rollen { padding: 2px 12px 10px; }
.sidebar-rollen-knopf {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: 14px; border: 1px solid transparent; background: none;
  color: var(--app-grau); font-size: 0.8rem; font-weight: 500; cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.sidebar-rollen-knopf:hover { background: var(--glas-wisch); color: var(--app-tinte); }
.sidebar-rollen-knopf svg { stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sidebar-rollen-knopf svg:last-child { margin-left: auto; }
.sidebar-rollen-menu {
  margin-top: 6px; padding: 4px; border-radius: 14px;
  background: var(--glas-wisch); border: 1px solid var(--glas-kante);
}
.sidebar-rollen-wahl {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 12px; border: none; border-radius: 10px; background: none;
  color: var(--app-tinte-weich); font-size: 0.82rem; font-weight: 500; text-align: left; cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.sidebar-rollen-wahl:hover { background: var(--glas-linse); color: var(--app-tinte); }

.sidebar-footer {
  margin: 0 12px 12px; padding: 6px; display: flex; align-items: center; gap: 4px;
  border-radius: 20px; background: var(--glas-wisch); border: 1px solid var(--glas-kante);
}
.sidebar-user {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px;
  padding: 4px; border-radius: 16px; cursor: pointer; transition: background .2s ease;
}
.sidebar-user:hover { background: var(--glas-wisch); }
.sidebar-user-avatar {
  border-radius: 50%; background-color: var(--app-kreis); color: #fff; font-weight: 600;
  display: grid; place-items: center; flex-shrink: 0; overflow: hidden;
  background-size: cover; background-position: center;
}
.sidebar-user-avatar { width: 36px; height: 36px; font-size: 0.78rem; }
.sidebar-user-info { min-width: 0; }
.sidebar-user-info strong {
  display: block; font-size: 0.82rem; font-weight: 600; line-height: 1.3; color: var(--app-tinte);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-user-info small { display: block; color: var(--app-tinte-weich); font-size: 0.7rem; line-height: 1.3; }
.sidebar-logout {
  width: 36px; height: 36px; display: grid; place-items: center; flex-shrink: 0; padding: 0;
  border-radius: 50%; background: none; border: none; color: var(--app-grau);
  transition: background .2s ease, color .2s ease;
}
.sidebar-logout:hover { background: rgba(220, 38, 38, .1); color: #dc2626; }
body.dark-mode .sidebar-logout:hover { background: rgba(239, 91, 76, .14); color: #ef5b4c; }
/* Der Schleier hinter der Seitenleiste auf dem Handy. */
.sidebar-backdrop {
  position: fixed; inset: 0; z-index: 9998; background: rgba(15, 23, 42, .28);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: rahmenEin .3s ease both;
}
body.dark-mode .sidebar-backdrop { background: rgba(0, 0, 0, .5); }
@keyframes rahmenEin { from { opacity: 0; } }

/* ---- Inhalt ---- */
.main-content {
  flex: 1; min-width: 0; margin-left: var(--sidebar-w); min-height: 100vh; padding-top: var(--topbar-h);
  display: flex; flex-direction: column; position: relative;
}

/* ---- Kopf: keine Leiste, nur schwebende Glas-Knöpfe; die Kante ist ein Weichzeichner, nie eine Linie ----
   Fest am Fenster (wie Glocke und Pille in der App): der Inhalt rollt darunter durch und wird dabei unscharf.
   Die leere Fläche fängt keine Klicks ab, nur die Knöpfe selbst. */
.topbar {
  position: fixed; top: 0; left: var(--sidebar-w); right: 0; z-index: 50;
  height: var(--topbar-h); padding: 0 28px; display: flex; align-items: center; gap: 10px;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.topbar::before {
  content: ""; position: absolute; inset: 0 0 -16px 0; z-index: -1; pointer-events: none;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent);
}
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.topbar-menu, .topbar-notif, .topbar-theme-toggle {
  position: relative; width: 42px; height: 42px; border-radius: 50%; padding: 0;
  display: grid; place-items: center; color: var(--app-zeichen); cursor: pointer;
  transition: transform .3s var(--feder), box-shadow .3s ease, background .2s ease;
}
.topbar-menu { display: none; }
.topbar-menu svg, .topbar-notif svg, .topbar-theme-toggle svg {
  width: 20px; height: 20px; stroke-linecap: round; stroke-linejoin: round;
}
.topbar-menu:hover, .topbar-notif:hover, .topbar-theme-toggle:hover {
  background-color: var(--glas-linse); box-shadow: var(--glas-schatten-hoch); transform: translateY(-1px);
}
.topbar-menu:active, .topbar-notif:active, .topbar-theme-toggle:active { transform: scale(.94); }
.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; }

body.onboarding-active .topbar { left: 0; }
body.onboarding-active .main-content { margin-left: 0; }

/* ---- Mitteilungs-Fenster ---- */
.notif-dropdown {
  position: fixed; top: calc(var(--topbar-h) + 2px); right: 28px; z-index: 60;
  width: 360px; max-width: calc(100vw - 24px); overflow: hidden;
  background: var(--glas-dicht); border: 1px solid var(--glas-kante); border-radius: 22px;
  -webkit-backdrop-filter: blur(30px) saturate(1.6); backdrop-filter: blur(30px) saturate(1.6);
  box-shadow: var(--glas-schatten-hoch);
}
.notif-header { padding: 16px 20px 12px; }
.notif-header h4 { font-size: 0.95rem; font-weight: 600; color: var(--app-tinte); }
.notif-list { max-height: 320px; overflow-y: auto; }

/* ---- Seiteninhalt: EINE Spalte für JEDE Seite, mittig im freien Raum: darum liegt die linke Kante auf jeder Seite
   und auf jedem Bildschirm am selben Ort. Keine Seite legt sich eine eigene Breite zu (einzig die Tafel des CRM läuft voll). ---- */
.page-content { width: 100%; max-width: 1296px; margin: 0 auto; padding: 12px 28px 48px; flex: 1; }
.page-content[data-breite="voll"] { max-width: none; }
/* Die eine bewusst schmale Lese-Spalte (Benachrichtigungen, Empfehlung des Kunden): links bündig in der Seitenspalte */
.spalte-schmal { max-width: 760px; }

/* ---- Bewegung: EIN System für jede Seite ----
   navigate() setzt beim Seitenwechsel .seite-kommt auf die Seitenspalte und nimmt es nach dem Einblenden wieder weg: die Teile
   der Seite steigen gestaffelt ein, die Zeilen einer Liste folgen leise. Nur beim Wechsel, nie wenn eine Seite sich selbst neu
   zeichnet (Auffrischen, Filter). «backwards» statt «both»: nach dem Einblenden bleibt nichts hängen (kein eigener Stapel, in
   dem ein Fenster oder eine Schublade der Seite gefangen wäre). Keine Seite bringt mehr ein eigenes Einblenden mit. */
.page-content.seite-kommt > *, .page-content.seite-kommt > :only-child > * { animation: startAuf .55s var(--feder) backwards; }
.page-content.seite-kommt > :only-child { animation: none; }
.page-content.seite-kommt > :nth-child(2), .page-content.seite-kommt > :only-child > :nth-child(2) { animation-delay: .05s; }
.page-content.seite-kommt > :nth-child(3), .page-content.seite-kommt > :only-child > :nth-child(3) { animation-delay: .1s; }
.page-content.seite-kommt > :nth-child(4), .page-content.seite-kommt > :only-child > :nth-child(4) { animation-delay: .15s; }
.page-content.seite-kommt > :nth-child(n+5), .page-content.seite-kommt > :only-child > :nth-child(n+5) { animation-delay: .2s; }
.page-content.seite-kommt :is(.start-zeile, .liste-zeile, .app-tabelle tbody tr) { animation: rahmenEin .5s ease backwards; animation-delay: calc(.14s + var(--reihe, 9) * .035s); }
.page-content.seite-kommt :is(.start-zeile, .liste-zeile, .app-tabelle tbody tr):nth-child(1) { --reihe: 0; }
.page-content.seite-kommt :is(.start-zeile, .liste-zeile, .app-tabelle tbody tr):nth-child(2) { --reihe: 1; }
.page-content.seite-kommt :is(.start-zeile, .liste-zeile, .app-tabelle tbody tr):nth-child(3) { --reihe: 2; }
.page-content.seite-kommt :is(.start-zeile, .liste-zeile, .app-tabelle tbody tr):nth-child(4) { --reihe: 3; }
.page-content.seite-kommt :is(.start-zeile, .liste-zeile, .app-tabelle tbody tr):nth-child(5) { --reihe: 4; }
.page-content.seite-kommt :is(.start-zeile, .liste-zeile, .app-tabelle tbody tr):nth-child(6) { --reihe: 5; }
.page-content.seite-kommt :is(.start-zeile, .liste-zeile, .app-tabelle tbody tr):nth-child(7) { --reihe: 6; }
.page-content.seite-kommt :is(.start-zeile, .liste-zeile, .app-tabelle tbody tr):nth-child(8) { --reihe: 7; }
/* Laden einer Seite: ruhige Platzhalter in der Form einer Seite (Titel, zwei Flächen) statt eines drehenden Kreises. Sie
   erscheinen erst nach 0,2 s, damit eine schnelle Seite nichts aufblitzen lässt. Der Satz «Laden...» bleibt für Vorlese-Programme. */
.page-content > .loading-spinner {
  align-items: stretch; justify-content: flex-start; gap: 18px; padding: 10px 0 0;
  animation: rahmenEin .35s ease .2s backwards;
}
.page-content > .loading-spinner::before { content: ""; width: min(240px, 60%); height: 30px; border-radius: 10px; background: var(--grey-100); }
.page-content > .loading-spinner > .spinner,
.page-content > .loading-spinner::after {
  content: ""; width: auto; height: 132px; margin: 0; border: none; border-radius: 22px;
  background: var(--grey-100); animation: skelettAtmen 1.6s ease-in-out infinite;
}
.page-content > .loading-spinner::after { height: 260px; animation-delay: .2s; }
.page-content > .loading-spinner > p { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
/* Wer weniger Bewegung wünscht, bekommt keine: EINE Regel für den ganzen eingeloggten Bereich (jede Bewegung endet sofort in ihrem Endstand). */
@media (prefers-reduced-motion: reduce) {
  body.im-app *, body.im-app *::before, body.im-app *::after {
    animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important;
  }
}

/* ---- Schmal: die Seitenleiste fährt als Glas-Tafel von links ein ---- */
@media (max-width: 1024px) {
  .sidebar {
    width: min(300px, calc(100vw - 2 * var(--rahmen-rand)));
    background: var(--glas-dicht);
    transform: translateX(calc(-100% - 2 * var(--rahmen-rand)));
  }
  .sidebar.open { transform: none; z-index: 9999; box-shadow: var(--glas-schatten-hoch); }
  .sidebar-close { display: grid; }
  .main-content { margin-left: 0; }
  .topbar-menu { display: grid; }
  .topbar { left: 0; padding: 0 16px; }
  .page-content { padding: 8px 16px 40px; }
  .notif-dropdown { right: 12px; }
}
@media (max-width: 480px) {
  .topbar { padding: 0 12px; }
  .page-content { padding: 8px 12px 32px; }
}

/* ============================================================
   STARTSEITE (Schnellansicht) — die Bausteine der App-Startseite fürs Web:
   Begrüssung, runde Aktionsknöpfe, das Karten-Paar (hell | dunkles Glas), die Liste.
   ============================================================ */
.start {
  max-width: 940px; margin: 0 auto; padding-top: 6px;
  display: flex; flex-direction: column; gap: 22px;
}
@keyframes startAuf { from { opacity: 0; transform: translateY(12px); } }

/* Begrüssung */
.start-kopf {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 14px 0 2px; text-align: center;
}
.karten-etikett, .start-datum {
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--app-grau); line-height: 1.4;
}
.start-gruss {
  margin: 0; font-size: clamp(1.75rem, 1.25rem + 1.7vw, 2.4rem); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.12; color: var(--app-schiefer); text-wrap: balance;
}
.start-meldung {
  display: inline-flex; align-items: center; gap: 9px; min-height: 36px; padding: 4px 12px;
  border: none; border-radius: var(--radius-full); background: none;
  font-size: 1rem; font-weight: 600; color: var(--app-schiefer); cursor: pointer;
  transition: background .2s ease;
}
.start-meldung:hover { background: var(--glas); }
.start-meldung svg { stroke-linecap: round; stroke-linejoin: round; }
.start-meldung-zahl {
  min-width: 24px; height: 24px; padding: 0 7px; border-radius: var(--radius-full);
  display: grid; place-items: center; background: var(--akzent); color: var(--auf-akzent);
  font-size: 0.8rem; font-weight: 600; line-height: 1;
}

/* Die runden Aktionsknöpfe */
.start-aktionen { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px clamp(10px, 3.4vw, 40px); }
.start-aktion {
  width: 92px; display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 0; border: none; background: none; cursor: pointer; color: var(--app-tinte-weich);
}
.start-aktion-kreis {
  width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center;
  color: var(--app-zeichen);
  transition: transform .4s var(--feder), box-shadow .3s ease, background .2s ease;
}
.start-aktion-kreis svg {
  width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.start-aktion-wort { font-size: 0.84rem; font-weight: 500; line-height: 1.3; text-align: center; transition: color .2s ease; }
.start-aktion:hover .start-aktion-kreis { transform: translateY(-3px); background: var(--glas-linse); box-shadow: var(--glas-schatten-hoch); }
.start-aktion:active .start-aktion-kreis { transform: scale(.94); }
.start-aktion:hover .start-aktion-wort { color: var(--app-tinte); }

/* Das Karten-Paar */
.start-karten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.glas-karte {
  position: relative; border-radius: 18px; padding: 18px 20px;
  display: flex; flex-direction: column; text-align: left; color: var(--app-tinte);
}
.start-karten > .glas-karte { min-height: 216px; }
button.glas-karte { cursor: pointer; transition: transform .4s var(--feder), box-shadow .3s ease; }
button.glas-karte:hover { transform: translateY(-2px); box-shadow: var(--glas-schatten-hoch); }
button.glas-karte:active { transform: scale(.985); }
/* Dunkles Glas: der Navy-Verlauf der App mit dem grünen Licht unten rechts (wie die Kalender-Kachel). */
.glas-karte.dunkel {
  background:
    radial-gradient(110% 95% at 100% 100%, rgba(var(--akzent-rgb), .42), transparent 62%),
    linear-gradient(135deg, var(--karte-dunkel-1) 0%, var(--karte-dunkel-2) 52%, var(--karte-dunkel-3) 100%);
  border-color: rgba(255, 255, 255, .16); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 1px 1px rgba(15, 23, 42, .08), 0 14px 34px rgba(15, 23, 41, .22);
}
button.glas-karte.dunkel:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 2px 4px rgba(15, 23, 42, .1), 0 22px 46px rgba(15, 23, 41, .3); }
.glas-karte.dunkel .karten-etikett { color: rgba(255, 255, 255, .72); }

.karten-kopf { display: flex; align-items: baseline; gap: 10px; }
.karten-zahl {
  font-size: 1.6rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15;
  font-variant-numeric: tabular-nums; color: inherit;
}
.karten-etikett + .karten-zahl { margin-top: 4px; }
.karten-einheit { font-size: 1rem; font-weight: 600; color: var(--app-grau); }
.karten-stand { margin-top: 6px; font-size: 0.86rem; font-weight: 600; color: var(--app-grau); }

/* Die Säulen der hellen Karte: sieben Tage, heute betont */
.saeulen { margin-top: auto; padding-top: 18px; display: flex; align-items: flex-end; gap: 10px; }
.saeule { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; }
.saeule-bahn { width: 100%; height: 64px; display: flex; align-items: flex-end; justify-content: center; }
.saeule-bahn i {
  display: block; width: min(100%, 30px); height: max(5px, calc(var(--h, 0) * 100%)); border-radius: 8px;
  background: var(--app-saeule); transform-origin: bottom;
  animation: saeuleAuf .8s var(--feder) both; animation-delay: calc(.2s + var(--i, 0) * .05s);
}
.saeule b { font-size: 0.66rem; font-weight: 500; color: var(--app-grau); line-height: 1; }
.saeule.heute .saeule-bahn i { background: var(--app-saeule-heute); }
.saeule.heute b { font-weight: 600; color: var(--app-schiefer); }
/* Ein Tag, den die geladenen Leads nicht mehr abdecken: gestrichelt, keine erfundene Null. */
.saeule.offen .saeule-bahn i { height: 5px; background: none; border-top: 2px dashed var(--app-saeule); border-radius: 0; }
@keyframes saeuleAuf { from { transform: scaleY(0); } }

/* Der Fuss der dunklen Karte: Linie über die ganze Breite, darunter die Reihen */
.karten-linie { height: 1px; margin: auto -20px 14px; background: rgba(255, 255, 255, .13); }
.karten-etikett + .karten-reihe { margin-top: 8px; }
.karten-reihe {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  font-size: 0.86rem; font-weight: 500; color: rgba(255, 255, 255, .78); line-height: 1.9;
}
.karten-reihe strong { font-weight: 600; color: rgba(255, 255, 255, .96); font-variant-numeric: tabular-nums; }
@keyframes balkenAuf { from { transform: scaleX(0); } }

/* Die Liste */
.start-liste { padding: 6px 0 8px; }
.start-liste-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px 8px; }
.start-titel { margin: 0; font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; color: var(--app-tinte); }
.glas-pille {
  display: inline-flex; align-items: center; gap: 4px; padding: 7px 10px 7px 14px;
  border-radius: var(--radius-full); border: 1px solid var(--glas-kante); background: var(--glas-linse);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06); color: var(--app-tinte);
  font-size: 0.8rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform .3s var(--feder), box-shadow .3s ease;
}
.glas-pille svg { stroke-linecap: round; stroke-linejoin: round; opacity: .6; }
.glas-pille:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(15, 23, 42, .1); }
.glas-pille:active { transform: scale(.96); }
.start-zeilen { list-style: none; margin: 0; padding: 0; }
.start-zeile {
  position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center; gap: 12px; padding: 9px 18px;
}
.start-zeile::before { content: ""; position: absolute; top: 0; left: 18px; right: 18px; height: 1px; background: var(--app-strich); }
.start-kuerzel {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--glas-linse); border: 1px solid var(--glas-kante); box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
  font-size: 0.72rem; font-weight: 600; color: var(--app-zeichen);
}
.start-zeile-text { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.start-zeile-text strong {
  font-size: 0.88rem; font-weight: 600; color: var(--app-tinte); line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.start-zeile-text small {
  display: flex; align-items: center; gap: 7px; min-width: 0;
  font-size: 0.76rem; color: var(--app-tinte-weich); line-height: 1.35;
}
.start-zeile-wann { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.start-quelle { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; background: var(--ton, var(--app-grau)); }
.start-zeile-wert { font-size: 0.88rem; font-weight: 600; color: var(--app-tinte); font-variant-numeric: tabular-nums; white-space: nowrap; }
.start-leer { padding: 34px 24px 38px; text-align: center; font-size: 0.9rem; color: var(--app-tinte-weich); }

.start-karten > .glas-karte:not(.start-skelett), .start-liste:not(.start-skelett) > * { animation: rahmenEin .45s ease both; }
/* Solange die Zahlen laden: die Flächen stehen schon, ihr Inhalt atmet. */
.start-skelett { min-height: 216px; border-radius: 22px; animation: skelettAtmen 1.6s ease-in-out infinite; }
.start-skelett.lang { min-height: 330px; }
.start-skelett.flach { min-height: 110px; }
.start-skelett.mittel { min-height: 150px; }
/* Laden in einer Karte: EINE Zeile als atmender Balken (.skelett-zeile); .hoch in der Höhe einer Listenzeile; in .skelett-zeilen untereinander */
.skelett-zeilen { display: flex; flex-direction: column; gap: 12px; padding: 22px 20px 26px; }
.skelett-zeile { display: block; height: 14px; border-radius: 7px; background: var(--grey-100); animation: skelettAtmen 1.6s ease-in-out infinite; }
.skelett-zeile:nth-child(2n) { width: 82%; animation-delay: .15s; }
.skelett-zeile.hoch { width: auto; height: 42px; border-radius: 12px; }
.skelett-zeile.hoch + .skelett-zeile.hoch { margin-top: 8px; }
td > .skelett-zeile { width: 62%; }
tr:nth-child(2n) > td > .skelett-zeile { width: 48%; }
@keyframes skelettAtmen { 50% { opacity: .55; } }

@media (max-width: 720px) {
  .start { gap: 20px; }
  .start-karten { grid-template-columns: 1fr; }
  .start-aktionen { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .start-aktion { width: auto; gap: 8px; }
  .start-aktion-kreis { width: min(58px, 100%); height: auto; aspect-ratio: 1; }
  .start-aktion-kreis svg { width: 22px; height: 22px; }
  .start-aktion-wort { font-size: 0.74rem; }
  .start-liste-kopf { padding: 12px 16px 6px; }
  .start-zeile { padding: 9px 16px; }
  .start-zeile::before { left: 16px; right: 16px; }
}

/* ============================================================
   APP-BAUSTEINE — der ganze eingeloggte Bereich (Berater, Kunde, Admin) im Stil der Vemo-App.
   body.im-app setzt zeigeAppRahmen() in app.js, solange der Rahmen sichtbar ist. Darum gelten diese Werte für den
   Rahmen UND für alles, was über ihm am <body> hängt (Fenster, Meldungen); die öffentlichen Seiten bleiben, wie sie sind;
   die drei Kundenseiten (Terminbuchung, Präsentation, Unterschrift) tragen <body class="im-app kundenseite"> fest.
   1) DIE WERTE: jede Seite, die var(--…) liest, folgt von selbst (Töne, Ecken, Schatten).
   2) DIE BAUSTEINE: Knöpfe, Karten, Felder, Tabellen, Reiter, Marken, Fenster, Leerzustand, Lade-Ring.
   Wer auf einer Seite einen Baustein braucht, nimmt ihn von HIER (und die Glas-Bausteine .glas-karte, .glas-pille,
   .karten-etikett, .karten-zahl, .start-zeilen … aus dem Block darüber): nie Farben, Ecken oder Schatten von Hand.
   ============================================================ */
body.im-app {
  --dark: #0f172a; --dark-800: #1e293b; --dark-700: #334155; --dark-600: #475569;
  --grey-50: #f7f9fc; --grey-100: #eff2f7; --grey-200: #e5e9f0; --grey-300: #d3d9e3;
  --grey-400: #63718a; --grey-500: #5c6a80; --grey-600: #475569;
  --radius-xs: 8px; --radius-sm: 12px; --radius-md: 14px; --radius-lg: 18px; --radius-xl: 20px; --radius-2xl: 24px;
  --shadow-xs: 0 1px 1px rgba(15, 23, 42, .04);
  --shadow-sm: 0 1px 1px rgba(15, 23, 42, .04), 0 4px 12px rgba(15, 23, 42, .04);
  --shadow-md: 0 1px 1px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .05), 0 18px 40px rgba(15, 23, 42, .10);
  --shadow-xl: 0 4px 8px rgba(15, 23, 42, .06), 0 28px 60px rgba(15, 23, 42, .16);
  --transition: .25s cubic-bezier(.32, .72, 0, 1);
  --feder: cubic-bezier(.32, .72, 0, 1);
  --karten-kante: rgba(15, 23, 42, .05);
  --feld-kante: rgba(15, 23, 42, .13);
  --violett: #7c6cf2;
  /* Die weisse Linse der App (gewählter Reiter): im Dunkeln ein helles Glas, nie die Kartenfarbe */
  --linse: #fff;
  /* Die Töne für Zustände: Schrift auf leichter Tönung (Marke, Hinweis, Zahl, leiser Löschen-Knopf) */
  --ton-gruen: #3a8420; --ton-gruen-grund: rgba(126, 217, 87, .16);
  --ton-bernstein: #8a6100; --ton-bernstein-grund: rgba(242, 193, 78, .2);
  --ton-rot: #dc2626; --ton-rot-grund: rgba(220, 38, 38, .08);
  --ton-violett: #5b4bd6; --ton-violett-grund: rgba(124, 108, 242, .13);
  --fokus-ring: rgba(15, 23, 42, .12); --fokus-kante: rgba(15, 23, 42, .46); --gewaehlt-kante: rgba(15, 23, 42, .84);
}
body.dark-mode.im-app {
  --dark: #eef2f9; --dark-800: #dde4f1; --dark-700: #c5cfe2; --dark-600: #a3b0c6;
  --white: #151e33; --grey-50: #0f1729; --grey-100: #1a2540; --grey-200: #26334f; --grey-300: #3a4866;
  --grey-400: #8492ab; --grey-500: #a3b0c6; --grey-600: #dde4f1;
  --shadow-xs: 0 1px 1px rgba(0, 0, 0, .2);
  --shadow-sm: 0 1px 1px rgba(0, 0, 0, .2), 0 6px 16px rgba(0, 0, 0, .22);
  --shadow-md: 0 1px 1px rgba(0, 0, 0, .2), 0 10px 30px rgba(0, 0, 0, .28);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .25), 0 20px 46px rgba(0, 0, 0, .4);
  --shadow-xl: 0 4px 8px rgba(0, 0, 0, .3), 0 30px 64px rgba(0, 0, 0, .5);
  --karten-kante: rgba(255, 255, 255, .08);
  --feld-kante: rgba(255, 255, 255, .16);
  --linse: rgba(255, 255, 255, .13);
  --ton-gruen: #9be27a; --ton-gruen-grund: rgba(126, 217, 87, .14);
  --ton-bernstein: #f2c14e; --ton-bernstein-grund: rgba(242, 193, 78, .14);
  --ton-rot: #ef5b4c; --ton-rot-grund: rgba(239, 91, 76, .14);
  --ton-violett: #b3a9f8; --ton-violett-grund: rgba(124, 108, 242, .2);
  --fokus-ring: rgba(255, 255, 255, .16); --fokus-kante: rgba(255, 255, 255, .5); --gewaehlt-kante: rgba(255, 255, 255, .78);
}

/* ---- Überschriften ---- */
/* ---- Fokus und Gewählt: EINE Sprache, nie ein grüner Rahmen. Grün heisst «Hauptweg» und «erledigt», sonst nichts.
   Fokus = leiser Ring in Tinte (--fokus-ring); ein Feld zeigt ihn zusätzlich an seiner Kante (--fokus-kante).
   Gewählt (Karte als Option) = weisse Linse, gehoben, Kante in Tinte (--gewaehlt-kante); der grüne Haken sagt «an». Ein Schalter oder Wochentag (input + span) zeigt ihn an seiner Spur. */
body.im-app :is(a, button, summary, [role="button"], [role="tab"], [tabindex]):focus-visible,
body.im-app input:focus-visible + span { outline: none; box-shadow: 0 0 0 3px var(--fokus-ring); }

/* :where() hält die Farbe leise: ein Titel mit eigener Klasse (.start-gruss in Schiefer) behält seine Farbe. */
:where(body.im-app .page-content) h1 { letter-spacing: -0.02em; color: var(--dark); }
/* EIN Mass für alle Seiten (Inhaber 20.11.: «moderner und schlanker»): Titel 1.45rem, darunter 0.88rem; Abschnittstitel 0.95rem/600.
   700 tragen nur Seitentitel und Begrüssung, sonst 600 und 500. */
body.im-app .page-header { margin-bottom: 20px; }
body.im-app .page-header h1 { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 2px; }
body.im-app .page-header p { color: var(--grey-500); font-size: 0.88rem; }
@media (max-width: 480px) { body.im-app .page-header h1 { font-size: 1.25rem; } }
/* EIN Kopf mit Knöpfen: <div class="page-header page-header-row"><div>h1 + p</div> Knopf oder .knopf-zeile</div> (rechts höchstens ein grüner) */
.page-header-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
@media (max-width: 720px) {
  .page-header-row > div { min-width: 0; }
  .page-header-row > .knopf-zeile { width: 100%; }
  .page-header-row > .knopf-zeile .btn { flex: 1 1 auto; justify-content: center; }
}
body.im-app :is(.section-card-header h3, .start-titel) { font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; }
body.im-app .section-card-header { padding: 14px 20px; }
body.im-app .section-card-body { padding: 18px 20px; }
/* Links in Listen und Tabellen (Telefon, E-Mail): Tinte, unterstrichen erst beim Zeigen */
body.im-app .page-content :is(td, .start-zeile, .liste-zeile, .angaben) a:not(.btn):not(.zeichen-knopf) { color: inherit; text-decoration: none; border-bottom: 0; }
body.im-app .page-content :is(td, .start-zeile, .liste-zeile, .angaben) a:not(.btn):not(.zeichen-knopf):hover { text-decoration: underline; text-underline-offset: 2px; }

/* ---- Knöpfe: flaches Grün mit weisser Schrift, weisse Fläche für den zweiten Weg, nie ein Verlauf ---- */
body.im-app .btn {
  padding: 8px 16px; border-radius: 11px; font-size: 0.85rem; font-weight: 600;
  transition: transform .3s var(--feder), box-shadow .3s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
body.im-app .btn:active { transform: scale(.97); }
body.im-app .btn:disabled, body.im-app .btn[disabled] { opacity: .5; box-shadow: none; transform: none; cursor: not-allowed; }
body.im-app .btn-sm { padding: 6px 12px; border-radius: 10px; font-size: 0.78rem; }
body.im-app .btn-primary {
  background: var(--akzent); background-image: none; color: var(--auf-akzent); border: none;
  box-shadow: 0 3px 8px rgba(var(--akzent-rgb), .3);
}
body.im-app .btn-primary:hover {
  background: var(--akzent-stark); color: var(--auf-akzent); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(var(--akzent-rgb), .36);
}
body.im-app .btn-secondary, body.im-app .btn-outline {
  background: var(--white); color: var(--dark); border: 1px solid var(--feld-kante); box-shadow: var(--shadow-xs);
}
body.im-app .btn-secondary:hover, body.im-app .btn-outline:hover {
  background: var(--white); color: var(--dark); border-color: var(--grey-300);
  transform: translateY(-1px); box-shadow: var(--shadow-sm);
}
body.im-app .btn-ghost { color: var(--grey-500); }
body.im-app .btn-ghost:hover { color: var(--dark); }
body.im-app .btn-danger { background: #dc2626; color: #fff; border: none; box-shadow: 0 3px 8px rgba(220, 38, 38, .25); }
body.im-app .btn-danger:hover { background: #c81e1e; transform: translateY(-1px); }

/* ---- Karten: weisse Fläche, Ecke 20, die zwei weichen Schatten der App, keine harte Rahmenlinie ---- */
body.im-app .card, body.im-app .section-card, body.im-app .dm-card {
  background: var(--white); border: 1px solid var(--karten-kante); border-radius: 18px; box-shadow: var(--shadow-sm);
}
body.im-app .section-card-header { border-bottom: 1px solid var(--grey-100); }

/* ---- Felder ---- */
body.im-app .form-group label { color: var(--dark-700); }
body.im-app .form-group input, body.im-app .form-group select, body.im-app .form-group textarea, body.im-app .feld {
  padding: 9px 12px; border: 1px solid var(--feld-kante); border-radius: 11px;
  background: var(--white); color: var(--dark); font-size: 0.88rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
body.im-app .form-group input:focus, body.im-app .form-group select:focus, body.im-app .form-group textarea:focus, body.im-app .feld:focus {
  outline: none; border-color: var(--fokus-kante); box-shadow: 0 0 0 3px var(--fokus-ring);
}
body.im-app .form-group input::placeholder, body.im-app .form-group textarea::placeholder, body.im-app .feld::placeholder { color: var(--grey-400); opacity: .75; }
/* Felder und Tabellen ohne eigene Klasse folgen den Werten (hell und dunkel); ohne Gewicht, jede Klasse geht vor.
   Die alten Dunkel-Regeln der öffentlichen Seiten (body.dark-mode input/th/td …) gelten im eingeloggten Bereich nicht:
   sie tragen body.dark-mode:where(:not(.im-app)). «:where» hält ihr Gewicht, wie es war: auf den öffentlichen Seiten
   gewinnt weiter dieselbe Regel wie zuvor (ohne «:where» wöge jede eine Klasse mehr und überstimmte Seiten-Regeln). */
:where(body.im-app) :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) {
  background-color: var(--white); color: var(--dark); border-color: var(--feld-kante);
}
:where(body.im-app) :where(th, td) { border-color: var(--grey-100); }

/* ---- Tabellen: Kopf als leises Etikett, Zeilen mit Haarstrich ---- */
/* Die Tabelle in einer Karte. In .app-tabelle-rahmen läuft sie randlos über die ganze Karte (rollt am Handy seitlich). */
.app-tabelle-rahmen { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.app-tabelle { width: 100%; border-collapse: collapse; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.app-tabelle th {
  text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--grey-200); white-space: nowrap; background: transparent;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey-400);
}
.app-tabelle td { padding: 10px 16px; border-bottom: 1px solid var(--grey-100); color: var(--dark); vertical-align: middle; }
.app-tabelle-rahmen .app-tabelle :is(th, td):first-child { padding-left: 20px; }
.app-tabelle-rahmen .app-tabelle :is(th, td):last-child { padding-right: 20px; }
.app-tabelle tbody tr:last-child td { border-bottom: none; }
.app-tabelle tbody tr { transition: background .15s ease; }
.app-tabelle tbody tr:hover td { background: var(--grey-50); }
.app-tabelle tfoot td { padding: 10px 16px; border-top: 1px solid var(--grey-200); border-bottom: none; font-weight: 600; background: var(--grey-50); }
.app-tabelle.gross td { font-size: 0.9rem; }
.app-tabelle .rechts { text-align: right; } .app-tabelle .mitte { text-align: center; } .app-tabelle .oben { vertical-align: top; }
.app-tabelle .eng { white-space: nowrap; }
.app-tabelle .leise { color: var(--grey-500); }
.app-tabelle .klein { font-size: 0.8rem; }
.app-tabelle .fett, .app-tabelle .betrag { font-weight: 600; } .app-tabelle .stark { font-weight: 600; }
.app-tabelle .gut { color: var(--ton-gruen); font-weight: 600; }
.app-tabelle .schlecht { color: var(--ton-rot); font-weight: 600; }
.app-tabelle .unter { display: block; margin-top: 1px; font-size: 0.78rem; color: var(--grey-500); }
.app-tabelle .rechts > .knopf-zeile { justify-content: flex-end; }
/* .handy-karten: am Handy wird jede Zeile eine Karten-Zeile (erste Zelle oben über die Breite, die übrigen leise darunter) */
@media (max-width: 720px) {
  .app-tabelle.handy-karten, .app-tabelle.handy-karten tbody { display: block; }
  .app-tabelle.handy-karten thead { display: none; }
  .app-tabelle.handy-karten tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 14px 20px; box-shadow: inset 0 -1px 0 var(--grey-100); }
  .app-tabelle.handy-karten tr:last-child { box-shadow: none; }
  .app-tabelle-rahmen .app-tabelle.handy-karten td { display: block; padding: 0; border: none; background: none; white-space: normal; font-size: 0.8rem; color: var(--grey-500); }
  .app-tabelle-rahmen .app-tabelle.handy-karten td:first-child, .app-tabelle-rahmen .app-tabelle.handy-karten td[colspan] { width: 100%; font-size: 0.9rem; color: var(--dark); }
}

/* ---- Reiter und Filter: die weisse Linse der App für den gewählten ---- */
body.im-app .filter-pill {
  padding: 6px 12px; font-size: 0.8rem; border: 1px solid transparent; background: transparent; color: var(--grey-500); font-weight: 600;
  transition: background .2s ease, color .2s ease, box-shadow .25s ease;
}
body.im-app .filter-pill:hover { background: var(--grey-100); color: var(--dark); border-color: transparent; }
body.im-app .filter-pill.active {
  background: var(--linse); color: var(--dark); border-color: var(--karten-kante);
  box-shadow: 0 1px 1px rgba(15, 23, 42, .04), 0 6px 14px rgba(40, 47, 71, .1);
}
/* Die Reiter-Spur: Reiter (.filter-pill) auf einer leisen Spur; rollt seitlich, wenn sie nicht passt */
.reiter-leiste {
  display: inline-flex; max-width: 100%; gap: 2px; padding: 3px; border-radius: var(--radius-full);
  background: var(--grey-100); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.reiter-leiste::-webkit-scrollbar { display: none; }
.reiter-leiste .filter-pill {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--radius-full); font-size: 0.8rem; white-space: nowrap; cursor: pointer;
}
body.im-app .reiter-leiste .filter-pill:hover:not(.active) { background: transparent; }
/* Viele Reiter: auf breiten Schirmen brechen sie in eine zweite Reihe um, auf dem Handy rollen sie und blenden am Rand aus */
.reiter-leiste.umbrechen { flex-wrap: wrap; border-radius: 20px; }
@media (max-width: 720px) {
  .reiter-leiste.umbrechen {
    flex-wrap: nowrap; border-radius: var(--radius-full);
    -webkit-mask-image: linear-gradient(90deg, black 85%, transparent); mask-image: linear-gradient(90deg, black 85%, transparent);
  }
}
/* Reiter, die Tafeln schalten (reiterZeigen in app.js): die zugeklappte Tafel steht nicht, auch wenn sie eine Karte ist */
body.im-app [data-tafel][hidden] { display: none; }
/* ---- EINE Leiste unter dem Kopf: Reiter links; Suche, Zeitraum oder Knöpfe rechts; .leiste-text = Titel und Satz links ---- */
.seiten-leiste { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 18px; }
.seiten-leiste > .reiter-leiste { min-width: 0; }
.leiste-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.leiste-text strong { font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; color: var(--dark); }
.leiste-text small { font-size: 0.8rem; color: var(--grey-500); }
@media (max-width: 720px) { .seiten-leiste > .knopf-zeile { width: 100%; } }

/* ---- Marken: kleine Pille für einen Zustand. Grau ist die Grundform, die Töne nur leise; .voll für die eine, die auffallen muss ---- */
body.im-app .badge { border-radius: var(--radius-full); font-weight: 600; }
.marke {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: var(--radius-full);
  font-size: 0.68rem; font-weight: 600; line-height: 1.5; white-space: nowrap; vertical-align: middle;
  background: var(--grey-100); color: var(--grey-600);
}
.marke.gruen { background: var(--ton-gruen-grund); color: var(--ton-gruen); }
.marke.bernstein { background: var(--ton-bernstein-grund); color: var(--ton-bernstein); }
.marke.rot { background: var(--ton-rot-grund); color: var(--ton-rot); }
.marke.violett { background: var(--ton-violett-grund); color: var(--ton-violett); }
.marke.tinte { color: var(--dark); }
.marke.voll { background: var(--akzent); color: var(--auf-akzent); }
.marke.voll.bernstein { background: #f2c14e; color: #3d2a00; }
.marke.puls { animation: markePuls 2s ease-in-out infinite; }
@keyframes markePuls { 50% { opacity: .6; } }
.marke-punkt { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.marke.gruen .marke-punkt { background: var(--green-500); }
.marke.bernstein .marke-punkt { background: #f2c14e; }
.marke-punkt.gruen { background: var(--green-500); } .marke-punkt.violett { background: var(--violett); }
a.marke { text-decoration: none; transition: background .2s ease; } a.marke:hover { background: var(--grey-200); }

/* ---- Schalter (Ein/Aus wie in iOS): <label class="schalter"><input type="checkbox"><span></span> Text</label> ---- */
.schalter {
  position: relative; display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; cursor: pointer; user-select: none;
  font-size: 0.85rem; font-weight: 500; color: var(--grey-600);
}
.schalter input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.schalter input + span {
  position: relative; width: 46px; height: 28px; flex-shrink: 0; border-radius: var(--radius-full);
  background: var(--grey-300); transition: background .25s ease;
}
.schalter input + span::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .22); transition: transform .35s var(--feder);
}
.schalter input:checked + span { background: var(--akzent); }
.schalter.violett input:checked + span { background: var(--violett); }
.schalter input:checked + span::after { transform: translateX(18px); }

/* ---- Runder Zeichen-Knopf (schliessen, entfernen, kopieren); .gefahr färbt beim Darüberfahren rot ---- */
.zeichen-knopf {
  width: 34px; height: 34px; flex-shrink: 0; padding: 0; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--white); border: 1px solid var(--karten-kante); box-shadow: var(--shadow-xs); color: var(--grey-500);
  font-size: 0.95rem; line-height: 1; cursor: pointer; text-decoration: none;
  transition: transform .3s var(--feder), box-shadow .25s ease, color .2s ease, background .2s ease;
}
.zeichen-knopf svg { width: 15px; height: 15px; stroke-linecap: round; stroke-linejoin: round; }
.zeichen-knopf:hover { color: var(--dark); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.zeichen-knopf:active { transform: scale(.94); }
.zeichen-knopf:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.zeichen-knopf.gefahr:hover { color: var(--ton-rot); background: var(--ton-rot-grund); }
/* .leise: ohne Fläche und Kante, bis man darauf zeigt (die Handlung, die sich in vielen Zeilen wiederholt) */
.zeichen-knopf.leise { background: transparent; border-color: transparent; box-shadow: none; }
.zeichen-knopf.leise:hover { border-color: var(--karten-kante); }
/* Reihenfolge: zwei kleine Zeichen-Knöpfe übereinander (jede sortierbare Liste) */
.sortier-knoepfe { display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; }
.sortier-knoepfe .zeichen-knopf { width: 22px; height: 20px; border-radius: 7px; box-shadow: none; }
.sortier-knoepfe .zeichen-knopf svg { width: 13px; height: 13px; }

/* ---- Knöpfe nebeneinander; der leise Löschen-Knopf (der laute .btn-danger bleibt für die eine Entscheidung im Fenster) ---- */
.knopf-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* .eng: die Handlungen einer Zeile (bricht nie um, wird nie schmaler) */
.knopf-zeile.eng { flex-wrap: nowrap; flex-shrink: 0; gap: 6px; }
/* Knopf mit Zeichen davor (Plus, Pfeil) */
body.im-app .btn.mit-zeichen { display: inline-flex; align-items: center; gap: 6px; }
body.im-app .btn.btn-danger-leise { color: var(--ton-rot); }
body.im-app .btn.btn-danger-leise:hover { color: var(--ton-rot); background: var(--ton-rot-grund); border-color: transparent; }
.btn[hidden] { display: none; }

/* ---- Fenster (Dialoge): .fenster-schleier > .fenster. Kopf mit Titel und .fenster-zu; .geteilt = Kopf, rollender Inhalt, Fuss ---- */
body.im-app .modal, body.im-app .dm-modal {
  background: var(--white); border: 1px solid var(--karten-kante); border-radius: 24px; box-shadow: var(--shadow-xl);
}
.fenster-schleier {
  position: fixed; inset: 0; z-index: 10000; padding: 20px; display: flex; align-items: center; justify-content: center;
  background: rgba(15, 23, 42, .32); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: rahmenEin .25s ease both;
}
.fenster-schleier[hidden] { display: none; }
body.dark-mode .fenster-schleier { background: rgba(0, 0, 0, .55); }
.fenster {
  position: relative; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; padding: 28px;
  background: var(--white); color: var(--dark); border: 1px solid var(--karten-kante, rgba(15, 23, 42, .05));
  border-radius: 24px; box-shadow: var(--shadow-xl); animation: startAuf .4s cubic-bezier(.32, .72, 0, 1) both;
}
.fenster.gross { max-width: 620px; }
.fenster.breit { max-width: 720px; }
.fenster h2, .fenster h3 { margin: 0 0 6px; font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; color: var(--dark); }
.fenster-kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.fenster-kopf > :first-child { flex: 1; min-width: 0; }
.fenster-kopf h2, .fenster-kopf h3 { margin: 0; }
.fenster-kopf p { margin: 4px 0 0; font-size: 0.86rem; line-height: 1.55; color: var(--grey-500); }
.fenster-zu {   /* das X wie in der App (BlattX): das Kreuz ohne Blase, sichtbar gross, die Fläche zum Treffen bleibt */
  width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; padding: 0; border: none; border-radius: 50%;
  background: none; color: var(--dark); font-size: 1.45rem; line-height: 1; cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .3s var(--feder);
}
.fenster-zu:hover { background: var(--grey-200); color: var(--dark); }
.fenster-zu:active { transform: scale(.94); }
.fenster-knoepfe { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.fenster.geteilt { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.fenster.geteilt > .fenster-kopf { margin: 0; padding: 24px 28px 14px; }
.fenster-inhalt { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 28px 20px; }
.fenster-fuss { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 28px 20px; border-top: 1px solid var(--grey-100); }
.fenster-fuss .fenster-knoepfe, .fenster.geteilt > .fenster-knoepfe { margin: 0; }
.fenster.geteilt > .fenster-knoepfe { padding: 14px 28px 22px; }
.fenster-fuss-info { font-size: 0.8rem; color: var(--grey-500); }
@media (max-width: 560px) {
  .fenster { padding: 22px 18px; }
  .fenster.geteilt > .fenster-kopf { padding: 20px 20px 12px; }
  .fenster-inhalt { padding: 6px 20px 18px; }
  .fenster-fuss, .fenster.geteilt > .fenster-knoepfe { padding: 12px 20px 18px; }
}

/* ---- Hinweis in der Seite: leise Fläche, Zeichen links; .warnung | .gefahr | .violett ---- */
.app-hinweis {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: 14px;
  background: var(--grey-50); color: var(--dark-700); font-size: 0.84rem; line-height: 1.5;
}
.app-hinweis + .app-hinweis { margin-top: 10px; }
.app-hinweis svg { flex-shrink: 0; margin-top: 1px; }
.app-hinweis p { margin: 0; }
.app-hinweis.warnung { background: var(--ton-bernstein-grund); }
.app-hinweis.warnung svg { color: var(--ton-bernstein); }
.app-hinweis.gefahr { background: var(--ton-rot-grund); color: var(--ton-rot); font-weight: 600; }
.app-hinweis.violett { background: var(--ton-violett-grund); }
.app-hinweis.violett svg { color: var(--violett); }

/* ---- Leerzustand: Zeichen (Glas-Kreis .leer-mitte-kreis), Titel, Satz, Knopf ---- */
.leer-mitte {
  margin: 0 auto; padding: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; font-size: 0.88rem; line-height: 1.55; color: var(--grey-500);
}
.leer-mitte-kreis { width: 76px; height: 76px; margin-bottom: 6px; color: var(--akzent-schrift); }
.leer-mitte-kreis svg { width: 30px; height: 30px; }
.leer-mitte h1 { margin: 0; font-size: 1.45rem; font-weight: 700; letter-spacing: -0.03em; color: var(--dark); }
.leer-mitte h3 { margin: 0; font-size: 0.95rem; font-weight: 600; color: var(--dark); }
.leer-mitte strong { color: var(--dark); }
.leer-mitte p { margin: 0; max-width: 480px; }
.leer-mitte p.leise { color: var(--grey-400); font-size: 0.86rem; }
.leer-mitte .btn { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; }
body.im-app .empty-state { color: var(--grey-500); }
body.im-app .empty-state h3 { color: var(--dark); }

/* ---- Lade-Ring (.spinner-sm: der kleine im Knopf, weiss auf Grün) ---- */
body.im-app .spinner { border-color: var(--grey-200); border-top-color: var(--akzent); }
.spinner-sm { display: inline-block; width: 13px; height: 13px; margin-right: 6px; vertical-align: middle; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: currentColor; animation: ladeRing .8s linear infinite; }
@keyframes ladeRing { to { transform: rotate(360deg); } }

/* ---- Kürzel-Kreis (.start-kuerzel oben): mit Bild als <img> darin; .klein 30, .gross 44 ---- */
.start-kuerzel { flex-shrink: 0; overflow: hidden; background-size: cover; background-position: center; }
.start-kuerzel > img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.start-kuerzel.klein { width: 28px; height: 28px; font-size: 0.68rem; }
.start-kuerzel.gross { width: 44px; height: 44px; }
/* Person in einer Zeile oder Zelle: Kürzel-Kreis, daneben der Name */
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person strong { font-weight: 600; color: var(--dark); }

/* ---- Fortschritt: flacher Balken, Breite über --w (0 bis 1) am Balken oder am <i>; auf der dunklen Karte hell ---- */
.fortschritt { display: block; height: 7px; border-radius: 99px; background: var(--grey-100); overflow: hidden; }
.fortschritt > i {
  display: block; height: 100%; width: calc(var(--w, 0) * 100%); min-width: 7px; border-radius: 99px;
  background: var(--akzent); transform-origin: left; animation: balkenAuf .9s var(--feder) .25s both;
}
.fortschritt.bernstein > i { background: #f2c14e; }
.fortschritt.rot > i { background: var(--ton-rot); }
.glas-karte.dunkel .fortschritt { background: rgba(255, 255, 255, .14); }
.glas-karte.dunkel .fortschritt > i { background: var(--akzent-hell); }

/* ---- Angaben: Etikett über Wert (<dl class="angaben"><div><dt class="karten-etikett">…</dt><dd>…</dd></div>) ---- */
.angaben { display: grid; gap: 14px; margin: 0; }
.angaben > div { min-width: 0; }
.angaben dt { margin-bottom: 2px; }
.angaben dd { margin: 0; font-size: 0.92rem; font-weight: 600; color: var(--dark); overflow-wrap: anywhere; }
.angaben dd.leise { font-weight: 500; color: var(--grey-500); }
.angaben.zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.angaben.raster { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px 18px; }
.angaben > .breit { grid-column: 1 / -1; }
@media (max-width: 720px) { .angaben.zwei { grid-template-columns: minmax(0, 1fr); } }

/* ---- Zahlen als Spalten: EINE Fläche, je Zahl eine Spalte (Etikett, Zahl, leise Unterzeile), Haarstrich dazwischen (zahlenSpalten() in app.js).
   .karte = eigene Karte (Zahlen zuoberst einer Seite); ohne = in einer Karte unter ihrem Kopf; .klein = kleinere Zahlen in einer Karte mit Rand ---- */
.zahlen-spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); padding: 14px 0 16px; }
.zahlen-spalten > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 2px 20px; }
.zahlen-spalten > div + div { border-left: 1px solid var(--grey-100); }
.zahlen-spalten .karten-zahl { font-size: 1.45rem; line-height: 1.1; }
.zahlen-spalten > .ziel .karten-zahl { color: var(--akzent); }
.zahlen-spalten .karten-zahl.gut { color: var(--ton-gruen); }
.zahlen-spalten .karten-zahl.schlecht { color: var(--ton-rot); }
.zahlen-spalten .karten-zahl.offen { color: var(--grey-400); }
.zahlen-unter { margin-top: 1px; font-size: 0.76rem; font-weight: 500; line-height: 1.4; color: var(--grey-500); }
.zahlen-spalten.karte { padding: 16px 0; background: var(--white); border: 1px solid var(--karten-kante); border-radius: 18px; box-shadow: var(--shadow-sm); }
.zahlen-spalten.klein { padding: 0; margin: 10px 0 14px; }
.zahlen-spalten.klein > div { padding: 2px 16px; }
.zahlen-spalten.klein > div:first-child { padding-left: 0; }
.zahlen-spalten.klein .karten-zahl { font-size: 1.3rem; }
@media (max-width: 720px) {
  .zahlen-spalten { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .zahlen-spalten > div:nth-child(odd) { border-left: 0; }
  .zahlen-spalten.klein > div:nth-child(odd) { padding-left: 0; }
}

/* ---- Felder: klein, Zahl, ganze Breite, Schreibmaschine ---- */
body.im-app .feld.klein { padding: 7px 10px; font-size: 0.82rem; border-radius: 10px; }
body.im-app .feld.zahl { width: 84px; text-align: center; }
body.im-app .feld.voll { width: 100%; box-sizing: border-box; }
.feld-mono, body.im-app .form-group textarea.feld-mono { font-family: 'JetBrains Mono', 'Menlo', monospace; font-size: 0.82rem; }

/* ---- Wählen: .wahl-karte (eine Karte als Option, .gewaehlt = Kante in Tinte + grüner Haken) und .wahl-zeile (Haken als Zeile, im .wahl-raster) ---- */
.wahl-karte {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 18px;
  border-radius: 18px; border: 1.5px solid var(--karten-kante); background: var(--white); box-shadow: var(--shadow-sm);
  color: var(--dark); font: inherit; text-align: left; cursor: pointer;
  transition: border-color .2s ease, box-shadow .3s ease, transform .3s var(--feder);
}
.wahl-karte:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.wahl-karte:active { transform: scale(.985); }
.wahl-karte.gewaehlt { border-color: var(--gewaehlt-kante); box-shadow: var(--shadow-md); }
.wahl-haken {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  border: 2px solid var(--grey-300); color: #fff; transition: background .2s ease, border-color .2s ease;
}
.wahl-haken svg { width: 14px; height: 14px; stroke-width: 3; opacity: 0; transition: opacity .2s ease; }
.wahl-karte.gewaehlt .wahl-haken { background: var(--akzent); border-color: var(--akzent); }
.wahl-karte.gewaehlt .wahl-haken svg { opacity: 1; }
.wahl-zeile {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; cursor: pointer;
  background: var(--grey-50); font-size: 0.9rem; font-weight: 600; color: var(--dark); transition: background .2s ease;
}
.wahl-zeile:hover { background: var(--grey-100); }
.wahl-zeile input[type=checkbox] { width: 17px; height: 17px; flex-shrink: 0; accent-color: var(--akzent); }
.wahl-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 720px) { .wahl-raster { grid-template-columns: minmax(0, 1fr); } }

/* ---- Liste auf Glas: .glas-karte.glas-liste > .liste-zeile ----
   EINE Gruppe, jede Zeile ihre eigene Karte mit Abstand (Inhaber 21.11.2026: «ich verstehe den Ansatz, dass es zu einer Gruppe
   gehört, aber sie gehören nicht gerade nebeneinander. Sie brauchen trotzdem noch Distanz zueinander.»). Der Behälter trägt
   dann kein Glas mehr; das tragen die Zeilen. Steht im Behälter etwas anderes als Zeilen (Laden, Leerzustand, eine Tabelle),
   bleibt er die eine Karte. Eine .liste-zeile ausserhalb dieser Liste behält ihren Haarstrich. */
.glas-karte.glas-liste { padding: 4px 0; }
.glas-karte.glas-liste:has(> .liste-zeile) {
  padding: 0; gap: 10px; border-radius: 0;
  background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
}
.glas-liste > .liste-zeile {
  min-height: 64px; padding: 12px 18px; border-radius: 16px;
  background: var(--glas); -webkit-backdrop-filter: var(--glas-unschaerfe); backdrop-filter: var(--glas-unschaerfe);
  border: 1px solid var(--glas-kante); box-shadow: var(--glas-schatten);
}
.liste-zeile { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 18px; }
.liste-zeile + .liste-zeile::before { content: ""; position: absolute; top: 0; left: 18px; right: 18px; height: 1px; background: var(--app-strich); }
.glas-liste > .liste-zeile + .liste-zeile::before { content: none; }
.glas-liste > .liste-zeile.ist-klickbar:hover { background: var(--glas-linse); box-shadow: var(--glas-schatten-hoch); }
@media (max-width: 720px) {
  .liste-zeile { padding: 9px 16px; }
  .liste-zeile + .liste-zeile::before { left: 16px; right: 16px; }
  .glas-karte.glas-liste:has(> .liste-zeile) { gap: 8px; }
  .glas-liste > .liste-zeile { padding: 11px 14px; }
}

/* ---- Gruppen-Kopf über einer Liste: leises Wort in Versalien, die Zahl als graue Pille (keine Farbe: der Stand steht an der Marke der Zeile) ---- */
.gruppen-kopf {
  display: flex; align-items: center; gap: 8px; margin: 28px 0 12px 2px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.4; color: var(--app-grau);
}
.gruppen-kopf:first-child { margin-top: 4px; }
.gruppen-kopf-bild { height: 18px; width: auto; }
.gruppen-kopf-zahl {
  min-width: 22px; padding: 1px 8px; border-radius: var(--radius-full); text-align: center;
  background: var(--grey-100); color: var(--app-tinte-weich); font-size: 0.7rem; letter-spacing: 0; font-variant-numeric: tabular-nums;
}

/* ---- Kennzahlen: eine Reihe Kacheln wie die Karten der App (Etikett in Versalien, Zahl, eine Zeile Stand; .karten-etikett,
   .karten-zahl, .karten-stand von oben), ohne Zeichen (Inhaber 21.11.2026: «weg mit diesen Icons … orientier dich immer an
   unserem App-Design»). Die Farbe der Marke nur am Ring der gewählten Kachel. Ein Klick führt zur Stelle dahinter. ---- */
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.kennzahl { min-height: 124px; font: inherit; }
.kennzahl .karten-zahl { font-size: 2rem; }
.kennzahl .karten-stand { margin-top: auto; padding-top: 8px; font-size: 0.8rem; font-weight: 500; }
.kennzahl.gewaehlt, .kennzahl.gewaehlt:hover { box-shadow: 0 0 0 2px var(--akzent), var(--glas-schatten-hoch); }
@media (max-width: 720px) {
  .kennzahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kennzahl { min-height: 108px; padding: 14px 16px; }
  .kennzahl .karten-zahl { font-size: 1.6rem; }
}


/* ---- Chat (Berater-Chat und Chat in «Meine Berater»): Gespräche links, Verlauf rechts, auf einer ruhigen Karte (wie der Chat der App) ---- */
.chat {
  display: grid; grid-template-columns: 290px minmax(0, 1fr); height: calc(100vh - 200px); min-height: 460px; max-height: 760px;
  overflow: hidden; background: var(--white); border: 1px solid var(--karten-kante); border-radius: 22px; box-shadow: var(--shadow-sm);
}
.chat-kontakte { min-width: 0; min-height: 0; overflow-y: auto; background: var(--grey-50); border-right: 1px solid var(--grey-100); }
.chat-kontakte-liste { display: flex; flex-direction: column; gap: 2px; padding: 10px; }
.chat-kontakte-liste > .spinner { margin: 24px auto; }
.chat-contact-item {
  position: relative; width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border: 1px solid transparent; border-radius: 16px; background: none; text-align: left; cursor: pointer;
  transition: background .2s ease, box-shadow .25s ease;
}
.chat-contact-item:hover { background: var(--grey-100); }
.chat-contact-item.active { background: var(--white); border-color: var(--karten-kante); box-shadow: var(--shadow-sm); }
.chat-avatar {
  width: 34px; height: 34px; flex-shrink: 0; overflow: hidden; display: grid; place-items: center; border-radius: 50%;
  background: var(--app-kreis); color: #fff; font-size: 0.72rem; font-weight: 600;
}
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-kontakt-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.chat-kontakt-text strong { font-size: 0.88rem; font-weight: 600; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-kontakt-text small { font-size: 0.74rem; color: var(--grey-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-ungelesen {
  min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; flex-shrink: 0;
  border-radius: var(--radius-full); background: var(--akzent); color: var(--auf-akzent); font-size: 0.68rem; font-weight: 600; line-height: 1;
}
.chat-leer { padding: 28px 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 0.84rem; color: var(--grey-500); }
.chat-leer strong { font-size: 0.9rem; color: var(--dark); }
.chat-leer p { margin: 0 0 8px; }
.chat-fehler { padding: 14px; margin: 0; font-size: 0.85rem; color: #dc2626; }
body.dark-mode .chat-fehler { color: #ef5b4c; }

.chat-verlauf { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.chat-kopf { flex-shrink: 0; display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--grey-100); }
.chat-kopf-text { flex: 1; min-width: 0; }
.chat-kopf-name { font-size: 0.95rem; font-weight: 600; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-kopf-rolle { font-size: 0.75rem; color: var(--grey-500); }
.chat-anruf-knopf { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
body.im-app .btn.chat-beitreten, body.dark-mode.im-app .btn.chat-beitreten {
  background: #f2c14e; color: #0f172a; border: none; box-shadow: 0 3px 8px rgba(242, 193, 78, .3);
}
body.im-app .btn.chat-beitreten:hover { background: #e9b43a; color: #0f172a; }

.chat-nachrichten { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.chat-mitte { margin: auto; }
.chat-start { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--grey-500); font-size: 0.9rem; }
.chat-start p { margin: 0; }
.chat-start-kreis {
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%;
  background: var(--grey-100); color: var(--dark-700);
}
.chat-hinweis { text-align: center; font-size: 0.85rem; color: var(--grey-500); }
.chat-zeile { display: flex; justify-content: flex-start; }
.chat-zeile.meine { justify-content: flex-end; }
.chat-zeile + .chat-zeile { margin-top: 2px; }
.chat-blase {
  max-width: min(72%, 560px); padding: 10px 14px 7px; border-radius: 20px 20px 20px 6px;
  background: var(--grey-100); color: var(--dark); font-size: 0.9rem; line-height: 1.45;
  animation: chatBlase .35s var(--feder) both;
}
.chat-zeile.meine .chat-blase { border-radius: 20px 20px 6px 20px; background: var(--akzent); color: var(--auf-akzent); }
.chat-text-inhalt { white-space: pre-wrap; word-break: break-word; }
.chat-bild { display: block; max-width: 100%; max-height: 300px; margin-bottom: 6px; border-radius: 14px; cursor: pointer; }
.chat-bild:last-child { margin-bottom: 0; }
.chat-zeit { margin-top: 3px; font-size: 0.68rem; text-align: right; opacity: .7; font-variant-numeric: tabular-nums; }
@keyframes chatBlase { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.chat-anruf {
  display: inline-flex; align-items: center; gap: 8px; margin: 4px 0; padding: 7px 8px 7px 14px;
  border-radius: var(--radius-full); background: var(--grey-50); border: 1px solid var(--grey-100);
  font-size: 0.8rem; color: var(--grey-500);
}
.chat-anruf.aktiv { color: var(--dark-700); }
.chat-anruf.aktiv svg { color: #c8901a; }
.chat-anruf:not(:has(button)) { padding-right: 14px; }

.chat-eingabe { position: relative; padding: 12px 16px 14px; border-top: 1px solid var(--grey-100); }
.chat-feld {
  display: flex; align-items: center; gap: 2px; padding: 4px 4px 4px 6px;
  border-radius: var(--radius-full); background: var(--grey-50); border: 1px solid var(--feld-kante);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.chat-feld:focus-within { border-color: var(--fokus-kante); box-shadow: 0 0 0 3px var(--fokus-ring); }
.chat-symbol {
  width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; padding: 0;
  border: none; border-radius: 50%; background: none; color: var(--grey-400); cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.chat-symbol:hover { background: var(--grey-100); color: var(--dark); }
.chat-text {
  flex: 1; min-width: 0; padding: 9px 8px; border: none; background: transparent; outline: none;
  font: inherit; font-size: 0.9rem; color: var(--dark);
}
.chat-text::placeholder { color: var(--grey-400); }
.chat-senden {
  width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; padding: 0 2px 0 0;
  border: none; border-radius: 50%; background: var(--akzent); color: var(--auf-akzent); cursor: pointer;
  box-shadow: 0 3px 8px rgba(var(--akzent-rgb), .3); transition: transform .3s var(--feder), box-shadow .3s ease;
}
.chat-senden:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(var(--akzent-rgb), .36); }
.chat-senden:active { transform: scale(.94); }
.chat-vorschau { position: relative; display: inline-block; margin-bottom: 8px; }
.chat-vorschau img { display: block; max-height: 120px; border-radius: 12px; }
.chat-vorschau-weg {
  position: absolute; top: -7px; right: -7px; width: 24px; height: 24px; padding: 0; display: grid; place-items: center;
  border: 2px solid var(--white); border-radius: 50%; background: var(--dark); color: var(--white); font-size: 0.85rem; line-height: 1; cursor: pointer;
}
.chat-emoji {
  position: absolute; left: 16px; bottom: calc(100% - 4px); z-index: 5; width: 316px; max-width: calc(100% - 32px); padding: 10px;
  background: var(--white); border: 1px solid var(--karten-kante); border-radius: 20px; box-shadow: var(--shadow-lg);
  animation: startAuf .3s var(--feder) both;
}
.chat-emoji-raster { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; max-height: 200px; overflow-y: auto; }
.chat-emoji-wahl { padding: 5px; border: none; border-radius: 10px; background: none; font-size: 1.35rem; line-height: 1.2; cursor: pointer; transition: background .15s ease, transform .2s var(--feder); }
.chat-emoji-wahl:hover { background: var(--grey-100); transform: scale(1.08); }

/* Handy: EINE Hälfte aufs Mal, wie der Chat der App. Ohne gewählten Kontakt die Liste der Gespräche, mit ihm der Verlauf (Pfeil = zurück). */
.chat-zurueck { display: none; flex-shrink: 0; }
@media (max-width: 760px) {
  .chat { grid-template-columns: 1fr; height: calc(100dvh - 190px); min-height: 460px; max-height: none; }
  .chat:not(:has(.chat-contact-item.active)) { height: auto; min-height: 0; }
  .chat:not(:has(.chat-contact-item.active)) .chat-verlauf, .chat:has(.chat-contact-item.active) .chat-kontakte { display: none; }
  .chat-kontakte { border-right: none; }
  .chat-zurueck { display: grid; }
  .chat-nachrichten { padding: 14px 12px; }
  .chat-blase { max-width: 84%; }
  .chat-kopf { padding: 10px 12px; }
  .chat-eingabe { padding: 10px 10px 12px; }
  .chat-emoji { left: 10px; }
}

/* ---- Meldungen oben rechts (showToast): dunkles Glas mit einem Farbpunkt für die Art ---- */
.vemo-meldungen { position: fixed; top: 20px; right: 20px; z-index: 99999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.vemo-meldung {
  position: relative; max-width: 380px; padding: 13px 18px 13px 36px; border-radius: 16px; pointer-events: auto;
  background: rgba(15, 23, 41, .92); color: #fff; font-size: 0.88rem; font-weight: 500; line-height: 1.5;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 12px 32px rgba(15, 23, 41, .28);
  opacity: 0; transform: translateY(-8px) scale(.98); transition: opacity .3s ease, transform .35s cubic-bezier(.32, .72, 0, 1);
}
.vemo-meldung.da { opacity: 1; transform: none; }
.vemo-meldung::before { content: ""; position: absolute; left: 16px; top: 20px; width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); }
.vemo-meldung.warnung::before { background: #f2c14e; }
.vemo-meldung.fehler::before { background: #ef5b4c; }
@media (max-width: 480px) { .vemo-meldungen { left: 12px; right: 12px; top: 12px; } .vemo-meldung { max-width: none; } }

/* ============================================================
   APP-SEITEN — was eine einzelne Seite über die Bausteine hinaus braucht. Je Bereich EIN Platz.
   ============================================================ */
/* ---- BEREICH berater-a: Budget, Ziele, Empfehlungs-Übersicht, Meine Kunden ---- */
/* Gemeinsame Bausteine (Reiter, Marke, Schalter, Hinweis, Tabelle) stehen seit 20.11. im Fundament (APP-BAUSTEINE). */
.seite-app { display: flex; flex-direction: column; gap: 20px; }
.seite-app > .page-header { margin-bottom: 4px; }
.seite-app > .section-card, .seite-app > .seiten-leiste { margin-bottom: 0; }
/* Leer und Fehler einer ganzen Seite: die Karte über die volle Breite, der Inhalt mittig */
.seite-app > .leer-mitte, .emp-u > .leer-mitte { width: 100%; box-sizing: border-box; }
/* Zeilen einer Liste, die eine ganze Karte füllen (unter dem Kopf einer .section-card) */
.bl-liste { padding: 4px 0; }
.bl-liste .liste-zeile { min-height: 58px; padding-left: 20px; padding-right: 20px; }
.bl-liste .liste-zeile + .liste-zeile::before { left: 20px; right: 20px; }
.bl-liste .start-zeile-text { flex: 1; }
.bl-liste .start-kuerzel { color: var(--dark-700); }
.bl-liste .start-zeile-text small { white-space: normal; }

/* -- Budget (#berater-leads) -- */
.bl-budget { gap: 18px; }
.bl-budget-spalten { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.bl-budget-spalten > div { display: flex; flex-direction: column; min-width: 0; }
.bl-budget-spalten > div + div { padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .13); }
.bl-budget .karten-zahl { font-size: 1.8rem; }
.bl-budget-spalten > div + div .karten-zahl { font-size: 1.35rem; }
.bl-budget .karten-stand { color: rgba(255, 255, 255, .66); }
.bl-diagramm { position: relative; height: 220px; }
.bl-diagramm-leer { height: 100%; display: grid; place-items: center; text-align: center; color: var(--grey-400); font-size: 0.85rem; }
.bl-hinweis { padding: 16px 20px 6px; }
.bl-sperre { font-size: 0.76rem; color: var(--grey-400); white-space: nowrap; }
.bl-gratis { color: var(--ton-gruen); font-weight: 600; }
.bl-leer { margin: 0; padding: 20px; text-align: center; font-size: 0.88rem; color: var(--grey-500); }
.bl-anfrage { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.bl-betrag { display: flex; align-items: center; gap: 8px; }
.bl-betrag span { font-size: 0.8rem; font-weight: 600; color: var(--grey-500); }
body.im-app .bl-betrag .feld { width: 96px; }
body.im-app .bl-notiz { width: 180px; }
.bl-eigene { margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--grey-100); display: flex; flex-direction: column; gap: 10px; }
.bl-eigene > .karten-etikett { padding: 0 20px; }
.bl-leise { margin: 0; padding: 16px 20px 20px; border-top: 1px solid var(--grey-100); font-size: 0.85rem; color: var(--grey-400); }
.bl-leise.fehler { color: var(--ton-rot); }
@media (max-width: 900px) {
  /* Die Anfrage bricht unter den Text: Felder und Knopf über die ganze Breite */
  .bl-weg { flex-wrap: wrap; row-gap: 10px; padding-top: 12px; padding-bottom: 12px; }
  .bl-weg .bl-anfrage { flex-basis: 100%; padding-left: 46px; flex-wrap: wrap; }
  body.im-app .bl-weg .bl-notiz { flex: 1 1 160px; width: auto; }
}
@media (max-width: 720px) {
  .section-card-header { flex-wrap: wrap; gap: 10px; }
  .bl-liste .liste-zeile { padding-left: 16px; padding-right: 16px; }
  .bl-liste .liste-zeile + .liste-zeile::before { left: 16px; right: 16px; }
  .bl-liste .liste-zeile .start-zeile-text { min-width: 0; }
  .bl-sperre { white-space: normal; text-align: right; max-width: 96px; }
  .bl-weg .start-zeile-text { flex-basis: calc(100% - 46px); }
  .bl-weg .btn { margin-left: 46px; }
  .bl-weg .bl-anfrage { padding-left: 46px; }
  .bl-weg .bl-anfrage .btn { margin-left: 0; }
  .bl-budget-spalten { grid-template-columns: 1fr; row-gap: 14px; }
  .bl-budget-spalten > div + div { padding: 14px 0 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .13); }
}

/* -- Ziele & Race (#berater-ziele) -- */
/* Reihenfolge: Kopf → EINE Leiste (Reiter | Auswertung, Uhr) → Race (Diagramm + Rangliste) → zwei gleich hohe Karten (Vermögen | Abzeichen) */
/* Die Farben der Berater: die Akzenttöne des App-Grundes (Linie im Diagramm = Punkt in der Rangliste) */
.ziele {
  --ziel-0: #7ed957; --ziel-1: #7c6cf2; --ziel-2: #4cafdc; --ziel-3: #f2c14e;
  --ziel-4: #f59ac4; --ziel-5: #454d68; --ziel-6: #a891f5; --ziel-7: #8aa0b8;
}
body.dark-mode .ziele { --ziel-5: #c9d3e6; }
.ziele-uhr { display: inline-flex; align-items: center; gap: 7px; font-size: 0.8rem; color: var(--grey-500); }
.ziele-uhr svg { color: var(--grey-400); }
.ziele-uhr strong { font-weight: 600; color: var(--dark); font-variant-numeric: tabular-nums; }
.ziele-auswertung { padding-right: 14px; }
.ziele-race { padding: 20px 0 6px; }
.ziele-race[hidden] { display: none; }
.ziele-diagramm { position: relative; height: 280px; padding: 0 24px 10px; }
.ziele-rangliste { margin-top: 6px; }
.ziele-zeile {
  position: relative; display: grid; grid-template-columns: 22px 34px minmax(0, 1fr) auto;
  align-items: center; gap: 12px; min-height: 56px; padding: 0 18px;
}
.ziele-zeile::before { content: ""; position: absolute; top: 0; left: 18px; right: 18px; height: 1px; background: var(--grey-100); }
.ziele-zeile.ich { background: var(--grey-50); }
.ziele-rang { font-size: 0.85rem; text-align: center; font-weight: 600; color: var(--grey-400); font-variant-numeric: tabular-nums; }
.ziele-zeile.vorn .ziele-rang { color: var(--dark); }
.ziele-du { font-size: 0.74rem; font-weight: 600; color: var(--grey-500); }
.ziele-podest { margin: 0 -28px -10px; }
.ziele-podest .ziele-zeile:first-child::before { display: none; }

.ziele-karten > .glas-karte { min-height: 0; }
.ziele-karten .glas-karte.dunkel .karten-zahl { font-size: 1.8rem; }
.ziele-schaetzung { margin-top: 6px; font-size: 0.8rem; line-height: 1.5; color: rgba(255, 255, 255, .72); }
.ziele-karten .karten-linie { margin-top: 18px; }
.ziele-fortschritt-kopf { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.ziele-karten .karten-stand { margin-top: 10px; color: rgba(255, 255, 255, .78); }

.ziele-abz { gap: 4px; font: inherit; }
.ziele-abz-bild { font-size: 2rem; line-height: 1; margin-bottom: 10px; }
.ziele-abz-titel { font-size: 0.95rem; font-weight: 600; color: var(--app-tinte); }
.ziele-abz-betrag { font-size: 0.8rem; font-weight: 600; color: var(--app-grau); }
.ziele-abz-text { margin: 8px 0 14px; font-size: 0.8rem; line-height: 1.55; color: var(--app-tinte-weich); }
.ziele-abz-mehr { margin-top: auto; font-size: 0.8rem; font-weight: 600; color: var(--app-tinte); }
.ziele-abz.frei .ziele-abz-titel::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: var(--green-500); vertical-align: middle; }

.ziele-fenster-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.ziele-marke { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 10px; border-radius: 16px; text-align: center; background: var(--grey-50); opacity: .6; }
.ziele-marke.frei { background: var(--ton-gruen-grund); opacity: 1; }
.ziele-marke-bild { height: 1.9rem; display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 4px; color: var(--grey-400); }
.ziele-marke strong { font-size: 0.75rem; font-weight: 600; line-height: 1.3; color: var(--dark); }
.ziele-marke small { font-size: 0.68rem; color: var(--grey-500); }
.ziele-marke .ziele-marke-noch { color: var(--grey-400); }

@media (max-width: 720px) {
  .ziele-diagramm { height: 220px; padding: 0 12px 8px; }
  .ziele-zeile { grid-template-columns: 20px 34px minmax(0, 1fr) auto; gap: 10px; padding: 0 16px; }
  .ziele-zeile::before { left: 16px; right: 16px; }
  .ziele-podest { margin: 0 -18px -6px; }
}

/* -- Empfehlungs-Übersicht (#berater-empfehlungen und Admin-Verteiler > Empfehlungen) -- */
/* Reihenfolge: Link geben (der eine grüne Knopf) → Zahlen als EINE Karte → Neu angemeldet (Liste) → Wer wen empfohlen hat (EINE Karte). */
.emp-u { color: var(--dark); font-variant-numeric: tabular-nums; display: flex; flex-direction: column; gap: 20px; }
.emp-u button { font-family: inherit; }
.emp-u-karte { background: var(--white); border: 1px solid var(--karten-kante); border-radius: 18px; box-shadow: var(--shadow-sm); }

.emp-u-geben { padding: 18px 20px; }
.emp-u-geben-titel { font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 14px; color: var(--dark); }
.emp-u-geben-zeile { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.emp-u-feld {
  flex: 1 1 260px; display: flex; align-items: center; gap: 10px; padding: 0 12px;
  border: 1px solid var(--feld-kante); border-radius: 11px; background: var(--white);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.emp-u-feld:focus-within { border-color: var(--fokus-kante); box-shadow: 0 0 0 3px var(--fokus-ring); }
.emp-u-feld input, .emp-u-feld select { border: 0; background: transparent; font: inherit; font-size: 0.88rem; color: inherit; padding: 9px 0; width: 100%; outline: none; }
/* Den Fokus zeigt das abgerundete Feld selbst — kein zweiter, eckiger Rahmen um das Eingabefeld darin */
.emp-u-feld input:focus-visible, .emp-u-feld select:focus-visible { outline: none; }
.emp-u-feld input::placeholder { color: var(--grey-400); opacity: .75; }
.emp-u-feld small { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey-400); white-space: nowrap; }
.emp-u-feld-berater { flex: 0 1 240px; }
.emp-u-knopf { min-height: 40px; }
.emp-u-hinweis { margin: 14px 0 0; font-size: 0.85rem; color: var(--grey-500); }
.emp-u-hinweis.fehler { color: var(--ton-rot); }
.emp-u-fertig { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--grey-100); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.emp-u-fertig strong { color: var(--dark); }
.emp-u-fertig code { flex: 1 1 280px; font-size: 0.82rem; background: var(--grey-50); border-radius: 10px; padding: 9px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dark-700); }

.emp-u-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; flex-wrap: wrap; }
.emp-u-kopf h3 { font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; margin: 0; color: var(--dark); }
.emp-u-kopf .feld { width: auto; font-weight: 600; }


/* Neu angemeldet: Zeilen der Liste (Kürzel, Name, wer empfohlen hat; rechts Telefon und E-Mail) */
.emp-u-baeume { display: flex; flex-direction: column; gap: 10px; }
.emp-u-zeile { min-height: 58px; }
.emp-u-zeile .start-zeile-text { flex: 1; }
.emp-u-kontakt { display: flex; align-items: center; gap: 8px; flex-shrink: 0; font-size: 0.84rem; color: var(--dark-700); white-space: nowrap; }
.emp-u-trenner { color: var(--grey-300); }
.emp-u-klein { font-size: 0.8rem; color: var(--grey-500); }
.emp-u-leer { padding: 24px 20px; font-size: 0.88rem; color: var(--grey-500); }

/* Der Baum: je Empfehler eine eigene Karte, darunter die Äste mit der Spur Link → Klick → Anmeldung */
.emp-u-baum { padding: 14px 20px 6px; }
.emp-u-wurzel { display: flex; align-items: center; gap: 12px; }
.emp-u-wurzel-text { flex: 1 1 auto; min-width: 0; }
.emp-u-wurzel-name { font-weight: 600; font-size: 0.92rem; }
.emp-u-aeste { list-style: none; margin: 8px 0 0 17px; padding: 0 0 6px; border-left: 1px solid var(--grey-200); }
.emp-u-ast { position: relative; display: grid; grid-template-columns: minmax(130px, 240px) auto 1fr auto; gap: 22px; align-items: center; min-height: 48px; padding: 2px 0 2px 26px; }
.emp-u-ast::before { content: ''; position: absolute; left: 0; top: 50%; width: 16px; border-top: 1px solid var(--grey-200); }
.emp-u-ast-name { font-size: 0.88rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.emp-u-spur { display: flex; align-items: flex-start; }
.emp-u-schritt { width: 70px; display: flex; flex-direction: column; align-items: center; gap: 5px; position: relative; z-index: 1; }
.emp-u-punkt {
  width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--grey-300); background: var(--white);
  display: grid; place-items: center; color: #fff; box-sizing: border-box;
}
.emp-u-punkt svg { width: 11px; height: 11px; stroke-width: 3.8; }
.emp-u-schritt.an .emp-u-punkt { background: var(--akzent); border-color: var(--akzent); }
.emp-u-schritt-name { font-size: 0.66rem; line-height: 1; color: var(--grey-400); white-space: nowrap; }
.emp-u-schritt.an .emp-u-schritt-name { color: var(--grey-500); font-weight: 600; }
.emp-u-strich { flex: none; width: 40px; height: 1.5px; margin: 10px -25px 0; background: var(--grey-200); }
.emp-u-strich.an { background: var(--akzent); }
.emp-u-ast-stand { font-size: 0.8rem; color: var(--grey-500); }
.emp-u-ast-stand.angemeldet { color: var(--dark); font-weight: 600; }
.emp-u-ast-leer { padding: 10px 0 8px 26px; font-size: 0.82rem; color: var(--grey-500); }


@media (max-width: 760px) {
  .emp-u-feld-berater, .emp-u-knopf { flex: 1 1 100%; }
  .emp-u-zeile { flex-wrap: wrap; row-gap: 4px; }
  .emp-u-kontakt { flex-basis: 100%; padding-left: 46px; flex-wrap: wrap; white-space: normal; overflow-wrap: anywhere; }
  .emp-u-ast { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; padding-top: 8px; padding-bottom: 8px; }
  .emp-u-ast .zeichen-knopf { grid-column: 2; grid-row: 1; }
  .emp-u-spur { grid-column: 1 / -1; grid-row: 2; }
  .emp-u-ast-stand { grid-column: 1 / -1; grid-row: 3; }
}
@media (max-width: 480px) {
  .emp-u-wurzel { flex-wrap: wrap; }
  .emp-u-wurzel-text { flex-basis: calc(100% - 46px); }
  .emp-u-wurzel > .knopf-zeile { margin-left: 46px; }
}

/* -- Meine Kunden (#berater-kunden) -- */
.mk-name { min-width: 0; }
.mk-name strong { font-weight: 600; color: var(--dark); white-space: nowrap; }
.mk-portfolio { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 0.76rem; color: var(--grey-500); white-space: nowrap; }
.mk-portfolio img { height: 16px; object-fit: contain; }
.mk-anbieter { font-weight: 600; color: var(--dark-700); }
.mk-trenner { color: var(--grey-300); }
/* ---- ENDE berater-a ---- */

/* · */
/* · · */
/* · · · 1 */

/* ---- BEREICH berater-b: Beratung 3a, Termine, Terminbuchung ---- */
/* Marke, Zeichen-Knopf, Schalter und Glas-Liste stehen seit 20.11. im Fundament (APP-BAUSTEINE).
   Stufe 3 (20.11.): je Zeile EINE weisse Haupthandlung, der Rest als Zeichen-Knopf oder in der Schublade.
   21.11. (Inhaber: «mehr wie eine Computer-Version … klarere Differenzierungen»; danach «Akzentfarben subtil … nicht so ein Zirkus»):
   jede Zeile ihre eigene Karte, Gruppen nach Stand mit leisem Kopf, Kennzahlen oben; Farbe nur an der Marke des Stands und am Akzent. */

/* Seite, Abschnittstitel und Fehlerzeile (Kopf, Leiste und Laden kommen aus dem Fundament) */
.bb-seite { padding-top: 8px; }
.bb-fehler { padding: 22px 24px; color: var(--ton-rot); font-size: 0.88rem; }
.bb-titel { margin: 0 0 2px; font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; color: var(--dark); }
.bb-unterzeile { margin: 0; color: var(--grey-500); font-size: 0.86rem; }

/* ---- Beratung 3a: EINE Leiste (Reiter links; bei den Signatur-Links rechts Stand, Suche, Reihenfolge) ---- */
[data-b3a-reiter="sessions"] .b3a-filters { display: none; }
.b3a-filters { display: flex; gap: 8px; align-items: center; flex: 1 1 360px; justify-content: flex-end; min-width: 0; }
.b3a-filters .feld { width: auto; min-width: 0; }
.b3a-filters .b3a-search { flex: 0 1 260px; }
.b3a-tab-count {
  min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--grey-200); color: var(--grey-500);
  font-size: 0.68rem; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums;
}
.b3a-tab.active .b3a-tab-count { background: var(--grey-100); color: var(--dark); }
.b3a-tab-panel { display: none; }
.b3a-tab-panel.active { display: block; }

.b3a-kennzahlen { margin-bottom: 22px; }
.b3a-kennzahlen:empty { display: none; }

/* Die Zeile: Kürzel, Name mit Sprache, eine graue Unterzeile; rechts Stand und Handlungen. Eine Höhe, nie umbrochen. */
.b3a-row { min-height: 58px; }
.b3a-row-oeffnen {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; margin: -6px -8px; padding: 6px 8px;
  border: none; border-radius: 12px; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer;
  transition: background .2s ease;
}
.b3a-row-oeffnen:hover { background: var(--glas-wisch); }
.b3a-row-oeffnen:hover .b3a-row-wer { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--grey-300); }
.b3a-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.b3a-row-name { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 0.92rem; font-weight: 600; color: var(--dark); }
.b3a-row-wer { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b3a-row-meta { display: block; margin: 0; font-size: 0.8rem; color: var(--grey-500); line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b3a-row-meta b { color: var(--dark); font-weight: 600; }
.b3a-leise { color: var(--grey-400); font-weight: 500; }
.b3a-stand { flex-shrink: 0; }
.b3a-row > .knopf-zeile { justify-content: flex-end; }
#b3aList .b3a-row > .knopf-zeile { min-width: 86px; }  /* die Stand-Marken stehen untereinander */

/* ---- Die Schublade der Einzelheit (von rechts) wie die Detailseite der App: Kopf auf dem Grund, darunter je Thema eine eigene
   Karte (Überblick mit Kennzahlen nebeneinander, Kontakt, Verlauf, Erinnerungen, Notizen; Titel mit Punkt), eine Handlungs-Leiste
   unten. Inhaber 21.11.2026: «anstatt klarere Trennungen … sieht wie altmodisch aus». ---- */
.b3a-drawer { position: fixed; inset: 0; z-index: 9995; display: none; }
.b3a-drawer.open { display: block; }
.b3a-drawer-bd { position: absolute; inset: 0; background: rgba(15, 23, 42, .28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: rahmenEin .25s ease both; }
body.dark-mode .b3a-drawer-bd { background: rgba(0, 0, 0, .5); }
.b3a-drawer-panel {
  position: absolute; top: 12px; right: 12px; bottom: 12px; width: calc(100% - 24px); max-width: 500px;
  display: flex; flex-direction: column; overflow: hidden; border-radius: 26px;
  background: var(--grey-100); border: 1px solid var(--glas-kante); box-shadow: var(--glas-schatten-hoch);   /* der Grund der App-Detailseite */
  animation: b3aEinfahren .45s var(--feder) both;
}
@keyframes b3aEinfahren { from { transform: translateX(calc(100% + 24px)); } }
.b3a-drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 18px 18px 22px; }
.b3a-drawer-kopf { display: flex; align-items: center; gap: 14px; min-width: 0; }
.b3a-drawer-titel { min-width: 0; }
.b3a-drawer-head h3 { margin: 0 0 6px; font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; color: var(--dark); overflow-wrap: anywhere; }
.b3a-drawer-sub { margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.b3a-drawer-body {
  flex: 1; overflow-y: auto; padding: 2px 16px 16px; display: flex; flex-direction: column; gap: 12px;
  --glas: var(--glas-linse);   /* die Karten stehen weiss auf dem Grund der Schublade, wie die Karten der App */
}
.b3a-karte { padding: 16px 18px; border-radius: 18px; }
.b3a-karte > .start-titel { margin: 0 0 12px; }
.b3a-karte > .start-titel .b3a-leise { font-size: 0.76rem; }
.b3a-karte > .zahlen-spalten.klein { margin: 0; }
.b3a-timeline { position: relative; margin-left: 4px; padding-left: 18px; }
.b3a-timeline::before { content: ""; position: absolute; left: 3px; top: 8px; bottom: 8px; width: 1px; background: var(--grey-200); }
.b3a-timeline-item { position: relative; padding: 2px 0 12px; font-size: 0.88rem; color: var(--grey-500); }
.b3a-timeline-item:last-child { padding-bottom: 0; }
.b3a-timeline-item::before {
  content: ""; position: absolute; left: -19px; top: 9px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--white); border: 1.5px solid var(--grey-300); box-sizing: border-box;
}
.b3a-timeline-item.done { color: var(--dark); }
.b3a-timeline-item.done::before { background: var(--green-500); border-color: var(--green-500); }
.b3a-timeline-item b { font-weight: 600; color: var(--dark); }
.b3a-timeline-item .ts { display: block; font-size: 0.74rem; color: var(--grey-400); font-variant-numeric: tabular-nums; }
.b3a-notes-area { width: 100%; min-height: 88px; resize: vertical; font-family: inherit; box-sizing: border-box; }
.b3a-notes-status { min-height: 1em; margin-top: 6px; font-size: 0.72rem; color: var(--grey-400); }
.b3a-notes-status.saving { color: var(--ton-bernstein); }
.b3a-notes-status.saved { color: var(--ton-gruen); }
/* Erinnerungen: Zeilen mit Punkt (offen Bernstein, fällig Orange, gesendet Grün, gestoppt grau) — keine Kästen */
.b3a-reminders { font-size: 0.85rem; color: var(--grey-500); }
.b3a-reminders .b3a-stopp { margin: 10px 0 0 -10px; }
.b3a-reminders-notiz { margin-top: 8px; font-size: 0.78rem; color: var(--grey-400); }
.b3a-reminder-list { display: flex; flex-direction: column; }
.b3a-reminder-row { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; }
.b3a-reminder-punkt { width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; flex-shrink: 0; background: #f2c14e; }
.b3a-reminder-row.done .b3a-reminder-punkt { background: var(--green-500); }
.b3a-reminder-row.faellig .b3a-reminder-punkt { background: #e8892b; }
.b3a-reminder-row.skipped .b3a-reminder-punkt { background: var(--grey-300); }
.b3a-reminder-row.skipped .b3a-reminder-label { color: var(--grey-400); text-decoration: line-through; }
.b3a-reminder-meta { flex: 1; min-width: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.b3a-reminder-label { font-size: 0.84rem; font-weight: 600; color: var(--dark); }
.b3a-reminder-sub { font-size: 0.74rem; color: var(--grey-500); font-variant-numeric: tabular-nums; }
.b3a-reminder-group-label { margin: 14px 0 4px; font-size: 0.74rem; font-weight: 600; color: var(--grey-500); }
.b3a-reminder-group-label:first-child { margin-top: 0; }
.b3a-drawer-werkzeug { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.b3a-drawer-zeichen { display: flex; gap: 6px; }
.b3a-drawer-zeichen:empty { display: none; }
/* Die Leiste unten: weisse Handlungen teilen sich eine Zeile, der grüne Hauptweg steht darunter über die ganze Breite */
.b3a-drawer-fuss { display: flex; gap: 8px; flex-wrap: wrap; padding: 4px 16px 16px; }
.b3a-drawer-fuss[hidden] { display: none; }
.b3a-drawer-fuss .btn { flex: 1 1 auto; justify-content: center; text-align: center; text-decoration: none; }
.b3a-drawer-fuss .btn-primary { flex-basis: 100%; order: 1; }

/* Fenster «Signatur-Link» und «Neue Beratung» */
.b3a-modal:not(.open) { display: none; }
#b3aLinkModal .form-group { margin-bottom: 12px; }
#b3aLinkModal .form-group label { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey-400); }
.b3a-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.b3a-hr { height: 1px; margin: 14px 0; background: var(--grey-100); }
.b3a-abstand { margin-bottom: 14px; }
.b3a-calcbox { display: flex; justify-content: space-between; align-items: baseline; margin: 4px 0 12px; padding: 11px 14px; border-radius: 12px; background: var(--grey-50); font-size: 0.84rem; color: var(--grey-500); }
.b3a-calcbox[hidden] { display: none; }
.b3a-calcbox strong { font-size: 1rem; font-weight: 600; color: var(--dark); font-variant-numeric: tabular-nums; }
.b3a-success { text-align: center; padding: 10px 0 4px; }
.b3a-success h3 { margin: 0 0 6px; font-size: 1.1rem; }
.b3a-success p { margin: 0; color: var(--grey-500); font-size: 0.88rem; }
.b3a-success-ico { width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--green-500); color: #fff; box-shadow: 0 6px 18px rgba(126, 217, 87, .35); }
.b3a-success-ico svg { width: 26px; height: 26px; stroke-width: 2.4; }
.b3a-link-box { display: flex; align-items: center; gap: 8px; margin: 16px 0 6px; padding: 8px 8px 8px 14px; border-radius: 14px; background: var(--grey-50); overflow: hidden; }
.b3a-link-url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.8rem; color: var(--dark); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.b3a-sprachen { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.b3a-sprache {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 16px;
  border-radius: 20px; border: 1px solid var(--karten-kante); background: var(--grey-50); cursor: pointer; font-family: inherit;
  transition: transform .35s var(--feder), box-shadow .25s ease, background .2s ease;
}
.b3a-sprache:hover { background: var(--white); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.b3a-sprache:active { transform: scale(.97); }
.b3a-sprache-marke {
  width: 52px; height: 52px; margin-bottom: 4px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); box-shadow: var(--shadow-sm); font-size: 0.95rem; font-weight: 700; letter-spacing: 0.02em; color: var(--dark);
}
.b3a-sprache-marke.violett { background: var(--ton-violett-grund); color: var(--ton-violett); box-shadow: none; }
.b3a-sprache-wort { font-size: 0.95rem; font-weight: 600; color: var(--dark); }
.b3a-sprache-sub { font-size: 0.75rem; color: var(--grey-500); }

/* ---- Termine ---- */
.tb-tag-gruppe { margin-bottom: 22px; }
.tb-tag-kopf { display: flex; align-items: center; gap: 10px; margin: 0 0 10px 4px; }
.tb-tag-kopf h3 { margin: 0; font-size: 0.9rem; font-weight: 600; color: var(--dark); }
.tb-termin { min-height: 58px; }
.tb-termin > * { transition: opacity .25s ease; }
.tb-termin.vergangen > * { opacity: .5; }
.tb-termin.vergangen:hover > * { opacity: 1; }
.tb-zeit { flex-shrink: 0; width: 58px; text-align: center; }
.tb-zeit strong { display: block; font-size: 1rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1; color: var(--dark); font-variant-numeric: tabular-nums; }
.tb-termin.vergangen .tb-zeit strong { text-decoration: line-through; text-decoration-color: var(--grey-300); }
.tb-zeit small { display: block; margin-top: 4px; font-size: 0.66rem; font-weight: 600; color: var(--grey-400); }
.tb-trenner { flex-shrink: 0; width: 1px; align-self: stretch; background: var(--app-strich); }
.tb-info { flex: 1; min-width: 0; }
.tb-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 3px; font-size: 0.92rem; font-weight: 600; color: var(--dark); }
.tb-unter { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 0.78rem; color: var(--grey-500); }
.tb-art-zeichen { display: inline-grid; place-items: center; color: var(--grey-400); }
.tb-art-zeichen svg { width: 14px; height: 14px; }
.tb-verschoben svg { width: 11px; height: 11px; }
.tb-sep { color: var(--grey-300); }
.tb-punkte { flex-shrink: 0; display: flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; background: var(--grey-50); }
.tb-punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--grey-200); }
.tb-punkt.gesendet { background: var(--green-500); }
.tb-punkt.faellig { background: #f2c14e; }

/* ---- Terminbuchung: Kalender als leise Zustandszeile, die Arten als Gruppe einzelner Karten (Punkt in ihrer Farbe) ---- */
.tb-kalender { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -6px 0 26px; font-size: 0.84rem; color: var(--grey-500); }
.tb-kalender-zeichen { display: inline-grid; place-items: center; color: var(--grey-400); }
.tb-kalender-zeichen svg { width: 16px; height: 16px; }
.tb-kalender-text { min-width: 0; overflow-wrap: anywhere; }
.tb-kalender-text strong { color: var(--dark); font-weight: 600; }
.tb-arten-teil > .bb-unterzeile { margin-bottom: 18px; }
.tb-art { min-height: 58px; flex-wrap: wrap; column-gap: 14px; }
.tb-art-titel { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.tb-art-titel.cheat { cursor: pointer; }
.tb-art-punkt { width: 10px; height: 10px; }
.tb-art-text { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tb-art-text strong { font-size: 0.92rem; font-weight: 600; color: var(--dark); }
.tb-art-text small { font-size: 0.8rem; color: var(--grey-500); }
.tb-art-aktiv { font-size: 0.8rem; }
.tb-art-honorar {
  position: relative; flex: 1 1 100%; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 8px 0 2px 22px; padding-top: 10px; border-top: 1px solid var(--app-strich);
}
.tb-art-honorar label { font-size: 0.8rem; font-weight: 500; color: var(--grey-500); }
.tb-art-honorar .feld { flex: 0 1 280px; min-width: 0; }
.tb-fenster-inhalt { display: flex; flex-direction: column; gap: 16px; margin-top: 4px; }
.tb-fenster-inhalt .form-group { margin: 0; }
.tb-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tb-wochentage { display: flex; gap: 6px; flex-wrap: wrap; }
.tb-wochentag { position: relative; }
.tb-wochentag input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tb-wochentag span {
  display: inline-grid; place-items: center; min-width: 44px; padding: 8px 12px; border-radius: 999px; cursor: pointer;
  background: var(--grey-100); color: var(--grey-500); font-size: 0.84rem; font-weight: 600;
  transition: background .2s ease, color .2s ease, transform .3s var(--feder);
}
.tb-wochentag input:checked + span { background: var(--akzent); color: var(--auf-akzent); }
.tb-wochentag span:active { transform: scale(.95); }
.tb-sperr { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.tb-sperr-zeile { display: flex; gap: 8px; align-items: center; }
.tb-sperr-zeile .feld { flex: 1; }
.tb-vorschau { margin-top: 4px; padding: 14px; border-radius: 14px; background: var(--grey-50); }
.tb-vorschau[hidden] { display: none; }
.tb-vorschau div { margin-bottom: 4px; font-size: 0.75rem; font-weight: 600; color: var(--grey-500); }
.tb-vorschau code { display: block; word-break: break-all; font-size: 0.8rem; color: var(--ton-gruen); }

/* ---- Handy ---- */
@media (max-width: 720px) {
  [data-b3a-reiter] .reiter-leiste { width: 100%; }
  [data-b3a-reiter] .filter-pill { flex: 1 0 auto; }
  .b3a-filters { flex: 1 1 100%; flex-wrap: wrap; justify-content: flex-start; }
  .b3a-filters .b3a-search { flex: 1 1 100%; order: -1; }
  .b3a-filters select.feld { flex: 1 1 0; }
  .b3a-row { flex-wrap: wrap; row-gap: 8px; }
  .b3a-row > .b3a-row-oeffnen, .b3a-row > .b3a-row-main { flex: 1 1 calc(100% - 60px); }
  .b3a-row > .b3a-stand { margin-left: 46px; }
  .b3a-row > .knopf-zeile { margin-left: auto; }
  .b3a-row > .start-kuerzel + .b3a-row-main + .knopf-zeile { margin-left: 46px; }
  .b3a-grid2, .tb-zwei { grid-template-columns: 1fr; }
  .b3a-drawer-kopf > .start-kuerzel { display: none; }
  .b3a-drawer-panel { top: 8px; right: 8px; bottom: 8px; width: calc(100% - 16px); border-radius: 22px; }
  .b3a-drawer-head { padding: 18px 16px 12px 18px; }
  .b3a-drawer-body { padding: 2px 10px 12px; }
  .b3a-drawer-fuss { padding: 12px 14px 14px; }
  .tb-termin { flex-wrap: wrap; }
  .tb-termin .tb-info { flex-basis: calc(100% - 90px); }
  .tb-termin .tb-punkte { margin-left: 86px; }
  .tb-termin > .knopf-zeile { margin-left: auto; }
  .tb-kalender { flex-wrap: nowrap; align-items: flex-start; }
  .tb-kalender-text { flex: 1; }
  .tb-art { row-gap: 10px; }
  .tb-art-titel { flex: 1 1 100%; }
  .tb-art-aktiv { margin-left: 22px; }
  .tb-art > .knopf-zeile { margin-left: auto; }
  .tb-art-honorar { margin-left: 0; }
  .tb-art-honorar .feld { flex: 1 1 100%; }
  .b3a-sprachen { grid-template-columns: 1fr 1fr; gap: 8px; }
}
/* ---- ENDE berater-b ---- */

/* · */
/* · · */
/* · · · 2 */

/* ---- BEREICH berater-c: Produktdatenbank, Chat, Profil, Benachrichtigungen ---- */
/* Schliessen-Knopf, breites Fenster und Chat stehen seit 20.11. im Fundament (APP-BAUSTEINE). */

/* Produktdatenbank: Kopf (grün «Neues Produkt»), EINE Leiste (Sprache | Suche), drei Spalten Anbieter → Produkte → Portfolios
   auf einer Karte. Gewählt = leise Fläche + Pfeil, kein Randstreifen. Handy: eine Spalte aufs Mal (hängt an .pdb-item-active). */
.pdb-neu { display: inline-flex; align-items: center; gap: 6px; }
.pdb-suche { position: relative; display: block; }
.pdb-suche svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--grey-400); pointer-events: none; }
body.im-app .pdb-suche .feld { width: 240px; padding: 8px 14px 8px 36px; border-radius: var(--radius-full); font-size: 0.85rem; }

.pdb-spalten {
  display: grid; grid-template-columns: 1fr 1.15fr 1.3fr; height: calc(100vh - 250px); min-height: 460px; max-height: 760px; overflow: hidden;
  background: var(--white); border: 1px solid var(--karten-kante); border-radius: 22px; box-shadow: var(--shadow-sm);
}
.pdb-spalte { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.pdb-spalte + .pdb-spalte { border-left: 1px solid var(--grey-100); }
.pdb-spalte-kopf {
  display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 10px 14px 10px 20px;
  border-bottom: 1px solid var(--grey-100);
}
.pdb-spalte-kopf .karten-etikett { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdb-spalte-kopf .zeichen-knopf { width: 30px; height: 30px; }
.pdb-zahl {
  min-width: 24px; padding: 2px 8px; border-radius: var(--radius-full); background: var(--grey-100);
  font-size: 0.72rem; font-weight: 600; color: var(--grey-500); text-align: center; font-variant-numeric: tabular-nums;
}
.pdb-zahl:empty { display: none; }
.pdb-zurueck { display: none; }
.pdb-col-body { flex: 1; min-height: 0; overflow-y: auto; padding: 6px; scrollbar-width: thin; }

/* Eine Zeile: Kürzel-Kreis, Name, Unterzeile, leise Handlungen (beim Zeigen), Pfeil */
.pdb-item {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 10px 8px 12px;
  border-radius: 14px; cursor: pointer; transition: background .2s ease;
}
.pdb-item + .pdb-item { margin-top: 2px; }
.pdb-item:hover { background: var(--grey-50); }
.pdb-item-active, .pdb-item-active:hover { background: var(--grey-100); }
.pdb-item-block { display: block; padding: 12px 10px 12px 14px; cursor: default; }
.pdb-item-text { flex: 1; min-width: 0; }
.pdb-item-zeile { display: flex; align-items: center; gap: 8px; }
.pdb-item-zeile .pdb-inline-name { flex: 1; min-width: 0; }
.pdb-inline-name {
  display: block; font-size: 0.88rem; font-weight: 600; color: var(--dark); line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pdb-item-unter { display: block; margin-top: 1px; font-size: 0.76rem; color: var(--grey-500); }
.pdb-werte { font-variant-numeric: tabular-nums; }
.pdb-item-actions { display: flex; gap: 4px; opacity: 0; transition: opacity .2s ease; }
.pdb-item:hover .pdb-item-actions, .pdb-item:focus-within .pdb-item-actions { opacity: 1; }
@media (hover: none) { .pdb-item-actions { opacity: 1; } }
.pdb-item .zeichen-knopf { width: 30px; height: 30px; }
.pdb-weiter { flex-shrink: 0; color: var(--grey-300); transition: transform .3s var(--feder), color .2s ease; }
.pdb-item:hover .pdb-weiter { color: var(--grey-500); }
.pdb-item-active .pdb-weiter { color: var(--dark); transform: translateX(2px); }
body.im-app .pdb-feld-klein { width: 100%; padding: 4px 8px; border-radius: 8px; font-size: 0.86rem; }
.pdb-marken { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
/* Leer je Spalte: kleiner Kreis mit Zeichen, ein Satz */
.leer-mitte.pdb-leer { padding: 56px 20px; }
.pdb-leer .leer-mitte-kreis { width: 56px; height: 56px; margin-bottom: 4px; color: var(--app-grau); }
.pdb-leer .leer-mitte-kreis svg { width: 22px; height: 22px; }

/* Produktdatenbank: Fenster «Neues Produkt» und Produkt-Detail. Teile mit Haarstrich, keine grauen Kästen. */
.pdb-fenster-inhalt { display: flex; flex-direction: column; }
.pdb-teil + .pdb-teil, .pdb-abschnitt .pdb-teil { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--grey-100); }
.fenster h3.pdb-teil-titel { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; font-size: 0.95rem; font-weight: 600; }
.pdb-schritt {
  width: 24px; height: 24px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%;
  background: var(--grey-100); color: var(--dark); font-size: 0.74rem; font-weight: 600;
}
.pdb-teil-zusatz { font-size: 0.78rem; font-weight: 400; color: var(--grey-500); }
.pdb-teil .form-group { margin-bottom: 12px; }
.pdb-reihe { display: flex; gap: 10px; }
.pdb-reihe > .form-group { flex: 1; min-width: 0; }
.pdb-reihe > .pdb-reihe-schmal { flex: 0 0 150px; }
.pdb-raster { display: grid; gap: 0 10px; }
.pdb-raster-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pdb-raster-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pdb-raster > .pdb-ablage { margin-bottom: 12px; }
body.im-app .form-group input.fehlt { border-color: var(--ton-rot); background: var(--ton-rot-grund); }
.fenster-knoepfe .btn { min-width: 0; }
.pdb-fenster-inhalt > .fenster-knoepfe { margin-top: 8px; }

.pdb-detail-kopf { display: flex; align-items: center; gap: 14px; }
.pdb-detail-kopf .karten-etikett { margin: 0; }
.pdb-detail-kopf h2 { margin: 2px 0 0; }
.pdb-feld-schmal { max-width: 240px; }
.pdb-feld-mittel { max-width: 400px; margin-bottom: 8px; }
.pdb-abschnitt { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--grey-100); }
.pdb-block-kopf { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pdb-block-kopf h3, .pdb-block-kopf h4 { margin: 0; font-size: 1rem; font-weight: 600; color: var(--dark); }
.pdb-block-kopf h4 { font-size: 0.95rem; }
.pdb-block-kopf > :last-child { margin-left: auto; }
.pdb-block-knopf { margin: 4px 0 4px; }
.pdb-hinweis { margin: 0 0 8px; font-size: 0.84rem; color: var(--grey-500); }
.pdb-fehler { margin: 8px 44px 0 0; font-size: 0.9rem; color: var(--ton-rot); }

/* Ablage für Dateien: gestrichelte Fläche (das Feld liegt unsichtbar darüber: Klick und Ziehen) */
.pdb-ablage {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px;
  border: 1.5px dashed var(--grey-300); border-radius: 14px; text-align: center; cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.pdb-ablage:hover, .pdb-ablage.ueber { border-color: var(--fokus-kante); background: var(--grey-50); }
.pdb-ablage.hat-dokumente { border-style: solid; border-color: var(--grey-200); }
.pdb-ablage > input[type="file"] { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.pdb-ablage-zeichen { color: var(--grey-400); line-height: 0; }
.pdb-ablage-zeichen svg { width: 18px; height: 18px; }
.pdb-ablage-titel { margin: 0; font-size: 0.8rem; font-weight: 600; color: var(--dark); }
.pdb-ablage-hinweis { margin: 0; font-size: 0.74rem; color: var(--grey-500); overflow-wrap: anywhere; }
.pdb-ablage-hinweis:empty { display: none; }
.pdb-dateien { position: relative; z-index: 1; align-self: stretch; display: flex; flex-direction: column; gap: 4px; margin: 4px 0; text-align: left; }
.pdb-datei {
  display: flex; align-items: center; gap: 8px; padding: 3px 3px 3px 10px; border-radius: 10px;
  color: var(--grey-500); font-size: 0.75rem; border-bottom: 1px solid var(--grey-100);
}
.pdb-datei a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dark); text-decoration: underline; text-underline-offset: 2px; }
.pdb-datei .zeichen-knopf { width: 28px; height: 28px; }
.pdb-fonds { margin: 0 -2px 6px; }
.pdb-fonds .app-tabelle :is(th, td) { padding: 8px 10px; }
.pdb-fonds .zeichen-knopf { width: 28px; height: 28px; }

@media (max-width: 900px) {
  /* Eine Spalte aufs Mal: ohne Wahl die Anbieter, mit gewähltem Anbieter seine Produkte, mit gewähltem Produkt seine Portfolios */
  .pdb-spalten { display: block; height: auto; min-height: 0; max-height: none; }
  .pdb-spalte + .pdb-spalte { border-left: none; }
  .pdb-col-body { overflow: visible; }
  .pdb-zurueck { display: inline-grid; }
  .pdb-spalten:not(:has(#pdb-col-providers .pdb-item-active)) :is(#pdb-col-products, #pdb-col-portfolios),
  .pdb-spalten:has(#pdb-col-providers .pdb-item-active) #pdb-col-providers,
  .pdb-spalten:has(#pdb-col-providers .pdb-item-active):not(:has(#pdb-col-products .pdb-item-active)) #pdb-col-portfolios,
  .pdb-spalten:has(#pdb-col-products .pdb-item-active) #pdb-col-products { display: none; }
  .pdb-spalte-kopf { padding-left: 12px; }
}
@media (max-width: 560px) {
  .pdb-suche { flex: 1 1 100%; }
  body.im-app .pdb-suche .feld { width: 100%; }
  .pdb-raster-3, .pdb-raster-2 { grid-template-columns: 1fr; }
  .pdb-reihe { flex-direction: column; gap: 0; }
  .pdb-reihe > .pdb-reihe-schmal { flex-basis: auto; }
}

/* Profil: EINE Karte über die ganze Spalte. Links die Person (Bild, Name, Rolle), rechts die Felder in Abschnitten mit
   Haarstrich. Der grüne Knopf «Speichern» steht im Kopf der Seite. */
.profil-karte { display: grid; grid-template-columns: 280px minmax(0, 1fr); overflow: hidden; }
.profile-header {
  display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 32px 24px; text-align: center;
  border-right: 1px solid var(--grey-100);
}
.profile-avatar-wrapper {
  position: relative; flex-shrink: 0; width: 104px; height: 104px; padding: 0; border: none; border-radius: 50%;
  background: none; cursor: pointer; box-shadow: 0 0 0 3px var(--white), 0 0 0 4px var(--grey-200);
  transition: box-shadow .25s ease, transform .3s var(--feder);
}
.profile-avatar-wrapper:hover { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--grey-300); }
.profile-avatar-wrapper:active { transform: scale(.97); }
.profile-avatar-wrapper .profil-kreis {
  width: 104px; height: 104px; display: grid; place-items: center; border-radius: 50%;
  background-color: var(--app-kreis); background-image: none; background-size: cover; background-position: center;
  color: #fff; font-size: 2rem; font-weight: 600; letter-spacing: -0.02em;
}
.profile-avatar-wrapper .profil-kreis[style*="background-image"] { background-color: var(--grey-100); }
.profile-avatar-wrapper .profil-kreis.laedt { font-size: 0.8rem; }
.avatar-overlay {
  position: absolute; inset: 0; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: rgba(15, 23, 42, .55); color: #fff; font-size: 0.66rem; font-weight: 600; opacity: 0; transition: opacity .2s ease;
}
.avatar-overlay svg { width: 16px; height: 16px; stroke: currentColor; }
.profile-avatar-wrapper:hover .avatar-overlay, .profile-avatar-wrapper:focus-visible .avatar-overlay { opacity: 1; }
.profile-info { min-width: 0; max-width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.profile-info h2 { margin: 0; font-size: 1.1rem; font-weight: 600; letter-spacing: -0.02em; color: var(--dark); overflow-wrap: anywhere; }
.profile-info p { margin: 0; font-size: 0.84rem; color: var(--grey-500); overflow-wrap: anywhere; }
.profile-info .profil-seit { margin-top: 6px; font-size: 0.78rem; color: var(--grey-400); }
.profil-felder { min-width: 0; padding: 4px 28px; }
.profil-abschnitt { padding: 22px 0 10px; }
.profil-abschnitt + .profil-abschnitt { border-top: 1px solid var(--grey-100); }
.profil-abschnitt > .karten-etikett { display: block; margin-bottom: 12px; }
.profil-abschnitt > .profil-marken { margin-bottom: 12px; }
.profil-marken { display: flex; flex-wrap: wrap; gap: 8px; }
.profil-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.profil-breit { grid-column: 1 / -1; }
/* Anlagehorizont: errechnet, darum ein Wert in Feldhöhe, kein Feld und kein Kasten */
.profil-horizont {
  min-height: 40px; display: flex; align-items: center;
  font-size: 0.95rem; font-weight: 600; color: var(--dark); font-variant-numeric: tabular-nums;
}
.profil .wahl-karte { font-weight: 600; }
body.im-app .profil .form-group input:disabled { background: var(--grey-50); color: var(--grey-500); cursor: not-allowed; }
@media (max-width: 900px) {
  .profil-karte { grid-template-columns: 1fr; }
  .profile-header { flex-direction: row; text-align: left; padding: 22px 20px; border-right: none; border-bottom: 1px solid var(--grey-100); }
  .profile-info { align-items: flex-start; }
  .profile-avatar-wrapper, .profile-avatar-wrapper .profil-kreis { width: 76px; height: 76px; }
  .profile-avatar-wrapper .profil-kreis { font-size: 1.5rem; }
  .profil-felder { padding: 0 20px 6px; }
}
@media (max-width: 600px) {
  .profil-raster { grid-template-columns: minmax(0, 1fr); }
}

/* Benachrichtigungen: Seite und Fenster der Glocke tragen dieselbe Zeile (.liste-zeile.notif-zeile: Zeichen im Kreis,
   Titel, Satz, rechts der Schalter). Der Schalter ist der Baustein .schalter. */
.notif-zeile { min-height: 60px; padding-top: 12px; padding-bottom: 12px; }
.notif-zeile .start-zeile-text { flex: 1; }
.notif-zeile .start-zeile-text small { display: block; line-height: 1.45; }
.notif-zeile .schalter input:disabled + span { opacity: .45; cursor: progress; }
/* Im Fenster der Glocke: die Zeile ohne Titel (leer), mittig ruhig */
.notif-list > .notif-zeile { padding: 14px 20px; border-top: 1px solid var(--app-strich); }
.notif-list > .notif-zeile small { font-size: 0.82rem; }

/* ---- ENDE berater-c ---- */

/* · */
/* · · */
/* · · · 3 */

/* ---- BEREICH kunde: Kunden-Startseite, Meine Berater, Onboarding, Portfolio, Wissensbibliothek, Empfehlung ---- */
/* Leerzustand, Marke, Fortschritt, Wahl-Karte und Schalter stehen seit 20.11. im Fundament (APP-BAUSTEINE). */
.leer-mitte h1.start-gruss { font-size: clamp(1.75rem, 1.25rem + 1.7vw, 2.2rem); color: var(--app-schiefer); }

/* -- Kunden-Startseite (#dashboard als Kunde) -- */
.kunde-start-unter { margin: 0; max-width: 460px; font-size: 0.95rem; color: var(--app-tinte-weich); line-height: 1.55; }
.kunde-aktion { width: 150px; }
.kunde-aktion-unter { margin-top: -6px; font-size: 0.74rem; line-height: 1.35; color: var(--app-grau); text-align: center; }
.kunde-karte { gap: 4px; }
.start-karten > .kunde-karte { min-height: 200px; }
.kunde-karte-titel { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; margin-top: 2px; }
.kunde-karte-text { margin-top: 6px; font-size: 0.9rem; line-height: 1.55; color: rgba(255, 255, 255, .74); max-width: 360px; }
.kunde-karte-fuss {
  margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.86rem; font-weight: 600; color: var(--app-tinte-weich);
}
.glas-karte.dunkel .kunde-karte-fuss { color: #fff; }
.kunde-berater-reihe { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.kunde-berater-chip {
  display: inline-flex; align-items: center; gap: 10px; min-width: 0; min-height: 52px; padding: 6px 14px 6px 6px;
  border-radius: var(--radius-full); background: var(--glas-wisch); border: 1px solid var(--glas-kante);
}
.kunde-berater-chip.start-skelett { min-height: 52px; width: 130px; border-radius: var(--radius-full); }
.kunde-berater-name { font-size: 0.88rem; font-weight: 600; color: var(--app-tinte); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) {
  .start-aktionen:has(.kunde-aktion) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kunde-aktion { width: auto; }
}

/* -- Meine Berater (#meine-berater): zwei Berater-Karten, darunter der Chat -- */
.mb-berater-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.card.mb-berater { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.mb-berater.leer { align-items: center; text-align: center; justify-content: center; gap: 8px; padding: 36px 24px; }
.mb-berater.leer .leer-mitte-kreis { width: 64px; height: 64px; margin-bottom: 6px; color: var(--app-grau); }
.mb-berater.leer .leer-mitte-kreis svg { width: 26px; height: 26px; }
.mb-berater h3 { margin: 0; font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; color: var(--dark); }
.mb-berater p { margin: 0; font-size: 0.86rem; line-height: 1.5; color: var(--grey-500); }
.mb-berater-kopf { display: flex; align-items: center; gap: 16px; }
.mb-berater-bild {
  width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background-color: var(--app-kreis); background-size: cover; background-position: center;
  color: #fff; font-size: 1.2rem; font-weight: 600; box-shadow: var(--shadow-sm);
}
.mb-berater-name { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.mb-kontakte { margin: -4px -24px 0; }
.mb-kontakt { padding: 10px 24px; }
.mb-kontakt .start-kuerzel { color: var(--app-zeichen); }
.mb-kontakt small { font-size: 0.72rem; }
.mb-kontakt a { font-size: 0.9rem; font-weight: 600; color: var(--dark); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-kontakt a:hover { color: var(--akzent-schrift); }
.mb-buchen { margin-top: auto; align-self: flex-start; gap: 8px; display: inline-flex; align-items: center; text-decoration: none; }

/* Der Chat selbst ist der gemeinsame Baustein .chat (APP-BAUSTEINE); hier nur der Titel darüber. */
.mb-chat-titel { display: flex; align-items: center; gap: 8px; margin: 8px 0 12px; font-size: 0.95rem; font-weight: 600; color: var(--dark); }
.mb-chat-titel svg { color: var(--akzent); }
@media (max-width: 860px) {
  .mb-berater-raster { grid-template-columns: 1fr; }
}
/* -- Onboarding des Kunden (Vollbild, fünf Schritte) -- */
.ob-outer-container { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 0; }
.ob-rahmen { width: 100%; max-width: 540px; padding: 0 20px; }
.ob-kopf { margin-bottom: 36px; }
.ob-kopf-zeile { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; min-height: 32px; }
.ob-zurueck { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; }
.ob-prozent { margin-left: auto; font-size: 0.8rem; font-weight: 600; color: var(--akzent-schrift); font-variant-numeric: tabular-nums; }
.ob-step { transition: opacity .4s ease; }
.ob-step h2 { margin: 0 0 6px; font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; color: var(--dark); }
.ob-step > p { margin: 0 0 24px; font-size: 0.92rem; color: var(--grey-500); }
.ob-wahl { display: grid; gap: 10px; }
.ob-wahl .start-zeile-text { flex: 1; }
.ob-wahl .start-zeile-text strong { font-size: 0.95rem; }
.ob-anbieter-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wahl-karte.ob-anbieter { flex-direction: column; gap: 6px; padding: 26px 16px 18px; text-align: center; }
.ob-anbieter img { height: 40px; max-width: 100%; object-fit: contain; }
.ob-anbieter-name { font-size: 1.1rem; font-weight: 600; color: var(--dark); }
.ob-anbieter small { font-size: 0.82rem; color: var(--grey-400); }
.ob-anbieter .wahl-haken { margin-top: 8px; }
body.im-app .feld.ob-feld { width: 100%; padding: 17px 20px; border-radius: 16px; font-size: 1.2rem; font-weight: 600; }
body.im-app .feld.ob-feld.fehler { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, .15); }
.ob-horizont {
  margin-top: 12px; padding: 13px 18px; border-radius: 14px; text-align: center; font-size: 0.92rem; font-weight: 600;
  background: rgba(126, 217, 87, .14); color: #3f8f22;
}
body.dark-mode .ob-horizont { color: var(--green-400, #9be27c); }
.ob-betrag { display: flex; align-items: center; gap: 12px; }
.ob-betrag span { font-size: 0.95rem; font-weight: 600; color: var(--grey-400); white-space: nowrap; }
.btn.ob-weiter { margin-top: 22px; width: 100%; padding: 16px; font-size: 1rem; }
.ob-einrichten .leer-mitte-kreis { animation: obPuls 1.5s ease-in-out infinite; }
.fortschritt.ob-lade { width: 200px; margin-top: 18px; }
.fortschritt.ob-lade i { animation: obLaden 2.5s ease forwards; }
@keyframes obPuls { 50% { transform: scale(1.06); } }
@keyframes obLaden { 0% { width: 0; } 40% { width: 60%; } 70% { width: 85%; } 100% { width: 100%; } }
@media (max-width: 480px) { .ob-step h2 { font-size: 1.45rem; } .ob-anbieter-raster { gap: 10px; } }
/* -- Portfolio (#kunde-ansicht): Kopf mit Marken, dann Abschnitte (Titel + Karten): Mantel, Modelle, Ablauf, Deine Zahlen.
   Zwei Ebenen: Seite → Karte. Einzelheiten (Vor-/Nachteile, Kennzahlen einer Position) im Fenster .ka-fenster. -- */
#kundePortfolioView { color: var(--dark); display: grid; gap: 28px; }
#kundePortfolioView > .page-header { margin-bottom: 0; }
.ka-kopf-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 12px; }
.ka-kopf-meta { margin-left: auto; font-size: 0.78rem; font-weight: 500; color: var(--grey-400); }
.ka-abschnitt { display: grid; gap: 12px; min-width: 0; }
.ka-abschnitt-kopf p { margin: 2px 0 0; font-size: 0.85rem; line-height: 1.5; color: var(--grey-500); }
.ka-legal-note { margin: 0; font-size: 0.74rem; line-height: 1.5; color: var(--grey-400); }
.ka-legal-note + .ka-legal-note { margin-top: 2px; }
.ka-empty { margin: 0; padding: 24px 8px; text-align: center; font-size: 0.88rem; color: var(--grey-400); }
.ka-voll { width: 100%; justify-content: center; margin-top: 14px; }
/* Kennzahlen (.angaben.raster) in den Karten der Seite: ein Haarstrich darüber (im Fenster der Einzelheit nicht) */
#kundePortfolioView .angaben.raster { padding-top: 14px; border-top: 1px solid var(--grey-100); }

/* Mantel: ein Raster gleicher Karten, die gewählte trägt die Kante in Tinte */
.ka-mantel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.card.ka-mantel-card {
  display: flex; flex-direction: column; gap: 14px; padding: 22px; cursor: pointer; opacity: .82;
  transition: opacity .2s ease, box-shadow .3s ease, border-color .2s ease, transform .3s var(--feder);
}
.card.ka-mantel-card:hover { opacity: 1; box-shadow: var(--shadow-md); }
.card.ka-mantel-card:active { transform: scale(.99); }
.card.ka-mantel-card.active { opacity: 1; border-color: var(--gewaehlt-kante); box-shadow: var(--shadow-md); }
.ka-mantel-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ka-mantel-logo { width: 40px; height: 40px; flex-shrink: 0; object-fit: contain; border-radius: 12px; background: var(--white); box-shadow: var(--shadow-sm); }
.ka-mantel-title { flex: 1; min-width: 0; margin: 0; font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; color: var(--dark); }
.ka-mantel-desc { margin: -6px 0 0; font-size: 0.85rem; line-height: 1.5; color: var(--grey-500); }
.ka-mantel-knoepfe { margin-top: auto; align-items: center; }
.ka-mantel-knoepfe .zeichen-knopf { margin-left: auto; text-decoration: none; }

/* Eine Karte für Modelle und Ablauf; die Leiste (Reiter links, Schalter rechts) oben */
.card.ka-block { padding: 22px; display: grid; gap: 18px; min-width: 0; }
.ka-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; min-width: 0; }
.schalter.ka-krypto { margin-left: auto; font-size: 0.84rem; font-weight: 500; color: var(--grey-500); }
.ka-modell { display: grid; gap: 14px; min-width: 0; }
.ka-modell + .ka-modell { padding-top: 18px; border-top: 1px solid var(--grey-100); }
.ka-portfolio-title { margin: 0; font-size: 0.95rem; font-weight: 600; color: var(--dark); }
.ka-portfolio-meta { margin: 2px 0 0; font-size: 0.84rem; line-height: 1.5; color: var(--grey-500); }
.ka-modell-inhalt { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: center; }

/* Der Ring */
.ka-chart-visual { position: relative; display: grid; place-items: center; }
.ka-donut-wrap, .ka-donut-svg { position: relative; width: 220px; height: 220px; }
.ka-donut-segment { cursor: pointer; transition: opacity .2s ease; }
.ka-donut-segment.ka-segment-active { filter: brightness(1.06); }
.ka-donut-segment.ka-segment-dim { opacity: .4; }
.ka-donut-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 104px; height: 104px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none;
}
.ka-donut-center-label { font-size: 0.6rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--grey-400); }
.ka-donut-center-value { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; color: var(--dark); font-variant-numeric: tabular-nums; }
.ka-donut-tooltip {
  position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 12px; background: var(--white); box-shadow: var(--shadow-lg); color: var(--dark);
  font-size: 0.76rem; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.ka-donut-tooltip.visible { opacity: 1; }
.ka-tt-dot, .ka-legend-dot, .ka-prognose-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; background: var(--ton, var(--grey-300));
}

/* Die Positionen: Legende und Liste in einem (Punkt, Name, Rendite, Anteil, Zeichen-Knopf) */
.ka-fonds-liste { list-style: none; margin: 0; padding: 0; min-width: 0; }
.ka-fonds-zeile { position: relative; display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 6px 0; }
.ka-fonds-zeile + .ka-fonds-zeile { border-top: 1px solid var(--grey-100); }
.ka-fonds-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ka-fonds-text strong { font-size: 0.88rem; font-weight: 600; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ka-fonds-text small { font-size: 0.76rem; color: var(--grey-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ka-fonds-anteil { font-size: 0.92rem; font-weight: 600; color: var(--dark); font-variant-numeric: tabular-nums; }

/* Das Fenster der Einzelheit (hängt am body, darum ohne #kundePortfolioView) */
.ka-fenster { display: grid; gap: 14px; }
.ka-fenster .fenster-kopf { margin-bottom: 0; }
.ka-fenster-text { margin: 0; font-size: 0.88rem; line-height: 1.6; color: var(--grey-500); }
.ka-fenster .karten-etikett { margin: 4px 0 0; }
.ka-punkte { list-style: none; margin: 0; padding: 0; }
.ka-pro, .ka-con { position: relative; padding: 9px 0 9px 20px; font-size: 0.88rem; color: var(--dark); }
.ka-pro + .ka-pro, .ka-con + .ka-con { border-top: 1px solid var(--grey-100); }
.ka-pro::before, .ka-con::before {
  content: ""; position: absolute; left: 2px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--green-500);
}
.ka-con::before { background: #dc2626; }
body.dark-mode .ka-con::before { background: #ef5b4c; }

/* Ablaufmanagement */
.ka-ablauf-info-text { margin: 0; font-size: 0.95rem; font-weight: 600; color: var(--dark); }
.ka-ablauf-info-sub { margin: -12px 0 0; font-size: 0.85rem; line-height: 1.5; color: var(--grey-500); }
.ka-ablauf-satz { margin: -8px 0 0; font-size: 0.85rem; color: var(--grey-500); }
.ka-ablauf-canvas { display: block; width: 100%; height: auto; max-height: 350px; }

/* Deine Zahlen */
.ka-zahlen-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.card.ka-zahlen-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; }
.ka-zahlen-card-title { margin: 0; font-size: 1rem; font-weight: 600; color: var(--dark); }
.ka-zahlen-card-desc { margin: 0; font-size: 0.82rem; color: var(--grey-500); line-height: 1.5; }
.ka-zahlen-card-hint { margin: 12px 0 0; font-size: 0.76rem; color: var(--grey-400); line-height: 1.5; }
.ka-zahlen-bars { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.ka-zahlen-bar-row { display: flex; flex-direction: column; gap: 5px; }
.ka-zahlen-bar-label { font-size: 0.8rem; font-weight: 600; }
.ka-zahlen-bar-track { height: 30px; border-radius: 10px; background: var(--grey-100); overflow: hidden; }
.ka-zahlen-bar-fill {
  height: 100%; width: 0; min-width: 0; border-radius: 10px; display: flex; align-items: center; justify-content: flex-end; padding-right: 10px;
  font-size: 0.74rem; font-weight: 600; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums;
  transition: width 1.2s var(--feder);
}
.ka-zahlen-bar-fill::after { content: attr(data-value); }
.ka-zahlen-bar-fill.ka-bar-visible { width: var(--bar-pct); }
/* Die Töne der Vergleiche: dein Portfolio Grün, Bank Schiefer, Versicherung Violett (Schrift und Balken) */
.ka-ton-kunde { --ton: var(--green-500); color: #3f8f22; }
.ka-ton-bank { --ton: #94a3b8; color: var(--grey-500); }
.ka-ton-versicherung, .ka-ton-violett { --ton: var(--violett); color: var(--violett); }
body.dark-mode .ka-ton-kunde { color: var(--green-400, #9be27c); }
body.dark-mode :is(.ka-ton-versicherung, .ka-ton-violett) { color: #a99ff7; }
/* Schrift im Balken immer weiss, auch gegen die Schrift-Töne des Dunkels */
body .ka-zahlen-bar-fill:is(.ka-ton-kunde, .ka-ton-bank, .ka-ton-versicherung) { background: var(--ton); color: #fff; }
.ka-zahlen-leer { padding: 20px; text-align: center; color: var(--grey-400); font-size: 0.82rem; }
.ka-zahlen-leer p { margin: 0 0 4px; }
.ka-flip-inner { position: relative; transition: transform .25s ease, opacity .25s ease; }
.ka-flip-inner.ka-shrinking { transform: scale(.94); opacity: 0; }
.ka-flip-back { display: none; }
.ka-prognose-scenarios { display: flex; flex-direction: column; margin-top: 12px; }
.ka-prognose-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--grey-100); }
.ka-prognose-row:last-child { border-bottom: none; }
.ka-prognose-label { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; }
.ka-prognose-dot { width: 8px; height: 8px; }
.ka-prognose-vals { display: flex; flex-direction: column; gap: 1px; text-align: right; }
.ka-prognose-end { font-size: 0.95rem; font-weight: 600; color: var(--dark); font-variant-numeric: tabular-nums; }
.ka-prognose-gewinn { font-size: 0.78rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.ka-prognose-canvas { display: block; width: 100%; height: auto; margin: 12px 0 4px; }
.ka-zins-inputs { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.ka-zins-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ka-zins-label { flex: 1; font-size: 0.82rem; font-weight: 600; color: var(--grey-500); }
.ka-zins-input-wrap {
  display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 12px; background: var(--white); border: 1px solid var(--feld-kante);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ka-zins-input-wrap:focus-within { border-color: var(--fokus-kante); box-shadow: 0 0 0 3px var(--fokus-ring); }
body.im-app .ka-zins-input {
  width: 72px; padding: 0; border: none; background: transparent; box-shadow: none; outline: none; text-align: right; -moz-appearance: textfield;
  font: inherit; font-size: 0.95rem; font-weight: 600; color: var(--dark); font-variant-numeric: tabular-nums;
}
.ka-zins-input::-webkit-outer-spin-button, .ka-zins-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ka-zins-unit { font-size: 0.8rem; font-weight: 600; color: var(--grey-400); white-space: nowrap; }
.ka-zins-divider { height: 1px; margin: 14px 0; background: var(--grey-100); }
.ka-zins-results { display: flex; flex-direction: column; gap: 8px; }
.ka-zins-result-row { display: flex; align-items: center; justify-content: space-between; }
.ka-zins-result-label { font-size: 0.82rem; font-weight: 600; color: var(--grey-500); }
.ka-zins-result-value { font-size: 0.95rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.ka-zins-result-value.gross { font-size: 1.2rem; letter-spacing: -0.02em; color: var(--dark); }

/* Fuss: rechtliche Sätze klein und grau, ein Haarstrich darüber */
.ka-footer { padding-top: 16px; border-top: 1px solid var(--grey-100); font-size: 0.74rem; line-height: 1.6; color: var(--grey-400); }
.ka-footer p { margin: 0 0 4px; }
.ka-footer strong { font-weight: 600; color: var(--grey-500); }
.ka-footer .ka-footer-meta {
  display: flex; justify-content: space-between; margin: 10px 0 0;
  font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
}
@media (max-width: 900px) { .ka-zahlen-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .ka-modell-inhalt { grid-template-columns: 1fr; gap: 8px; justify-items: stretch; }
  .ka-kopf-meta { margin-left: 0; flex-basis: 100%; }
  .schalter.ka-krypto { margin-left: 0; }
}
@media (max-width: 520px) {
  .card.ka-block, .card.ka-mantel-card, .card.ka-zahlen-card { padding: 18px 16px; }
  .ka-mantel-grid { grid-template-columns: 1fr; }
}
/* -- Wissensbibliothek (#wissensbibliothek): Kopf, Suche mit Fortschritt als Zeile, EINE Reiter-Leiste, Kacheln mit höchstens zwei Marken -- */
.wissen-search-wrap { position: relative; margin-bottom: 16px; }
body.im-app .wissen-search {
  width: 100%; padding: 14px 44px 14px 48px; border-radius: 16px; border: 1px solid var(--karten-kante); box-sizing: border-box;
  background: var(--white); color: var(--dark); font: inherit; font-size: 0.95rem; box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
body.im-app .wissen-search::placeholder { color: var(--grey-400); }
body.im-app .wissen-search:focus { outline: none; border-color: var(--fokus-kante); box-shadow: 0 0 0 3px var(--fokus-ring), var(--shadow-sm); }
.wissen-search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--grey-400); pointer-events: none; }
.wissen-search-clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: none; width: 30px; height: 30px; border-radius: 50%;
  border: none; background: var(--grey-100); color: var(--grey-500); cursor: pointer; font-size: 0.8rem;
}
.wissen-search-clear.visible { display: grid; place-items: center; }
.wissen-progress { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; padding: 0 4px; }
.wissen-progress-bar { flex: 1; }
.wissen-progress-text { font-size: 0.82rem; color: var(--grey-500); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wissen-progress-text strong { color: var(--dark); font-weight: 600; }
.wissen-tab small { font-weight: 500; opacity: .6; }
.wissen-treffer { font-size: 0.84rem; font-weight: 600; color: var(--akzent-schrift); white-space: nowrap; }
.wissen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.wissen-card {
  position: relative; overflow: hidden; cursor: pointer; border-radius: 20px; background: var(--white);
  border: 1px solid var(--karten-kante); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--feder), box-shadow .3s ease;
}
.wissen-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.wissen-card.expanded { grid-column: 1 / -1; cursor: default; transform: none; box-shadow: var(--shadow-md); }
.wissen-card-header { display: flex; gap: 14px; align-items: flex-start; padding: 20px 20px 12px; }
.wissen-card-icon {
  width: 44px; height: 44px; min-width: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grey-50); color: var(--app-zeichen); box-shadow: inset 0 0 0 1px var(--karten-kante);
}
.wissen-card.read .wissen-card-icon { background: rgba(126, 217, 87, .14); color: var(--green-600, #5cb83c); box-shadow: none; }
.wissen-card-meta { flex: 1; min-width: 0; }
.wissen-card-meta h3 { margin: 0 0 4px; font-size: 0.98rem; font-weight: 600; line-height: 1.4; color: var(--dark); }
.wissen-card-meta p { margin: 0; font-size: 0.84rem; line-height: 1.45; color: var(--grey-500); }
.wissen-card-badges { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 20px 18px 78px; }
.wissen-stichworte { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.wissen-content { display: none; padding: 0 28px 24px; border-top: 1px solid var(--grey-100); font-size: 0.92rem; line-height: 1.7; color: var(--dark-700); }
.wissen-card.expanded .wissen-content { display: block; padding-top: 20px; }
.wissen-content h3 { margin: 24px 0 10px; font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; color: var(--dark); }
.wissen-content h3:first-child { margin-top: 0; }
.wissen-content h4 { margin: 20px 0 8px; font-size: 0.98rem; font-weight: 600; color: var(--dark); }
.wissen-content p { margin: 0 0 12px; }
.wissen-content ul, .wissen-content ol { margin: 0 0 16px; padding-left: 22px; }
.wissen-content li { margin-bottom: 6px; }
.wissen-content strong { color: var(--dark); font-weight: 600; }
.wissen-info, .wissen-warn { margin: 16px 0; padding: 14px 18px; border-radius: 16px; font-size: 0.88rem; }
.wissen-info { background: rgba(var(--akzent-rgb), .12); }
.wissen-warn { background: rgba(242, 193, 78, .16); }
.wissen-content table { width: 100%; margin: 16px 0; border-collapse: collapse; font-size: 0.85rem; }
.wissen-content th {
  padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--grey-200);
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--grey-400);
}
.wissen-content td { padding: 10px 12px; border-bottom: 1px solid var(--grey-100); vertical-align: top; }
.wissen-content tr:last-child td { border-bottom: none; }
.btn.wissen-collapse-btn { margin-top: 16px; gap: 6px; }
.wissen-empty { padding: 60px 20px; text-align: center; color: var(--grey-400); }
.wissen-empty svg { margin-bottom: 14px; opacity: .5; }
.wissen-empty h3 { margin: 0 0 6px; color: var(--dark); }
.wissen-empty p { margin: 0; }
.wissen-highlight { padding: 0; border-radius: 3px; background: rgba(var(--akzent-rgb), .32); color: inherit; font-weight: inherit; }
@media (max-width: 768px) {
  .wissen-grid { grid-template-columns: 1fr; }
  .wissen-content { padding: 0 16px 16px; font-size: 0.875rem; overflow-x: auto; }
  .wissen-content th, .wissen-content td { padding: 8px; }
  .wissen-card-badges { padding-left: 20px; }
  .wissen-progress { flex-direction: column; align-items: stretch; gap: 8px; }
}
/* -- Empfehlung (#kunde-empfehlung, eingeloggt): Kopf mit der Belohnung, der Tunnel als EINE Karte, darunter «Meine Empfehlungen»
   als ruhige Zeilen. Der Tunnel ist derselbe wie auf der öffentlichen Empfehler-Seite (?empfehler=…): die Grundregeln
   «KUNDE EMPFEHLUNG» weiter unten tragen die öffentliche Seite, hier steht nur, was die App-Fläche (body.im-app) anders trägt. -- */
.ke-seite { display: grid; gap: 24px; }
.ke-seite > .page-header { margin-bottom: 0; }
.ke-seite > .page-header strong { font-weight: 600; color: var(--dark); }
body.im-app .ke-tunnel-wrap {
  margin: 0; padding: 32px 28px; border-radius: 20px;
  background: var(--white); border: 1px solid var(--karten-kante); box-shadow: var(--shadow-sm);
}
body.im-app .ke-tunnel-progress { height: 6px; margin-bottom: 26px; border-radius: 99px; background: var(--grey-100); }
body.im-app .ke-tunnel-bar { background: var(--akzent); border-radius: 99px; transition: width .45s var(--feder); }
.ke-tunnel-zeichen { width: 60px; height: 60px; margin: 0 auto 14px; }
.ke-tunnel-zeichen svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body.im-app .ke-tunnel-header h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; color: var(--dark); }
body.im-app .ke-tunnel-header p, body.im-app .ke-tunnel-label span, body.im-app .ke-link-success p, body.im-app .ke-result-info p { color: var(--grey-500); }
body.im-app .ke-tunnel-header strong, body.im-app .ke-result-info strong { color: var(--dark); font-weight: 600; }
body.im-app .ke-tunnel-label { color: var(--dark-700); }
body.im-app .ke-tunnel-input {
  border: 1px solid var(--feld-kante); border-radius: 16px; background: var(--white); color: var(--dark); font-size: 1.05rem;
}
body.im-app .ke-tunnel-input::placeholder { color: var(--grey-400); }
body.im-app .ke-tunnel-input:focus { border-color: var(--fokus-kante); box-shadow: 0 0 0 3px var(--fokus-ring); }
body.im-app .ke-tunnel-btn {
  border-radius: 14px; font-weight: 600; background: var(--akzent); color: var(--auf-akzent); box-shadow: none;
  transition: transform .3s var(--feder), background-color .2s ease;
}
body.im-app .ke-tunnel-btn:hover { background: var(--akzent-stark); box-shadow: none; }
body.im-app .ke-tunnel-btn:active { transform: scale(.97); }
body.im-app .ke-tunnel-btn-outline { background: var(--white); color: var(--dark); border: 1px solid var(--feld-kante); }
body.im-app .ke-tunnel-btn-outline:hover { background: var(--white); color: var(--dark); border-color: var(--grey-300); box-shadow: var(--shadow-sm); }
body.im-app .ke-tunnel-option {
  border: 1px solid var(--karten-kante); border-radius: 16px; background: var(--white); box-shadow: var(--shadow-xs);
  transition: border-color .2s ease, box-shadow .3s ease, transform .3s var(--feder);
}
body.im-app .ke-tunnel-option:hover { border-color: var(--karten-kante); background: var(--white); box-shadow: var(--shadow-sm); }
body.im-app .ke-tunnel-option:active { transform: scale(.98); }
body.im-app .ke-tunnel-option.selected { border-color: var(--gewaehlt-kante); background: var(--white); box-shadow: var(--shadow-sm); }
body.im-app .ke-tunnel-option svg { color: var(--app-zeichen); }
body.im-app .ke-tunnel-option strong { color: var(--dark); font-weight: 600; }
body.im-app .ke-tunnel-option span { color: var(--grey-500); }
body.im-app .ke-tunnel-back { color: var(--grey-500); font-weight: 600; }
body.im-app .ke-tunnel-back:hover { color: var(--dark); }
body.im-app .ke-link-success h3 { color: var(--dark); }
body.im-app .ke-link-success-icon svg { color: var(--green-500); }
body.im-app .ke-link-box input {
  border: 1px solid var(--feld-kante); border-radius: 14px; background: var(--grey-50); color: var(--dark); font-family: inherit; font-size: 0.86rem;
}
body.im-app .ke-share-btn { border-radius: 14px; font-weight: 600; transition: transform .3s var(--feder), box-shadow .3s ease; }
body.im-app .ke-share-btn:active { transform: scale(.97); }
body.im-app :is(.ke-share-whatsapp, .ke-share-email) { background: var(--white); color: var(--dark); border: 1px solid var(--feld-kante); }
body.im-app :is(.ke-share-whatsapp, .ke-share-email):hover { background: var(--white); border-color: var(--grey-300); box-shadow: var(--shadow-sm); }
body.im-app .ke-result-info { border-radius: 0; background: none; padding: 14px 0 0; border-top: 1px solid var(--grey-100); }
/* Meine Empfehlungen: Zeile = Kürzel, Name + Datum, Spur, eine weisse Handlung + Papierkorb */
.ke-meine { display: grid; gap: 12px; }
.ke-zeile { min-height: 60px; }
.ke-zeile-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ke-zeile-text strong { font-size: 0.9rem; font-weight: 600; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ke-zeile-text small { font-size: 0.76rem; color: var(--grey-400); font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
  body.im-app .ke-tunnel-wrap { padding: 24px 18px; }
  .ke-zeile { flex-wrap: wrap; row-gap: 8px; }
  .ke-zeile .emp-u-spur { order: 3; flex-basis: 100%; padding-left: 46px; }
}
/* -- Videos (#kunde-videos): Abschnittstitel, darunter ein Raster gleicher Karten -- */
.kv-abschnitt { display: grid; gap: 12px; }
.kv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.card.kv-item { overflow: hidden; padding: 0; transition: transform .3s var(--feder), box-shadow .3s ease; }
.card.kv-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.kv-player { position: relative; aspect-ratio: 16 / 9; background: #0f1729; }
.kv-player iframe, .kv-player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.kv-meta { padding: 14px 18px 16px; }
.kv-title { font-size: 0.95rem; font-weight: 600; line-height: 1.4; color: var(--dark); }
.kv-date { margin-top: 4px; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey-400); }
.leer-mitte.kv-empty { margin: 24px auto; }
.leer-mitte.kv-empty h3 { margin: 0; font-size: 0.95rem; font-weight: 600; color: var(--dark); }
@media (max-width: 520px) { .kv-list { grid-template-columns: 1fr; } }
/* ---- ENDE kunde ---- */

/* · */
/* · · */
/* · · · 4 */

/* ---- BEREICH admin-a: Admin-Startseite, Aktionen, Kunden, Benutzer, Einstellungen, System Map ---- */
/* Marke, Kürzel-Bild, Angaben, leiser Löschen-Knopf, Knopf-Zeile und Fenster-Kopf stehen seit 20.11. im Fundament (APP-BAUSTEINE). */
.start-zeile-zeit { font-size: 0.76rem; font-weight: 500; color: var(--app-grau, var(--grey-400)); white-space: nowrap; }
.start-unterzeile { margin: -4px 24px 6px; font-size: 0.84rem; color: var(--grey-500); }
.start-leer.is-fehler { color: #dc2626; }
body.dark-mode .start-leer.is-fehler { color: #ef5b4c; }

/* Admin-Startseite: die helle Karte trägt zwei Zahlen (Benutzer | Leads), die dunkle die Lead-Preise. */
.admin-zahlen { display: grid; grid-template-columns: 1fr 1fr; padding: 0; min-height: 216px; }
.admin-zahl {
  display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 22px 24px;
  border: none; background: none; text-align: left; color: inherit; cursor: pointer; border-radius: 22px;
  transition: background .2s ease;
}
.admin-zahl + .admin-zahl { border-left: 1px solid var(--app-strich); border-radius: 0 22px 22px 0; }
.admin-zahl:hover { background: var(--glas-wisch); }
@media (max-width: 720px) { .start-karten > .admin-zahlen { min-height: 0; } }
.glas-karte.dunkel .admin-auf-dunkel { color: rgba(255, 255, 255, .62); font-size: 0.78rem; }
.start-titel .marke { margin-left: 6px; }
.start-karten > .start-liste:only-child { grid-column: 1 / -1; }
/* Aktionen: je Aktion EINE Zeile. Die Art steckt im Zeichen (leicht getönter Kreis, Wort im title), ein Satz, die Zeit rechts */
.aktion-zeile { min-height: 54px; }
.aktion-art { flex-shrink: 0; }
.aktion-art svg { display: block; }
.aktion-art.gruen { background: var(--ton-gruen-grund); border-color: transparent; color: var(--ton-gruen); }
.aktion-art.violett { background: var(--ton-violett-grund); border-color: transparent; color: var(--ton-violett); }
.aktion-art.rot { background: var(--ton-rot-grund); border-color: transparent; color: var(--ton-rot); }
.aktion-zeile .aktion-text { flex: 1; min-width: 0; }
.aktion-zeile .start-zeile-zeit { flex-shrink: 0; margin-left: 8px; }
.ist-klickbar { cursor: pointer; transition: background .2s ease; }
.ist-klickbar:hover { background: var(--glas-wisch); }
.aktion-text { font-size: 0.88rem; line-height: 1.5; color: var(--app-tinte-weich, var(--grey-600)); }
.aktion-text strong { font-weight: 600; color: var(--app-tinte, var(--dark)); }
.aktion-text em { font-style: normal; font-weight: inherit; color: var(--app-tinte-weich, var(--grey-500)); }
.start-leer strong { color: var(--dark); }

/* Admin-Listen und -Karten (Kunden, Honorarberatung, Benutzer) */
.admin-block { margin-bottom: 24px; }
.admin-zurueck { margin: 0 0 8px -12px; }
.admin-zeile { grid-template-columns: 34px minmax(0, 1fr) auto; }
.admin-zeile.ohne-kreis { grid-template-columns: minmax(0, 1fr); }
.admin-zeile .start-zeile-text strong { white-space: normal; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.start-zeile-text .admin-zeile-angaben { flex-wrap: wrap; gap: 4px 14px; }
.app-tabelle-rahmen .app-tabelle td.admin-tabelle-leer { text-align: center; color: var(--grey-400); padding: 30px; }
.admin-leise { margin: 0 0 12px; font-size: 0.85rem; color: var(--grey-400); }
.admin-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.admin-karte { padding: 22px 24px; }
.admin-karte h3 { margin: 0 0 14px; font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; color: var(--dark); }
.admin-vierer { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.admin-notiz-eingabe { display: flex; gap: 8px; margin-bottom: 14px; }
.admin-notiz-eingabe .feld { flex: 1; min-width: 0; }
.admin-notiz { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--grey-100); }
.admin-notiz-text { margin: 0 0 2px; font-size: 0.9rem; color: var(--dark); line-height: 1.5; }
.admin-notiz .admin-leise { margin: 0; font-size: 0.76rem; }
.admin-einladen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
body.im-app .admin-einladen .feld { width: 240px; max-width: 100%; padding: 8px 12px; font-size: 0.85rem; }
.admin-einladen .btn { white-space: nowrap; }
.feld.feld-ok { border-color: var(--green-400); }
.admin-formular { display: grid; gap: 4px; max-width: 500px; }
.admin-formular select { width: 100%; }
.hb-risiko { margin-bottom: 14px; }
body.im-app .feld.feld-klein { padding: 5px 9px; font-size: 0.85rem; border-radius: 9px; }
.hb-klasse { width: 100%; font-weight: 600; }
.hb-wert { width: 64px; text-align: center; }
.hb-ablauf td { padding: 8px 10px; }
.hb-knoepfe { margin-top: 12px; }
@media (max-width: 768px) {
  .admin-raster, .admin-vierer { grid-template-columns: 1fr; }
  .admin-vierer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-zeile { grid-template-columns: 34px minmax(0, 1fr); }
  .admin-zeile > .knopf-zeile { grid-column: 2; }
  .admin-karte { padding: 18px; }
}
/* Benutzer: EIN Abschnitt über der Tabelle (wer wartet, darunter die neuen Nutzer), eine Leiste (Reiter | Einladung), Abschnitt der Deaktivierten */
.admin-wartet { margin-bottom: 20px; }
.admin-wartet .start-zeilen { padding-bottom: 4px; }
.admin-warte-zeile { min-height: 56px; }
.admin-warte-zeile .start-zeile-text { flex: 1; min-width: 0; }
.admin-neu { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 18px 10px; }
.admin-wartet .start-zeilen + .admin-neu { border-top: 1px solid var(--app-strich); margin: 0 18px; padding: 14px 0 10px; }
.admin-neu-satz { font-size: 0.82rem; color: var(--grey-500); }
.admin-neu-pillen { display: flex; flex-wrap: wrap; gap: 8px; flex-basis: 100%; }
.admin-neu-pille { gap: 8px; padding: 4px 14px 4px 4px; }
.admin-neu-pille .start-kuerzel { width: 26px; height: 26px; font-size: 0.64rem; }
.admin-abschnitt { margin-top: 32px; }
.admin-abschnitt-kopf { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.admin-abschnitt-kopf .admin-leise { margin: 0; }
@media (max-width: 720px) {
  .admin-warte-zeile { flex-wrap: wrap; row-gap: 8px; }
  .admin-warte-zeile > .marke { order: 3; margin-left: 46px; }
  .admin-warte-zeile > .knopf-zeile { order: 4; margin-left: auto; }
}

/* Benutzer-Einzelheit: Kopf mit Bild (ohne Karte), zwei Karten (Profil | Notizen), leise Handlungen am Ende */
.admin-person { display: flex; align-items: center; gap: 16px; }
.admin-person-text { min-width: 0; }
.admin-person-text p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.admin-person-bild {
  position: relative; width: 60px; height: 60px; flex-shrink: 0; overflow: hidden; cursor: pointer; border-radius: 50%;
  display: grid; place-items: center; background-color: var(--app-kreis, #282f47); background-size: cover; background-position: center;
  color: #fff; font-size: 1.2rem; font-weight: 600; box-shadow: 0 0 0 3px var(--white), var(--shadow-sm);
}
.admin-person-bild:hover .avatar-overlay { opacity: 1; }
.admin-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.admin-detail-grid > .section-card { margin-bottom: 0; }
.admin-felder .form-group { margin-bottom: 16px; }
.admin-felder .form-group > label, .admin-gruppe-titel { display: block; margin-bottom: 6px; font-size: 0.82rem; font-weight: 600; color: var(--dark-700); }
.admin-gruppe { margin-bottom: 16px; }
.admin-felder :is(input[type="text"], select) { width: 100%; }
.admin-trenner { padding-top: 16px; border-top: 1px solid var(--grey-100); }
.admin-haekchen { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.admin-wahl { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 500; color: var(--dark); cursor: pointer; }
.admin-wahl input { width: 17px; height: 17px; margin: 0; accent-color: var(--akzent); cursor: pointer; }
.admin-wahl small { font-size: 0.75rem; color: var(--grey-400); }
.admin-speichern { padding-top: 4px; }
.admin-notiz-eingabe textarea { min-height: 64px; resize: vertical; font-family: inherit; }
.admin-notiz-eingabe { align-items: flex-end; }
.admin-ende { justify-content: flex-end; margin-top: 20px; }
@media (max-width: 768px) {
  .admin-detail-grid { grid-template-columns: 1fr; }
}
.fenster-kopf .admin-leise { margin: 4px 0 0; }

/* Einstellungen: je Reiter EINE Karte je Thema; Felder als Zeilen (Etikett links, Feld rechts), EIN Speichern im Fuss der Karte */
.einst-text { margin: 0; padding: 14px 20px 6px; color: var(--grey-500); font-size: 0.86rem; line-height: 1.55; }
.einst-text a { color: var(--ton-gruen); font-weight: 600; }
.einst-formular { padding: 6px 0; }
.einst-feld { display: grid; grid-template-columns: 200px minmax(0, 420px); align-items: center; gap: 16px; padding: 10px 20px; margin: 0; }
.einst-feld + .einst-feld { border-top: 1px solid var(--grey-100); }
.einst-feld > span { font-size: 0.85rem; font-weight: 600; color: var(--dark-700); }
.einst-feld .feld { width: 100%; }
.einst-fusszeile { display: flex; justify-content: flex-end; padding: 12px 20px 16px; border-top: 1px solid var(--grey-100); }
.einst-liste { padding: 4px 0; }
.einst-liste > .admin-leise { padding: 4px 20px; margin: 0; }
.einst-liste .liste-zeile { min-height: 56px; padding-left: 20px; padding-right: 20px; }
.einst-liste .liste-zeile + .liste-zeile::before { left: 20px; right: 20px; }
.einst-liste .liste-zeile .start-zeile-text { flex: 1; min-width: 0; }
.einst-ort { color: var(--grey-400); }
.einst-ort svg { width: 16px; height: 16px; }
.einst-ort.ist-an { color: var(--ton-gruen); }
.einst-klein { font-size: 0.8rem; color: var(--grey-500); }
.einst-neu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 8px; padding: 14px 20px 18px; border-top: 1px solid var(--grey-100); }
.einst-felder .form-group input { width: 100%; }
.einst-slug { display: flex; align-items: center; gap: 8px; }
.einst-slug span { font-family: ui-monospace, monospace; font-size: 0.82rem; color: var(--grey-400); white-space: nowrap; }
.einst-slug input { flex: 1; min-width: 0; font-family: ui-monospace, monospace; }
.einst-berater-wahl { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; }
.einst-berater-wahl .start-kuerzel { width: 28px; height: 28px; font-size: 0.68rem; }
.einst-berater-wahl .start-zeile-text strong { font-size: 0.86rem; }
.einst-fuss { border-top: 1px solid var(--grey-100); padding-top: 18px; }
.einst-fuss #carouselDeleteBtn { margin-right: auto; }
.admin-leise.ist-fehler { color: var(--ton-rot); }
.section-card-header .btn { flex-shrink: 0; }
/* Meta Ads Buchungslinks: eine Zeile je Link (Kreis = nächster Berater, Marken, Kopieren, Bearbeiten) */
.karussell-marken { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
/* Fenster «History»: wer wie viele Leads bekam (Pillen), darunter der Verlauf */
.karussell-verteilung { padding: 0 0 14px; margin-bottom: 4px; border-bottom: 1px solid var(--grey-100); }
.karussell-pillen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.karussell-pille { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: var(--radius-full); background: var(--grey-50); }
.karussell-pille .start-kuerzel { width: 28px; height: 28px; font-size: 0.7rem; }
.karussell-pille strong { display: block; font-size: 0.82rem; font-weight: 600; color: var(--dark); }
.karussell-pille small { display: block; font-size: 0.7rem; font-weight: 600; color: var(--ton-gruen); }
.karussell-verlauf .start-zeile { padding-left: 0; padding-right: 0; }
.karussell-verlauf .start-zeile::before { left: 0; right: 0; }
.karussell-verlauf .start-zeile:first-child::before { display: none; }
@media (max-width: 720px) {
  .einst-feld { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .einst-neu { grid-template-columns: minmax(0, 1fr); }
  .einst-neu .btn { justify-self: start; }
  .einst-slug { flex-wrap: wrap; }
  .einst-liste .liste-zeile { flex-wrap: wrap; row-gap: 8px; padding-left: 16px; padding-right: 16px; }
  .einst-liste .karussell-zeile .start-zeile-text { flex: 1 1 calc(100% - 46px); }
  .karussell-zeile .karussell-marken { margin-left: 46px; justify-content: flex-start; }
  .karussell-zeile .knopf-zeile { margin-left: auto; }
}
/* System Map: helle Tafel mit Glas-Kopf; Module als weisse Karten, die Mitte Navy (stand bis 20.11. als <style> in app.js) */
.sm {
  position: relative; width: 100%; height: calc(100vh - 120px); min-height: 600px; overflow: hidden; border-radius: 22px;
  cursor: grab; -webkit-user-select: none; user-select: none;
  background: var(--glas-dicht, var(--white)); border: 1px solid var(--glas-kante, var(--karten-kante)); box-shadow: var(--glas-schatten, var(--shadow-sm));
}
.sm:active { cursor: grabbing; }
.sm svg { position: absolute; top: 0; left: 0; z-index: 1; transform-origin: 0 0; overflow: visible; }
.sm .sm-cat-node, .sm .sm-item-node { cursor: pointer; }
.sm .sm-root-node { cursor: grab; }
.sm svg text { font-family: 'Poppins', PoppinsErsatz, sans-serif; }
.sm-hud { position: absolute; top: 0; left: 0; right: 0; z-index: 5; padding: 20px 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; pointer-events: none; }
.sm-hud > * { pointer-events: auto; }
.sm-title { margin: 0; font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--dark); }
.sm-subtitle { margin-top: 4px; font-size: 0.8rem; color: var(--grey-500); }
.sm-hud-rechts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sm-stats { display: flex; gap: 8px; }
.sm-st {
  min-width: 74px; padding: 7px 14px; text-align: center; border-radius: 14px;
  background: var(--glas-linse); border: 1px solid var(--glas-kante); box-shadow: var(--shadow-xs);
}
.sm-st b { display: block; font-size: 1.1rem; font-weight: 600; letter-spacing: -0.02em; color: var(--dark); font-variant-numeric: tabular-nums; }
.sm-st small { display: block; margin-top: 1px; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey-400); }
.sm-legend { position: absolute; bottom: 16px; left: 22px; right: 22px; z-index: 5; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 14px; font-size: 0.72rem; color: var(--grey-500); pointer-events: none; }
.sm-legend span { display: flex; align-items: center; gap: 5px; }
.sm-ld { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.sm-ld-fluss { background: var(--violett); }
.sm-dp {
  position: absolute; bottom: 56px; left: 22px; z-index: 10; width: 290px; max-height: 60vh; overflow-y: auto; padding: 18px 20px;
  background: var(--white); color: var(--dark); border: 1px solid var(--karten-kante); border-radius: 20px; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .3s ease, transform .4s var(--feder);
}
.sm-dp.vis { opacity: 1; pointer-events: auto; transform: none; }
.sm-dp h3 { margin: 0 0 2px; padding-right: 36px; font-size: 0.95rem; font-weight: 600; }
.sm-dp-sub { margin-bottom: 10px; font-size: 0.72rem; color: var(--grey-500); }
.sm-dp ul { list-style: none; margin: 0; padding: 0; }
.sm-dp li { display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: 0.8rem; border-top: 1px solid var(--grey-100); }
.sm-dp li { flex-wrap: wrap; }
.sm-dp-zusatz { flex-basis: 100%; padding-left: 15px; font-size: 0.7rem; color: var(--grey-400); }
.sm-dp-close { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; font-size: 1.1rem; }
/* Die Zeichnung: Farben aus den Werten, damit hell und dunkel stimmen */
.sm .sm-bahn { fill: none; stroke: var(--grey-300); }
.sm .sm-fluss { stroke: var(--violett); opacity: .55; }
.sm .sm-fluss-wort { fill: var(--violett); }
.sm .sm-schatten { fill: rgba(15, 23, 42, .06); }
.sm .sm-flaeche { fill: var(--white); }
.sm .sm-wort { fill: var(--dark); }
.sm .sm-wort-leise { fill: var(--grey-500); }
.sm .sm-an { fill: var(--green-500); }
.sm .sm-aus { fill: #f2c14e; }
.sm .sm-fehler { fill: #dc2626; }
.sm .sm-ring { stroke: var(--white); }
.sm .sm-kreis-wort { fill: #fff; }
.sm .sm-wurzel { fill: #1a2540; }
.sm .sm-wurzel-licht { fill: rgba(var(--akzent-rgb), .14); }
.sm .sm-wurzel-ring { fill: none; stroke: rgba(var(--akzent-rgb), .55); }
.sm .sm-wurzel-wort { fill: #fff; }
body.dark-mode .sm .sm-schatten { fill: rgba(0, 0, 0, .3); }
body.dark-mode .sm .sm-wurzel { fill: #26334f; }
/* Das Aufblühen von der Mitte nach aussen */
@keyframes sm-bloom-root { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes sm-bloom-cat { 0% { opacity: 0; transform: translate(calc(var(--sx, 0) * 0.22), calc(var(--sy, 0) * 0.22)); } 100% { opacity: 1; transform: translate(0, 0); } }
@keyframes sm-bloom-item { 0% { opacity: 0; transform: translate(calc(var(--sx, 0) * 0.18), calc(var(--sy, 0) * 0.18)); } 100% { opacity: 1; transform: translate(0, 0); } }
@keyframes sm-line-draw { 0% { stroke-dashoffset: var(--len); opacity: 0; } 30% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
.sm-anim-root { opacity: 0; animation: sm-bloom-root .6s ease-out .1s forwards; }
.sm-anim-cat { opacity: 0; animation: sm-bloom-cat .5s cubic-bezier(.22, 1, .36, 1) forwards; }
.sm-anim-item { opacity: 0; animation: sm-bloom-item .4s cubic-bezier(.22, 1, .36, 1) forwards; }
.sm-anim-edge { opacity: 0; animation: sm-line-draw .7s cubic-bezier(.22, 1, .36, 1) forwards; }
.sm-anim-flow { opacity: 0; animation: sm-line-draw .6s cubic-bezier(.22, 1, .36, 1) forwards; }
@media (max-width: 720px) {
  .sm { height: calc(100vh - 100px); min-height: 520px; }
  .sm-hud { padding: 16px; }
  .sm-title { font-size: 1.45rem; }
  .sm-legend { display: none; }
  .sm-dp { left: 12px; right: 12px; width: auto; bottom: 12px; }
}
/* ---- ENDE admin-a ---- */

/* · */
/* · · */
/* · · · 5 */

/* ---- BEREICH admin-b: Blogbeiträge, Blog-Editor, Honorar-Kunden, Kunden ---- */
/* Marke, Lade-Ring, Fenster (Kopf, Inhalt, Fuss), Feld «mono», Wahl-Zeile, Schalter und Zeichen-Knopf stehen im Fundament (APP-BAUSTEINE). */
.fenster .form-group small, .blog-felder .form-group small { display: block; margin-top: 5px; font-size: 0.75rem; line-height: 1.4; color: var(--grey-500); }
/* Eine Marke, die erst nach dem Laden ihren Stand kennt, bleibt bis dahin weg */
.marke[hidden] { display: none; }


/* Karten der Blog-Seite */
.blog-karte { margin-bottom: 20px; overflow: hidden; }
.blog-karte-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px 24px 8px; }
.blog-karte-titel { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.blog-leer { padding: 26px 20px; text-align: center; font-size: 0.86rem; color: var(--grey-500); }
.blog-leise { font-size: 0.84rem; color: var(--grey-500); }
.blog-leise-link { color: var(--grey-500); }
.blog-leise-link:hover { color: var(--dark); }
.blog-gruen { color: var(--ton-gruen); }
.blog-rot, td.blog-rot { color: var(--ton-rot); }
.blog-unter-titel { margin: 18px 0 8px; }

/* Analytics: unter den Zahlen zwei ruhige Ranglisten */
.blog-spalten { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); border-top: 1px solid var(--grey-100); }
.blog-spalte { padding: 16px 24px 12px; min-width: 0; }
.blog-spalte + .blog-spalte { border-left: 1px solid var(--grey-100); }
.blog-rangliste { list-style: none; margin: 6px 0 0; padding: 0; }
.blog-rangliste li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 8px 0; font-size: 0.85rem; color: var(--dark-700); border-top: 1px solid var(--grey-100);
}
.blog-rangliste li:first-child { border-top: none; }
.blog-rangliste li > :first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blog-rangliste a { color: inherit; text-decoration: none; }
.blog-rangliste a:hover { color: var(--dark); text-decoration: underline; text-underline-offset: 2px; }
.blog-rang-zahl { flex-shrink: 0; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--dark); }

/* Die zwei Generatoren als Zeilen einer Karte */
.blog-generatoren { padding: 4px 0; }
.blog-generator { padding-top: 14px; padding-bottom: 14px; gap: 14px; }
.blog-generator-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.blog-generator-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.blog-generator-name strong { font-size: 0.92rem; font-weight: 600; color: var(--dark); }
.blog-generator-text small { font-size: 0.8rem; line-height: 1.45; color: var(--grey-500); }

/* Protokoll einer laufenden Generierung: je Zeile ein Punkt für die Art */
.blog-protokoll { margin-bottom: 20px; padding: 16px 22px; }
.blog-protokoll[hidden] { display: none; }
.blog-protokoll-rolle { max-height: 320px; overflow-y: auto; padding: 2px 0; }
.blog-protokoll-zeile { display: flex; align-items: baseline; gap: 10px; padding: 3px 0; font-size: 0.82rem; line-height: 1.45; color: var(--dark); }
.blog-protokoll-punkt { flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--grey-300); transform: translateY(-1px); }
.blog-protokoll-zeile.warte .blog-protokoll-punkt { background: #f2c14e; }
.blog-protokoll-zeile.gut .blog-protokoll-punkt { background: var(--green-500); }
.blog-protokoll-zeile.fehler .blog-protokoll-punkt { background: var(--ton-rot); }
.blog-protokoll-zeile:last-child:is(.lauf, .warte) .blog-protokoll-punkt { animation: markePuls 1.4s ease-in-out infinite; }
.blog-protokoll-zeit { flex-shrink: 0; font-size: 0.74rem; color: var(--grey-400); font-variant-numeric: tabular-nums; }
.blog-protokoll-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--grey-100); }

/* Liste aller Artikel: unter der Leiste die Tabelle */
.blog-tabelle { margin-bottom: 20px; }
.blog-tabelle table { table-layout: fixed; }
.blog-tabelle th:nth-child(2) { width: 14%; }
.blog-tabelle th:nth-child(3) { width: 15%; }
.blog-tabelle th:nth-child(4) { width: 19%; }
.blog-tabelle th:nth-child(5) { width: 232px; text-align: right; }
.blog-tabelle td { vertical-align: middle; white-space: nowrap; }
.blog-titel-zelle { overflow: hidden; text-overflow: ellipsis; }
.blog-titel-zelle strong { font-weight: 600; }
.blog-aktionen-zelle .knopf-zeile { justify-content: flex-end; }
.blog-tabelle .leer-mitte { white-space: normal; }


/* Newsletter: drei Zahlen, darunter die Abonnenten */
.blog-newsletter { padding-bottom: 6px; }
.blog-newsletter .blog-unter-titel { padding: 0 24px; margin-top: 20px; }
.blog-newsletter > .blog-leer { border-top: 1px solid var(--grey-100); }
.blog-abo-tabelle td { overflow-wrap: anywhere; }

/* Fenster-Teile dieser Seite */
.blog-felder { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.blog-felder-eins { grid-template-columns: minmax(0, 1fr); }
.blog-abstand { margin-bottom: 18px; }
.blog-fakten {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; margin-bottom: 18px; padding: 14px 18px;
  border-radius: 14px; background: var(--grey-50); font-size: 0.85rem; color: var(--dark);
}
.blog-fakten span { color: var(--grey-500); }
.blog-zeitfenster { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
body.im-app .blog-zeitfenster input[type=number] { width: 90px; }
.blog-zeitfenster > span { color: var(--grey-500); }
.blog-haken { display: flex; align-items: center; gap: 8px; margin: 0 0 0 8px; font-size: 0.85rem; font-weight: 500; cursor: pointer; }
.form-group .blog-haken { display: flex; margin-bottom: 0; }
.blog-haken input { width: 16px; height: 16px; accent-color: var(--akzent); }
.blog-fenster-teil { margin-top: 18px; padding-top: 6px; border-top: 1px solid var(--grey-100); }
.blog-zeitplan { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.blog-zeitplan-zeile { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 10px; border-radius: 14px; background: var(--grey-50); }
body.im-app .blog-zeitplan-zeile .feld { flex: 1; min-width: 0; padding: 6px 10px; font-size: 0.84rem; border-radius: 10px; }

/* Editor-Seite: links Titel und Inhalt (das, was hinausgeht), rechts die Angaben */
.blog-editor-raster { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.blog-editor-haupt, .blog-editor-seite { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.blog-editor-seite { position: sticky; top: calc(var(--topbar-h) + 8px); }
.blog-editor-raster .section-card { margin: 0; }
body.im-app .blog-felder textarea { resize: vertical; font-family: inherit; }
body.im-app .blog-felder .blog-titel-feld { font-size: 1.05rem; font-weight: 600; }
.blog-werkzeuge {
  display: flex; gap: 4px; flex-wrap: wrap; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid var(--grey-100);
}
body.im-app .blog-tb {
  min-width: 34px; height: 34px; padding: 0 11px; border: none; border-radius: 11px;
  background: var(--grey-50); color: var(--dark-700); font-size: 0.82rem; font-weight: 500; cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .3s var(--feder);
}
body.im-app .blog-tb:hover { background: var(--grey-100); color: var(--dark); border-color: transparent; }
body.im-app .blog-tb:active { transform: scale(.94); }
body.im-app .blog-tb em { font-style: italic; }
body.im-app .blog-tb-html { font-family: 'JetBrains Mono', 'Menlo', monospace; font-size: 0.76rem; }
body.im-app .blog-tb-sep { width: 1px; height: 20px; margin: 0 6px; align-self: center; background: var(--grey-200); }
body.im-app .blog-editor-content { color: var(--dark); }
body.im-app .blog-editor-content:focus { background: var(--grey-50); }
body.im-app .blog-editor-html { color: var(--dark); background: var(--grey-50); }
.blog-veroeffentlicht { margin-bottom: 16px; }
.blog-bild-zeile { display: flex; gap: 8px; align-items: center; }
.blog-bild-zeile input[type=text] { flex: 1; min-width: 0; }
.blog-bild-zeile .btn { cursor: pointer; white-space: nowrap; margin: 0; }
.form-group .blog-bild-zeile label.btn { display: inline-flex; margin-bottom: 0; color: var(--dark); }
.blog-bild-vorschau { margin-top: 12px; }
.blog-bild-vorschau img { display: block; width: 100%; max-height: 180px; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow-sm); }

/* Honorar-Kunden und Kunden: die Tafeln der Reiter */
.admin-b-tafel { margin-bottom: 20px; }
.admin-b-tafel .start-unterzeile { margin: -4px 18px 6px; }
.admin-b-zeile-tel { display: inline-flex; align-items: center; gap: 4px; }

/* Schmal und Handy */
@media (max-width: 1100px) {
  .blog-editor-raster { grid-template-columns: minmax(0, 1fr); }
  .blog-editor-seite { position: static; }
}
@media (max-width: 800px) {
  .blog-spalten { grid-template-columns: minmax(0, 1fr); }
  .blog-spalte + .blog-spalte { border-left: none; border-top: 1px solid var(--grey-100); }
}
@media (max-width: 720px) {
  .blog-karte-kopf { padding: 16px 16px 6px; }
  .blog-spalte { padding: 14px 16px; }
  .blog-newsletter .blog-unter-titel { padding: 0 16px; }
  .blog-abo-tabelle { table-layout: fixed; font-size: 0.8rem; }
  body.im-app .blog-abo-tabelle :is(th, td) { padding-left: 10px; padding-right: 10px; white-space: normal; }
  body.im-app .blog-abo-tabelle :is(th, td):first-child { width: 40%; padding-left: 16px; }
  .blog-felder, .blog-fakten { grid-template-columns: 1fr; }
  /* Generator: Text über die ganze Breite, die Knöpfe darunter */
  .blog-generator { flex-wrap: wrap; }
  .blog-generator-text { flex-basis: calc(100% - 58px); }
  .blog-generator > .knopf-zeile { margin-left: 58px; }
  /* Die Artikel-Liste wird zu Karten-Zeilen (.handy-karten im Fundament); die Knöpfe stehen darunter über die Breite */
  .app-tabelle-rahmen .app-tabelle.handy-karten td.blog-aktionen-zelle { width: 100%; margin-top: 4px; }
  .blog-aktionen-zelle .knopf-zeile { justify-content: flex-start; }
  .blog-werkzeuge { padding: 8px 10px; }
}
/* ---- ENDE admin-b ---- */

/* · */
/* · · */
/* · · · 6 */

/* ---- BEREICH admin-c: Portfolios, Verteiler ---- */
/* Töne, Marke, Tabelle, Schalter, Zeichen-Knopf, Hinweis, Leerzustand, Kürzel und Fortschritt stehen seit 20.11. im Fundament (APP-BAUSTEINE). */

/* Die Zahl an einem Reiter */
.reiter-leiste .filter-pill .vt-anzahl { font-weight: 500; font-variant-numeric: tabular-nums; }
.reiter-leiste .filter-pill .vt-anzahl:empty { display: none; }

/* Karten, Köpfe, Texte */
.dm-card.vt-karte, .vt-karte { padding: 24px; }
.vt-karte + .vt-karte { margin-top: 20px; }
.vt-stapel { display: flex; flex-direction: column; gap: 20px; }
.vt-kopf { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 16px; }
.vt-titel { margin: 0; font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; color: var(--dark); }
.vt-titel .vt-anzahl, .vt-anzahl { font-weight: 500; color: var(--grey-400); }
.vt-titel.vt-titel-unten { margin-bottom: 16px; }
.vt-abstand-klein { margin-top: 8px; }
.vt-summe { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 0.8rem; color: var(--grey-500); }
.vt-summe strong { font-size: 0.88rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.vt-summe small { font-size: 0.76rem; }
.vt-summe.ok strong, .vt-summe.ok small { color: var(--ton-gruen); }
.vt-summe.falsch strong, .vt-summe.falsch small { color: var(--ton-rot); }
.vt-untertitel { margin: 0 0 12px; font-size: 0.92rem; font-weight: 600; color: var(--dark); }
.vt-text { margin: 0 0 16px; max-width: 760px; font-size: 0.86rem; line-height: 1.55; color: var(--grey-500); }
.vt-text b, .vt-text strong { color: var(--dark); }
.vt-klein { font-size: 0.8rem; color: var(--grey-500); }
.vt-hinweis { font-size: 0.74rem; line-height: 1.5; color: var(--grey-400); }
.vt-laden { padding: 24px; text-align: center; font-size: 0.88rem; color: var(--grey-500); }
.vt-fehler { color: var(--ton-rot); font-size: 0.84rem; }
.vt-rollbar { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.vt-fuss { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.vt-fuss.mitte { justify-content: center; }
.vt-unten { margin-bottom: 20px; } .vt-unten-klein { margin-bottom: 14px; }
/* Karte mit randloser Tabelle: Kopf mit Abstand, die Tabelle läuft bis an den Rand (.app-tabelle-rahmen) */
.dm-card.vt-karte.vt-randlos, .vt-karte.vt-randlos { padding: 0; overflow: hidden; }
.vt-karte-kopf { padding: 22px 24px 6px; }
.vt-randlos > .leer-mitte { padding: 28px 24px 32px; }
/* Fenster, das Karten eines Reiters trägt (Meta: Konfigurieren): die Karten verlieren dort Fläche und Schatten */
.fenster.breit.vt-fenster-karten { max-width: 920px; }
body.im-app .vt-fenster-karten .dm-card { padding: 0; border: none; box-shadow: none; background: transparent; }
body.im-app .vt-fenster-karten .dm-card + .dm-card { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--grey-100); border-radius: 0; }
body.im-app .feld.vt-betrag { width: 140px; }
.vt-beschreibung { max-width: 340px; }
.vt-trenn { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--grey-100); }

/* Tabellen (.app-tabelle): die Zustände einer Budget-Zeile */
.app-tabelle tr.jetzt td { background: var(--ton-gruen-grund); }
.app-tabelle tr.aus-admin td { background: var(--grey-50); }
.app-tabelle tr.aus-selbst td { background: var(--ton-bernstein-grund); }
.app-tabelle tr.aus-budget td { background: var(--ton-rot-grund); }

/* Quelle eines Leads: Farbpunkt der Quelle (--ton) und ihr Name */
.vt-quelle { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; color: var(--dark-700); white-space: nowrap; }
.vt-quelle::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ton, var(--grey-400)); }

/* Felder */
.vt-feld-etikett { display: block; margin-bottom: 6px; font-size: 0.8rem; font-weight: 600; color: var(--dark-700); }
.vt-raster-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.vt-felder { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; }
.vt-felder > .breit { flex: 1; min-width: 180px; }
.vt-feld-mit { display: flex; align-items: center; gap: 6px; font-size: 0.86rem; font-weight: 600; color: var(--grey-500); }

/* Budget je Berater: der Fortschritt schmal in der Zelle */
.fortschritt.vt-balken { width: 84px; height: 5px; margin: 5px auto 0; }

/* Ein Weg zu einer anderen Ansicht (Budget-Verwaltung) */
.vt-weiter {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 20px; text-align: left; cursor: pointer; font: inherit;
  transition: transform .35s var(--feder), box-shadow .3s ease;
}
.vt-weiter:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.vt-weiter:active { transform: scale(.985); }
.vt-weiter > div { flex: 1; min-width: 0; }
.vt-weiter strong { display: block; font-size: 0.92rem; font-weight: 600; color: var(--dark); }
.vt-weiter small { display: block; font-size: 0.8rem; color: var(--grey-500); }
.vt-weiter > svg { color: var(--grey-400); flex-shrink: 0; }
.vt-kreis {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: var(--grey-100); color: var(--dark-700);
}
.vt-kreis svg { width: 20px; height: 20px; }

/* Buchungen: Karten der Buchungsseiten */
.vt-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 20px; }
.vt-kachel {
  padding: 14px 16px; border-radius: 18px; background: var(--white); border: 1px solid var(--karten-kante); box-shadow: var(--shadow-sm); cursor: pointer;
  transition: border-color .2s ease, box-shadow .3s ease, transform .3s var(--feder);
}
.vt-kachel:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.vt-kachel.gewaehlt { background: var(--white); border-color: var(--gewaehlt-kante); box-shadow: var(--shadow-md); }
.vt-kachel-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.vt-kachel-kopf strong { font-size: 0.9rem; font-weight: 600; color: var(--dark); }
.vt-kachel-fuss { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--grey-500); }
.vt-kachel-fuss span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-puls { display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: var(--green-500); vertical-align: middle; animation: vtPuls 2s infinite; }
@keyframes vtPuls { 50% { opacity: .4; } }

/* Meta Lead-Formulare */
.vt-preis + .app-hinweis { margin-bottom: 16px; }
.vt-preis { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 22px 24px; margin-bottom: 16px; }
.vt-preis-zeile { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.vt-preis-zeile .karten-zahl { color: var(--dark); }
.vt-strich-senkrecht { width: 1px; height: 32px; background: var(--grey-200); }
.vt-hinzu { padding: 20px; margin-bottom: 16px; box-shadow: 0 0 0 2px var(--akzent), var(--shadow-sm); }
.vt-hinzu-titel { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 0.9rem; font-weight: 600; color: var(--dark); }
.vt-hinzu-titel svg { color: var(--akzent); }
.mlf-liste { display: flex; flex-direction: column; gap: 10px; }
.mlf-card { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; transition: box-shadow .3s ease; }
.mlf-card:hover { box-shadow: var(--shadow-md); }
.mlf-zeile { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.mlf-info { flex: 1; min-width: 160px; }
.mlf-name { margin-bottom: 2px; font-size: 0.95rem; font-weight: 600; color: var(--dark); }
.mlf-name .mlf-urname { font-size: 0.86rem; font-weight: 500; color: var(--grey-400); }
.mlf-bezeichnung {
  display: inline-block; min-width: 40px; padding: 0 2px; outline: none; border-bottom: 1px dashed transparent; border-radius: 4px;
  transition: border-color .15s ease, background .15s ease;
}
.mlf-bezeichnung:focus { border-bottom-color: var(--fokus-kante); background: var(--grey-50); }
.mlf-id { font-family: ui-monospace, monospace; font-size: 0.72rem; color: var(--grey-400); }
.mlf-stats { display: flex; gap: 18px; align-items: center; }
.mlf-stat { text-align: center; }
.mlf-stat .karten-zahl { font-size: 1.2rem; color: var(--dark); }
.mlf-stat .karten-etikett { font-size: 0.6rem; }
.mlf-en-wrap { display: flex; align-items: center; gap: 8px; padding: 0 4px; cursor: pointer; user-select: none; }
.mlf-en-label { font-size: 0.72rem; font-weight: 600; letter-spacing: .06em; color: var(--grey-500); }
.mlf-en-wrap.active .mlf-en-label { color: var(--violett); }
.mlf-buchung { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--grey-100); }
.mlf-buchung .marke svg { flex-shrink: 0; }
.mlf-buchung-wort { display: flex; align-items: center; gap: 6px; flex-shrink: 0; font-size: 0.78rem; font-weight: 600; color: var(--grey-500); }
.mlf-buchung .feld { flex: 1; min-width: 240px; }

/* Portfolios (ap-): Zeilen auf der Glas-Liste, Gruppen der Portfolio-Modelle, Ablauf als EINE Karte */
.ap-zeile { min-height: 56px; }
.ap-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ap-text strong { font-size: 0.88rem; font-weight: 600; line-height: 1.35; color: var(--dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-text small { font-size: 0.76rem; line-height: 1.35; color: var(--grey-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-text small a { color: inherit; }
.ap-text .marke { margin-left: 4px; }
.ap-rendite { margin-left: 4px; font-size: 0.78rem; font-weight: 600; color: var(--grey-500); }
.ap-wert { flex-shrink: 0; font-size: 0.78rem; color: var(--grey-500); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ap-zeile .start-kuerzel { flex-shrink: 0; overflow: hidden; }
.ap-zeile .start-kuerzel svg { width: 16px; height: 16px; }
.ap-zeile .start-kuerzel img { width: 100%; height: 100%; object-fit: contain; }
.ap-zeile > .knopf-zeile { flex-shrink: 0; flex-wrap: nowrap; }
.ap-gruppe + .ap-gruppe { margin-top: 18px; }
.ap-videos { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.ap-videos .feld { flex: 2; min-width: 220px; }
.ap-ablauf { padding: 0; overflow: hidden; }
.ap-ablauf-kopf { padding: 14px 20px 6px; }
.ap-ablauf-fuss { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 14px 20px 16px; border-top: 1px solid var(--grey-100); }
.ap-ablauf .leer-mitte { padding: 28px 20px 32px; }
/* Fenster der Portfolios: der Schleier steht nur, solange es offen ist */
.fenster-schleier.ap-fenster:not(.offen) { display: none; }
.ap-form-group { margin-bottom: 14px; }
.ap-form-label { display: block; margin-bottom: 5px; font-size: 0.78rem; font-weight: 600; color: var(--dark-700); }
.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 var(--grey-100); }
.ap-form-section-kopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ap-form-section-title { margin-bottom: 12px; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey-400); }
.ap-form-section-kopf .ap-form-section-title { margin-bottom: 0; }
.ap-checkbox-row { display: flex; gap: 20px; margin-top: 14px; }
.ap-checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--dark-700); cursor: pointer; }
.ap-checkbox-label input { width: 17px; height: 17px; accent-color: var(--akzent); }
.ap-fenster .feld { width: 100%; box-sizing: border-box; }
.ap-fund-card { padding: 12px 0; border-top: 1px solid var(--grey-100); }
.ap-fund-card-row { display: grid; gap: 8px; }
.ap-fund-card-row + .ap-fund-card-row { margin-top: 8px; }
.ap-fund-card-row-2 { grid-template-columns: 1fr 1fr; }
.ap-fund-card-row-5 { grid-template-columns: 1fr 1fr 1fr 1fr auto; align-items: end; }
.ap-fund-card .ap-form-label { font-size: 0.72rem; }
body.im-app .ap-fund-card .feld { padding: 7px 10px; font-size: 0.82rem; }
.ap-ablauf-table td { padding: 6px 6px; }
.ap-ablauf-table th { text-align: center; }
.ap-ablauf-table th:first-child { text-align: left; min-width: 140px; }
body.im-app .ap-ablauf-table .feld { width: 64px; padding: 6px; text-align: center; font-size: 0.82rem; }
body.im-app .ap-ablauf-table td:first-child .feld { width: 100%; box-sizing: border-box; text-align: left; font-weight: 600; }

/* Übersicht: Kopf und Sparten (vu-) */
.vu-leiste-links { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vu-stand { font-size: 0.76rem; color: var(--grey-400); font-variant-numeric: tabular-nums; }
.vu-leiste .vu-werkzeuge { justify-content: flex-end; }
.vu-sparte { margin-bottom: 30px; }
.vu-kopf { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; min-height: 32px; margin-bottom: 10px; }
.vu-titel { margin: 0; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey-400); }
.vu-werkzeuge { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.vu-kampagne-plus {
  max-width: 260px; padding: 6px 12px; border-radius: var(--radius-full); border: 1px solid var(--feld-kante);
  background: var(--white); color: var(--dark); font: inherit; font-size: 0.78rem; font-weight: 600; cursor: pointer;
}
.vu-karte { padding: 6px 20px 4px; }
.vu-diagramm { padding: 14px 0; }
.vu-diagramm + .vu-diagramm { border-top: 1px solid var(--grey-100); }
.vu-dkopf { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 8px; }
.vu-dkopf h3 { margin: 0; font-size: 0.88rem; font-weight: 600; color: var(--dark); }
.vu-dkopf span { font-size: 0.72rem; color: var(--grey-400); }
.vu-leer { display: flex; align-items: center; justify-content: center; height: 100%; text-align: center; font-size: 0.82rem; color: var(--grey-500); }
.vu-flaeche { position: relative; height: 150px; }
.vu-flaeche.hoch { height: 160px; }

/* Übersicht → Kampagnen: die Linie von der Anzeige bis zur Anfrage */
.vt-kampagne { padding: 18px 20px; margin-bottom: 12px; }
.vt-kampagne.leer { box-shadow: none; border: 1.5px dashed var(--grey-300); background: transparent; }
.vt-kampagne-kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.vt-kampagne-name { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; flex: 1; }
.vt-kampagne-name strong { font-size: 0.95rem; font-weight: 600; color: var(--dark); }
.vt-kampagne-name small { font-size: 0.72rem; color: var(--grey-400); }
.vt-trichter { display: block; font-family: inherit; }
.vt-trichter .flaeche { fill: var(--ton-gruen-grund); }
.vt-trichter .linie { fill: none; stroke: var(--green-500); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.vt-trichter .bruecke { stroke: var(--grey-300); stroke-width: 1.5; stroke-dasharray: 4 4; }
.vt-trichter .grund { stroke: var(--grey-200); stroke-width: 1; }
.vt-trichter .punkt { fill: var(--white); stroke: var(--green-500); stroke-width: 2; }
.vt-trichter .t-teil { fill: var(--grey-400); font-size: 9.5px; font-weight: 600; letter-spacing: .5px; }
.vt-trichter .t-wert { fill: var(--dark); font-size: 11px; font-weight: 600; }
.vt-trichter .t-wert.leer { fill: var(--grey-400); font-weight: 400; }
.vt-trichter .t-wort { fill: var(--grey-500); font-size: 10.5px; }
.vt-trichter .t-pz { fill: var(--grey-500); font-size: 10px; font-weight: 600; }
.vt-trichter .t-pz.rot { fill: #fff; font-weight: 600; }
.vt-trichter .t-leise { fill: var(--grey-400); font-size: 8.5px; }
.vt-trichter .rot-grund { fill: var(--ton-rot); }
.vt-trichter .zeiger { fill: transparent; }
.app-hinweis.vt-verlust { margin-top: 10px; font-size: 0.8rem; }
.vt-lesehilfe { margin-top: 4px; }
.vt-lesehilfe .vt-hinweis { margin: 6px 0 0; }
.vt-aufklapp { margin-top: 8px; font-size: 0.78rem; color: var(--grey-500); }
.vt-aufklapp summary { cursor: pointer; font-weight: 600; }
.vt-zahlen { border-collapse: collapse; margin-top: 6px; font-size: 0.78rem; }
.vt-zahlen th { padding: 3px 12px; font-weight: 600; text-align: right; color: var(--grey-400); }
.vt-zahlen td { padding: 3px 12px; text-align: right; color: var(--grey-500); }
.vt-zahlen th:first-child, .vt-zahlen td:first-child { padding-left: 0; text-align: left; color: var(--dark-700); }
.vt-zahlen td.stark { font-weight: 600; color: var(--dark); }
.vt-warum { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--grey-100); }
.vt-warum-titel { margin-bottom: 6px; font-size: 0.86rem; font-weight: 600; color: var(--dark); }
.vt-warum-zeile { padding: 4px 0; border-bottom: 1px solid var(--grey-100); font-size: 0.8rem; line-height: 1.5; color: var(--grey-500); }
.vt-warum-zeile strong { color: var(--dark); }
.vt-warum-zeile .vt-fehler { font-size: 0.8rem; }
.vt-besuch { padding: 5px 0; border-bottom: 1px solid var(--grey-100); }
.vt-besuch summary { cursor: pointer; line-height: 1.5; }
.vt-besuch summary strong { color: var(--dark); }
.vt-besuch .marke { margin: 2px 4px 0 0; }
.vt-spur { list-style: none; margin: 6px 0 4px; padding: 0 0 0 12px; border-left: 2px solid var(--grey-200); }
.vt-spur li { padding: 1px 0; }
.vt-spur li span { display: inline-block; min-width: 4.2em; color: var(--grey-400); }

/* Übersicht → Werbung: Kosten und Qualität je Anzeige (ar-); die Zahlen sind .zahlen-spalten.klein, die dritte Spalte trägt das Ziel */
.ar-karte { padding: 18px 20px; }
.ar-quelle { margin: 0 0 10px; font-size: 0.74rem; color: var(--grey-400); }
.zahlen-spalten.ar-kacheln { grid-template-columns: 1fr 1fr 1.7fr; margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--grey-100); }
.ar-ziel { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin-top: 6px; font-size: 0.78rem; font-weight: 600; color: var(--grey-500); }
.ar-ziel input {
  width: 66px; min-width: 0; box-sizing: border-box; padding: 5px 8px; border: 1px solid var(--feld-kante); border-radius: 10px;
  background: var(--white); color: var(--dark); font: inherit; font-size: 0.9rem; font-weight: 600;
}
.ar-ziel input.kurz { width: 52px; }
.ar-ziel input:focus { outline: none; border-color: var(--fokus-kante); box-shadow: 0 0 0 3px var(--fokus-ring); }
.ar-teil { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; margin: 4px 0 6px; }
.ar-teil h3 { margin: 0; font-size: 0.88rem; font-weight: 600; color: var(--dark); }
.ar-teil span { font-size: 0.72rem; color: var(--grey-400); }
.ar-teil a, .ar-fuss a { color: var(--ton-gruen); font-weight: 600; }
.ar-trends { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-bottom: 4px; font-size: 0.74rem; color: var(--grey-500); }
.ar-trends .hoch { color: var(--ton-rot); } .ar-trends .tief { color: var(--ton-gruen); }
.ar-verlauf { position: relative; height: 135px; margin-bottom: 12px; }
.ar-zeile { display: grid; grid-template-columns: 22px minmax(170px, 1.5fr) 110px minmax(190px, 1.8fr) 62px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--grey-100); }
.ar-blass { opacity: .6; }
.ar-rang { text-align: right; font-size: 0.8rem; font-weight: 600; color: var(--grey-400); font-variant-numeric: tabular-nums; }
.ar-name { min-width: 0; }
.ar-titel { font-size: 0.85rem; font-weight: 600; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-wahl { cursor: pointer; transition: color .2s ease; }
.ar-wahl:hover { color: var(--ton-gruen); }
.ar-unter { margin-top: 1px; font-size: 0.7rem; color: var(--grey-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-unter .warn { color: var(--ton-bernstein); }
.ar-status { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--grey-300); vertical-align: 1px; }
.ar-status.an { background: var(--green-500); }
.ar-kurs { display: flex; align-items: center; gap: 6px; }
.ar-kurs-k { stroke: var(--dark); }
.ar-bild { position: relative; height: 12px; border-radius: 999px; background: var(--grey-100); }
.ar-spur { position: absolute; top: 4px; height: 4px; border-radius: 999px; opacity: .55; background: var(--ton); }
.ar-soll { position: absolute; top: -3px; bottom: -3px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--dark); }
.ar-punkt { position: absolute; top: 1px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--ton); box-shadow: 0 0 0 2px var(--white); }
.ar-bild-text { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0 8px; margin-top: 4px; font-size: 0.7rem; color: var(--grey-500); }
.ar-bild-text b { color: var(--dark); }
.ar-bild-text b.ton { color: var(--ton); }
.ar-leer { font-size: 0.74rem; color: var(--grey-400); }
.ar-leer.block { padding: 8px 0; }
.ar-abw { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.ar-q {
  display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 22px; border-radius: 999px;
  border: 2px solid var(--ton, var(--grey-300)); color: var(--ton, var(--grey-400)); font-size: 0.76rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.ar-q-leer { --ton: var(--grey-300); }
.ar-x { padding: 0 2px; border: none; background: none; color: var(--grey-300); font-size: 1.05rem; line-height: 1; cursor: pointer; transition: color .2s ease; }
.ar-x:hover { color: var(--ton-rot); }
.ar-unten { display: flex; flex-wrap: wrap; gap: 0 18px; }
.ar-unten details[open] { flex-basis: 100%; }
.ar-auf summary { padding: 8px 0 2px; font-size: 0.76rem; font-weight: 600; color: var(--grey-500); cursor: pointer; }
.ar-fuss { font-size: 0.72rem; line-height: 1.6; color: var(--grey-400); }
/* Die Farbe gegen das Ziel und für die Qualität (gut | knapp | teuer | zu teuer | offen) */
.ton-gut { --ton: var(--green-500); } .ton-knapp { --ton: #9ac46b; } .ton-teuer { --ton: #f2c14e; }
.ton-schlecht { --ton: var(--ton-rot); } .ton-mitte { --ton: var(--grey-500); } .ton-offen { --ton: var(--grey-400); }


@media (max-width: 900px) {
  .ar-zeile { grid-template-columns: 22px 1fr 62px; }
  .ar-kurs, .ar-mitte { grid-column: 2 / -1; }
  .ar-abw { grid-column: 3; grid-row: 1; }
}
@media (max-width: 768px) {
  .vt-raster-2, .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; }
  .vt-preis { grid-template-columns: 1fr; }
  .vt-karte-kopf { padding: 18px 18px 6px; }
  .vu-leiste .vu-werkzeuge, .vu-leiste .vu-werkzeuge > div > .vu-werkzeuge { justify-content: flex-start; }
  .vt-karte, .dm-card.vt-karte { padding: 18px; }
  .vt-kampagne { padding: 16px; }
}
@media (max-width: 560px) {
  /* Handy: der Rang-Kreis fällt weg, Name und Unterzeile dürfen umbrechen */
  .ap-zeile .sortier-knoepfe + .start-kuerzel { display: none; }
  .ap-text strong, .ap-text small { white-space: normal; }
}
@media (max-width: 640px) {
  .zahlen-spalten.ar-kacheln > div:last-child { grid-column: 1 / -1; }
  .mlf-stats { gap: 14px; }
}
/* ---- ENDE admin-c ---- */

/* · */
/* · · */
/* · · · 7 */

/* ---- BEREICH kundenseiten: Terminbuchung, Präsentation, Unterschrift ---- */
/* Die drei Seiten, die der Kunde eines Beraters sieht. Sie tragen <body class="im-app kundenseite"> fest: die Bausteine kommen aus
   APP-BAUSTEINE, Werte, Glas und Farbgrund aus dem APP-RAHMEN (dort steht body.kundenseite neben .app-shell), die Farbe aus den
   MARKEN-WERTEN. Immer hell. Hier steht nur, was mindestens zwei der drei Seiten brauchen; Seiteneigenes bleibt im <style> der Seite. */

/* Die Seite: Grund und Tinte der App; die Schrift ist die von body (Poppins). Seitlich «clip» statt «hidden»: «hidden» macht den
   <body> zu einer eigenen Rollfläche, die nie rollt, und der Kopf bliebe beim Rollen nicht oben stehen (gemessen 390 px: Kopf bei
   -886 statt 14 nach 900 px Rollen). «!important», weil «GLOBAL OVERFLOW-SAFETY» (bis 900 px) «hidden !important» auf html, body setzt;
   «clip» lässt ebenso nichts seitlich überlaufen. */
body.kundenseite { min-height: 100vh; background: var(--app-grund); color: var(--app-tinte); overflow-x: clip !important; }

/* Der Kopf: schwebendes Glas (das Rezept im APP-RAHMEN), links das Logo als Link, rechts höchstens ein leiser Weg (.btn.btn-ghost).
   Das Logo steht genau so da, damit eine Marke es an EINER Stelle ersetzen kann:
   <header class="kunden-kopf"><a href="…"><span class="logo">Vemo<span class="dot">.</span></span></a> …</header> */
.kunden-kopf {
  position: sticky; top: var(--rahmen-rand); z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: calc(100% - 2 * var(--rahmen-rand)); max-width: 960px; min-height: 56px;
  margin: var(--rahmen-rand) auto 0; padding: 6px 8px 6px 22px; border-radius: var(--radius-full);
}

/* Erfolg (Termin gebucht, Vertrag unterschrieben): der Mitte-Zustand der Bausteine (.leer-mitte: Zeichen, Titel, Satz, Knopf)
   mit dem Haken im grünen Kreis. Grün heisst hier «erledigt» (--ton-gruen) und hängt nie an der Marke.
   <div class="leer-mitte erfolg"><span class="leer-mitte-kreis">Haken (ZEICHEN.haken)</span><h1>…</h1><p>…</p><div class="knopf-zeile">…</div></div> */
.erfolg .leer-mitte-kreis {
  display: grid; place-items: center; border-radius: 50%;
  background: var(--ton-gruen-grund); color: var(--ton-gruen);
  animation: startAuf .5s var(--feder) both;
}
.erfolg .leer-mitte-kreis svg { stroke-width: 2.5; }
.erfolg .knopf-zeile { justify-content: center; }
/* ---- ENDE kundenseiten ---- */

/* · */
/* · · */
/* · · · 8 */

/* ============================================================
   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; }

/* ============================================================
   STAT CARDS
   ============================================================ */
.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.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); }

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

/* -- Hero / Greeting -- */

/* -- Inline Stats -- */

/* -- Subscription Banners -- */

/* -- Section Headers -- */

/* -- Continue Learning Cards (large visual) -- */

/* -- All Courses Grid -- */

/* -- Course Card Hover Overlay -- */

/* -- Dashboard Empty State -- */

/* -- Referral Page -- */

/* -- Dashboard Upgrade Hero -- */

/* -- Dashboard Social Proof -- */

/* -- Dashboard Premium Teaser -- */

/* -- Dashboard Responsive -- */

/* ============================================================
   COURSE CARDS
   ============================================================ */

/* ============================================================
   COURSE DETAIL
   ============================================================ */

/* -- Course Detail Premium Upsell Box -- */

/* Lessons list */

/* ============================================================
   VIDEO PLAYER
   ============================================================ */

/* ============================================================
   CREATOR DASHBOARD
   ============================================================ */

/* Upload modal */
.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);
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.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-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;
}

/* ============================================================
   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
   ============================================================ */

/* ============================================================
   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)
   ============================================================ */

/* ============================================================
   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); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  /* Admin-Tabellen mobile */
          
  /* Zertifikate mobile */

  /* Kursprogress mobile */

  /* Admin-Noten mobile */

  /* Admin Zertifikats-Items mobile */

  /* Admin Lesezeichen mobile */

  /* 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 */

  /* Einstellungen mobile */
}

@media (max-width: 480px) {

  /* Admin-Tabellen extra small */
  }

/* ============================================================
   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-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:where(:not(.im-app)) .btn-ghost { color: #94a3b8; }
body.dark-mode:where(:not(.im-app)) .btn-ghost:hover { color: #7ed957; }

.btn-secondary {
  background: var(--grey-100);
  color: var(--dark);
  font-weight: 600;
}
.btn-secondary:hover {
  background: var(--grey-200);
}
body.dark-mode:where(:not(.im-app)) .btn-secondary {
  background: #334155;
  color: #e2e8f0;
}
body.dark-mode:where(:not(.im-app)) .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-text p {
  font-size: 1.1rem;
  color: var(--grey-500);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

.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 */

/* 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-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 --- */

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

/* Lock Badge on Course Cards */

/* --- Curriculum / Learning Paths --- */

/* --- How It Works --- */

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

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

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

.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%;
}

/* --- 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 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-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-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-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 --- */

/* --- Hero USPs --- */

/* --- 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) --- */

/* --- Hero Dashboard Mockup --- */
.lp-mockup-dashboard {
  display: flex;
  width: 100%;
  height: 100%;
  font-family: 'Poppins', PoppinsErsatz, 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-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;
}

/* 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 --- */

/* --- 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-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-bad ul li svg {
  color: #f87171;
}
.lp-compare-good ul li svg {
  color: var(--green-400);
}

/* --- Finanz-Tunnel Section --- */

/* Tunnel Quiz Container */

/* Progress Bar */

/* Tunnel Steps */
@keyframes tunnelFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tunnel Options */

/* 2-col option cards (gender/goal) */
/* Grid option cards (age) */

/* Tunnel Result */

/* Breakdown Bars */

/* Recommendation Card */

/* Personalized Power-Moves */

/* Tunnel Actions */

/* Tunnel Fun Comparisons */

/* Compact Breakdown Chips */

/* Fun grid — exactly 3 columns */

/* Tunnel Packages Section — uses .pkg-selection class, rendered outside lp-section-inner */

/* Tunnel Footnote */

/* --- Goal CTA Section --- */

/* --- Was du lernst / Vorteile pro Bereich --- */

/* --- Video Section --- */

/* --- Advantages Section --- */

/* --- 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 top;
  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 top;
  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;
}
/* Gleich lange Teamkarten (Cyrill 16.11.2026: «bei mir ist der ganze Text ausgeschrieben, bei den anderen nicht»):
   im Raster der Startseite, von Grow und der App hoechstens 5 Zeilen; der ganze Text steht im Profil-Fenster, das
   «Mehr erfahren →» oeffnet. :where() haelt die Gewichtung bei .lp-team-desc, darum gewinnen die Handy-Regeln weiter
   unten (2 Zeilen). Die Ueber-uns-Seite hat kein lp-team-grid und bleibt, wie Diego sie geliefert hat. */
:where(.lp-team-grid) .lp-team-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  overflow: hidden;
}
.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);
}

/* --- 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 top;
}
.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-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);
}

/* --- 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);
}

/* --- 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-team-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

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

  /* 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 .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-section-header h2 { font-size: 1.5rem; }

  /* Courses */
  .lp-courses { padding: 60px 0; }

  /* Module */

  /* Comparison */
  .lp-compare { padding: 60px 0; }

  /* Finanz-Tunnel */

  /* Goal CTA */

  /* Was du lernst */

  /* Video */

  /* Advantages */

  /* 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; }

  /* 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;
  }

  /* How it works */

  /* 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 */

  /* 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-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; }
}

/* ============================================================
   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 --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Sales Hero (above pricing) --- */

/* --- Billing Toggle --- */

/* --- Pricing Grid (3 cols) --- */

/* Highlighted (middle) card */

/* VIP button */

/* Feature list */

/* Booking link under CTA */

/* --- Social proof bar --- */

/* --- Comparison Table --- */

/* --- Beratung / Consultation CTA --- */

/* --- Calendly Modal --- */

/* --- 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) --- */

/* Override Calendly popup z-index to be above floating button */

/* --- Sales Guarantee --- */

/* --- Sales FAQ --- */

/* --- Sales Final CTA --- */

/* --- Sales back link --- */

/* 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 Keypad */

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

/* 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 */

/* Pricing recommended badge */

/* Hide default ::before when custom badge is used */

/* Sales Guarantee */

/* Sales FAQ */

/* Sales Final CTA */

/* Sales back link */

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

@media (max-width: 768px) {
  .public-header { padding: 12px 20px; }
  .auth-modal { padding: 28px 20px; max-width: 100%; }
  .sales-content { padding: 32px 20px 60px; }
}

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

/* ═══════════════════════════════════════════════════
   POST-REGISTRATION TUNNEL (Fullscreen Quiz)
   ═══════════════════════════════════════════════════ */
/* Reuse existing tunnel-option styles from landing page */

/* ═══════════════════════════════════════════════════
   PACKAGE SELECTION PAGE
   ═══════════════════════════════════════════════════ */
/* Skip / X button */

/* Result hero */

/* Breakdown bars */

/* Fun comparisons */

/* Power moves */

/* Investment vs. Gewinn Grafik */

/* Compact Hero Section (top of package selection) */

/* Value Proposition Strip */

/* Compact Analysis Section (collapsible, below packages) */

/* Analysis Breakdown (compact horizontal) */

/* Analysis Power Moves (compact grid) */

/* Analysis Fun Comparisons (compact chips) */

/* Analysis ROI (compact inline) */

/* Package heading */

/* 3-col package grid */

/* Personalized goals in cards */

/* Crossed-out features for Starter card */

/* Responsive Package Grid — match .pricing-grid breakpoints */

/* ============================================================
   LIVE CALLS
   ============================================================ */
/* Badges */
@keyframes lc-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
/* Admin live call table */
/* Edit form inline */
/* Responsive */

/* ============================================================
   CALL ROOM PAGE
   ============================================================ */

@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 */

/* Waiting state */

/* Chat Sidebar */

/* ============================================================
   CLICKABLE CARDS + DASHBOARD WIDGETS
   ============================================================ */

/* Dashboard Live Call Widget */

/* Call Detail Modal */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */

/* ============================================================
   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);

  --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; }

/* Cards & content */

/* Tables */
body.dark-mode:where(:not(.im-app)) .card { background: #1e293b; border-color: #334155; }


/* Dashboard teaser dark mode */

/* Referral dark mode */

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

/* Dashboard subscription banners dark mode */

/* Search overlay */

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

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

/* Progress bars */

/* Tabs */

/* Lesson viewer */

/* Dashboard sections */

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

/* Profile page */

/* Referral box */

/* Settings page */

/* Modals */
body.dark-mode .modal-content { background: #1e293b; border-color: #334155; }

/* Charts & finance */

/* 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 */

/* Upgrade banner */

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

/* --- Floating Feedback Button --- */

/* --- Feedback Modal --- */

/* Priority Buttons */

/* Dark mode priority buttons */

/* --- Feedback Page (list) --- */
/* Small action buttons for feedback cards */

/* --- Feedback Detail --- */

/* Chat / comments */

/* User reply section */
/* User chat bubble */

/* Feedback notification dot */
@keyframes dotPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* WhatsApp-Style Chat Bubbles */
.chat-msg { display: flex; margin-bottom: 8px; }
.chat-bubble { max-width: 75%; padding: 10px 14px; border-radius: 12px; position: relative; }

/* Fixli = links, blau */

/* Admin/Vemo Team = links, grün */

/* User = rechts, grau */

/* Dark mode chat */

/* Confirm resolution */
/* Done tickets toggle */

/* Admin feedback controls */

/* Stats row for admin feedback overview */

/* Dark mode feedback */

/* ============================================================
   FIX #2: Dark mode — more contrast for dashboard elements
   ============================================================ */
body.dark-mode:where(:not(.im-app)) .card { background: #1e293b; border-color: #475569; box-shadow: 0 1px 4px rgba(0,0,0,.2); }

/* ============================================================
   FIX #6 + #12: Better mobile responsive for dashboard
   ============================================================ */
@media (max-width: 768px) {
  .stat-card { padding: 16px; }
  .stat-card h3 { font-size: 1.3rem; }
  .stat-card p { font-size: 0.75rem; }
  .page-header h1 { font-size: 1.3rem; }
  .section-card { overflow-x: auto; }
}
@media (max-width: 480px) {
  .stat-card { padding: 14px; }
  .stat-card h3 { font-size: 1.1rem; }
  .page-header h1 { font-size: 1.1rem; }
}

/* ============================================================
   FIX #7: Mobile menu z-index, page width containment
   ============================================================ */
html, body { max-width: 100vw; overflow-x: hidden; }
@media (max-width: 768px) {
  .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
   ============================================================ */

/* ============================================================
   FIX #14: Button hover color on "Kostenlos beraten lassen"
   ============================================================ */

/* ============================================================
   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-compare { background: #0f172a; }
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-faq-item { background: #1e293b; border-color: #334155; }
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 p { color: #94a3b8; }
body.dark-mode .lp-blog-meta { color: #94a3b8; }
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-booking { background: #0f172a; }
body.dark-mode .lp-booking h2 { color: #f1f5f9; }
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 .auth-modal { background: #1e293b; border-color: #475569; }
body.dark-mode .auth-modal-tabs { background: #0f172a; }
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; }

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

/* Selection header */

/* Savings hero */

/* Skip button */

/* Result hero */

/* Breakdown */

/* Fun comparisons */

/* Power moves */

/* Investment graphic */

/* Hero ROI badge */

/* Value strip text */

/* Analysis header & toggle */

/* Analysis breakdown labels/values */

/* Analysis power moves */

/* Analysis fun chips */

/* Analysis ROI section */

/* Heading section & recommendation */

/* Goal items inside pricing cards */

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

/* ============================================================
   FIX #3: Video speed control dark mode
   ============================================================ */

/* ============================================================
   FIX #5: Dark mode — dashboard greeting text
   ============================================================ */

/* ============================================================
   FIX #6: Dark mode — course card badges, labels, filter pills
   ============================================================ */

/* ============================================================
   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-faq { background: #1e293b; }
body.dark-mode .lp-section-tag { color: var(--green-400); }

/* ============================================================
   FIX: Comprehensive mobile optimization — customer area
   Ticket #ff9fe091
   ============================================================ */
@media (max-width: 768px) {
  /* Course detail page */

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

  /* Lesson items */

  /* Referral page */

  /* Continue learning cards */

  /* 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; }
}

@media (max-width: 480px) {
  /* Even smaller screens */
  .section-card-body { padding: 10px 12px; }
  .section-card-header { padding: 10px 12px; }
}

/* ============================================================
   TICKET #978a0cba: Dark mode search bar gray background fix
   ============================================================ */

/* ============================================================
   TICKET #6157e7f0: Dark mode admin course edit styling
   ============================================================ */
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
   ============================================================ */

/* ============================================================
   TICKET #572cf0e8: Dark mode back button / btn-ghost fix
   ============================================================ */
body.dark-mode:where(:not(.im-app)) .btn-ghost { background: transparent; color: #e2e8f0; }
body.dark-mode:where(:not(.im-app)) .btn-ghost:hover { background: #334155; color: #f1f5f9; }

/* ============================================================
   TICKET #10f52d67 + #dafaa2a7: Player sidebar full height
   ============================================================ */

/* ============================================================
   TICKET #24e7d6bb: Remove black border on video
   ============================================================ */

/* (Moved to consolidated section below) */

/* ============================================================
   TICKET #3201ee9e: Bookmark active state
   ============================================================ */

/* ============================================================
   TICKET #6157e7f0: Dark mode lesson edit modal
   ============================================================ */


/* ============================================================
   TICKET #dc3b791b: Speed dropdown arrow more spacing
   ============================================================ */

/* ============================================================
   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); }

/* Dark mode cost compare */
body.dark-mode .lp-cost-compare { background: #0f172a; }

@media (max-width: 768px) {
  .lp-cost-compare { padding: 48px 0; }
}

/* 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 --- */

/* --- 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;
}

/* --- 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::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 --- */

@media (max-width: 768px) {
  .lp-hero-bg-effects { display: block; opacity: 1; }
}

/* --- Partner / Trust Logos Bar --- */

/* ============================================================
   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 --- */
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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

/* --- Floating shapes for section backgrounds --- */
@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) --- */

/* --- Glassmorphism Cards (universal) --- */

/* --- Gradient Text Utility --- */

/* --- 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 --- */

/* --- Testimonial: animated quote mark --- */

/* --- 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-good li {
  transform: translateX(20px);
}

/* --- 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 --- */
@keyframes statShimmer {
  0% { left: -100%; }
  50%, 100% { left: 150%; }
}

/* --- Cost Compare: animated saving highlight --- */
@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-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', PoppinsErsatz, 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;
}
/* Links in einer Antwort sind als Links erkennbar (09.10.2026, Bahn web-angebote-trennung). Ohne diese Regel erbt ein Link
   Farbe und Strich des Fliesstexts: gemessen auf /grow, /grow/investieren, /grow/vision (je 7 Links auf Team-Profile) und
   auf der Startseite (Links auf die Datenschutzerklärungen und «So verdient Vemo Geld»). Wand angebote-menue-im-browser, L1. */
.lp-faq-item p a { color: #15803d; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
body.dark-mode .lp-faq-item p a { color: #7ed957; }
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-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 */

/* 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-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); }
}

/* 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 */

@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 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); }
}

/* 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 */

.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 */
/* Stagger the SVG draw-in per li */

/* Row hover: highlight corresponding row in other column */

/* Bad column: red glow on header hover */

/* Good column: green glow on header hover */

/* Compare column hover lift */
.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) */

/* Mobile: hide VS badge, adjust columns */
@media (max-width: 768px) {
  .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);
}

/* --- 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 --- */

/* --- 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 */

/* Glassmorphism testimonial cards */

/* 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;
  }
}

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

/* Animated gradient mesh overlay */

@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); }
}

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

/* Booking list items stagger slide-in */

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

/* Trust items fade-in stagger */

/* Calendly card entrance */

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

/* Image zoom on hover */

/* Category badge slides in from left */

/* Staggered reveal on scroll */

/* Shimmer sweep on image hover */

/* Enhanced hover glow */

/* Reading time animated clock icon */
@keyframes clockTick {
  to { transform: translateY(-70%) rotate(360deg); }
}

/* Dark mode blog */

/* ============================================================
   REDUCED MOTION — respect user preference
   ============================================================ */

/* ============================================================
   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-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 --- */

/* --- 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; }
}


/* ============================================================
   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 === */

  /* === 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-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; }

  /* === 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; }

  /* === TESTIMONIALS === */
  .lp-testimonials { padding: 44px 0 !important; }
  .lp-testimonial-stars { font-size: 0.92rem !important; margin-bottom: 10px !important; }
  .lp-testimonial-avatar { width: 34px !important; height: 34px !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-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; }

  /* === MISC === */
  .lp-cost-compare { padding: 44px 0 !important; }
  .lp-md-stats-row { gap: 8px !important; }
}

/* ---- 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 {
    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;
  }
}

/* --- 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;
  }
}

/* --- 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;
  }
}

/* --- 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-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;
  }
}

/* --- 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 --- */

/* --- BETA GATE MOBILE --- */

/* 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; }

  /* --- 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 --- */

  /* --- 9. CALENDLY: Kleiner --- */
  .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;
  }

  /* --- 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;
  }
}


/* ============================================================
   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-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; }

/* 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', PoppinsErsatz, 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; }

/* 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-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); }

/* 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-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 */

/* Testimonials */

/* 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-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 */

/* 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-section { padding: 40px 20px; }
  .emp-cta-card { padding: 28px 20px; }
  .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; }

/* 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 */

/* Testimonials */

/* 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 */

/* Footer */
body.dark-mode .emp-footer { color: #64748b; border-top-color: #334155; }



/* ============================================================
   COMMUNITY — Reddit-Style Forum
   ============================================================ */

/* Layout */

/* Header */

/* Sort Tabs */

/* Tag Filter Chips */

/* New Post Button & Form */

/* Avatar */

/* 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 */

/* Post Content */

/* Post Footer */

/* Admin Actions */

/* Comments Section */

/* Comment Input */

/* Sidebar Cards */

/* Empty State */

/* Activation Screen */
.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;
}

/* Responsive */
@media (max-width:768px) {
  .community-post { flex-direction:column; }
  .community-activation-card { padding:24px 16px; }
}


/* Emoji Picker */


/* --- Chat (Seite «Chat»): Emoji-Auswahl und Eingabe --- */
.dm-emoji-picker {
  background: #ffffff;
  border: 1px solid #e5e7eb;
}
.dm-chat-form {
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
}

/* --- Dark mode overrides for chat/card elements --- */
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;
}

/* ============================================================
   DARK MODE — Finanz-Tunnel (Quiz + Results)
   ============================================================ */

/* ============================================================
   DARK MODE — Post-Registration Tunnel
   ============================================================ */

/* ============================================================
   DARK MODE — Modals, Overlays, Dropdowns, Floating UI
   Comprehensive fix for ALL floating UI elements
   ============================================================ */

/* ---- Upload Modal (generic .modal) ---- */
body.dark-mode .modal { background: #1e293b; box-shadow: 0 40px 80px rgba(0,0,0,0.5); }

/* ---- Upload zone inside modals ---- */

/* ---- Search overlay items ---- */

/* ---- 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-section h4 { color: #e2e8f0; }
body.dark-mode .team-modal-section p { color: #94a3b8; }

/* ---- 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 ---- */

/* ---- Feedback modal overlay ---- */

/* ---- Feedback add comment textarea ---- */

/* ---- Feedback comment details ---- */

/* ---- Feedback detail header & page header ---- */

/* ---- Status dots (ensure visibility) ---- */
body.dark-mode .status-dot.inactive { background: #64748b; }


/* ---- Community section ---- */
body.dark-mode .community-post { background: #1e293b; border-color: #334155; }
body.dark-mode .community-post:hover { border-color: #475569; }
body.dark-mode .community-activation-card { background: #1e293b; border-color: #334155; box-shadow: 0 8px 40px rgba(0,0,0,0.3); }

/* ---- Community emoji picker ---- */

/* ---- Floating beratung button dark mode refinement ---- */
body.dark-mode .floating-beratung-btn svg { color: #fff; }


/* ---- 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:where(:not(.im-app)) .modal input:focus,
body.dark-mode:where(:not(.im-app)) .modal textarea:focus,
body.dark-mode:where(:not(.im-app)) .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 ---- */

/* ---- Dashboard: Continue Learning Cards ---- */

/* ---- Dashboard: Course Card Detail Text ---- */

/* ---- Dashboard: Live Call Cards ---- */

/* ---- Live Calls: LC Cards ---- */

/* ---- Call Room ---- */

/* ---- Call Detail Modal ---- */

/* ---- Player Controls & Tabs ---- */


/* ---- Creator Course Cards ---- */

/* ---- 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) ---- */


/* ---- Feedback Badges ---- */


/* ---- Stat Card text colors ---- */

/* ---- Course Card detail text ---- */

/* ---- Course Detail Hero ---- */

/* ---- Lesson Items ---- */

/* ============================================================
   DARK MODE UTILITY CLASSES (inline-style replacements)
   ============================================================ */

/* --- Base (light) defaults --- */
.dm-text-primary { color: #1a1a1a; }
.dm-card { background: #fff; border: 1px solid #f0f0f0; }
.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-modal { background: #1e293b; }
body.dark-mode .dm-surface-alt { background: #0f172a; }
body.dark-mode .dm-input { background: #0f172a; color: #e2e8f0; }


/* --- Provider selection card --- */

/* --- Admin KPI icon containers --- */

/* ============================================================
   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-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-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:where(:not(.im-app)) input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
body.dark-mode:where(:not(.im-app)) textarea,
body.dark-mode:where(:not(.im-app)) select {
  background-color: #0f172a !important;
  color: #e2e8f0 !important;
  border-color: #334155 !important;
}

body.dark-mode:where(:not(.im-app)) input::placeholder,
body.dark-mode:where(:not(.im-app)) textarea::placeholder {
  color: #64748b !important;
}

/* --- Table overrides --- */
body.dark-mode:where(:not(.im-app)) table {
  border-color: #334155 !important;
}

body.dark-mode:where(:not(.im-app)) th {
  background: #0f172a !important;
  color: #e2e8f0 !important;
  border-color: #334155 !important;
}

body.dark-mode:where(:not(.im-app)) td {
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}

body.dark-mode:where(:not(.im-app)) 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 --- */


/* --- 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-cta-card {
  background: #1e293b !important;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3) !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;
}

/* Video call button in chat */
body.dark-mode button[onclick*="startChatVideoCall"]:not(.chat-anruf-knopf) {
  background: rgba(126,217,87,0.1) !important;
  border-color: #334155 !important;
  color: #7ed957 !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 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 — Empfehlungsprogramm (Referral) cards — nur die öffentliche Empfehler-Seite;
   eingeloggt trägt der Bereich «kunde» oben die App-Werte
   ============================================================ */
body.dark-mode:where(:not(.im-app)) .ke-tunnel-wrap {
  background: #1e293b !important;
  border-color: #334155 !important;
}
body.dark-mode:where(:not(.im-app)) .ke-tunnel-header h2 {
  color: #e2e8f0 !important;
}
body.dark-mode:where(:not(.im-app)) .ke-tunnel-header p {
  color: #94a3b8 !important;
}
body.dark-mode:where(:not(.im-app)) .ke-tunnel-label {
  color: #e2e8f0 !important;
}
body.dark-mode:where(:not(.im-app)) .ke-tunnel-label span {
  color: #64748b !important;
}
body.dark-mode:where(:not(.im-app)) .ke-tunnel-input {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
body.dark-mode:where(:not(.im-app)) .ke-tunnel-input:focus {
  border-color: #7ed957 !important;
}
body.dark-mode:where(:not(.im-app)) .ke-tunnel-option {
  background: #0f172a !important;
  border-color: #334155 !important;
}
body.dark-mode:where(:not(.im-app)) .ke-tunnel-option:hover {
  border-color: #7ed957 !important;
  background: rgba(126,217,87,0.05) !important;
}
body.dark-mode:where(:not(.im-app)) .ke-tunnel-option.selected {
  background: rgba(126,217,87,0.08) !important;
  border-color: #7ed957 !important;
}
body.dark-mode:where(:not(.im-app)) .ke-tunnel-option strong {
  color: #e2e8f0 !important;
}
body.dark-mode:where(:not(.im-app)) .ke-tunnel-option span {
  color: #94a3b8 !important;
}
body.dark-mode:where(:not(.im-app)) .ke-tunnel-progress {
  background: #334155 !important;
}
body.dark-mode:where(:not(.im-app)) .ke-tunnel-btn-outline {
  border-color: #334155 !important;
  color: #94a3b8 !important;
}
body.dark-mode:where(:not(.im-app)) .ke-tunnel-btn-outline:hover {
  border-color: #7ed957 !important;
  color: #7ed957 !important;
}
body.dark-mode:where(:not(.im-app)) .ke-tunnel-back {
  color: #94a3b8 !important;
}
body.dark-mode:where(:not(.im-app)) .ke-tunnel-back:hover {
  color: #e2e8f0 !important;
}
body.dark-mode:where(:not(.im-app)) .ke-link-success h3 {
  color: #e2e8f0 !important;
}
body.dark-mode:where(:not(.im-app)) .ke-link-success p {
  color: #94a3b8 !important;
}
body.dark-mode:where(:not(.im-app)) .ke-link-box input {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
body.dark-mode:where(:not(.im-app)) .ke-share-email {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
body.dark-mode:where(:not(.im-app)) .ke-result-info {
  background: rgba(126,217,87,0.06) !important;
}
body.dark-mode:where(:not(.im-app)) .ke-result-info p {
  color: #94a3b8 !important;
}
body.dark-mode:where(:not(.im-app)) .ke-history h3 {
  color: #e2e8f0 !important;
}
body.dark-mode:where(:not(.im-app)) .ke-history-card {
  background: #1e293b !important;
  border-color: #334155 !important;
}
body.dark-mode:where(:not(.im-app)) .ke-history-card:hover {
  border-color: #7ed957 !important;
}
body.dark-mode:where(:not(.im-app)) .ke-history-name-row strong {
  color: #e2e8f0 !important;
}
body.dark-mode:where(:not(.im-app)) .ke-history-date {
  color: #64748b !important;
}
body.dark-mode:where(:not(.im-app)) .ke-history-actions {
  border-top-color: #334155 !important;
}
body.dark-mode:where(:not(.im-app)) .ke-copy-link-btn {
  border-color: #334155 !important;
  color: #94a3b8 !important;
}
body.dark-mode:where(:not(.im-app)) .ke-copy-link-btn:hover {
  border-color: #7ed957 !important;
  color: #7ed957 !important;
}
body.dark-mode:where(:not(.im-app)) .ke-pipe-dot {
  background: #334155 !important;
  color: #64748b !important;
}
body.dark-mode:where(:not(.im-app)) .ke-pipe-step.done .ke-pipe-dot {
  background: #7ed957 !important;
  color: #fff !important;
}
body.dark-mode:where(:not(.im-app)) .ke-pipe-step span {
  color: #94a3b8 !important;
}
body.dark-mode:where(:not(.im-app)) .ke-pipe-step.done span {
  color: #7ed957 !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:where(:not(.im-app)) .btn-primary,
body.dark-mode:where(:not(.im-app)) .btn-primary:hover,
body.dark-mode:where(:not(.im-app)) .btn-primary:active,
body.dark-mode:where(:not(.im-app)) .btn-primary:focus {
  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 #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-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;
}

/* --- 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 */
  }
}


@media (max-width: 480px) {
  .btn { padding: 12px 18px; }
}

@media (max-width: 360px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.2rem; }
}


/* ═══════════════════════════════════════════════════════
   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: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%; }
}
@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)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 768px) {
  /* Auto-fill Grids werden einspaltig */
  .page-content div[style*="minmax(380px"] {
    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:500px"],
  .page-content [style*="width:600px"] {
    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 { max-width: 100% !important; max-height: calc(100vh - 80px) !important; border-radius: 14px !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: 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(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)
   - die Farbe der Marke --akzent (für Vemo #7ed957; eine Firma färbt über die MARKEN-WERTE um, 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: var(--akzent) !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;
}
