/* ===================================
   ADLEGIO - MODERN AGENCY CSS
   Creative Dark Theme with Glassmorphism
   =================================== */

/* ----- CSS CUSTOM PROPERTIES ----- */
:root {
  /* Colors */
  --color-bg-primary: #0A192F;
  --color-bg-secondary: #112240;
  --color-surface: #1a2f50;
  --color-surface-hover: #20385f;
  --color-primary: #2196F3;
  --color-accent: #1976D2;
  --color-accent-alt: #B0BEC5;
  --color-text-primary: #E6F1FF;
  --color-text-secondary: #A8B2D1; /* Improved contrast: was #8892B0, now 7:1 ratio for WCAG AAA */
  --color-text-muted: #7A8BA3; /* Lightened from #495670 for better readability */

  /* Alpha variants for primary color */
  --primary-alpha-05: var(--primary-alpha-05);
  --primary-alpha-10: var(--primary-alpha-10);
  --primary-alpha-15: var(--primary-alpha-15);
  --primary-alpha-20: var(--primary-alpha-20);
  --primary-alpha-30: var(--primary-alpha-30);
  --primary-alpha-40: var(--primary-alpha-40);
  --primary-alpha-50: var(--primary-alpha-50);

  /* Alpha variants for accent color */
  --accent-alpha-10: var(--accent-alpha-10);
  --accent-alpha-20: var(--accent-alpha-20);
  --accent-alpha-30: var(--accent-alpha-30);

  /* Alpha variants for dark color */
  --dark-alpha-05: var(--dark-alpha-05);
  --dark-alpha-10: var(--dark-alpha-10);
  --dark-alpha-50: var(--dark-alpha-50);
  --dark-alpha-70: var(--dark-alpha-70);
  --dark-alpha-80: var(--dark-alpha-80);
  --dark-alpha-90: var(--dark-alpha-90);
  --dark-alpha-95: var(--dark-alpha-95);

  /* Alpha variants for white */
  --white-alpha-05: var(--white-alpha-05);
  --white-alpha-10: var(--white-alpha-10);
  --white-alpha-20: var(--white-alpha-20);
  --white-alpha-30: var(--white-alpha-30);
  --white-alpha-50: var(--white-alpha-50);
  --white-alpha-80: var(--white-alpha-80);
  --white-alpha-90: var(--white-alpha-90);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  --gradient-accent: linear-gradient(135deg, #1a3d5f 0%, #0f2a45 100%);
  --gradient-hero: radial-gradient(circle at 30% 50%, rgba(25, 118, 210, 0.15) 0%, transparent 50%),
                   radial-gradient(circle at 70% 60%, var(--primary-alpha-10) 0%, transparent 50%);

  /* Spacing (8px base) */
  --space-1: 0.5rem;    /* 8px */
  --space-2: 1rem;      /* 16px */
  --space-3: 1.5rem;    /* 24px */
  --space-4: 2rem;      /* 32px */
  --space-5: 3rem;      /* 48px */
  --space-6: 4rem;      /* 64px */
  --space-7: 6rem;      /* 96px */
  --space-8: 8rem;      /* 128px */

  /* Typography */
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.5rem + 2.5vw, 3rem);
  --text-3xl: clamp(2rem, 1.5rem + 2.5vw, 3.5rem); /* Reduced from 2.5rem-4rem to create stronger hierarchy */
  --text-4xl: clamp(3.5rem, 2.5rem + 6vw, 6.5rem); /* Increased from 3rem-5.5rem for stronger hero presence */

  /* Effects */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 30px var(--primary-alpha-30);
  --shadow-glow-accent: 0 0 40px rgba(25, 118, 210, 0.4);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Z-index layers */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal: 400;
  --z-tooltip: 500;
}

/* ----- RESET & BASE ----- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar Styling */
/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-secondary);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 10px;
  border: 2px solid var(--color-bg-secondary);
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  box-shadow: 0 0 10px var(--primary-alpha-50);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) var(--color-bg-secondary);
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  position: relative;
  width: 100%;
}

/* Animated background gradient */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-hero);
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
}

main {
  position: relative;
  z-index: var(--z-base);
  padding-top: 80px; /* Header height */
}

::selection {
  background: var(--color-primary);
  color: var(--color-bg-primary);
}

/* ----- TYPOGRAPHY ----- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-4xl); margin-bottom: var(--space-4); }
h2 { font-size: var(--text-3xl); margin-bottom: var(--space-3); }
h3 { font-size: var(--text-2xl); margin-bottom: var(--space-3); }
h4 { font-size: var(--text-xl); margin-bottom: var(--space-2); }
h5 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
h6 { font-size: var(--text-base); margin-bottom: var(--space-2); }

p {
  margin-bottom: var(--space-3);
  color: var(--color-text-secondary);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-accent);
}

a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: 4px;
}

strong, b {
  font-weight: 600;
  color: var(--color-text-primary);
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ----- UTILITY CLASSES ----- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
}

/* Mobile Padding */
@media (max-width: 767px) {
  .container {
    padding-inline: var(--space-3);  /* 24px Padding links/rechts auf mobil */
  }
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-4);  /* 32px Padding links/rechts auf Desktop */
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: var(--space-5);
  }
}

.container-narrow {
  max-width: 900px;
}

.text-center { text-align: center; }

/* ----- HEADER & NAVIGATION ----- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--primary-alpha-10);
  z-index: var(--z-fixed);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.header.scrolled {
  background: var(--dark-alpha-95);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--primary-alpha-20);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-inline: var(--space-2);
  width: 100%;
}

@media (min-width: 768px) {
  .header-container {
    padding-inline: var(--space-3);
  }
}

@media (min-width: 1024px) {
  .header-container {
    padding-inline: var(--space-4);
  }
}

/* Logo */
.logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  transition: transform var(--transition-base);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
  min-width: 0;
}

.logo:hover {
  transform: scale(1.05);
  color: var(--color-primary);
}

.logo img {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .logo img {
    height: 32px;
  }
}

.logo-text {
  color: var(--color-text-primary);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .logo-text {
    font-size: 1.25rem;
  }
}

/* Navigation */
.nav {
  display: none;
}

.nav.active {
  display: flex;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background: rgba(10, 25, 47, 0.98);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.nav-link {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text-secondary);
  position: relative;
  transition: color var(--transition-base);
  padding: var(--space-2);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: var(--gradient-primary);
  transition: transform var(--transition-base);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* Desktop Navigation */
@media (min-width: 1024px) {
  .nav {
    display: flex;
    position: static;
    height: auto;
    background: transparent;
    flex-direction: row;
    align-items: center;
    gap: var(--space-2);
  }

  .nav-list {
    flex-direction: row;
    gap: var(--space-2); /* Reduced from --space-4 for more compact layout */
  }

  .nav-link {
    font-size: var(--text-sm);
  }
}

/* Navbar CTA Button */
.btn-nav-cta {
  margin-left: var(--space-3);
  margin-bottom: var(--space-4);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.btn-nav-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
  z-index: 1;
}

.btn-nav-cta:hover::before {
  left: 150%;
}

.btn-nav-cta span,
.btn-nav-cta i {
  position: relative;
  z-index: 2;
}

@media (min-width: 1024px) {
  .btn-nav-cta {
    margin-bottom: 0;
    padding: 0.625rem 1.25rem;
    font-size: var(--text-sm);
  }
}

/* Animations */
@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Language Switcher */
.lang-switch {
  display: flex;
  gap: var(--space-2);
  margin-left: var(--space-2);
  align-items: center;
}

.lang-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: all var(--transition-base);
  background: transparent;
  border: 2px solid transparent;
  position: relative;
}

.lang-flag .flag-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform var(--transition-base);
  opacity: 0.75;
  filter: brightness(0.9);
}

.lang-flag:hover {
  transform: scale(1.1);
  background: var(--primary-alpha-10);
  border-color: var(--primary-alpha-30);
}

.lang-flag:hover .flag-icon {
  transform: scale(1.1);
  opacity: 0.9;
  filter: brightness(1);
}

.lang-flag.active {
  border-color: var(--color-primary);
  background: var(--primary-alpha-20);
  box-shadow: 0 0 12px var(--primary-alpha-30);
}

/* Alternative Language Switcher (used in _nav.html) */
.lang-switcher {
  display: flex;
  gap: var(--space-2);
  margin-left: var(--space-2);
  align-items: center;
}

.lang-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: all var(--transition-base);
  background: transparent;
  border: 2px solid transparent;
  position: relative;
}

.lang-link .flag-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: all var(--transition-base);
  opacity: 0.75;
  filter: brightness(0.9);
}

.lang-link:hover {
  transform: scale(1.1);
  background: var(--primary-alpha-10);
  border-color: var(--primary-alpha-30);
}

.lang-link:hover .flag-icon {
  transform: scale(1.1);
  opacity: 0.9;
  filter: brightness(1);
}

.lang-link.active {
  border-color: var(--color-primary);
  background: var(--primary-alpha-20);
  box-shadow: 0 0 12px var(--primary-alpha-30);
}

/* Mobile Menu Toggle */
.burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-1);
  z-index: var(--z-fixed);
  flex-shrink: 0;
  margin-left: var(--space-2);
}

.burger span {
  width: 28px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 3px;
  transition: all var(--transition-base);
}

.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (min-width: 1024px) {
  .burger {
    display: none;
  }
}

/* ----- HERO SECTION ----- */
.hero {
  min-height: 85vh; /* Reduced from 100vh to show content preview below fold on mobile */
  max-height: 700px; /* Prevents overly tall hero on high-res mobile devices */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Keep centered for vertical alignment */
  text-align: center;
  position: relative;
  padding-top: 80px; /* Just header height */
  padding-bottom: var(--space-8); /* Increased bottom padding to shift center point up */
  overflow: visible;
  width: 100%;
  max-width: 100vw;
}

@media (min-width: 768px) {
  .hero {
    min-height: 90vh;
    max-height: 850px;
    padding-top: 80px;
    padding-bottom: var(--space-8);
  }
}

@media (min-width: 1024px) {
  .hero {
    min-height: 100vh;
    max-height: 900px; /* Cap maximum height for ultra-wide displays */
    text-align: left; /* Left-align for asymmetric desktop layout */
    padding-top: 80px;
    padding-bottom: 120px; /* Larger bottom padding to shift content higher */
  }
}

/* Optimized for smaller laptop screens (1366x768, 1440x900, etc.) */
@media (min-width: 1024px) and (max-height: 900px) {
  .hero {
    min-height: 75vh; /* Further reduced from 80vh to 75vh for better content visibility */
    padding-top: calc(80px + var(--space-2)); /* 80px + 16px = 96px */
    padding-bottom: var(--space-1); /* Reduced from space-2 to space-1 (8px) */
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(25, 118, 210, 0.3) 0%, transparent 70%);
  filter: blur(60px);
}


/* Directional Gradient Guide - Visual leading to CTA (desktop only) */
.hero-gradient-guide {
  display: none;
}

@media (min-width: 1024px) {
  .hero-gradient-guide {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      105deg,
      transparent 0%,
      transparent 40%,
      rgba(33, 150, 243, 0.03) 60%,
      rgba(33, 150, 243, 0.08) 85%,
      rgba(33, 150, 243, 0.12) 100%
    );
    pointer-events: none;
    z-index: 0;
  }
}

/* Hero Grid - Asymmetric Layout (desktop) */
.hero-grid {
  position: relative;
  z-index: var(--z-base);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (min-width: 1024px) {
  .hero-grid {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr; /* Left content: 60%, Right CTA: 40% - more space for CTA to push right */
    gap: var(--space-8);
    align-items: center; /* Keep centered vertically */
  }
}

.hero-content {
  position: relative;
  z-index: var(--z-base);
  max-width: 1000px;
  margin-inline: auto; /* Center on mobile */
}

@media (min-width: 1024px) {
  .hero-content {
    max-width: none;
    margin-inline: 0; /* Remove centering on desktop */
  }
}

/* Hero Background Logo */
.hero-logo-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  animation: fadeIn 1.2s ease both;
}

.hero-logo-bg::before {
  content: '';
  position: absolute;
  top: 60%;
  left: 48%;
  transform: translate(-50%, -50%);
  width: 1200px;
  height: 1200px;
  background: radial-gradient(
    ellipse at center,
    rgba(33, 150, 243, 0.12) 0%,
    rgba(33, 150, 243, 0.11) 15%,
    rgba(25, 118, 210, 0.1) 30%,
    rgba(33, 150, 243, 0.08) 50%,
    rgba(25, 118, 210, 0.05) 70%,
    rgba(33, 150, 243, 0.03) 85%,
    rgba(33, 150, 243, 0.015) 95%,
    transparent 100%
  );
  filter: blur(80px);
  z-index: 0;
}

.hero-logo-bg::after {
  content: '';
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(
    ellipse at center,
    rgba(33, 150, 243, 0.1) 0%,
    rgba(25, 118, 210, 0.09) 20%,
    rgba(33, 150, 243, 0.06) 40%,
    rgba(25, 118, 210, 0.04) 60%,
    rgba(33, 150, 243, 0.02) 80%,
    transparent 100%
  );
  filter: blur(60px);
  z-index: 0;
}

@media (min-width: 1024px) {
  .hero-logo-bg::before {
    width: 1000px;
    height: 1000px;
    filter: blur(70px);
  }

  .hero-logo-bg::after {
    width: 1100px;
    height: 900px;
    filter: blur(80px);
  }
}

.hero-logo-bg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.22;
  filter:
    drop-shadow(0 0 40px rgba(33, 150, 243, 0.4))
    drop-shadow(0 0 80px rgba(33, 150, 243, 0.3))
    brightness(0.7);
  max-width: 500px;
  max-height: 500px;
  margin: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}


@media (min-width: 768px) {
  .hero-logo-bg img {
    max-width: 650px;
    max-height: 650px;
    opacity: 0.25;
  }
}

@media (min-width: 1024px) {
  .hero-logo-bg img {
    max-width: 750px;
    max-height: 750px;
    opacity: 0.28;
    filter:
      drop-shadow(0 0 60px rgba(33, 150, 243, 0.5))
      drop-shadow(0 0 120px rgba(33, 150, 243, 0.4))
      brightness(0.65);
  }
}

/* Smaller logo for small laptop screens (1366x768, etc.) */
@media (min-width: 1024px) and (max-height: 900px) {
  .hero-logo-bg img {
    max-width: 500px;
    max-height: 500px;
  }
}

/* Hero Logo Background - Smaller on subpages */
.hero-logo-bg-subpage img {
  max-width: 350px;
  max-height: 350px;
  opacity: 0.18;
}

@media (min-width: 768px) {
  .hero-logo-bg-subpage img {
    max-width: 450px;
    max-height: 450px;
    opacity: 0.2;
  }
}

@media (min-width: 1024px) {
  .hero-logo-bg-subpage img {
    max-width: 550px;
    max-height: 550px;
    opacity: 0.22;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-4);
  animation: fadeInUp 0.8s ease both;
  position: relative;
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: var(--text-2xl);
    line-height: 1.3;
  }
}

/* Main title - "Digitale Exzellenz" - Large and white */
.hero-title-main {
  display: block;
  font-size: var(--text-4xl);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

@media (min-width: 1024px) {
  .hero-title-main {
    font-size: 4.5rem; /* Larger to match visual weight */
    line-height: 1.1;
  }
}

/* Smaller desktop screens (1024px - 1280px) - Reduce by ~20% */
@media (min-width: 1024px) and (max-width: 1280px) {
  .hero-title-main {
    font-size: 3.6rem; /* 20% reduction from 4.5rem */
    line-height: 1.15;
  }
}

/* Large desktop screens (>1280px) - Increase size and spacing */
@media (min-width: 1281px) {
  .hero-title-main {
    font-size: 5.5rem; /* Bigger for large screens */
    line-height: 1.05;
    margin-bottom: var(--space-3);
  }
}

/* Subtitle line - "Intelligent konzipiert. Präzise umgesetzt." - Blue and smaller */
.hero-title-subtitle {
  display: block;
  font-size: var(--text-xl);
  color: var(--color-primary);
  font-weight: 600;
  line-height: 1.4;
}

@media (min-width: 1024px) {
  .hero-title-subtitle {
    font-size: var(--text-2xl);
    line-height: 1.35;
  }
}

/* Smaller desktop screens (1024px - 1280px) - Reduce by ~20% */
@media (min-width: 1024px) and (max-width: 1280px) {
  .hero-title-subtitle {
    font-size: 1.75rem; /* ~20% reduction from var(--text-2xl) which is 2rem */
    line-height: 1.4;
  }
}

/* Large desktop screens (>1280px) - Increase size */
@media (min-width: 1281px) {
  .hero-title-subtitle {
    font-size: 2.25rem; /* Bigger subtitle for large screens */
    line-height: 1.3;
  }
}

/* Tighter mobile hero headings on detail pages (Webentwicklung/Marketing/Print) */
@media (max-width: 767px) {
  .hero-detail .hero-title {
    font-size: var(--text-xl);
    line-height: 1.25;
  }

  .hero-detail .hero-title-main {
    font-size: var(--text-3xl);
    line-height: 1.15;
  }

  .hero-detail .hero-title-subtitle {
    font-size: var(--text-lg);
    line-height: 1.35;
  }
}

/* Animated underline effect on main title */
.hero-title-main::after {
  content: '';
  display: none; /* Hidden on mobile */
}

@media (min-width: 1024px) {
  .hero-title-main::after {
    display: block;
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 120px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: slideInLeft 0.6s 0.4s ease both;
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.6);
  }

  /* Centered line for detail pages */
  .hero-detail .hero-title-main::after {
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    animation: slideInCenter 0.6s 0.4s ease both;
  }
}

@keyframes slideInLeft {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 120px;
    opacity: 1;
  }
}

@keyframes slideInCenter {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 80px;
    opacity: 1;
  }
}


@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: var(--space-5);
  line-height: 1.7;
  animation: fadeInUp 0.8s 0.2s ease both;
}

@media (min-width: 1024px) {
  .hero-subtitle {
    margin-inline: 0; /* Left-align on desktop */
    max-width: 550px;
    font-size: var(--text-base);
    line-height: 1.65;
  }
}

/* Large desktop screens (>1280px) - Bigger text and spacing */
@media (min-width: 1281px) {
  .hero-subtitle {
    max-width: 650px;
    font-size: var(--text-lg);
    line-height: 1.7;
    margin-bottom: var(--space-6);
  }
}

/* Hero Secondary CTA (Erfolgsgeschichten button) */
.hero-secondary-cta {
  animation: fadeInUp 0.8s 0.5s ease both;
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: var(--space-4);
}

@media (min-width: 768px) {
  .hero-secondary-cta {
    width: auto;
    margin-top: var(--space-4);
  }
}

@media (min-width: 1024px) {
  .hero-secondary-cta {
    justify-content: flex-start; /* Left-align on desktop */
  }
}

/* Hero Right CTA Area (Desktop only) */
.hero-cta-right {
  display: none; /* Hidden on mobile */
}

@media (min-width: 1024px) {
  .hero-cta-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    z-index: var(--z-base);
    animation: fadeInRight 0.8s 0.6s ease both;
    padding-left: var(--space-4);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Hero CTA Card - Prominent desktop CTA */
.hero-cta-card {
  background: var(--color-surface);
  backdrop-filter: blur(20px);
  border: 2px solid var(--primary-alpha-30);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  transition: all var(--transition-base);
}

.hero-cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    var(--primary-alpha-15) 0%,
    transparent 70%
  );
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-cta-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-glow-accent);
  border-color: var(--primary-alpha-50);
}

.hero-cta-card > * {
  position: relative;
  z-index: 1;
}

/* Content Block - free-standing centered text */
.content-block {
  color: var(--color-text-secondary);
  line-height: 1.7;
  text-align: center;
  font-size: var(--text-base);
}

.content-block p {
  margin: 0;
}

/* Hero CTA Button (large, prominent) */
.btn-cta-hero {
  padding: 1.25rem 2.5rem;
  font-size: var(--text-lg);
  font-weight: 700;
  width: 100%;
  min-height: 60px;
  box-shadow: 0 4px 20px var(--primary-alpha-40);
  position: relative;
  overflow: hidden;
}

.btn-cta-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--white-alpha-30);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-cta-hero:hover::before {
  width: 300px;
  height: 300px;
}

.btn-cta-hero:hover {
  box-shadow: 0 6px 30px rgba(33, 150, 243, 0.6);
}

/* CTA Subtext in Hero Card */
.cta-subtext-hero {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-weight: 500;
  margin-bottom: 0;
}

.cta-subtext-wrapper {
  margin-top: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  align-items: center;
  padding: 0 var(--space-4);
}

.cta-subtext {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 0;
  text-align: center;
  font-weight: 400;
  opacity: 0.6;
}

/* Hero CTA Base Styles */
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
}

@media (min-width: 640px) {
  .hero-cta {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-3);
  }
}

/* Hero CTA at bottom (Mobile only) */
.hero-cta-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  animation: fadeInUp 0.8s 0.6s ease both;
  margin-top: var(--space-5);
  text-align: center;
  position: relative;
  z-index: var(--z-base);
}

@media (min-width: 768px) {
  .hero-cta-bottom {
    margin-top: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .hero-cta-bottom {
    display: none; /* Hidden on desktop - CTA shown in right column instead */
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: fixed; /* Changed from absolute to fixed */
  bottom: var(--space-6); /* 64px from viewport bottom */
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  opacity: 1;
  transition: opacity 0.6s ease-out;
  display: none; /* Hidden on mobile by default */
  z-index: 10; /* Above content but below header */
}

/* Show on desktop only */
@media (min-width: 1024px) {
  .scroll-indicator {
    display: block;
  }
}

/* Adjust position for small laptop screens */
@media (min-width: 1024px) and (max-height: 900px) {
  .scroll-indicator {
    bottom: var(--space-4); /* 32px from viewport bottom on smaller screens */
  }
}

/* Extra space for very small screens */
@media (min-width: 1024px) and (max-height: 700px) {
  .scroll-indicator {
    bottom: var(--space-2); /* 16px from viewport bottom on very small screens */
  }
}

/* Hide when scrolled */
.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

.scroll-indicator .arrow {
  width: 24px;
  height: 24px;
  border-left: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(-45deg);
}

/* ----- BUTTONS ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  background: transparent;
  color: inherit;
  line-height: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 100%;
  height: 100%;
  background: var(--white-alpha-10);
  border-radius: inherit;
  transition: transform var(--transition-base);
}

.btn:hover::before {
  transform: translate(-50%, -50%) scale(1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 16px var(--primary-alpha-40);
}

.btn-primary::before {
  background: rgba(13, 71, 161, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 6px 24px rgba(33, 150, 243, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-bg-primary);
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  color: white;
  border-color: transparent;
  font-size: var(--text-base);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(33, 150, 243, 0.4), inset 0 1px 0 var(--white-alpha-20);
  text-shadow: 0 1px 2px rgba(10, 25, 47, 0.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(33, 150, 243, 0.6), inset 0 1px 0 var(--white-alpha-30);
  background: linear-gradient(135deg, #42A5F5 0%, #2196F3 100%);
  color: white;
  text-shadow: 0 1px 2px rgba(10, 25, 47, 0.4);
}

/* CTA Banner Button - White variant for blue background */
.btn-cta-banner {
  background: #ffffff;
  color: #1976D2;
  border: 2px solid #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 20px var(--white-alpha-30), 0 0 0 0 rgba(255, 255, 255, 0);
  transition: all 0.3s ease;
}

.btn-cta-banner:hover {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(255, 255, 255, 0.4), 0 0 20px var(--white-alpha-20);
}

.btn-cta-banner::before {
  background: var(--white-alpha-20);
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

/* Touch-optimized buttons for mobile */
@media (max-width: 767px) {
  .btn {
    padding: 1.25rem 2.5rem; /* Larger touch targets (min 44x44px) */
    font-size: var(--text-lg);
  }

  .hero-cta .btn,
  .hero-secondary-cta .btn {
    min-height: 56px; /* Ensures minimum touch target size */
    width: 100%; /* Full-width on mobile for easier tapping */
    max-width: 400px;
  }
}

/* CTA Section Touch Feedback */
@media (max-width: 767px) {
  .cta-section .btn {
    transition: all 0.2s ease;
  }

  .cta-section .btn:active {
    transform: scale(0.97);
  }

  .cta-section .btn-cta-banner:active {
    box-shadow: 0 3px 15px rgba(255, 255, 255, 0.4),
                0 0 20px rgba(255, 255, 255, 0.2);
  }

  .cta-section .btn-secondary:active {
    background: rgba(255, 255, 255, 0.2);
  }
}

/* ----- SECTIONS ----- */
.section {
  padding-block: var(--space-7);
  position: relative;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

@media (min-width: 1024px) {
  .section {
    padding-block: var(--space-8);
  }
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.section-label {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--primary-alpha-20);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
  color: var(--color-text-primary);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 700px;
  margin-inline: auto;
  line-height: 1.7;
}

/* Section Content Formatting */
.section-content-formatted {
  max-width: 48rem;
  margin: 0 auto;
}

.section-content-formatted h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: rgb(226, 232, 240);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.section-content-formatted p {
  margin-bottom: var(--space-4);
  line-height: 1.75;
}

.section-content-formatted p:last-child {
  margin-bottom: 0;
}


/* ----- GRID SYSTEM ----- */
.grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1023px) {
  .grid-3 {
    grid-template-columns: 1fr;
    place-items: center;
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ----- CARDS ----- */
.card {
  background: var(--color-surface);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(33, 150, 243, 0.25);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: all var(--transition-base);
  position: relative;
  overflow: visible;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}


.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 0;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-alpha-30);
}

.card:hover::before {
  opacity: 0.05;
}

.card > * {
  position: relative;
  z-index: 1;
}

/* Einheitliche Höhe für Card-Überschriften in grid-3 Layouts (nur Service-Detailseiten, nur Desktop) */
@media (min-width: 768px) {
  .service-benefits .grid-3 .card h3 {
    min-height: 5.2rem; /* ~3 Zeilen bei normaler Schriftgröße */
    display: flex;
    align-items: flex-start;
  }
}

/* Card with Background Image */
.card-with-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden !important;
  isolation: isolate;
  background-clip: padding-box;
}

.card-overlay {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(
    135deg,
    rgba(13, 17, 23, 0.92) 0%,
    rgba(26, 31, 46, 0.88) 100%
  );
  border-radius: inherit;
  transition: all var(--transition-normal);
  z-index: 1;
}

.card-with-image:hover .card-overlay {
  background: linear-gradient(
    135deg,
    rgba(13, 17, 23, 0.75) 0%,
    rgba(26, 31, 46, 0.70) 100%
  );
}

.card-content {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  z-index: 2;
}

.card-content > * {
  position: relative;
  z-index: 3;
}

/* Card Links */
.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.card-link:hover {
  text-decoration: none;
}

.card-link .service-title {
  transition: color var(--transition-base);
}

.card-link:hover .service-title {
  color: var(--color-primary);
}

.card-link-hint {
  display: inline-block;
  margin-top: auto;
  padding-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 600;
  transition: all var(--transition-base);
}

.card-link-hint i {
  margin-left: var(--space-1);
  transition: transform var(--transition-base);
}

.card-link:hover .card-link-hint i {
  transform: translateX(4px);
}

/* Case Card Image Hover Effect */
.card a:hover img {
  transform: scale(1.05);
}

/* Card Title (used in preview cards on cases.html) */
.card-title {
  font-size: var(--text-lg);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

/* Card Text (used for descriptions in preview cards) */
.card-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Service Cards */
.service-card {
  display: flex;
  flex-direction: column;
  text-align: center;
  height: 100%;
}

.service-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  position: absolute;
  top: -25px;
  left: -25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  color: white;
  box-shadow: 0 4px 20px var(--primary-alpha-40);
  transition: transform var(--transition-base);
  z-index: 2;
}

.service-icon i {
  color: white;
}


.card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px var(--primary-alpha-50));
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .service-icon {
    width: 30px;
    height: 30px;
    top: 10px;
    left: 10px;
    font-size: 0.875rem;
  }

  /* Detail pages: shrink icon glyph to fit the tighter mobile circle */
  .service-icon i,
  .service-icon svg {
    font-size: 0.95rem !important;
    line-height: 1;
  }

  /* Tighter typography for detail-page service cards on mobile */
  .hero-detail .card h3 {
    font-size: var(--text-lg);
    line-height: 1.2;
  }

  .hero-detail .card p,
  .hero-detail .card li {
    font-size: var(--text-sm);
    line-height: 1.6;
  }

  .hero-detail .card ul {
    gap: var(--space-1);
  }

  /* Nur Text zentrieren für nicht-service-cards */
  .grid-3 .card:not(.service-card) {
    text-align: center;
  }

  /* Portfolio Slider Wrapper */
  .portfolio-slider-wrapper {
    position: relative;
    width: 100%;
  }

  /* Portfolio Navigation Buttons */
  .portfolio-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 2rem;
    opacity: 0.7;
    cursor: pointer;
    padding: var(--space-2);
    transition: opacity 0.3s ease, transform 0.2s ease;
  }

  .portfolio-nav-btn:hover {
    opacity: 1;
    animation: pulse 1.5s ease-in-out infinite;
  }

  .portfolio-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
  }

  @keyframes pulse {
    0%, 100% {
      transform: translateY(-50%) scale(1);
    }
    50% {
      transform: translateY(-50%) scale(1.1);
    }
  }

  .portfolio-nav-prev { left: 0px; }
  .portfolio-nav-next { right: 0px; }

  /* Mobile: Pfeile mit Glow/Puls Effekt */
  @media (max-width: 767px) {
    .portfolio-nav-btn {
      opacity: 0.9;
      font-size: 1.5rem;
      animation: glow 2s ease-in-out infinite;
      filter: drop-shadow(0 0 3px var(--color-primary));
    }

    .portfolio-nav-btn:hover {
      opacity: 1;
      animation: glowStrong 1.5s ease-in-out infinite;
    }

    @keyframes glow {
      0%, 100% {
        opacity: 0.7;
        filter: drop-shadow(0 0 2px var(--color-primary));
      }
      50% {
        opacity: 0.9;
        filter: drop-shadow(0 0 6px var(--color-primary));
      }
    }

    @keyframes glowStrong {
      0%, 100% {
        opacity: 0.9;
        filter: drop-shadow(0 0 4px var(--color-primary));
      }
      50% {
        opacity: 1;
        filter: drop-shadow(0 0 10px var(--color-primary));
      }
    }

    .portfolio-nav-prev {
      left: -5px;
    }

    .portfolio-nav-next {
      right: -5px;
    }
  }

  /* Portfolio Slider auf mobile */
/* Mobile Slider Layout */
@media (max-width: 767px) {
  .portfolio-slider-wrapper {
    /* sorgt dafür, dass keine hässlichen Kanten zu sehen sind */
    overflow: hidden;
  }

  .grid-2.portfolio-slider {
    display: flex;
    flex-direction: row;

    /* nur horizontal scrollen */
    overflow-x: scroll;
    overflow-y: hidden;

    /* horizontales Snap-Scrolling */
    scroll-snap-type: x mandatory;

    /* Abstand zwischen den Karten */
    gap: var(--space-4);

    /* außen keinen zusätzlichen Rand, damit es „clean" wirkt */
    margin: 0;

    /* optional etwas Innenabstand links/rechts */
    padding: 0 var(--space-4);

    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;

    /* Scrollbar verstecken */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE und Edge */
  }

  /* Scrollbar verstecken für Chrome, Safari und Opera */
  .grid-2.portfolio-slider::-webkit-scrollbar {
    display: none;
  }

  .portfolio-slider .case-card-link {
    /* jede Slide nimmt 100 % der Viewportbreite ein */
    flex: 0 0 100%;
    scroll-snap-align: center;

    text-decoration: none;
    color: inherit;
    display: block;
  }

  .grid-2.portfolio-slider .case-card {
    display: flex;
    flex-direction: column;
    position: relative;
    height: 460px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .grid-2.portfolio-slider .case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }
}

  /* Animierten Pfeil entfernen */
  .grid-2.portfolio-slider .case-card::after {
    display: none;
  }

  .portfolio-slider .case-content {
    flex: 1;
    text-align: center;
  }

  .portfolio-slider .case-title {
    text-align: center;
  }

  .portfolio-slider .case-description {
    text-align: center;
  }
}

/* Card Icon (used on About page) - same style as service-icon */
.card-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  position: absolute;
  top: -25px;
  left: -25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  color: white;
  box-shadow: 0 4px 20px var(--primary-alpha-40);
  transition: transform var(--transition-base);
  z-index: 2;
}

.card-icon i {
  color: white;
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Mobile adjustments for card-icon */
@media (max-width: 767px) {
  .card-icon {
    width: 45px;
    height: 45px;
    top: -22px;
    left: -22px;
    font-size: 1rem;
  }
}

.service-title {
  font-size: var(--text-lg);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.service-description {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-3);
  flex: 1;
}

.service-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin-top: auto;
}

.benefit-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  padding: 0.4rem 0.8rem;
  background: var(--primary-alpha-10);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: 1px solid var(--primary-alpha-20);
  transition: all var(--transition-base);
}

.benefit-tag i {
  font-size: 0.75rem;
}

.benefit-tag:hover {
  background: var(--primary-alpha-20);
  transform: translateY(-2px);
}

/* Case Study Cards */
/* Case card link wrapper - makes entire card clickable */
.case-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform var(--transition-base);
}

.case-card-link:hover {
  transform: translateY(-4px);
}

.case-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
}

.case-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  transition: transform var(--transition-slow);
}

.case-card-link:hover .case-image {
  transform: scale(1.05);
}

.case-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.case-title {
  font-size: var(--text-lg);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.case-description {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-3);
  flex: 1;
}

.case-meta {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: auto;
}

.case-tag {
  font-size: var(--text-xs);
  padding: 0.4rem 0.8rem;
  background: var(--primary-alpha-10);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: 1px solid var(--primary-alpha-20);
}

/* Team Cards */
.team-image-wrapper {
  position: relative;
  margin-bottom: var(--space-3);
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.team-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.team-card:hover .team-image {
  transform: scale(1.1) rotate(2deg);
}

.team-name {
  font-size: var(--text-lg);
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.team-role {
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 600;
}

.team-bio {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* ----- STATS SECTION ----- */
.stat-number {
  font-size: var(--text-3xl);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-2);
  display: block;
}

/* ----- CTA SECTION ----- */
.cta-section {
  background: var(--gradient-accent);
  border-radius: 0;
  padding: var(--space-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--white-alpha-10) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cta-section > * {
  position: relative;
  z-index: 1;
}

.cta-section .section-title {
  color: #f5f5f5;
}

.cta-section .section-subtitle {
  color: rgba(245, 245, 245, 0.9);
}

/* Mobile CTA Section - Text Spacing Enhancement */
@media (max-width: 767px) {
  .cta-section {
    padding: var(--space-7) var(--space-3);
  }

  .cta-section .container {
    position: relative;
    z-index: 2;
    padding-inline: 0;
  }

  .cta-section .section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: var(--space-4);
    line-height: 1.25;
    padding: 0 var(--space-2);
  }

  .cta-section .section-subtitle {
    font-size: var(--text-lg);
    line-height: 1.8;
    margin-bottom: var(--space-5);
    padding: 0 var(--space-3);
    max-width: 500px;
    margin-inline: auto;
  }

  /* Primär-Button - GROSS und PROMINENT */
  .cta-section .btn-cta-banner {
    padding: 1.5rem 3rem;
    font-size: var(--text-lg);
    font-weight: 700;
    min-height: 64px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 6px 30px rgba(255, 255, 255, 0.5),
                0 0 40px rgba(255, 255, 255, 0.3);
    border-width: 3px;
  }

  /* Sekundär-Button - KLEINER und SUBTIL */
  .cta-section .btn-secondary {
    padding: 0.875rem 2rem;
    font-size: var(--text-base);
    font-weight: 500;
    min-height: 48px;
    width: auto;
    max-width: 280px;
    border-width: 1.5px;
    opacity: 0.9;
  }

  .cta-section .hero-cta {
    gap: var(--space-4);
    margin-top: var(--space-5);
  }
}

/* Small Display CTA Adjustments */
@media (max-width: 480px) {
  .cta-section {
    padding: var(--space-6) var(--space-2);
  }

  .cta-section .section-title {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
    padding: 0 var(--space-1);
  }

  .cta-section .btn-cta-banner {
    max-width: 100%;
    padding: 1.25rem 2rem;
  }
}

/* CTA Section Button Overrides */
.cta-section .btn-primary {
  background: var(--gradient-primary);
  color: #f5f5f5;
}

.cta-section .btn-primary:hover {
  background: linear-gradient(135deg, #1976D2 0%, #0D47A1 100%);
  transform: translateY(-2px);
}

.cta-section .btn-secondary {
  color: #f5f5f5;
  border-color: var(--white-alpha-30);
}

.cta-section .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white-alpha-50);
  color: white;
}

/* CTA Background Animation Enhancement für Mobile */
@media (max-width: 767px) {
  .cta-bg-animated {
    background: linear-gradient(
      135deg,
      #0d3a5f 0%,
      #1976D2 25%,
      #42A5F5 50%,
      #1976D2 75%,
      #0d3a5f 100%
    );
    background-size: 300% 300%;
    animation: gradientShift 12s ease infinite;
  }

  .cta-bg-animated::before {
    background: conic-gradient(
      from 0deg,
      transparent 0%,
      rgba(255, 255, 255, 0.25) 25%,
      transparent 50%,
      rgba(255, 255, 255, 0.35) 75%,
      transparent 100%
    );
    animation: rotateConic 15s linear infinite;
    opacity: 1;
  }

  .cta-section::before {
    background: radial-gradient(
      circle at 50% 50%,
      rgba(255, 255, 255, 0.2) 0%,
      transparent 60%
    );
    animation: rotate 15s linear infinite;
  }
}

/* CTA Section - Animated Version */
.cta-animated {
  background: transparent;
  position: relative;
  overflow: hidden;
}

.cta-bg-animated {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    #164070 0%,
    #2055a0 25%,
    #2d70b8 50%,
    #2055a0 75%,
    #164070 100%
  );
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  z-index: 0;
}

.cta-bg-animated::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.15) 75%,
    transparent 100%
  );
  animation: rotateConic 20s linear infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes rotateConic {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ----- FORMS ----- */
.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 1rem;
  background: rgba(17, 34, 64, 0.4);
  border: 2px solid rgba(33, 150, 243, 0.3);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-size: var(--text-base);
  font-family: inherit;
  transition: all var(--transition-base);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-muted);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--primary-alpha-10);
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

.form-help {
  display: block;
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.form-error {
  display: block;
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-accent-alt);
}

.errorlist {
  list-style: none;
  margin: var(--space-1) 0;
}

.errorlist li {
  font-size: var(--text-xs);
  color: var(--color-accent-alt);
  padding: var(--space-1);
  background: rgba(255, 107, 157, 0.1);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-1);
}

/* ----- FOOTER ----- */
.footer {
  border-top: 1px solid var(--primary-alpha-10);
  padding-block: var(--space-6);
  margin-top: var(--space-8);
}

.footer-content {
  display: grid;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}

@media (min-width: 640px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-section h4 {
  font-size: var(--text-lg);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.footer-section p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
  line-height: 1.7;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-2);
}

.footer-links a {
  color: var(--color-text-secondary);
  transition: color var(--transition-base);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--color-primary);
  transform: translateX(4px);
}

/* Footer Social Tiles - Dezente, kleine Kacheln ohne harte Rahmen */
.footer-social-tiles {
  margin-top: var(--space-3);
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.social-tile {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  background: rgba(33, 150, 243, 0.02);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

/* Sehr dezenter Glow-Effekt beim Hover */
.social-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(33, 150, 243, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.social-tile:hover::before {
  opacity: 1;
}

.social-tile:hover {
  background: rgba(33, 150, 243, 0.04);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--primary-alpha-10);
}

.social-tile i {
  font-size: 1.25rem;
  transition: all var(--transition-base);
}

.social-tile-text {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: 500;
  margin: 0;
  transition: color var(--transition-base);
}

/* Instagram spezifisches Styling - dezenter */
.social-tile-instagram i {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.7;
}

.social-tile-instagram:hover i {
  opacity: 1;
  transform: scale(1.05);
}

.social-tile-instagram:hover .social-tile-text {
  color: var(--color-text-secondary);
}

/* WhatsApp spezifisches Styling - dezenter */
.social-tile-whatsapp i {
  color: #25D366;
  opacity: 0.7;
}

.social-tile-whatsapp:hover i {
  opacity: 1;
  transform: scale(1.05);
}

.social-tile-whatsapp:hover .social-tile-text {
  color: var(--color-text-secondary);
}

/* ===== MOBILE FOOTER OPTIMIZATIONS ===== */

@media (max-width: 767px) {
  /* Reduziertes Footer Padding */
  .footer {
    padding-block: var(--space-4);
    margin-top: var(--space-6);
  }

  .footer-content {
    gap: var(--space-3);
    margin-bottom: var(--space-3);
  }

  /* Kleinere Section Headings */
  .footer-section h4 {
    font-size: var(--text-base);
    margin-bottom: var(--space-2);
  }

  /* Company Info: Zentriert */
  .footer-section:first-child {
    margin-bottom: var(--space-5); /* Mehr Abstand zu den Link-Sektionen */
  }

  .footer-section:first-child h4 {
    font-size: var(--text-xl); /* Adlegio größer */
    text-align: center;
  }

  .footer-section:first-child > p {
    text-align: center;
  }

  .footer-section:first-child > p {
    line-height: 1.5;
    margin-bottom: var(--space-3);
    font-size: var(--text-sm);
  }

  /* Engere Link-Abstände */
  .footer-links li {
    margin-bottom: var(--space-1);
  }

  .footer-links a {
    font-size: var(--text-sm);
  }

  /* ICON-ONLY SOCIAL BUTTONS */
  .footer-social-tiles {
    margin-top: var(--space-2);
    justify-content: center;
    gap: var(--space-2);
    flex-direction: row;
  }

  .social-tile {
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    background: rgba(33, 150, 243, 0.05);
  }

  .social-tile-text {
    display: none;
  }

  .social-tile i {
    font-size: 1.5rem;
  }

  .social-tile:hover {
    background: rgba(33, 150, 243, 0.1);
    transform: translateY(-3px);
  }

  /* Footer Bottom */
  .footer-bottom {
    padding-top: var(--space-3);
  }

  .footer-bottom p {
    font-size: var(--text-xs);
  }
}

/* 2-Spalten Grid für Link-Sektionen (360px-639px) */
@media (min-width: 360px) and (max-width: 639px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .footer-section:first-child {
    grid-column: 1 / -1;
  }

  /* Linksbündige Ausrichtung für alle Link-Sektionen */
  .footer-section {
    text-align: left;
  }

  /* Rechtliches über beide Spalten */
  .footer-section:nth-child(4) {
    grid-column: 1 / -1;
  }

  /* Rechtliches: 2-Spalten Layout für Links */
  .footer-section:nth-child(4) .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-1) var(--space-3);
  }
}

/* Extra kleine Screens */
@media (max-width: 359px) {
  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-social-tiles {
    gap: var(--space-1);
  }

  .social-tile {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .social-tile i {
    font-size: 1.25rem;
  }
}

/* Legacy Footer Social Section (falls noch verwendet) */
.footer-social {
  margin-top: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--primary-alpha-05);
  border: 1px solid var(--primary-alpha-10);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.footer-social:hover {
  background: rgba(33, 150, 243, 0.08);
  border-color: var(--primary-alpha-20);
  transform: translateY(-2px);
}

.footer-social-text {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  margin: 0;
  font-weight: 500;
  transition: color var(--transition-base);
  line-height: 36px; /* Match icon height for vertical alignment */
}

.footer-social:hover .footer-social-text {
  color: var(--color-primary);
}

/* Legacy social links (keep for other uses) */
.social-links {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary-alpha-20);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-size: 1.25rem;
  transition: all var(--transition-base);
}

.social-link:hover {
  background: var(--color-primary);
  color: var(--color-bg-primary);
  border-color: var(--color-primary);
  transform: translateY(-4px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-4);
  border-top: 1px solid var(--primary-alpha-10);
}

.footer-bottom p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: 0;
}

/* ----- ALERTS ----- */
.alert {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  border: 1px solid;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.alert-success {
  background: var(--primary-alpha-10);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.alert-error {
  background: rgba(255, 107, 157, 0.1);
  color: var(--color-accent-alt);
  border-color: var(--color-accent-alt);
}

.alert-info {
  background: rgba(25, 118, 210, 0.1);
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* ----- ANIMATIONS ----- */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-delay="1"] {
  transition-delay: 0.1s;
}

[data-reveal-delay="2"] {
  transition-delay: 0.2s;
}

[data-reveal-delay="3"] {
  transition-delay: 0.3s;
}

[data-reveal-delay="4"] {
  transition-delay: 0.4s;
}

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--color-surface);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ----- RESPONSIVE UTILITIES ----- */
.hide-mobile {
  display: none;
}

@media (min-width: 768px) {
  .hide-mobile {
    display: block;
  }

  .hide-desktop {
    display: none;
  }
}

/* ----- WHITE BACKGROUND SECTIONS ----- */
/* Improved readability for sections with white background */
.section[style*="background: white"],
.section[style*="background:white"] {
  background: white !important;
}

.section[style*="background: white"] .section-title,
.section[style*="background:white"] .section-title,
.section[style*="background: white"] h2,
.section[style*="background:white"] h2,
.section[style*="background: white"] h3,
.section[style*="background:white"] h3,
.section[style*="background: white"] h4,
.section[style*="background:white"] h4 {
  color: #1976D2 !important; /* Darker blue for maximum readability on white */
  font-weight: 700; /* Bolder font weight */
}

.section[style*="background: white"] p,
.section[style*="background:white"] p,
.section[style*="background: white"] div,
.section[style*="background:white"] div,
.section[style*="background: white"] li,
.section[style*="background:white"] li {
  color: #1a2744 !important; /* Very dark gray/blue for body text - WCAG AAA contrast ratio 12.6:1 */
  font-size: 1.125rem; /* Slightly larger text */
  line-height: 1.8; /* Better line spacing */
  font-weight: 500; /* Medium weight for better readability */
}

.section[style*="background: white"] strong,
.section[style*="background:white"] strong,
.section[style*="background: white"] b,
.section[style*="background:white"] b {
  color: #0D47A1 !important; /* Very dark blue for strong/bold text on white */
  font-weight: 700;
}

.section[style*="background: white"] .card-title,
.section[style*="background:white"] .card-title {
  color: #0A192F !important;
  font-weight: 600;
}

.section[style*="background: white"] .card-text,
.section[style*="background:white"] .card-text {
  color: #1a2744 !important;
  font-weight: 400;
  line-height: 1.75;
}

/* ----- PRINT STYLES ----- */
@media print {
  .header,
  .footer,
  .burger,
  .btn,
  .cta-section {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}

/* ===================================
   PRICING SECTION
   =================================== */

.pricing-section {
  background: transparent;
  position: relative;
  overflow: hidden;
}

/* Grid pattern removed for neutral background */
.pricing-section::before {
  display: none;
}

.pricing-section > .container {
  position: relative;
  z-index: 1;
}

/* ----- USP GRID ----- */
.pricing-usp-grid {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .pricing-usp-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
  }
}

/* ----- USP CARDS ----- */
.pricing-usp-card {
  background: var(--color-surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--primary-alpha-15);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: left;
  transition: all var(--transition-base);
  position: relative;
  overflow: visible;
}

.pricing-usp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 0;
}

.pricing-usp-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-alpha-40);
}

.pricing-usp-card:hover::before {
  opacity: 0.08;
}

.pricing-usp-card > * {
  position: relative;
  z-index: 1;
}

/* ----- USP ICONS ----- */
.usp-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 50%;
  font-size: 1.25rem;
  color: white;
  box-shadow: 0 4px 20px var(--primary-alpha-40);
  transition: transform var(--transition-base);
  position: absolute;
  left: -25px;
  top: -25px;
  z-index: 2;
}

.pricing-usp-card:hover .usp-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Mobile: Kleinere USP Icons */
@media (max-width: 767px) {
  .usp-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    left: -20px;
    top: -20px;
  }

  /* Desktop Version im Grid verstecken */
  .addon-disclaimer-desktop {
    display: none !important;
  }

  /* Mobil Version in separater Section anzeigen */
  .disclaimer-mobile {
    display: block !important;
    margin-top: var(--space-6);
  }

  .disclaimer-mobile .disclaimer-icon {
    display: none !important;
  }

  .disclaimer-mobile .addon-disclaimer-card {
    display: block !important;
    background: var(--color-surface);
    border: 1px solid var(--primary-alpha-15);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  .disclaimer-mobile .disclaimer-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-3);
    text-align: center;
  }

  .disclaimer-mobile .disclaimer-text {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.7;
    text-align: center;
  }

  /* Addons Section: Weniger Padding auf Mobil */
  .addons-section {
    padding: var(--space-2) !important;
  }
}

/* Desktop: Mobil-Version verstecken, Desktop-Version anzeigen */
.disclaimer-mobile {
  display: none;
}

.addon-disclaimer-desktop {
  display: block;
}

/* ----- USP HEADER (Icon + Title in Row) ----- */
.usp-header {
  position: relative;
  margin-bottom: var(--space-3);
}

/* ----- USP CONTENT ----- */
.usp-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.usp-description {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ----- TRUST BLOCK ----- */
.pricing-trust-block {
  margin-bottom: var(--space-6);
}

.trust-card {
  background: var(--color-surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--primary-alpha-15);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  text-align: center;
  transition: all var(--transition-base);
}

@media (min-width: 768px) {
  .trust-card {
    padding: 2rem;
  }
}

.trust-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at top right,
    var(--primary-alpha-05) 0%,
    transparent 60%
  );
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.trust-card:hover::before {
  opacity: 1;
}

.trust-card:hover {
  border-color: rgba(33, 150, 243, 0.25);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.trust-content {
  text-align: center;
}

.trust-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.trust-text {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
}

.trust-text strong {
  color: var(--color-primary);
  font-weight: 600;
}

/* ----- PROCESS TIMELINE ----- */
.process-timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-6) 0;
  overflow: hidden;
}

/* Timeline connector line (desktop only) - through the number circles */
@media (min-width: 768px) {
  .process-timeline::before {
    content: '';
    position: absolute;
    top: calc(var(--space-6) + 35px); /* space-6 padding + half of 70px circle */
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(
      to right,
      transparent 0%,
      rgba(33, 150, 243, 0.3) 5%,
      rgba(33, 150, 243, 0.5) 50%,
      rgba(33, 150, 243, 0.3) 95%,
      transparent 100%
    );
    z-index: 0;
    opacity: 0;
    animation: fadeInLine 0.8s ease 0.3s forwards;
  }

  /* Animated flowing light effect - slow RIGHT to LEFT */
  .process-timeline::after {
    content: '';
    position: absolute;
    top: calc(var(--space-6) + 34px);
    left: 10%;
    right: 10%;
    height: 4px;
    background: linear-gradient(
      90deg,
      transparent 60%,
      rgba(33, 150, 243, 0.6) 80%,
      transparent 100%
    );
    background-size: 300% 100%;
    animation: timelineFlowRightToLeft 8s linear infinite;
    border-radius: 2px;
    z-index: 0;
    filter: blur(2px);
    opacity: 0;
    animation: fadeInLine 0.8s ease 0.3s forwards, timelineFlowRightToLeft 8s linear 1.1s infinite;
  }
}

@keyframes fadeInLine {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes timelineFlowRightToLeft {
  0% {
    background-position: 120% 0;
  }
  100% {
    background-position: -20% 0;
  }
}

.timeline-item {
  position: relative;
  text-align: center;
  z-index: 1;
}

/* Desktop: horizontal layout */
@media (min-width: 768px) {
  .process-timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-4);
  }
}

/* Mobile: vertical timeline with left-aligned numbers */
@media (max-width: 767px) {
  .process-timeline {
    position: relative !important;     /* Sicherstellen, dass Pseudo-Elemente korrekt positioniert werden */
    padding: var(--space-4) 0 var(--space-4) var(--space-3);  /* Padding links hinzugefügt */
  }

  /* Vertikale Verbindungslinie durch die Zahlen */
  .process-timeline::before {
    content: '';
    position: absolute !important;
    top: calc(var(--space-4) + 30px) !important;
    left: 58px !important;                 /* Halbe Zahl-Breite (60px / 2) - zentriert durch Icons */
    bottom: 120px !important;
    width: 2px;
    background: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(33, 150, 243, 0.3) 5%,
      rgba(33, 150, 243, 0.5) 50%,
      rgba(33, 150, 243, 0.3) 95%,
      transparent 100%
    );
    z-index: 0;
    opacity: 0;
    animation: fadeInLine 0.8s ease 0.3s forwards;
  }

  /* Animierter fließender Licht-Effekt (oben nach unten) */
  .process-timeline::after {
    content: '';
    position: absolute !important;
    top: calc(var(--space-4) + 30px) !important;
    left: 56px !important;                 /* 58px (Mitte) - 2px (halbe Breite) = perfekt zentriert */
    bottom: 120px !important;
    width: 4px;
    background: linear-gradient(
      180deg,
      transparent 60%,
      rgba(33, 150, 243, 0.6) 80%,
      transparent 100%
    );
    background-size: 100% 300%;
    animation: fadeInLine 0.8s ease 0.3s forwards,
               timelineFlowTopToBottom 6s linear 1.1s infinite;
    border-radius: 2px;
    z-index: 1;
    filter: blur(2px);
  }

  .timeline-item {
    display: flex;
    align-items: center;              /* Icons und Content vertikal zentriert zueinander */
    gap: var(--space-3);              /* 24px zwischen Zahl und Content */
    margin-bottom: var(--space-5);    /* 48px zwischen Items */
    position: relative;
    text-align: left;                 /* Text linksbündig statt zentriert */
  }

  .timeline-item:last-child {
    margin-bottom: 0;
  }

  .timeline-number {
    width: 60px;              /* Reduziert von 70px für bessere mobile Proportionen */
    height: 60px;
    margin: 0;                /* Kein Auto-Centering */
    flex-shrink: 0;           /* Verhindert Schrumpfen */
    font-size: 1.375rem;      /* ~22px */
    box-shadow:
      0 4px 20px var(--primary-alpha-40),
      0 0 0 4px var(--color-bg-primary);  /* Halo-Effekt */
    z-index: 2;               /* Über der Linie */
  }

  /* Touch-freundlicher Active-State (ersetzt hover auf mobile) */
  .timeline-item:active .timeline-number {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(33, 150, 243, 0.5);
  }

  .timeline-content {
    flex: 1;                  /* Nimmt verbleibenden Platz */
    min-height: auto;         /* Desktop min-height entfernen */
  }

  /* Touch-Interaktion für Content */
  .timeline-item:active .timeline-content {
    border-color: rgba(33, 150, 243, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: translateX(2px);  /* Subtiler Shift nach rechts */
  }

  .timeline-title {
    font-size: 1rem;          /* 16px für mobile */
    margin-bottom: var(--space-2);
  }

  .timeline-description {
    font-size: 0.875rem;      /* 14px */
    line-height: 1.5;
  }

  /* Touch-Highlight deaktivieren */
  .timeline-item {
    -webkit-tap-highlight-color: transparent;
  }
}

/* Animation für vertikalen Licht-Fluss (von 05 nach 01, also von unten nach oben) */
@keyframes timelineFlowTopToBottom {
  0% {
    background-position: 0 100%;     /* Start unten */
  }
  100% {
    background-position: 0 -200%;    /* Ende oben (außerhalb) */
  }
}

/* Kleinere Displays: Noch kompaktere Zahlen */
@media (max-width: 480px) {
  .timeline-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;       /* 20px */
  }

  /* Linie neu zentrieren auf kleineren Zahlen (50px / 2 = 25px) */
  .process-timeline::before {
    left: 25px;                            /* Halbe Zahl-Breite (50px / 2) */
    top: calc(var(--space-4) + 25px);      /* Container-Padding + halbe Zahl-Höhe (50px) */
    bottom: 100px;                         /* Etwas kürzer wegen kleinerer Icons */
  }

  .process-timeline::after {
    left: 23px;                            /* 25px (Mitte) - 2px (halbe Breite) = perfekt zentriert */
    top: calc(var(--space-4) + 25px);
    bottom: 100px;
  }

  .timeline-item {
    gap: var(--space-2);      /* 16px statt 24px */
  }

  .timeline-content {
    padding: var(--space-2);  /* Reduziertes Padding */
  }
}

/* Reduzierte Bewegung respektieren (Accessibility) */
@media (prefers-reduced-motion: reduce) {
  .process-timeline::after {
    animation: fadeInLine 0.8s ease 0.3s forwards !important;  /* Nur Fade-In, keine kontinuierliche Animation */
  }
}

.timeline-number {
  width: 70px;
  height: 70px;
  margin: 0 auto var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 4px 20px var(--primary-alpha-40);
  position: relative;
  z-index: 2;
  transition: all var(--transition-base);
}

.timeline-item:hover .timeline-number {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(33, 150, 243, 0.6);
}

.timeline-content {
  padding: var(--space-3);
  background: var(--color-surface);
  border: 1px solid rgba(33, 150, 243, 0.25);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.timeline-item:hover .timeline-content {
  border-color: rgba(33, 150, 243, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.timeline-title {
  color: var(--color-text-primary);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.timeline-description {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Large CTA Button */
.btn-large {
  padding: 1.25rem 3rem;
  font-size: var(--text-lg);
  font-weight: 700;
  min-height: 60px;
  box-shadow: 0 6px 24px rgba(38, 112, 166, 0.5);
}

.btn-large:hover {
  box-shadow: 0 8px 32px rgba(38, 112, 166, 0.7);
}

.cta-subtext-center {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  opacity: 0.8;
  text-align: center;
}

/* Mobile: Full-width CTA */
@media (max-width: 767px) {
  .btn-large {
    width: 100%;
    max-width: 400px;
  }

  .pricing-section .section-title {
    font-size: var(--text-2xl);
  }

  .usp-icon {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
  }

  .pricing-trust-block {
    padding: var(--space-4);
  }
}

/* ----- BASIS PACKAGE ----- */
.basis-package-wrapper {
  margin: var(--space-8) 0;
  display: flex;
  justify-content: center;
}

.basis-package {
  background: linear-gradient(135deg, var(--dark-alpha-95) 0%, rgba(10, 25, 47, 0.98) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid var(--accent-alpha-20);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  max-width: 1000px;
  width: 100%;
  position: relative;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px var(--accent-alpha-10) inset;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.basis-package::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.5), transparent);
}

.basis-package:hover {
  transform: translateY(-6px);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.4),
    0 0 0 1px var(--accent-alpha-30) inset;
  border-color: rgba(100, 255, 218, 0.4);
}

.basis-package-badge {
  display: inline-block;
  background: var(--gradient-primary);
  color: white;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-5);
  box-shadow: 0 4px 20px var(--primary-alpha-40);
}

/* Two Column Grid */
.basis-package-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
}

@media (max-width: 767px) {
  .basis-package-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* Left Column: Price & CTA */
.basis-package-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-right: var(--space-5);
  border-right: 1px solid rgba(100, 255, 218, 0.15);
  justify-content: center;
}

@media (max-width: 767px) {
  .basis-package-left {
    border-right: none;
    border-bottom: 1px solid rgba(100, 255, 218, 0.15);
    padding-right: 0;
    padding-bottom: var(--space-4);
    text-align: center;
    align-items: center;
  }
}

.basis-package-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.price-amount {
  font-size: 4rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 0.9;
  letter-spacing: -2px;
}

@media (max-width: 767px) {
  .price-amount {
    font-size: 3.5rem;
  }
}

.price-period {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  font-weight: 600;
}

.basis-package-tagline {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

.basis-package-left .btn {
  width: 100%;
  justify-content: center;
  margin-top: var(--space-2);
}

@media (max-width: 767px) {
  .basis-package-left .btn {
    max-width: 300px;
  }
}

/* Add-on Teaser Link */
.basis-addon-teaser {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--accent-alpha-10);
  text-decoration: none;
  transition: all 0.3s ease;
}

.basis-addon-teaser > span:first-child {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  opacity: 0.7;
}

.addon-teaser-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-accent);
  transition: all 0.3s ease;
}

.addon-teaser-link i {
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}

.basis-addon-teaser:hover .addon-teaser-link {
  color: var(--color-primary);
  transform: translateY(2px);
}

.basis-addon-teaser:hover .addon-teaser-link i {
  transform: translateY(3px);
  animation: bounce-down 0.6s ease infinite;
}

@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Right Column: Features */
.basis-package-right {
  display: flex;
  flex-direction: column;
  padding-left: var(--space-5);
}

.basis-features-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-3);
  opacity: 0.9;
}

.basis-features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2) var(--space-4);
}

@media (max-width: 767px) {
  .basis-package-right {
    padding-left: 0;
  }

  .basis-features-list {
    grid-template-columns: 1fr;
  }
}

.basis-feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.9rem;
  color: var(--color-text-primary);
  padding: var(--space-2) var(--space-1);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  position: relative;
}

.basis-feature-item span {
  white-space: nowrap;
}

.basis-feature-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 100%;
  background: rgba(100, 255, 218, 0.05);
  border-radius: var(--radius-sm);
  transition: width 0.3s ease;
  z-index: -1;
}

.basis-feature-item:hover::before {
  width: 100%;
}

.basis-feature-item:hover {
  transform: translateX(4px);
}

.basis-feature-item i {
  color: var(--color-accent);
  font-size: 1rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.basis-feature-item:hover i {
  transform: scale(1.2);
}

/* ----- ADD-ONS SECTION ----- */
.addons-section {
  margin-top: var(--space-8);
  padding: var(--space-6);
  background: rgba(100, 255, 218, 0.03);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(100, 255, 218, 0.15);
}

.addons-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.addons-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.addons-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ----- ADD-ONS TABS (Material Design Underline Style) ----- */
.addons-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0;
}

.addon-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  padding-bottom: var(--space-3);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  position: relative;
}

/* Tab-Icons (inline, normal) */
.addon-tab i {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(33, 150, 243, 0.15);
  color: var(--color-primary);
  font-size: 0.875rem;
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.addon-tab:hover {
  color: var(--color-primary);
  border-bottom-color: rgba(33, 150, 243, 0.3);
}

.addon-tab:hover i {
  background: rgba(33, 150, 243, 0.25);
  transform: scale(1.1);
}

.addon-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.addon-tab.active i {
  background: var(--color-primary);
  color: white;
}

@media (max-width: 767px) {
  .addons-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
    border-bottom: none;
  }

  .addon-tab {
    width: 100%;
    justify-content: center;
    font-size: var(--text-sm);
    padding: var(--space-2) var(--space-3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
  }

  .addon-tab.active {
    border-color: var(--color-primary);
    background: rgba(33, 150, 243, 0.1);
  }

  .addon-tab i {
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
  }
}

/* ----- TAB CONTENT ----- */
.addon-tab-content {
  display: none;
}

.addon-tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----- ADD-ON ITEMS GRID ----- */
.addon-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}

@media (max-width: 767px) {
  .addon-items-grid {
    grid-template-columns: 1fr;
  }
}

/* ----- ADD-ON ITEM CARD ----- */
.addon-item-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--primary-alpha-15);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  transition: all var(--transition-base);
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: var(--space-3);
  height: 100%;
}

.addon-item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-alpha-30);
}

.addon-item-card h4 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;
  line-height: 1.4;
  min-height: 2.8em;
  display: flex;
  align-items: center;
}

.addon-price {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  padding: var(--space-1) var(--space-2);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid var(--white-alpha-10);
  width: fit-content;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.8;
}

.addon-item-card p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
  align-self: start;
}

/* ----- PRICING INFO SECTION (Image + Disclaimer) ----- */
.pricing-info-section {
  margin-top: var(--space-8);
  padding: 0;
}

.pricing-info-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: var(--space-6);
  align-items: stretch;
}

@media (max-width: 1024px) {
  .pricing-info-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
}

/* ----- IMAGE WITH OVERLAY ----- */
.pricing-info-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.1);
  height: 100%;
  min-height: 400px;
}

@media (max-width: 1024px) {
  .pricing-info-image-wrapper {
    min-height: 300px;
    max-height: 500px;
  }
}

.pricing-info-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Dezentes Overlay mit blauer Tönung */
.pricing-info-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 27, 42, 0.2) 0%,
    rgba(13, 27, 42, 0.15) 50%,
    rgba(33, 150, 243, 0.08) 100%
  );
  pointer-events: none;
  opacity: 0.85;
}

/* ----- ADD-ONS DISCLAIMER (Angepasst für neues Layout) ----- */
.addons-disclaimer {
  padding: var(--space-5);
  background: rgba(100, 255, 218, 0.03);
  border: 1px solid rgba(100, 255, 218, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  height: 100%;
}

.addons-disclaimer i {
  color: var(--color-accent);
  font-size: var(--text-lg);
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.7;
}

.addons-disclaimer p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0;
  text-align: justify;
}

.addons-disclaimer strong {
  color: var(--color-accent);
  font-weight: 700;
}

@media (max-width: 767px) {
  .addons-disclaimer {
    flex-direction: column;
    text-align: center;
  }
}

/* =============================================
   TEAM SECTION (About Page)
   ============================================= */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-8);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.team-card {
  background: var(--color-surface);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(33, 150, 243, 0.25);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  text-align: center;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 0;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-alpha-30);
}

.team-card:hover::before {
  opacity: 0.05;
}

.team-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  z-index: 1;
}

.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.team-card:hover .team-card-image img {
  transform: scale(1.08);
}

.team-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  color: rgba(255, 255, 255, 0.15);
}

.team-card-content {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.team-card-name {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
  line-height: 1.2;
}

.team-card-role {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.team-card-description {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-5);
  flex: 1;
}

.team-card-skills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.skill-tag {
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  background: var(--accent-alpha-10);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent-alpha-20);
  transition: all var(--transition-base);
}

.skill-tag:hover {
  background: var(--accent-alpha-20);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

/* Mobile: Responsive Team Grid */
@media (max-width: 767px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    margin-top: var(--space-6);
  }

  .team-card-name {
    font-size: var(--text-xl);
  }

  .team-card-content {
    padding: var(--space-5);
  }

  .team-card-description {
    font-size: var(--text-sm);
  }
}

/* =============================================
   PROJECT POPUP MODAL
   ============================================= */

/* Prevent body scroll when popup is active */
body.popup-active {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
  left: 0;
}

/* Popup Overlay */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--dark-alpha-95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  opacity: 0;
  transition: opacity var(--transition-base);
  overflow: hidden; /* Prevents all scrolling */
  padding: var(--space-4);
}

.popup-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Popup Container */
.popup-container {
  background: var(--color-bg-secondary);
  border: 1px solid var(--primary-alpha-20);
  border-radius: var(--radius-xl);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: var(--space-6);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 767px) {
  .popup-container {
    padding: var(--space-4);
    max-height: 95vh;
  }
}

/* Close Button */
.popup-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-base);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.popup-close:hover {
  background: var(--primary-alpha-10);
  color: var(--color-primary);
  transform: rotate(90deg);
}

/* Progress Indicator */
.popup-progress {
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.progress-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-weight: 600;
  min-width: 80px;
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: var(--primary-alpha-10);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 3px;
  width: 33.33%;
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Popup Header */
.popup-header {
  margin-bottom: var(--space-5);
  text-align: center;
}

.popup-title {
  font-size: var(--text-2xl);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
  font-weight: 700;
}

.popup-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin: 0;
}

/* Configurator Hint in Popup */
.popup-configurator-hint {
  margin-top: var(--space-4);
  padding: var(--space-3);
  background: rgba(25, 118, 210, 0.05);
  border: 1px solid rgba(25, 118, 210, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
}

.popup-configurator-hint i {
  color: var(--color-primary);
  font-size: 1.1rem;
}

.popup-configurator-hint span {
  color: var(--color-text-secondary);
}

.configurator-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.configurator-link:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.configurator-link i {
  font-size: 0.85rem;
  margin-left: 0.25rem;
}

/* Package Summary in Popup Header */
.popup-package-summary {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: linear-gradient(135deg, rgba(25, 118, 210, 0.08) 0%, rgba(33, 150, 243, 0.05) 100%);
  border: 2px solid rgba(25, 118, 210, 0.2);
  border-radius: var(--radius-lg);
}

.package-price-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.package-label {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  font-weight: 500;
}

.package-price {
  font-size: var(--text-2xl);
  color: var(--color-primary);
  font-weight: 700;
}

.package-edit-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.package-edit-link:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.package-edit-link i {
  font-size: 0.9rem;
}

/* Selected Add-ons Section in Popup */
.selected-addons-section {
  margin-bottom: var(--space-5);
  padding: var(--space-4);
  background: rgba(33, 150, 243, 0.05);
  border: 2px solid rgba(33, 150, 243, 0.2);
  border-radius: var(--radius-lg);
}

.selected-addons-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.selected-addons-header i {
  color: var(--color-primary);
  font-size: 1.25rem;
}

.selected-addons-header h4 {
  margin: 0;
  font-size: var(--text-lg);
  color: var(--color-text-primary);
}

.selected-addons-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.selected-addon-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}

.selected-addon-item.is-base {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.selected-addon-item i {
  color: var(--color-primary);
  font-size: 1rem;
}

.selected-addon-item.is-base i {
  color: #FFC107;
}

.selected-addon-item .addon-name {
  flex: 1;
  color: var(--color-text-primary);
}

.selected-addon-item .addon-price {
  font-weight: 600;
  color: var(--color-primary);
}

.selected-addons-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-3);
  border-top: 2px solid rgba(33, 150, 243, 0.2);
  font-size: var(--text-base);
}

.selected-addons-total strong {
  color: var(--color-primary);
  font-size: var(--text-lg);
}

/* Popup Content */
.popup-content {
  padding: var(--space-4) 0;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.popup-content h3 {
  color: var(--color-text-primary);
  margin-top: var(--space-5);
  margin-bottom: var(--space-3);
  font-size: var(--text-xl);
}

.popup-content h4 {
  color: var(--color-text-primary);
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
  font-size: var(--text-lg);
}

.popup-content p {
  margin-bottom: var(--space-3);
}

.popup-content ul,
.popup-content ol {
  margin-left: var(--space-5);
  margin-bottom: var(--space-4);
}

.popup-content li {
  margin-bottom: var(--space-2);
}

/* Popup Footer */
.popup-footer {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--primary-alpha-10);
  text-align: center;
}

/* Form Steps */
.form-step {
  display: none;
  animation: stepFadeIn 0.4s ease forwards;
}

.form-step.active {
  display: block;
}

@keyframes stepFadeIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.step-title {
  font-size: var(--text-xl);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
  font-weight: 700;
}

.step-description {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

/* Checkbox Group */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: background var(--transition-base);
}

.checkbox-label:hover {
  background: var(--primary-alpha-05);
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(33, 150, 243, 0.5);
  border-radius: 4px;
  background: rgba(17, 34, 64, 0.4);
  position: relative;
  transition: all var(--transition-base);
  flex-shrink: 0;
  margin-top: 2px;
}

input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
}

.checkbox-text {
  color: var(--color-text-primary);
  font-size: var(--text-sm);
  line-height: 1.5;
}

input[type="checkbox"],
input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Radio Group */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.radio-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: background var(--transition-base);
}

.radio-label:hover {
  background: var(--primary-alpha-05);
}

.radio-custom {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(33, 150, 243, 0.5);
  border-radius: 50%;
  background: rgba(17, 34, 64, 0.4);
  position: relative;
  transition: all var(--transition-base);
  flex-shrink: 0;
  margin-top: 2px;
}

input[type="radio"]:checked + .radio-custom {
  border-color: var(--color-primary);
}

input[type="radio"]:checked + .radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--color-primary);
  border-radius: 50%;
}

.radio-text {
  color: var(--color-text-primary);
  font-size: var(--text-sm);
  line-height: 1.5;
}

/* Optional Label */
.optional {
  color: var(--color-text-muted);
  font-weight: 400;
  font-size: 0.9em;
}

/* File Upload */
.file-upload {
  margin-top: var(--space-2);
}

.file-input {
  display: none;
}

.file-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-5);
  background: var(--primary-alpha-05);
  border: 2px dashed var(--primary-alpha-30);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
}

.file-label:hover {
  background: rgba(33, 150, 243, 0.08);
  border-color: var(--color-primary);
}

.file-label i {
  font-size: 2rem;
  color: var(--color-primary);
}

.file-label span {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.file-list {
  margin-top: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

/* Privacy Checkbox */
.privacy-checkbox {
  background: var(--primary-alpha-05);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--primary-alpha-10);
}

.privacy-checkbox a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions .btn {
    width: 100%;
  }
}

.btn-prev,
.btn-next,
.btn-submit {
  min-width: 140px;
}

/* Form Footer Note */
.form-footer-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
}

.form-footer-note i {
  color: var(--color-primary);
}

/* Success State */
.form-success {
  text-align: center;
  padding: var(--space-6) 0;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 50%;
  font-size: 2.5rem;
  color: white;
  animation: successPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes successPop {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.success-title {
  font-size: var(--text-2xl);
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
  font-weight: 700;
}

.success-message {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-5);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.form-success .form-actions {
  justify-content: center;
}

/* Loading State */
.btn.loading {
  pointer-events: none;
  opacity: 0.7;
  position: relative;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: var(--space-2);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
  background: rgba(255, 107, 157, 0.1);
  border: 1px solid #FF6B9D;
  color: #FF6B9D;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.error-message i {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.error-message span {
  flex: 1;
  font-size: var(--text-sm);
  font-weight: 500;
}

/* Form Field Errors */
.form-input.error,
.form-textarea.error {
  border-color: #FF6B9D;
  background: rgba(255, 107, 157, 0.05);
}

.form-input.error:focus,
.form-textarea.error:focus {
  border-color: #FF6B9D;
  box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.1);
}

.form-group.error {
  position: relative;
}

.form-group.error::after {
  content: 'Bitte wählen Sie mindestens eine Option';
  display: block;
  color: #FF6B9D;
  font-size: var(--text-xs);
  margin-top: var(--space-1);
  font-weight: 500;
}

/* =============================================
   CONTACT PAGE - CHANNEL CARDS
   ============================================= */

.contact-channel-card {
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-5);
  position: relative;
  border: none;
  width: 100%;
  font-family: inherit;
}

.contact-channel-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-alpha-40);
}

.contact-channel-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 50%;
  font-size: 2rem;
  color: white;
  margin-bottom: var(--space-3);
  transition: all var(--transition-base);
}

.contact-channel-card:hover .contact-channel-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 24px var(--primary-alpha-40);
}

.contact-channel-title {
  font-size: var(--text-xl);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
  font-weight: 700;
}

.contact-channel-text {
  font-size: var(--text-base);
  color: var(--color-primary);
  margin-bottom: var(--space-1);
  font-weight: 600;
}

.contact-channel-description {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin: 0;
}

/* Primary Contact Channel (Highlighted) */
.contact-channel-card-primary {
  background: var(--primary-alpha-05);
  border: 2px solid var(--primary-alpha-20);
}

.contact-channel-card-primary:hover {
  background: rgba(33, 150, 243, 0.08);
  border-color: var(--color-primary);
  box-shadow: 0 8px 32px var(--primary-alpha-30);
}

.contact-channel-card-primary .contact-channel-icon {
  box-shadow: 0 4px 20px var(--primary-alpha-50);
}

/* Contact Channels Grid Layout */
.contact-channels-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Featured Contact Channel (Full Width) */
.contact-channel-featured {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding: var(--space-6);
  gap: var(--space-5);
}

.contact-channel-featured .contact-channel-icon {
  flex-shrink: 0;
  margin-bottom: 0;
}

.contact-channel-featured .contact-channel-content {
  flex: 1;
}

.contact-channel-featured .contact-channel-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.contact-channel-featured .contact-channel-text {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.contact-channel-featured .contact-channel-description {
  font-size: var(--text-base);
}

.contact-channel-featured .contact-channel-arrow {
  flex-shrink: 0;
  font-size: 2rem;
  color: var(--color-primary);
  transition: transform var(--transition-base);
}

.contact-channel-featured:hover .contact-channel-arrow {
  transform: translateX(8px);
}

/* Secondary Channels Grid (2 columns) */
.contact-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

/* Mobile Responsive */
@media (max-width: 767px) {
  .contact-channel-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .contact-channel-title {
    font-size: var(--text-lg);
  }

  .contact-channel-featured {
    flex-direction: column;
    text-align: center;
    gap: var(--space-4);
  }

  .contact-channel-featured .contact-channel-icon {
    margin-bottom: var(--space-3);
  }

  .contact-channel-featured .contact-channel-title {
    font-size: var(--text-xl);
  }

  .contact-channel-featured .contact-channel-text {
    font-size: var(--text-base);
  }

  .contact-channel-featured .contact-channel-arrow {
    display: none;
  }

  .contact-secondary-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   PORTFOLIO HERO SLIDER
   =================================== */

.portfolio-slider-section {
  position: relative;
  width: 100%;
  min-height: 80vh;
  background: var(--color-bg-primary);
  overflow: hidden;
  border-top: 1px solid var(--primary-alpha-15);
  border-bottom: 1px solid var(--primary-alpha-15);
  box-shadow:
    inset 0 1px 0 var(--primary-alpha-10),
    inset 0 -1px 0 var(--primary-alpha-10);
}

/* Portfolio Header Overlay - positioned on top of slider */
.portfolio-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  padding-top: calc(80px + var(--space-4)); /* Header height + smaller spacing */
  padding-left: var(--space-6);
  pointer-events: none;
}

.portfolio-header-overlay > * {
  pointer-events: auto;
}

.portfolio-page-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-text-primary);
  margin: 0;
  margin-bottom: var(--space-3);
  position: relative;
  display: inline-block;
}

/* Underline effect for portfolio title */
.portfolio-page-title::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 120px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
  animation: slideInLeft 0.6s 0.4s ease both;
  box-shadow: 0 0 20px rgba(33, 150, 243, 0.6);
}

.portfolio-slider-container {
  position: relative;
  width: 100%;
  height: 80vh;
  max-width: 100%;
}

.portfolio-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Individual Slide */
.portfolio-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  z-index: 1;
}

.portfolio-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Slide Background */
.slide-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slide-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  animation: none;
}

.portfolio-slide.active .slide-bg-image {
  animation: zoomIn 8s ease-out forwards;
}

@keyframes zoomIn {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(10, 25, 47, 0.85) 0%,
    rgba(17, 34, 64, 0.75) 50%,
    var(--dark-alpha-90) 100%
  );
  z-index: 1;
}

/* Slide Content */
.slide-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  padding: var(--space-4);
}

.slide-content-inner {
  max-width: 900px;
  text-align: center;
  background: rgba(17, 34, 64, 0.4);
  backdrop-filter: blur(20px);
  border: 1px solid var(--primary-alpha-20);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s ease 0.3s;
}

.portfolio-slide.active .slide-content-inner {
  transform: translateY(0);
  opacity: 1;
}

.slide-number {
  display: inline-block;
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
  text-transform: uppercase;
}

.slide-title {
  font-size: var(--text-3xl);
  color: var(--color-text-primary);
  font-weight: 700;
  margin-bottom: var(--space-3);
  line-height: 1.2;
}

.slide-description {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-5);
  line-height: 1.6;
}

.slide-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

/* Navigation Controls */
.slider-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
  padding: 0 var(--space-4);
}

.slider-nav {
  position: absolute;
  width: 50px;
  height: 50px;
  background: rgba(17, 34, 64, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid var(--white-alpha-10);
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-base);
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
}

.slider-nav:hover {
  background: rgba(33, 150, 243, 0.12);
  border-color: var(--primary-alpha-30);
  color: var(--color-primary);
  transform: scale(1.05);
  opacity: 1;
  box-shadow: 0 0 15px var(--primary-alpha-30);
}

.slider-nav:active {
  transform: scale(0.95);
}

.slider-prev {
  left: 0;
}

.slider-next {
  right: 0;
}

/* Pagination Dots - Hidden */
.slider-pagination {
  display: none;
}

/* Progress Bar - More subtle */
.slider-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--white-alpha-05);
  z-index: 10;
}

.slider-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-alpha-30) 0%, rgba(33, 150, 243, 0.6) 100%);
  transition: width 0.3s ease;
  box-shadow: 0 0 5px var(--primary-alpha-40);
}

/* Thumbnail Preview - Always visible */
.slider-thumbnails {
  position: absolute;
  bottom: var(--space-5);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-3);
  z-index: 9;
  opacity: 1;
  pointer-events: auto;
  transition: opacity var(--transition-base);
}

.slider-thumbnail {
  width: 100px;
  height: 60px;
  position: relative;
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--white-alpha-10);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(17, 34, 64, 0.8);
  backdrop-filter: blur(10px);
  transform: scale(0.85);
  opacity: 0.6;
}

.slider-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: grayscale(70%);
}

.slider-thumbnail:hover {
  transform: scale(0.9) translateY(-3px);
  border-color: var(--primary-alpha-40);
  opacity: 0.85;
}

.slider-thumbnail:hover img {
  opacity: 0.7;
  filter: grayscale(30%);
}

.slider-thumbnail.active {
  border-color: var(--color-primary);
  box-shadow: 0 0 25px rgba(33, 150, 243, 0.6), 0 0 10px var(--primary-alpha-30);
  transform: scale(1);
  opacity: 1;
}

.slider-thumbnail.active img {
  opacity: 1;
  filter: grayscale(0%);
}

.thumbnail-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, var(--dark-alpha-90));
  color: white;
  font-size: 0.65rem;
  padding: 0.25rem;
  text-align: center;
  font-weight: 600;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.slider-thumbnail:hover .thumbnail-title {
  opacity: 1;
}

/* ===================================
   RESPONSIVE PORTFOLIO SLIDER
   =================================== */

@media (max-width: 1024px) {
  .portfolio-slider-container {
    height: 70vh;
  }

  .slide-content-inner {
    padding: var(--space-5);
  }

  .slider-nav {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .slider-thumbnails {
    display: none; /* Hide thumbnails on tablets */
  }
}

@media (max-width: 767px) {
  .portfolio-slider-section {
    min-height: 70vh;
  }

  .portfolio-slider-container {
    height: 70vh;
  }

  .slide-content {
    padding: var(--space-3);
  }

  .slide-content-inner {
    padding: var(--space-4);
    border-radius: var(--radius-lg);
  }

  .slide-title {
    font-size: var(--text-2xl);
  }

  .slide-description {
    font-size: var(--text-base);
  }

  .slider-controls {
    padding: 0 var(--space-2);
  }

  .slider-nav {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .slider-pagination {
    bottom: var(--space-3);
  }

  .slider-dot {
    width: 10px;
    height: 10px;
  }

  .slider-dot.active {
    width: 30px;
  }

  .slider-progress {
    height: 3px;
  }
}

@media (max-width: 480px) {
  .portfolio-slider-container {
    height: 65vh;
  }

  .slide-content-inner {
    padding: var(--space-3);
  }

  .slide-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
  }

  .slide-description {
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
  }

  .slider-nav {
    width: 40px;
    height: 40px;
    font-size: 0.875rem;
  }

  .slide-number {
    font-size: 0.75rem;
  }
}

/* ===================================
   PORTFOLIO PAGE SPECIFIC STYLES
   =================================== */

/* Hero for Subpages with Content (Services, About) */
.hero-subpage-with-content {
  min-height: 60vh !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-bottom: var(--space-8);
}

/* Content Block inside Hero */
.hero-content-block {
  margin-top: auto;
  width: 100%;
  position: relative;
  z-index: var(--z-base);
  text-align: center;
  padding: 0 var(--space-4);
}

@media (min-width: 768px) {
  .hero-subpage-with-content {
    min-height: 65vh !important;
  }
}

@media (min-width: 1024px) {
  .hero-subpage-with-content {
    min-height: 70vh !important;
  }

  .hero-content-block {
    padding: 0 var(--space-6);
  }
}

.hero-tagline {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--primary-alpha-20);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  margin-top: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px var(--primary-alpha-10);
}

/* Portfolio Introduction Section */
.portfolio-intro-section {
  background: var(--color-bg-primary);
  padding: var(--space-8) 0;
  text-align: center;
}

/* Generic Page Introduction Section (for Services, About, etc.) */
.page-intro-section {
  background: var(--color-bg-primary);
  padding: var(--space-8) 0;
  text-align: center;
}

.portfolio-section-label {
  margin: 0 auto var(--space-5);
}

.portfolio-intro-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.portfolio-intro-content p {
  margin: 0;
}

@media (max-width: 767px) {
  .portfolio-header-overlay {
    padding-top: calc(30px + var(--space-1));
    padding-left: var(--space-2);
  }

  .portfolio-page-title {
    font-size: var(--text-3xl);
  }

  .portfolio-intro-section,
  .page-intro-section {
    padding: var(--space-6) 0;
  }

  .portfolio-section-label {
    margin-bottom: var(--space-4);
  }

  .portfolio-intro-content {
    font-size: var(--text-base);
  }
}

/* ============================================
   About Page - "Was uns antreibt" Section
   ============================================ */

/* Wrapper Layout */
.about-drive-wrapper {
  position: relative;
  display: block;
}

@media (min-width: 768px) {
  .about-drive-wrapper {
    display: grid;
    grid-template-columns: 40% 1fr;
    gap: 0 clamp(2.5rem, 4vw, 3.5rem);
    grid-auto-rows: min-content;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .about-drive-wrapper {
    grid-template-columns: 38% 1fr;
    gap: 0 clamp(3rem, 5vw, 4rem);
    align-items: start;
  }
}

/* Image Wrapper */
.about-drive-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
              0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
  .about-drive-image-wrapper {
    grid-column: 1;
    grid-row: 1 / span 999;
    margin-bottom: 0;
    align-self: start;
  }
}

.about-drive-image-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.18),
              0 12px 32px rgba(0, 0, 0, 0.1);
}

/* Image Styling - Portrait (Hochformat) */
.about-drive-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  transition: transform 0.4s ease;
}

@media (min-width: 768px) {
  .about-drive-image {
    aspect-ratio: 3 / 4;
  }
}

.about-drive-image-wrapper:hover .about-drive-image {
  transform: scale(1.03);
}

/* Text Content */
.about-drive-wrapper .section-content-formatted {
  display: block;
}

/* Minimal reduzierte Abstände zwischen Paragraphen */
.about-drive-wrapper .section-content-formatted p {
  margin: 0 0 1rem 0 !important;
  line-height: 1.6 !important;
}

.about-drive-wrapper .section-content-formatted h2 {
  margin: 0 0 4rem 0 !important;
  line-height: 1.2 !important;
  padding: 0 !important;
  font-size: 1.5rem;
  align-self: start;
  height: auto;
}

.about-drive-wrapper .section-content-formatted ul {
  margin: 0 0 2rem 0 !important;
}

@media (min-width: 768px) {
  .about-drive-wrapper .section-content-formatted {
    display: contents;
  }

  /* Erste 5 Elemente neben dem Bild (inkl. ul) */
  .about-drive-wrapper .section-content-formatted > *:nth-child(1),
  .about-drive-wrapper .section-content-formatted > *:nth-child(2),
  .about-drive-wrapper .section-content-formatted > *:nth-child(3),
  .about-drive-wrapper .section-content-formatted > *:nth-child(4),
  .about-drive-wrapper .section-content-formatted > *:nth-child(5) {
    grid-column: 2;
    margin: 0 0 1rem 0 !important;
  }

  /* Alle weiteren Elemente über volle Breite */
  .about-drive-wrapper .section-content-formatted > *:nth-child(n+6) {
    grid-column: 1 / -1;
    margin: 0 0 1rem 0 !important;
  }

  /* Erstes Element unter dem Bild bekommt normalen Abstand */
  .about-drive-wrapper .section-content-formatted > *:nth-child(6) {
    margin-top: var(--space-3) !important;
  }

  /* Alle p, h2, ul innerhalb des Contents */
  .about-drive-wrapper .section-content-formatted p {
    margin: 0 0 1rem 0 !important;
  }

  .about-drive-wrapper .section-content-formatted ul {
    margin: 0 0 2rem 0 !important;
  }

  .about-drive-wrapper .section-content-formatted h2 {
    margin: 0 0 4rem 0 !important;
  }

  .about-drive-wrapper .section-content-formatted p {
    line-height: 1.6 !important;
  }

  .about-drive-wrapper .section-content-formatted h2 {
    line-height: 1.2 !important;
    font-size: 1.5rem;
    align-self: start;
    height: auto;
  }
}

/* ----- WHO WE ARE SECTION ----- */
.who-we-are-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-6);  /* 64px Whitespace zwischen Bild und Text */
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.who-we-are-image {
  max-width: 400px;
  width: 100%;
  border-radius: var(--radius-lg);  /* 16px rounded corners */
  box-shadow: var(--shadow-md);  /* 0 4px 20px rgba(0, 0, 0, 0.25) */
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.who-we-are-image:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);  /* Stärkerer Schatten bei Hover */
}

.who-we-are-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 600px;
  text-align: left;
}

.who-we-are-cta {
  margin-top: var(--space-7);  /* 96px */
  text-align: left;
}

/* Text Highlighting */
.highlight-brand {
  font-weight: 600;
  color: var(--color-primary);  /* #2196F3 */
  transition: color var(--transition-base);
}

.highlight-brand:hover {
  color: var(--color-accent);
}

.highlight-emphasis {
  font-weight: 600;
  color: var(--color-text-primary);  /* Bleibt hell, aber fett */
  transition: color var(--transition-base);
}

.highlight-emphasis:hover {
  color: var(--color-primary);
}

/* Gradient Text Effect */
.text-gradient-blue {
  color: var(--color-primary);  /* Einfarbig Adlegio-Blau */
  display: inline-block;
}

/* Mobile: Text oben, Bild unten */
@media (max-width: 768px) {
  .who-we-are-content {
    grid-template-columns: 1fr;
    gap: var(--space-5);  /* 48px gap auf mobil */
  }

  .who-we-are-text {
    order: 1;  /* Text zuerst */
    text-align: center;
  }

  .who-we-are-image-wrapper {
    order: 2;  /* Bild danach */
  }

  .who-we-are-image {
    max-width: 100%;
    margin: 0 auto;
  }

  /* Zeige team-home2.jpg auf Mobil, verstecke team-home.jpg */
  .who-we-are-image.desktop-only {
    display: none;
  }

  .who-we-are-image.mobile-only {
    display: block;
  }
}

/* Desktop: team-home.jpg sichtbar, team-home2.jpg versteckt */
@media (min-width: 769px) {
  .who-we-are-image.desktop-only {
    display: block;
  }

  .who-we-are-image.mobile-only {
    display: none;
  }
}

/* ----- PORTFOLIO INTRO SECTION ----- */
.portfolio-intro-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-6);  /* 64px Whitespace */
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.portfolio-intro-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 600px;
  text-align: left;
}

.portfolio-intro-image {
  max-width: 400px;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-lg);  /* 16px rounded corners */
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.portfolio-intro-image:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Mobile: Bild unter Text */
@media (max-width: 768px) {
  .portfolio-intro-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .portfolio-intro-text {
    text-align: center;
  }

  .portfolio-intro-image-wrapper {
    text-align: center;
  }

  .portfolio-intro-image {
    max-width: 100%;
  }
}
