/* ═══════════════════════════════════════════════════════════════
   ZEYNAH OS — DESIGN-SYSTEM (verbindlich, aus Zeynah-Bau extrahiert)
   Anthrazit statt Schwarz. Creme statt Weiss. Ein Blau.
   Schachbrett: dunkel / hell abwechselnd. Glasige Kacheln, schwebend.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Anthrazit — KEIN reines Schwarz */
  --bg: #1c1f24;
  --bg-elevated: #24272d;
  --bg-deep: #17191d;
  --glass: linear-gradient(160deg, rgba(58, 63, 72, 0.55), rgba(36, 40, 47, 0.55));
  --glass-solid: linear-gradient(160deg, rgba(58, 63, 72, 0.85), rgba(36, 40, 47, 0.85));
  --glass-border: rgba(236, 231, 221, 0.12);
  --glass-border-hover: rgba(236, 231, 221, 0.22);

  /* Creme / Off-White — KEIN reines Weiss */
  --text: #ece7dd;
  --text-secondary: #a9a69d;
  --text-muted: #78756d;
  --creme-auf-blau: #faf7f2;

  /* Helle Schachbrett-Seite */
  --cream-bg: #f2ede3;
  --cream-bg-soft: #ebe3d6;
  --ink: #23262c;
  --ink-secondary: #5a574f;
  --ink-muted: #8a867c;

  /* EIN Blau */
  --accent: #0071e3;
  --accent-deep: #0057ad;
  --accent-light: #4c9bf0;
  --accent-glow: rgba(0, 113, 227, 0.15);

  --green: #30d158;
  --green-deep: #1e7e34;
  --yellow: #ffd60a;
  --red: #ff453a;
  --orange: #ff9f0a;

  --space-xs: 4px; --space-sm: 8px; --space-md: 16px;
  --space-lg: 24px; --space-xl: 32px; --space-2xl: 48px;
  --space-3xl: 64px; --space-4xl: 100px;
  --r-sm: 12px; --r-md: 16px; --r-lg: 20px; --r-xl: 24px;
  --shadow-glass: 0 18px 50px rgba(10,12,15,0.55), inset 0 1px 0 rgba(236,231,221,0.09);
  --shadow-hover: 0 34px 80px rgba(10,12,15,0.7), inset 0 1px 0 rgba(236,231,221,0.12);
  --t: 0.3s cubic-bezier(0.4,0,0.2,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.5; -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.container { max-width: 1140px; margin: 0 auto; padding: 0 32px; }
img, video { max-width: 100%; display: block; }
a { color: var(--accent-light); text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
button { font-family: inherit; cursor: pointer; }

[dir="rtl"] body { letter-spacing: 0; }

/* ── GLASS ── */
.glass {
  background: var(--glass);
  backdrop-filter: blur(50px) saturate(2);
  -webkit-backdrop-filter: blur(50px) saturate(2);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-glass);
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.glass.hoverable:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* ── SCHACHBRETT helle Seite ── */
.section-light { background: var(--cream-bg); color: var(--ink); }
.section-light .glass {
  background: linear-gradient(160deg, rgba(255,255,255,0.78), rgba(255,255,255,0.52));
  border: 1px solid rgba(35,38,44,0.08);
  box-shadow: 0 18px 50px rgba(95,85,65,0.16), inset 0 1px 0 rgba(255,255,255,0.85);
}
.section-light .glass.hoverable:hover {
  border-color: rgba(35,38,44,0.16);
  box-shadow: 0 34px 80px rgba(95,85,65,0.24), inset 0 1px 0 rgba(255,255,255,0.9);
}
.section-light h1, .section-light h2, .section-light h3, .section-light h4 { color: var(--ink); }
.section-light p, .section-light li { color: var(--ink-secondary); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px; border: none;
  font-size: 16px; font-weight: 600; letter-spacing: 0.01em;
  transition: all var(--t); white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--creme-auf-blau);
  box-shadow: 0 10px 30px rgba(0,113,227,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0,113,227,0.45); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--glass-border-hover);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-light); }
.section-light .btn-ghost { color: var(--ink); border-color: rgba(35,38,44,0.25); }
.section-light .btn-ghost:hover { border-color: var(--accent-deep); color: var(--accent-deep); }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ── Badges / Pills ── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.badge-demo { background: rgba(255,159,10,0.16); color: var(--orange); border: 1px solid rgba(255,159,10,0.4); }
.badge-live { background: rgba(48,209,88,0.14); color: var(--green); border: 1px solid rgba(48,209,88,0.35); }
.badge-plan { background: rgba(0,113,227,0.14); color: var(--accent-light); border: 1px solid rgba(0,113,227,0.35); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-green { background: var(--green); box-shadow: 0 0 10px rgba(48,209,88,0.7); }
.dot-yellow { background: var(--yellow); box-shadow: 0 0 10px rgba(255,214,10,0.6); }
.dot-red { background: var(--red); box-shadow: 0 0 10px rgba(255,69,58,0.6); }
.dot-orange { background: var(--orange); box-shadow: 0 0 10px rgba(255,159,10,0.6); }
.dot-blue { background: var(--accent); box-shadow: 0 0 10px rgba(0,113,227,0.6); }

/* ── Landing ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(30px) saturate(1.8);
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
  background: rgba(28,31,36,0.72);
  border-bottom: 1px solid var(--glass-border);
}
.nav-inner { max-width: 1140px; margin: 0 auto; padding: 14px 32px; display: flex; align-items: center; gap: 24px; }
.nav-logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 19px; color: var(--text); letter-spacing: 0.02em; }
.nav-logo img { width: 34px; height: 34px; border-radius: 50%; }
.nav-links { display: flex; gap: 26px; margin-inline-start: auto; align-items: center; }
.nav-links a { color: var(--text-secondary); font-size: 15px; font-weight: 500; transition: color var(--t); }
.nav-links a:hover { color: var(--text); }

.lang-switch { display: flex; gap: 4px; background: rgba(236,231,221,0.06); border: 1px solid var(--glass-border); border-radius: 999px; padding: 3px; }
.lang-switch button {
  background: transparent; border: none; color: var(--text-secondary);
  padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; transition: all var(--t);
}
.lang-switch button.active { background: var(--accent); color: var(--creme-auf-blau); }
.section-light .lang-switch, .lang-switch.on-light { background: rgba(35,38,44,0.05); border-color: rgba(35,38,44,0.12); }
.lang-switch.on-light button { color: var(--ink-secondary); }
.lang-switch.on-light button.active { background: var(--accent-deep); color: var(--creme-auf-blau); }

.section { padding: var(--space-4xl) 0; }
.section-head { max-width: 720px; margin: 0 auto var(--space-2xl); text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 14px; }
.section-head p { font-size: 18px; color: var(--text-secondary); }
.section-light .section-head p { color: var(--ink-secondary); }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-light); margin-bottom: 16px;
}
.section-light .eyebrow { color: var(--accent-deep); }

.hero { padding: 170px 0 110px; position: relative; overflow: hidden; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; pointer-events: none; opacity: 0.9;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(28,31,36,0.6) 0%, rgba(28,31,36,0.42) 45%, rgba(28,31,36,0.88) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(700px 420px at 12% -10%, rgba(0,113,227,0.22), transparent 65%),
    radial-gradient(600px 380px at 88% 8%, rgba(76,155,240,0.12), transparent 60%);
}
.hero h1 { font-size: clamp(38px, 6vw, 68px); letter-spacing: -0.025em; margin: 18px 0 22px; }
.hero h1 .serif { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; color: var(--accent-light); }
.hero-sub { font-size: clamp(17px, 2vw, 21px); color: var(--text-secondary); max-width: 640px; }
.hero-cta { display: flex; gap: 16px; margin-top: 38px; flex-wrap: wrap; }
.hero-flow {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 52px; align-items: center;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--text-muted);
}
.hero-flow span { padding: 7px 14px; border: 1px solid var(--glass-border); border-radius: 999px; background: rgba(236,231,221,0.04); }
.hero-flow i { color: var(--accent); font-style: normal; }

/* IMPRESSUM */
.imp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.imp-col { padding: 36px 32px; }
.imp-col h4 { font-size: 13px; font-weight: 700; color: var(--text-muted); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.08em; }
.imp-col p, .imp-col a { font-size: 14px; color: var(--text-secondary); line-height: 1.8; }
.imp-col a { color: var(--accent-light); }
.imp-col a:hover { text-decoration: underline; }

/* COOKIE BANNER (DSGVO) */
.cookie-banner { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); max-width: 480px; width: 90%; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; z-index: 9999; }
.cookie-banner p { font-size: 13px; color: var(--text-secondary); }
.cookie-btn { padding: 8px 20px; border-radius: 999px; font-size: 13px; font-weight: 600; border: none; background: var(--accent); color: var(--creme-auf-blau); white-space: nowrap; }

/* WHATSAPP FLOAT */
.wa-float { position: fixed; bottom: 28px; left: 28px; z-index: 9000; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: var(--creme-auf-blau); border-radius: 50px; padding: 14px 22px; font-size: 15px; font-weight: 700; letter-spacing: .3px; box-shadow: 0 6px 28px rgba(0,87,173,.34); display: flex; align-items: center; gap: 9px; transition: transform .18s ease, box-shadow .18s ease; }
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(0,87,173,.42); }

/* ELEVENLABS GATE (Zwei-Klick, DSGVO) */
.voice-gate { position: fixed; right: 18px; bottom: 18px; z-index: 9500; max-width: 280px; padding: 16px 18px; border-radius: 14px; border: 2px solid rgba(0,113,227,.5); }
.voice-gate-btn { width: 100%; background: var(--accent); color: var(--creme-auf-blau); border: none; border-radius: 10px; padding: 12px 16px; font-size: 15px; font-weight: 600; transition: background .15s; }
.voice-gate-btn:hover { background: var(--accent-light); }
.voice-gate p { font-size: 11.5px; color: var(--text-muted); margin-top: 10px; line-height: 1.5; }
.voice-gate p a { color: var(--accent-light); }
elevenlabs-convai { z-index: 60; }

[dir="rtl"] .wa-float { left: auto; right: 28px; }
[dir="rtl"] .voice-gate { right: auto; left: 18px; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { padding: 30px; }
.card h3 { font-size: 20px; margin: 14px 0 10px; }
.card p { font-size: 15.5px; }
.card .icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--accent-glow); border: 1px solid rgba(0,113,227,0.3); font-size: 24px;
}
.card .metric { font-size: 34px; font-weight: 800; color: var(--accent-light); letter-spacing: -0.02em; }
.section-light .card .metric { color: var(--accent-deep); }
.card .metric-sub { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.section-light .card .metric-sub { color: var(--ink-muted); }

/* ── Dashboard ── */
.dash { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; position: relative; z-index: 1; }

/* Hintergrundvideo im Dashboard (Avatar-Loop wie Landing-Hero) —
   stark geblurred + abgedunkelt: sichtbare Bewegung, Glas-Effekt, Text bleibt lesbar */
.dash-bg-video {
  position: fixed; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; pointer-events: none;
  filter: blur(42px) brightness(0.68) saturate(1.2);
  transform: scale(1.14);
}
.dash-bg-overlay {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1100px 640px at 8% -12%, rgba(0,113,227,0.20), transparent 62%),
    radial-gradient(900px 560px at 96% 112%, rgba(76,155,240,0.12), transparent 60%),
    linear-gradient(180deg, rgba(28,31,36,0.34) 0%, rgba(28,31,36,0.22) 45%, rgba(28,31,36,0.52) 100%);
}

/* Website-Look: blauer Ambient-Glow hinter dem ganzen Dashboard (wie Hero der Website) */
body:has(.dash) {
  background:
    radial-gradient(1100px 640px at 8% -12%, rgba(0,113,227,0.20), transparent 62%),
    radial-gradient(900px 560px at 96% 112%, rgba(76,155,240,0.11), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

/* Schwebende Panels — liften bei Hover wie die Website-Kacheln */
.dash .panel.glass, .dash .kpi.glass {
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.dash .panel.glass:hover, .dash .kpi.glass:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-hover);
}

/* View-Titel im Website-Stil: Instrument Serif italic */
#viewTitle {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic; font-weight: 400;
  font-size: 34px; color: var(--text); letter-spacing: 0;
}

/* Schachbrett in der KPI-Reihe: jede zweite Kachel hell (Creme) */
.kpi-grid .kpi:nth-child(even) {
  background: linear-gradient(160deg, rgba(255,255,255,0.92), rgba(255,255,255,0.72));
  border: 1px solid rgba(35,38,44,0.08);
  box-shadow: 0 18px 50px rgba(95,85,65,0.20), inset 0 1px 0 rgba(255,255,255,0.85);
}
.kpi-grid .kpi:nth-child(even):hover {
  box-shadow: 0 34px 80px rgba(95,85,65,0.28), inset 0 1px 0 rgba(255,255,255,0.9);
  border-color: rgba(35,38,44,0.16);
}
.kpi-grid .kpi:nth-child(even) .kpi-label { color: var(--ink-muted); }
.kpi-grid .kpi:nth-child(even) .kpi-value { color: var(--ink); }
.kpi-grid .kpi:nth-child(even) .kpi-sub { color: var(--ink-secondary); }
.kpi-grid .kpi:nth-child(even) .up { color: var(--green-deep); }
.kpi-grid .kpi:nth-child(even) .warn { color: #b25f00; }
.kpi-grid .kpi:nth-child(even) .down { color: #a02622; }

/* ── SCHACHBRETT Panels: dunkel / hell abwechselnd (Klasse per JS gesetzt) ── */
.panel-light {
  background: linear-gradient(160deg, rgba(255,255,255,0.94), rgba(255,255,255,0.78));
  border: 1px solid rgba(35,38,44,0.08);
  box-shadow: 0 18px 50px rgba(95,85,65,0.18), inset 0 1px 0 rgba(255,255,255,0.85);
  color: var(--ink);
}
.panel-light:hover {
  box-shadow: 0 34px 80px rgba(95,85,65,0.26), inset 0 1px 0 rgba(255,255,255,0.9);
  border-color: rgba(35,38,44,0.16);
}
.panel-light :is(h1,h2,h3,h4,h5) { color: var(--ink); }
.panel-light p { color: var(--ink-secondary); }
.panel-light .tbl th { color: var(--ink-muted); border-bottom-color: rgba(35,38,44,0.14); }
.panel-light .tbl td { color: var(--ink); border-bottom-color: rgba(35,38,44,0.08); }
.panel-light .tbl tr.clickable:hover { background: rgba(35,38,44,0.04); }
.panel-light .progress { background: rgba(35,38,44,0.12); }
.panel-light .alert-item + .alert-item { border-top-color: rgba(35,38,44,0.09); }
.panel-light .alert-meta, .panel-light .kpi-sub { color: var(--ink-secondary); }
.panel-light .match-ring::before { background: #fdfbf7; }
.panel-light .msg.ai { background: rgba(35,38,44,0.06); border-color: rgba(35,38,44,0.1); color: var(--ink); }
.panel-light .msg.ai b { color: var(--accent-deep); }
.panel-light .chat-input input { background: rgba(35,38,44,0.05); border-color: rgba(35,38,44,0.14); color: var(--ink); }
.panel-light .chip { border-color: rgba(35,38,44,0.16); color: var(--ink-secondary); }
.panel-light .chip:hover { border-color: var(--accent-deep); color: var(--accent-deep); }
.panel-light .opt { background: rgba(35,38,44,0.04); border-color: rgba(35,38,44,0.12); color: var(--ink-secondary); }
.panel-light .opt.sel { background: rgba(0,113,227,0.08); border-color: var(--accent); color: var(--accent-deep); }
.panel-light .step { color: var(--ink-muted); }
.panel-light .step::before { background: rgba(35,38,44,0.15); }
.panel-light .step::after { background: rgba(35,38,44,0.12); }
.panel-light .step.done { color: var(--green-deep); }
.panel-light .step.current { color: var(--accent-deep); }
.panel-light .upload-zone { border-color: rgba(35,38,44,0.2); }
.panel-light .upload-zone p { color: var(--ink-secondary); }
.panel-light .pill-neutral { background: rgba(35,38,44,0.08); color: var(--ink-secondary); }
.panel-light .pill-blue { color: var(--accent-deep); }
.panel-light a { color: var(--accent-deep); }
.panel-light .btn-ghost { color: var(--ink); border-color: rgba(35,38,44,0.25); }
.panel-light .btn-ghost:hover { border-color: var(--accent-deep); color: var(--accent-deep); }
/* Verschachtelte Glas-Karten in hellen Panels → klare weiße Karten */
.panel-light .glass {
  background: linear-gradient(160deg, rgba(255,255,255,0.7), rgba(255,255,255,0.5));
  border-color: rgba(35,38,44,0.09);
  box-shadow: 0 8px 24px rgba(95,85,65,0.10), inset 0 1px 0 rgba(255,255,255,0.7);
  color: var(--ink);
}
.panel-light .glass:hover { transform: none; }
/* Paket-Kacheln hell: Hintergrund + Textfarben */
.dash .pkg-grid .pkg.glass:nth-child(even) {
  background: linear-gradient(160deg, rgba(255,255,255,0.94), rgba(255,255,255,0.78));
  border: 1px solid rgba(35,38,44,0.08);
  box-shadow: 0 18px 50px rgba(95,85,65,0.18), inset 0 1px 0 rgba(255,255,255,0.85);
  color: var(--ink);
}
.dash .pkg-grid .pkg.glass:nth-child(even) .tier { color: var(--accent-deep); }
.dash .pkg-grid .pkg.glass:nth-child(even) .price { color: var(--ink); }
.dash .pkg-grid .pkg.glass:nth-child(even) .per { color: var(--ink-muted); }
.dash .pkg-grid .pkg.glass:nth-child(even) li { color: var(--ink-secondary); border-bottom-color: rgba(35,38,44,0.08); }
.dash .pkg-grid .pkg.glass:nth-child(even) li::before { color: var(--green-deep); }
.dash .pkg-grid .pkg.glass:nth-child(even) .btn-ghost { color: var(--ink); border-color: rgba(35,38,44,0.25); }
.dash .pkg-grid .pkg.glass:nth-child(even) .btn-ghost:hover { border-color: var(--accent-deep); color: var(--accent-deep); }

/* Sidebar glasig wie die Website-Nav */
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: linear-gradient(180deg, rgba(23,25,29,0.92), rgba(28,31,36,0.88));
  backdrop-filter: blur(30px) saturate(1.8);
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
  border-inline-end: 1px solid var(--glass-border);
  padding: 22px 16px; display: flex; flex-direction: column; gap: 4px;
}
.sidebar .nav-logo { padding: 4px 10px 18px; }
.side-label { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); padding: 16px 12px 8px; }
.side-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 11px 12px; border-radius: 12px; border: 1px solid transparent;
  background: transparent; color: var(--text-secondary);
  font-size: 14.5px; font-weight: 600; text-align: start; transition: all var(--t);
}
.side-item:hover { background: rgba(236,231,221,0.05); color: var(--text); }
.side-item.active {
  background: var(--accent-glow); border-color: rgba(0,113,227,0.35); color: var(--accent-light);
}
.side-item .side-icon { width: 22px; text-align: center; }
.side-item .count {
  margin-inline-start: auto; font-size: 11px; font-weight: 800;
  background: rgba(255,69,58,0.18); color: var(--red); border-radius: 999px; padding: 2px 8px;
}
.side-item .count.neutral { background: rgba(236,231,221,0.08); color: var(--text-secondary); }

.main { padding: 28px 34px 60px; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.topbar h1 { font-size: 24px; letter-spacing: -0.01em; }
.topbar .spacer { flex: 1; }
.project-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px;
  border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-border);
  font-size: 13.5px; font-weight: 600; color: var(--text-secondary);
}
.project-chip b { color: var(--text); }

.view { display: none; }
.view.active { display: block; animation: fadein 0.35s ease; }
@keyframes fadein { from { transform: translateY(8px); } to { transform: none; } }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.kpi { padding: 22px 24px; }
.kpi .kpi-label { font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.kpi .kpi-value { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.kpi .kpi-sub { font-size: 13px; color: var(--text-secondary); margin-top: 6px; }
.kpi .kpi-trend { font-weight: 700; }
.kpi .up { color: var(--green); } .kpi .down { color: var(--red); } .kpi .warn { color: var(--orange); }

.panel { padding: 26px; margin-bottom: 22px; }
.panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.panel-head h3 { font-size: 18px; }
.panel-head .spacer { flex: 1; }

.progress { height: 8px; border-radius: 999px; background: rgba(236,231,221,0.09); overflow: hidden; }
.progress > div { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent-deep), var(--accent-light)); transition: width 0.6s ease; }
.progress.g-green > div { background: linear-gradient(90deg, var(--green-deep), var(--green)); }
.progress.g-orange > div { background: linear-gradient(90deg, #b25f00, var(--orange)); }
.progress.g-red > div { background: linear-gradient(90deg, #a02622, var(--red)); }

.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th {
  text-align: start; font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted); padding: 10px 12px;
  border-bottom: 1px solid var(--glass-border);
}
.tbl td { padding: 13px 12px; border-bottom: 1px solid rgba(236,231,221,0.06); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr.clickable { cursor: pointer; transition: background var(--t); }
.tbl tr.clickable:hover { background: rgba(236,231,221,0.04); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill-blue { background: rgba(0,113,227,0.15); color: var(--accent-light); }
.pill-green { background: rgba(48,209,88,0.13); color: var(--green); }
.pill-orange { background: rgba(255,159,10,0.15); color: var(--orange); }
.pill-red { background: rgba(255,69,58,0.15); color: var(--red); }
.pill-neutral { background: rgba(236,231,221,0.08); color: var(--text-secondary); }

.stepper { display: flex; gap: 0; flex-wrap: wrap; }
.step {
  flex: 1; min-width: 120px; text-align: center; padding: 16px 10px 14px; position: relative;
  font-size: 13px; font-weight: 700; color: var(--text-muted);
}
.step::before {
  content: ""; display: block; width: 14px; height: 14px; border-radius: 50%;
  background: rgba(236,231,221,0.15); margin: 0 auto 10px; border: 2px solid transparent;
}
.step::after {
  content: ""; position: absolute; top: 22px; inset-inline-start: -50%; width: 100%; height: 2px;
  background: rgba(236,231,221,0.12); z-index: -1;
}
.step:first-child::after { display: none; }
.step.done { color: var(--green); }
.step.done::before { background: var(--green); box-shadow: 0 0 10px rgba(48,209,88,0.5); }
.step.done::after { background: var(--green); }
.step.current { color: var(--accent-light); }
.step.current::before { background: var(--accent); box-shadow: 0 0 12px rgba(0,113,227,0.7); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(0,113,227,0.5); } 50% { box-shadow: 0 0 0 8px rgba(0,113,227,0); } }

.pkg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pkg { padding: 24px; position: relative; overflow: hidden; }
.pkg .tier { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; color: var(--accent-light); }
.pkg .price { font-size: 27px; font-weight: 800; margin: 10px 0 2px; letter-spacing: -0.02em; }
.pkg .per { font-size: 12.5px; color: var(--text-muted); margin-bottom: 14px; }
.pkg ul { list-style: none; margin: 12px 0 0; }
.pkg li { font-size: 13.5px; color: var(--text-secondary); padding: 6px 0; border-bottom: 1px solid rgba(236,231,221,0.06); display: flex; gap: 8px; }
.pkg li::before { content: "✓"; color: var(--green); font-weight: 800; }
.pkg.featured { border-color: rgba(0,113,227,0.45); }
.pkg.featured::after {
  content: attr(data-flag); position: absolute; top: 16px; inset-inline-end: -34px;
  transform: rotate(45deg); background: var(--accent); color: var(--creme-auf-blau);
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; padding: 4px 40px;
}
[dir="rtl"] .pkg.featured::after { transform: rotate(-45deg); }

.match-ring {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 15px; position: relative; flex-shrink: 0;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), rgba(236,231,221,0.1) 0);
}
.match-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--bg-elevated); }
.match-ring span { position: relative; }

.alert-item { display: flex; gap: 16px; padding: 18px; align-items: flex-start; }
.alert-item + .alert-item { border-top: 1px solid rgba(236,231,221,0.07); }
.alert-item .alert-body { flex: 1; min-width: 0; }
.alert-item h4 { font-size: 15px; margin-bottom: 5px; }
.alert-item p { font-size: 13.5px; color: var(--text-secondary); }
.alert-meta { display: flex; gap: 14px; margin-top: 10px; font-size: 12px; color: var(--text-muted); flex-wrap: wrap; }

.chat-shell { display: flex; flex-direction: column; height: 420px; }
.chat-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 6px 2px; }
.msg { max-width: 82%; padding: 13px 17px; border-radius: 18px; font-size: 14.5px; line-height: 1.5; }
.msg.user { align-self: flex-end; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: var(--creme-auf-blau); border-end-end-radius: 6px; }
.msg.ai { align-self: flex-start; background: rgba(236,231,221,0.07); border: 1px solid var(--glass-border); border-end-start-radius: 6px; }
.msg.ai b { color: var(--accent-light); }
.chat-input { display: flex; gap: 10px; margin-top: 16px; }
.chat-input input {
  flex: 1; background: rgba(236,231,221,0.06); border: 1px solid var(--glass-border);
  border-radius: 999px; padding: 13px 20px; color: var(--text); font-size: 14.5px; outline: none;
  font-family: inherit;
}
.chat-input input:focus { border-color: var(--accent); }
.chat-input input::placeholder { color: var(--text-muted); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--glass-border);
  background: transparent; color: var(--text-secondary); font-size: 12.5px; font-weight: 600; transition: all var(--t);
}
.chip:hover { border-color: var(--accent); color: var(--accent-light); }

.upload-zone {
  border: 2px dashed var(--glass-border-hover); border-radius: var(--r-lg);
  padding: 40px 24px; text-align: center; transition: all var(--t); cursor: pointer;
}
.upload-zone:hover { border-color: var(--accent); background: rgba(0,113,227,0.05); }
.upload-zone .icon { font-size: 34px; margin-bottom: 10px; }
.upload-zone p { color: var(--text-secondary); font-size: 14px; }

.modal-back {
  position: fixed; inset: 0; z-index: 200; display: none; place-items: center;
  background: rgba(15,17,20,0.7); backdrop-filter: blur(8px); padding: 20px;
}
.modal-back.open { display: grid; }
.modal { max-width: 640px; width: 100%; max-height: 86vh; overflow-y: auto; padding: 30px; background: var(--glass-solid); backdrop-filter: blur(50px) saturate(2); border: 1px solid var(--glass-border-hover); border-radius: var(--r-xl); box-shadow: var(--shadow-hover); }
.modal h3 { margin-bottom: 6px; }
.modal .close-x { float: inline-end; background: none; border: none; color: var(--text-muted); font-size: 22px; line-height: 1; }
.modal .close-x:hover { color: var(--text); }

.furnish-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 14px 0; }
.opt {
  padding: 15px 18px; border-radius: var(--r-md); border: 1px solid var(--glass-border);
  background: rgba(236,231,221,0.04); font-size: 14px; font-weight: 600; color: var(--text-secondary);
  text-align: start; transition: all var(--t);
}
.opt:hover { border-color: var(--glass-border-hover); color: var(--text); }
.opt.sel { border-color: var(--accent); background: var(--accent-glow); color: var(--accent-light); }

.footer { border-top: 1px solid var(--glass-border); padding: 40px 0; color: var(--text-muted); font-size: 13.5px; }
.footer .container { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer img { width: 28px; height: 28px; border-radius: 50%; }

.toast {
  position: fixed; bottom: 26px; inset-inline-end: 26px; z-index: 300;
  background: var(--glass-solid); border: 1px solid rgba(48,209,88,0.4); color: var(--text);
  padding: 15px 22px; border-radius: var(--r-md); font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-hover); display: none; align-items: center; gap: 10px;
}
.toast.show { display: flex; animation: fadein 0.3s ease; }

/* ── Responsive ── */
@media (max-width: 1080px) {
  .grid-4, .pkg-grid, .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .dash { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; z-index: 150; inset-inline-start: 0; top: 0; bottom: 0; width: 270px;
    transform: translateX(-100%); transition: transform var(--t); height: 100vh;
  }
  [dir="rtl"] .sidebar { transform: translateX(100%); }
  .sidebar.open { transform: none; }
  .menu-btn { display: inline-flex !important; }
  .main { padding: 20px 18px 50px; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .grid-2, .grid-3, .grid-4, .pkg-grid, .kpi-grid, .furnish-opts, .imp-grid { grid-template-columns: 1fr; }
  .hero { padding: 130px 0 70px; }
  .hero h1 { font-size: 30px; }
  .hero-flow span { font-size: 10.5px; padding: 5px 10px; }
  .section { padding: var(--space-3xl) 0; }
  .tbl { font-size: 13px; }
  .tbl th:nth-child(n+5), .tbl td:nth-child(n+5) { display: none; }
  .step { min-width: 90px; font-size: 11.5px; }
  .nav-inner { padding: 10px 14px; gap: 10px; }
  .nav-logo { font-size: 16px; }
  .nav-logo img { width: 28px; height: 28px; }
  .nav-links { gap: 10px; }
  .nav-links .btn { display: none; } /* Hero-CTA übernimmt auf Mobile */
  .lang-switch button { padding: 4px 7px; font-size: 11px; }
}
.menu-btn {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--glass-border);
  background: var(--glass); color: var(--text); font-size: 19px;
}

/* ── „Zeynah denkt voraus"-Signaturkarte (Command Center) ── */
.think-card { border: 1.5px solid rgba(0,113,227,.45); box-shadow: 0 8px 30px rgba(0,113,227,.12); }
.think-tag { display: inline-block; margin-inline-start: 8px; font-size: 10.5px; letter-spacing: .8px; font-weight: 700; color: var(--accent-light); text-transform: uppercase; }
.think-sys { margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--glass-border); font-size: 11px; letter-spacing: .3px; color: var(--text-muted); }
.think-card .btn { margin-top: 14px; }
.think-done { margin-top: 14px; font-weight: 600; color: var(--green, #30d158); }
