/*
  cockpit-theme.css — kosmetische Angleichung von cockpit.html an das
  Design der neuen Startseite (website-v2/index.html). "Weg 1": nur
  Nav, Footer, Fonts, Primär-Buttons und Marken-Akzente werden
  angeglichen. Struktur, Wording und Animationen bleiben 1:1.

  Lade-Reihenfolge in cockpit.html: css2, style.css, home.css,
  site-header.css (gemeinsame Header-/Footer-Styles aller Seiten,
  siehe partials/), dann diese Datei zuletzt für gezielte Overrides.

  WICHTIG: --primary/--secondary/--gradient (style.css-Variablen)
  bleiben unangetastet, weil sie auch vom Dashboard-Mockup im Hero
  und vom Cockpit-Screenshot genutzt werden (Produkt-UI, soll
  Indigo/Violet bleiben). Für Marken-Akzente außerhalb der Mockups
  wird hier ein eigenes Türkis-Set definiert.
*/

:root {
  --brand-accent:      #4d97a0;
  --brand-accent-2:    #7fb8bd;
  --brand-gradient:    linear-gradient(135deg, #4d97a0 0%, #7fb8bd 100%);
}

/* Hinweis: Der frühere #primary-nav-menu-Mobile-Shim ist entfallen —
   Header/Footer sind seit der Vereinheitlichung ausgelagert
   (partials/header.html, assets/css/site-header.css), das Mobile-
   Menü läuft jetzt überall einheitlich über #site-nav/.open. */

/* ============================================
   MARKEN-AKZENTE — Kicker, Akzent-Text, Prozess-Nummern
   (alles außerhalb von Dashboard-/Feature-Visual-Mockups)
   ============================================ */
.section-label {
  background: rgba(77, 151, 160, 0.10);
  color: var(--brand-accent);
}
.headline-highlight,
.gradient-text {
  background: none;
  -webkit-text-fill-color: inherit;
  color: inherit;
}
.problem-number,
.hiw-step-label {
  color: var(--brand-accent);
}

/* ============================================
   CTA-SEKTIONSHINTERGRUND
   (Hero hat eine eigene Regel weiter unten — Weg 1: Off-White
   statt Türkis-Fläche. Der Dashboard-/Cockpit-Mockup selbst bleibt
   ohnehin Indigo/Violet, unabhängig vom Sektionshintergrund.)
   ============================================ */
#cta-section {
  background: var(--brand-gradient);
}

/* ============================================
   PRIMÄR-CTA-BUTTONS — Lila-Verlauf wie die Menü-CTA (--brand-grad,
   Indigo→Violet). Gilt für Hero-Button und alle CTA-Buttons der Seite.
   ============================================ */
.btn-white {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}
.btn-white::before {
  background: var(--brand-grad);
}
.btn-white:hover {
  background: var(--brand-grad);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
  color: #fff;
}
.btn-white:hover::before { opacity: 0.55; }

/* ============================================
   HERO — Off-White mit dezentem Türkis-Fade
   (ersetzt die vorherige Türkis-Fläche; Kicker/Headline/Subline/
   Buttons inhaltlich unverändert, nur Farbwelt gedreht)
   ============================================ */
#hero {
  background: linear-gradient(180deg, rgba(200, 226, 226, 0.28) 0%, var(--bg) 60%);
  /* Deutlich weniger Abstand Menü → Hero-Headline: Hero niedriger und
     geringeres Top-Padding, damit der Inhalt näher an die Nav rückt. */
  min-height: 82vh;
  padding-top: calc(var(--nav-height) + 24px);
}
/* Hauptgrund für den großen Abstand: das Hero-Grid zentriert die kurze
   Text-Spalte vertikal gegen das hohe Mockup und hat 80px Top-Padding.
   Text oben ausrichten + Top-Padding stark reduzieren zieht die Headline
   direkt unter die Nav. (Mobile-@media setzt eigenes padding und bleibt
   unberührt.) */
.hero-inner {
  align-items: start;
  padding-top: 20px;
}
/* Text-Spalte bleibt oben (Headline nah an der Nav), das Cockpit-Mockup
   wird dagegen vertikal zentriert — mittig zu Headline + Text. */
.dashboard-wrapper {
  align-self: center;
}
#hero::before,
#hero::after {
  display: none;
}
/* index.html zieht seinen Hero-Verlauf per negativem margin-top
   unter die Nav (siehe home.css), dadurch sitzt die Kapsel dort auf
   dezent türkis getöntem statt weißem Grund. #hero auf cockpit.html
   nutzt padding-top statt dieses Tricks (eigene Historie, andere
   Mockup-Vertikalmaße) — würde man das hier genauso umbauen, würde
   sich die komplette restliche Seite um 100px nach oben verschieben.
   Stattdessen bekommt #site-header denselben Ton als eigenen,
   flowunabhängigen Hintergrund — optisch identisch, ohne die
   Hero-Box/nachfolgende Sektionen zu verschieben. */
#site-header {
  background: rgba(200, 226, 226, 0.28);
}
.hero-badge {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.hero-badge-dot {
  background: #22c55e;
  box-shadow: none;
}
.hero-headline,
.hero-playfair {
  color: var(--ink);
  /* style.css setzt für Headlines auf dunklem Grund -webkit-text-fill-color:#fff —
     das gewinnt in WebKit/Blink gegenüber `color`, muss also mit umgestellt werden. */
  -webkit-text-fill-color: var(--ink);
}
.hero-subtext {
  color: var(--ink-soft);
}
#hero .btn-outline-white {
  color: var(--ink);
  border-color: var(--line);
  background: transparent;
}
#hero .btn-outline-white:hover {
  background: var(--white);
  border-color: var(--ink-mute);
  color: var(--ink);
}
@media (prefers-reduced-motion: reduce) {
  .hero-badge-dot,
  .dashboard-mockup {
    animation: none;
  }
}

/* ============================================
   HERO-MOCKUP — präziser Nachbau des echten Saatio Cockpit
   (Indigo/Violet-Produkt-Palette, NICHT Türkis — das Produkt-UI
   bleibt bewusst von der Türkis-Website-Marke getrennt)
   ============================================ */

/* Grid-Item ohne min-width:0 übernimmt sonst die min-content-Breite
   seiner (nowrap-)Inhalte und sprengt die 1fr-Spalte — dadurch wirkte
   das Mockup zuletzt fast seitenbreit. */
.dashboard-wrapper { min-width: 0; }

/* Schatten hinter dem Cockpit deutlich dezenter — statt des kräftigen
   0 40px 100px rgba(0,0,0,0.5) ein weicher, heller Schatten. */
.dashboard-mockup {
  box-shadow:
    0 20px 50px -24px rgba(11, 15, 25, 0.18),
    0 0 0 1px rgba(11, 15, 25, 0.05);
}

.cpm-mockup {
  background: #fff;
  display: flex;
  flex-direction: column;
  /* MacBook-artiges Seitenverhältnis für den Safari-Frame */
  aspect-ratio: 16 / 10;
}

.cpm-body {
  display: flex;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}

/* --- Sidebar --- */
.cpm-sidebar {
  width: 168px;
  flex-shrink: 0;
  background: var(--bg);
  border-right: 1px solid var(--line);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cpm-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px;
  margin-bottom: 10px;
}
.cpm-brand-mark {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--brand-grad);
  flex-shrink: 0;
}
.cpm-brand-mark-sm { width: 20px; height: 20px; border-radius: 6px; }
.cpm-brand-name {
  font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.cpm-nav-group { display: flex; flex-direction: column; gap: 1px; }
.cpm-nav-label {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  padding: 10px 10px 4px;
}
.cpm-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
  border-radius: 8px;
  font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.cpm-nav-item svg { flex-shrink: 0; }
.cpm-nav-item-active { background: #E6E4FB; color: #6366f1; }

/* --- Main / Header --- */
.cpm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #fff; }
.cpm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.cpm-header-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cpm-header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.cpm-header-brand strong { font-weight: 700; }
.cpm-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 500;
  background: var(--bg-warm, #f5f4f1);
  color: var(--ink-soft);
  white-space: nowrap;
}
.cpm-pill-live { background: transparent; border: 1px solid var(--line); }
.cpm-pill-dot { width: 6px; height: 6px; border-radius: 50%; background: #f97316; flex-shrink: 0; }
.cpm-header-right { display: flex; align-items: center; gap: 8px; }
.cpm-search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-warm, #f5f4f1);
  color: var(--ink-mute);
  font-size: 11px;
  white-space: nowrap;
}
.cpm-search svg { flex-shrink: 0; }
.cpm-bell {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  flex-shrink: 0;
}
.cpm-bell svg { flex-shrink: 0; }
.cpm-badge {
  position: absolute;
  top: -1px;
  right: -1px;
  background: #ef4444;
  color: #fff;
  font-size: 8.5px;
  font-weight: 700;
  border-radius: 50%;
  width: 13px;
  height: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.cpm-avatar {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --- Content --- */
.cpm-content { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.cpm-title {
  font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.cpm-subtitle { font-size: 11px; color: var(--ink-soft); margin-top: -6px; }

.cpm-kpi-block {
  border-radius: 14px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #eef0fd 0%, #fbfbff 100%);
  border: 1px solid rgba(99, 102, 241, 0.14);
}
.cpm-kicker {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #6366f1;
  margin-bottom: 4px;
}
.cpm-kpi-headline {
  font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
  margin-bottom: 10px;
}
.cpm-kpi-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cpm-kpi { display: flex; flex-direction: column; gap: 2px; }
.cpm-kpi-val { font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1; }
.cpm-kpi-lbl { font-size: 10px; color: var(--ink-soft); }
.cpm-kpi-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  color: #6366f1;
  font-size: 13px;
  font-weight: 600;
}
.cpm-kpi-pct { font-size: 9.5px; font-weight: 700; }
.cpm-kpi-footnote { display: block; font-size: 9.5px; color: var(--ink-mute); margin-top: 8px; }

.cpm-todo-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 2px 10px rgba(11, 15, 25, 0.04);
}
.cpm-todo-header {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.cpm-todo-header svg { color: #16a34a; flex-shrink: 0; }
.cpm-todo-row { display: flex; align-items: center; gap: 12px; }
.cpm-todo-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fde8d8;
  color: #ea580c;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cpm-todo-avatar svg { flex-shrink: 0; }
.cpm-todo-body { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.cpm-todo-title { font-size: 12px; font-weight: 600; color: var(--ink); }
.cpm-todo-sub { font-size: 10.5px; color: var(--ink-soft); }
.cpm-todo-pill {
  background: #fde8d8;
  color: #ea580c;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.cpm-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cpm-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 2px 10px rgba(11, 15, 25, 0.04);
  min-width: 0;
}
.cpm-tile-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #eef0fd;
  color: #6366f1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1px;
}
.cpm-tile-icon svg { flex-shrink: 0; }

/* ============================================
   FEATURE-CARD "Ein Cockpit für alles" — Icon-Illustrationen
   waren mangels Größenbegrenzung ~80px groß; durch schlichte,
   klein dimensionierte Lucide-Icons ersetzt.
   ============================================ */
.fve-tile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 4px;
  color: var(--ink-mute);
}

.cpm-tile-label { font-size: 10px; color: var(--ink-mute); line-height: 1.3; }
.cpm-tile-val { font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1; }
.cpm-tile-trend { font-size: 10px; font-weight: 700; color: #16a34a; }
.cpm-tile-breakdown,
.cpm-tile-sub { font-size: 9px; color: var(--ink-mute); line-height: 1.4; margin-top: 1px; }

/* --- Responsive: Mockup passt sich der schrumpfenden Wrapper-Breite an --- */
@media (max-width: 1024px) {
  .cpm-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .cpm-sidebar { width: 140px; padding: 14px 8px; }
  .cpm-search { display: none; }
  .cpm-content { padding: 16px; }
}
@media (max-width: 520px) {
  .cpm-sidebar { display: none; }
  .cpm-tiles { grid-template-columns: repeat(2, 1fr); }
}
