/* ==========================================================================
   PANTAM LEARNING UNIVERSE - PREMIUM EDITION
   No-Emoji Design System with Custom Icon Language
   ========================================================================== */

/* ==========================================================================
   CSS VARIABLES - PREMIUM DESIGN SYSTEM
   ========================================================================== */
:root {
  /* Core Colors - Dark Universe Theme */
  --bg-primary: #0a0c10;
  --bg-secondary: #11131a;
  --bg-tertiary: #1a1d27;
  --bg-elevated: #222635;
  
  /* Text Colors */
  --text-primary: #f0f2f5;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  /* Border & Effects */
  --border-primary: rgba(255, 255, 255, 0.08);
  --border-secondary: rgba(255, 255, 255, 0.05);
  --glass-bg: rgba(17, 19, 26, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  
  /* Accent Colors - Category System */
  --accent-primary: #58a6ff;
  --accent-primary-glow: rgba(88, 166, 255, 0.4);
  --accent-cyan: #39d0d8;
  --accent-cyan-glow: rgba(57, 208, 216, 0.4);
  --accent-violet: #8b5cf6;
  --accent-violet-glow: rgba(139, 92, 246, 0.4);
  --accent-pink: #ec4899;
  --accent-pink-glow: rgba(236, 72, 153, 0.4);
  --accent-orange: #f59e0b;
  --accent-orange-glow: rgba(245, 158, 11, 0.4);
  --accent-green: #3fb950;
  --accent-green-glow: rgba(63, 185, 80, 0.4);
  --accent-red: #ef4444;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #58a6ff 0%, #39d0d8 100%);
  --gradient-violet: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --gradient-orange: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --gradient-green: linear-gradient(135deg, #3fb950 0%, #39d0d8 100%);
  --gradient-hero: linear-gradient(180deg, #0a0c10 0%, #11131a 50%, #0a0c10 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(88, 166, 255, 0.15) 0%, transparent 70%);
  
  /* Typography */
  --font-display: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Layout */
  --header-height: 72px;
  --max-width: 1280px;
  --section-padding: 120px;
  
  /* Effects */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light Theme Variables */
html.light-theme {
  --bg-primary: #fafafa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f3f4f6;
  --bg-elevated: #e5e7eb;
  
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  
  --border-primary: rgba(0, 0, 0, 0.08);
  --border-secondary: rgba(0, 0, 0, 0.05);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(0, 0, 0, 0.08);
  
  --accent-primary: #2563eb;
  --accent-primary-glow: rgba(37, 99, 235, 0.3);
  --accent-cyan: #0891b2;
  --accent-violet: #7c3aed;
  --accent-pink: #db2777;
}

/* ==========================================================================
   ICON SYSTEM - PHOSPHOR ICONS CDN
   ========================================================================== */
@import url('https://unpkg.com/@phosphor-icons/web@2.0.3/src/regular/style.css');

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

.icon-lg { font-size: 24px; }
.icon-xl { font-size: 32px; }
.icon-2xl { font-size: 48px; }
.icon-3xl { font-size: 64px; }

/* Icon with glow effect */
.icon-glow {
  filter: drop-shadow(0 0 12px currentColor);
}

/* ==========================================================================
   ABSTRACT GEOMETRIC SHAPES (No Emojis!)
   ========================================================================== */
.shape-orb {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
}

.shape-orb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--orb-gradient, var(--gradient-primary));
  opacity: 0.8;
}

.shape-orb::after {
  content: '';
  position: absolute;
  inset: 20%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent 50%);
  border-radius: 50%;
}

/* Geometric shapes for cards */
.geo-shape {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Cube shape */
.geo-cube {
  width: 60px;
  height: 60px;
  position: relative;
  transform-style: preserve-3d;
  animation: rotate-cube 8s linear infinite;
}

.geo-cube::before,
.geo-cube::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--shape-color, var(--accent-primary));
  opacity: 0.8;
}

.geo-cube::before {
  transform: translateZ(30px);
  filter: brightness(1.2);
}

.geo-cube::after {
  transform: rotateY(90deg) translateZ(30px);
  filter: brightness(0.8);
}

@keyframes rotate-cube {
  0% { transform: rotateX(-20deg) rotateY(0deg); }
  100% { transform: rotateX(-20deg) rotateY(360deg); }
}

/* Pyramid shape */
.geo-pyramid {
  width: 0;
  height: 0;
  border-left: 35px solid transparent;
  border-right: 35px solid transparent;
  border-bottom: 60px solid var(--shape-color, var(--accent-violet));
  position: relative;
  animation: float-pyramid 4s ease-in-out infinite;
}

.geo-pyramid::after {
  content: '';
  position: absolute;
  left: -20px;
  top: 20px;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 35px solid rgba(255,255,255,0.2);
}

@keyframes float-pyramid {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

/* Rings shape */
.geo-rings {
  width: 80px;
  height: 80px;
  position: relative;
}

.geo-rings::before,
.geo-rings::after {
  content: '';
  position: absolute;
  border: 4px solid var(--shape-color, var(--accent-cyan));
  border-radius: 50%;
  animation: pulse-ring 2s ease-out infinite;
}

.geo-rings::before {
  inset: 0;
}

.geo-rings::after {
  inset: 20%;
  animation-delay: 0.5s;
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.2); opacity: 0; }
}

/* Hexagon shape */
.geo-hexagon {
  width: 70px;
  height: 40px;
  background: var(--shape-color, var(--accent-pink));
  position: relative;
  margin: 20px 0;
  animation: rotate-hex 6s linear infinite;
}

.geo-hexagon::before,
.geo-hexagon::after {
  content: '';
  position: absolute;
  width: 0;
  border-left: 35px solid transparent;
  border-right: 35px solid transparent;
}

.geo-hexagon::before {
  bottom: 100%;
  border-bottom: 20px solid var(--shape-color, var(--accent-pink));
}

.geo-hexagon::after {
  top: 100%;
  border-top: 20px solid var(--shape-color, var(--accent-pink));
}

@keyframes rotate-hex {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Wave shape */
.geo-wave {
  width: 100px;
  height: 40px;
  position: relative;
  overflow: hidden;
}

.geo-wave::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 10px,
    var(--shape-color, var(--accent-orange)) 10px,
    var(--shape-color, var(--accent-orange)) 20px
  );
  animation: wave-move 2s linear infinite;
  opacity: 0.6;
}

@keyframes wave-move {
  0% { transform: translateX(0); }
  100% { transform: translateX(-20px); }
}

/* Circuit pattern */
.geo-circuit {
  width: 80px;
  height: 80px;
  position: relative;
}

.geo-circuit::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 2px solid var(--shape-color, var(--accent-green));
  border-radius: var(--radius-sm);
}

.geo-circuit::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--shape-color, var(--accent-green));
  transform: translateY(-50%);
  box-shadow: 0 -15px 0 var(--shape-color, var(--accent-green)),
              0 15px 0 var(--shape-color, var(--accent-green));
}

/* Star shape */
.geo-star {
  width: 60px;
  height: 60px;
  background: var(--shape-color, var(--accent-orange));
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: star-pulse 2s ease-in-out infinite;
}

@keyframes star-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

/* Pulse dot */
.geo-pulse {
  width: 20px;
  height: 20px;
  background: var(--shape-color, var(--accent-primary));
  border-radius: 50%;
  position: relative;
}

.geo-pulse::before,
.geo-pulse::after {
  content: '';
  position: absolute;
  inset: -10px;
  border: 2px solid var(--shape-color, var(--accent-primary));
  border-radius: 50%;
  animation: pulse-expand 2s ease-out infinite;
}

.geo-pulse::after {
  animation-delay: 1s;
}

@keyframes pulse-expand {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */

/* Skip preloader if already shown in this session */
html.preloader-skip .preloader {
  display: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo {
  width: 80px;
  height: 80px;
  animation: pulse-glow 2s ease-in-out infinite;
}

.preloader-text {
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.preloader-bar {
  width: 200px;
  height: 2px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  margin-top: 16px;
  overflow: hidden;
}

.preloader-progress {
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
  animation: loading-bar 2s ease-out forwards;
}

@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 20px var(--accent-primary-glow)); }
  50% { filter: drop-shadow(0 0 40px var(--accent-primary-glow)); }
}

@keyframes loading-bar {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}

/* ==========================================================================
   PARTICLES CANVAS
   ========================================================================== */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
}

/* Ensure particles are visible above background but below content */
.page-header-hero,
.section {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */
.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  transition: transform 0.1s ease;
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent-primary);
  opacity: 0.5;
  transition: all 0.15s ease-out;
}

.cursor-outline.hover {
  width: 60px;
  height: 60px;
  background: var(--accent-primary-glow);
  border-color: transparent;
  opacity: 0.3;
}

@media (pointer: coarse) {
  .cursor-dot, .cursor-outline { display: none; }
}

/* ==========================================================================
   SCROLL PROGRESS
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-primary);
  z-index: 10000;
  transform-origin: left;
  transform: scaleX(0);
}

/* ==========================================================================
   HEADER - PREMIUM
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  background: transparent;
  transition: all var(--transition-base);
}

.site-header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  position: relative;
}

.brand img {
  width: 42px;
  height: 42px;
  transition: transform var(--transition-spring);
}

.brand:hover img {
  transform: rotate(10deg) scale(1.1);
}

.brand-name {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Desktop: Sprachumschaltung rechts */
.lang-switch.desktop-lang {
  display: flex;
  margin-left: auto;
  margin-right: 16px;
}

/* Desktop: Mobile Header Elemente versteckt */
.header-center-mobile,
.mobile-menu-toggle,
.mobile-nav {
  display: none;
}

.btn-support {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.btn-support:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  transform: translateY(-2px);
}

.heart-icon {
  color: var(--accent-red);
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Language Switch */
.lang-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
}

.lang-switch.desktop-lang {
  display: flex;
  margin-left: auto;
  margin-right: 16px;
}

/* Main Navigation - Desktop */
.main-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: 16px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.nav-link i {
  font-size: 18px;
}

/* Mobile-only elements default hidden */
.header-center-mobile,
.mobile-menu-toggle {
  display: none;
}

.lang-btn {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  background: var(--bg-elevated);
  color: var(--accent-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   HERO SECTION - MINDBLOWING
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 60px) 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Hero Animated Background Image - SHARP VERSION */
.hero-image-animated {
  position: absolute;
  inset: 0;
  background-image: url('../assets/hero2-plu.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.95;
  z-index: 0;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  animation: cosmic-drift 25s ease-in-out infinite alternate;
}

@keyframes cosmic-drift {
  0% { transform: scale(1) translate(0%, 0%); }
  100% { transform: scale(1.03) translate(-0.5%, 0.5%); }
}

/* Reduced motion: Static */
@media (prefers-reduced-motion: reduce) {
  .hero-image-animated {
    animation: none;
    transform: scale(1.05);
  }
}

/* Cosmic Scanline Effect - subtle */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.02) 3px,
    rgba(0, 0, 0, 0.02) 6px
  );
  pointer-events: none;
  z-index: 1;
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% 30%, rgba(10, 12, 16, 0.25) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(10, 12, 16, 0.9) 0%, transparent 50%),
    linear-gradient(180deg, rgba(10, 12, 16, 0.5) 0%, transparent 25%, rgba(10, 12, 16, 0.7) 100%);
  /* NO BLUR for maximum sharpness */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  /* Subtle color overlays that don't blur the image */
  background: 
    radial-gradient(ellipse 70% 40% at 50% 40%, rgba(88, 166, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 30% at 80% 70%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 40% 25% at 20% 60%, rgba(57, 208, 216, 0.06) 0%, transparent 50%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  animation: grid-move 20s linear infinite;
  opacity: 0.5;
}

@keyframes grid-move {
  0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
  100% { transform: perspective(500px) rotateX(60deg) translateY(60px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
}

/* Ensure hero elements are above scanlines */
.hero-badge,
.hero-actions,
.hero-float,
.scroll-indicator {
  position: relative;
  z-index: 2;
}

/* Hero Badge - Premium Minimal Design */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  margin-bottom: 40px;
  animation: fade-up 0.6s ease-out 0.2s both;
  font-family: var(--font-display);
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, 
    rgba(88, 166, 255, 0.15) 0%, 
    rgba(139, 92, 246, 0.1) 100%);
  border: 1px solid rgba(88, 166, 255, 0.3);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.hero-badge-tag:hover {
  border-color: rgba(88, 166, 255, 0.6);
  box-shadow: 0 0 20px rgba(88, 166, 255, 0.2);
}

.hero-badge-divider {
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255,255,255,0.3) 50%, 
    transparent 100%);
}

.hero-badge-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 84px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-title-line {
  display: block;
  animation: fade-up 0.8s ease-out both;
}

.hero-title-line:nth-child(1) { animation-delay: 0.3s; }
.hero-title-line:nth-child(2) { animation-delay: 0.45s; }

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

/* Glow effect removed for cleaner look in both modes */

.hero-tagline {
  font-size: clamp(20px, 3vw, 28px);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  margin-bottom: 20px;
  animation: fade-up 0.8s ease-out 0.6s both;
}

.hero-tagline .typing-text {
  color: #7dd3fc;
  font-weight: 600;
  border-right: 2px solid #7dd3fc;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { border-color: transparent; }
}

.hero-description {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
  animation: fade-up 0.8s ease-out 0.75s both;
}

/* Light Mode Floating Elements - Dark style for dark hero */
html.light-theme .hero-float {
  background: rgba(10, 12, 16, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

html.light-theme .float-icon-ai::before {
  background: #8b5cf6;
  box-shadow: 
    0 0 0 4px rgba(139, 92, 246, 0.3),
    0 0 15px rgba(139, 92, 246, 0.6);
}

html.light-theme .float-icon-ai::after {
  border-color: rgba(139, 92, 246, 0.4);
}

html.light-theme .float-icon-bolt::before,
html.light-theme .float-icon-bolt::after {
  border-top-color: #f59e0b;
  border-bottom-color: #f59e0b;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6));
}

html.light-theme .float-icon-cube::before {
  background: linear-gradient(135deg, #39d0d8, #58a6ff);
  box-shadow: 0 0 15px rgba(57, 208, 216, 0.6);
}

html.light-theme .float-icon-cube::after {
  border-color: rgba(57, 208, 216, 0.4);
}

/* ==========================================================================
   LIGHT MODE HERO STYLES - HYBRID DESIGN
   Hero bleibt dunkel (wie Dark Mode), Rest der Seite wird hell
   ========================================================================== */

/* Header - Always dark/transparent in BOTH modes */
.site-header {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header.scrolled {
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-name {
  background: linear-gradient(135deg, #58a6ff 0%, #39d0d8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-support {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Hero-specific lang switch (dark background only) */
.hero .lang-switch,
.site-header .lang-switch:not(.desktop-lang) {
  background: rgba(255, 255, 255, 0.1);
}

.hero .lang-btn,
.site-header .lang-switch:not(.desktop-lang) .lang-btn {
  color: rgba(255, 255, 255, 0.7);
}

.hero .lang-btn.active,
.site-header .lang-switch:not(.desktop-lang) .lang-btn.active {
  background: rgba(255, 255, 255, 0.2);
  color: #58a6ff;
}

/* Hero - Always dark cosmic image (BOTH modes) */
.hero {
  background-color: #0a0c10;
}

.hero-image-animated {
  opacity: 0.95;
  filter: brightness(1.02) contrast(1.01);
}

/* Ghost Button in Hero - Always visible on dark background */
.hero .btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(88, 166, 255, 0.5);
}

/* Hero Text - Always light on dark image */
html.light-theme .hero h1 {
  color: white;
  text-shadow: none;
}

html.light-theme .hero .text-gradient {
  background: linear-gradient(135deg, #58a6ff 0%, #39d0d8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: none;
  text-shadow: none;
  position: relative;
  z-index: 1;
}

/* Completely remove glow effect behind text in light mode */
html.light-theme .hero .text-gradient::after {
  content: none;
  display: none;
  opacity: 0;
  visibility: hidden;
}

html.light-theme .hero-tagline {
  color: rgba(255, 255, 255, 0.9);
}

html.light-theme .hero-tagline .typing-text {
  color: #7dd3fc;
  border-right-color: #7dd3fc;
}

html.light-theme .hero-description {
  color: rgba(255, 255, 255, 0.8);
}

/* Hero Badge - Dark glassmorphism */
html.light-theme .hero-badge-tag {
  background: linear-gradient(135deg, 
    rgba(88, 166, 255, 0.25) 0%, 
    rgba(139, 92, 246, 0.2) 100%);
  border-color: rgba(88, 166, 255, 0.4);
  color: white;
}

html.light-theme .hero-badge-divider {
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.3) 50%, 
    transparent 100%);
}

html.light-theme .hero-badge-text {
  color: rgba(255, 255, 255, 0.85);
}

/* Orbit Nodes */
html.light-theme .orbit-node::before {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Scroll Indicator */
html.light-theme .scroll-indicator {
  color: rgba(255, 255, 255, 0.6);
}

html.light-theme .scroll-arrow {
  border-color: rgba(255, 255, 255, 0.3);
}

html.light-theme .scroll-arrow::after {
  background: #58a6ff;
}

/* REMOVED: Hero fade - transition now in stats section */

/* FAB Buttons - Dark style */
html.light-theme .fab-btn {
  background: rgba(10, 12, 16, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
  color: white;
}

html.light-theme .fab-btn:hover {
  border-color: #58a6ff;
}

/* Light Mode Stats Section - Smooth gradient from dark hero to light content */
html.light-theme .stats-section {
  background: linear-gradient(180deg, 
    #0a0c10 0%,
    #0a0c10 80px,
    #f9fafb 200px,
    #ffffff 100%);
  border-top: none;
}

html.light-theme .stat-number {
  background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

html.light-theme .stat-label {
  color: #111827;
  font-weight: 600;
}

html.light-theme .stat-item:not(:last-child)::after {
  background: rgba(0, 0, 0, 0.1);
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fade-up 0.8s ease-out 0.9s both;
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
  box-shadow: 
    0 4px 20px rgba(88, 166, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 8px 30px rgba(88, 166, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-primary);
}

.btn-ghost:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-primary);
  transform: translateY(-3px);
}

/* Orbit Nodes - Kosmische Elemente passend zum Planeten */
.orbit-node {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}

.orbit-node::before {
  content: attr(data-label);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.orbit-node:hover::before {
  opacity: 1;
}

.orbit-pulse {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
}

/* Orbit 1 - Cyan (KI) */
.orbit-1 {
  top: 30%;
  left: 15%;
  animation: orbit-float-1 8s ease-in-out infinite;
}

.orbit-1 .orbit-pulse {
  background: radial-gradient(circle, rgba(57, 208, 216, 0.9) 0%, transparent 70%);
  box-shadow: 
    0 0 0 2px rgba(57, 208, 216, 0.3),
    0 0 20px rgba(57, 208, 216, 0.6);
  animation: node-pulse 2s ease-in-out infinite;
}

/* Orbit 2 - Violet (Praxis) */
.orbit-2 {
  top: 50%;
  right: 12%;
  animation: orbit-float-2 10s ease-in-out infinite;
}

.orbit-2 .orbit-pulse {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.9) 0%, transparent 70%);
  box-shadow: 
    0 0 0 2px rgba(139, 92, 246, 0.3),
    0 0 20px rgba(139, 92, 246, 0.6);
  animation: node-pulse 2.5s ease-in-out infinite;
}

/* Orbit 3 - Pink (Modular) */
.orbit-3 {
  bottom: 35%;
  left: 20%;
  animation: orbit-float-3 7s ease-in-out infinite;
}

.orbit-3 .orbit-pulse {
  background: radial-gradient(circle, rgba(236, 72, 153, 0.9) 0%, transparent 70%);
  box-shadow: 
    0 0 0 2px rgba(236, 72, 153, 0.3),
    0 0 20px rgba(236, 72, 153, 0.6);
  animation: node-pulse 3s ease-in-out infinite;
}

@keyframes orbit-float-1 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(10px, -15px); }
  50% { transform: translate(20px, 0); }
  75% { transform: translate(10px, 15px); }
}

@keyframes orbit-float-2 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-15px, 10px); }
  66% { transform: translate(-5px, -10px); }
}

@keyframes orbit-float-3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(15px, 20px); }
}

@keyframes node-pulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 1;
  }
  50% { 
    transform: scale(1.3);
    opacity: 0.8;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  animation: fade-up 1s ease-out 1.2s both;
  cursor: pointer;
  transition: color 0.3s ease;
}

.scroll-indicator:hover {
  color: rgba(255, 255, 255, 0.9);
}

.scroll-arrow {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  position: relative;
}

.scroll-arrow::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 2px;
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 0.3; }
}

/* ==========================================================================
   STATS BAR - NEW SECTION
   ========================================================================== */
/* Stats Section */
.stats-section {
  padding: 40px 24px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-primary);
  border-bottom: 1px solid var(--border-primary);
  position: relative;
}

.stats-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.stat-item {
  text-align: center;
  padding: 24px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 40px;
  width: 1px;
  background: var(--border-primary);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   SECTION BASE
   ========================================================================== */
.section {
  padding: var(--section-padding) 24px;
  position: relative;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-title span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   KI CHARTER - 3D CARDS
   ========================================================================== */
.charter-quote {
  position: relative;
  max-width: 800px;
  margin: 0 auto 64px;
  padding: 40px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.charter-quote::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 30px;
  font-size: 120px;
  color: var(--accent-primary);
  opacity: 0.1;
  font-family: Georgia, serif;
  line-height: 1;
}

.charter-quote p {
  font-size: 22px;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.8;
}

.charter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  perspective: 1000px;
}

.charter-card {
  position: relative;
  padding: 32px;
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  transform-style: preserve-3d;
  cursor: pointer;
  overflow: hidden;
}

.charter-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(88, 166, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.charter-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 40px var(--accent-primary-glow);
}

.charter-card:hover::before {
  opacity: 1;
}

.charter-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(88, 166, 255, 0.05) 100%);
  border-color: var(--accent-primary);
}

@media (max-width: 768px) {
  /* Mobile Header Layout - Logo | FABs | Hamburger */
  .header-inner {
    padding: 0 8px 0 12px;
    justify-content: space-between;
  }
  
  .brand {
    gap: 0;
  }
  
  .brand-name {
    display: none;
  }
  
  .lang-switch.desktop-lang {
    display: none;
  }
  
  .header-center-mobile {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
  }
  
  .header-fab-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all var(--transition-base);
  }
  
  .header-fab-btn:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
  }
  
  .header-center-mobile .lang-switch {
    margin: 0;
    padding: 2px;
    background: var(--bg-tertiary);
    gap: 2px;
  }
  
  .header-center-mobile .lang-btn {
    padding: 4px 6px;
    font-size: 11px;
    min-width: 24px;
  }
  
  .mobile-menu-toggle {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    transition: all var(--transition-base);
  }
  
  .mobile-menu-toggle:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
  }
  
  .fab-container {
    display: none;
  }
  
  /* Hide main nav on mobile by default */
  .main-nav {
    display: none;
  }
  
  /* Show mobile nav when active */
  .main-nav.mobile-open {
    display: block;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 24px;
  }
  
  .main-nav.mobile-open .nav-list {
    flex-direction: column;
    gap: 16px;
  }
  
  .main-nav.mobile-open .nav-link {
    font-size: 18px;
    padding: 16px;
    border-radius: var(--radius-md);
  }
  
  /* Light mode adjustments */
  html.light-theme .main-nav.mobile-open {
    background: rgba(255, 255, 255, 0.98);
  }

  .charter-card.featured {
    grid-column: span 1;
    border-color: var(--border-primary);
    background: var(--bg-primary);
  }
  
  /* Touch Support: Aktive Karte wird hervorgehoben */
  .charter-card:active,
  .charter-card.featured:active,
  .charter-card.touch-active {
    border-color: var(--accent-primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    transform: scale(0.98);
    transition: all 0.15s ease;
  }
}

.charter-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  font-size: 28px;
  color: var(--accent-primary);
  margin-bottom: 20px;
  transition: all var(--transition-base);
}

.charter-card:hover .charter-icon {
  transform: scale(1.1);
  background: var(--accent-primary);
  color: white;
}

.charter-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.charter-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.charter-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-primary);
}

.charter-link svg {
  transition: transform var(--transition-fast);
}

.charter-card:hover .charter-link svg {
  transform: translateX(4px);
}

/* ==========================================================================
   TUTORIAL CARDS - PREMIUM 3D
   ========================================================================== */
.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.tutorial-card {
  position: relative;
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-spring);
  transform-style: preserve-3d;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tutorial-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, var(--card-glow, rgba(88, 166, 255, 0.05)) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.tutorial-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent, var(--gradient-primary));
  transform: scaleX(0);
  transition: transform var(--transition-spring);
  pointer-events: none;
}

.tutorial-card:hover {
  border-color: var(--card-border, var(--accent-primary));
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.4),
    0 0 60px var(--card-glow-shadow, var(--accent-primary-glow));
}

.tutorial-card:hover::before {
  opacity: 1;
}

.tutorial-card:hover::after {
  transform: scaleX(1);
}

/* Card Category Colors */
.tutorial-card[data-category="web"] {
  --card-accent: linear-gradient(90deg, #58a6ff, #39d0d8);
  --card-border: #58a6ff;
  --card-glow: rgba(88, 166, 255, 0.1);
  --card-glow-shadow: rgba(88, 166, 255, 0.3);
}

.tutorial-card[data-category="ai"] {
  --card-accent: linear-gradient(90deg, #8b5cf6, #ec4899);
  --card-border: #8b5cf6;
  --card-glow: rgba(139, 92, 246, 0.1);
  --card-glow-shadow: rgba(139, 92, 246, 0.3);
}

.tutorial-card[data-category="design"] {
  --card-accent: linear-gradient(90deg, #ec4899, #f59e0b);
  --card-border: #ec4899;
  --card-glow: rgba(236, 72, 153, 0.1);
  --card-glow-shadow: rgba(236, 72, 153, 0.3);
}

.tutorial-card[data-category="audio"] {
  --card-accent: linear-gradient(90deg, #f59e0b, #ef4444);
  --card-border: #f59e0b;
  --card-glow: rgba(245, 158, 11, 0.1);
  --card-glow-shadow: rgba(245, 158, 11, 0.3);
}

.card-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 6px 14px;
  background: var(--bg-tertiary);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.tutorial-card[data-mode="modern"] .card-badge {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: white;
}

.tutorial-card[data-mode="classic"] .card-badge {
  background: var(--accent-primary);
  color: white;
}

.card-visual {
  width: 100%;
  height: 140px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  --shape-color: var(--accent-primary);
}

.card-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--card-accent, var(--gradient-primary));
  opacity: 0.1;
  pointer-events: none;
}

.tutorial-card[data-category="ai"] .card-visual { --shape-color: var(--accent-violet); }
.tutorial-card[data-category="design"] .card-visual { --shape-color: var(--accent-pink); }
.tutorial-card[data-category="audio"] .card-visual { --shape-color: var(--accent-orange); }
.tutorial-card[data-category="web"] .card-visual { --shape-color: var(--accent-primary); }

.tutorial-card h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.card-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 20px;
}

.card-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.meta-item {
  padding: 6px 12px;
  background: var(--bg-tertiary);
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition-fast);
  position: relative;
  z-index: 10;
}

.tutorial-card:hover .card-link {
  background: var(--accent-primary);
  color: white;
}

/* ==========================================================================
   FLOATING ACTION BUTTONS
   ========================================================================== */
.fab-container {
  position: fixed;
  bottom: 32px;
  right: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.fab-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: all var(--transition-spring);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.fab-btn:hover {
  transform: translateY(-4px) scale(1.1);
  border-color: var(--accent-primary);
  box-shadow: 0 8px 30px rgba(88, 166, 255, 0.3);
}

.fab-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
}

.fab-backtop {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.fab-backtop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ==========================================================================
   REVEAL ANIMATIONS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* ==========================================================================
   ISOMETRIC ILLUSTRATIONS (Desktop)
   ========================================================================== */
.iso-scene {
  width: 80px;
  height: 80px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(60deg) rotateZ(-45deg);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.iso-platform {
  position: absolute;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, 
    var(--platform-light, rgba(88, 166, 255, 0.4)) 0%,
    var(--platform-dark, rgba(88, 166, 255, 0.2)) 100%);
  transform: translateZ(0);
  border-radius: 8px;
  box-shadow: 
    0 10px 30px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.2);
}

.iso-platform::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 4px;
}

.iso-ai {
  --platform-light: rgba(139, 92, 246, 0.4);
  --platform-dark: rgba(139, 92, 246, 0.2);
}

.ai-core {
  width: 24px;
  height: 24px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateZ(20px);
  background: radial-gradient(circle at 30% 30%, #8b5cf6 0%, #ec4899 50%, transparent 70%);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(139,92,246,0.6);
  animation: ai-pulse 2s ease-in-out infinite;
}

@keyframes ai-pulse {
  0%, 100% { transform: translate(-50%, -50%) translateZ(20px) scale(1); }
  50% { transform: translate(-50%, -50%) translateZ(20px) scale(1.1); }
}

.ai-orbits {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%) translateZ(10px);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 50%;
  animation: orbit-rotate 8s linear infinite;
}

@keyframes orbit-rotate {
  0% { transform: translate(-50%, -50%) translateZ(10px) rotate(0deg); }
  100% { transform: translate(-50%, -50%) translateZ(10px) rotate(360deg); }
}

/* ==========================================================================
   CONTENT PAGES
   ========================================================================== */

/* Page Header */
.page-header {
  padding: calc(var(--header-height) + 40px) 0 60px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border-primary);
}

.page-header .section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Page Header with Background Image */
.page-header-hero {
  position: relative;
  padding: calc(var(--header-height) + 80px) 0 100px;
  background: url('../assets/images/about-why-ki.webp') center center / cover no-repeat;
  border-bottom: 1px solid var(--border-primary);
}

.page-header-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 12, 16, 0.85) 0%, rgba(10, 12, 16, 0.7) 50%, rgba(10, 12, 16, 0.6) 100%);
  z-index: 1;
}

.page-header-hero .section-inner {
  position: relative;
  z-index: 2;
}

.page-header-hero .page-header-content {
  text-align: center;
}

.page-header-hero .section-title {
  color: white;
}

.page-header-hero .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.25rem;
}

.page-header-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
}

.page-header-hero .breadcrumb a:hover {
  color: var(--accent-primary);
}

.page-header-hero .breadcrumb-separator {
  color: rgba(255, 255, 255, 0.5);
}

.page-header-hero [aria-current="page"] {
  color: rgba(255, 255, 255, 0.9);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--accent-primary);
}

.breadcrumb-separator {
  font-size: 12px;
  opacity: 0.5;
}

.page-header-content {
  text-align: center;
}

.page-icon {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

/* Content Body */
.content-body {
  max-width: 1200px;
  margin: 0 auto;
}

.content-block {
  margin-bottom: 48px;
}

.content-heading {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.content-heading i {
  color: var(--accent-primary);
  font-size: 28px;
}

.content-block p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.content-block strong {
  color: var(--text-primary);
}

/* Feature List */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
}

.feature-list i {
  color: var(--accent-primary);
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* FAQ Grid */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.faq-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s ease;
}

.faq-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
}

.faq-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-card h3 i {
  color: var(--accent-primary);
}

.faq-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Language Notice */
.lang-notice {
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 1px solid rgba(88, 166, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.lang-notice i {
  font-size: 24px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.lang-notice p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Content Navigation */
.content-nav {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-primary);
}

/* ==========================================================================
   SUPPORT SECTION
   ========================================================================== */
.support-section {
  padding: 48px 24px;
  background: linear-gradient(135deg, 
    rgba(88, 166, 255, 0.05) 0%, 
    rgba(139, 92, 246, 0.05) 50%,
    rgba(236, 72, 153, 0.05) 100%);
  border-top: 1px solid var(--border-primary);
}

.support-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 40px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
}

.support-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444 0%, #ec4899 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: heartbeat 1.5s ease-in-out infinite;
}

.support-icon i {
  font-size: 32px;
  color: white;
}

.support-content {
  flex: 1;
}

.support-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.support-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.btn-support-large {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #ef4444 0%, #ec4899 100%);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}

.btn-support-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.4);
}

.btn-support-large i {
  font-size: 20px;
  animation: heartbeat 1.5s ease-in-out infinite;
}

/* Support Link im Footer */
.footer-support-link {
  color: #ef4444;
  font-weight: 600;
}

.footer-support-link:hover {
  color: #ec4899;
}

.footer-support-link i {
  display: inline-block;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@media (max-width: 768px) {
  .support-card {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
    gap: 24px;
  }
  
  .support-content h3 {
    font-size: 20px;
  }
  
  .btn-support-large {
    width: 100%;
    justify-content: center;
  }
  
  /* Mobile Header Layout */
  .header-center-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    margin: 0 8px;
  }
  
  .header-fab-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
  }
  
  .lang-switch.desktop-lang {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .fab-container {
    display: none;
  }
}

/* Desktop: Mobile Elements hidden */
@media (min-width: 769px) {
  .header-center-mobile,
  .mobile-menu-toggle,
  .mobile-nav {
    display: none !important;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  padding: 64px 24px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-primary);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  font-size: 24px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-copy {
  font-size: 14px;
  color: var(--text-muted);
}

/* ==========================================================================
   MODAL
   ========================================================================== */
/* ==========================================================================
   PREMIUM MODAL - KI Charter Popups
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(88, 166, 255, 0.05) 100%);
  border: 1px solid rgba(88, 166, 255, 0.2);
  border-radius: var(--radius-xl);
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 0;
  transform: scale(0.85) translateY(40px);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(88, 166, 255, 0.1),
    0 0 60px rgba(88, 166, 255, 0.15);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

/* Modal Header with Icon */
.modal-header {
  padding: 40px 40px 0;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.modal-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(88, 166, 255, 0.3);
  color: var(--accent-primary);
}

.modal-title-wrapper {
  flex: 1;
  padding-right: 50px;
}

.modal-title-wrapper h3 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Modal Content */
.modal-body {
  padding: 32px 40px 40px;
}

.modal-section-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-primary);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-section-title::before {
  content: '';
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), transparent);
}

/* Premium Feature List */
.modal-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.modal-list-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  margin-bottom: 12px;
  background: rgba(88, 166, 255, 0.05);
  border: 1px solid rgba(88, 166, 255, 0.1);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.modal-list-item:hover {
  background: rgba(88, 166, 255, 0.1);
  border-color: rgba(88, 166, 255, 0.2);
  transform: translateX(4px);
}

.modal-list-item i {
  font-size: 22px;
  color: var(--accent-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.modal-list-item span {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* Modal CTA */
.modal-footer {
  padding: 0 40px 40px;
  display: flex;
  justify-content: center;
}

.modal-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-violet));
  color: white;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(88, 166, 255, 0.3);
}

.modal-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(88, 166, 255, 0.4);
}

.modal-cta i {
  font-size: 18px;
}

/* Close Button */
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(236, 72, 153, 0.2);
  border-color: rgba(236, 72, 153, 0.4);
  color: var(--accent-pink);
  transform: rotate(90deg);
}

/* Light Theme Adjustments */
.light-theme .modal {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(88, 166, 255, 0.08) 100%);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(88, 166, 255, 0.15),
    0 0 40px rgba(88, 166, 255, 0.1);
}

.light-theme .modal-list-item {
  background: rgba(88, 166, 255, 0.08);
}

.light-theme .modal-close {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   SEARCH POPUP
   ========================================================================== */
.search-popup {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, 0.95);
  backdrop-filter: blur(20px);
  z-index: 10001;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 20vh;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.search-popup.active {
  opacity: 1;
  visibility: visible;
}

.search-popup-content {
  width: 90%;
  max-width: 600px;
  position: relative;
}

.search-popup input {
  width: 100%;
  padding: 24px 32px;
  font-size: 24px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-primary);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast);
}

.search-popup input:focus {
  border-color: var(--accent-primary);
}

.search-popup input::placeholder {
  color: var(--text-muted);
}

.search-hint {
  text-align: center;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ==========================================================================
   MOBILE MENU
   ========================================================================== */
/* Mobile Center Button Group - default hidden */
.header-center-mobile {
  display: none;
}

/* Mobile Menu Toggle - default: hidden */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  padding: 32px;
  flex-direction: column;
  gap: 8px;
  z-index: 999;
}

.mobile-nav.active {
  display: flex;
}

/* Desktop: Mobile Navigation immer versteckt */
@media (min-width: 769px) {
  .mobile-nav,
  .mobile-nav.active {
    display: none !important;
  }
}

.mobile-nav a {
  padding: 18px 20px;
  font-size: 17px;
  color: var(--text-primary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  min-height: 56px;
  display: flex;
  align-items: center;
}

.mobile-nav a:hover {
  background: var(--bg-tertiary);
  color: var(--accent-primary);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
    --header-height: 64px;
  }
  
  /* Mobile Header Layout 
     Reihenfolge: Logo | Center Group (Theme + Top + Lang) | Hamburger 
  */
  .header-inner {
    padding: 0 8px 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  /* Hero Mobile Optimierung */
  .hero {
    min-height: 100svh;
    padding: calc(var(--header-height) + 40px) 20px 60px;
  }
  
  .hero h1 {
    font-size: clamp(36px, 10vw, 56px);
    line-height: 1.1;
  }
  
  .hero-tagline {
    font-size: clamp(18px, 5vw, 24px);
  }
  
  .hero-description {
    font-size: 16px;
    padding: 0 10px;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 280px;
  }
  
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Logo links */
  .brand {
    flex: 0 0 auto;
  }
  
  .brand-name {
    display: none;
  }
  
  /* Zentrale Button-Gruppe: Theme + Back-to-Top + Lang */
  .header-center-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1 1 auto;
    margin: 0 8px;
  }
  
  .header-fab-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    flex-shrink: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  
  .header-fab-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(88, 166, 255, 0.5);
  }
  
  html.light-theme .header-fab-btn {
    background: rgba(10, 12, 16, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
  }
  
  /* Lang-Switch in der zentralen Gruppe */
  .header-center-mobile .lang-switch {
    display: flex;
    padding: 2px;
    gap: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    flex-shrink: 0;
  }
  
  .header-center-mobile .lang-btn {
    padding: 5px 8px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-sm);
  }
  
  .header-center-mobile .lang-btn.active {
    background: rgba(255, 255, 255, 0.2);
    color: #58a6ff;
  }
  
    /* Light Mode: Mobile Header Language Switch - Higher specificity */
  html.light-theme body .header-center-mobile .lang-switch {
    background: rgba(10, 12, 16, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  html.light-theme body .header-center-mobile .lang-btn {
    color: rgba(255, 255, 255, 0.9);
  }
  
  html.light-theme body .header-center-mobile .lang-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
  }
  
  html.light-theme body .header-center-mobile .lang-btn.active {
    background: rgba(88, 166, 255, 0.3);
    color: #ffffff;
  }
  
  /* Light Mode: Desktop Header Language Switch */
  html.light-theme .lang-switch.desktop-lang {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
  }
  
  html.light-theme .lang-switch.desktop-lang .lang-btn {
    color: var(--text-secondary);
  }
  
  html.light-theme .lang-switch.desktop-lang .lang-btn:hover {
    color: var(--text-primary);
    background: var(--bg-elevated);
  }
  
  html.light-theme .lang-switch.desktop-lang .lang-btn.active {
    background: var(--accent-primary);
    color: white;
  }
  
  /* Desktop Lang-Switch ausblenden, Mobile anzeigen */
  .lang-switch.desktop-lang {
    display: none !important;
  }
  
  /* Mobile Header Elemente anzeigen */
  .header-center-mobile {
    display: flex !important;
  }
  
  .mobile-menu-toggle {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px 8px;
    margin-left: 4px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
  }
  
  .mobile-menu-toggle span {
    width: 22px;
    height: 2px;
  }
  
  /* Seitliche FAB Buttons im Mobile ausblenden */
  .fab-container {
    display: none !important;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .btn {
    width: 100%;
  }
  
  .hero-float {
    display: none;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .stat-item:not(:last-child)::after {
    display: none;
  }
  
  .tutorial-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .tutorial-card {
    padding: 24px;
  }
  
  /* Touch Highlight für Mobile */
  .tutorial-card:active,
  .tutorial-card.touch-active {
    border-color: var(--card-border, var(--accent-primary));
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    transform: scale(0.98);
    transition: all 0.15s ease;
  }
  
  .card-visual {
    height: 120px;
  }
  
  .iso-scene {
    width: 60px;
    height: 60px;
  }
  
  /* Charter Cards Mobile */
  .charter-grid {
    grid-template-columns: 1fr;
  }
  
  .charter-card {
    padding: 24px;
  }
  
  /* Seitliche FAB Buttons im Mobile ausblenden */
  .fab-container {
    display: none;
  }
  
  /* Section Padding Mobile */
  .section {
    padding: 60px 0;
  }
  
  .section-inner {
    padding: 0 16px;
  }
  
  /* Content Pages Mobile */
  .page-header {
    padding: calc(var(--header-height) + 20px) 0 40px;
  }
  
  .page-header .section-inner {
    padding: 0 16px;
  }
  
  .breadcrumb {
    font-size: 13px;
    margin-bottom: 24px;
  }
  
  .page-icon {
    margin-bottom: 16px;
  }
  
  .page-icon .iso-scene {
    width: 48px;
    height: 48px;
  }
  
  .page-icon .iso-platform {
    width: 32px;
    height: 32px;
  }
  
  .page-icon .ai-core {
    width: 12px;
    height: 12px;
  }
  
  .content-block {
    margin-bottom: 32px;
  }
  
  .content-heading {
    font-size: 20px;
  }
  
  .content-heading i {
    font-size: 24px;
  }
  
  .content-block p {
    font-size: 15px;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .faq-card {
    padding: 20px;
  }
  
  .lang-notice {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }
  
  .content-nav {
    margin-top: 32px;
    padding-top: 24px;
  }
  
  /* Footer Links Mobile */
  .footer-links {
    gap: 16px;
    font-size: 13px;
  }
  
  .modal {
    padding: 24px;
    margin: 16px;
    max-height: 80vh;
    overflow-y: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   CLASSROOM MODE - Für Präsentationen/Vorträge (Lesbarkeit aus 10m)
   ========================================================================== */
html.classroom-mode {
  /* Basis: 50% größere Schrift */
  font-size: 24px;
}

html.classroom-mode body {
  /* Höherer Kontrast */
  background: var(--bg-primary);
  color: var(--text-primary);
}

/* Particles ausblenden - Ablenkung bei Präsentationen */
html.classroom-mode #particles-canvas {
  display: none !important;
}

/* Header vereinfachen - nur Logo und Essentials */
html.classroom-mode .site-header {
  height: 80px;
}

html.classroom-mode .brand-name {
  font-size: 1.2rem;
}

/* Navigation ausblenden - Fokus auf Content */
html.classroom-mode .main-nav,
html.classroom-mode .mobile-nav {
  display: none !important;
}

/* Content Bereiche vergrößern */
html.classroom-mode .section {
  padding: 80px 0;
}

html.classroom-mode h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 32px;
}

html.classroom-mode h2 {
  font-size: 2.5rem;
  line-height: 1.3;
  margin-bottom: 24px;
}

html.classroom-mode h3 {
  font-size: 1.8rem;
  line-height: 1.4;
  margin-bottom: 20px;
}

html.classroom-mode p,
html.classroom-mode li {
  font-size: 1.3rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

html.classroom-mode .section-subtitle {
  font-size: 1.5rem;
  line-height: 1.6;
}

/* Cards vergrößern */
html.classroom-mode .tutorial-card,
html.classroom-mode .charter-card,
html.classroom-mode .faq-card {
  padding: 48px;
  font-size: 1.2rem;
}

html.classroom-mode .tutorial-card h4,
html.classroom-mode .charter-card h3 {
  font-size: 1.6rem;
}

/* Buttons vergrößern */
html.classroom-mode .btn {
  padding: 20px 40px;
  font-size: 1.2rem;
  min-height: 64px;
}

/* Page Header vergrößern */
html.classroom-mode .page-header {
  padding: calc(var(--header-height) + 60px) 0 60px;
}

html.classroom-mode .page-header h1 {
  font-size: 4rem;
}

html.classroom-mode .breadcrumb {
  font-size: 1.1rem;
  margin-bottom: 32px;
}

/* Feature Listen vergrößern */
html.classroom-mode .feature-list li {
  font-size: 1.3rem;
  padding: 16px 0;
}

html.classroom-mode .feature-list i {
  font-size: 1.4rem;
}

/* Content Blocks vergrößern */
html.classroom-mode .content-block {
  margin-bottom: 64px;
}

html.classroom-mode .content-heading {
  font-size: 2rem;
}

html.classroom-mode .content-heading i {
  font-size: 2rem;
}

/* Support Section vergrößern */
html.classroom-mode .support-card {
  padding: 48px;
}

html.classroom-mode .support-card h3 {
  font-size: 1.8rem;
}

html.classroom-mode .support-card p {
  font-size: 1.3rem;
}

/* Footer vergrößern */
html.classroom-mode .site-footer {
  padding: 48px 24px;
}

html.classroom-mode .footer-brand {
  font-size: 1.4rem;
}

html.classroom-mode .footer-links a {
  font-size: 1.2rem;
  padding: 12px 16px;
}

/* Mobile: KEIN Classroom Mode */
@media (max-width: 768px) {
  /* Classroom Button auf Mobile ausblenden */
  #classroom-toggle,
  .fab-btn[title="Classroom Mode"],
  .fab-btn[title="Classroom"] {
    display: none !important;
  }
  
  /* Falls doch aktiviert: Classroom Mode auf Mobile deaktivieren */
  html.classroom-mode {
    font-size: 16px;
  }
  
  html.classroom-mode h1 {
    font-size: 2rem;
  }
  
  html.classroom-mode h2 {
    font-size: 1.5rem;
  }
  
  html.classroom-mode p,
  html.classroom-mode li {
    font-size: 1rem;
    line-height: 1.6;
  }
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.glow {
  box-shadow: 0 0 40px var(--accent-primary-glow);
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  background: var(--accent-primary);
  color: var(--bg-primary);
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-md);
  z-index: 10001;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 16px;
}

/* ==========================================================================
   CLASSROOM MODE WIDTH OVERRIDE - Must be last to override all others
   ========================================================================== */
html.classroom-mode .section-inner,
html.classroom-mode .page-header .section-inner {
  max-width: 100%;
  padding: 0 80px;
}

/* Content pages have content-body with limited width - override in classroom mode */
html.classroom-mode .content-body {
  max-width: 100%;
}

/* ==========================================================================
   GRID SYSTEM - For Card Layouts
   Added to fix generation pages layout
   ========================================================================== */

/* Base Grid Container */
.grid {
  display: grid;
  gap: 24px;
}

/* 2 Column Grid */
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* 3 Column Grid */
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* 4 Column Grid */
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Grid items fill height */
.grid > * {
  height: 100%;
}

/* Charter cards in grid */
.grid .charter-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

.grid .charter-card h4 {
  margin-top: 0;
}

.grid .charter-card p {
  flex-grow: 1;
  margin-bottom: 0;
}

/* Responsive Grid */
@media (max-width: 1200px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid,
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Grid items as links */
.grid a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
