/**
 * Take-Aw.ai Landing Page Design System
 * CSS für alle Block-Typen der Landing Page
 * 
 * Breakpoints:
 * - Mobile: < 640px (40rem)
 * - Tablet: 640px - 1024px (40rem - 64rem)
 * - Desktop: > 1024px (64rem)
 */

:root {
  /* Brand Colors */
  --color-brilliant-rose: #DE58A2;
  --color-cerise: #E92960;
  --color-murrey: #931961;
  --color-palatinate-blue: #393BDF;
  --color-resolution-blue: #19277D;
  --color-penn-blue: #040742;
  --color-white: #FCFFFA;
  --color-salmon: #EA7873;
  --color-gray: #e9e9e9;
  --color-lime-green: #47D035;
  
  /* Semantic Colors */
  --color-primary: var(--color-palatinate-blue);
  --color-primary-dark: var(--color-resolution-blue);
  --color-secondary: var(--color-cerise);
  --color-secondary-dark: var(--color-murrey);
  --color-accent: var(--color-brilliant-rose);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-palatinate-blue) 0%, var(--color-brilliant-rose) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--color-cerise) 0%, var(--color-brilliant-rose) 100%);
  --gradient-hero: linear-gradient(135deg, var(--color-palatinate-blue) 0%, var(--color-brilliant-rose) 50%, var(--color-salmon) 100%);
  --gradient-dark: linear-gradient(180deg, var(--color-penn-blue) 0%, var(--color-resolution-blue) 100%);
  
  /* Typography */
  --font-heading: 'Pangea', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Pangea', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Spacing - Mobile First */
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
  
  /* Container */
  --container-max-width: 64rem;
  --container-padding: 1rem;
  
  /* Transitions */
  --transition-base: 0.3s ease;
}

/* Tablet: ab 640px */
@media (min-width: 40rem) {
  :root {
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    --container-padding: 1.5rem;
  }
}

/* Desktop: ab 1024px */
@media (min-width: 64rem) {
  :root {
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --container-padding: 2rem;
  }
}

/* Base Styles */
.landing-page {
  width: 100%;
}

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

/* Block Base */
.block {
  padding: var(--spacing-lg) 0;
  position: relative;
}

/* ===========================================
   Unified Block Background System
   =========================================== */

/* Container-width backgrounds */
.block-bg-white {
  background: var(--color-white);
}

.block-bg-palatinate {
  background: var(--color-palatinate-blue);
  color: white;
}

.block-bg-palatinate .block-headline,
.block-bg-palatinate .block-intro,
.block-bg-palatinate .step-number,
.block-bg-palatinate .step-text {
  color: white;
}

/* Full-width light grey background (e.g., contact form) */
.block-bg-light-grey-flow {
  background: #f8f9fa;
  margin: 0 calc(-50vw + 50%);
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* On landing pages, blocks don't need the 100vw trick since they're already full-width */
.landing-page .block-bg-light-grey-flow {
  width: 100%;
  max-width: none;
  margin: 0;
  left: auto;
  right: auto;
}

/* Full-width backgrounds 
   Note: Using 100vw can cause horizontal scroll due to scrollbar width.
   The overflow-x: hidden on html/body handles this.
   On landing pages, blocks are already full-width. */
.block-bg-branded-gradient,
.block-bg-dark,
.block-bg-light-grey {
  margin: 0 calc(-50vw + 50%);
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* On landing pages, blocks don't need the 100vw trick since they're already full-width */
.landing-page .block-bg-branded-gradient,
.landing-page .block-bg-dark,
.landing-page .block-bg-light-grey {
  width: 100%;
  max-width: none;
  margin: 0;
  left: auto;
  right: auto;
}

.block-bg-dark {
  background: var(--color-penn-blue);
  color: white;
}

.block-bg-dark .block-headline,
.block-bg-dark .block-intro {
  color: white;
}

.block-bg-light-grey {
  background: #f8f9fa;
}

.block-bg-branded-gradient {
  background-image: url('../bg.png');
  background-size: cover;
  animation: moveBackground 20s both infinite;
  color: white;
}

.block-bg-branded-gradient .block-headline,
.block-bg-branded-gradient .block-intro,
.block-bg-branded-gradient .block-subline,
.block-bg-branded-gradient .step-number,
.block-bg-branded-gradient .step-text,
.block-bg-branded-gradient .feature-title,
.block-bg-branded-gradient .feature-description,
.block-bg-branded-gradient .cta-headline,
.block-bg-branded-gradient .cta-subline,
.block-bg-branded-gradient .social-proof-statement,
.block-bg-branded-gradient .social-proof-name,
.block-bg-branded-gradient .social-proof-details {
  color: white;
}

.block-bg-branded-gradient::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.8;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}

/* Reduced Motion: Disable animation */
@media (prefers-reduced-motion: reduce) {
  .block-bg-branded-gradient {
    animation: none;
    background-size: cover;
    background-position: center;
  }
}

.block-headline {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: #1a1a1a;
}

/* Tablet: ab 640px */
@media (min-width: 40rem) {
  .block-headline {
    font-size: 2rem;
  }
}

/* Desktop: ab 1024px */
@media (min-width: 64rem) {
  .block-headline {
    font-size: 2.5rem;
  }
}

.block-intro {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: var(--spacing-md);
}

/* Tablet: ab 640px */
@media (min-width: 40rem) {
  .block-intro {
    font-size: 1.125rem;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233, 41, 96, 0.4);
}

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

.btn-secondary:hover {
  background: var(--color-palatinate-blue);
  color: var(--color-white);
}

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

/* Hero Block */
.block-hero {
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: var(--spacing-xl) 0;
  /* Mobile: min-height based, no fixed aspect ratio */
  min-height: 80vh;
}

/* Desktop: 16:9 aspect ratio */
@media (min-width: 64rem) {
  .block-hero {
    min-height: 0;
    aspect-ratio: 16 / 9;
    max-height: 90vh;
  }
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-background-gradient {
  background: var(--gradient-hero);
}

/* Desktop-only video background (Progressive Enhancement) */
.hero-video-desktop {
  display: none;
}

@media (min-width: 64rem) {
  /* Hide gradient background and noise overlay when video is active */
  .block-hero.block-bg-branded-gradient {
    background-image: none;
    animation: none;
  }
  
  .block-hero.block-bg-branded-gradient::before {
    display: none;
  }
  
  .hero-video-desktop {
    display: block;
  }
  
  .hero-video-desktop video {
    opacity: 1 !important;
  }
  
  /* Feedback hero: keep video semi-transparent so gradient overlay shows through */
  .block-hero--feedback .hero-video-desktop video {
    opacity: 0.3 !important;
  }
}

/* Reduced Motion: Hide video, show gradient fallback */
@media (prefers-reduced-motion: reduce) {
  .hero-video-desktop,
  .hero-video-feedback-mobile {
    display: none !important;
  }
  
  .hero-overlay-grained {
    animation: none;
    background-size: 100% 100%;
    background-position: center;
  }
  
  .block-hero.block-bg-branded-gradient {
    background-image: url('../bg.png');
  }
  
  .block-hero.block-bg-branded-gradient::before {
    display: block;
  }
}

/* ===========================================
   Hero Mobile Slideshow (Non-Desktop)
   24 Frames with Crossfade Animation
   =========================================== */

.hero-slideshow-mobile {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

/* Hero Slideshow: Two images for crossfade */
.hero-slideshow-mobile .hero-seq {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease-out;
}

/* Base state: First image visible, second hidden */
.hero-slideshow-mobile .hero-seq-a {
  opacity: 1;
  z-index: 2;
}

.hero-slideshow-mobile .hero-seq-b {
  opacity: 0;
  z-index: 1;
}

/* JS-enhanced state: Toggle active class */
.hero-slideshow-mobile.is-enhanced .hero-seq-a {
  opacity: 0;
}

.hero-slideshow-mobile.is-enhanced .hero-seq-a.is-active {
  opacity: 1;
}

.hero-slideshow-mobile.is-enhanced .hero-seq-b {
  opacity: 0;
}

.hero-slideshow-mobile.is-enhanced .hero-seq-b.is-active {
  opacity: 1;
}

/* Hide on Desktop (video takes over) */
@media (min-width: 64rem) {
  .hero-slideshow-mobile {
    display: none;
  }
}

/* Reduced Motion: Show only first image, no transitions */
@media (prefers-reduced-motion: reduce) {
  .hero-slideshow-mobile .hero-seq {
    transition: none;
  }
  
  .hero-slideshow-mobile .hero-seq-b {
    display: none;
  }
}

/* ===========================================
   Branded Gradient Background Animation
   =========================================== */
   
@keyframes moveBackground {
  0% {
    background-size: 100% 100%;
    background-position: 0% 0%;
  }
  10% {
    background-size: 120% 120%;
  }
  20% {
    background-size: 190% 140%;
  }
  30% {
    background-size: 130% 110%;
    background-position: 10% 10%;
  }
  40% {
    background-size: 150% 120%;
  }
  50% {
    background-size: 180% 100%;
  }
  60% {
    background-size: 220% 120%;
    background-position: 50% 10%;
  }
  70% {
    background-size: 200% 140%;
  }
  80% {
    background-size: 180% 160%;
    background-position: 20% 30%;
  }
  90% {
    background-size: 160% 140%;
  }
  100% {
    background-size: 100% 100%;
    background-position: 0% 0%;
  }
}

.hero-background-image {
  background-size: cover;
  background-position: center;
  opacity: 0.1;
}

.hero-background-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

/* Feedback hero: bg.png as base, video with opacity so background shows through */
.block-hero--feedback .hero-background-feedback {
  background-size: cover;
  background-position: center;
  opacity: 1;
}

.block-hero--feedback .hero-video-desktop video,
.block-hero--feedback .hero-video-feedback-mobile video {
  opacity: 0.3;
}

.hero-video-feedback-mobile {
  display: none;
}

@media (max-width: 63.99rem) {
  .block-hero--feedback .hero-video-desktop {
    display: none;
  }
  .block-hero--feedback .hero-video-feedback-mobile {
    display: block;
  }
  .block-hero--feedback .hero-slideshow-mobile--hidden {
    display: none !important;
  }
}

@media (min-width: 64rem) {
  .block-hero--feedback .hero-video-feedback-mobile {
    display: none;
  }
}

/* Grained gradient overlay for feedback hero – above block ::before so animation is visible */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-overlay-grained {
  background: linear-gradient(
    180deg,
    rgba(4, 7, 66, 0.75) 0%,
    rgba(25, 39, 125, 0.5) 30%,
    rgba(57, 59, 223, 0.35) 60%,
    transparent 100%
  );
  background-size: 100% 100%;
  background-position: 0% 0%;
  animation: moveBackground 20s both infinite;
}

.hero-overlay-grained::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)'/%3E%3C/svg%3E");
  opacity: 0.12;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
}

/* Hero text colors */
.block-hero,
.branded-gradient {
  color: #FCFFFA;
}

.block-hero h1,
.block-hero h2,
.block-hero h3,
.block-hero p,
.branded-gradient h1,
.branded-gradient h2,
.branded-gradient h3,
.branded-gradient p {
  color: inherit;
}

.block-hero .hero-headline,
.branded-gradient .hero-headline {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
  color: #FCFFFA !important;
}

/* Tablet: ab 640px */
@media (min-width: 40rem) {
  .hero-headline {
    font-size: 2.5rem;
  }
}

/* Desktop: ab 1024px */
@media (min-width: 64rem) {
  .hero-headline {
    font-size: 3.5rem;
  }
}

.block-hero .hero-subline,
.branded-gradient .hero-subline {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: #FCFFFA !important;
}

/* Tablet: ab 640px */
@media (min-width: 40rem) {
  .hero-subline {
    font-size: 1.25rem;
  }
}

/* Desktop: ab 1024px */
@media (min-width: 64rem) {
  .hero-subline {
    font-size: 1.5rem;
  }
}

.block-hero .hero-intro,
.branded-gradient .hero-intro {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
  color: rgba(252, 255, 250, 0.85) !important;
}

/* Tablet: ab 640px */
@media (min-width: 40rem) {
  .hero-intro {
    font-size: 1.125rem;
  }
}

/* Desktop: ab 1024px - Hero Intro nur 66% Breite */
@media (min-width: 64rem) {
  .block-hero .hero-intro,
  .branded-gradient .hero-intro {
    max-width: 66%;
  }
}

.hero-ctas {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

/* Problem Block */
.block-problem {
  background: var(--color-white);
  padding: var(--spacing-xl) 0;
}

.problem-headline {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: var(--spacing-lg);
}

/* Desktop: ab 1024px */
@media (min-width: 64rem) {
  .problem-headline {
    font-size: 2.75rem;
  }
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  align-items: stretch;
}

/* Tablet: ab 640px */
@media (min-width: 40rem) {
  .problem-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
  }
}

/* Left Column: Reality Check */
.problem-reality-check {
  background: #f8f9fa;
  border-radius: 0.75rem;
  padding: var(--spacing-md);
}

.reality-check-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.reality-check-icon {
  font-size: 1.25rem;
}

.painpoints-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}

.painpoint-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  padding: 0;
}

.painpoint-item:last-child {
  margin-bottom: 0;
}

.painpoint-number {
  font-size: 0.85rem;
  font-weight: 600;
  color: #999;
  flex-shrink: 0;
  min-width: 1.5rem;
}

.painpoint-text {
  flex: 1;
  line-height: 1.35;
  font-size: 0.95rem;
  color: #333;
  font-weight: 500;
}

/* Right Column: Solution with branded gradient */
.problem-solution.branded-gradient-box {
  background-image: url('../bg.png');
  background-size: cover;
  animation: moveBackground 20s both infinite;
  border-radius: 0.75rem;
  padding: var(--spacing-md);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.problem-solution.branded-gradient-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.8;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}

.problem-solution .solution-title,
.problem-solution .solution-text {
  position: relative;
  z-index: 2;
}

.solution-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.solution-icon {
  font-size: 1.25rem;
}

.solutions-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 2;
}

.solution-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  padding: 0;
}

.solution-item:last-child {
  margin-bottom: 0;
}

.solution-number {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
  min-width: 1.5rem;
}

.solution-item-text {
  flex: 1;
  line-height: 1.35;
  font-size: 0.95rem;
  color: rgba(252, 255, 250, 0.95);
  font-weight: 500;
}

/* Reduced Motion: Disable animation */
@media (prefers-reduced-motion: reduce) {
  .problem-solution.branded-gradient-box {
    animation: none;
    background-size: cover;
    background-position: center;
  }
}

/* Process Steps Block */
.block-process-steps {
  padding: var(--spacing-xl) 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

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

.step-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
}

.step-illustration {
  margin: var(--spacing-md) 0;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.step-illustration picture {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
}

.step-illustration img {
  max-width: 200px;
  max-height: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.step-text {
  line-height: 1.6;
}

/* Logo Cloud Block - Infinite Scroll Marquee */
.block-logo-cloud {
  padding: var(--spacing-lg) 0;
  background: #f8f9fa;
  overflow: hidden;
}

.block-logo-cloud .block-headline {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

/* Marquee Container - Full Width */
.logo-marquee {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
}

/* Marquee Track - Holds duplicated content */
.logo-marquee-track {
  display: flex;
  width: max-content;
  /* Animation controlled by JavaScript for interactive scrolling */
}

/* Content wrapper - inline flex for seamless loop */
.logo-marquee-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  padding: 0 calc(var(--spacing-xl) / 2);
}

/* Individual logo item */
.logo-item {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-md);
  background: white;
  border-radius: 0.5rem;
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.logo-item:hover {
  transform: scale(1.05);
}

.logo-item a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-item img {
  width: auto;
  max-height: 50px !important;
  height: auto !important;
  max-width: 150px;
  object-fit: contain !important;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all var(--transition-base);
}

.block-logo-style-colored .logo-item img {
  filter: none;
  opacity: 1;
}

.logo-item:hover img {
  filter: none;
  opacity: 1;
}

/* Interactive marquee cursor hint */
.logo-marquee {
  cursor: crosshair;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track {
    animation: none;
  }
  
  .logo-marquee {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }
  
  .logo-marquee-content[aria-hidden="true"] {
    display: none;
  }
}

/* Social Proof Block */
.block-social-proof {
  padding: var(--spacing-lg) 0;
  overflow: hidden;
}

/* Mobile: Grid Layout (default) */
.social-proof-mobile {
  display: block;
}

.social-proof-marquee {
  display: none;
}

.social-proof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
  max-width: 100%;
}

.social-proof-item {
  text-align: center;
  padding: var(--spacing-md);
  max-width: 100%;
  overflow: hidden;
}

.social-proof-statement {
  font-size: 1.125rem;
  line-height: 1.5;
  margin-bottom: var(--spacing-md);
  font-style: italic;
  color: #333;
  word-break: break-word;
}

.block-bg-palatinate .social-proof-statement,
.block-bg-dark .social-proof-statement {
  color: rgba(252, 255, 250, 0.9);
}

.social-proof-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
}

.social-proof-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.social-proof-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-proof-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
}

.social-proof-name {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
}

.block-bg-palatinate .social-proof-name,
.block-bg-dark .social-proof-name {
  color: var(--color-white);
}

.social-proof-details {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.3;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.block-bg-palatinate .social-proof-details,
.block-bg-dark .social-proof-details {
  color: rgba(252, 255, 250, 0.7);
}

/* Tablet: ab 640px - 2 Spalten */
@media (min-width: 40rem) {
  .social-proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop: ab 1024px - Interactive Marquee (wie Logo Cloud) */
@media (min-width: 64rem) {
  /* Mobile-Grid verstecken, Marquee zeigen */
  .social-proof-mobile {
    display: none;
  }
  
  .social-proof-marquee {
    display: block;
    width: 100%;
    overflow: hidden;
    cursor: grab;
    user-select: none;
  }
  
  .social-proof-track {
    display: flex;
    width: max-content;
  }
  
  .social-proof-content {
    display: flex;
    align-items: stretch;
    gap: var(--spacing-lg);
    padding: 0 calc(var(--spacing-lg) / 2);
  }
  
  .social-proof-marquee .social-proof-item {
    flex: 0 0 auto;
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    padding: var(--spacing-md);
    text-align: center;
  }
  
  .social-proof-marquee .social-proof-statement {
    font-size: 1.25rem;
    min-height: 4.5rem;
  }
}


/* Testimonial Slider Block */
.block-testimonial-slider {
  padding: var(--spacing-xl) 0;
}

.block-testimonial-slider .block-headline {
  text-align: center;
}

.testimonials-slider {
  margin-top: var(--spacing-lg);
}

/* Base State: Ohne JavaScript - Testimonials gestapelt */
.testimonials-track {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.testimonial-item {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-lg);
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto var(--spacing-md);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-quote {
  font-size: 1.25rem;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: var(--spacing-md);
  color: #333;
}

.testimonial-author {
  margin-top: var(--spacing-md);
}

.testimonial-name {
  display: block;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.testimonial-meta {
  color: #666;
  font-size: 0.9rem;
}

/* Dots Navigation - Hidden by default (shown when JS activates) */
.testimonials-dots {
  display: none;
  justify-content: center;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-md);
  padding: var(--spacing-sm) 0;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-base);
}

.testimonial-dot:hover,
.testimonial-dot:focus {
  background: var(--color-primary);
  transform: scale(1.2);
  outline: none;
}

.testimonial-dot[aria-selected="true"] {
  background: var(--color-primary);
}

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

/* Enhanced State: Mit JavaScript - Slider ohne Peek-Effekt */
.testimonials-slider.is-slider-active {
  overflow: hidden;
  position: relative;
}

.testimonials-slider.is-slider-active .testimonials-track {
  display: flex;
  flex-direction: row;
  gap: 0;
  transition: transform 0.4s ease-out;
  transform: translateX(calc(var(--translate-x, 0) * 1px));
  will-change: transform;
}

.testimonials-slider.is-slider-active .testimonial-item {
  flex: 0 0 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: var(--spacing-lg);
  box-sizing: border-box;
}

/* Pfeile Navigation (nur Desktop) */
.testimonial-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  background: white;
  color: var(--color-primary);
  cursor: pointer;
  display: none; /* Hidden by default, shown with JS on desktop */
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  padding: 0;
}

.testimonial-arrow:hover,
.testimonial-arrow:focus {
  background: var(--color-primary);
  color: white;
  transform: translateY(-50%) scale(1.1);
  outline: none;
}

.testimonial-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.testimonial-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.testimonial-arrow-prev {
  left: var(--spacing-md);
}

.testimonial-arrow-next {
  right: var(--spacing-md);
}

/* Pfeile nur auf Desktop sichtbar */
@media (min-width: 769px) {
  .testimonials-slider.is-slider-active .testimonial-arrow {
    display: flex;
  }
  
  /* Platz für die Pfeile schaffen */
  .testimonials-slider.is-slider-active .testimonial-item {
    padding-left: 7rem;
    padding-right: 7rem;
  }
}

/* Dots sichtbar wenn Slider aktiv */
.testimonials-slider.is-slider-active .testimonials-dots {
  display: flex;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .testimonials-slider.is-slider-active .testimonials-track {
    transition: none;
  }
}

/* Touch Action für Swipe - nur vertikales Scrollen durch Browser, horizontal durch JS */
.testimonials-slider.is-slider-active .testimonials-track {
  touch-action: pan-y;
}

/* ===========================================
   Video Gallery Block - Dark Theme
   =========================================== */

.block-video-gallery {
  padding: var(--spacing-xl) 0;
}

.block-video-gallery .container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.block-video-gallery .block-headline {
  color: var(--color-white);
}

.video-gallery {
  margin-top: var(--spacing-lg);
}

/* --- Base State: Ohne JavaScript - Alle Videos gestapelt sichtbar --- */

.video-gallery-main {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.video-gallery-panel {
  background: var(--color-resolution-blue);
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Video Player Wrapper - 16:9 Aspect Ratio */
.video-player-wrapper {
  position: relative;
  background: var(--color-penn-blue);
}

.video-player,
.video-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}

.video-player video,
.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Lazy Load Placeholder für YouTube/Vimeo */
.video-embed-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: var(--color-penn-blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-embed-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.video-embed-placeholder:hover img,
.video-embed-placeholder:focus img {
  transform: scale(1.02);
  filter: brightness(0.85);
}

.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.video-embed-placeholder:hover .video-play-button,
.video-embed-placeholder:focus .video-play-button {
  transform: translate(-50%, -50%) scale(1.1);
}

.video-play-button-bg {
  transition: fill 0.2s ease;
  fill: var(--color-brilliant-rose);
}

.video-embed-placeholder:hover .video-play-button-bg {
  fill: var(--color-cerise);
}

/* Video Info */
.video-info {
  padding: var(--spacing-md);
  background: var(--color-resolution-blue);
}

.video-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-white);
  margin: 0 0 var(--spacing-xs);
}

.video-description {
  color: rgba(252, 255, 250, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}

.video-description p:last-child {
  margin-bottom: 0;
}

/* --- Thumbnail Navigation (Base State: Gestapelt) --- */

.video-gallery-thumbnails {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.video-thumbnail {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  background: var(--color-resolution-blue);
  border: 2px solid transparent;
  border-radius: 0.5rem;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-base);
  position: relative;
}

.video-thumbnail:hover {
  background: rgba(57, 59, 223, 0.4);
  border-color: var(--color-palatinate-blue);
}

.video-thumbnail.is-active {
  border-color: var(--color-brilliant-rose);
  background: rgba(222, 88, 162, 0.15);
}

.video-thumbnail img {
  width: 120px;
  height: 68px;
  object-fit: cover;
  border-radius: 0.25rem;
  flex-shrink: 0;
}

.video-thumbnail-placeholder {
  width: 120px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-penn-blue);
  border-radius: 0.25rem;
  color: var(--color-resolution-blue);
  flex-shrink: 0;
}

.video-thumbnail-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(252, 255, 250, 0.8);
  flex: 1;
  line-height: 1.3;
}

.video-thumbnail-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  transition: background-color var(--transition-base);
}

/* Thumbnail States */
.video-thumbnail:focus {
  outline: none;
  border-color: var(--color-palatinate-blue);
  box-shadow: 0 0 0 2px rgba(57, 59, 223, 0.4);
}

.video-thumbnail.is-active .video-thumbnail-title {
  color: var(--color-white);
}

.video-thumbnail.is-active .video-thumbnail-indicator {
  background: var(--color-brilliant-rose);
}

/* --- Enhanced State: Mit JavaScript - Tab-Navigation --- */

.video-gallery.is-gallery-active .video-gallery-main {
  display: block;
}

.video-gallery.is-gallery-active .video-gallery-panel {
  display: none;
}

.video-gallery.is-gallery-active .video-gallery-panel.is-active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* Enhanced: Horizontale Thumbnail-Leiste */
.video-gallery.is-gallery-active .video-gallery-thumbnails {
  flex-direction: row;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-brilliant-rose) var(--color-resolution-blue);
  padding-bottom: var(--spacing-xs);
}

.video-gallery.is-gallery-active .video-gallery-thumbnails::-webkit-scrollbar {
  height: 6px;
}

.video-gallery.is-gallery-active .video-gallery-thumbnails::-webkit-scrollbar-track {
  background: var(--color-resolution-blue);
  border-radius: 3px;
}

.video-gallery.is-gallery-active .video-gallery-thumbnails::-webkit-scrollbar-thumb {
  background: var(--color-brilliant-rose);
  border-radius: 3px;
}

.video-gallery.is-gallery-active .video-thumbnail {
  flex-direction: column;
  flex: 0 0 auto;
  width: 160px;
  scroll-snap-align: start;
  padding: var(--spacing-xs);
}

.video-gallery.is-gallery-active .video-thumbnail img {
  width: 100%;
  height: 90px;
}

.video-gallery.is-gallery-active .video-thumbnail-placeholder {
  width: 100%;
  height: 90px;
}

.video-gallery.is-gallery-active .video-thumbnail-title {
  font-size: 0.8rem;
  text-align: center;
  margin-top: var(--spacing-xs);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .video-gallery.is-gallery-active .video-gallery-panel.is-active {
    animation: none;
  }
  
  .video-embed-placeholder img,
  .video-play-button {
    transition: none;
  }
}

/* Responsive: Größere Thumbnails auf Desktop */
@media (min-width: 768px) {
  .video-gallery.is-gallery-active .video-thumbnail {
    width: 200px;
  }
  
  .video-gallery.is-gallery-active .video-thumbnail img,
  .video-gallery.is-gallery-active .video-thumbnail-placeholder {
    height: 112px;
  }
  
  .video-info {
    padding: var(--spacing-md) var(--spacing-lg);
  }
  
  .video-title {
    font-size: 1.5rem;
  }
}

/* USP List Block */
.block-usp-list {
  padding: var(--spacing-xl) 0;
}

.usp-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.usp-text {
  order: 1;
}

.usp-visual {
  order: 2;
}

.usp-visual img {
  border-radius: 0.5rem;
}

.features-list {
  list-style: none;
  margin-top: var(--spacing-md);
}

.feature-item {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  align-items: flex-start;
}

.feature-icon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 2;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.feature-description {
  line-height: 1.6;
  opacity: 0.9;
}

/* Use Cases Block - Three Column Layout */
.block-use-cases {
  padding: var(--spacing-xl) 0;
  background: white;
}

.block-use-cases .block-headline {
  text-align: center;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

/* Tablet: 2 columns */
@media (min-width: 40rem) {
  .use-cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .use-cases-col-faq {
    grid-column: span 2;
  }
}

/* Desktop: 3 columns */
@media (min-width: 64rem) {
  .use-cases-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .use-cases-col-faq {
    grid-column: auto;
  }
}

.use-cases-column {
  background: white;
  border-radius: 0.75rem;
  padding: var(--spacing-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.use-cases-column-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--color-primary);
}

.use-cases-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.use-cases-list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  padding: var(--spacing-xs) 0;
}

.use-cases-list-item:last-child {
  margin-bottom: 0;
}

.use-cases-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  line-height: 1.4;
}

.use-cases-text {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #333;
}

/* Plain list without icons */
.use-cases-list-plain .use-cases-list-item {
  padding-left: 0;
}

.use-cases-list-plain .use-cases-list-item::before {
  content: "•";
  color: var(--color-primary);
  font-weight: bold;
  margin-right: var(--spacing-xs);
}

/* FAQ Column Styles */
.use-cases-faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.use-cases-faq-item {
  margin-bottom: var(--spacing-sm);
  border-bottom: 1px solid #eee;
  padding-bottom: var(--spacing-sm);
}

.use-cases-faq-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.use-cases-faq-details {
  width: 100%;
}

.use-cases-faq-question {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  padding: var(--spacing-xs) 0;
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-xs);
}

.use-cases-faq-question::-webkit-details-marker {
  display: none;
}

.use-cases-faq-question::before {
  content: "+";
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  flex-shrink: 0;
  width: 1rem;
  text-align: center;
  transition: transform 0.2s ease;
}

.use-cases-faq-details[open] .use-cases-faq-question::before {
  content: "−";
}

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

.use-cases-faq-answer {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #666;
  padding: var(--spacing-xs) 0 var(--spacing-xs) 1.5rem;
}

.use-cases-faq-answer p {
  margin: 0;
}

.use-cases-faq-link {
  display: inline-block;
  margin-top: var(--spacing-md);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

.use-cases-faq-link:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

.use-cases-cta {
  text-align: center;
  margin-top: var(--spacing-lg);
}

/* CTA Banner Block */
.block-cta-banner {
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-headline {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.cta-subline {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  opacity: 0.9;
}

/* Contact Form Block */
.block-contact-form {
  padding: var(--spacing-xl) 0;
}

.contact-form {
  max-width: 600px;
  margin: var(--spacing-lg) auto 0;
}

.form-field {
  margin-bottom: var(--spacing-md);
}

.form-field label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: #333;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition-base);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-success {
  padding: var(--spacing-md);
  background: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 0.5rem;
  color: #155724;
  text-align: center;
}

/* FAQ Page */
.faq-page {
  padding: var(--spacing-xl) 0;
}

.page-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.page-intro {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: var(--spacing-lg);
}

.faqs-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: var(--spacing-sm);
  border: 1px solid #e0e0e0;
  border-radius: 0.5rem;
  overflow: hidden;
}

.faq-question {
  padding: var(--spacing-md);
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
  background: #f8f9fa;
  list-style: none;
}

.faq-question:hover {
  background: #e9ecef;
}

.faq-answer {
  padding: var(--spacing-md);
  line-height: 1.6;
  color: #666;
}

/* ===========================================
   RESPONSIVE LAYOUTS (Mobile First)
   =========================================== */

/* Mobile: Default (< 640px) */
.steps-grid {
  grid-template-columns: 1fr;
}

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

.usp-visual {
  order: 1;
}

.usp-text {
  order: 2;
}

.hero-ctas {
  flex-direction: column;
  gap: var(--spacing-sm);
}

.hero-ctas .btn {
  width: 100%;
  text-align: center;
}

/* Tablet: ab 640px */
@media (min-width: 40rem) {
  .hero-ctas {
    flex-direction: row;
  }

  .hero-ctas .btn {
    width: auto;
  }
}

/* Tablet: ab 640px - steps-grid 3-spaltig */
@media (min-width: 40rem) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop: ab 1024px */
@media (min-width: 64rem) {
  .usp-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
  }

  .usp-visual {
    order: unset;
  }

  .usp-text {
    order: unset;
  }
}

/* ==========================================================================
   CONTACT FORM BLOCK
   ========================================================================== */

.block-contact-form {
  padding: var(--spacing-xl) 0;
}

.block-contact-form .block-headline {
  text-align: center;
  margin-bottom: var(--spacing-sm);
}

.block-contact-form .block-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--spacing-lg);
  color: var(--color-text-muted);
}

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

.contact-form {
  display: flex;
  flex-direction: column;
}

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

/* Form fields always stacked vertically - no side-by-side on desktop */

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-text);
}

.form-field .required {
  color: var(--color-primary);
}

.form-field .optional {
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid var(--color-border, #e2e8f0);
  border-radius: 0.5rem;
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb, 233, 75, 113), 0.15);
}

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

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

/* Error States */
.form-field.has-error input,
.form-field.has-error textarea {
  border-color: #dc2626;
}

.form-field.has-error input:focus,
.form-field.has-error textarea:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.field-error {
  font-size: 0.8125rem;
  color: #dc2626;
}

.field-error:empty {
  display: none;
}

.form-error {
  padding: 1rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.5rem;
  color: #dc2626;
  font-size: 0.9375rem;
}

/* Success State */
.form-success {
  text-align: center;
  padding: var(--spacing-lg);
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-radius: 1rem;
  animation: fadeIn 0.3s ease;
}

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

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--spacing-md);
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

.success-content {
  color: #065f46;
}

.success-content p {
  margin: 0;
  font-size: 1.125rem;
}

/* Submit Button */
.form-actions {
  margin-top: 1.5rem;
}

.btn-submit {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

@media (min-width: 40rem) {
  .btn-submit {
    width: auto;
  }
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-loading .spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

