/* Inter — selbst gehostet (keine Verbindung zu Google, nDSG/DSGVO-konform) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-ext-var.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* ============================================================================
   Premium Website CSS — Apple-Level Design
   Light Mode First | Gradient Typography | Micro-interactions
   ============================================================================ */

:root {
  /* Colors */
  --primary: #223366;
  --primary-dark: #192550;
  --primary-light: #e8ecf4;
  --primary-rgb: 34,51,102;
  --accent: #D4A03C;
  --accent-rgb: 212,160,60;
  --bg: #ffffff;
  --bg-alt: #f8f9fc;
  --text: #1a1a2e;
  --text-light: #6b7280;
  --footer-bg: #0d1424;
  --footer-text: #94a3b8;

  /* Typography */
  --font-heading: Inter, system-ui, sans-serif;
  --font-body: Inter, system-ui, sans-serif;
  --h1: clamp(2.5rem, 8vw, 5.5rem);
  --h2: clamp(2rem, 6vw, 4rem);
  --h3: clamp(1.5rem, 4vw, 2.5rem);
  --h4: clamp(1.25rem, 3vw, 1.75rem);
  --body: clamp(1rem, 1.1vw, 1.25rem);
  --small: clamp(0.875rem, 1vw, 1rem);

  /* Spacing & Sizing */
  --nav-height: 100px;
  --max-width: 1280px;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
  --shadow-hover: 0 20px 40px rgba(var(--primary-rgb), 0.15), 0 0 0 1px rgba(var(--primary-rgb), 0.1);

  /* Transitions */
  --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Dark mode */
[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-alt: #121212;
  --text: #f5f5f5;
  --text-light: #a0aec0;
  --footer-bg: #000000;
  --footer-text: #9ca3af;
}

/* ============================================================================
   Base Styles
   ============================================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* Smooth scroll on light backgrounds */
@supports (scroll-behavior: smooth) {
  html { scroll-behavior: smooth; }
}

/* ============================================================================
   Typography
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-top: 0;
}

h1 {
  font-size: var(--h1);
}

h2 {
  font-size: var(--h2);
}

h3 {
  font-size: var(--h3);
}

h4 {
  font-size: var(--h4);
}

p {
  font-size: var(--body);
  color: var(--text);
  margin: 0 0 1.5rem 0;
}

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

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

/* Section headers */
.section-header {
  text-align: center;
  margin-bottom: clamp(3rem, 8vw, 6rem);
}

.section-header h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}

.overline {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

/* ============================================================================
   Layout
   ============================================================================ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

section {
  position: relative;
}

.section {
  padding: clamp(4rem, 12vw, 8rem) 0;
  background: var(--bg);
}

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

.section-alt::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.02;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, var(--primary) 1px, transparent 0);
  background-size: 32px 32px;
}

/* ============================================================================
   Navigation — Floating Pill (Apple-Dark-Style)
   ============================================================================ */

.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: 960px;
  max-width: calc(100% - 40px);
  transition: var(--transition-fast);
}

.nav-pill {
  border-radius: 40px;
  padding: 1px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.25),
    0 1px 6px rgba(0, 0, 0, 0.15);
  transition: var(--transition-fast);
}

.nav-pill-content {
  border-radius: 40px;
  background: rgba(13, 20, 36, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  padding: 13px 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-fast);
}

/* Scroll-Shrink */
.navbar.scrolled .nav-pill {
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.35),
    0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar.scrolled .nav-pill-content {
  padding: 9px 36px;
  background: rgba(13, 20, 36, 0.95);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  height: 34px;
  transition: opacity 0.3s ease;
  z-index: 10;
  flex-shrink: 0;
}

.nav-logo img {
  height: 100%;
  width: auto;
}

.nav-logo:hover {
  opacity: 0.7;
}

/* Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s ease;
  padding: 4px 0;
}

.nav-link::after {
  display: none;
}

.nav-link:hover {
  color: #ffffff;
}

/* Nav Right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* CTA Button — Animated Border Glow */
@property --cta-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes cta-border-rotate {
  to { --cta-angle: 360deg; }
}

@keyframes cta-glow-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.nav-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 21px;
  border-radius: 7px;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  overflow: visible;
  flex-shrink: 0;
  isolation: isolate;
}

/* Stroke — rotating conic gradient border */
.nav-cta-stroke {
  position: absolute;
  inset: 0;
  border-radius: 7px;
  background: conic-gradient(
    from var(--cta-angle),
    transparent 0%,
    rgba(var(--accent-rgb), 0.7) 10%,
    rgba(var(--accent-rgb), 0.15) 25%,
    transparent 40%,
    transparent 60%,
    rgba(var(--accent-rgb), 0.1) 75%,
    transparent 90%
  );
  animation: cta-border-rotate 4s linear infinite;
  pointer-events: none;
}

/* Glow — blurred rotating gradient for soft outer radiance */
.nav-cta-glow {
  position: absolute;
  inset: -4px;
  border-radius: 10px;
  background: conic-gradient(
    from var(--cta-angle),
    transparent 0%,
    rgba(var(--accent-rgb), 0.4) 10%,
    transparent 30%,
    transparent 70%,
    rgba(var(--accent-rgb), 0.15) 85%,
    transparent 95%
  );
  filter: blur(12px);
  animation: cta-border-rotate 4s linear infinite, cta-glow-pulse 4s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

/* Fill — dark navy center */
.nav-cta-fill {
  position: absolute;
  inset: 1px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  pointer-events: none;
}

.nav-cta-text {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  line-height: 1.4;
}

.nav-cta-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover — intensify glow + speed up rotation + arrow movement */
.nav-cta:hover .nav-cta-stroke {
  background: conic-gradient(
    from var(--cta-angle),
    transparent 0%,
    rgba(var(--accent-rgb), 1) 8%,
    rgba(var(--accent-rgb), 0.3) 20%,
    transparent 35%,
    transparent 55%,
    rgba(var(--accent-rgb), 0.2) 70%,
    transparent 85%
  );
  animation-duration: 2.5s;
}

.nav-cta:hover .nav-cta-glow {
  filter: blur(16px);
  animation-duration: 2.5s, 3s;
  opacity: 1;
}

.nav-cta:hover .nav-cta-arrow {
  transform: translate(2px, -2px);
}

/* Fallback for browsers without @property support */
@supports not (background: conic-gradient(from 0deg, red, blue)) {
  .nav-cta-stroke {
    background: linear-gradient(135deg,
      rgba(var(--accent-rgb), 0.6) 0%,
      transparent 40%,
      transparent 60%,
      rgba(var(--accent-rgb), 0.2) 100%
    );
    animation: none;
  }
  .nav-cta-glow {
    background: radial-gradient(
      ellipse at 15% 0%,
      rgba(var(--accent-rgb), 0.35) 0%,
      transparent 60%
    );
    animation: none;
  }
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition-fast);
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hamburger svg {
  width: 24px;
  height: 24px;
}

/* Tablet */
@media (max-width: 1199px) {
  .navbar {
    width: auto;
    max-width: calc(100% - 40px);
  }

  .nav-pill-content {
    padding: 12px 30px;
  }

  .nav-menu {
    gap: 12px;
  }

  .nav-link {
    font-size: 14px;
  }
}

/* Mobile */
@media (max-width: 809px) {
  .navbar {
    top: 12px;
    width: auto;
    max-width: calc(100% - 24px);
  }

  .nav-pill-content {
    padding: 10px 20px;
  }

  .nav-menu {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(13, 20, 36, 0.95);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-radius: 20px;
    padding: 1.5rem;
    gap: 0.25rem;
    z-index: 999;
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.3),
      0 1px 4px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-menu.active .nav-link {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 16px;
    border-radius: 12px;
    display: block;
  }

  .nav-menu.active .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
  }
}

/* ============================================================================
   Hero Section — Cinematic Video
   ============================================================================ */

.hero {
  min-height: 100vh;
  padding-top: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #0a0f1a;
}

.hero-video {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 15, 26, 0.5) 0%, rgba(10, 15, 26, 0.3) 40%, rgba(10, 15, 26, 0.7) 100%),
    linear-gradient(135deg, rgba(34, 51, 102, 0.3) 0%, transparent 60%);
}

/* White fade-in when video ends */
.hero-fade {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-fade.active {
  opacity: 0.87;
}

/* Subtle grain texture over hero */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 900px;
  text-align: center;
  padding: 3rem 2rem;
  animation: fadeInUp 0.8s ease-out forwards;
  transition: color 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark text overlay — fades in after white background is established */
@keyframes textReveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero.text-visible h1 {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 40%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  animation: textReveal 3s ease forwards;
}
.hero.text-visible .hero-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #f0c060 60%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero.text-visible .subline {
  color: var(--text-light);
  animation: textReveal 3s ease forwards;
}
.hero.text-visible .hero-overline {
  color: var(--accent);
  animation: textReveal 3s ease forwards;
}
.hero.text-visible .btn-hero-primary {
  background: var(--primary);
  color: #fff;
  animation: textReveal 3s ease forwards;
}
.hero.text-visible .btn-hero-secondary {
  color: var(--primary);
  border-color: var(--primary);
  animation: textReveal 3s ease forwards;
}

.hero-overline {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out 0.1s forwards;
  opacity: 0;
  position: relative;
  padding: 0 1rem;
}

.hero-overline::before,
.hero-overline::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.hero-overline::before { right: 100%; }
.hero-overline::after { left: 100%; }

.hero h1 {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
  opacity: 0;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

.hero-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #f0c060 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subline {
  font-size: var(--h4);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
  opacity: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
  opacity: 0;
}

/* Hero-specific button styles (always on dark background) */
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: var(--body);
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-body);
  white-space: nowrap;
  background: linear-gradient(135deg, var(--accent) 0%, #c89030 100%);
  color: #0a0f1a;
  box-shadow: 0 8px 24px rgba(212, 160, 60, 0.35);
  transition: var(--transition-fast);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(212, 160, 60, 0.5);
  color: #0a0f1a;
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: var(--body);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-body);
  white-space: nowrap;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: var(--transition-fast);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

/* Scroll indicator */
.scroll-indicator {
  margin-top: 2rem;
  animation: bounce 2s infinite, fadeInUp 0.8s ease-out 0.8s forwards;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
}

.scroll-indicator svg {
  width: 32px;
  height: 32px;
  stroke: var(--accent);
  filter: drop-shadow(0 0 8px rgba(var(--accent-rgb), 0.5));
  animation: slide 1.5s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@keyframes slide {
  0%, 100% { transform: translateY(-8px); }
  50% { transform: translateY(8px); }
}

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

/* ============================================================================
   Buttons
   ============================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: var(--body);
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
  font-family: var(--font-body);
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-fast);
  z-index: -1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(var(--primary-rgb), 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

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

.btn-secondary:hover {
  background: rgba(var(--primary-rgb), 0.1);
  border-color: var(--primary-dark);
}

.btn-tertiary {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.btn-tertiary:hover {
  background: rgba(var(--primary-rgb), 0.2);
}

/* ============================================================================
   Feature Cards
   ============================================================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
}

/* 3D Flip Cards */
.flip-card {
  perspective: 800px;
  height: 380px;
  cursor: pointer;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

.flip-card:hover .flip-inner,
.flip-card.flipped .flip-inner {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.flip-front {
  background: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

.flip-front img {
  width: 100%;
  height: 65%;
  object-fit: cover;
}

.flip-front-content {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.flip-front h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.flip-front .flip-hint {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: auto;
}

.flip-back {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  transform: rotateY(180deg);
  padding: 2rem 1.5rem;
  justify-content: center;
}

.flip-back h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.flip-back p {
  font-size: 0.9rem;
  color: #ffffff;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.flip-back .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-top: auto;
}

.flip-back .back-link:hover {
  text-decoration: underline;
}

/* ============================================================================
   Stats Section
   ============================================================================ */

.stats-bar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  border: none;
  max-width: var(--max-width);
  margin: -3rem auto 0;
  position: relative;
  z-index: 5;
  margin-left: auto;
  margin-right: auto;
  width: calc(100% - clamp(3rem, 10vw, 8rem));
  box-shadow: 0 20px 60px rgba(var(--primary-rgb), 0.3);
}

.stat-item {
  text-align: center;
}

.stat-item .number {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: none;
  margin-bottom: 0.5rem;
  display: block;
}

.stat-item .label {
  font-size: var(--small);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================================
   Text/Image Sections
   ============================================================================ */

.text-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 8vw, 6rem);
  align-items: center;
}

.text-image.reverse {
  grid-template-columns: 1fr 1fr;
  direction: rtl;
}

/* text-image reverse keeps rtl direction in all themes */

.text-image-content {
  direction: ltr;
}

.text-image img,
.text-image .placeholder-visual {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.15);
  transition: var(--transition);
}

.placeholder-visual svg {
  width: 100%;
  height: auto;
  display: block;
}

.stat-text {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  margin-bottom: 0.5rem;
  display: block;
}

.text-image:hover img {
  box-shadow: 0 30px 60px rgba(var(--primary-rgb), 0.25);
}

/* ============================================================================
   Testimonials
   ============================================================================ */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.testimonial-card {
  background: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .testimonial-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

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

.testimonial-quote {
  font-size: clamp(3rem, 6vw, 4rem);
  line-height: 0.8;
  color: var(--primary);
  margin-bottom: 1.5rem;
  opacity: 0.3;
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--text);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .testimonial-author {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.testimonial-info h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
}

.testimonial-info p {
  margin: 0;
  font-size: var(--small);
  color: var(--text-light);
}

/* ============================================================================
   Services Grid
   ============================================================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.service-card {
  background: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: var(--transition);
  position: relative;
  text-align: center;
}

[data-theme="dark"] .service-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.service-card .icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.service-card h3 {
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-light);
  font-size: var(--small);
}

/* ============================================================================
   Contact Form
   ============================================================================ */

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
  font-size: var(--body);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--body);
  color: var(--text);
  background: var(--bg-alt);
  transition: var(--transition-fast);
  resize: vertical;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
  background: var(--bg);
}

.form-group textarea {
  min-height: 140px;
}

.form-group.checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.form-group.checkbox input {
  width: 20px;
  height: 20px;
  margin: 0;
}

.form-submit {
  width: 100%;
}

.success-message {
  padding: 1.5rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius);
  color: #15803d;
  text-align: center;
  margin-bottom: 1.5rem;
  display: none;
}

.error-message {
  padding: 1.5rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius);
  color: #b91c1c;
  text-align: center;
  margin-bottom: 1.5rem;
  display: none;
}

/* ============================================================================
   Logo Bar
   ============================================================================ */

.logo-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-top: 3rem;
}

.logo-bar img {
  max-height: 60px;
  max-width: 200px;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
  filter: grayscale(1);
}

.logo-bar img:hover {
  opacity: 1;
  filter: grayscale(0);
}

.logo-placeholder {
  color: var(--text-light);
  font-weight: 600;
  opacity: 0.6;
}

.logo-bar-item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: var(--bg-alt);
  border: 1px solid rgba(var(--primary-rgb), 0.1);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: var(--small);
  color: var(--text);
  letter-spacing: 0.02em;
  opacity: 0.7;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.logo-badge:hover {
  opacity: 1;
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ============================================================================
   Gallery
   ============================================================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* ============================================================================
   Contact Info
   ============================================================================ */

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
}

.contact-item .icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.contact-item h4 {
  margin-bottom: 0.5rem;
}

.contact-item p {
  margin: 0;
  color: var(--text-light);
  font-size: var(--small);
}

/* ============================================================================
   CTA Banner
   ============================================================================ */

.cta-banner {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: clamp(4rem, 12vw, 8rem) clamp(2rem, 5vw, 4rem);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem);
}

/* Decorative blobs in CTA */
.cta-banner::before,
.cta-banner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
  pointer-events: none;
}

.cta-banner::before {
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.2);
  top: -150px;
  right: -100px;
}

.cta-banner::after {
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  bottom: -100px;
  left: -100px;
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-banner h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.95);
  font-size: var(--h4);
  margin-bottom: 2rem;
}

.cta-banner .btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #c89030 100%);
  color: #0a0f1a;
  box-shadow: 0 8px 24px rgba(212, 160, 60, 0.35);
}

.cta-banner .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(212, 160, 60, 0.5);
  color: #0a0f1a;
}

.cta-banner .btn-secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.3);
}

.cta-banner .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

/* ============================================================================
   FAQ
   ============================================================================ */

.faq-list {
  max-width: 700px;
  margin: 3rem auto 0;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 2rem 0;
}

[data-theme="dark"] .faq-item {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-size: var(--h4);
  font-weight: 700;
  color: var(--text);
  transition: color var(--transition-fast);
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-heading);
}

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

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition), opacity var(--transition);
  opacity: 0;
  margin-top: 0;
  color: var(--text-light);
}

.faq-item.active .faq-answer {
  max-height: 400px;
  opacity: 1;
  margin-top: 1.5rem;
}

/* ============================================================================
   Footer
   ============================================================================ */

footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: clamp(4rem, 8vw, 6rem) 0 2rem;
  margin-top: clamp(6rem, 12vw, 10rem);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-section p {
  margin: 0 0 1rem 0;
  font-size: var(--small);
  color: var(--footer-text);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--footer-text);
  text-decoration: none;
  transition: color var(--transition-fast);
  font-size: var(--small);
}

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

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.social-links a:hover {
  background: var(--primary);
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-copy {
  font-size: var(--small);
  color: var(--footer-text);
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-logo img {
  max-height: 48px;
  width: auto;
  opacity: 0.9;
  filter: brightness(0) invert(1);
}

.footer-desc {
  font-size: var(--small);
  line-height: 1.7;
  color: var(--footer-text);
  opacity: 0.8;
}

.footer-section a {
  color: var(--footer-text);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.text-image-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.text-image-visual img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-smooth);
}

.text-image-visual:hover img {
  transform: scale(1.03);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================================
   Page Hero (Subpages)
   ============================================================================ */

.page-hero {
  padding: calc(var(--nav-height) + clamp(4rem, 10vw, 8rem)) 0 clamp(3rem, 8vw, 6rem);
  text-align: center;
  background: linear-gradient(135deg, var(--bg) 0%, rgba(var(--primary-rgb), 0.04) 50%, var(--bg-alt) 100%);
  position: relative;
}

.page-hero h1 {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.page-hero-sub {
  font-size: var(--h4);
  color: var(--text-light);
  font-weight: 300;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================================================
   Service Features List
   ============================================================================ */

.service-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.service-features li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: var(--body);
  color: var(--text-light);
  line-height: 1.6;
}

.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

/* ============================================================================
   Service Image Placeholder
   ============================================================================ */

.service-image-placeholder {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-image-placeholder svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================================
   Section Divider
   ============================================================================ */

.section-divider {
  display: flex;
  justify-content: center;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.divider-line {
  width: 100%;
  max-width: var(--max-width);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.15), var(--accent), rgba(var(--primary-rgb), 0.15), transparent);
}

/* ============================================================================
   Process Grid
   ============================================================================ */

.process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
}

.process-step {
  text-align: center;
  padding: 2rem 1.5rem;
}

.process-number {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  opacity: 0.3;
}

.process-step h3 {
  margin-bottom: 1rem;
  color: var(--text);
}

.process-step p {
  color: var(--text-light);
  font-size: var(--small);
}

/* ============================================================================
   Project Cards (Portfolio)
   ============================================================================ */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.project-card {
  background: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(var(--primary-rgb), 0.15);
  color: inherit;
}

.project-image {
  overflow: hidden;
}

.project-image svg,
.project-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.project-card:hover .project-image svg,
.project-card:hover .project-image img {
  transform: scale(1.03);
}

.project-info {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.project-info h3 {
  margin-bottom: 0.75rem;
  color: var(--text);
}

.project-info p {
  color: var(--text-light);
  font-size: var(--small);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-link {
  font-size: var(--small);
  font-weight: 600;
  color: var(--primary);
  transition: color var(--transition-fast);
}

.project-card:hover .project-link {
  color: var(--accent);
}

/* ============================================================================
   Contact Page Layout
   ============================================================================ */

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.contact-form-wrapper h2 {
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}

.contact-info-card {
  background: var(--bg-alt);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-info-item:first-child {
  padding-top: 0;
}

.contact-info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.contact-info-item p {
  font-size: var(--small);
  color: var(--text-light);
  margin: 0;
  line-height: 1.6;
}

.contact-info-item a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

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

.contact-legal {
  background: rgba(var(--primary-rgb), 0.03);
}

.contact-legal h4 {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.contact-legal p {
  font-size: var(--small);
  color: var(--text-light);
  margin: 0 0 0.75rem;
  line-height: 1.6;
}

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

/* ============================================================================
   Feature card as link
   ============================================================================ */

/* (feature-card link overrides removed — replaced by flip-cards) */

/* ============================================================================
   Responsive Design
   ============================================================================ */

@media (max-width: 768px) {
  .text-image {
    grid-template-columns: 1fr;
  }

  .text-image.reverse {
    direction: ltr;
  }

  .features-grid,
  .services-grid,
  .testimonials-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .stats-bar {
    grid-template-columns: 1fr;
  }

  .faq-list {
    margin-top: 1.5rem;
  }

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

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

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

  .contact-sidebar {
    position: static;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn-hero-primary,
  .hero-cta .btn-hero-secondary {
    width: 100%;
  }

  .nav-menu {
    gap: 0.5rem;
  }
}

/* ============================================================================
   Animations
   ============================================================================ */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Utility classes */
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mt-8 { margin-top: 4rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ============================================================================
   Kontaktformular — Versand, Validierung, Spam-Schutz
   ============================================================================ */

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
  border-color: #b91c1c;
}

.field-error {
  display: block;
  margin-top: 0.4rem;
  color: #b91c1c;
  font-size: 0.875rem;
}

.form-privacy {
  font-size: 0.875rem;
  color: var(--text-light);
  margin: 0 0 1.25rem;
}

.form-privacy a { color: var(--primary); text-decoration: underline; }

.form-submit[disabled] { opacity: 0.6; cursor: wait; }

/* ============================================================================
   Rechtstexte (Impressum, Datenschutz)
   ============================================================================ */

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 0.75rem;
  color: var(--primary);
}

.legal-content h3 {
  font-size: 1.125rem;
  margin: 1.75rem 0 0.5rem;
}

.legal-content p,
.legal-content li {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.legal-content ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.legal-content a { color: var(--primary); text-decoration: underline; }

.footer-legal-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-legal-links a {
  color: var(--footer-text);
  font-size: 0.875rem;
  text-decoration: none;
}

.footer-legal-links a:hover { color: #fff; }
