/*
  zaios-theme-cyan.css  →  ZAIOS.DESIGN tokens (Dark · Mint · Glassmorphic · Technical)
  Wird nach style.css und nav.css geladen und mappt die alten Token-Namen
  auf die Tokens aus dem ZAIOS Design-Konzept (Mai 2026, v1.0).
  Quelle: /home/moe/shared/Designkonzept/ZAIOS_Design_Konzept.docx
*/

/* ============================================================
   Dark Mode (Primärerlebnis)
   ============================================================ */
:root {
  /* Surfaces */
  --bg:           #070A0E;            /* Deep Space */
  --bg-card:      #0D1218;            /* Panel */
  --bg-alt:       #0D1218;            /* Panel */
  --bg-dark:      #070A0E;            /* Deep Space */
  --surface-1:    #0D1218;            /* Panel */
  --surface-2:    #121820;            /* Panel Elevated */
  --petrol:       #1A3540;            /* Brand-Surface (Logo-Backplate) */

  /* Borders */
  --border:        rgba(255,255,255,0.08); /* Border Subtle */
  --border-hover:  rgba(255,255,255,0.20); /* Border Strong */
  --border-solid:  #1A3540;

  /* Text */
  --text:         #ECF2F7;            /* Ice White */
  --text-muted:   #8A98A8;            /* Drift Gray */
  --text-dim:     #5A6B7A;

  /* Accent — einzige Markenfarbe (Mint) */
  --accent:        #2EE5C8;           /* Mint Pulse */
  --accent-light:  #7CF7DC;           /* Mint Glow */
  --accent-dark:   #0A826E;           /* Deep Mint */
  --accent-glow:   rgba(46,229,200,0.45);
  --accent-gradient: linear-gradient(135deg, #2EE5C8 0%, #5BC0EB 100%); /* Aurora */

  /* Legacy-Alias (von style.css genutzt) */
  --green:        #2EE5C8;
  --green-light:  #7CF7DC;
  --green-glow:   rgba(46,229,200,0.35);

  /* Primary-CTA — Mint statt Orange (Konzept §07: nur eine Akzentfarbe) */
  --orange:       #2EE5C8;
  --orange-hover: #7CF7DC;
  --orange-glow:  rgba(46,229,200,0.45);

  /* Status */
  --success: #3DDC97;
  --warning: #F2C14E;
  --danger:  #FF6B6B;
  --info:    #5BC0EB;

  /* Radius-Skala (8-pt Baseline) */
  --radius:    20px;     /* lg — Default Cards */
  --radius-sm: 8px;      /* sm — Inputs, Tags, Code */
  --radius-xs: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;     /* xl — Hero, Feature */
  --radius-2xl: 40px;    /* 2xl — Glass-Panels */

  /* Schatten & Glow */
  --shadow-card:  0 24px 60px rgba(0,0,0,0.35);
  --glow-primary: 0 0 32px rgba(46,229,200,0.45);
  --focus-ring:   0 0 0 3px rgba(124,247,220,0.35);

  /* Typo — Konzept §04 */
  --font: 'Inter', 'DM Sans', system-ui, sans-serif;
}

/* Body & Root — Deep Space, Ice White */
html { background: #070A0E; }
body {
  background: var(--bg);
  color: var(--text-muted);
}
h1, h2, h3, h4, .section-header h2, .about-compact-text h2, .books-title { color: var(--text); }

/* Primary-CTA — Mint-Fill + Deep-Space-Schrift (Konzept §07) */
.btn-primary {
  background: var(--accent);
  color: #070A0E !important;
  font-weight: 700;
  border-radius: 9999px;
  box-shadow: 0 0 0 rgba(46,229,200,0);
  transition: background var(--duration) var(--ease), box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.btn-primary:hover {
  background: var(--accent-light);
  color: #070A0E !important;
  box-shadow: var(--glow-primary);
  transform: translateY(-1px);
}

/* Secondary-CTA — Border-Strong, Ice White */
.btn-secondary {
  border: 1px solid var(--border-hover);
  color: var(--text);
  border-radius: 9999px;
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Tab-Pill aktiv — Mint */
.tab-btn.active {
  background: var(--accent);
  color: #070A0E !important;
  border-color: var(--accent);
}

/* Back-to-top — Mint (statt Orange) */
.back-to-top {
  background: var(--accent);
  color: #070A0E;
  box-shadow: 0 6px 24px var(--accent-glow);
}
.back-to-top:hover {
  background: var(--accent-light);
  color: #070A0E;
  box-shadow: 0 8px 32px var(--accent-glow);
}

/* Card-Expand — Mint */
.card-expand { color: var(--accent); }
.card-expand:hover { color: var(--accent-light); }

/* Stat-Zahlen — Aurora-Gradient */
.stat-num {
  background: linear-gradient(135deg, #2EE5C8 0%, #5BC0EB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card-Hover — Mint-Border + dezenter Glow */
.card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(46,229,200,0.18);
}

/* Hero-Badge — Mint-tinted Pill */
.hero-badge {
  background: rgba(46,229,200,0.08);
  color: var(--accent-light);
  border: 1px solid var(--border-hover);
}

/* Sticky Category-Tabs — Deep-Space-Glas */
.category-tabs {
  background: rgba(7,10,14,0.85);
  border-bottom: 1px solid var(--border);
}

/* Trust-Banner — Panel */
.trust-banner { background: var(--surface-1); }

/* Focus-Ring Pflicht (Konzept §11) */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.tab-btn:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Reduce-Motion (Konzept §10) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================================
   Light Mode — Konzept-Annex (Mint bleibt, Surfaces invertiert)
   ============================================================ */
[data-theme="light"] {
  --bg:           #F4F7FA;
  --bg-card:      #FFFFFF;
  --bg-alt:       #EDF1F5;
  --bg-dark:      #E2E8EE;
  --surface-1:    #FFFFFF;
  --surface-2:    #ECF2F7;
  --border:       rgba(7,10,14,0.08);
  --border-hover: rgba(7,10,14,0.20);
  --border-solid: #CBD5DC;
  --text:         #070A0E;
  --text-muted:   #4A5868;
  --text-dim:     #8A98A8;

  --accent:        #0A826E;           /* Deep Mint — AA-Kontrast auf Hell */
  --accent-light:  #2EE5C8;
  --accent-dark:   #075F50;
  --accent-glow:   rgba(10,130,110,0.18);
  --accent-gradient: linear-gradient(135deg, #0A826E 0%, #5BC0EB 100%);

  --green:        #0A826E;
  --green-light:  #2EE5C8;
  --green-glow:   rgba(10,130,110,0.18);

  --orange:       #0A826E;
  --orange-hover: #2EE5C8;
  --orange-glow:  rgba(46,229,200,0.25);
}
[data-theme="light"] body { color: var(--text-muted); }
[data-theme="light"] .btn-primary {
  background: var(--accent);
  color: #FFFFFF !important;
}
[data-theme="light"] .btn-primary:hover {
  background: var(--accent-light);
  color: #070A0E !important;
  box-shadow: 0 0 32px var(--accent-glow);
}
[data-theme="light"] .tab-btn.active {
  background: var(--accent);
  color: #FFFFFF !important;
  border-color: var(--accent);
}
[data-theme="light"] .back-to-top {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 6px 24px var(--accent-glow);
}
[data-theme="light"] .back-to-top:hover {
  background: var(--accent-light);
  color: #070A0E;
}
[data-theme="light"] .stat-num {
  background: linear-gradient(135deg, #0A826E 0%, #2EE5C8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="light"] .category-tabs {
  background: rgba(244,247,250,0.92);
}

/* ============================================================
   High Contrast — AAA, intensiver Mint
   ============================================================ */
[data-theme="hc"] {
  --accent:        #00FFDD;
  --accent-light:  #7CF7DC;
  --accent-dark:   #00BFA8;
  --accent-glow:   rgba(0,255,221,0.35);
  --accent-gradient: linear-gradient(135deg, #00FFDD, #7CF7DC);
  --green:         #00FFDD;
  --green-light:   #7CF7DC;
  --green-glow:    rgba(0,255,221,0.35);
  --orange:        #00FFDD;
  --orange-hover:  #7CF7DC;
  --orange-glow:   rgba(0,255,221,0.35);
}
[data-theme="hc"] .btn-primary,
[data-theme="hc"] .tab-btn.active,
[data-theme="hc"] .back-to-top {
  background: var(--accent);
  color: #000 !important;
  border-color: var(--accent);
}

/* ============================================================
   Hardcoded Werte in nav.css überschreiben
   ============================================================ */
.nav-extra-link.active,
.nav-link.nav-extra-link.active {
  color: var(--accent) !important;
}
[data-theme="light"] .nav-extra-link.active,
[data-theme="light"] .nav-link.nav-extra-link.active {
  color: var(--accent) !important;
}
[data-theme="hc"] .nav-extra-link.active,
[data-theme="hc"] .nav-link.nav-extra-link.active {
  color: var(--accent) !important;
}
.lang-btn.active .lang-flag { background: var(--accent); }

/* ============================================================
   Logos (Quell-SVG ist Single-Color, Farbe via Filter)
   ============================================================ */
/* Nav-Logo in Ice White */
.nav-logo img.logo-img {
  filter: brightness(0) invert(1);
}
.hero-brand img.logo-img,
.footer-logo img.logo-img {
  filter: none;
}
[data-theme="light"] .nav-logo img.logo-img {
  filter: brightness(0); /* Black auf Hell */
}
[data-theme="hc"] .nav-logo img.logo-img {
  filter: brightness(0) invert(1);
}

/* Splash-Logo — Mint Pulse + Halo */
.splash-logo {
  filter:
    brightness(0) saturate(100%)
    invert(82%) sepia(58%) saturate(700%)
    hue-rotate(120deg) brightness(102%) contrast(95%)
    drop-shadow(0 0 60px rgba(46,229,200,0.35)) !important;
}

/* Light: Wortmarke + Splash in Petrol */
[data-theme="light"] .hero-brand img.logo-img,
[data-theme="light"] .footer-logo img.logo-img {
  filter: invert(15%) sepia(25%) saturate(500%) hue-rotate(170deg) brightness(35%) contrast(100%);
}
[data-theme="light"] .splash-logo {
  filter:
    invert(15%) sepia(25%) saturate(500%)
    hue-rotate(170deg) brightness(35%) contrast(100%)
    drop-shadow(0 0 60px rgba(10,130,110,0.20)) !important;
}

/* HC: weiß lassen, intensiver Glow */
[data-theme="hc"] .nav-logo img.logo-img,
[data-theme="hc"] .hero-brand img.logo-img,
[data-theme="hc"] .footer-logo img.logo-img {
  filter: none;
}
[data-theme="hc"] .splash-logo {
  filter: drop-shadow(0 0 60px rgba(0,255,221,0.45)) !important;
}

/* ============================================================
   ZAIOS Master-Layout (Designvorlage „Neues Theme")
   Wallpaper hinter Hero, Glass-Card Hero, Stat-Strip mit Icon-Tiles,
   Glass-Filter-Bar.
   ============================================================ */

/* Wallpaper nur hinter Hero (Konzept §06: niemals Body-Text darüber) */
.hero {
  position: relative;
  background-image: url('/zaios_background.webp'), linear-gradient(180deg, #070A0E 0%, #0D1218 100%);
  background-size: cover, auto;
  background-position: center, center;
  background-repeat: no-repeat;
  min-height: 70vh;
  padding: 96px 56px 80px;
}
.hero .container { max-width: 1600px; width: 100%; padding: 0; }

/* Wire-Wave-Canvas + Hero-BG-Overlay deaktivieren — Wallpaper übernimmt */
#wireWaveCanvas { display: none !important; }
.hero .hero-bg { display: none !important; }

/* Hero-Content als Milchglas-Card */
.hero-content {
  position: relative;
  isolation: isolate;
  max-width: 1600px;
  margin: 0 auto;
  padding: 56px 40px 40px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(13,18,24,0.45);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  text-align: center;
}
.hero-content::before { content: none; }
.hero-content > * { position: relative; z-index: 1; }

/* Eyebrow / Badge — Pill in Glass-Hi */
.hero-badge {
  background: rgba(18,24,32,0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-hover);
  color: var(--text);
  padding: 10px 22px;
  font-size: 14px;
  letter-spacing: 0.2px;
  margin-bottom: 28px;
}

/* Wordmark — größer, tighter Tracking */
.hero-brand {
  margin: 0 0 22px;
  line-height: 0.95;
  letter-spacing: -3px;
}

/* Subhead in Ice White, Body in Drift Gray */
.hero-subtitle {
  color: var(--text);
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 400;
  line-height: 1.4;
  max-width: 640px;
  margin: 0 auto 32px;
}

/* CTA Row */
.hero-buttons { gap: 14px; margin-bottom: 44px; }
.hero-buttons .btn-primary { box-shadow: var(--glow-primary); }
.hero-buttons .btn-primary:hover { box-shadow: 0 0 48px rgba(46,229,200,0.65); }

/* Stat-Strip: horizontale Tiles mit Icon-Square + Wert + Label */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 32px;
  margin-top: 8px;
}
/* Icon-Tile-Layout: nur wenn der Stat ein Icon hat (sonst fällt der Block
   auf das alte zentrierte Stack-Layout aus style.css zurück — wichtig für
   software.html, das die Icons noch nicht hat). */
.hero-stats:has(.stat-icon) .stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 6px 10px;
  text-align: left;
}
.hero-stats .stat + .stat { border-left: 1px solid var(--border); }
.hero-stats .stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
}
.hero-stats:has(.stat-icon) .stat-text { display: flex; flex-direction: column; align-items: flex-start; }
.hero-stats .stat-num {
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -1px;
  line-height: 1;
  background: none;
  -webkit-text-fill-color: var(--accent);
}
.hero-stats .stat-label {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 2.4px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

/* Filter-Navi: edge-to-edge, eckig, glas-translucent — sticky unter Navbar */
.category-tabs {
  position: sticky;
  top: 64px;
  z-index: 100;
  margin: 24px 0 0;
  max-width: none;
  padding: 12px 56px;
  background: rgba(7,10,14,0.78);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  border: none;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
}
.category-tabs-inner { max-width: 1600px; margin: 0 auto; padding: 0; }

.category-tabs .tab-btn {
  position: relative;
  border-radius: var(--radius-md);
  background: transparent;
  border-color: transparent;
  color: var(--text-muted);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
}
.category-tabs .tab-btn:hover {
  background: transparent;
  border-color: transparent;
  color: var(--text);
}

/* Scroll-Position-Marker (Spy) — Mint-Schrift + Underline */
.category-tabs .tab-btn.spy {
  color: var(--accent);
  font-weight: 600;
  background: transparent;
  border-color: transparent;
}
.category-tabs .tab-btn.spy::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -13px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(46,229,200,0.6);
}

/* Aktiver Filter (geklickt) — Mint-Fill bleibt für klare Unterscheidung */
.category-tabs .tab-btn.active {
  background: var(--accent);
  color: #070A0E !important;
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(46,229,200,0.40);
}
.category-tabs .tab-btn.active::after { content: none; }

[data-theme="light"] .category-tabs {
  background: rgba(244,247,250,0.85);
  border-top-color: rgba(7,10,14,0.10);
  border-bottom-color: rgba(7,10,14,0.10);
}

/* Karten komplett klickbar */
.card { position: relative; cursor: pointer; }
.card h3 > a {
  text-decoration: none;
  color: inherit;
}
/* Startseite-Karten: Stretched-Link via Pseudo (h3-Anker deckt ganze Card ab) */
.card h3 > a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
/* Andere interaktive Elemente innerhalb der Card bleiben anklickbar */
.card .card-expand,
.card .card-tag,
.card .badge-einsteiger,
.card .badge-fortgeschritten,
.card .badge-profi {
  position: relative;
  z-index: 2;
}
/* Unterseiten-Karten haben keinen h3-Anker, sondern .card-expand-Button.
   Klick auf jede Stelle der Card wird per JS an card-expand delegiert
   (siehe script.js). card-detail.show: kein Pointer (Lese-Modus). */
.card:has(.card-detail.show) { cursor: default; }
.card .card-detail { cursor: text; }

/* Trust-Banner alter Ära — versteckt (war unter der fixed Navbar abgeschnitten,
   Privacy-Info gehört eher in den Footer als ans Page-Top) */
.trust-banner { display: none; }

/* Navbar (oben, fixed) im neuen ZAIOS-Glass-Ton */
.navbar {
  background: rgba(7,10,14,0.70);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--border);
}
.navbar.scrolled {
  background: rgba(7,10,14,0.88);
  border-bottom-color: var(--border-hover);
}
[data-theme="light"] .navbar {
  background: rgba(244,247,250,0.70);
}
[data-theme="light"] .navbar.scrolled {
  background: rgba(244,247,250,0.92);
}

/* Responsive — Stat-Strip kippt mobil zu vertikalem Stack */
@media (max-width: 900px) {
  .hero { padding: 56px 12px 48px; min-height: 0; }
  .hero-content { padding: 36px 22px 28px; border-radius: var(--radius-lg); }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 24px;
  }
  .hero-stats .stat { justify-content: flex-start; padding-left: 12px; }
  .hero-stats .stat + .stat { border-left: none; border-top: 1px solid var(--border); padding-top: 14px; margin-top: 6px; }
  .hero-stats .stat-num { font-size: 32px; }
  .hero-stats .stat-icon { width: 44px; height: 44px; font-size: 18px; }
  .category-tabs { padding: 12px 16px; }
}

/* Light-Mode: Wallpaper bleibt (im Konzept als gleicher Hero gedacht), Glass invertiert */
[data-theme="light"] .hero-content {
  background: rgba(255,255,255,0.55);
  border-color: rgba(7,10,14,0.10);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.10),
    inset 0 1px 0 rgba(255,255,255,0.5);
}
[data-theme="light"] .hero-subtitle { color: var(--text); }
[data-theme="light"] .hero-stats .stat-icon { background: var(--surface-2); color: var(--accent); }
[data-theme="light"] .hero-stats .stat-num { color: var(--accent); -webkit-text-fill-color: var(--accent); }
[data-theme="light"] .trust-banner { background: rgba(255,255,255,0.45); }
