/*
Theme Name: Xina
Theme URI: https://all-in-app.de/
Author: synerGY
Author URI: https://synergy-agentur.de
Description: Xina – Internationale B2B-Matching-Plattform. Minimalistisches Design (v1.2): zwei Farben – Graphit & Teal – klare Typografie, viel Weißraum.
Version: 1.2
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.0
License: Proprietary
License URI: https://synergy-agentur.de/lizenz
Text Domain: all-in-app
Tags: business, one-page, custom-colors, custom-menu
*/

/* =====================================================
   Xina v1.2 · Minimalistisches Design
   Zwei Farben: Graphit #1d1d1f + Teal #00A080
   ===================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:root {
  /* ===== XINA Pro-Tool Theme (Industrial Precision) – Light ===== */
  /* Markenfarbe: Mint, leuchtet wie ein LED-Indikator */
  --ink: #12151A;            /* Graphit – Text, primäre Flächen */
  --accent: #00A98A;         /* Mint – Marke, Links, aktive Zustände */
  --accent-strong: #008E73;

  /* Neutrale Töne – kühles technisches Grau statt reinem Weiß */
  --bg: #F1F3F6;             /* kühler, heller Canvas-Hintergrund */
  --card: #FFFFFF;           /* Cards heben sich per feinem 1px-Rahmen ab */
  --border: #E2E6EB;         /* präzise 1px-Trennlinie */
  --border-strong: #CBD2DA;
  --fill: #ECEFF3;
  --fill-hover: #E1E6EC;
  --text: #1B1E23;
  --muted: #667080;
  --heading: #374151;        /* dunkles mattes Grau für Card-Titel */
  --accent-tint: rgba(0, 169, 138, 0.12);

  /* Kräftige Vollton-Fläche (Buttons/Badges) + Text darauf – im Dark Mode invertiert */
  --solid: #12151A;
  --on-solid: #FFFFFF;

  /* Funktionsfarben (Status & Karten-Datenpunkte) */
  --danger: #E5484D;
  --warn: #C77416;
  --ok: #00A98A;
  --supplier: #E5484D;
  --customer: #23A567;
  --me: #2F6FED;

  /* Legacy-Aliasse (werden von Bestandscode referenziert) */
  --cyan: var(--accent);
  --cyan-strong: var(--accent-strong);
  --primary: var(--accent);
  --primary-2: var(--accent-strong);

  /* Daten-Font: technische Monospace (Zahlen, Scores, Ticker, Budgets) */
  --mono: 'Share Tech Mono', ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, monospace;

  /* Scharfe, präzise Kanten – keine ausladenden Radien mehr */
  --radius: 3px;
  --radius-s: 2px;
  /* Winziger Drop-Shadow statt Rand (High-Contrast Tech) */
  --shadow-card: 0 1px 3px rgba(17, 22, 29, 0.06);
  --shadow-pop: 0 6px 22px rgba(17, 22, 29, 0.14);
  /* LED-Glow für Indikatoren/aktive Zustände */
  --glow: 0 0 0 1px var(--accent-tint), 0 0 8px rgba(0, 169, 138, 0.55);
}

/* ============== Dunkelmodus (Umschalter oben rechts) ============== */
/* ===== Dark: Gunmetal / Canvas – kein reines Schwarz, Mint leuchtet ===== */
:root[data-theme="dark"] {
  --bg: #181A1F;             /* Gunmetal-Hintergrund */
  --card: #21252B;           /* Canvas-Card */
  --border: #2E333B;         /* subtile kühle Trennlinie (1px) */
  --border-strong: #3B424C;
  --fill: #262B32;
  --fill-hover: #2F353E;
  --text: #E7EAEE;
  --ink: #F2F4F7;
  --muted: #8A93A0;
  --heading: #C7CED6;
  --accent: #10D6A6;         /* leuchtendes Mint (LED) auf dunklem Gunmetal */
  --accent-strong: #0BB98F;
  --accent-tint: rgba(16, 214, 166, 0.16);
  --ok: #10D6A6;
  --customer: #2BC57E;
  --danger: #F0575C;
  --warn: #E0912E;
  --solid: #E7EAEE;
  --on-solid: #12151A;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-pop: 0 8px 26px rgba(0, 0, 0, 0.55);
  --glow: 0 0 0 1px var(--accent-tint), 0 0 9px rgba(16, 214, 166, 0.6);
}
:root[data-theme="dark"] .topbar { background: rgba(33, 37, 43, 0.85); }
:root[data-theme="dark"] .msg.them .msg-attach { background: rgba(255, 255, 255, 0.12); }
:root[data-theme="dark"] .maplibregl-ctrl.maplibregl-ctrl-group { background: rgba(26, 26, 28, 0.92); }
:root[data-theme="dark"] .maplibregl-ctrl-attrib { background: rgba(10, 10, 11, 0.7) !important; }
:root[data-theme="dark"] .maplibregl-ctrl-attrib, :root[data-theme="dark"] .maplibregl-ctrl-attrib a { color: #9a9aa0 !important; }
/* Scrollbars im Dunkelmodus sichtbar machen (global, alle scrollbaren Bereiche) */
:root[data-theme="dark"] { scrollbar-color: rgba(255, 255, 255, 0.28) transparent; scrollbar-width: thin; }
:root[data-theme="dark"] ::-webkit-scrollbar { width: 10px; height: 10px; }
:root[data-theme="dark"] ::-webkit-scrollbar-track { background: transparent; }
:root[data-theme="dark"] ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.24); border-radius: 5px; }
:root[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.4); }

/* ============== XINA Pro-Tool Skin: Präzision statt Weichzeichner ============== */
/* Schalter/Slider bleiben rund (Funktion), alles andere ist scharf */
.theme-track, .theme-knob, .toggle-switch, .toggle-slider { border-radius: 999px; }
.theme-knob { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
/* Status-/Fortschrittsbalken: dünn & präzise */
.match-bar, .match-fill, .bar, .bar-fill { border-radius: 1px; }

/* Weiche/ausladende Drop-Shadows raus – Trennung über 1px-Borders */
.card-frame { box-shadow: 0 2px 12px rgba(17, 22, 29, 0.12); }
.tab.active { box-shadow: none; }
.bottom-nav { box-shadow: none; }
.card:hover { transform: none; box-shadow: none; border-color: var(--accent); }
.cal-event:hover { box-shadow: none; border-color: var(--accent); }

/* Daten-Font: technische Monospace für alle Zahlen/Kennwerte */
.stat b, .money-card b, .mini-metrics b, .pipe-row b, .match-head b, .trust-grid b,
.abo-row b, .loc-metrics b, .loc-coord, .match-pill, .mini-rating, .score,
.card-trust, .cal-dnum, .cal-hour-label, .cal-ev-time, #hud-clock, #hud-response,
#pay-total, #clock-selected, .feed-react span, .plan-price {
  font-family: var(--mono); font-feature-settings: "tnum" 1; letter-spacing: 0.01em;
}

/* Akzente leuchten wie LED-Indikatoren an einer Maschine */
.dot-live { box-shadow: var(--glow); }
.hud-chip.verified { box-shadow: inset 0 0 0 1px var(--accent-tint); }
.match-pill.high { box-shadow: 0 0 7px rgba(0, 169, 138, 0.45); }
:root[data-theme="dark"] .match-pill.high { box-shadow: 0 0 9px rgba(16, 214, 166, 0.55); }
.nav-item.active svg { filter: drop-shadow(0 0 5px var(--accent-tint)); }
.btn-primary:hover, .qa-btn.primary:hover { box-shadow: 0 0 10px rgba(0, 169, 138, 0.30); }

/* ============== Hell/Dunkel-Umschalter (Swipe) ============== */
.theme-switch { background: transparent; border: none; padding: 0; cursor: pointer; display: inline-flex; align-items: center; flex-shrink: 0; }
.theme-track {
  position: relative; width: 48px; height: 26px; border-radius: 3px;
  background: var(--fill); border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: space-between;
  padding: 0 6px; transition: background .2s, border-color .2s;
}
.theme-ico { font-size: 0.72rem; line-height: 1; z-index: 1; color: var(--muted); transition: opacity .2s; }
.theme-knob {
  position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--card); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform .24s cubic-bezier(.4, .2, .2, 1);
}
.theme-switch[data-theme="dark"] .theme-track { background: var(--accent-tint); border-color: transparent; }
.theme-switch[data-theme="dark"] .theme-knob { transform: translateX(22px); }
.theme-switch[data-theme="light"] .theme-ico.moon { opacity: 0.4; }
.theme-switch[data-theme="dark"] .theme-ico.sun { opacity: 0.4; }
/* Auf der dunklen Bühne (Landing/Checkout) den Schalter hell halten;
   im Hellmodus greift der normale (dunkle) Schalter-Stil. */
:root[data-theme="dark"] .landing .theme-track { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); }
:root[data-theme="dark"] .landing .theme-ico { color: rgba(255, 255, 255, 0.75); }
:root[data-theme="dark"] .landing .theme-knob { background: #f5f5f7; }

/* ============== Alte HUD-Dekoration: deaktiviert ============== */
.scan-lines, .grid-overlay, .corner, .holo-base, .scan-ring, .frame-tag { display: none !important; }

/* ============== Mikro-Typografie: Labels ============== */
/* Die (bereits großgeschriebenen) Labels werden als dezente
   grau-gesperrte Overlines gesetzt – ruhig statt technisch. */

/* ============== LANDING (Globus als Bühne, hell/dunkel) ============== */
/* Hell = heller Verlauf, Dunkel = dunkler Verlauf. So wird beim Umschalten
   nicht nur die Login-Karte, sondern die ganze Bühne hell bzw. dunkel. */
.landing {
  background: radial-gradient(ellipse at 50% 0%, #eaf1ee 0%, #cfdad6 78%);
  overflow-y: auto;
}
:root[data-theme="dark"] .landing {
  background: radial-gradient(ellipse at 50% 0%, #10201b 0%, #070d0b 75%);
}
#globe-bg { position: fixed; inset: 0; z-index: 0; }
/* Im Hellmodus den dunklen Globus dezent einblenden, damit er die helle
   Bühne nicht erschlägt. */
.landing #globe-bg { opacity: 0.5; transition: opacity .4s; }
:root[data-theme="dark"] .landing #globe-bg { opacity: 1; }

.landing-overlay {
  position: relative; z-index: 2;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 48px 32px 32px;
  gap: 32px;
}

.landing-header { text-align: center; }
.hud-top { display: flex; gap: 10px; justify-content: center; margin-bottom: 26px; }
.hud-tag {
  font-size: 0.72rem; font-weight: 500; color: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.16); padding: 5px 12px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.05); letter-spacing: 0.04em;
}
/* Bühne hell: dunkle Tags; Bühne dunkel: helle Tags */
.landing .hud-tag { color: var(--text); border-color: var(--border); background: var(--fill); }
:root[data-theme="dark"] .landing .hud-tag { color: rgba(255, 255, 255, 0.66); border-color: rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.05); }
:root[data-theme="dark"] .landing .logo, :root[data-theme="dark"] .landing .logo span { color: #fff; }
.logo {
  font-weight: 700; font-size: 2.4rem; letter-spacing: -0.02em; color: var(--ink);
}
.logo span { color: var(--accent); }
.tagline { color: var(--muted); margin-top: 8px; font-size: 0.98rem; font-weight: 400; }
:root[data-theme="dark"] .tagline { color: rgba(255, 255, 255, 0.6); }

/* Auth-Karte: klare weiße Karte über dem Globus */
.auth-card { width: 100%; max-width: 440px; }
.card-frame {
  position: relative;
  background: var(--card);
  border: none;
  border-radius: 4px;
  padding: 34px 32px 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}
.tabs { display: flex; gap: 4px; margin-bottom: 24px; background: var(--fill); border-radius: 3px; padding: 3px; }
.tab {
  flex: 1; background: transparent; color: var(--muted); border: none;
  padding: 9px 12px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
  border-radius: 3px; transition: all .2s;
}
.tab.active { color: var(--ink); background: var(--card); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }
.auth-form { display: none; flex-direction: column; gap: 10px; }
.auth-form.active { display: flex; }
.auth-form h2 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 2px; }
.auth-form .muted, .muted { color: var(--muted); font-size: 0.8rem; margin-bottom: 8px; line-height: 1.5; }
.auth-form label {
  font-size: 0.66rem; font-weight: 600; color: var(--muted);
  letter-spacing: 0.08em; margin-top: 6px;
}
.auth-form input, .auth-form textarea {
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text); padding: 11px 14px; border-radius: var(--radius-s);
  font-size: 0.92rem;
  transition: border-color .2s, box-shadow .2s;
}
.auth-form input:focus, .auth-form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.auth-form textarea { min-height: 60px; resize: vertical; }
.auth-form .row { display: flex; gap: 10px; }
.auth-form .row > * { flex: 1; }

/* Passwort-Auge */
.pw-field { position: relative; display: flex; flex-direction: column; }
.pw-field input { width: 100%; padding-right: 46px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: transparent; border: none; padding: 8px;
  color: var(--muted); line-height: 0;
  display: flex; align-items: center; justify-content: center;
}
.pw-toggle:hover { color: var(--ink); }
.pw-toggle svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pw-toggle .ico-eye-off { display: none; }
.pw-toggle.on .ico-eye { display: none; }
.pw-toggle.on .ico-eye-off { display: block; }

.btn-primary {
  background: var(--accent);
  color: #fff; border: none; padding: 13px 22px;
  font-size: 0.88rem; font-weight: 600; letter-spacing: 0.01em;
  margin-top: 10px; border-radius: 3px;
  transition: background .2s, transform .1s;
}
.btn-primary:hover { background: var(--accent-strong); }
.btn-primary:active { transform: scale(0.99); }
.btn-primary:disabled { opacity: 0.55; cursor: default; }
.error { color: var(--danger); font-size: 0.8rem; min-height: 1rem; }
.error.success { color: var(--ok); }
.hint { color: var(--muted); font-size: 0.74rem; margin-top: 8px; text-align: center; line-height: 1.5; }
.hint code { background: var(--fill); color: var(--ink); padding: 2px 6px; border-radius: 4px; }
.landing-footer {
  color: var(--muted); font-size: 0.74rem;
  display: flex; gap: 24px; align-items: center;
}
.landing-footer a { color: var(--text); }
:root[data-theme="dark"] .landing-footer { color: rgba(255, 255, 255, 0.5); }
:root[data-theme="dark"] .landing-footer a { color: rgba(255, 255, 255, 0.66); }
.legal-check {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 12px 0 4px; font-size: 0.78rem; color: var(--muted); line-height: 1.5;
}
.legal-check input { margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; width: 15px; height: 15px; }
.auth-form .forgot-link {
  align-self: flex-start; margin-top: 4px;
  font-size: 0.76rem; color: var(--muted);
  text-decoration: underline; text-underline-offset: 3px;
}
button.linklike {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--muted); font-size: inherit;
}
button.linklike:hover { color: var(--accent); }

/* ============== Registrierungs-Slideshow ============== */
.reg-slideshow { display: none; flex-direction: column; }
.reg-slideshow.active { display: flex; }
.reg-viewport { overflow: hidden; transition: height .3s cubic-bezier(.4, .2, .2, 1); }
.reg-track { display: flex; transition: transform .35s cubic-bezier(.4, .2, .2, 1); }
.reg-slide { flex: 0 0 100%; min-width: 100%; display: flex; flex-direction: column; gap: 10px; padding: 4px; }
.reg-slide > label { font-size: 0.66rem; font-weight: 600; color: var(--muted); letter-spacing: 0.08em; }
.reg-code-box { display: flex; flex-direction: column; gap: 10px; }
.reg-code-box.hidden { display: none; }
.reg-code-btn, .reg-verify-btn { width: auto; align-self: flex-start; margin-top: 2px; padding: 9px 18px; }
.reg-note { font-size: 0.78rem; color: var(--muted); min-height: 1rem; line-height: 1.4; }
.reg-note.ok { color: var(--ok); font-weight: 600; }
.reg-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.reg-arrow {
  background: var(--fill); border: none; color: var(--ink);
  width: 40px; height: 40px; border-radius: 50%; font-size: 1.4rem; line-height: 1;
  opacity: 0.45; transition: opacity .15s, background .15s; flex-shrink: 0;
}
.reg-arrow:hover { opacity: 1; background: var(--fill-hover); }
.reg-arrow.hidden { visibility: hidden; }
.reg-dots { display: flex; gap: 7px; align-items: center; }
.reg-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); transition: all .25s; }
.reg-dot.active { background: var(--accent); width: 20px; border-radius: 4px; }
.reg-dot.done { background: var(--accent); opacity: 0.5; }

/* ============== INTRO OVERLAY (Kameraflug) ============== */
#intro-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: radial-gradient(ellipse at center, rgba(4, 10, 9, 0.05) 0%, rgba(4, 10, 9, 0.6) 100%);
  pointer-events: none;
  transition: opacity 1s;
}
#intro-overlay.hidden { opacity: 0; }
#intro-globe { position: absolute; inset: 0; width: 100vw; height: 100vh; }
.intro-hud { position: absolute; bottom: 40px; left: 40px; z-index: 3; font-size: 0.85rem; }
.intro-boot {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(15, 20, 19, 0.72); backdrop-filter: blur(12px);
  padding: 16px 20px; border-radius: var(--radius);
}
.boot-line { margin: 4px 0; letter-spacing: 0.02em; font-size: 0.82rem; }
.boot-line .ok { color: var(--accent); }
.boot-line.pulse { animation: pulse 1.2s infinite; color: rgba(255, 255, 255, 0.75); }
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: 0.4 } }

/* ============== DASHBOARD ============== */
.dashboard { background: var(--bg); display: flex; flex-direction: column; height: 100vh; }

/* ---------- Topbar ---------- */
.topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0; position: relative; z-index: 10;
}
.topbar-left { display: flex; align-items: center; gap: 8px; }
.topbar .logo { font-size: 1.15rem; margin-right: 8px; }
.hud-chip {
  font-size: 0.72rem; font-weight: 500; color: var(--muted);
  border: 1px solid var(--border); padding: 5px 11px; border-radius: 3px;
  background: transparent; letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 6px;
}
button.hud-chip:hover { border-color: var(--border-strong); color: var(--ink); }
.dot-live {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  animation: pulse 1.6s infinite;
}
.demo-chip { color: var(--warn); border-color: currentColor; }
.demo-chip.hidden { display: none; }
.search-wrap {
  flex: 1; max-width: 560px; position: relative;
  display: flex; align-items: center;
  background: var(--fill); border: 1px solid transparent;
  border-radius: 3px; padding: 0 14px;
  transition: all .2s;
}
.search-wrap:focus-within { background: var(--card); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.search-prefix { color: var(--muted); margin-right: 8px; display: flex; align-items: center; }
.search-wrap input {
  flex: 1; background: transparent; border: none; color: var(--text);
  padding: 9px 0; font-size: 0.86rem;
}
.search-wrap input:focus { outline: none; }
.search-kbd {
  font-size: 0.64rem; color: var(--muted);
  border: 1px solid var(--border); padding: 2px 6px; border-radius: 5px;
}
.topbar-right { display: flex; gap: 8px; align-items: center; }
.company-name { color: var(--ink); font-size: 0.82rem; font-weight: 600; }
.btn-ghost {
  background: var(--fill); color: var(--ink);
  border: none; padding: 8px 15px; border-radius: 3px;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.02em;
  transition: background .2s; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-ghost:hover { background: var(--fill-hover); text-decoration: none; }
.btn-icon {
  position: relative; background: var(--fill); border: none;
  color: var(--ink); width: 32px; height: 32px; font-size: 0.9rem;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.btn-icon:hover { background: var(--fill-hover); }
.btn-icon .badge {
  position: absolute; top: -5px; right: -5px;
  background: var(--danger); color: white; font-size: 0.62rem; font-weight: 700;
  padding: 1px 5px; border-radius: 8px; min-width: 16px; text-align: center;
}
.btn-icon .badge.hidden { display: none; }
.btn-icon-sm {
  background: transparent; border: none; color: var(--muted);
  width: 26px; height: 26px; font-size: 0.9rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.btn-icon-sm:hover { background: var(--fill); color: var(--ink); }

/* ---------- Markt-Ticker ---------- */
.ticker-bar {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border-bottom: 1px solid var(--border);
  padding: 6px 20px; position: relative;
}
.ticker-label {
  font-size: 0.66rem; font-weight: 600; color: var(--muted);
  letter-spacing: 0.08em; flex-shrink: 0; padding-right: 8px;
  z-index: 3; position: relative;
}
.ticker-viewport {
  flex: 1; overflow: hidden; position: relative;
  mask-image: linear-gradient(to right, transparent 0, black 24px, black calc(100% - 24px), transparent 100%);
}
.ticker-track {
  display: flex; gap: 34px; white-space: nowrap;
  animation: ticker 60s linear infinite;
  font-size: 0.76rem; font-family: var(--mono);
  will-change: transform;
}
.ticker-track .tick-item { display: inline-flex; align-items: center; gap: 6px; }
.ticker-track em { font-style: normal; color: var(--muted); letter-spacing: 0.02em; }
.ticker-track b { color: var(--ink); font-weight: 600; }
.ticker-track .up { color: var(--ok); }
.ticker-track .down { color: var(--danger); }
.tick-item .sim {
  font-style: normal; color: var(--muted); font-size: 0.58rem;
  border: 1px solid var(--border); padding: 0 4px; margin-left: 5px; border-radius: 4px;
}
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---------- Grundraster ---------- */
.layout {
  flex: 1; display: grid;
  grid-template-columns: 320px 1fr 340px;
  overflow: hidden; gap: 14px; padding: 14px;
}
.sidebar {
  overflow-y: auto; display: flex; flex-direction: column; gap: 14px;
}
.sidebar::-webkit-scrollbar, .main::-webkit-scrollbar,
.admin-main::-webkit-scrollbar, .admin-sidebar::-webkit-scrollbar,
.legal-main::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-track, .main::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb, .main::-webkit-scrollbar-thumb,
.admin-main::-webkit-scrollbar-thumb, .admin-sidebar::-webkit-scrollbar-thumb,
.legal-main::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.14); border-radius: 4px; }

.widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
}
.widget-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid var(--border);
  font-size: 0.66rem; font-weight: 600; color: var(--muted);
  letter-spacing: 0.08em;
}
.widget-head.with-toggle { padding-right: 10px; }
.widget-sub { color: var(--muted); font-size: 0.7rem; }

/* ---------- Chats (linke Spalte) ---------- */
.chat-list { padding: 6px; max-height: 240px; overflow-y: auto; }
.chat-item {
  padding: 9px 10px; margin-bottom: 2px; cursor: pointer;
  border-radius: var(--radius-s); transition: background .15s;
  display: flex; align-items: center; gap: 10px; position: relative;
}
.chat-item:hover { background: var(--fill); }
.chat-item .name { font-weight: 600; font-size: 0.82rem; color: var(--ink); }
.chat-item .city { color: var(--muted); font-size: 0.7rem; margin-top: 2px; }
.chat-item .last {
  color: var(--muted); font-size: 0.75rem; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-list-empty { color: var(--muted); font-size: 0.78rem; padding: 20px; text-align: center; line-height: 1.6; }
.chat-avatar { width: 36px; height: 36px; }
.chat-item-main { flex: 1; min-width: 0; }
.chat-item-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.chat-item .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-time { color: var(--muted); font-size: 0.66rem; flex-shrink: 0; }
.chat-item.unread .name { color: var(--accent); }
.chat-item.unread .last { color: var(--ink); }
.unread-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--accent); }

/* ---------- Chat: Filter, Suche, Gesprächs-Panel (Teams-Stil) ---------- */
.chat-filters { display: flex; gap: 6px; padding: 8px 12px 4px; }
.chat-filter { flex: 1; background: var(--fill); border: none; color: var(--muted); padding: 7px 6px; border-radius: 3px; font-size: 0.72rem; font-weight: 600; transition: background .15s, color .15s; }
.chat-filter.active { background: var(--accent); color: #fff; }
.chat-search-wrap { position: relative; padding: 6px 12px 10px; }
.chat-search-ico { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); color: var(--muted); line-height: 0; }
.chat-search { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 3px; padding: 8px 14px 8px 32px; font-size: 0.82rem; color: var(--text); }
.chat-search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }

.chat-pane { position: relative; }
.chat-empty { display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); min-height: 260px; padding: 30px; }
.chat-empty-inner { max-width: 320px; }
.chat-empty-inner svg { color: var(--accent); opacity: 0.85; margin-bottom: 14px; }
.chat-empty-inner h3 { font-size: 1.05rem; color: var(--ink); margin-bottom: 8px; font-weight: 700; }
.chat-empty-inner p { font-size: 0.86rem; line-height: 1.5; }

/* ---------- Chat-Fenster (mobil: Vollbild-Overlay) ---------- */
.chat-window {
  position: fixed; inset: 0; z-index: 1100;
  background: var(--card);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.chat-window.hidden { display: none; }
#chat-resize { display: none; }
/* Unter Desktop-Breite ist die Liste die Ansicht – kein leeres Gesprächs-Panel */
@media (max-width: 1199px) { .chat-empty { display: none; } }

/* Neuen Chat starten (Firmen-Auswahl) */
#new-chat-search { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-s); padding: 10px 12px; color: var(--text); font-size: 0.88rem; margin-top: 4px; }
#new-chat-search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.new-chat-list { max-height: 52vh; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.new-chat-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; background: none; border: none; border-radius: var(--radius-s); text-align: left; width: 100%; }
.new-chat-item:hover { background: var(--fill); }
.new-chat-av { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.72rem; flex-shrink: 0; }
.new-chat-main { display: flex; flex-direction: column; min-width: 0; }
.new-chat-main .name { font-weight: 600; font-size: 0.85rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.new-chat-main .sub { font-size: 0.72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-window-header {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-bottom: 1px solid var(--border);
  color: var(--ink); font-size: 0.85rem; font-weight: 600;
  background: var(--card);
}
.chat-window-header #chat-with { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.chat-avatar-sm { width: 22px; height: 22px; font-size: 0.55rem; }
.chat-encryption { color: var(--muted); font-size: 0.64rem; font-weight: 500; }
.chat-deal-btn { color: var(--accent) !important; font-weight: 700; }
.chat-body { flex: 1; overflow: hidden; display: flex; flex-direction: column; background: var(--card); }
.chat-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.chat-messages.hidden { display: none; }
.msg {
  padding: 8px 12px; border-radius: 4px; max-width: 78%;
  font-size: 0.85rem; line-height: 1.45;
}
.msg.me { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }
.msg.them { background: var(--fill); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 5px; }
.msg.sys { background: transparent; border: 1px dashed var(--border-strong); color: var(--muted); font-size: 0.78rem; }
.msg-row { display: flex; gap: 6px; align-items: flex-end; }
.msg-row.me { justify-content: flex-end; }
.msg-avatar { width: 24px; height: 24px; font-size: 0.55rem; }
.msg-row .msg { align-self: auto; }
.msg .msg-time { font-size: 0.62rem; margin-top: 4px; text-align: right; opacity: 0.7; }
.chat-form { display: flex; padding: 10px; border-top: 1px solid var(--border); gap: 6px; background: var(--card); }
.chat-attach {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; cursor: pointer;
  background: var(--fill); border: none; border-radius: 50%;
  font-size: 0.95rem; color: var(--muted); transition: background .15s;
}
.chat-attach:hover { background: var(--fill-hover); color: var(--ink); }
.chat-form input[type="text"] {
  flex: 1; background: var(--fill); border: 1px solid transparent;
  color: var(--text); padding: 9px 14px; border-radius: 3px; font-size: 0.85rem;
}
.chat-form input[type="text"]:focus { outline: none; background: var(--card); border-color: var(--accent); }
.chat-form button {
  background: var(--accent); border: none; color: #fff;
  width: 36px; height: 36px; font-size: 1rem; font-weight: 700; border-radius: 50%;
}
.chat-form button:hover { background: var(--accent-strong); }
.chat-attach-preview {
  padding: 6px 14px; border-top: 1px solid var(--border);
  font-size: 0.78rem; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.chat-attach-preview.hidden { display: none; }
.chat-attach-preview button {
  background: transparent; border: 1px solid var(--border); color: var(--danger);
  width: 22px; height: 22px; margin-left: auto; border-radius: 50%; font-size: 0.9rem;
}
.msg-attach {
  display: block; margin-top: 6px; padding: 6px 10px;
  background: rgba(255, 255, 255, 0.18); border-radius: 8px;
  color: inherit; text-decoration: underline; cursor: pointer;
  font-size: 0.76rem;
}
.msg.them .msg-attach { background: rgba(0, 0, 0, 0.05); }

/* Anfrage-Ansicht im Chat */
.chat-request-view { flex: 1; overflow-y: auto; padding: 22px 20px; }
.chat-request-view.hidden { display: none; }
.req-info { text-align: center; }
.req-icon { font-size: 1.8rem; margin-bottom: 10px; }
.req-title { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; letter-spacing: -0.01em; }
.req-text { color: var(--muted); font-size: 0.82rem; line-height: 1.55; margin-bottom: 14px; }
.req-msg { text-align: left; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-s); padding: 12px; margin: 12px 0; }
.req-msg label { font-size: 0.62rem; font-weight: 600; color: var(--muted); letter-spacing: 0.08em; display: block; margin-bottom: 4px; }
.req-msg p { font-size: 0.85rem; color: var(--ink); line-height: 1.45; }
.chat-request-view textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-s);
  color: var(--text); padding: 10px 12px; font-size: 0.85rem;
  margin: 8px 0; resize: vertical; min-height: 80px;
}
.chat-request-view textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.req-actions { display: flex; gap: 8px; margin-top: 12px; }
.req-actions .btn-primary { flex: 1; padding: 10px; font-size: 0.8rem; margin-top: 0; }
.req-actions .btn-hud { flex: 1; padding: 10px; text-align: center; }
.unclaimed-note {
  text-align: left; color: var(--muted); font-size: 0.82rem; line-height: 1.6;
  background: var(--accent-tint); border-radius: var(--radius-s);
  padding: 12px 14px; margin: 10px 0;
}

/* Anfragen-Popup */
.request-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-s);
  padding: 12px; margin-bottom: 10px;
}
.request-out {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px; margin-top: 4px; border-radius: var(--radius-s);
  font-size: 0.8rem; background: var(--bg); border: 1px solid var(--border);
}
.request-out b { color: var(--ink); }
.request-out .muted { color: var(--muted); font-size: 0.7rem; margin: 0; }

/* Deals im Chat */
.chat-deals {
  max-height: 175px; overflow-y: auto; flex-shrink: 0;
  border-bottom: 1px solid var(--border); background: var(--bg);
  padding: 8px; display: flex; flex-direction: column; gap: 6px;
}
.chat-deals.hidden { display: none; }
.deal-card {
  border: 1px solid var(--border); border-left: 3px solid var(--warn);
  background: var(--card); border-radius: var(--radius-s); padding: 8px 10px; font-size: 0.78rem;
}
.deal-card.accepted { border-left-color: var(--ok); }
.deal-card.declined { border-left-color: var(--danger); opacity: 0.6; }
.deal-head {
  display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px;
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.06em; color: var(--muted);
}
.deal-chip.ok { color: var(--ok); }
.deal-chip.bad { color: var(--danger); }
.deal-chip.pend { color: var(--warn); }
.deal-title { font-weight: 600; font-size: 0.8rem; color: var(--ink); }
.deal-text { color: var(--muted); margin-top: 3px; line-height: 1.4; }
.deal-meta { display: flex; gap: 12px; margin-top: 5px; font-size: 0.7rem; color: var(--accent); font-weight: 600; }
.deal-actions { display: flex; gap: 6px; margin-top: 8px; }
.deal-actions .btn-primary { margin-top: 0; padding: 7px; font-size: 0.72rem; flex: 1; width: auto; }
.deal-actions .btn-hud { flex: 1; text-align: center; padding: 7px; }

/* ---------- Updates-Feed ---------- */
.update-composer { display: flex; gap: 6px; padding: 10px 10px 0; }
.update-composer input {
  flex: 1; min-width: 0; background: var(--fill); border: 1px solid transparent;
  color: var(--text); font-size: 0.8rem; padding: 8px 12px; border-radius: 3px;
}
.update-composer input:focus { outline: none; background: var(--card); border-color: var(--accent); }
.update-composer button {
  background: var(--fill); color: var(--ink); border: none; padding: 0 14px;
  font-size: 0.72rem; font-weight: 600; border-radius: 3px;
}
.update-composer button:hover { background: var(--fill-hover); }
.updates-list { padding: 10px; display: flex; flex-direction: column; gap: 8px; max-height: 300px; overflow-y: auto; }
.update-item {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-s);
  padding: 9px 10px;
}
.update-avatar { width: 30px; height: 30px; font-size: 0.6rem; }
.update-main { flex: 1; min-width: 0; }
.update-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.update-name { font-weight: 600; font-size: 0.78rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.update-time { color: var(--muted); font-size: 0.64rem; flex-shrink: 0; }
.update-text { color: var(--ink); font-size: 0.78rem; line-height: 1.45; margin-top: 3px; word-break: break-word; }
.update-item.mine { border-left: 3px solid var(--accent); }
.updates-empty { color: var(--muted); font-size: 0.74rem; padding: 12px; text-align: center; line-height: 1.6; }

/* ---------- Dateien-Widget ---------- */
.files-list { max-height: 210px; overflow-y: auto; padding: 6px; }
.file-row-mini {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 8px;
  align-items: center; padding: 8px 10px; margin-bottom: 2px;
  text-decoration: none; color: var(--ink); font-size: 0.78rem;
  border-radius: var(--radius-s); transition: background .15s;
}
.file-row-mini:hover { background: var(--fill); text-decoration: none; }
.file-mini-icon { font-size: 1rem; }
.file-mini-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-mini-cat {
  background: var(--fill); color: var(--muted); padding: 2px 8px;
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.04em; border-radius: 3px;
}
.files-empty { color: var(--muted); font-size: 0.76rem; padding: 16px; text-align: center; line-height: 1.6; }
.files-footer { padding: 6px 10px 10px; }
.files-footer .btn-hud { width: 100%; text-align: center; text-decoration: none; display: block; }

.mini-select {
  background: var(--fill); border: 1px solid transparent; color: var(--ink);
  font-size: 0.72rem; font-weight: 500;
  padding: 5px 9px; border-radius: 3px;
}
.mini-select:focus { outline: none; border-color: var(--accent); background: var(--card); }

/* ---------- Pipeline ---------- */
.pipeline { padding: 12px 14px; font-size: 0.78rem; }
.pipe-row { display: flex; justify-content: space-between; padding: 4px 0; }
.pipe-row span { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.04em; }
.pipe-row b { color: var(--ink); }
.pipe-row b.ok { color: var(--ok); }
.bar { margin-top: 10px; height: 4px; background: var(--fill); position: relative; overflow: hidden; border-radius: 2px; }
.bar-fill { height: 100%; background: var(--accent); border-radius: 2px; }

/* ---------- Hauptspalte ---------- */
.main { overflow-y: auto; display: flex; flex-direction: column; gap: 14px; background: transparent; }

.stat-strip {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
}
.stat {
  padding: 12px 14px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 4px;
}
.stat label { font-size: 0.62rem; font-weight: 600; color: var(--muted); letter-spacing: 0.07em; }
.stat b { font-size: 1.25rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.stat b.ok { color: var(--accent); }

/* ---------- Weltkarte ---------- */
.globe-section {
  position: relative; height: 52vh; min-height: 380px;
  background: #0c1512;
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-card);
  transition: height .35s cubic-bezier(.4, .2, .2, 1);
}
.globe-section.resizing { transition: none; }
#dashboard-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.globe-hud { position: absolute; top: 12px; left: 12px; z-index: 3; display: flex; gap: 8px; }
.globe-section .hud-tag {
  background: rgba(20, 26, 24, 0.72); backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.85); border: none;
  font-size: 0.68rem;
}
.globe-legend {
  position: absolute; bottom: 14px; left: 14px; z-index: 3;
  background: rgba(20, 26, 24, 0.72); backdrop-filter: blur(8px);
  padding: 9px 14px; border-radius: 3px;
  display: flex; gap: 14px; font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.8);
}
/* Ansicht-Umschalter oben links (unter dem WELTKARTE-Chip), damit sie nicht mehr
   die Legende unten überlagern */
.globe-controls { position: absolute; top: 48px; left: 12px; z-index: 4; display: flex; gap: 6px; flex-wrap: wrap; }
.btn-hud {
  background: var(--fill); border: none; color: var(--ink);
  font-size: 0.72rem; font-weight: 600; padding: 7px 13px;
  letter-spacing: 0.02em; transition: all .2s; border-radius: 3px;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
}
.btn-hud:hover { background: var(--fill-hover); text-decoration: none; }
.btn-hud.active { background: var(--solid); color: var(--on-solid); }
.btn-hud.danger { color: var(--danger); }
.btn-hud.danger:hover { background: rgba(224, 51, 60, 0.1); }
.btn-hud.small { padding: 5px 10px; font-size: 0.66rem; }
.globe-controls .btn-hud {
  background: rgba(20, 26, 24, 0.72); backdrop-filter: blur(8px); color: rgba(255, 255, 255, 0.85);
}
.globe-controls .btn-hud:hover { background: rgba(20, 26, 24, 0.9); }
/* Aktiver Button: weiße Fläche über der dunklen Karte – Text fest dunkel
   (nicht var(--ink), das im Dunkelmodus hell wäre und auf Weiß verschwände) */
.globe-controls .btn-hud.active { background: #fff; color: #141416; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.dot-me { background: var(--me); }
.dot-supplier { background: var(--supplier); }
.dot-customer { background: var(--customer); }
.dot-other { background: #9aa5a1; }
.dot-fav { background: #f5c518; }
.dot-partner { background: #a06ae8; }

.globe-resize {
  position: absolute; left: 0; right: 0; bottom: 0; height: 16px; z-index: 5;
  cursor: ns-resize; display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.6); opacity: 0.5; font-size: 11px;
  user-select: none; touch-action: none;
}
.globe-resize:hover { opacity: 1; }

/* MapLibre-Bedienelemente im hellen Stil */
.maplibregl-map { font-family: inherit; }
.maplibregl-canvas { outline: none; }
.maplibregl-ctrl.maplibregl-ctrl-group {
  background: rgba(255, 255, 255, 0.92); border: none;
  border-radius: 10px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
.maplibregl-ctrl-group button { background: transparent; }
.maplibregl-ctrl-group button + button { border-top: 1px solid var(--border); }
.maplibregl-ctrl-attrib { background: rgba(255, 255, 255, 0.7) !important; font-size: 10px; }
.maplibregl-ctrl-attrib, .maplibregl-ctrl-attrib a { color: #57605d !important; }
.maplibregl-ctrl-top-right { top: 42px; }

/* Karten-Marker */
.map-marker { cursor: pointer; }
.map-marker-dot {
  display: block; width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.map-marker.me .map-marker-dot { background: var(--me); }
.map-marker.supplier .map-marker-dot { background: var(--supplier); }
.map-marker.customer .map-marker-dot { background: var(--customer); }
.map-marker.other .map-marker-dot { width: 9px; height: 9px; background: #cfd8d4; border-width: 1px; opacity: 0.9; }
.map-marker.me::after {
  content: ''; position: absolute; inset: -9px; border-radius: 50%;
  border: 2px solid var(--me); animation: mapPulse 2.2s ease-out infinite; pointer-events: none;
}
@keyframes mapPulse { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.map-marker-label {
  display: none; position: absolute; bottom: calc(100% + 5px); left: 50%; transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.92); border: none;
  /* Beschriftung liegt auf weißem Pill über der dunklen Karte → Text immer dunkel
     (auch im Dunkelmodus, nicht var(--ink), das dort hell wäre) */
  color: #1d1d1f; font-size: 0.6rem; font-weight: 600;
  padding: 2px 8px; white-space: nowrap; border-radius: 3px;
  pointer-events: none; max-width: 150px; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.map-marker:hover .map-marker-label, .map-marker.labeled .map-marker-label,
.map-marker.supplier .map-marker-label, .map-marker.customer .map-marker-label,
.map-marker.fav .map-marker-label, .map-marker.partner .map-marker-label { display: block; }
.map-marker.fav .map-marker-dot { background: #f5c518; width: 13px; height: 13px; opacity: 1; }
.map-marker.partner .map-marker-dot { background: #a06ae8; width: 13px; height: 13px; opacity: 1; }
.map-marker.fav.partner .map-marker-dot { background: #a06ae8; border-color: #f5c518; }

/* Karten-Popup */
.hud-map-popup .maplibregl-popup-content {
  background: var(--card); border: none;
  color: var(--ink); border-radius: var(--radius); padding: 14px 16px;
  box-shadow: var(--shadow-pop);
}
.hud-map-popup .maplibregl-popup-tip { border-top-color: var(--card); border-bottom-color: var(--card); }
.hud-map-popup .maplibregl-popup-close-button { color: var(--muted); font-size: 18px; padding: 2px 8px; right: 2px; top: 2px; }
.hud-map-popup .maplibregl-popup-close-button:hover { color: var(--ink); background: transparent; }
.map-pop-name { font-weight: 700; font-size: 0.95rem; color: var(--ink); padding-right: 16px; }
.map-pop-sub { font-size: 0.72rem; color: var(--muted); margin-top: 3px; }
.map-pop-niche {
  display: inline-block; margin-top: 8px; font-size: 0.66rem; font-weight: 600;
  color: var(--accent); background: var(--accent-tint); padding: 2px 9px; border-radius: 3px;
}
.map-pop-hours { font-size: 0.72rem; color: var(--muted); margin-top: 6px; }
.map-pop-actions { display: flex; gap: 6px; margin-top: 12px; }
.map-pop-actions .btn-primary, .map-pop-actions .btn-hud { width: auto; padding: 7px 13px; font-size: 0.72rem; margin-top: 0; }

/* ---------- Firmen-Finder ---------- */
.map-search-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; }
.map-search-row .globe-section { min-width: 0; }
.finder-panel {
  min-width: 0; display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  min-height: 0;
  transition: opacity .9s ease;
}
.finder-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; border-bottom: 1px solid var(--border);
  font-size: 0.66rem; font-weight: 600; color: var(--muted); letter-spacing: 0.08em;
}
.finder-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 12px 14px; border-bottom: 1px solid var(--border);
}
.finder-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.finder-field label { font-size: 0.62rem; font-weight: 600; color: var(--muted); letter-spacing: 0.07em; }
.finder-field input, .finder-field select {
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
  font-size: 0.8rem; padding: 8px 10px;
  border-radius: var(--radius-s); min-width: 0; width: 100%;
}
.finder-field input:focus, .finder-field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint);
}
.finder-submit { grid-column: 1 / -1; margin-top: 0; padding: 10px; font-size: 0.8rem; }
.finder-count { padding: 8px 14px 0; font-size: 0.68rem; font-weight: 600; color: var(--muted); letter-spacing: 0.06em; }
.finder-results { flex: 1; overflow-y: auto; padding: 8px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  color: #fff; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.02em;
}
.finder-hit {
  display: flex; align-items: flex-start; gap: 10px; text-align: left;
  background: var(--card); border: 1px solid var(--border); color: var(--ink);
  border-radius: var(--radius-s);
  padding: 10px; cursor: pointer; transition: all .15s;
}
.finder-hit:hover { border-color: var(--border-strong); background: var(--bg); }
.finder-hit-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.finder-hit-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 0.84rem; }
.finder-hit-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finder-hit-top .score { font-weight: 700; font-size: 0.66rem; color: #fff; padding: 2px 8px; flex-shrink: 0; border-radius: 3px; }
.finder-hit-sub { font-size: 0.68rem; color: var(--muted); }
.finder-hit-niche {
  align-self: flex-start; background: var(--accent-tint); color: var(--accent);
  padding: 1px 8px; font-size: 0.62rem; font-weight: 600; border-radius: 3px;
}
.finder-empty { font-size: 0.76rem; color: var(--muted); padding: 8px; line-height: 1.6; }

/* Dienste-Finder (v1.3): Intro, Modus-Umschalter, Dienst-Karten */
.finder-form { grid-template-columns: 1fr; }
.finder-intro { padding: 10px 14px 0; font-size: 0.72rem; color: var(--muted); line-height: 1.5; }
.finder-mode { display: flex; gap: 6px; padding: 10px 14px 0; }
.finder-mode-btn { flex: 1; background: var(--fill); border: none; color: var(--muted); border-radius: 3px; padding: 8px 10px; font-size: 0.74rem; font-weight: 600; transition: background .15s, color .15s; }
.finder-mode-btn.active { background: var(--accent); color: #fff; }
.finder-hit.service { align-items: center; }
.finder-hit .svc-icon { font-size: 1.05rem; flex-shrink: 0; line-height: 1; }
.finder-hit .svc-name { font-weight: 700; font-size: 0.85rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.finder-hit .svc-by { font-size: 0.72rem; color: var(--muted); }
.finder-hit .svc-by b { color: var(--ink); font-weight: 600; }
.finder-hit.service .score { font-weight: 700; font-size: 0.66rem; color: #fff; padding: 2px 8px; flex-shrink: 0; border-radius: 3px; align-self: center; }
.finder-tags-head { padding: 12px 14px 0; font-size: 0.62rem; font-weight: 600; color: var(--muted); letter-spacing: 0.07em; }
.finder-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px 2px; max-height: 116px; overflow-y: auto; }
.finder-tag { background: var(--fill); border: none; color: var(--muted); border-radius: 3px; padding: 5px 11px; font-size: 0.7rem; font-weight: 600; white-space: nowrap; transition: background .15s, color .15s; }
.finder-tag:hover { background: var(--fill-hover); color: var(--ink); }
.finder-tag.active { background: var(--accent); color: #fff; }

/* ---------- Bewertungen & Projekt-Showcase (Upwork-Stil) ---------- */
.stars { display: inline-flex; gap: 1px; color: var(--border-strong); font-size: 0.95rem; line-height: 1; }
.stars.sm { font-size: 0.8rem; }
.stars .star.on { color: #f5b800; }
.rating-line { display: flex; align-items: center; gap: 7px; margin-top: 6px; font-size: 0.82rem; }
.rating-line b { color: var(--ink); }
.mini-rating { color: #d99a00; font-weight: 700; }

.review-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.review-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-s); padding: 9px 11px; }
.review-head { display: flex; align-items: center; gap: 7px; font-size: 0.78rem; flex-wrap: wrap; }
.review-head b { color: var(--ink); }
.review-text { font-size: 0.82rem; color: var(--text); margin-top: 4px; line-height: 1.5; }
.review-form { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.star-input { display: inline-flex; gap: 3px; font-size: 1.55rem; color: var(--border-strong); cursor: pointer; }
.star-input .star { transition: color .1s; }
.star-input .star.on { color: #f5b800; }
.review-form textarea { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-s); color: var(--text); padding: 8px 10px; font-size: 0.85rem; resize: vertical; }
.review-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.review-form .btn-hud { align-self: flex-start; }

.proj-list, .my-projects { display: flex; flex-direction: column; gap: 10px; }
.my-projects { padding: 10px 14px; }
.my-projects .proj-empty { padding: 4px 0; }
.proj-card { border: 1px solid var(--border); border-radius: var(--radius-s); overflow: hidden; background: var(--card); }
.proj-media { aspect-ratio: 16 / 9; background: var(--fill); }
.proj-media img, .proj-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj-video-link { display: block; padding: 10px 12px; background: var(--fill); color: var(--accent); font-weight: 600; font-size: 0.82rem; }
.proj-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 5px; }
.proj-title { font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.proj-role { font-size: 0.72rem; color: var(--accent); font-weight: 600; }
.proj-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.proj-del { align-self: flex-start; color: var(--danger); margin-top: 4px; }

.project-form { display: flex; flex-direction: column; gap: 8px; padding: 0 14px 14px; }
.project-form input, .project-form textarea { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-s); color: var(--text); padding: 9px 11px; font-size: 0.85rem; }
.project-form input:focus, .project-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.project-form .btn-primary { margin-top: 2px; }

/* ---------- B2B: Synergy Match, Trust, Biete/Suche, Quick-Actions ---------- */
.verified-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 0.6rem; font-weight: 700; color: var(--accent); background: var(--accent-tint); border-radius: 3px; padding: 2px 8px; letter-spacing: 0.04em; vertical-align: middle; white-space: nowrap; }
.hud-chip.verified { color: var(--accent); border-color: transparent; background: var(--accent-tint); font-weight: 700; }

.match-panel { border: 1px solid var(--border); border-radius: var(--radius-s); padding: 10px 12px; margin: 8px 0; background: var(--fill); }
.match-head { display: flex; justify-content: space-between; align-items: baseline; }
.match-head span { font-size: 0.66rem; font-weight: 600; color: var(--muted); letter-spacing: 0.06em; }
.match-head b { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; color: var(--accent); }
.match-bar { height: 8px; border-radius: 3px; background: var(--border); overflow: hidden; margin: 7px 0 5px; }
.match-fill { height: 100%; border-radius: 3px; background: var(--accent); }
.match-note { font-size: 0.66rem; color: var(--muted); line-height: 1.4; }
.match-panel.high .match-head b { color: var(--ok); }
.match-panel.high .match-fill { background: var(--ok); }
.match-panel.mid .match-head b { color: var(--warn); }
.match-panel.mid .match-fill { background: var(--warn); }
.match-panel.low .match-head b { color: var(--muted); }
.match-panel.low .match-fill { background: var(--muted); }

.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.trust-grid > div { background: var(--fill); border-radius: var(--radius-s); padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.trust-grid label { font-size: 0.56rem; font-weight: 600; color: var(--muted); letter-spacing: 0.05em; }
.trust-grid b { font-size: 0.92rem; font-weight: 700; color: var(--ink); }
.trust-grid b.ok { color: var(--ok); }

.bs-dash { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.bs-col { border: 1px solid var(--border); border-radius: var(--radius-s); padding: 9px 10px; min-width: 0; }
.bs-col label { display: block; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.05em; margin-bottom: 6px; }
.bs-col.biete label { color: var(--accent); }
.bs-col.suche label { color: var(--danger); }
.chip.cert { background: var(--fill); color: var(--ink); border: 1px solid var(--border-strong); font-weight: 600; }
.pop-block.tight { margin: 6px 0; }

.quick-actions { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 12px; }
.qa-btn { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 11px; border-radius: var(--radius-s); border: 1px solid var(--border-strong); background: var(--card); color: var(--ink); font-size: 0.82rem; font-weight: 600; transition: background .15s, border-color .15s; }
.qa-btn:hover { background: var(--fill); }
.qa-btn.primary { background: var(--accent); color: #fff; border-color: transparent; }
.qa-btn.primary:hover { background: var(--accent-strong); }
.qa-btn:disabled { opacity: 0.6; cursor: default; }

.match-pill { flex-shrink: 0; align-self: center; font-size: 0.72rem; font-weight: 800; color: #fff; background: var(--accent); border-radius: 3px; padding: 3px 9px; }
.match-pill.high { background: var(--ok); }
.match-pill.mid { background: var(--warn); }
.match-pill.low { background: var(--muted); }
.mini-verified { color: var(--accent); font-weight: 800; }
.card-trust { font-size: 0.66rem; color: var(--muted); margin-top: 3px; font-variant-numeric: tabular-nums; }
.card-name .verified-badge { font-size: 0.52rem; padding: 1px 6px; }

/* Eigenes Profil (Profil-Tab) */
.my-profile-card { padding: 12px 14px; }
.mp-name { font-size: 1.05rem; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mp-sub { font-size: 0.78rem; color: var(--muted); margin-top: 3px; }

/* Abo & Team (unauffällig) */
.abo-status { padding: 10px 14px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 5px; }
.abo-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; gap: 10px; }
.abo-row b { color: var(--ink); }
.abo-plan { color: var(--accent); font-weight: 700; }
.abo-manage { color: var(--accent); font-weight: 600; font-size: 0.74rem; white-space: nowrap; }

/* Smart-Filter im Finder */
.finder-smart { display: grid; grid-template-columns: 1fr; gap: 10px; }
.finder-toggle { display: flex; align-items: center; gap: 8px; font-size: 0.74rem; color: var(--text); padding: 2px 0 4px; }
.finder-toggle input { accent-color: var(--accent); width: 15px; height: 15px; }

/* Secure Data Room */
.dr-zones { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.dr-zone { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--radius-s); background: var(--fill); font-size: 0.84rem; color: var(--ink); }
.dr-zone.locked { color: var(--muted); border-style: dashed; background: transparent; }
.dr-ico { font-size: 1rem; }

/* Bestätigungs-Toast */
.xina-toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%) translateY(20px); z-index: 3000; background: var(--solid); color: var(--on-solid); padding: 11px 18px; border-radius: 3px; font-size: 0.85rem; font-weight: 600; box-shadow: var(--shadow-pop); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; max-width: 90vw; text-align: center; }
.xina-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

html.intro-mode .finder-panel { opacity: 0; pointer-events: none; }
@media (max-width: 1199px) {
  .finder-panel { max-height: 60vh; }
}

/* Kennzeichnung: eingetragene, nicht registrierte Firmen */
.unclaimed-badge {
  display: inline-block; align-self: flex-start;
  background: var(--fill); color: var(--muted);
  border: 1px dashed var(--border-strong);
  padding: 2px 9px; font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.05em; border-radius: 3px; margin-top: 4px;
}

/* ---------- Passende Firmen (Matches) ---------- */
.matches-section {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 18px;
}
.section-title {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 14px;
  font-size: 0.7rem; font-weight: 600; color: var(--muted); letter-spacing: 0.08em;
}
.section-actions { display: flex; gap: 4px; }
.matches-info { font-size: 0.74rem; color: var(--muted); line-height: 1.6; padding: 2px 2px 12px; }
.match-group { margin-bottom: 22px; }
.match-group h3 {
  font-size: 0.7rem; color: var(--muted); margin-bottom: 12px;
  font-weight: 600; letter-spacing: 0.07em;
  display: flex; align-items: center; gap: 8px;
}
.match-group .glyph { display: none; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; transition: all .2s; position: relative; overflow: hidden;
}
.card:hover { border-color: var(--border-strong); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08); transform: translateY(-2px); }
.card .card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; gap: 10px; }
.card .card-name { font-weight: 700; font-size: 0.95rem; color: var(--ink); letter-spacing: -0.01em; }
.card .card-loc { color: var(--muted); font-size: 0.72rem; margin-top: 3px; }
.card-time { margin-left: 8px; color: var(--accent); }
.card-hours { color: var(--muted); font-size: 0.68rem; margin-top: 2px; }
.card .card-niche {
  display: inline-block; background: var(--accent-tint);
  color: var(--accent); padding: 2px 9px;
  font-size: 0.66rem; font-weight: 600; margin-top: 6px; border-radius: 3px;
}
.card .card-desc { color: var(--muted); font-size: 0.8rem; margin: 10px 0; line-height: 1.5; }
.card .card-actions { display: flex; gap: 6px; margin-top: 10px; }
.card button {
  background: var(--solid); color: var(--on-solid); border: none;
  padding: 7px 13px; font-size: 0.72rem; font-weight: 600;
  border-radius: 3px; transition: all .2s;
}
.card button:hover { filter: brightness(0.88); }
.card button.ghost { background: var(--fill); color: var(--ink); }
.card button.ghost:hover { background: var(--fill-hover); }
.card .score {
  color: #fff; font-weight: 700; padding: 3px 9px; font-size: 0.7rem;
  border-radius: 3px; cursor: help;
}
.card-side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
/* Merk-Stern: klar erkennbar in beiden Modi (grauer Umriss → Gold beim Merken).
   WICHTIG: höher spezifisch als `.card button` scopen (.card-side .fav-star),
   sonst erbt der Stern Fläche & Farbe der Karten-Buttons und verschwindet. */
.card-side .fav-star {
  background: transparent !important; border: none; padding: 0 2px; border-radius: 0;
  color: var(--muted); font-size: 1.35rem; line-height: 1; transition: color .15s, transform .15s;
  filter: none;
}
.card-side .fav-star:hover { color: #f5c518; transform: scale(1.15); }
.card-side .fav-star.marked { color: #f5c518; }
.partner-flag {
  font-size: 0.6rem; font-weight: 600; color: #8a4fd8;
  background: rgba(160, 106, 232, 0.12); padding: 2px 8px; margin-top: 4px;
  letter-spacing: 0.04em; text-align: center; white-space: nowrap; border-radius: 3px;
}
.partner-flag.hidden { display: none; }
.sup-flag {
  margin-top: 6px; font-size: 0.6rem; font-weight: 600;
  color: var(--supplier); background: rgba(224, 72, 79, 0.1);
  padding: 1px 7px; text-align: center; border-radius: 3px;
}
.sup-flag.hidden { display: none; }

/* ---------- Umschalter (Nische/Welt, Merkliste/Partner) ---------- */
.toggle-switch {
  position: relative; display: inline-flex; align-items: center;
  background: var(--fill); border: none;
  padding: 3px; cursor: pointer; user-select: none;
  border-radius: 3px; overflow: hidden;
}
.toggle-slider {
  position: absolute; top: 3px; left: 3px; height: calc(100% - 6px);
  width: calc(50% - 3px); background: var(--card); border-radius: 3px;
  transition: transform .25s cubic-bezier(.4, .2, .2, 1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
}
.toggle-switch[data-scope="world"] .toggle-slider,
.toggle-switch[data-scope="sup"] .toggle-slider { transform: translateX(100%); }
.toggle-label {
  position: relative; z-index: 2;
  font-size: 0.64rem; font-weight: 600;
  padding: 4px 10px; letter-spacing: 0.05em;
  transition: color .2s; color: var(--muted);
}
.toggle-switch[data-scope="niche"] .toggle-label.left,
.toggle-switch[data-scope="fav"] .toggle-label.left,
.toggle-switch[data-scope="world"] .toggle-label.right,
.toggle-switch[data-scope="sup"] .toggle-label.right { color: var(--ink); }

/* ---------- News ---------- */
.news-list { padding: 6px; max-height: 340px; overflow-y: auto; }
.news-item {
  display: block; text-decoration: none; color: inherit;
  padding: 12px; margin-bottom: 2px; cursor: pointer;
  border-radius: var(--radius-s);
  transition: background .15s;
}
.news-item:hover { background: var(--fill); text-decoration: none; }
.news-item .news-open { margin-left: auto; color: var(--accent); font-size: 0.66rem; font-weight: 600; }
.news-item .news-title { font-weight: 600; font-size: 0.85rem; line-height: 1.4; margin-bottom: 6px; color: var(--ink); }
.news-item .news-meta { color: var(--muted); font-size: 0.68rem; display: flex; gap: 8px; }
.news-item .news-summary { color: var(--muted); font-size: 0.76rem; margin-top: 6px; line-height: 1.5; }
.news-item .news-tags { margin-top: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.news-item .news-tag {
  background: var(--fill); color: var(--muted);
  padding: 1px 8px; font-size: 0.62rem; font-weight: 500; border-radius: 3px;
}

/* ---------- Aktivitäten ---------- */
.alert-list { padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.alert-item {
  padding: 8px 12px; font-size: 0.76rem;
  border-left: 3px solid var(--border-strong); background: var(--bg);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  line-height: 1.4;
}
.alert-item.info { border-left-color: var(--accent); color: var(--ink); }
.alert-item.warning { border-left-color: var(--warn); color: var(--warn); }
.alert-item.success { border-left-color: var(--ok); color: var(--ok); }
.activity-item {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 9px 12px; border-bottom: 1px solid var(--border);
  font-size: 0.76rem; line-height: 1.4;
}
.activity-item:last-child { border-bottom: none; }
.activity-ico { flex-shrink: 0; }
.activity-main { flex: 1; min-width: 0; color: var(--ink); }
.activity-time { display: block; color: var(--muted); font-size: 0.64rem; margin-top: 2px; }

/* ---------- Standort-Karte ---------- */
.loc-card { padding: 14px; font-size: 0.8rem; }
.loc-name { color: var(--ink); font-size: 0.92rem; font-weight: 700; letter-spacing: -0.01em; }
.loc-coord { color: var(--muted); font-size: 0.7rem; margin-top: 4px; font-family: var(--mono); }
.loc-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.loc-metrics label { color: var(--muted); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.07em; display: block; }
.loc-metrics b { color: var(--ink); font-size: 0.82rem; }
.loc-metrics b.ok { color: var(--ok); }

/* ---------- Statusleiste ---------- */
.statusbar {
  background: var(--card); border-top: 1px solid var(--border);
  padding: 7px 20px; display: flex; gap: 24px; align-items: center;
  font-size: 0.68rem; color: var(--muted); letter-spacing: 0.03em;
}
.statusbar b { color: var(--ink); }
.statusbar b.ok { color: var(--ok); }
.statusbar-spacer { flex: 1; }
.statusbar-link { color: var(--muted); text-decoration: none; }
.statusbar-link:hover { color: var(--accent); text-decoration: none; }
.footer-legal-link { color: var(--muted); text-decoration: none; }
.footer-legal-link:hover { color: var(--accent); }
.lang-btn { cursor: pointer; }

/* ---------- Dropdowns ---------- */
.dropdown { position: relative; }
.drop-trigger { cursor: pointer; }
.drop-panel {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 200;
  min-width: 230px; max-width: 320px; max-height: 420px; overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  padding: 10px; display: none;
}
.drop-panel.right { left: auto; right: 0; }
.dropdown.open .drop-panel { display: block; }
.dropdown.open .drop-trigger { border-color: var(--accent); color: var(--accent); }
.drop-title {
  font-size: 0.62rem; font-weight: 600; color: var(--muted);
  letter-spacing: 0.08em; padding: 4px 6px 8px; border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.check-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px; font-size: 0.8rem;
  color: var(--ink); cursor: pointer; border-radius: var(--radius-s);
}
.check-item:hover { background: var(--fill); }
.check-item input[type="checkbox"] { accent-color: var(--accent); cursor: pointer; }
.check-item.mini { font-size: 0.72rem; padding: 5px 8px; }
.symbol-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }

.clock-list { display: flex; flex-direction: column; gap: 2px; }
.clock-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 10px; font-size: 0.8rem;
  cursor: pointer; border-radius: var(--radius-s);
}
.clock-row:hover { background: var(--fill); }
.clock-city { color: var(--ink); display: flex; align-items: baseline; gap: 6px; }
.clock-city b { color: var(--accent); font-size: 0.8rem; font-weight: 600; }
.clock-city-sub { color: var(--muted); font-size: 0.68rem; }
.clock-time { color: var(--ink); font-size: 0.85rem; font-family: var(--mono); }

.lang-menu {
  position: fixed; z-index: 1300; min-width: 180px;
  background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  padding: 6px; display: flex; flex-direction: column;
}
.lang-item {
  display: flex; align-items: center; gap: 10px; text-align: left;
  background: transparent; border: none; color: var(--ink);
  font-size: 0.84rem; padding: 8px 10px; border-radius: var(--radius-s); transition: background .15s;
}
.lang-item:hover { background: var(--fill); }
.lang-item.active { color: var(--accent); font-weight: 600; }
.lang-item .lang-code {
  color: var(--muted); font-size: 0.66rem; min-width: 26px;
  border: 1px solid var(--border); padding: 1px 4px; text-align: center; border-radius: 5px;
}

/* ---------- Globale Suche ---------- */
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 800;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  max-height: 320px; overflow: hidden auto;
  box-shadow: var(--shadow-pop);
}
.search-results.hidden { display: none; }
.search-hit {
  display: block; width: 100%; text-align: left; background: transparent;
  border: none; border-bottom: 1px solid var(--border);
  padding: 10px 14px; color: var(--ink); cursor: pointer;
}
.search-hit:last-child { border-bottom: none; }
.search-hit:hover { background: var(--fill); }
.search-hit-name { display: block; font-weight: 600; font-size: 0.85rem; }
.search-hit-sub { display: block; font-size: 0.7rem; color: var(--muted); margin-top: 2px; }
.search-empty { padding: 12px 14px; font-size: 0.76rem; color: var(--muted); }

/* ---------- Firmen-Popup ---------- */
.info-popup {
  position: fixed; z-index: 800; width: 340px; max-height: 78vh; overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  padding: 14px 16px;
  animation: popIn .18s ease-out;
}
.info-popup.hidden { display: none; }
@keyframes popIn { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }
.pop-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.pop-tag { font-size: 0.64rem; font-weight: 600; color: var(--muted); letter-spacing: 0.08em; }
.pop-title { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.pop-sub { color: var(--muted); font-size: 0.74rem; margin-top: 2px; }
.pop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-top: 12px; }
.pop-grid .full { grid-column: span 2; }
.pop-grid label { font-size: 0.6rem; font-weight: 600; color: var(--muted); letter-spacing: 0.07em; display: block; }
.pop-grid b { font-size: 0.8rem; color: var(--ink); font-weight: 500; word-break: break-word; }
.pop-block { margin-top: 12px; }
.pop-block label { font-size: 0.6rem; font-weight: 600; color: var(--muted); letter-spacing: 0.07em; display: block; margin-bottom: 4px; }
.pop-block p { font-size: 0.82rem; color: var(--ink); line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip {
  background: rgba(47, 174, 107, 0.1); color: var(--customer);
  padding: 2px 9px; font-size: 0.66rem; font-weight: 600; border-radius: 3px;
}
.chip.red { background: rgba(224, 72, 79, 0.08); color: var(--supplier); }
.chip.alt { background: var(--accent-tint); color: var(--accent); }
.pop-actions { margin-top: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.pop-actions .btn-primary { flex: 1 1 100%; padding: 10px; font-size: 0.8rem; margin-top: 0; }
.pop-actions .btn-hud.marked-fav { color: #b8860b; background: rgba(245, 197, 24, 0.14); }
.pop-actions .btn-hud.marked-sup { color: var(--supplier); }
.vat-badge {
  display: inline-block; margin: 6px 0 2px;
  font-size: 0.64rem; font-weight: 600;
  color: var(--ok); background: var(--accent-tint);
  padding: 2px 9px; border-radius: 3px;
}

/* ---------- Modale (Deal, Feedback, Melden) ---------- */
.aia-modal {
  position: fixed; inset: 0; z-index: 1300;
  background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.aia-modal.hidden { display: none; }
.aia-modal-box {
  position: relative; width: min(460px, 100%);
  max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--card); border: none; border-radius: 4px;
  box-shadow: var(--shadow-pop);
  padding: 18px 20px;
}
.modal-hint { color: var(--muted); font-size: 0.8rem; line-height: 1.55; margin: 6px 0 12px; }
.modal-label {
  display: block; font-size: 0.64rem; font-weight: 600; color: var(--muted);
  letter-spacing: 0.08em; margin: 10px 0 4px;
}
.aia-modal input, .aia-modal textarea, .aia-modal select {
  width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-s);
  color: var(--text); padding: 10px 12px; font-size: 0.85rem;
}
.aia-modal input:focus, .aia-modal textarea:focus, .aia-modal select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint);
}
.aia-modal textarea { resize: vertical; }
.aia-modal .btn-primary { margin-top: 14px; width: 100%; }
.aia-modal .modal-row { display: flex; gap: 10px; }
.aia-modal .modal-row > div { flex: 1; }
.feedback-thanks { color: var(--ok); font-size: 0.8rem; margin-top: 10px; font-weight: 500; }
.feedback-thanks.hidden { display: none; }

/* ---------- Merkliste & Partner ---------- */
.watch-list { max-height: 240px; overflow-y: auto; padding: 6px; }
.watch-row {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 8px;
  align-items: center; padding: 8px 10px; margin-bottom: 2px;
  font-size: 0.78rem; color: var(--ink);
  border-radius: var(--radius-s); transition: background .15s;
}
.watch-row:hover { background: var(--fill); }
.watch-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.watch-sub { grid-column: 1; color: var(--muted); font-size: 0.68rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.watch-actions { grid-row: 1 / span 2; display: flex; gap: 4px; }
.watch-actions button {
  background: var(--fill); border: none; color: var(--ink);
  font-size: 0.72rem; padding: 4px 8px; border-radius: 3px; transition: background .15s;
}
.watch-actions button:hover { background: var(--fill-hover); }
.watch-actions button.danger:hover { color: var(--danger); background: rgba(224, 51, 60, 0.1); }
.watch-empty { color: var(--muted); font-size: 0.74rem; padding: 14px; text-align: center; line-height: 1.6; }

/* ============ ADMIN / KONTO ============ */
.admin-page { background: var(--bg); display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.admin-tabs {
  display: flex; gap: 4px; padding: 0 16px;
  background: var(--card); border-bottom: 1px solid var(--border);
}
.admin-tab {
  background: transparent; border: none; color: var(--muted);
  padding: 13px 18px; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.03em; border-bottom: 2px solid transparent;
  transition: all .2s; cursor: pointer;
}
.admin-tab:hover { color: var(--ink); }
.admin-tab.active { color: var(--ink); border-bottom-color: var(--accent); }

.admin-layout {
  flex: 1; display: grid; grid-template-columns: 280px 1fr;
  gap: 14px; padding: 14px; overflow: hidden;
}
.admin-sidebar { overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.admin-main { overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding-right: 4px; }

.cat-list { display: flex; flex-direction: column; padding: 6px; }
.cat-btn {
  background: transparent; border: none;
  color: var(--ink); text-align: left; padding: 10px 12px;
  font-size: 0.8rem; font-weight: 500; border-radius: var(--radius-s);
  display: flex; justify-content: space-between; align-items: center;
  transition: background .15s; margin-bottom: 2px;
}
.cat-btn:hover { background: var(--fill); }
.cat-btn.active { background: var(--accent-tint); color: var(--accent); font-weight: 600; }
.cat-count {
  background: var(--fill); color: var(--muted);
  padding: 1px 8px; font-size: 0.68rem; font-weight: 600; border-radius: 3px; min-width: 24px; text-align: center;
}
.cat-btn.active .cat-count { background: rgba(0, 160, 128, 0.16); color: var(--accent); }
.storage { padding: 12px 14px; font-size: 0.78rem; }

.upload-panel { padding: 0; }
.upload-form { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.upload-row { display: flex; flex-direction: column; gap: 6px; }
.upload-row.two { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
.upload-row label { font-size: 0.64rem; font-weight: 600; color: var(--muted); letter-spacing: 0.08em; }
.upload-row select, .upload-row input[type="text"] {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-s);
  color: var(--text); padding: 10px 12px; font-size: 0.85rem;
}
.upload-row select:focus, .upload-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.upload-drop {
  position: relative; display: block; cursor: pointer;
  border: 2px dashed var(--border-strong); border-radius: var(--radius);
  padding: 30px; text-align: center; transition: all .2s;
  background: var(--bg);
}
.upload-drop:hover, .upload-drop.drag { border-color: var(--accent); background: var(--accent-tint); }
.upload-drop.has-file { border-style: solid; border-color: var(--accent); background: var(--accent-tint); }
.upload-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-icon { font-size: 1.6rem; color: var(--accent); font-weight: 700; }
.drop-text { font-size: 0.84rem; font-weight: 600; color: var(--ink); margin-top: 8px; }
.drop-sub { font-size: 0.72rem; color: var(--muted); margin-top: 4px; }

.admin-files-list { padding: 6px; max-height: 42vh; overflow-y: auto; }
.file-row {
  display: grid; grid-template-columns: 40px 1fr auto auto; gap: 12px;
  align-items: center; padding: 12px; margin-bottom: 4px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-s);
  transition: background .15s;
}
.file-row:hover { background: var(--bg); }
.file-icon { font-size: 1.5rem; text-align: center; }
.file-name { font-weight: 600; color: var(--ink); font-size: 0.9rem; }
.file-sub { color: var(--muted); font-size: 0.7rem; margin-top: 2px; }
.file-cat {
  background: var(--fill); color: var(--muted);
  padding: 3px 10px; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.05em; border-radius: 3px;
}
.file-actions { display: flex; gap: 6px; }
.file-actions .btn-hud { text-decoration: none; }

.empty-state { color: var(--muted); font-size: 0.82rem; padding: 40px 20px; text-align: center; line-height: 1.7; }

.quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; padding: 14px; }
.quick-tile {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 12px; text-align: center; cursor: pointer;
  font-size: 0.74rem; font-weight: 600; color: var(--ink);
  letter-spacing: 0.03em; transition: all .2s; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.quick-tile:hover { border-color: var(--border-strong); background: var(--card); box-shadow: var(--shadow-card); text-decoration: none; }
.q-icon { font-size: 1.7rem; }

/* Profil-Formular */
.profile-form { padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.profile-note {
  padding: 10px 14px; background: var(--accent-tint); border-radius: var(--radius-s);
  font-size: 0.76rem; color: var(--muted); line-height: 1.5;
}
.fieldset { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.fs-title {
  font-size: 0.66rem; font-weight: 700; color: var(--ink);
  letter-spacing: 0.08em; margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.fs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.fld { display: flex; flex-direction: column; gap: 5px; }
.fld.full { grid-column: 1 / -1; }
.profile-form .fld > span, .profile-form label span, .op-add-form .fld > span {
  font-size: 0.62rem; font-weight: 600; color: var(--muted); letter-spacing: 0.07em;
}
.profile-form input:not([type="checkbox"]):not([type="radio"]), .profile-form select, .profile-form textarea,
.op-add-form input, .op-add-form textarea {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-s);
  color: var(--text); padding: 10px 12px; font-size: 0.85rem;
}
.profile-form input:focus, .profile-form select:focus, .profile-form textarea:focus,
.op-add-form input:focus, .op-add-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint);
}
.profile-form textarea { resize: vertical; min-height: 60px; }
.profile-actions { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.profile-actions .btn-primary { padding: 12px 24px; margin-top: 0; }
.profile-saved { font-size: 0.8rem; color: var(--ok); font-weight: 600; }
.fs-hint {
  font-size: 0.72rem; color: var(--muted);
  line-height: 1.6; margin: 6px 0 12px;
  border-left: 3px solid var(--border); padding-left: 10px;
}
.mail-status-row { display: flex; align-items: center; gap: 10px; min-height: 38px; flex-wrap: wrap; }
.mail-status { font-size: 0.78rem; font-weight: 600; }
.mail-status.ok { color: var(--ok); }
.mail-status.pending { color: var(--warn); }

/* Abo & Team */
.sub-rows { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.sub-row {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 0.82rem; color: var(--ink);
  border-bottom: 1px solid var(--border); padding-bottom: 7px;
}
.sub-row > span { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.05em; font-weight: 600; align-self: center; }
.sub-actions { display: flex; gap: 8px; padding: 2px 16px 16px; }
.team-list { display: flex; flex-direction: column; gap: 6px; padding: 12px 16px 0; }
.team-row {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--border); background: var(--bg); border-radius: var(--radius-s);
  padding: 9px 12px; font-size: 0.82rem;
}
.team-row b { flex-shrink: 0; color: var(--ink); font-weight: 600; }
.team-row span { flex: 1; color: var(--muted); font-size: 0.74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-row.owner { border-left: 3px solid var(--accent); }
.team-badge {
  font-style: normal; font-size: 0.62rem; font-weight: 600; color: var(--accent);
  background: var(--accent-tint); padding: 2px 8px; border-radius: 3px;
}
.team-form { display: grid; grid-template-columns: 1fr 1.3fr 1fr auto; gap: 8px; padding: 12px 16px 14px; }
.team-form input {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-s);
  color: var(--text); padding: 9px 10px; font-size: 0.8rem;
}
.team-form input:focus { outline: none; border-color: var(--accent); }
.team-form .btn-primary { width: auto; margin-top: 0; padding: 9px 16px; font-size: 0.74rem; }

.payments-list { display: flex; flex-direction: column; gap: 6px; padding: 12px 16px 14px; }
.pay-row {
  display: grid; grid-template-columns: 92px 1fr 1fr 100px auto;
  gap: 10px; align-items: center;
  font-size: 0.76rem; color: var(--muted);
  border: 1px solid var(--border); border-radius: var(--radius-s); padding: 8px 10px;
}
.pay-row b { color: var(--ink); }
.pay-row .pay-amount { color: var(--ink); text-align: right; font-weight: 600; }
.pay-row .btn-hud { text-decoration: none; text-align: center; }
@media (max-width: 600px) {
  .pay-row { grid-template-columns: 1fr 1fr; }
  .pay-row .pay-amount { text-align: left; }
}
.sandbox-note {
  border: 1px dashed var(--warn); color: var(--warn); border-radius: var(--radius-s);
  font-size: 0.7rem; padding: 8px 10px; margin: 10px 0 0; line-height: 1.55;
}
#sub-panel .sandbox-note { margin-top: 10px; }

/* Betreiber-Panel */
.op-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px 16px; }
.op-tile { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-s); padding: 12px; }
.op-tile label { display: block; font-size: 0.6rem; font-weight: 600; color: var(--muted); letter-spacing: 0.07em; }
.op-tile b { font-size: 1.3rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.op-actions { display: flex; gap: 10px; padding: 0 16px 14px; flex-wrap: wrap; align-items: center; }
.op-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.op-table th, .op-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.op-table th { font-size: 0.6rem; font-weight: 600; color: var(--muted); letter-spacing: 0.08em; white-space: nowrap; }
.op-scroll { overflow-x: auto; padding: 4px 16px 16px; }
.op-badge {
  display: inline-block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 2px 9px; border-radius: 3px; white-space: nowrap;
}
.op-badge.active { background: var(--accent-tint); color: var(--accent); }
.op-badge.blocked { background: rgba(224, 51, 60, 0.1); color: var(--danger); }
.op-badge.unclaimed { background: var(--fill); color: var(--muted); border: 1px dashed var(--border-strong); }
.op-badge.founder { background: var(--solid); color: var(--on-solid); }
.op-row-blocked td { opacity: 0.75; }
.op-row-done td { opacity: 0.55; }
.op-actions-cell { white-space: nowrap; }
.op-actions-cell .btn-hud { margin: 1px 2px; }
.op-block-group { display: inline-flex; gap: 4px; align-items: center; }
.op-report-text { max-width: 340px; white-space: normal; line-height: 1.45; }
.op-add-form { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 14px; }

/* ============ CHECKOUT ============ */
body.checkout .auth-card { max-width: 560px; }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.plan-card {
  position: relative; border: 1.5px solid var(--border); background: var(--card); border-radius: var(--radius);
  padding: 16px; cursor: pointer; transition: all .2s;
}
.plan-card:hover { border-color: var(--border-strong); }
.plan-card input { position: absolute; opacity: 0; pointer-events: none; }
.plan-card.active { border-color: var(--accent); background: var(--accent-tint); }
.plan-name { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; color: var(--muted); }
.plan-card.active .plan-name { color: var(--accent); }
.plan-price { font-size: 1.5rem; font-weight: 700; color: var(--ink); margin: 6px 0; letter-spacing: -0.02em; }
.plan-price small { font-size: 0.66rem; color: var(--muted); font-weight: 500; }
.plan-sub { color: var(--muted); font-size: 0.72rem; line-height: 1.7; }
/* Drei Pläne (kostenlos / plus / pro) */
.plan-grid-3 { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.plan-grid-3 .plan-card { padding: 15px 10px 13px; }
.plan-grid-3 .plan-price { font-size: 1.15rem; margin: 5px 0; }
.plan-grid-3 .plan-sub { font-size: 0.66rem; line-height: 1.6; }
.plan-badge {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 0.54rem; font-weight: 700;
  letter-spacing: 0.06em; padding: 2px 9px; border-radius: 3px; white-space: nowrap;
}
#pay-section { margin-top: 8px; }
#pay-section.hidden { display: none; }
.pay-methods { display: flex; gap: 8px; }
.pay-method {
  flex: 1; text-align: center; padding: 10px 6px; border: 1.5px solid var(--border); border-radius: var(--radius-s);
  cursor: pointer; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.03em;
  color: var(--ink); background: var(--card); transition: all .2s;
}
.pay-method.active { border-color: var(--accent); color: var(--accent); background: var(--accent-tint); }
.pay-fields { display: flex; flex-direction: column; gap: 10px; }
.pay-fields.hidden { display: none; }
.pay-summary {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.78rem; color: var(--muted);
  border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px;
}
.pay-summary b { color: var(--ink); font-size: 1.1rem; font-weight: 700; }
.pay-summary b small { color: var(--muted); font-size: 0.66rem; font-weight: 500; }

/* ============ RECHTLICHES ============ */
body.legal-page { background: var(--bg); display: flex; flex-direction: column; }
.legal-layout { flex: 1; display: grid; grid-template-columns: 230px 1fr; gap: 14px; padding: 14px; overflow: hidden; }
.legal-nav {
  display: flex; flex-direction: column; gap: 4px; padding: 12px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  align-self: start; box-shadow: var(--shadow-card);
}
.legal-nav-link {
  font-size: 0.8rem; font-weight: 500;
  color: var(--muted); text-decoration: none; padding: 9px 12px;
  border-radius: var(--radius-s); transition: all .2s;
}
.legal-nav-link:hover { color: var(--ink); background: var(--fill); text-decoration: none; }
.legal-main {
  overflow-y: auto; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 34px; scroll-behavior: smooth; box-shadow: var(--shadow-card);
}
.legal-note {
  border: 1px dashed var(--warn); color: var(--warn); border-radius: var(--radius-s);
  font-size: 0.76rem; padding: 12px 16px; margin-bottom: 28px; line-height: 1.7;
}
.legal-section { margin-bottom: 48px; scroll-margin-top: 16px; }
.legal-section h1 {
  font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em;
  color: var(--ink); border-bottom: 1px solid var(--border);
  padding-bottom: 12px; margin-bottom: 18px;
}
.legal-section h2 { font-size: 0.95rem; margin: 20px 0 8px; color: var(--ink); }
.legal-section p, .legal-section li { color: var(--muted); line-height: 1.75; font-size: 0.88rem; }
.legal-section ul { margin: 8px 0 8px 22px; }
.legal-section b { color: var(--ink); }
.ph { color: var(--warn); background: rgba(178, 94, 9, 0.08); padding: 0 5px; border-radius: 4px; }
.legal-stand { margin-top: 20px; font-size: 0.74rem; color: var(--muted); }

/* ---------- Cookie-Hinweis ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 1200; display: flex; gap: 16px; align-items: center;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-pop);
  max-width: 860px; margin: 0 auto;
}
.cookie-banner.hidden { display: none; }
.cookie-text { flex: 1; color: var(--muted); font-size: 0.8rem; line-height: 1.55; }
.cookie-banner .btn-primary { width: auto; padding: 9px 18px; flex-shrink: 0; margin-top: 0; }

/* ---------- Intro-Modus (Kameraflug im Vollbild) ---------- */
.topbar, .ticker-bar, .statusbar, .dashboard .sidebar, .stat-strip, .matches-section {
  transition: opacity .9s ease;
}
html.intro-mode .topbar, html.intro-mode .ticker-bar, html.intro-mode .statusbar,
html.intro-mode .dashboard .sidebar, html.intro-mode .stat-strip, html.intro-mode .matches-section {
  opacity: 0; pointer-events: none;
}
html.intro-mode .globe-section {
  position: fixed; inset: 0; z-index: 960;
  height: 100vh !important; min-height: 100vh; border: none; border-radius: 0;
}
html.intro-mode .globe-legend, html.intro-mode .globe-controls,
html.intro-mode .globe-hud, html.intro-mode .globe-resize { opacity: 0; pointer-events: none; }

/* =====================================================
   MOBILE-APP-SHELL: Tabs + untere Navigationsleiste
   ===================================================== */
.app-tabs {
  flex: 1; position: relative; overflow: hidden;
  width: 100%; max-width: 640px; margin: 0 auto;
}
.tab-panel {
  display: none; height: 100%; overflow-y: auto;
  flex-direction: column; gap: 14px;
  padding: 14px 14px calc(80px + env(safe-area-inset-bottom, 0px));
}
.tab-panel.active { display: flex; }

/* Kennzahlen kompakter in der schmalen App-Spalte */
.app-tabs .stat-strip { grid-template-columns: repeat(3, 1fr); }
.tab-panel .ticker-bar { border: 1px solid var(--border); border-radius: var(--radius); }

/* Geld-Volumen (Startseite) */
.money-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px 14px; }
.money-card {
  border: 1px solid var(--border); border-radius: var(--radius-s);
  padding: 12px; display: flex; flex-direction: column; gap: 6px; background: var(--fill);
}
.money-card label { font-size: 0.6rem; font-weight: 600; color: var(--muted); letter-spacing: 0.06em; }
.money-card b { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
.money-card.income b { color: var(--ok); }
.money-card.expense b { color: var(--danger); }
.money-card.trade b { color: var(--ink); }
.mini-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0 14px 14px; }
.mini-metrics > div { display: flex; flex-direction: column; gap: 3px; }
.mini-metrics label { font-size: 0.56rem; font-weight: 600; color: var(--muted); letter-spacing: 0.05em; }
.mini-metrics b { font-size: 0.98rem; font-weight: 700; color: var(--ink); }

/* Profil-Links */
.profile-links { padding-bottom: 4px; }
.profile-link {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; text-align: left; padding: 14px; background: none;
  border: none; border-bottom: 1px solid var(--border); color: var(--text);
  font-size: 0.9rem; font-weight: 500;
}
.profile-link:last-child { border-bottom: none; }
.profile-link:hover { background: var(--fill); text-decoration: none; }
.profile-link .chev { color: var(--muted); font-size: 1.15rem; line-height: 1; }
.profile-link.logout { color: var(--danger); }

/* Platzhalter-Tab (Kalender) */
.tab-placeholder .placeholder-body {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 44px 24px; text-align: center; color: var(--muted);
}
.tab-placeholder .placeholder-body svg { color: var(--accent); opacity: 0.85; }
.tab-placeholder .placeholder-body p { font-size: 0.9rem; line-height: 1.5; max-width: 320px; }

/* Untere Navigationsleiste */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  max-width: 640px; margin: 0 auto;
  display: flex; background: var(--card);
  border-top: 1px solid var(--border);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -3px 18px rgba(0, 0, 0, 0.08);
}
:root[data-theme="dark"] .bottom-nav { background: rgba(24, 24, 26, 0.97); }
.nav-item {
  flex: 1; position: relative; background: none; border: none;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 2px 3px; color: var(--muted);
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.01em; transition: color .15s;
}
.nav-item svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-item span:not(.nav-badge) { white-space: nowrap; }
.nav-item.active { color: var(--accent); }
.nav-item:active { transform: scale(0.94); }
.nav-badge {
  position: absolute; top: 1px; left: 50%; margin-left: 5px;
  min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px;
  background: var(--danger); color: #fff; font-size: 0.56rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.nav-badge.hidden { display: none; }

/* Glocken-Popup (Benachrichtigungen) oben rechts */
#notif-popup {
  position: fixed; top: 58px; right: 14px; left: auto;
  width: min(92vw, 340px); max-height: 70vh; overflow-y: auto; z-index: 1200;
}

/* News-Feed (Startseite) */
.feed-tabs { display: flex; gap: 6px; padding: 10px 12px; overflow-x: auto; border-bottom: 1px solid var(--border); scrollbar-width: none; }
.feed-tabs::-webkit-scrollbar { display: none; }
.feed-tab { flex: 0 0 auto; background: var(--fill); border: none; color: var(--muted); padding: 7px 14px; border-radius: 3px; font-size: 0.74rem; font-weight: 600; white-space: nowrap; transition: background .15s, color .15s; }
.feed-tab.active { background: var(--accent); color: #fff; }
.feed-dots { display: flex; justify-content: center; gap: 6px; padding: 9px 0 3px; }
.feed-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); transition: all .25s; }
.feed-dot.active { background: var(--accent); width: 18px; border-radius: 3px; }
.feed-composer { display: flex; gap: 8px; padding: 10px 12px; }
.feed-composer input { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-s); padding: 9px 12px; color: var(--text); font-size: 0.86rem; }
.feed-composer input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.feed-composer button { flex-shrink: 0; background: var(--accent); color: #fff; border: none; border-radius: 3px; padding: 8px 16px; font-size: 0.74rem; font-weight: 600; }
.feed-composer button:hover { background: var(--accent-strong); }
.feed-list { display: flex; flex-direction: column; }
.feed-post { padding: 12px 14px; border-top: 1px solid var(--border); }
.feed-post:first-child { border-top: none; }
.feed-post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.feed-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.72rem; flex-shrink: 0; }
.feed-meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.feed-meta b { font-size: 0.85rem; color: var(--ink); }
.feed-meta span { font-size: 0.68rem; color: var(--muted); }
.feed-mine { margin-left: auto; font-size: 0.56rem; font-weight: 700; color: var(--accent); border: 1px solid var(--accent); border-radius: 6px; padding: 1px 5px; letter-spacing: 0.04em; }
.feed-text { font-size: 0.88rem; line-height: 1.5; color: var(--text); margin-bottom: 10px; white-space: pre-wrap; word-break: break-word; }
.feed-reacts { display: flex; gap: 8px; }
.feed-react { display: inline-flex; align-items: center; gap: 5px; background: var(--fill); border: 1px solid transparent; color: var(--muted); border-radius: 3px; padding: 5px 11px; font-size: 0.78rem; font-weight: 600; transition: all .15s; }
.feed-react:hover { background: var(--fill-hover); }
.feed-react span { font-variant-numeric: tabular-nums; }
.feed-react.heart.on { color: #e0333c; background: rgba(224, 51, 60, 0.12); border-color: rgba(224, 51, 60, 0.32); }
.feed-react.like.on { color: var(--accent); background: var(--accent-tint); border-color: rgba(0, 160, 128, 0.32); }
.feed-react.dislike.on { color: var(--ink); background: var(--fill-hover); border-color: var(--border-strong); }
.feed-empty, .feed-loading { padding: 26px 14px; text-align: center; font-size: 0.85rem; }

/* Kalender – Wochenansicht (Apple-Clean) */
.cal-widget { overflow: hidden; }
.cal-toolbar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.cal-nav { display: inline-flex; gap: 6px; align-items: center; }
.cal-btn { background: var(--fill); border: none; color: var(--ink); border-radius: var(--radius-s); min-width: 34px; height: 34px; padding: 0 12px; font-size: 0.9rem; font-weight: 600; }
.cal-btn:hover { background: var(--fill-hover); }
.cal-today-btn { font-size: 0.76rem; }
.cal-title { font-size: 0.95rem; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.cal-add-btn { margin: 0 0 0 auto; padding: 9px 16px; font-size: 0.78rem; }

.cal-scroll { overflow: auto; max-height: 66vh; }
.cal-grid { min-width: 620px; }
.cal-head, .cal-body { display: grid; grid-template-columns: 52px repeat(7, 1fr); }
.cal-head { position: sticky; top: 0; z-index: 3; background: var(--card); border-bottom: 1px solid var(--border); }
.cal-gutter-head { border-right: 1px solid var(--border); }
.cal-day-head { text-align: center; padding: 8px 2px; border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; align-items: center; }
.cal-dow { font-size: 0.62rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.cal-dnum { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.cal-day-head.today .cal-dnum { color: #fff; background: var(--accent); min-width: 28px; height: 28px; line-height: 28px; border-radius: 50%; font-size: 0.9rem; }
.cal-day-head.today .cal-dow { color: var(--accent); }

.cal-gutter { position: relative; border-right: 1px solid var(--border); }
.cal-hour-label { height: 46px; font-size: 0.6rem; color: var(--muted); text-align: right; padding: 0 6px 0 0; transform: translateY(-5px); }
.cal-col { position: relative; border-left: 1px solid var(--border); background-image: linear-gradient(var(--border) 1px, transparent 1px); background-size: 100% 46px; cursor: pointer; }
.cal-col.today { background-color: var(--accent-tint); }
.cal-event {
  position: absolute; left: 3px; right: 3px; text-align: left;
  border: none; border-left: 3px solid var(--ev); border-radius: 6px;
  background: var(--fill);
  background: color-mix(in srgb, var(--ev) 16%, var(--card));
  color: var(--ink); padding: 3px 6px; overflow: hidden;
  display: flex; flex-direction: column; gap: 1px; font-size: 0.68rem; line-height: 1.15;
}
.cal-event:hover { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14); }
.cal-ev-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev-time { color: var(--muted); font-size: 0.62rem; }
.cal-ev-invite { color: var(--muted); font-size: 0.6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-event.pending { border-left-style: dashed; }

/* Termin-Modal: Farbwahl */
.appt-colors { display: flex; gap: 8px; padding-top: 4px; }
.appt-color { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; }
.appt-color.active { border-color: var(--ink); box-shadow: 0 0 0 2px var(--card) inset; }
#appt-delete { width: 100%; margin-top: 8px; text-align: center; color: var(--danger); }
#appt-delete.hidden { display: none; }

/* Wartebereich-Mini-Games (Bounce · Snake · Memory) */
.game-widget .widget-head { text-transform: none; }
.game-scores { font-size: 0.66rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.game-scores b { color: var(--ink); }
.game-tabs { display: flex; gap: 6px; padding: 10px 14px 0; }
.game-tab { flex: 1; background: var(--fill); border: none; color: var(--muted); padding: 7px 6px; border-radius: 3px; font-size: 0.72rem; font-weight: 600; transition: background .15s, color .15s; }
.game-tab.active { background: var(--accent); color: #fff; }
.game-stage { position: relative; height: 200px; margin-top: 10px; background: var(--fill); overflow: hidden; }
#game-canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: ew-resize; }
#game-canvas.hidden { display: none; }
.memory-board { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px; }
.memory-board.hidden { display: none; }
.mem-card {
  border: none; border-radius: var(--radius-s); background: var(--accent); color: #fff;
  font-size: 1.2rem; display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .15s, transform .1s;
}
.mem-card > span { pointer-events: none; }
.mem-card.open { background: var(--card); }
.mem-card.done { background: var(--accent-tint); cursor: default; }
.mem-card:not(.open):not(.done) > span { opacity: 0; }
.game-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 16px;
  background: color-mix(in srgb, var(--card) 80%, transparent);
  background: var(--card);
}
.game-overlay.hidden { display: none; }
.game-msg { font-size: 0.82rem; color: var(--muted); max-width: 280px; line-height: 1.5; }
.game-overlay .btn-primary { margin-top: 0; padding: 9px 18px; font-size: 0.8rem; }

/* Intro (Kameraflug): nur die Karte im Markt-Tab im Vollbild anzeigen */
html.intro-mode .tab-panel:not(#tab-market) { display: none !important; }
html.intro-mode #tab-market { display: flex !important; }
html.intro-mode #tab-market > *:not(.globe-section) { display: none !important; }
html.intro-mode .bottom-nav { opacity: 0; pointer-events: none; }

/* =====================================================
   WEBSITE-ANSICHT (breite Bildschirme): Inhalte nebeneinander.
   Handy + iPad bleiben einspaltig; ab 1200px volles Raster.
   ===================================================== */
@media (min-width: 1200px) {
  /* Website-Version: volle Bildschirmbreite ausnutzen */
  .app-tabs { max-width: none; }
  .tab-panel { padding-left: 22px; padding-right: 22px; }
  .bottom-nav { max-width: none; padding-left: 22px; padding-right: 22px; }

  /* Kennzahlen wieder über die volle Breite (6 Spalten) */
  .app-tabs .stat-strip { grid-template-columns: repeat(6, 1fr); }

  /* STARTSEITE als Dashboard-Raster: Ticker/Kennzahlen/Geld voll,
     Pipeline · Updates · News · Aktivitäten nebeneinander in 2 Spalten */
  #tab-home.tab-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
  #tab-home > .ticker-bar,
  #tab-home > .stat-strip,
  #tab-home > .money-widget,
  #tab-home > .feed-widget { grid-column: 1 / -1; }

  /* MARKT: Karte + Firmen-Finder nebeneinander, Listen/Matches darunter voll */
  #tab-market.tab-panel.active { display: grid; grid-template-columns: 1.7fr 1fr; gap: 14px; align-content: start; }
  #tab-market > .globe-section { grid-column: 1; grid-row: 1; height: 64vh; }
  #tab-market > .finder-panel { grid-column: 2; grid-row: 1; align-self: stretch; overflow-y: auto; }
  #tab-market > .widget,
  #tab-market > .matches-section { grid-column: 1 / -1; }
  #tab-market .cards { grid-template-columns: repeat(2, 1fr); }

  /* CHAT: Liste links, Unterhaltung rechts (Messenger-/Teams-Layout) */
  #tab-chat.tab-panel.active { display: grid; grid-template-columns: 340px 1fr; gap: 14px; align-items: start; }
  #tab-chat > .chat-widget { position: sticky; top: 0; }
  #tab-chat > .chat-pane { position: relative; height: 74vh; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; }
  #tab-chat .chat-window { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: none; border-radius: 0; }
  #tab-chat .chat-empty { position: absolute; inset: 0; }

  /* PROFIL: Standort + Dateien nebeneinander, Konto-Links voll */
  #tab-profile.tab-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
  #tab-profile > .profile-links { grid-column: 1 / -1; }
}

/* Sehr breite Bildschirme: Startseite 3-spaltig, damit die Fläche gefüllt wird */
@media (min-width: 1700px) {
  #tab-home.tab-panel.active { grid-template-columns: 1fr 1fr 1fr; }
  #tab-market.tab-panel.active { grid-template-columns: 2fr 1fr; }
  #tab-market > .matches-section .cards { grid-template-columns: repeat(3, 1fr); }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1200px) {
  .layout { grid-template-columns: 280px 1fr 300px; }
  .stat-strip { grid-template-columns: repeat(3, 1fr); }
  .company-name { display: none; }
}
@media (max-width: 900px) {
  html, body { overflow: auto; height: auto; min-height: 100%; }
  body.dashboard, body.admin-page, body.legal-page { height: auto; min-height: 100vh; }

  .topbar { flex-wrap: wrap; gap: 8px; padding: 8px 12px; }
  .topbar-left { flex-wrap: wrap; gap: 6px; }
  .topbar-right { margin-left: auto; gap: 6px; }
  .search-wrap { order: 5; flex-basis: 100%; max-width: none; min-height: 42px; }
  .search-kbd { display: none; }
  #hud-signal, #hud-latency, #hud-clock { display: none; }

  .ticker-bar { padding: 6px 10px; gap: 8px; }
  .ticker-track { animation-duration: 34s; }

  .layout { display: flex; flex-direction: column; overflow: visible; height: auto; }
  .main { order: 1; overflow: visible; }
  .sidebar.left { order: 2; }
  .sidebar.right { order: 3; }
  .sidebar { max-height: none; overflow: visible; }

  .stat-strip { grid-template-columns: repeat(3, 1fr); }
  .globe-section { height: 52vh; min-height: 320px; }
  .globe-controls { top: 46px; left: 10px; }
  .globe-controls .btn-hud { padding: 9px 12px; }
  .globe-legend { bottom: 12px; left: 10px; right: 10px; flex-wrap: wrap; gap: 8px 14px; padding: 8px 12px; border-radius: var(--radius); }

  .chat-window, .chat-window.expanded {
    position: fixed; inset: 0; width: 100%; height: 100%;
    top: 0; left: 0; z-index: 1100; border: none; border-radius: 0;
  }
  #chat-resize { display: none; }
  .chat-form input { min-height: 42px; }
  .chat-form button[type="submit"] { min-width: 44px; }

  .info-popup {
    position: fixed; left: 50% !important; top: 50% !important;
    transform: translate(-50%, -50%);
    width: min(92vw, 380px); max-height: 84vh; overflow-y: auto;
  }
  .drop-panel { max-width: min(92vw, 340px); }

  .btn-hud, .btn-ghost, .hud-chip.drop-trigger { min-height: 38px; }
  .tab { min-height: 44px; }

  .statusbar { flex-wrap: wrap; gap: 10px 18px; padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px)); }

  .admin-layout { grid-template-columns: 1fr; overflow: visible; height: auto; }
  .admin-sidebar, .admin-main { overflow: visible; }
  .admin-tabs { overflow-x: auto; }
  .fs-grid { grid-template-columns: 1fr; }
  .op-grid { grid-template-columns: 1fr 1fr; }

  .landing-overlay { padding: 24px 16px; gap: 24px; }
  .logo { font-size: 1.9rem; }
  .hud-top { flex-wrap: wrap; }
  .card-frame { padding: 26px 20px 22px; }
  .auth-form input, .auth-form textarea, .auth-form .btn-primary { min-height: 44px; }
  .landing-footer { flex-wrap: wrap; gap: 8px 16px; justify-content: center; text-align: center; }

  .legal-layout { grid-template-columns: 1fr; overflow: visible; height: auto; }
  .legal-nav { flex-direction: row; flex-wrap: wrap; position: sticky; top: 0; z-index: 5; }
  .legal-main { overflow: visible; padding: 20px 16px; }

  .intro-hud { left: 16px; right: 16px; bottom: 32px; }
  .intro-boot { font-size: 0.74rem; padding: 12px 14px; }
}
@media (max-width: 760px) {
  .plan-grid { grid-template-columns: 1fr; }
  .team-form { grid-template-columns: 1fr; }
  .pay-methods { flex-direction: column; }
}
@media (max-width: 600px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .section-title { flex-direction: column; align-items: flex-start; gap: 10px; }
  .section-actions { flex-wrap: wrap; }
  .cards { grid-template-columns: 1fr; }
  .globe-legend { display: none; }
  .globe-section { height: 46vh; min-height: 280px; }
  .ticker-label { display: none; }
  .tagline { font-size: 0.82rem; }
  .cookie-banner { flex-direction: column; align-items: stretch; left: 10px; right: 10px; }
  .cookie-banner .btn-primary { width: 100%; }
  .topbar .logo { font-size: 1.05rem; }
  .legal-section h1 { font-size: 1rem; }
}

/* ============== v1.2: Zwei-Faktor-Authentifizierung (Admin) ============== */
.twofa-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.twofa-step { font-size: 0.82rem; color: var(--text); margin: 4px 0 0; }
.twofa-key {
  font-family: var(--mono); font-size: 1.05rem; letter-spacing: 2px; font-weight: 600;
  background: var(--fill); border: 1px solid var(--border); border-radius: var(--radius-s);
  padding: 12px 14px; color: var(--ink); word-break: break-all; user-select: all;
}
.twofa-uri-hint { font-size: 0.72rem; color: var(--muted); margin: 2px 0 0; }
.twofa-uri {
  font-family: var(--mono); font-size: 0.68rem; color: var(--muted);
  background: var(--fill); border: 1px solid var(--border); border-radius: var(--radius-s);
  padding: 8px 10px; word-break: break-all; user-select: all;
}
.twofa-confirm-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.twofa-confirm-row input {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-s);
  color: var(--text); padding: 10px 12px; font-family: var(--mono); font-size: 1rem;
  letter-spacing: 3px; width: 140px; text-align: center;
}
.twofa-confirm-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.twofa-confirm-row .btn-primary { margin-top: 0; padding: 10px 18px; }
.twofa-active { color: var(--ok); font-size: 0.9rem; font-weight: 600; margin: 0; }
#twofa-start { width: auto; margin-top: 0; }

/* =====================================================
   XINA – High-Contrast Engineering Skin
   Dunkle Navigations-Chrome + heller Arbeitsbereich, snappy
   Titel, Karten mit winzigem Schatten statt Rand, Netzwerk-Nodes,
   Live Synergy Radar (Terminal). (steht bewusst am Dateiende)
   ===================================================== */

/* --- 1. Dunkle Chrome: Topbar + Bottom-Nav in beiden Modes --- */
.topbar { background: #111827 !important; border-bottom: 1px solid #0B111E; backdrop-filter: none; }
.topbar .logo { color: #fff; }
.topbar .logo span { color: var(--accent); }
.topbar .hud-chip { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.10); color: rgba(255, 255, 255, 0.82); }
.topbar .hud-chip:hover { background: rgba(255, 255, 255, 0.10); }
.topbar .hud-chip.verified { background: var(--accent-tint); color: var(--accent); border-color: transparent; box-shadow: inset 0 0 0 1px var(--accent-tint); }
.topbar #hud-clock, .topbar #hud-response, .topbar #clock-selected { color: #fff; }
.topbar .company-name { color: rgba(255, 255, 255, 0.85); }
.topbar .search-wrap { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); }
.topbar .search-wrap:focus-within { background: rgba(255, 255, 255, 0.12); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.topbar .search-wrap input { color: #fff; }
.topbar .search-wrap input::placeholder { color: rgba(255, 255, 255, 0.5); }
.topbar .search-prefix { color: rgba(255, 255, 255, 0.55); }
.topbar .search-kbd { color: rgba(255, 255, 255, 0.55); border-color: rgba(255, 255, 255, 0.18); }
.topbar .btn-icon { background: rgba(255, 255, 255, 0.08); color: #fff; }
.topbar .btn-icon:hover { background: rgba(255, 255, 255, 0.16); }
.topbar .theme-track { background: rgba(255, 255, 255, 0.10); border-color: rgba(255, 255, 255, 0.18); }
.topbar .theme-ico { color: rgba(255, 255, 255, 0.75); }
.topbar .theme-knob { background: #fff; }

.bottom-nav { background: #111827; border-top: 1px solid #0B111E; box-shadow: none; }
.nav-item { color: rgba(255, 255, 255, 0.55); }
.nav-item.active { color: var(--accent); }

/* --- 2. Snappy Card-Titel: fetter, kleiner, dunkles mattes Grau --- */
.widget-head { font-weight: 700; font-size: 0.62rem; color: var(--heading); letter-spacing: 0.06em; padding: 13px 16px; }
.stat label, .money-card label, .mini-metrics label { font-weight: 700; color: var(--heading); }
.bs-col label, .trust-grid label, .cal-title { font-weight: 700; }

/* --- 3. Karten: winziger Schatten statt Rand + mehr Innenabstand --- */
.widget, .stat, .card, .globe-section, .finder-panel, .matches-section {
  border-color: transparent; box-shadow: var(--shadow-card);
}
.stat { padding: 15px 16px; }
.money-card { padding: 14px; }
.card { padding: 18px; }
.money-strip, .mini-metrics { padding-left: 16px; padding-right: 16px; }

/* --- 4. Live Synergy Radar: Terminal-Feed --- */
.radar-widget .widget-head { display: flex; align-items: center; justify-content: space-between; }
.radar-live { display: inline-flex; align-items: center; gap: 5px; font-size: 0.55rem; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); }
.radar-feed {
  padding: 10px 12px 12px; background: #0D1420; border-top: 1px solid #0B111E;
  font-family: var(--mono); font-size: 0.72rem; line-height: 1.4;
  max-height: 236px; overflow: hidden; display: flex; flex-direction: column; gap: 4px;
}
.radar-line { display: flex; align-items: baseline; gap: 8px; color: #C3CCD8; animation: radarIn .35s ease; }
.radar-time { flex-shrink: 0; color: #5B6675; font-size: 0.64rem; }
.radar-glyph { flex-shrink: 0; width: 12px; text-align: center; color: var(--accent); }
.radar-text { min-width: 0; }
.radar-text b { color: #EAF0F6; font-weight: 400; }
.radar-line.match .radar-glyph { text-shadow: 0 0 7px var(--accent); }
.radar-line.match .radar-text b:last-child { color: var(--accent); }
.radar-line.deal .radar-glyph { color: #E0B341; }
.radar-line.offer .radar-glyph { color: #4DA3FF; }
@keyframes radarIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
