/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-terracotta), var(--color-forest-light));
  z-index: 200;
  transition: width 0.1s linear;
}

/* ---------- Hero (Standard, Split) ---------- */
.hero {
  padding-top: clamp(3rem, 2rem + 4vw, 6rem);
  padding-bottom: var(--space-2xl);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: 8%;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklch, var(--color-terracotta) 18%, transparent) 0%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  animation: drift 12s ease-in-out infinite;
  z-index: -1;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 25px) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}

@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-copy > .eyebrow,
.hero-copy > h1,
.hero-copy > .lede,
.hero-copy > .hero-actions {
  animation: hero-fade-up 0.8s var(--ease-out-soft) both;
}

.hero-copy > .eyebrow { animation-delay: 0.05s; }
.hero-copy > h1 { animation-delay: 0.16s; }
.hero-copy > .lede { animation-delay: 0.32s; }
.hero-copy > .hero-actions { animation-delay: 0.46s; }

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 3vw, 4rem);
  align-items: center;
}

.hero-spotlight {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(560px circle at var(--spot-x, 50%) var(--spot-y, 15%), color-mix(in oklch, var(--color-terracotta) 20%, transparent), transparent 72%);
  transition: opacity var(--duration-slow) var(--ease-out-soft);
}

.hero-spotlight.is-active { opacity: 1; }

@media (prefers-reduced-motion: reduce), (hover: none) {
  .hero-spotlight { display: none; }
}

.hero-copy h1 { margin-block: var(--space-sm) var(--space-md); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
}

/* ---------- Hero video ---------- */
.hero-video { position: relative; overflow: hidden; }

.hero-bg-video,
.hero-bg-fallback {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}

.hero-bg-fallback { display: none; }
.hero-bg-fallback img { width: 100%; height: 100%; object-fit: cover; }

.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, oklch(22% 0.02 50 / 0.7) 0%, oklch(22% 0.02 50 / 0.35) 12%, oklch(22% 0.02 50 / 0.35) 45%, oklch(22% 0.02 50 / 0.7) 100%);
}

.hero-video .hero-copy .eyebrow,
.hero-video .hero-copy .lede { color: color-mix(in oklch, white 88%, transparent); }
.hero-video .hero-copy h1 { color: white; }

.hero-video .container { grid-template-columns: 1fr; }

@media (prefers-reduced-motion: reduce) {
  .hero-bg-video { display: none; }
  .hero-bg-fallback { display: block; }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--color-border);
  background: var(--color-cream-card);
  padding-block: var(--space-sm);
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: var(--space-md);
  will-change: transform;
}

.marquee-item {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-forest);
  white-space: nowrap;
}

.marquee-sep { color: var(--color-terracotta); font-size: var(--text-lg); }

/* ---------- Statement Band ---------- */
.statement-band {
  background: var(--color-forest);
  color: var(--color-bg);
  overflow: hidden;
  text-align: center;
}

.statement-band .container {
  position: relative;
  z-index: 1;
  max-width: 46rem;
}

.statement-band .eyebrow { color: color-mix(in oklch, var(--color-bg) 70%, transparent); justify-content: center; }
.statement-band .eyebrow::before { background: var(--color-terracotta); }

.statement-band h2 {
  margin-top: var(--space-sm);
  margin-bottom: 0;
  font-size: clamp(1.75rem, 1.3rem + 2.2vw, 3rem);
  line-height: 1.25;
  color: var(--color-bg);
}

.statement-band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: image-set(url('../assets/img/statement-bg.webp') type('image/webp'), url('../assets/img/statement-bg.jpg') type('image/jpeg'));
  background-size: cover;
  background-position: center 40%;
  mix-blend-mode: luminosity;
  opacity: 0.55;
}

/* ---------- Editorial Background Word ---------- */
.bg-word-section { overflow: hidden; }

.bg-word-section .container { position: relative; z-index: 1; }

.bg-word {
  position: absolute;
  top: -1rem;
  right: calc(max(0px, (100% - var(--content-width)) / 2) - 1rem);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(4rem, 2rem + 8vw, 8rem);
  line-height: 1;
  color: color-mix(in oklch, var(--color-stone-light) 60%, var(--color-bg));
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  animation: bg-word-breathe 7s ease-in-out infinite;
}

@keyframes bg-word-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-word { animation: none; }
}

@media (max-width: 640px) {
  .bg-word { display: none; }
}

/* ---------- Bento grid (USP / Werte) ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-md);
}

.bento-item {
  grid-column: span 3;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: transform var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal) var(--ease-out-expo),
              border-color var(--duration-normal) var(--ease-out-expo);
}

.bento-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in oklch, var(--color-forest) 30%, var(--color-border));
}

.bento-item.span-2 { grid-column: span 2; }
.bento-item.span-4 { grid-column: span 4; }
.bento-item.featured {
  background: var(--color-forest);
  color: var(--color-bg);
  border-color: var(--color-forest);
}
.bento-item.featured h3,
.bento-item.featured .card-icon { color: var(--color-bg); }
.bento-item.featured p { color: color-mix(in oklch, var(--color-bg) 82%, transparent); }

.card-icon {
  width: 3rem; height: 3rem;
  color: var(--color-forest);
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.service-card:hover .card-icon,
.bento-item:hover .card-icon {
  transform: scale(1.12) rotate(-6deg);
}

.bento-item h3 { font-size: var(--text-xl); margin: 0; }
.bento-item p { color: var(--color-stone); margin: 0; }
.bento-item.featured p { color: color-mix(in oklch, var(--color-bg) 80%, transparent); }

@media (max-width: 760px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-item, .bento-item.span-2, .bento-item.span-4 { grid-column: span 1; }
}

/* ---------- Service teaser cards (Startseite) ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.service-card {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-out-expo), box-shadow var(--duration-normal) var(--ease-out-expo);
}

.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.service-card .number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-terracotta-pale);
  position: absolute;
  top: var(--space-sm);
  right: var(--space-md);
  line-height: 1;
}

.service-card h3 { margin-block: var(--space-md) var(--space-2xs); }
.service-card p { color: var(--color-stone); }
.service-card .text-link { margin-top: var(--space-md); }

.service-card--cta {
  background: var(--color-terracotta-pale);
  border-color: color-mix(in oklch, var(--color-terracotta-dark) 30%, transparent);
}
.service-card--cta .number { color: color-mix(in oklch, var(--color-terracotta-dark) 45%, transparent); }
.service-card--cta .card-icon { color: var(--color-terracotta-dark); }

@media (max-width: 860px) {
  .service-grid { grid-template-columns: 1fr; }
}

/* ---------- Prozess-Steps ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  counter-reset: step;
}

.process-step {
  position: relative;
  padding-top: var(--space-lg);
}

.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-forest-pale);
  display: block;
  margin-bottom: var(--space-xs);
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 2.2rem;
  left: calc(100% - 1.5rem);
  width: calc(var(--space-lg) + 1.5rem);
  height: 2px;
  background: repeating-linear-gradient(to right, var(--color-stone-light) 0 8px, transparent 8px 14px);
  display: none;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out-expo);
  transition-delay: calc(var(--stagger-index, 0) * 90ms + 250ms);
}

.process-step.is-visible:not(:last-child)::after { transform: scaleX(1); }

@media (min-width: 761px) {
  .process-step:not(:last-child)::after { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .process-step:not(:last-child)::after { transform: scaleX(1); transition: none; }
}

.process-step h3 { font-size: var(--text-lg); margin: 0 0 var(--space-2xs); }
.process-step p { color: var(--color-stone); margin: 0; }

@media (max-width: 760px) {
  .process-steps { grid-template-columns: 1fr; gap: var(--space-xl); }
}

/* ---------- Stat counters ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  text-align: center;
}

.stat-item {
  padding-left: var(--space-md);
  border-left: 1px solid var(--color-border);
}

.stat-item:first-child { border-left: none; padding-left: 0; }

.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-forest);
  font-variant-numeric: tabular-nums;
}

.stat-item > span {
  font-size: var(--text-sm);
  color: var(--color-stone);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
  .stat-item:nth-child(2) { border-left: 1px solid var(--color-border); }
  .stat-item:nth-child(3) { border-left: none; padding-left: 0; }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--color-forest);
  color: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.cta-band h2 { color: var(--color-bg); margin: 0 0 var(--space-2xs); }
.cta-band p { color: color-mix(in oklch, var(--color-bg) 80%, transparent); margin: 0; max-width: 42ch; }
.cta-band .cta-decor { position: absolute; right: -4rem; top: 50%; transform: translateY(-50%); width: 16rem; opacity: 0.18; }

.cta-band::before {
  content: '';
  position: absolute;
  left: -6%;
  bottom: -30%;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklch, var(--color-terracotta) 30%, transparent) 0%, transparent 72%);
  pointer-events: none;
  animation: drift 9s ease-in-out infinite;
  animation-delay: -3s;
}

@media (prefers-reduced-motion: reduce) {
  .cta-band::before { animation: none; }
}

.empty-state { text-align: center; padding-block: var(--space-lg); }
.cta-decor--rotated { transform: rotate(90deg) scale(1.4); }

/* ---------- Trust / Google-Bewertungen CTA ---------- */
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  background: var(--color-cream-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-normal) var(--ease-out-expo), box-shadow var(--duration-normal) var(--ease-out-expo);
}

.trust-strip:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.trust-strip-copy {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex: 1 1 20rem;
}

.trust-strip-icon { flex-shrink: 0; width: 2.25rem; height: 2.25rem; color: var(--color-terracotta); }

.trust-strip p { margin: 0; color: var(--color-ink-soft); }
.trust-strip .eyebrow { margin-bottom: var(--space-2xs); }

.google-reviews {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  background: var(--color-cream-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-normal) var(--ease-out-expo), box-shadow var(--duration-normal) var(--ease-out-expo);
}
.google-reviews:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.google-reviews__badge { flex-shrink: 0; }
.google-reviews__body { flex: 1 1 22rem; }
.google-reviews__body .eyebrow { margin-bottom: var(--space-2xs); }
.google-reviews__body p { margin: var(--space-2xs) 0 0; color: var(--color-ink-soft); }
.google-reviews__score { display: flex; align-items: center; gap: var(--space-xs); flex-wrap: wrap; font-size: var(--text-sm); color: var(--color-ink-soft); }
.google-reviews__score strong { font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-ink); }
.google-reviews__stars { color: #FBBC05; letter-spacing: 0.05em; }
