/* === CUSTOM CURSOR === */
body {
  cursor: none;
}

a, button, input, textarea, select {
  cursor: none;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  mix-blend-mode: difference;
  will-change: transform;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: #ffffff;
  margin-left: -4px;
  margin-top: -4px;
  transition: width 0.25s ease, height 0.25s ease, margin 0.25s ease;
}

.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1.5px solid #ffffff;
  margin-left: -16px;
  margin-top: -16px;
  opacity: 0.7;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              height 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              margin 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease,
              border-color 0.3s ease;
}

.cursor-ring.is-hovering {
  width: 52px;
  height: 52px;
  margin-left: -26px;
  margin-top: -26px;
  opacity: 1;
}

.cursor-dot.is-hovering {
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  margin-top: -2.5px;
}

@media (hover: none), (pointer: coarse) {
  body, a, button, input, textarea, select {
    cursor: auto;
  }
  .cursor-dot, .cursor-ring {
    display: none;
  }
}

/* === HERO-SEKTION SEO === */
.hero-seo {
  background-color: #2e2e2e;
  background-image: 
    linear-gradient(rgba(46, 46, 46, 0.5), rgba(46, 46, 46, 0.5)),
    url('/img-test/waves.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #e9e9e9;
  padding: 120px 24px 96px;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
  box-sizing: border-box;
}

.hero-seo *,
.hero-seo *::before,
.hero-seo *::after {
  box-sizing: border-box;
}

.hero-seo__container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-seo__headline {
  font-size: clamp(2.25rem, 7.5vw, 4.25rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: #e9e9e9;
  text-wrap: balance;
}

.hero-seo__subline {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 400;
  line-height: 1.55;
  color: #e9e9e9;
  margin: 0 auto 44px;
  max-width: 720px;
  text-wrap: balance;
}

.hero-seo__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: #2a9d8f;
  color: #ffffff;
  text-decoration: none;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 18px 36px;
  border-radius: 10px;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(42, 157, 143, 0.25);
}

.hero-seo__cta:hover,
.hero-seo__cta:focus-visible {
  background-color: #228478;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(42, 157, 143, 0.35);
  outline: none;
}

.hero-seo__cta:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.hero-seo__cta-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.hero-seo__trust {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  padding: 8px 14px;
}

.hero-seo__trust-logo {
  height: 22px;
  width: auto;
  display: block;
}

.hero-seo__trust-stars {
  display: inline-flex;
  gap: 2px;
  color: #fbbc04;
  font-size: 1.15rem;
  line-height: 1;
}

/* === SEKTION 2: STATUS QUO / PROBLEM === */
.problem-seo {
  /* Layer 1: Vignette (statisch) */
  background-color: #161616;
  background-image: radial-gradient(ellipse at center, #262626 0%, #161616 75%);
  color: #e9e9e9;
  padding: 80px 24px;
  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.problem-seo *,
.problem-seo *::before,
.problem-seo *::after {
  box-sizing: border-box;
}

/* Layer 2: Animierte diagonale Streifen */
.problem-seo::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0,
    transparent 60px,
    rgba(42, 157, 143, 0.045) 60px,
    rgba(42, 157, 143, 0.045) 61px
  );
  animation: stripeMove 45s linear infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes stripeMove {
  from { transform: translate(0, 0); }
  to { transform: translate(-60px, 60px); }
}

/* Layer 3: SVG Contour-Linien */
.problem-seo__contours {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  animation: contourDrift 38s ease-in-out infinite;
}

.problem-seo__contours path {
  fill: none;
  stroke: rgba(42, 157, 143, 0.16);
  stroke-width: 1;
}

@keyframes contourDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-30px, 18px, 0) scale(1.04); }
}

/* Layer 4: Noise/Filmkorn */
.problem-seo::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.05;
  mix-blend-mode: overlay;
  z-index: 2;
  pointer-events: none;
}

.problem-seo__container {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.problem-seo__headline {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 56px;
  color: #e9e9e9;
  text-align: center;
  text-wrap: balance;
}

.problem-seo__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.problem-seo__card {
  position: relative;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  border-radius: 16px;
  padding: 40px 28px 32px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(28px);
  transition: 
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.06);
  will-change: transform, opacity;
}

.problem-seo__card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #2a9d8f 0%, #228478 100%);
  transition: width 0.3s ease, box-shadow 0.3s ease;
}

.problem-seo__card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.problem-seo__card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition-delay: var(--reveal-delay, 0ms);
}

.problem-seo__card.is-visible:hover {
  transform: translateY(-8px);
  border-color: rgba(42, 157, 143, 0.3);
  box-shadow: 
    0 20px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(42, 157, 143, 0.15);
  transition-delay: 0s;
  transition-duration: 0.35s;
}

.problem-seo__card.is-visible:hover::before {
  width: 5px;
  box-shadow: 0 0 16px rgba(42, 157, 143, 0.4);
}

.problem-seo__card-number {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(42, 157, 143, 0.7);
  font-feature-settings: "tnum";
  transition: color 0.3s ease, transform 0.3s ease;
}

.problem-seo__card.is-visible:hover .problem-seo__card-number {
  color: #2a9d8f;
  transform: scale(1.1);
}

.problem-seo__card-headline {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 16px;
  color: #ffffff;
  padding-right: 48px;
}

.problem-seo__card-headline--quote {
  font-style: italic;
  color: #f5f5f5;
}

.problem-seo__card-text {
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
  color: #b5b5b5;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .problem-seo::before,
  .problem-seo__contours {
    animation: none;
  }
  
  .problem-seo__card {
    opacity: 1;
    transform: none;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
  }
  
  .problem-seo__card.is-visible:hover {
    transform: none;
  }
  
  .cursor-dot, .cursor-ring {
    transition: none;
  }
}

/* === DESKTOP-ANPASSUNGEN === */
@media (min-width: 768px) {
  .hero-seo {
    padding: 160px 48px 128px;
  }
  
  .hero-seo__cta {
    font-size: 1.15rem;
    padding: 20px 44px;
  }
  
  .hero-seo__trust-logo {
    height: 26px;
  }
  
  .hero-seo__trust-stars {
    font-size: 1.3rem;
  }
  
  .problem-seo {
    padding: 120px 48px;
  }
  
  .problem-seo__headline {
    margin-bottom: 72px;
  }
  
  .problem-seo__cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
  
  .problem-seo__card {
    padding: 44px 32px 36px;
  }
  
  .problem-seo__card-headline {
    font-size: 1.4rem;
  }
}