/* ============================================
   FEO MEDIA — Design System CSS v2
   3-Layer Token Architecture
   Dark/Light Mode · Staggered Reveals
   ============================================ */

/* ===== LAYER 1: PRIMITIVE TOKENS (raw values) ===== */
:root {
  --cyan-500: #00D4FF;
  --violet-500: #8B2FC9;
  --magenta-500: #D946EF;

  --dark-900: #0B0B1A;
  --dark-800: #101028;
  --dark-700: #141432;

  --light-100: #F5F5FA;
  --light-200: #EBEBF0;
  --light-300: #FFFFFF;

  --neutral-300: #B4B4C8;
  --neutral-400: #8888A0;
  --neutral-500: #6B6B80;
  --neutral-600: #4A4A5A;

  --error: #EF4444;
  --success: #22C55E;

  /* ===== LAYER 2: SEMANTIC TOKENS (purpose) ===== */
  --color-accent: var(--cyan-500);
  --color-secondary: var(--violet-500);
  --color-tertiary: var(--magenta-500);
  --gradient-brand: linear-gradient(90deg, var(--cyan-500) 0%, var(--violet-500) 50%, var(--magenta-500) 100%);

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --space-2xl: 120px;

  /* Layout */
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* Motion */
  --ease-default: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
  --duration-fast: 0.15s;
  --duration-normal: 0.3s;
  --duration-slow: 0.5s;
  --transition: all var(--duration-normal) var(--ease-default);

  /* Fonts */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== LAYER 3: COMPONENT TOKENS (per theme) ===== */

/* ---------- DARK THEME (default) ---------- */
[data-theme="dark"] {
  --bg-primary: var(--dark-900);
  --bg-alt: var(--dark-800);
  --bg-card: var(--dark-700);
  --bg-nav: rgba(11, 11, 26, 0.85);

  --text-primary: #FFFFFF;
  --text-secondary: var(--neutral-300);
  --text-muted: var(--neutral-500);

  --border-subtle: rgba(139, 47, 201, 0.15);
  --border-card: rgba(139, 47, 201, 0.2);
  --border-card-hover: rgba(0, 212, 255, 0.4);

  --glow-primary: 0 0 20px rgba(0, 212, 255, 0.3), 0 0 40px rgba(139, 47, 201, 0.15);
  --glow-soft: 0 0 30px rgba(0, 212, 255, 0.1);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);

  --input-bg: var(--dark-700);
  --logo-filter: none;
  --noise-opacity: 0.035;
  --orb-opacity: 1;
}

/* ---------- LIGHT THEME ---------- */
[data-theme="light"] {
  --bg-primary: var(--light-100);
  --bg-alt: var(--light-200);
  --bg-card: var(--light-300);
  --bg-nav: rgba(245, 245, 250, 0.9);

  --text-primary: var(--dark-900);
  --text-secondary: var(--neutral-600);
  --text-muted: var(--neutral-400);

  --border-subtle: rgba(139, 47, 201, 0.1);
  --border-card: rgba(139, 47, 201, 0.12);
  --border-card-hover: rgba(139, 47, 201, 0.35);

  --glow-primary: 0 0 20px rgba(139, 47, 201, 0.15);
  --glow-soft: 0 4px 20px rgba(139, 47, 201, 0.08);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);

  --input-bg: var(--light-300);
  --logo-filter: brightness(0.2);
  --noise-opacity: 0.02;
  --orb-opacity: 0.5;
}

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

html {
  scroll-padding-top: 0px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  transition: background-color 0.4s ease, color 0.4s ease;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ========== NOISE OVERLAY ========== */
.noise-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9998;
  pointer-events: none;
  opacity: var(--noise-opacity);
}

/* ========== UTILITIES ========== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--color-accent);
  color: var(--dark-900);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-weight: 600;
  text-decoration: none;
  font-family: var(--font-body);
}
.skip-link:focus {
  top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ========== NAVIGATION ========== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s ease, border-color var(--duration-normal) ease;
  /* iOS Safe-Area: Navbar-Inhalt unterhalb von Notch/Status-Bar halten */
  padding-top: env(safe-area-inset-top);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* [#4] Touch-target ≥ 44px */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  min-height: 44px;
  min-width: 44px;
}

/* Nav text logo (replaces image in header) */
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.nav-logo-light {
  font-weight: 500;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-md);
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  position: relative;
  transition: color var(--duration-normal) var(--ease-default);
  font-family: var(--font-body);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-normal) var(--ease-default);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-cta {
  background: var(--gradient-brand);
  color: #FFFFFF !important;
  padding: 10px 22px !important;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  min-height: 44px;
}

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

.nav-cta:hover {
  box-shadow: var(--glow-primary);
  transform: translateY(-1px);
}

/* Theme Toggle — [#4] 44×44 touch target */
.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition);
}

.theme-toggle:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun  { display: block; }
[data-theme="light"] .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* Hamburger — [#4] 44×44 touch target */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
  border-radius: 2px;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== HOME (Logo screen) ========== */
.home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
  background: #030409;
  cursor: pointer;
}

[data-theme="light"] .home {
  background: var(--light-100);
}

[data-theme="light"] .tubes-canvas {
  filter: invert(1) hue-rotate(180deg);
}

[data-theme="light"] .home-title {
  color: var(--dark-900);
}

/* Tubes 3D animation canvas */
.tubes-canvas {
  position: absolute;
  top: -500px;
  left: 0;
  width: 100%;
  height: calc(100% + 500px);
  z-index: 0;
  transform: translateY(330px);
}

.home-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(-130px);
}

.home-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.1;
  user-select: none;
}

.home-title-light {
  font-weight: 500;
}

/* ========== HERO (Claim screen) ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

.hero-bg-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(139, 47, 201, 0.15) 0%, rgba(0, 212, 255, 0.05) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] .hero-bg-glow {
  background: radial-gradient(ellipse, rgba(139, 47, 201, 0.08) 0%, rgba(0, 212, 255, 0.03) 40%, transparent 70%);
}

/* [#6/#10] Decorative floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: var(--orb-opacity);
  z-index: 0;
}

.hero-orb--1 {
  width: 300px;
  height: 300px;
  top: 15%;
  right: -60px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
  animation: float-slow 8s ease-in-out infinite;
}

.hero-orb--2 {
  width: 200px;
  height: 200px;
  bottom: 20%;
  left: -40px;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.06) 0%, transparent 70%);
  animation: float-slow 10s ease-in-out infinite reverse;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

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

/* [#10] Hero tag line above title */
.hero-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  font-family: var(--font-body);
}

/* [#1] Space Grotesk for display headings */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  letter-spacing: -0.03em;
}

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

/* [#10] Gradient accent line under title */
.hero-line {
  width: 80px;
  height: 3px;
  background: var(--gradient-brand);
  margin: 0 auto var(--space-md);
  border-radius: 2px;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-lg);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: var(--font-body);
  min-height: 48px;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #FFFFFF;
}

.btn-primary:hover {
  box-shadow: var(--glow-primary);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* ========== SECTIONS ========== */
.section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xl) 0;
  background-color: var(--bg-primary);
  transition: background-color 0.4s ease;
  position: relative;
  overflow: hidden;
}

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

/* [#6] Section decorative orbs */
.section-orb {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  pointer-events: none;
  opacity: var(--orb-opacity);
  z-index: 0;
}

.section-orb--right {
  right: -100px;
  top: 20%;
  background: radial-gradient(circle, rgba(139, 47, 201, 0.06) 0%, transparent 70%);
}

.section-orb--left {
  left: -100px;
  bottom: 10%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
  font-family: var(--font-body);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.03em;
}

.section-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ========== SERVICES GRID ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  position: relative;
  z-index: 1;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.card:hover {
  border-color: var(--border-card-hover);
  box-shadow: var(--glow-soft);
  transform: translateY(-4px);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(139, 47, 201, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--color-accent);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.card p {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

.card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* [#9] Card features hover states */
.card-features li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
  transition: color var(--duration-fast) ease;
}

.card-features li:hover {
  color: var(--text-secondary);
}

.card-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  transition: transform var(--duration-fast) ease;
}

.card-features li:hover::before {
  transform: scale(1.4);
}

/* ========== USP GRID — [#5] staggered layout ========== */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  position: relative;
  z-index: 1;
}

.usp-item {
  padding: var(--space-lg) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

/* [#5] Offset every 2nd item for asymmetric feel */
.usp-item--offset {
  margin-top: var(--space-lg);
}

.usp-item:hover {
  border-color: var(--border-card-hover);
  transform: translateY(-2px);
}

.usp-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
  line-height: 1;
}

.usp-item h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.usp-item p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== PORTFOLIO — [#11] improved placeholders ========== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  position: relative;
  z-index: 1;
}

.portfolio-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.portfolio-item:hover {
  border-color: var(--border-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--glow-soft);
}

.portfolio-placeholder {
  height: 200px;
  background:
    linear-gradient(135deg, rgba(0, 212, 255, 0.03) 0%, transparent 50%),
    linear-gradient(225deg, rgba(139, 47, 201, 0.03) 0%, transparent 50%),
    linear-gradient(135deg, var(--bg-alt), var(--bg-card));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  color: var(--text-muted);
  position: relative;
  overflow: hidden;
}

/* Subtle diagonal lines on placeholder */
.portfolio-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 20px,
      rgba(139, 47, 201, 0.03) 20px,
      rgba(139, 47, 201, 0.03) 21px
    );
  pointer-events: none;
}

.portfolio-placeholder svg {
  opacity: 0.3;
  transition: opacity var(--duration-normal) ease, transform var(--duration-normal) ease;
}

.portfolio-item:hover .portfolio-placeholder svg {
  opacity: 0.5;
  transform: scale(1.08);
}

.portfolio-placeholder span {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.4;
  letter-spacing: 0.05em;
}

.portfolio-info {
  padding: var(--space-sm);
}

.portfolio-info h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.portfolio-info p {
  font-size: 14px;
  color: var(--text-muted);
}

.portfolio-note {
  text-align: center;
  margin-top: var(--space-lg);
  color: var(--text-muted);
  font-size: 15px;
  position: relative;
  z-index: 1;
}

.portfolio-note a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}

.portfolio-note a:hover {
  text-decoration: underline;
}

/* ========== ABOUT ========== */
.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-lg);
  align-items: start;
  position: relative;
  z-index: 1;
}

.about-lead {
  font-size: 20px;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.about-lead strong {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-text p {
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.stat:hover {
  border-color: var(--border-card-hover);
  transform: translateY(-2px);
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ========== CONTACT ========== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-lg);
  align-items: start;
  position: relative;
  z-index: 1;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

/* [#3] Required field indicator */
.required-mark {
  color: var(--magenta-500);
  margin-left: 2px;
}

/* [#4] All inputs min 48px touch target */
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--input-bg);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 16px;
  font-family: var(--font-body);
  transition: border-color var(--duration-normal) ease, box-shadow var(--duration-normal) ease;
  outline: none;
  min-height: 48px;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6B80' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

/* [#3] Form validation states */
.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group.is-valid input,
.form-group.is-valid textarea,
.form-group.is-valid select {
  border-color: var(--success);
}

.form-error {
  font-size: 13px;
  color: var(--error);
  min-height: 0;
  overflow: hidden;
  transition: min-height var(--duration-normal) ease, opacity var(--duration-normal) ease;
  opacity: 0;
}

.form-group.has-error .form-error {
  min-height: 20px;
  opacity: 1;
}

/* Contact info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-top: var(--space-md);
}

.info-item {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.info-item svg {
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.info-item strong {
  display: block;
  color: var(--text-primary);
  font-size: 14px;
  margin-bottom: 2px;
}

.info-item a,
.info-item span {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
}

.info-item a:hover {
  color: var(--color-accent);
}

.contact-social {
  margin-top: var(--space-sm);
}

.contact-social strong {
  display: block;
  color: var(--text-primary);
  font-size: 14px;
  margin-bottom: var(--space-xs);
}

/* [#4] Social links 44×44 touch targets */
.social-links {
  display: flex;
  gap: var(--space-sm);
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

/* ========== FOOTER — [#12] expanded ========== */
.footer {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-alt);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-lg) 0 var(--space-md);
  transition: background-color 0.4s ease;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

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

.footer-nav strong,
.footer-social strong {
  display: block;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--duration-fast) ease;
  padding: 2px 0;
  display: inline-block;
}

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

.footer-social .social-links {
  gap: var(--space-xs);
}

.footer-social .social-link {
  width: 40px;
  height: 40px;
}

.footer-legal {
  text-align: center;
  margin-bottom: var(--space-sm);
}

.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--duration-fast) ease;
}

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

.footer-divider {
  color: var(--text-muted);
  margin: 0 var(--space-xs);
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ========== SCROLL REVEAL ========== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ========== FOCUS STYLES ========== */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ========== [#2] REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-orb,
  .section-orb {
    animation: none;
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .section {
    min-height: 100vh;
    padding: var(--space-lg) 0;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    flex-direction: column;
    /* Internes Padding: erste Zeile startet unter der Navbar + Safe-Area */
    padding: calc(84px + env(safe-area-inset-top) + var(--space-sm)) var(--space-md) var(--space-md);
    gap: 4px;
    border-bottom: 1px solid var(--border-subtle);
    /* -100% schiebt das Menue immer zuverlaessig ueber den Viewport-Rand,
       unabhaengig von seiner Hoehe -> kein Durchscheinen hinter der Navbar */
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  /* [#4] Mobile nav links 48px touch target */
  .nav-links a {
    font-size: 18px;
    padding: 12px var(--space-sm);
    min-height: 48px;
    width: 100%;
    box-sizing: border-box;
  }

  /* Kontakt als volle CTA-Zeile unten im Burger-Menue */
  .nav-links .nav-cta {
    width: 100%;
    margin-top: var(--space-sm);
    padding: 14px var(--space-sm) !important;
    min-height: 52px;
    font-size: 18px !important;
    justify-content: center;
    border-radius: var(--radius-sm);
  }

  /* Kein Underline-Hover bei CTA im Burger */
  .nav-links .nav-cta::after {
    display: none !important;
  }

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

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

  /* Remove offset on single column */
  .usp-item--offset {
    margin-top: 0;
  }

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

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-stats {
    flex-direction: row;
    justify-content: center;
  }

  .stat {
    flex: 1;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .footer-brand {
    grid-column: auto;
  }

  .hero-title {
    font-size: clamp(36px, 8vw, 56px);
  }

  /* Hide orbs on mobile (performance) */
  .hero-orb--1,
  .hero-orb--2,
  .section-orb {
    display: none;
  }

  /* ---------- Mobile: Navbar hoeher + Safe-Area ---------- */
  .nav-container {
    height: 84px;
  }

  /* ---------- Mobile: Home (FEO title + Tubes) richtig zentrieren ---------- */
  .home {
    /* svh = small viewport height: ignoriert Browser-Chrome, vermeidet Clipping */
    min-height: 100svh;
    padding-top: calc(84px + env(safe-area-inset-top) + var(--space-md));
    padding-bottom: var(--space-md);
  }

  .home-content {
    /* Desktop schiebt Titel -130px nach oben, auf Mobile unnoetig & kopflastig */
    transform: none;
  }

  .tubes-canvas {
    /* Canvas-Geometrie: top:-500, height:100%+500 -> Eigen-Mitte = 50% - 250.
       Ziel: Effekt-Mitte = Section-Mitte (50%) -> translateY = 250px */
    transform: translateY(250px);
  }

  .home-title {
    font-size: clamp(3rem, 16vw, 6rem);
  }

  /* ---------- Mobile: Hero (Claim) mit genug Luft fuer Buttons ---------- */
  .hero {
    min-height: 100svh;
    padding-top: calc(84px + env(safe-area-inset-top) + var(--space-lg));
    padding-bottom: var(--space-xl);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }

  .about-stats {
    flex-direction: column;
  }
}

/* ============================================
   FORM HONEYPOT + STATUS
   ============================================ */
.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-status {
  margin-top: var(--space-sm);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
  display: none;
}

.form-status.is-success {
  display: block;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: var(--success, #22C55E);
}

.form-status.is-error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: var(--error, #EF4444);
}

/* ============================================
   LEGAL PAGES (Impressum, Datenschutz)
   ============================================ */
.legal-page {
  background: var(--bg-primary);
  color: var(--text-secondary);
  min-height: 100vh;
}

.legal-main {
  padding: calc(var(--space-2xl) + 48px) 0 var(--space-xl);
}

.legal-container {
  max-width: 820px;
}

.legal-header {
  margin-bottom: var(--space-xl);
  text-align: left;
}

.legal-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: var(--space-sm) 0 var(--space-xs);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.legal-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0;
}

.legal-section {
  margin-bottom: var(--space-lg);
}

.legal-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-sm);
  line-height: 1.3;
}

.legal-section p,
.legal-section ul {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 var(--space-sm);
}

.legal-section ul {
  padding-left: 1.4em;
}

.legal-section ul li {
  margin-bottom: 6px;
}

.legal-section a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 212, 255, 0.25);
  transition: border-color var(--duration-normal) var(--ease-default), color var(--duration-normal) var(--ease-default);
}

.legal-section a:hover {
  color: var(--text-primary);
  border-bottom-color: var(--color-accent);
}

.legal-section strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-section code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.9em;
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.legal-meta {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

@media (max-width: 768px) {
  .legal-main {
    padding: calc(var(--space-xl) + 32px) 0 var(--space-lg);
  }

  .legal-section {
    margin-bottom: var(--space-md);
  }
}
