/*
Theme Name: Digitaldurchstarter
Theme URI:
Author: Developer
Description: Custom WordPress theme for Digitaldurchstarter. Target audience: Lernende and Arbeitgeber.
Version: 2.0
Text Domain: digitaldurchstarter
*/

/* ============================================================
   0. GOOGLE FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  --color-primary: #069621;
  --color-primary-dark: #057d1b;
  --color-primary-light: #e6f9ea;
  --color-light: #d2d2d2;
  --color-grey: #595b58;
  --color-grey-dark: #4a4c49;
  --color-white: #ffffff;
  --color-dark: #111312;
  --color-surface: #f7f8f6;
  --color-surface-alt: #eef0ec;

  --font-base: 'Inter', Arial, sans-serif;

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 800;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .06);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, .1);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, .14);

  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --container-width: 1200px;
  --header-height: 80px;
}

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

html {
}

body {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-dark);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ============================================================
   3. LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 24px;
}

.section-pad {
  padding-block: 96px;
}

.section-pad--sm {
  padding-block: 64px;
}

/* ============================================================
   4. TYPOGRAPHY
   ============================================================ */
h1,
h2,
h3,
h4 {
  font-weight: var(--fw-bold);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.section-label::before {
  content: '';
  display: block;
  width: 14px;
  height: 14px;
  background: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
}

body.home .section-label::before {
  width: 18px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary), rgba(6, 150, 33, 0.18));
}

body.page-template-page-coaching .section-label::before {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  transform: rotate(45deg);
}

body.page-template-page-arbeitgeber .section-label::before {
  width: 16px;
  height: 16px;
  background: transparent;
  border: 2px solid var(--color-primary);
  border-radius: 5px;
}

body.page-template-page-avgs .section-label::before {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--color-primary) 0 34%, transparent 35% 58%, var(--color-primary) 59% 100%);
}

body.page-template-page-ueber-uns .section-label::before {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

body.page-template-page-faq .section-label::before {
  width: 18px;
  height: 14px;
  background: transparent;
  border-left: 4px solid var(--color-primary);
  border-right: 4px solid var(--color-primary);
  border-radius: 2px;
}

body.page-template-page-kontakt .section-label::before {
  width: 18px;
  height: 14px;
  border-radius: 3px;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 58% 70%, 48% 100%, 38% 70%, 0 70%);
}

body.page-template-default .section-label::before,
body.page-template-page-impressum .section-label::before,
body.page-template-page-datenschutz .section-label::before,
body.page-template-page-agb .section-label::before {
  width: 18px;
  height: 12px;
  border-radius: 0;
  clip-path: polygon(0 50%, 48% 0, 48% 30%, 100% 30%, 100% 70%, 48% 70%, 48% 100%);
}

.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  color: var(--color-dark);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-grey);
  max-width: 580px;
  line-height: 1.8;
}

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: var(--fw-semibold);
  font-size: 0.9rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  font-family: var(--font-base);
  will-change: transform;
}

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

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(8, 175, 39, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--color-dark);
  color: var(--color-white);
  border-color: var(--color-dark);
}

.btn-dark:hover {
  background: var(--color-grey-dark);
  border-color: var(--color-grey-dark);
  transform: translateY(-2px);
}

/* ============================================================
   6. HEADER & NAVIGATION — CLEAN LIGHT
   ============================================================ */

@keyframes header-slide-down {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes submenu-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* === Site Header === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  /* Light frosted glass — logo white bg blends in perfectly */
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  transition: box-shadow var(--transition), border-color var(--transition);
  animation: header-slide-down 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Thin green accent band along the very top edge */
.header-glow-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
      transparent,
      var(--color-primary) 30%,
      var(--color-primary) 70%,
      transparent);
  opacity: 0.7;
  pointer-events: none;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* === Header Container === */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 28px;
  gap: 24px;
}

/* === Logo === */
.site-branding {
  flex-shrink: 0;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  transition: opacity var(--transition);
}

.logo-link:hover {
  opacity: 0.85;
}

/* No ring, no frame — logo sits naturally on the white header */
.logo-ring {
  display: contents;
}

.site-logo {
  display: block;
  height: 54px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

/* Wordmark sits alongside the logo image */
.logo-wordmark {
  display: none;
  /* logo already contains the text — hide wordmark to avoid duplication */
}

/* === Primary nav === */
.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation ul li {
  position: relative;
}

.main-navigation ul li>a {
  display: block;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: var(--fw-medium);
  color: var(--color-grey-dark);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  position: relative;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* Animated underline — grows from left on hover */
.main-navigation ul li>a::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.main-navigation ul li>a:hover {
  color: var(--color-dark);
}

.main-navigation ul li>a:hover::after,
.main-navigation ul li.current-menu-item>a::after {
  transform: scaleX(1);
}

.main-navigation ul li.current-menu-item>a {
  color: var(--color-dark);
  font-weight: var(--fw-semibold);
}

/* === Dropdown === */
.main-navigation ul li ul {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 8px;
  flex-direction: column;
  gap: 2px;
  animation: submenu-in 0.2s ease both;
  z-index: 100;
}

/* Triangle caret */
.main-navigation ul li ul::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 18px;
  width: 12px;
  height: 6px;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  background: var(--color-white);
  filter: drop-shadow(0 -1px 0 rgba(0, 0, 0, 0.06));
}

/* Hover bridge to prevent losing hover state */
.main-navigation ul li ul::after {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
  background: transparent;
}

.main-navigation ul li:hover>ul {
  display: flex;
}

.main-navigation ul li ul li a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.855rem;
  padding: 9px 14px;
  color: var(--color-grey-dark);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.main-navigation ul li ul li a::after {
  display: none;
}

.main-navigation ul li ul li a:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

/* Submenu dot */
.submenu-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity var(--transition);
}

.main-navigation ul li ul li a:hover .submenu-dot {
  opacity: 1;
}

/* === CTA nav button === */
.nav-cta {
  margin-left: 8px;
}

.nav-cta>a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 9px 20px !important;
  background: var(--color-primary) !important;
  color: var(--color-white) !important;
  border-radius: var(--radius-full) !important;
  font-weight: var(--fw-semibold) !important;
  font-size: 0.855rem !important;
  letter-spacing: 0.01em !important;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition) !important;
  white-space: nowrap;
}

.nav-cta>a::after {
  display: none !important;
}

.nav-cta>a:hover {
  background: var(--color-primary-dark) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(8, 175, 39, 0.35) !important;
}

.cta-arrow {
  display: inline-block;
  transition: transform 0.22s ease;
  font-style: normal;
}

.nav-cta>a:hover .cta-arrow {
  transform: translateX(3px);
}

/* === Hamburger toggle === */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  cursor: pointer;
  padding: 8px;
  background: transparent;
  border: 1.5px solid var(--color-light);
  border-radius: var(--radius-sm);
  transition: background var(--transition), border-color var(--transition);
  height: 40px;
  width: 40px;
}

.menu-toggle:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
}

.bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-dark);
  border-radius: var(--radius-full);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.2s ease,
    width 0.25s ease;
  transform-origin: center;
}

.bar-1 {
  margin-bottom: 5px;
}

.bar-3 {
  margin-top: 5px;
}

/* Hamburger → ✕ */
.menu-toggle.is-open .bar-1 {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open .bar-2 {
  opacity: 0;
  width: 0;
}

.menu-toggle.is-open .bar-3 {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   7. HOMEPAGE — 3D IMMERSIVE "DIGITAL VOID" HERO
   ============================================================ */

/* Extended design tokens for the void */
:root {
  --color-void:        #030b05;
  --color-neon-green:  #08af27;
  --color-neon-bright: #39ff14;
  --color-neon-cyan:   #00e5ff;
  --color-panel-l:     rgba(3, 18, 6, 0.72);
  --color-panel-r:     rgba(2, 8, 16, 0.72);
  --glow-green:        0 0 24px rgba(8, 175, 39, 0.7), 0 0 60px rgba(8, 175, 39, 0.3);
  --glow-cyan:         0 0 24px rgba(0, 229, 255, 0.7), 0 0 60px rgba(0, 229, 255, 0.3);
  --portal-size:       360px;
}

/* ── Page padding ─────────────────────────────────────────── */
.front-page-main {
  padding-top: var(--header-height);
}

/* ── Hero section container ───────────────────────────────── */
.hero-split-section {
  position: relative;
  display: grid;
  grid-template-columns: 1fr var(--portal-size) 1fr;
  min-height: calc(100vh - var(--header-height));
  background: var(--color-void);
  overflow: hidden;
  /* 3D perspective for child panels */
  perspective: 1400px;
  perspective-origin: 50% 50%;
}

/* ── WebGL canvas ─────────────────────────────────────────── */
#hero-webgl-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* ── Mobile CSS-only fallback bg ─────────────────────────── */
.hero-mobile-bg {
  display: none; /* hidden on desktop — Three.js is the bg */
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 50%, rgba(8,175,39,0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 50%, rgba(0,229,255,0.20) 0%, transparent 55%),
    linear-gradient(160deg, #030b05 0%, #010d10 100%);
  z-index: 0;
}

/* ── VOID PANELS ──────────────────────────────────────────── */
.void-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 52px 80px 52px;
  z-index: 2;
  transform-style: preserve-3d;
  transition: transform 0.05s linear; /* JS overrides with GSAP */
  overflow: hidden;
}

/* ── REACTIVE LIGHTING BACKGROUNDS ── */
.void-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.15;
  transition: opacity 0.3s ease;
  background: radial-gradient(
    800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.4),
    transparent 40%
  );
}

.void-panel:hover::before {
  opacity: 0.25;
}

/* Lernende — pivots from its RIGHT edge */
.lernende-panel {
  transform-origin: right center;
  background: var(--color-panel-l);
  backdrop-filter: blur(2px);
  /* border-right removed to prevent solid hard lines at edges */
}

/* Neon green edge glow on left panel */
.lernende-panel::after {
  content: '';
  position: absolute;
  top: 10%; right: 0; bottom: 10%;
  width: 2px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(8, 175, 39, 0.3) 15%,
    rgba(57, 255, 20, 1.0) 50%,
    rgba(8, 175, 39, 0.3) 85%,
    transparent 100%
  );
  box-shadow: 
    0 0 30px 2px rgba(8, 175, 39, 0.8),
    0 0 80px 8px rgba(8, 175, 39, 0.3);
  mix-blend-mode: screen;
  filter: blur(0.5px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 75%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 75%, transparent 100%);
  z-index: 10;
  pointer-events: none;
}

/* Arbeitgeber — pivots from its LEFT edge */
.arbeitgeber-panel {
  transform-origin: left center;
  background: var(--color-panel-r);
  backdrop-filter: blur(2px);
  /* border-left removed to prevent solid hard lines at edges */
}

/* Neon cyan edge glow on right panel */
.arbeitgeber-panel::after {
  content: '';
  position: absolute;
  top: 10%; left: 0; bottom: 10%;
  width: 2px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(0, 229, 255, 0.3) 15%,
    rgba(0, 229, 255, 1.0) 50%,
    rgba(0, 229, 255, 0.3) 85%,
    transparent 100%
  );
  box-shadow: 
    0 0 30px 2px rgba(0, 229, 255, 0.8),
    0 0 80px 8px rgba(0, 229, 255, 0.3);
  mix-blend-mode: screen;
  filter: blur(0.5px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 75%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 75%, transparent 100%);
  z-index: 10;
  pointer-events: none;
}

/* ── Panel content ────────────────────────────────────────── */
.panel-content {
  position: relative;
  z-index: 3;
  max-width: 400px;
  transform-style: preserve-3d;
}

/* ── Panel title ──────────────────────────────────────────── */
.panel-title {
  font-size: clamp(2rem, 3.2vw, 3rem);
  color: var(--color-white);
  font-weight: var(--fw-black);
  margin-bottom: 16px;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.panel-title__sub {
  font-size: 0.65em;
  font-weight: var(--fw-regular);
  color: rgba(255,255,255,0.5);
  display: block;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.panel-title .highlight {
  color: var(--color-neon-green);
  text-shadow: 0 0 20px rgba(8, 175, 39, 0.6);
  display: inline-block;
}

.panel-title .highlight--cyan {
  color: var(--color-neon-cyan);
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.6);
}

/* ── Panel description ────────────────────────────────────── */
.panel-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
  margin-bottom: 36px;
}

/* ── Split badge ──────────────────────────────────────────── */
.split-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.72rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 22px;
}

.split-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-neon-green);
  box-shadow: 0 0 6px rgba(8, 175, 39, 0.9);
  animation: pulse 2s infinite;
}

.split-badge .dot--cyan {
  background: var(--color-neon-cyan);
  box-shadow: 0 0 6px rgba(0, 229, 255, 0.9);
}

/* ── Split actions ────────────────────────────────────────── */
.split-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ── Neon glow button variants ────────────────────────────── */
.btn--glow {
  box-shadow: 0 0 18px rgba(8, 175, 39, 0.45);
  transition: var(--transition), box-shadow 0.3s ease;
}
.btn--glow:hover {
  box-shadow: var(--glow-green), 0 8px 24px rgba(8, 175, 39, 0.4);
}

.btn--glow-cyan {
  background: rgba(0, 229, 255, 0.12) !important;
  color: var(--color-neon-cyan) !important;
  border-color: var(--color-neon-cyan) !important;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.3);
  transition: var(--transition), box-shadow 0.3s ease;
}
.btn--glow-cyan:hover {
  background: rgba(0, 229, 255, 0.22) !important;
  box-shadow: var(--glow-cyan), 0 8px 24px rgba(0, 229, 255, 0.35);
  transform: translateY(-2px);
}

/* ── Pulse keyframe ───────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.4); }
}

/* ── CENTRAL PORTAL ───────────────────────────────────────── */
.portal-center {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  cursor: default;
  /* vertically center the portal in the hero */
  align-self: center;
  justify-self: center;
}

/* Portal rings */
.portal-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 1.5px solid transparent;
  transform: translate(-50%, -50%);
}

.portal-ring--outer {
  width: 96px;
  height: 96px;
  border-color: rgba(8, 175, 39, 0.85);
  box-shadow: var(--glow-green), inset 0 0 20px rgba(8,175,39,0.15);
  animation: portal-spin 6s linear infinite;
  /* dashed ring via border + background clip */
  border-style: dashed;
}

.portal-ring--mid {
  width: 70px;
  height: 70px;
  border-color: rgba(0, 229, 255, 0.7);
  box-shadow: var(--glow-cyan), inset 0 0 14px rgba(0,229,255,0.1);
  animation: portal-spin 4s linear infinite reverse;
  border-style: dotted;
}

/* Portal core */
.portal-core {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(8,175,39,0.4) 0%, rgba(0,229,255,0.2) 60%, transparent 100%);
  box-shadow: var(--glow-green);
  animation: portal-pulse 2.4s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.portal-core__inner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-neon-green);
  box-shadow: var(--glow-green);
  animation: portal-pulse 1.8s ease-in-out infinite reverse;
}

/* Portal labels — vertical text flanking the core */
.portal-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: var(--fw-black);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(8, 175, 39, 0.55);
  white-space: nowrap;
}
.portal-label--top    { top: -75px; }
.portal-label--bottom { bottom: -75px; }

.hero-swipe-controls {
  display: none;
}

@keyframes portal-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes portal-pulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%       { transform: scale(1.18); opacity: 0.75; }
}

/* ── HOLOGRAPHIC FLOATING CHIPS ───────────────────────────── */
.holo-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px) saturate(200%);
  -webkit-backdrop-filter: blur(16px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.04em;
  z-index: 4;
  pointer-events: auto; /* enable mouse tracking */
  box-shadow: 0 4px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.08);
  transform-style: preserve-3d;
  overflow: hidden;
}

.holo-chip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.4) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}

.holo-chip:hover::after {
  opacity: 1;
}

.holo-chip__icon {
  font-size: 1rem;
  line-height: 1;
  transform: translateZ(12px);
}

.holo-chip__text {
  transform: translateZ(12px);
}

/* Base positions — GSAP will drift these */
.holo-chip--1 { top: 14%; left: 6%; }
.holo-chip--2 { bottom: 18%; left: 6%; }
.holo-chip--3 { top: 14%; right: 10%; }
.holo-chip--4 { bottom: 18%; right: 14%; }

/* ── NEURAL GROWTH SVG ────────────────────────────────────── */
.neural-growth {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 300px;
  opacity: 0.4;
  z-index: 1;
  pointer-events: none;
}

.neural-growth .branch {
  stroke: var(--color-neon-green);
  stroke-width: 1.5;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
}

.neural-growth .node {
  fill: var(--color-neon-green);
  opacity: 0;
  animation: node-pop 0.4s ease-out forwards;
}
.node--root { animation-delay: 0.1s; }
.node--l1   { animation-delay: 0.5s; }
.node--l2   { animation-delay: 1.0s; }
.node--l3   { animation-delay: 1.4s; }
.node--tip  { animation-delay: 2.0s; filter: url(#glow); }

@keyframes node-pop {
  from { opacity: 0; transform: scale(0); transform-box: fill-box; transform-origin: center; }
  to   { opacity: 1; transform: scale(1); transform-box: fill-box; transform-origin: center; }
}

/* ── DATA MATRIX (Arbeitgeber side decoration) ────────────── */
.data-matrix {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  opacity: 0.08;
  pointer-events: none;
  z-index: 1;
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  color: var(--color-neon-cyan);
  animation: matrix-flicker 4s ease-in-out infinite;
}

@keyframes matrix-flicker {
  0%, 100% { opacity: 0.08; }
  50%       { opacity: 0.14; }
}

/* ── GLITCH TEXT ──────────────────────────────────────────── */
.glitch-target {
  position: relative;
  display: inline-block;
}

.glitch-target::before,
.glitch-target::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.glitch-target.is-glitching::before {
  color: var(--color-neon-cyan);
  animation: glitch-a 0.3s steps(2) forwards;
  clip-path: polygon(0 20%, 100% 20%, 100% 45%, 0 45%);
  transform: translate(-2px, 0);
  opacity: 0.7;
}

.glitch-target.is-glitching::after {
  color: #ff0088;
  animation: glitch-b 0.3s steps(2) 0.05s forwards;
  clip-path: polygon(0 55%, 100% 55%, 100% 80%, 0 80%);
  transform: translate(2px, 0);
  opacity: 0.7;
}

@keyframes glitch-a {
  0%   { transform: translate(-3px,  1px) skewX(-2deg); }
  33%  { transform: translate( 3px, -1px) skewX(2deg);  }
  66%  { transform: translate(-2px,  2px) skewX(-1deg); }
  100% { transform: translate(0, 0) skewX(0); opacity: 0; }
}

@keyframes glitch-b {
  0%   { transform: translate( 3px, -1px) skewX(2deg); }
  33%  { transform: translate(-3px,  1px) skewX(-2deg);}
  66%  { transform: translate( 2px, -2px) skewX(1deg); }
  100% { transform: translate(0, 0) skewX(0); opacity: 0; }
}

/* ── Float drift keyframe (used by GSAP but CSS fallback) ─── */
@keyframes float-drift {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  33%       { transform: translateY(-8px) translateX(4px); }
  66%       { transform: translateY(5px) translateX(-3px); }
}

/* ── SWIPE LAYOUT FOR MOBILE + MID-SIZE SCREENS ───────────── */
@media (max-width: 1399px) {
  .hero-split-section {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    height: calc(100vh - var(--header-height));
    perspective: none;
    position: relative;
    scrollbar-width: none; /* Firefox */
  }
  .hero-split-section::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
  }

  /* Sticky background so it doesn't scroll with content */
  #hero-webgl-canvas,
  .hero-mobile-bg {
    position: sticky;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100%;
    flex: 0 0 100vw;
    z-index: 0;
  }

  /* Un-hide canvas so our low-power mode works */
  #hero-webgl-canvas { display: block; }
  .hero-mobile-bg    { display: none; }

  .void-panel {
    flex: 0 0 100vw;
    width: 100vw;
    scroll-snap-align: center;
    padding: 80px 24px;
    transform-origin: center !important;
    backdrop-filter: none;
    z-index: 2;
    /* Adjust internal layout for stacking nicely */
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Make panels slightly transparent so background is visible */
  .lernende-panel {
    background: linear-gradient(145deg, rgba(4, 14, 6, 0.85) 0%, rgba(11, 32, 16, 0.85) 100%);
    /* Move left margin so it overlaps the background canvas properly */
    margin-left: -100vw;
  }
  .arbeitgeber-panel {
    background: linear-gradient(145deg, rgba(4, 8, 14, 0.85) 0%, rgba(8, 21, 37, 0.85) 100%);
  }

  .portal-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: none; /* let swipes pass through */
    height: auto;
    margin: 0;
  }

  .holo-chip--1 { top: 12%;  left: 5%; }
  .holo-chip--2 { bottom: 18%; left: 5%; }
  .holo-chip--3 { top: 12%;  right: 5%; }
  .holo-chip--4 { bottom: 18%; right: 5%; }

  .neural-growth { width: 140px; height: 200px; opacity: 0.35; }
  .data-matrix { display: none; }

  .panel-title { font-size: clamp(2rem, 8vw, 2.8rem); margin-bottom: 12px; }
  .panel-desc { font-size: 1.05rem; }

  .hero-split-section::after {
    content: none;
  }

  .hero-swipe-controls {
    position: absolute;
    inset: 0;
    z-index: 12;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    pointer-events: none;
  }

  .hero-swipe-arrow {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(3, 10, 18, 0.72);
    color: rgba(255, 255, 255, 0.98);
    font-size: 1.25rem;
    line-height: 1;
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    cursor: pointer;
    opacity: 0.96;
    transition: transform var(--transition), opacity var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
  }

  .hero-swipe-arrow--next {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
  }

  .hero-swipe-arrow:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(6, 16, 28, 0.9);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
  }

  .hero-swipe-arrow--next:hover {
    transform: translateY(calc(-50% - 2px));
  }

  .hero-swipe-arrow:disabled {
    opacity: 0.42;
    cursor: default;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  }

  .hero-swipe-arrow--next:disabled {
    transform: translateY(-50%);
  }
}

@keyframes fade-pulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.6; }
}

@media (prefers-reduced-motion: reduce) {
  #hero-webgl-canvas     { display: none; }
  .hero-mobile-bg        { display: block; }
  .portal-ring,
  .portal-core,
  .portal-core__inner,
  .neural-growth .branch,
  .neural-growth .node,
  .split-badge .dot,
  .data-matrix           { animation: none !important; }
  .glitch-target::before,
  .glitch-target::after  { display: none; }
}


/* ============================================================
   8. HOMEPAGE — INFO STRIP
   ============================================================ */
.info-strip {
  background: var(--color-primary);
  padding-block: 20px;
}

.info-strip-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.info-strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: var(--fw-medium);
}

.info-strip-item .icon {
  font-size: 1.2rem;
}

/* ============================================================
   9. HOMEPAGE — ABOUT SECTION
   ============================================================ */
.about-section {
  background: var(--color-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-image-wrapper img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.about-badge-float {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.about-badge-float .num {
  font-size: 2.2rem;
  font-weight: var(--fw-black);
  color: var(--color-primary);
  display: block;
  line-height: 1;
}

.about-badge-float .lbl {
  font-size: 0.75rem;
  color: var(--color-grey);
  display: block;
  margin-top: 4px;
}

.about-text .checkmarks {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkmark-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--color-grey-dark);
}

.checkmark-item .check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  margin-top: 2px;
}

/* ============================================================
   10. HOMEPAGE — COACHING CARDS
   ============================================================ */
.coaching-section {
  background: var(--color-surface);
}

.coaching-section .section-header {
  text-align: center;
  margin-bottom: 56px;
}

.coaching-section .section-subtitle {
  margin-inline: auto;
}

.coaching-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.coaching-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, .05);
  transition: box-shadow 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.coaching-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.coaching-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

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

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.coaching-card h3 {
  font-size: 1.15rem;
  font-weight: var(--fw-bold);
  color: var(--color-dark);
  margin-bottom: 10px;
}

.coaching-card p {
  font-size: 0.9rem;
  color: var(--color-grey);
  line-height: 1.7;
  margin-bottom: 24px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  transition: var(--transition);
}

.card-link:hover {
  gap: 10px;
}

/* ============================================================
   11. HOMEPAGE — AVGS BANNER
   ============================================================ */
.avgs-banner {
  background: linear-gradient(135deg, #0d1f11 0%, #08af27 100%);
  position: relative;
  overflow: hidden;
}

.avgs-banner::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
  pointer-events: none;
}

.avgs-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.avgs-text {
  flex: 1 1 0%;
  min-width: 300px;
}

.avgs-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--color-white);
  margin-bottom: 12px;
}

.avgs-text p {
  font-size: 1rem;
  color: rgba(255, 255, 255, .75);
  max-width: 540px;
  line-height: 1.7;
}

.avgs-actions {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}

/* ============================================================
   12. HOMEPAGE — TESTIMONIALS
   ============================================================ */
.testimonials-section {
  background: var(--color-white);
}

.testimonials-section .section-header {
  text-align: center;
  margin-bottom: 56px;
}

.testimonials-section .section-subtitle {
  margin-inline: auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(0, 0, 0, .05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.stars span {
  color: #f5a623;
  font-size: 0.9rem;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--color-grey-dark);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: var(--fw-bold);
  color: white;
  flex-shrink: 0;
}

.author-info strong {
  display: block;
  font-size: 0.9rem;
  font-weight: var(--fw-semibold);
  color: var(--color-dark);
}

.author-info span {
  font-size: 0.8rem;
  color: var(--color-grey);
}

/* ============================================================
   13. FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, .7);
}

.footer-top {
  padding-block: 72px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .site-logo {
  height: auto;
  max-height: 48px;
  margin-bottom: 20px;
  background: var(--color-white);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, .55);
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, .6);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, .08);
}

.social-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, .55);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--color-primary);
  padding-left: 4px;
}

.footer-bottom {
  padding-block: 22px;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-inner p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, .35);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, .35);
  transition: var(--transition);
}

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

/* ============================================================
   14. PAGE TEMPLATES — INNER HERO
   ============================================================ */
.inner-hero {
  background: linear-gradient(135deg, #0d1f11 0%, #0a2414 60%, #111 100%);
  padding-top: calc(var(--header-height) + 80px);
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.inner-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(8, 175, 39, .2) 0%, transparent 60%);
}

.inner-hero .container {
  position: relative;
  z-index: 1;
}

.inner-hero .hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.inner-hero .breadcrumb {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, .5);
}

.inner-hero .breadcrumb a {
  color: var(--color-primary);
}

.inner-hero .breadcrumb span {
  color: rgba(255, 255, 255, .3);
  margin-inline: 6px;
}

.inner-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--color-white);
  margin-bottom: 20px;
}

.inner-hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .7);
  max-width: 640px;
  line-height: 1.75;
}

/* ============================================================
   15. PAGE — COACHING
   ============================================================ */
.coaching-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.process-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  font-weight: var(--fw-bold);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-body h4 {
  font-size: 1rem;
  font-weight: var(--fw-semibold);
  color: var(--color-dark);
  margin-bottom: 6px;
}

.step-body p {
  font-size: 0.9rem;
  color: var(--color-grey);
  line-height: 1.65;
}

.coach-facts-card {
  position: relative;
  background:
    radial-gradient(circle at top right, rgba(8, 175, 39, 0.12), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f5f8f4 100%);
  border-radius: 28px;
  padding: 34px;
  border: 1px solid rgba(8, 175, 39, 0.12);
  box-shadow: 0 18px 50px rgba(6, 150, 33, 0.08);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.coach-facts-card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--color-primary), rgba(8, 175, 39, 0.1));
}

.coach-facts-card::after {
  content: '';
  position: absolute;
  inset: auto -12% -34% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(8, 175, 39, 0.14), transparent 68%);
  pointer-events: none;
  transition: transform 0.45s ease, opacity 0.45s ease;
  opacity: 0.7;
}

.coach-facts-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 60px rgba(6, 150, 33, 0.14);
  border-color: rgba(8, 175, 39, 0.22);
}

.coach-facts-card:hover::after {
  transform: translate(-12px, -10px) scale(1.05);
  opacity: 1;
}

.coach-facts-card__intro {
  margin-bottom: 24px;
}

.coach-facts-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.coach-facts-card__eyebrow::before {
  content: '';
  width: 16px;
  height: 2px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
}

.coach-facts-card__intro h3 {
  font-size: 1.65rem;
  margin-bottom: 10px;
  color: var(--color-dark);
}

.coach-facts-card__intro p {
  font-size: 0.95rem;
  color: var(--color-grey);
  line-height: 1.7;
  max-width: 38ch;
}

.coach-facts-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.coach-fact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  padding: 16px 16px 15px;
  min-height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.coach-fact-item__icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--color-primary-light);
  font-size: 1.2rem;
  box-shadow: inset 0 0 0 1px rgba(8, 175, 39, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.coach-fact-item__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.coach-fact-item__body strong {
  display: block;
  font-size: 0.88rem;
  color: var(--color-dark);
}

.coach-fact-item__body span {
  font-size: 0.88rem;
  color: var(--color-grey);
  line-height: 1.55;
}

.coach-facts-card__cta {
  margin-top: 24px;
}

.coach-fact-item:hover {
  transform: translateY(-4px);
  border-color: rgba(8, 175, 39, 0.2);
  box-shadow: 0 14px 28px rgba(17, 19, 18, 0.08);
  background: rgba(255, 255, 255, 0.96);
}

.coach-fact-item:hover .coach-fact-item__icon {
  transform: scale(1.08) rotate(-4deg);
  background: #dff6e5;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Center incomplete last rows on the coaching tools grid. */
.tools-grid > .tool-chip:only-child {
  grid-column: 2 / 4;
}

.tools-grid > .tool-chip:nth-last-child(2):nth-child(4n + 1) {
  grid-column: 2;
}

.tools-grid > .tool-chip:last-child:nth-child(4n + 2) {
  grid-column: 3;
}

.tool-chip {
  background: var(--color-surface);
  border: 1px solid var(--color-light);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: var(--fw-medium);
  color: var(--color-grey-dark);
  transition: var(--transition);
}

.tool-chip .ti {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 8px;
}

.tool-chip:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  color: var(--color-primary);
  transform: translateY(-3px);
}

/* ============================================================
   16. PAGE — ARBEITGEBER
   ============================================================ */
.steps-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.steps-timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary), transparent);
}

.timeline-step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 28px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, .06);
  margin-bottom: 16px;
  transition: var(--transition);
}

.timeline-step:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.employer-benefit-card,
.employer-stat-card,
.employer-stats-panel {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.employer-stats-panel {
  position: relative;
  background:
    radial-gradient(circle at top right, rgba(8, 175, 39, 0.14), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f5f8f4 100%) !important;
  border: 1px solid rgba(8, 175, 39, 0.12) !important;
  border-radius: 28px !important;
  box-shadow: 0 18px 50px rgba(6, 150, 33, 0.08);
  overflow: hidden;
}

.employer-stats-panel::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--color-primary), rgba(8, 175, 39, 0.1));
}

.employer-stats-panel::after {
  content: '';
  position: absolute;
  inset: auto -10% -28% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(8, 175, 39, 0.14), transparent 68%);
  pointer-events: none;
  transition: transform 0.45s ease, opacity 0.45s ease;
  opacity: 0.72;
}

.employer-stats-panel__intro {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
  text-align: left;
}

.employer-stats-panel__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.employer-stats-panel__eyebrow::before {
  content: '';
  width: 16px;
  height: 2px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
}

.employer-stats-panel__intro h3 {
  font-size: 1.65rem;
  margin-bottom: 10px;
  color: var(--color-dark);
  text-align: left;
}

.employer-stats-panel__intro p {
  font-size: 0.95rem;
  color: var(--color-grey);
  line-height: 1.7;
  max-width: 38ch;
}

.employer-stats-grid {
  position: relative;
  z-index: 1;
}

.employer-stat-card {
  background: rgba(255, 255, 255, 0.86) !important;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.employer-benefit-card:hover,
.employer-stat-card:hover,
.employer-stats-panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.employer-stats-panel:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 60px rgba(6, 150, 33, 0.14);
  border-color: rgba(8, 175, 39, 0.22) !important;
}

.employer-stats-panel:hover::after {
  transform: translate(-12px, -10px) scale(1.05);
  opacity: 1;
}

.employer-stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(8, 175, 39, 0.2);
  box-shadow: 0 14px 28px rgba(17, 19, 18, 0.08);
  background: rgba(255, 255, 255, 0.98) !important;
}

.timeline-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  position: relative;
  z-index: 1;
}

.timeline-body h4 {
  font-size: 1rem;
  font-weight: var(--fw-semibold);
  color: var(--color-dark);
  margin-bottom: 6px;
}

.timeline-body p {
  font-size: 0.9rem;
  color: var(--color-grey);
  line-height: 1.65;
}

/* ============================================================
   17. PAGE — AVGS
   ============================================================ */
.avgs-hero-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  max-width: 780px;
  margin-inline: auto;
  border: 1px solid rgba(8, 175, 39, .15);
}

.avgs-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.avgs-step-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, .06);
  transition: var(--transition);
}

.avgs-step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.avgs-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  font-weight: var(--fw-black);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 16px;
}

.avgs-step-card h4 {
  font-size: 1rem;
  font-weight: var(--fw-semibold);
  color: var(--color-dark);
  margin-bottom: 8px;
}

.avgs-step-card p {
  font-size: 0.88rem;
  color: var(--color-grey);
  line-height: 1.65;
}

/* ============================================================
   18. PAGE — FAQ
   ============================================================ */
.faq-list {
  max-width: 780px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, .08);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--color-primary);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  background: none;
  border: none;
  font-family: var(--font-base);
  font-size: 0.97rem;
  font-weight: var(--fw-semibold);
  color: var(--color-dark);
  cursor: pointer;
  text-align: left;
  gap: 16px;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--color-grey);
  transition: var(--transition);
}

.faq-item.open .faq-icon {
  background: var(--color-primary-light);
  color: var(--color-primary);
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 28px 22px;
  font-size: 0.93rem;
  color: var(--color-grey-dark);
  line-height: 1.75;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ============================================================
   19. PAGE — CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 72px;
  align-items: start;
}

.contact-info-items {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 32px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-info-item h4 {
  font-size: 0.88rem;
  font-weight: var(--fw-semibold);
  color: var(--color-dark);
  margin-bottom: 4px;
}

.contact-info-item p {
  font-size: 0.88rem;
  color: var(--color-grey);
}

/* Contact Form */
.contact-form {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, .05);
}

.contact-form h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.contact-form>p {
  font-size: 0.9rem;
  color: var(--color-grey);
  margin-bottom: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: var(--fw-semibold);
  color: var(--color-grey-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--color-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-base);
  font-size: 0.92rem;
  color: var(--color-dark);
  background: var(--color-surface);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  background: var(--color-white);
  box-shadow: 0 0 0 3px rgba(8, 175, 39, .1);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

/* ============================================================
   20. PAGE — ABOUT (Über Uns)
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.team-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, .05);
  transition: var(--transition);
  text-align: center;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.team-avatar {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-surface-alt));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.team-info {
  padding: 24px;
}

.team-info h4 {
  font-size: 1rem;
  font-weight: var(--fw-bold);
  margin-bottom: 4px;
}

.team-info span {
  font-size: 0.82rem;
  color: var(--color-primary);
  font-weight: var(--fw-medium);
}

.certif-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.certif-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, .06);
  transition: var(--transition);
}

.certif-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
}

.certif-card .icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.certif-card h4 {
  font-size: 0.9rem;
  font-weight: var(--fw-semibold);
  color: var(--color-dark);
}

/* ============================================================
   21. RESPONSIVE
   ============================================================ */

/* ─── Tablet wide: ≤ 1200px ─────────────────────────────── */
@media (max-width: 1200px) {
  .about-grid {
    gap: 56px;
  }

  .coaching-intro-grid {
    gap: 48px;
  }

  .coach-facts-list {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    gap: 48px;
  }
}

/* ─── Tablet: ≤ 1024px ───────────────────────────────────── */
@media (max-width: 1024px) {

  /* Grids → 2 columns */
  .coaching-grid,
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }

  .coaching-grid > .coaching-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 460px);
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .certif-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer: 2-col */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  /* AVGS steps: 3 → 3 (keep, already fits at 1024) */

  /* Contact grid: start collapsing */
  .contact-grid {
    gap: 40px;
  }

  /* Coaching intro: tighten gap */
  .coaching-intro-grid {
    gap: 48px;
  }

  /* About badge: keep but reposition so it doesn't overflow */
  .about-badge-float {
    right: 0;
    bottom: -8px;
  }
}

/* ─── Tablet nav + stacked content: ≤ 1024px ────────────── */
@media (max-width: 1024px) {

  /* ---- HEADER / NAV ---- */
  .menu-toggle {
    display: flex;
  }

  .main-navigation {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .main-navigation.open {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .main-navigation ul li>a {
    color: var(--color-grey-dark);
    padding: 12px 14px;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }

  .main-navigation ul li>a:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
  }

  .main-navigation ul li>a::after {
    display: none;
  }

  /* Sub-menu: static inline drawer */
  .main-navigation ul li ul {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--color-primary-light);
    background: transparent;
    backdrop-filter: none;
    padding: 4px 0 4px 12px;
    margin-left: 14px;
    border-radius: 0;
    display: none;
    animation: none;
  }

  .main-navigation ul li ul::before {
    display: none;
  }

  .main-navigation ul li.open>ul {
    display: flex;
  }

  .main-navigation ul li ul li a {
    color: var(--color-grey);
    font-size: 0.875rem;
    padding: 9px 12px;
  }

  .main-navigation ul li ul li a:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
    padding-left: 12px;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }

  .nav-cta>a {
    width: 100%;
    justify-content: center !important;
    border-radius: var(--radius-md) !important;
    padding: 13px 20px !important;
  }

  /* ---- HERO SPLIT ---- */
  .hero-split-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .lernende-side,
  .arbeitgeber-side {
    padding: 72px 40px;
    min-height: 60vh;
  }

  .split-divider {
    display: none;
  }

  .split-content {
    max-width: 100%;
  }

  /* ---- INFO STRIP ---- */
  .info-strip-inner {
    gap: 24px;
    justify-content: flex-start;
  }

  /* ---- ABOUT ---- */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-wrapper img {
    height: 320px;
  }

  .about-badge-float {
    position: relative;
    bottom: auto;
    right: auto;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    text-align: left;
  }

  .about-badge-float .num {
    font-size: 1.6rem;
  }

  /* ---- COACHING ---- */
  .coaching-intro-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .coach-facts-card {
    padding: 28px 24px;
  }

  .coach-facts-list {
    grid-template-columns: 1fr 1fr;
  }

  .coaching-grid {
    grid-template-columns: 1fr 1fr;
  }

  .coaching-grid > .coaching-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 460px);
  }

  /* ---- AVGS BANNER ---- */
  .avgs-inner {
    flex-direction: column;
    text-align: center;
    gap: 28px;
  }

  .avgs-text p {
    max-width: 100%;
  }

  .avgs-actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  /* ---- TESTIMONIALS ---- */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* ---- FOOTER ---- */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  /* ---- CONTACT ---- */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form {
    padding: 32px 28px;
  }

  /* ---- INNER HERO ---- */
  .inner-hero {
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: 56px;
  }

  /* ---- SECTION SPACING ---- */
  .section-pad {
    padding-block: 72px;
  }

  .section-pad--sm {
    padding-block: 48px;
  }
}

/* ─── Mid-size hero: keep swipe layout, scale content up cleanly ─────────── */
@media (min-width: 641px) and (max-width: 1399px) {
  :root {
    --portal-size: 0px;
  }

  .hero-split-section {
    min-height: calc(100svh - var(--header-height));
  }

  .void-panel {
    padding: clamp(88px, 11vw, 124px) clamp(42px, 8vw, 84px);
  }

  .lernende-panel {
    margin-left: -100vw;
  }

  .panel-content {
    max-width: 560px;
  }

  .portal-center {
    transform: translate(-50%, -50%) scale(0.7);
  }

  .panel-title {
    font-size: clamp(2.25rem, 5vw, 3.2rem);
    margin-bottom: 14px;
  }

  .panel-desc {
    max-width: 520px;
    margin-bottom: 28px;
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    line-height: 1.75;
  }

  .split-actions {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .split-actions .btn {
    width: auto;
    padding: 13px 22px;
    font-size: 0.9rem;
  }

  .hero-swipe-controls {
    right: 24px;
    bottom: 22px;
    left: 24px;
  }
}

@media (min-width: 1025px) and (max-width: 1399px) {
  .main-navigation ul {
    gap: 0;
  }

  .main-navigation ul li>a {
    padding-inline: 9px;
    font-size: 0.8rem;
  }

  .nav-cta {
    margin-left: 4px;
  }

  .nav-cta>a {
    padding: 8px 14px !important;
    font-size: 0.8rem !important;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .void-panel {
    padding: clamp(80px, 10vw, 112px) clamp(28px, 6vw, 56px);
  }

  .portal-center {
    transform: translate(-50%, -50%) scale(0.56);
  }

  .panel-content {
    max-width: 500px;
  }

  .panel-title {
    font-size: clamp(1.85rem, 4.8vw, 2.55rem);
  }

  .split-badge {
    margin-bottom: 18px;
  }

  .panel-desc {
    max-width: 460px;
    margin-bottom: 22px;
  }

  .split-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .split-actions .btn {
    justify-content: center;
    width: 100%;
  }

  .neural-growth {
    width: 120px;
    height: 180px;
    opacity: 0.28;
  }

  .hero-swipe-controls {
    inset: 0;
  }

  .hero-swipe-arrow {
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
  }

  .hero-swipe-arrow--next {
    right: 16px;
  }
}

@media (max-width: 640px) {
  .hero-swipe-controls {
    position: absolute;
    right: 0;
    bottom: 34px;
    left: 0;
    top: auto;
    justify-content: center;
    align-items: flex-end;
  }

  .hero-swipe-arrow--next {
    position: static;
    transform: none;
  }

  .hero-swipe-arrow--next:hover {
    transform: translateY(-2px);
  }

  .hero-swipe-arrow--next:disabled {
    transform: none;
  }
}

/* ─── Mobile: ≤ 640px ────────────────────────────────────── */
@media (max-width: 640px) {

  /* ---- CONTAINER ---- */
  .container {
    padding-inline: 16px;
  }

  /* ---- SECTION SPACING ---- */
  .section-pad {
    padding-block: 64px;
  }

  .section-pad--sm {
    padding-block: 48px;
  }

  /* ---- HERO SPLIT ---- */
  .lernende-side,
  .arbeitgeber-side {
    padding: 56px 20px;
    min-height: 50vh;
  }

  .split-content h2 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .split-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .split-actions .btn {
    justify-content: center;
    text-align: center;
  }

  /* ---- INFO STRIP ---- */
  .info-strip-inner {
    flex-direction: column;
    gap: 14px;
    align-items: center;
    text-align: center;
  }

  /* ---- ABOUT ---- */
  .about-image-wrapper img {
    height: 240px;
  }

  /* ---- COACHING CARDS → single col ---- */
  .coaching-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .coach-facts-card {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .coach-facts-card__intro h3 {
    font-size: 1.35rem;
  }

  .coach-facts-list {
    grid-template-columns: 1fr;
  }

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

  /* ---- AVGS BANNER ---- */
  .avgs-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .avgs-actions .btn {
    justify-content: center;
    text-align: center;
  }

  /* ---- AVGS HERO CARD ---- */
  .avgs-hero-card {
    padding: 28px 20px;
  }

  /* ---- AVGS STEPS ---- */
  .avgs-steps-grid {
    grid-template-columns: 1fr;
  }

  /* ---- FOOTER ---- */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-top {
    padding-block: 48px;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .footer-legal {
    justify-content: center;
  }

  /* ---- CONTACT FORM ---- */
  .contact-form {
    padding: 24px 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* ---- TEAM ---- */
  .team-grid {
    grid-template-columns: 1fr;
  }

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

  /* ---- INNER HERO ---- */
  .inner-hero {
    padding-top: calc(var(--header-height) + 36px);
    padding-bottom: 40px;
  }

  .inner-hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }

  .inner-hero p {
    font-size: 1rem;
  }

  /* ---- SECTION TITLES ---- */
  .section-title {
    margin-bottom: 12px;
  }

  /* ---- AVGS STEPS TIMELINE ---- */
  .steps-timeline::before {
    left: 18px;
  }

  .timeline-step {
    gap: 16px;
    padding: 20px;
  }

  .timeline-icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}

/* ─── Small mobile: ≤ 480px ─────────────────────────────── */
@media (max-width: 480px) {

  /* ---- HEADER ---- */
  :root {
    --header-height: 64px;
  }

  .site-logo {
    height: 44px;
  }

  /* ---- HERO ---- */
  .lernende-side,
  .arbeitgeber-side {
    padding: 48px 16px;
  }

  .split-content h2 {
    font-size: clamp(1.45rem, 7vw, 1.9rem);
  }

  .split-content p {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }

  /* ---- BUTTONS - Larger touch targets ---- */
  .btn {
    padding: 14px 24px;
    font-size: 0.95rem;
    width: 100%;
    justify-content: center;
  }

  /* ---- COACHING CARD ---- */
  .coaching-card {
    padding: 28px 22px;
  }

  /* ---- TOOLS → 1 col ---- */
  .tools-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  /* ---- CERTIF → 1 col ---- */
  .certif-grid {
    grid-template-columns: 1fr;
  }

  /* ---- FOOTER ---- */
  .footer-legal {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  /* ---- AVGS HERO CARD ---- */
  .avgs-hero-card {
    padding: 20px 14px;
  }

  /* ---- CONTACT ---- */
  .contact-form {
    padding: 20px 14px;
  }

  /* ---- SECTION PAD ---- */
  .section-pad {
    padding-block: 56px;
  }

  .section-pad--sm {
    padding-block: 40px;
  }

  /* ---- INFO STRIP ---- */
  .info-strip {
    padding-block: 16px;
  }

  .info-strip-item {
    font-size: 0.82rem;
  }

  /* ---- INNER HERO ---- */
  .inner-hero {
    padding-top: calc(var(--header-height) + 28px);
    padding-bottom: 32px;
  }
}

/* ─── Very Large Screens: ≥ 1600px ───────────────────────── */
@media (min-width: 1600px) {
  :root {
    --container-width: 1440px;
  }

  .split-content {
    max-width: 500px;
  }

  .split-content h2 {
    font-size: 3.5rem;
  }
}

/* ============================================================
   22. LEGAL PAGES — Impressum / Datenschutz / AGB
   ============================================================ */
.legal-content {
  max-width: 820px;
  margin-inline: auto;
}

.legal-block {
  padding: 40px 0;
  border-bottom: 1px solid var(--color-light);
}

.legal-block:last-child {
  border-bottom: none;
}

.legal-block h2 {
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  color: var(--color-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-primary-light);
  display: inline-block;
}

.legal-block h3 {
  font-size: 1rem;
  font-weight: var(--fw-semibold);
  color: var(--color-grey-dark);
  margin-top: 24px;
  margin-bottom: 10px;
}

.legal-block p {
  font-size: 0.95rem;
  color: var(--color-grey);
  line-height: 1.85;
  margin-bottom: 14px;
}

.legal-block p:last-child {
  margin-bottom: 0;
}

.legal-block a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition);
}

.legal-block a:hover {
  color: var(--color-primary-dark);
}

.legal-block ul {
  color: var(--color-grey);
  font-size: 0.93rem;
  line-height: 2;
}

.legal-block em {
  color: var(--color-grey);
  font-size: 0.88rem;
}

@media (max-width: 640px) {
  .legal-block {
    padding: 28px 0;
  }

  .legal-block h2 {
    font-size: 1.1rem;
  }
}

/* ============================================================
   3D IMMERSIVE EXPERIENCE — Particles · Parallax · Tilt · Transition
   ============================================================ */

/* --- Particle canvas: sits at z-index 0 behind all content --- */
.particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  display: block;
}

/* --- Parallax scene: the 3D-perspective wrapper inside each hero side --- */
.split-side {
  perspective: 1100px;
}

.parallax-scene {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
  z-index: 1;
}

/* --- Split-side: tilt context + glassmorphism badge lift on hover --- */
.split-side {
  transform-style: preserve-3d;
  cursor: crosshair;
}

.split-side .split-badge {
  will-change: transform;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    background 0.3s ease,
    border-color 0.3s ease;
}

.split-side:hover .split-badge {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* Pop the h2 highlight on tilt */
.split-content h2 .highlight {
  display: inline-block;
  will-change: transform;
  transition: text-shadow 0.3s ease;
}

.split-side:hover .split-content h2 .highlight {
  text-shadow: 0 0 40px rgba(8, 175, 39, 0.6);
}

/* --- Coaching cards: 3D tilt context --- */
.coaching-card {
  transform-style: preserve-3d;
  will-change: transform;
}

.coaching-card .card-icon {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Glassmorphism glow border on coaching card hover (JS removes translateY, so we own the shadow only) */
.coaching-card:hover {
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(8, 175, 39, 0.15);
}

/* --- Testimonial cards: tilt context --- */
.testimonial-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* --- Page Transition Curtain --- */
.page-transition-curtain {
  position: fixed;
  inset: 0;
  background: linear-gradient(145deg, #0a1a0d 0%, #08af27 100%);
  z-index: 99999;
  transform: scaleY(0);
  transform-origin: bottom center;
  pointer-events: none;
  will-change: transform;
}

/* Small green node accent that appears on curtain during transition */
.page-transition-curtain::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
}

/* ── CINEMATIC SECTION SCROLL ── */
.cinematic-section {
  perspective: 1200px;
  transform-style: preserve-3d;
}

/* Hardware acceleration for drifting background elements */
.neural-growth, .data-matrix, .holo-chip {
  will-change: transform;
}

/* --- Mobile: disable heavy 3D effects, keep particles at reduced count --- */
@media (max-width: 767px) {
  .parallax-scene {
    transform: none !important;
    will-change: auto;
  }

  .split-side {
    perspective: none;
    transform: none !important;
  }

  .coaching-card,
  .testimonial-card {
    transform-style: flat;
  }
}

/* --- Reduced motion: disable everything animated --- */
@media (prefers-reduced-motion: reduce) {
  .particles-canvas {
    display: none !important;
  }

  .parallax-scene {
    transform: none !important;
    will-change: auto;
  }

  .split-side {
    transform: none !important;
    perspective: none;
  }

  .coaching-card,
  .testimonial-card {
    transform: none !important;
    will-change: auto;
  }

  .page-transition-curtain {
    display: none !important;
  }
}
