:root {
  --bg: #0a0a0b;
  --bg-alt: #111113;
  --card: #17171a;
  --card-border: #26262a;
  --text: #f5f5f2;
  --text-dim: #a1a1a8;
  --text-faint: #6f6f76;
  --accent: #e94e1b;
  --accent-dim: #b93c14;
  --radius: 14px;
  --container: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/inter-variable.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-variable.woff2") format("woff2");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-style: normal;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  cursor: default;
  overflow-x: clip;
}

/* Anchored sections need room for the floating pill header when jumped to via nav/#hash links */
#hero, #problem, #team, #leistungen, #ablauf, #ergebnisse, #preise, #faq, #kontakt { scroll-margin-top: 110px; }

body.is-preloading { overflow: hidden; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.7s var(--ease);
}
.preloader.is-done {
  opacity: 0;
  pointer-events: none;
}
.preloader-logo {
  width: min(52vw, 320px);
  height: auto;
  overflow: visible;
}
.pl-path,
.pl-dot {
  fill: var(--text);
  fill-opacity: 0;
  stroke: var(--text);
  stroke-width: 0.12px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pl-dot { fill: var(--accent); stroke: var(--accent); }

h1, h2, h3, .editorial-h2, .hero-headline, .stat-number, .case-panel-number,
.case-panel-content h4, .problem-resolve, .price-amount {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

h3 { font-size: 1.25rem; }

p { margin: 0; color: var(--text-dim); }

.accent { color: var(--accent); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 16px;
}

.section-head { margin-bottom: 20px; }

.section-mark {
  position: absolute;
  top: -0.12em;
  right: -2%;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(11rem, 28vw, 27rem);
  line-height: 1;
  color: var(--accent);
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .section-mark { display: none; }
}

.editorial-h2 {
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 700;
  overflow-wrap: break-word;
  word-break: break-word;
}
.editorial-h2.huge { font-size: clamp(2.2rem, 8vw, 6.4rem); }

.section-sub {
  max-width: 560px;
  margin-top: 20px;
  font-size: 1.1rem;
}

/* custom cursor */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  pointer-events: none;
  z-index: 999;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s var(--ease);
}
.cursor-dot.is-hover { width: 52px; height: 52px; background: rgba(233,78,27,0.25); }
@media (hover: none), (pointer: coarse) { .cursor-dot { display: none; } }

/* grain overlay */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------- Liquid glass ---------- */
.glass {
  position: relative;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 1px 1px rgba(255, 255, 255, 0.12) inset,
    0 20px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(0, 0, 0, 0.15);
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(155deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0) 30%);
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(155deg, #ff7a3d, var(--accent) 55%, var(--accent-dim));
  color: #fff;
  box-shadow: 0 10px 30px rgba(233, 78, 27, 0.35);
}
.btn-primary:hover { box-shadow: 0 14px 36px rgba(233, 78, 27, 0.48); }

.btn-ghost { background: transparent; border-color: rgba(255,255,255,0.25); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-dim); }
.btn-ghost.glass:hover { background: rgba(255,255,255,0.1); }

.btn-small { padding: 11px 22px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--container);
  margin: 16px auto 0;
  padding: 15px 28px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 1px 1px rgba(255, 255, 255, 0.12) inset,
    0 20px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(0, 0, 0, 0.15);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.site-header.is-scrolled .header-inner {
  background: rgba(10, 10, 11, 0.55);
}

.story-bar {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: -9px;
  display: flex;
  gap: 4px;
  pointer-events: none;
}
.story-bar-seg {
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.story-bar-seg i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
}

.logo-link { display: flex; align-items: center; }
.logo { height: 22px; width: auto; display: block; }

.nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.nav a { display: flex; align-items: baseline; gap: 5px; transition: color 0.2s var(--ease); }
.nav a span { font-size: 0.68rem; color: var(--accent); font-weight: 700; }
.nav a:hover { color: var(--text); }
.nav a.is-active { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 4px;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
@media (min-width: 901px) {
  .hero { height: 100vh; min-height: 640px; }
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  transform: scale(1.08);
}
.vanta-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 70% 30%, #1a0d06, transparent 70%);
}
.vanta-bg canvas { mix-blend-mode: screen; }

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(10,10,11,0.25) 0%, rgba(10,10,11,0.6) 78%, var(--bg) 100%),
    linear-gradient(90deg, rgba(10,10,11,0.55) 0%, rgba(10,10,11,0.05) 55%);
  pointer-events: none;
}
.hero-dim {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 4;
  padding-top: 64px;
  padding-bottom: 32px;
  text-align: center;
}

.hero-eyebrow { font-size: 0.85rem; display: flex; justify-content: center; }

.hero-headline {
  font-weight: 700;
  font-size: clamp(2.2rem, 6.6vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin: 0;
}
.hero-headline .line { display: block; overflow: hidden; text-align: center; }
.hero-headline .word { display: inline-block; will-change: transform; }
.hero-headline .line-accent .word {
  background: linear-gradient(155deg, #ff7a3d, var(--accent) 55%, var(--accent-dim));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hl-slash { color: var(--accent); }

/* Every headline is indented from the first line on, with the "/" pulled out to the left */
/* so it stands on its own — same fixed amount on every line, no per-line staggering, no JS. */
.editorial-h2 { position: relative; }
.editorial-h2 .hl-slash {
  position: absolute;
  left: 0;
  top: 0.07em;
}
.hl-line { display: block; overflow: hidden; }
.hl-inner {
  display: block;
  padding-left: clamp(1.8rem, 5.6vw, 4.2rem);
  will-change: transform;
}

.hl-mark {
  display: inline-block;
  white-space: nowrap;
  padding: 0.02em 0.16em;
  margin: 0 -0.16em;
  border-radius: 4px;
  background-image: linear-gradient(rgba(233, 78, 27, 0.4), rgba(233, 78, 27, 0.4));
  background-repeat: no-repeat;
  background-position: 0 85%;
  background-size: 0% 44%;
  transition: background-size 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}
.hl-mark.is-marked { background-size: 100% 44%; }

.hero-foot {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.hero-sub { max-width: 460px; font-size: 1.05rem; text-align: center; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.scroll-cue {
  position: absolute;
  bottom: 20px;
  left: 32px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-faint);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.scroll-cue-line { width: 1px; height: 36px; background: rgba(255,255,255,0.15); position: relative; overflow: hidden; }
.scroll-cue-line i { position: absolute; top: -36px; left: 0; width: 100%; height: 36px; background: var(--accent); animation: scrollcue 2.2s ease-in-out infinite; }
@keyframes scrollcue { 0% { transform: translateY(0); } 100% { transform: translateY(72px); } }

/* Horizontal variant: for sections where scrolling drives sideways motion (e.g. the
   case-studies horizontal scroll-jack) rather than the usual vertical scroll. */
.scroll-cue-h {
  position: static;
  margin-top: 48px;
}
.scroll-cue-line-h { width: 44px; height: 1px; background: rgba(255,255,255,0.15); position: relative; overflow: hidden; }
.scroll-cue-line-h i { position: absolute; top: 0; left: -44px; width: 44px; height: 100%; background: var(--accent); animation: scrollcueh 2.2s ease-in-out infinite; }
@keyframes scrollcueh { 0% { transform: translateX(0); } 100% { transform: translateX(88px); } }

/* ---------- Mission ---------- */
.mission { padding: 140px 0; background: var(--bg); position: relative; overflow: hidden; }
.mission::before {
  content: "";
  position: absolute;
  bottom: -180px;
  left: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(ellipse farthest-side at center, rgba(233,78,27,0.14), transparent 70%);
  z-index: 0;
  animation: ambient-glow-drift 24s linear infinite;
}
/* Shared ambient-glow motion — reused (with each section's own size/position/opacity)
   so the drifting accent-orange glow reads as one recurring signature across the site,
   not isolated per-section decoration. Percentage-based so it scales with any blob size. */
@keyframes ambient-glow-drift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-18%, 10%); }
  50% { transform: translate(-8%, 22%); }
  75% { transform: translate(14%, 8%); }
  100% { transform: translate(0, 0); }
}
.mission-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 0.85fr;
  gap: 64px;
  align-items: center;
}
.mission-text { margin-top: 24px; font-size: 1.1rem; max-width: 480px; }

.mission-side .dot-list { margin-top: 0; font-size: 1.3rem; gap: 12px 6px; }
.mission-side .mission-makes-label { margin-top: 56px; }
.mission-side .slash-list { margin-top: 28px; gap: 24px; }
.mission-side .slash-list li { font-size: 1.25rem; padding-left: 32px; }

.dot-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 4px;
  font-size: 1.05rem;
  font-weight: 600;
}
.dot-list li::after { content: "•"; color: var(--accent); margin-left: 10px; }
.dot-list li:last-child::after { content: ""; margin-left: 0; }

.problem-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-faint);
  margin: 0;
}

.slash-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.slash-list li {
  position: relative;
  padding-left: 28px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
}
.slash-list li::before {
  content: "/";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.mission-makes-label { margin-top: 40px; }

.mission-punch {
  margin-top: 28px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  letter-spacing: -0.01em;
}

.mission-marquee {
  position: relative;
  z-index: 1;
  margin-top: 90px;
  overflow: hidden;
}
.mission-marquee-row { overflow: hidden; }
.mission-marquee-row + .mission-marquee-row { margin-top: -0.06em; }
.mission-marquee-track {
  display: flex;
  width: max-content;
  gap: 56px;
  will-change: transform;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-pair,
.marquee-claim {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 7.2vw, 5.6rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  white-space: nowrap;
}
.marquee-pair { color: var(--text); }
.marquee-pair i { color: var(--accent); font-style: normal; font-size: 0.7em; }
.marquee-claim { color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .leistungen::before, .leistungen::after { animation: none; }
  .kontakt::before { animation: none; }
}

/* ---------- Problemstellung ---------- */
.problem { padding: 140px 0; background: var(--bg); position: relative; overflow: hidden; }
.problem::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.problem > .container { position: relative; z-index: 1; }

.problem-headline {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.32em;
  row-gap: 0.1em;
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.pr-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.2em);
  will-change: opacity, transform;
}
.pr-build {
  opacity: 0;
  transform: translateY(16px);
  transition: none;
  will-change: opacity, transform;
}

.problem-resolve {
  margin-top: 40px;
  font-size: clamp(1.8rem, 4.2vw, 3.2rem);
  background: linear-gradient(155deg, #ff7a3d, var(--accent) 55%, var(--accent-dim));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.problem-cta { margin-top: 36px; }

/* ---------- Leistungen ---------- */
.leistungen { padding: 140px 0; position: relative; overflow: hidden; }
.leistungen::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -160px;
  width: 560px;
  height: 560px;
  background: radial-gradient(ellipse farthest-side at center, rgba(233,78,27,0.16), transparent 70%);
  z-index: 0;
  animation: ambient-glow-drift 26s linear infinite;
}
.leistungen::after {
  content: "";
  position: absolute;
  bottom: -260px;
  left: -180px;
  width: 680px;
  height: 680px;
  background: radial-gradient(ellipse farthest-side at center, rgba(233,78,27,0.13), transparent 72%);
  z-index: 0;
  animation: ambient-glow-drift 32s linear infinite reverse;
}
.leistungen > .container { position: relative; z-index: 1; }

.leistungen-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 20px;
}

.card {
  position: relative;
  height: 290px;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  padding: 34px 28px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.14);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}
.card:hover { border-color: rgba(233,78,27,0.5); transform: translateY(-4px); background: rgba(255,255,255,0.09); }
.card-icon-chip {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 11px;
  background: linear-gradient(155deg, #ff7a3d, var(--accent) 65%, var(--accent-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 16px;
  box-shadow: 0 8px 18px rgba(233, 78, 27, 0.28);
}
.card-icon { width: 21px; height: 21px; color: #fff; }
.card-index { color: var(--accent); font-weight: 700; font-size: 0.85rem; position: relative; }
.card h3 { margin-top: 16px; font-size: 1.2rem; position: relative; }
.card p { margin-top: 10px; font-size: 0.95rem; position: relative; }
.card-muted { border-style: dashed; }

.card-expand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}
.card-expand i { font-style: normal; transition: transform 0.25s var(--ease); }
.card:hover .card-expand i { transform: rotate(90deg); }

/* ---------- Morphing dialog ---------- */
.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 6, 7, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.dialog-backdrop.is-active { opacity: 1; pointer-events: auto; }

.dialog {
  position: fixed;
  z-index: 201;
  border-radius: var(--radius);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
}
.dialog.is-active { opacity: 1; pointer-events: auto; }

.dialog-media { position: relative; width: 100%; flex-shrink: 0; height: 42%; overflow: hidden; }
.dialog-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dialog-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1), var(--card) 95%);
  opacity: 0;
}

.dialog-body { padding: 32px 36px 40px; overflow-y: auto; }
.dialog-body h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 14px; }
.dialog-body p { margin-top: 18px; font-size: 1.02rem; line-height: 1.65; max-width: 560px; }
.dialog-cta { margin-top: 26px; }

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(10,10,11,0.4);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.dialog-close:hover { background: rgba(233,78,27,0.6); transform: rotate(90deg); }

body.dialog-open { overflow: hidden; }

/* ---------- Case mockup photo (freigestelltes iPhone-Rendering) ---------- */
.case-mockup-img {
  max-height: min(165%, 76vh);
  max-width: min(145%, 30vw);
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 40px 70px rgba(0,0,0,0.5));
}

.case-panel-media-next { position: relative; }
.case-next-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62%;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  text-align: center;
  color: var(--text-faint);
  line-height: 1.3;
}
.case-next-cta { margin-top: 28px; }

/* ---------- Ergebnisse intro + horizontal case scroll ---------- */
.ergebnisse-intro { padding: 140px 0 40px; position: relative; overflow: hidden; }
.ergebnisse-intro > .container { position: relative; z-index: 1; }

.stats-inline { display: flex; gap: 48px; margin-top: 40px; flex-wrap: wrap; }
.stats-inline span {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(155deg, #ff7a3d, var(--accent) 55%, var(--accent-dim));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
  line-height: 1;
}
.stats-inline p { font-size: 0.85rem; margin-top: 8px; max-width: 170px; }

.cases-pin {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
.cases-track {
  display: flex;
  height: 100%;
  width: max-content;
  will-change: transform;
}

.case-panel {
  width: 86vw;
  max-width: 1180px;
  height: 100%;
  flex-shrink: 0;
  margin-right: 5vw;
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  align-items: center;
  gap: 1.5vw;
  padding: 0 4vw;
}
.case-panel:first-child { margin-left: 6vw; }

.case-panel-media {
  position: relative;
  height: 98%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-panel-content { min-width: 0; }
.case-panel-tag {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 18px;
}
.case-panel-number {
  font-size: clamp(3.2rem, 8vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0;
}
.case-panel-label { font-size: 1.1rem; margin-top: 10px; }
.case-panel-content h4 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); font-weight: 700; margin: 36px 0 4px; letter-spacing: -0.02em; line-height: 1.1; }
.case-panel-sub { font-size: 0.95rem; }
.case-panel-mini { display: flex; gap: 28px; margin-top: 24px; flex-wrap: wrap; }
.case-panel-mini div { display: flex; flex-direction: column; gap: 2px; font-size: 0.82rem; color: var(--text-faint); }
.case-panel-mini strong { font-size: 1.3rem; color: var(--text); font-weight: 700; }
.case-panel-text { margin-top: 24px; font-size: 1rem; max-width: 480px; }

/* ---------- Content-Beispiele: Finale der Ablauf-Timeline ---------- */
.timeline li.timeline-finale {
  display: block;
  position: relative;
  padding: 130px 0 12px;
}
.timeline-finale-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 1300px;
  height: 640px;
  background: radial-gradient(ellipse farthest-side at center, rgba(233, 78, 27, 0.4), transparent 70%);
  opacity: 0;
  transition: opacity 1.4s var(--ease);
  pointer-events: none;
  z-index: 0;
}
.timeline-finale.is-active .timeline-finale-glow { opacity: 1; }
.timeline-finale .content-wall-line {
  position: relative;
  z-index: 1;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}
.content-wall-grid {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 8px;
}
.content-tile {
  position: relative;
  flex: 0 0 auto;
  width: clamp(150px, 19vw, 210px);
  margin: 0;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  scroll-snap-align: center;
  cursor: pointer;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.content-tile:hover { transform: translateY(-4px); border-color: rgba(233,78,27,0.5); }
.content-tile img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; }
.content-tile-play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(10, 10, 11, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.content-tile-play svg { width: 14px; height: 14px; color: #fff; margin-left: 2px; }

.content-lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 6, 7, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.content-lightbox-backdrop.is-active { opacity: 1; pointer-events: auto; }
.content-lightbox {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.94);
  z-index: 201;
  width: min(88vw, 360px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.content-lightbox.is-active { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
.content-lightbox-media {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: var(--card);
}
.content-lightbox-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.content-lightbox-media video { width: 100%; height: 100%; object-fit: cover; display: none; background: #000; }
.content-lightbox-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(10, 10, 11, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.content-lightbox-play svg { width: 26px; height: 26px; color: #fff; margin-left: 3px; }
.content-lightbox-caption {
  margin-top: 16px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-faint);
}
body.lightbox-open { overflow: hidden; }

/* JS-enhanced: bent, draggable 3D gallery (falls back to plain scroll row above without JS/reduced-motion) */
.content-wall-grid.is-enhanced {
  position: relative;
  display: block;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  height: clamp(320px, 40vw, 460px);
  overflow: hidden;
  perspective: 1600px;
  cursor: grab;
  touch-action: pan-y;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.timeline-finale.is-active .content-wall-grid.is-enhanced { opacity: 1; transform: scale(1); }
.content-wall-grid.is-enhanced.is-dragging { cursor: grabbing; }
.content-wall-grid.is-enhanced .content-tile {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(160px, 15vw, 250px);
  will-change: transform, opacity;
  transition: none;
}
.content-wall-grid.is-enhanced .content-tile:hover { transform: none; }

.content-wall-nav {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%) translateZ(0);
  /* Sits inside a perspective-having parent (.content-wall-grid.is-enhanced) for the
     3D tile effect — WebKit can otherwise paint an untransformed absolute child at the
     wrong spot inside that 3D context. translateZ(0) forces its own compositing layer
     so it stays pinned to the real edge instead of drifting mid-gallery. */
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(10, 10, 11, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  padding: 0;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.content-wall-nav:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-50%) translateZ(0) scale(1.06); }
.content-wall-nav svg { width: 22px; height: 22px; }
.content-wall-prev { left: 20px; }
.content-wall-next { right: 20px; }
.content-wall-grid.is-enhanced .content-wall-nav { display: flex; }
@media (max-width: 720px) {
  .content-wall-nav { width: 38px; height: 38px; }
  .content-wall-nav svg { width: 18px; height: 18px; }
  .content-wall-prev { left: 10px; }
  .content-wall-next { right: 10px; }
}

/* ---------- Ablauf / vertikale Timeline ---------- */
.ablauf { padding: 140px 0; position: relative; overflow: hidden; }
.ablauf > .container { position: relative; z-index: 1; }

.timeline {
  list-style: none;
  margin: 76px 0 0;
  padding: 0;
  position: relative;
}
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--card-border);
  transform: translateX(-50%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 900px), transparent calc(100% - 700px));
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 900px), transparent calc(100% - 700px));
}
.timeline-line-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0%;
  background: var(--accent);
  transform-origin: top;
}
.timeline li {
  display: grid;
  grid-template-columns: 1fr 44px 1fr;
  align-items: center;
  gap: 44px;
  padding: 48px 0;
  position: relative;
}
.timeline-step-media {
  grid-column: 1;
  grid-row: 1;
  height: 240px;
  border-radius: 20px;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.timeline li.is-active .timeline-step-media { opacity: 1; transform: scale(1); }
.timeline-step-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.timeline-dot {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--card-border);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: 1;
}
.timeline li.is-active .timeline-dot { background: var(--accent); border-color: var(--accent); transform: scale(1.35); }
.timeline-content { grid-column: 3; grid-row: 1; }
/* :nth-of-type (not :nth-child) — the leading .timeline-line div would otherwise shift the parity */
.timeline li:nth-of-type(even) .timeline-step-media { grid-column: 3; }
.timeline li:nth-of-type(even) .timeline-content { grid-column: 1; text-align: right; }
.timeline-index {
  display: block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.timeline h3 { font-size: 1.3rem; }
.timeline p { margin-top: 10px; font-size: 0.95rem; max-width: 420px; }
.timeline li:nth-of-type(even) .timeline-content p { margin-left: auto; }

.ablauf-note {
  margin-top: 64px;
  max-width: 720px;
  font-size: 1.05rem;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
}

/* ---------- Preise ---------- */
.preise { padding: 140px 0; position: relative; overflow: hidden; }
.preise::before {
  content: "";
  position: absolute;
  bottom: -200px;
  right: -140px;
  width: 480px;
  height: 480px;
  background: radial-gradient(ellipse farthest-side at center, rgba(233,78,27,0.13), transparent 70%);
  z-index: 0;
  animation: ambient-glow-drift 28s linear infinite;
}
.preise::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.preise > .container { position: relative; z-index: 1; }

.pricing-tabs {
  display: inline-flex;
  gap: 4px;
  margin-top: 44px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 100px;
  position: relative;
}
.tab-btn {
  border: none;
  background: transparent;
  color: var(--text-dim);
  padding: 10px 22px;
  border-radius: 100px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.tab-btn.is-active { background: var(--accent); color: #fff; }

.pricing-panel { display: none; margin-top: 40px; }
.pricing-panel.is-active { display: block; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.price-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  --tier-glow: 0.03;
}
.price-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 30% -10%, rgba(233, 78, 27, var(--tier-glow)), transparent 65%);
  pointer-events: none;
}
.price-card > * { position: relative; }
.price-card:nth-child(2) { --tier-glow: 0.06; }
.price-card:nth-child(3) { --tier-glow: 0.1; }
.price-card:nth-child(4) { --tier-glow: 0.14; }
.price-card:nth-child(5) { --tier-glow: 0.18; }
.price-card:nth-child(6) { --tier-glow: 0.24; }
.price-card.is-highlight {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(233,78,27,0.12), transparent 60%);
}
.price-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}
.price-name { font-size: 0.85rem; font-weight: 600; color: var(--text-dim); margin: 0; }
.price-original { font-size: 0.85rem; color: var(--text-faint); text-decoration: line-through; margin: 8px 0 0; }
.price-amount { font-size: 1.5rem; font-weight: 700; margin: 10px 0 4px; }
.price-detail { font-size: 0.8rem; color: var(--text-faint); margin: 0; }
.price-framing { font-size: 0.75rem; color: var(--text-faint); margin: 14px 0 0; line-height: 1.35; }

.price-features {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 40px;
}
.price-features li {
  font-size: 0.92rem;
  color: var(--text-dim);
  padding-left: 22px;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.price-features li::before {
  content: "/";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

.preise-note { margin-top: 44px; font-size: 0.95rem; }
.preise-note a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Der Unterschied (Vergleichstabelle) ---------- */
.compare { padding: 140px 0; position: relative; overflow: hidden; }
.compare > .container { position: relative; z-index: 1; }
.compare-slider-wrap { margin-top: 56px; }
.compare-slider {
  position: relative;
  width: 100%;
  height: clamp(340px, 52vw, 620px);
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  cursor: ew-resize;
  user-select: none;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.compare-slide { position: absolute; inset: 0; }
.compare-slide-after { z-index: 0; }
.compare-slide-after img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; filter: saturate(1.12) brightness(1.04) contrast(1.05); }
.compare-slide-before {
  z-index: 1;
  clip-path: inset(0 50% 0 0);
}
.compare-slide-bw {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  filter: grayscale(0.65) saturate(0.55) brightness(0.85) contrast(0.88);
}

.compare-pills { position: absolute; inset: 0; pointer-events: none; }
.compare-pill {
  position: absolute;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 15px 26px;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55), 0 3px 6px rgba(0, 0, 0, 0.35);
}
.compare-pill-chaos {
  background: #1d1d20;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
}
.compare-pill-order {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}
.compare-pill-order::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .compare-pill {
    font-size: 0.78rem;
    padding: 9px 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
  }
  .compare-pill-order { gap: 6px; }
  .compare-pill-order::before { width: 5px; height: 5px; }
  /* Taller/narrower mobile aspect ratio means the desktop top:% positions (inline
     styles) push the last couple of pills into the bottom overlay text — compress
     the vertical spread so everything clears it with room to spare. */
  .compare-pills-chaos .compare-pill:nth-child(1) { top: 6% !important; }
  .compare-pills-chaos .compare-pill:nth-child(2) { top: 13% !important; }
  .compare-pills-chaos .compare-pill:nth-child(3) { top: 28% !important; }
  .compare-pills-chaos .compare-pill:nth-child(4) { top: 35% !important; }
  .compare-pills-chaos .compare-pill:nth-child(5) { top: 50% !important; }
  .compare-pills-order .compare-pill:nth-child(1) { top: 5% !important; }
  .compare-pills-order .compare-pill:nth-child(2) { top: 18% !important; }
  .compare-pills-order .compare-pill:nth-child(3) { top: 31% !important; }
  .compare-pills-order .compare-pill:nth-child(4) { top: 44% !important; }
  .compare-pills-order .compare-pill:nth-child(5) { top: 57% !important; }
}
@media (max-width: 480px) {
  .compare-pill { font-size: 0.68rem; padding: 7px 12px; }
}
.compare-slide-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.6) 60%);
}
.compare-slide-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
}
.compare-tag-no { background: rgba(255,255,255,0.14); color: var(--text-dim); }
.compare-tag-yes { background: var(--accent); color: #fff; }
.compare-slide-stat {
  font-size: 0.82rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compare-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255,255,255,0.8);
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
}
.compare-slider-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  color: #fff;
}
.compare-slider-grip svg { width: 20px; height: 20px; }

.compare-slider-caption {
  margin-bottom: 14px;
  max-width: 420px;
  text-align: left;
  font-size: 0.88rem;
  color: var(--text-faint);
}
.compare-summary {
  margin-top: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.compare-summary-yes { color: var(--text); font-size: 1.15rem; font-weight: 600; }

/* ---------- Team ---------- */
.team { padding: 140px 0; position: relative; overflow: hidden; }
.team > .container { position: relative; z-index: 1; }

.team-grid {
  position: relative;
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.team-grid::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130%;
  height: 340px;
  background: radial-gradient(ellipse farthest-side at center, rgba(233,78,27,0.28), transparent 72%);
  z-index: 0;
  animation: ambient-glow-drift 24s linear infinite;
}
.team-card { position: relative; z-index: 1; height: 260px; perspective: 1400px; }
.team-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s var(--ease);
  transform-style: preserve-3d;
}
.team-card:hover .team-card-inner,
.team-card.is-flipped .team-card-inner { transform: rotateY(180deg); }
.team-card-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  padding: 30px;
}
.team-card-front {
  display: flex;
  align-items: center;
  gap: 28px;
}
.team-card-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.team-quote {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  line-height: 1.2;
  background: linear-gradient(155deg, #ff7a3d, var(--accent) 55%, var(--accent-dim));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}
.team-quote-sub { margin-top: 16px; font-size: 0.95rem; color: var(--text-dim); max-width: 320px; }
.team-photo {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  background: linear-gradient(180deg, rgba(233,78,27,0.18), transparent 70%);
  flex-shrink: 0;
}
.team-info { min-width: 0; }
.team-info h3 { font-size: 1.4rem; }
.team-role { color: var(--accent); font-size: 0.88rem; font-weight: 600; margin-top: 6px; }
.team-card a { display: block; margin-top: 16px; font-size: 0.95rem; color: var(--text-dim); transition: color 0.2s var(--ease); width: fit-content; }
.team-card a:hover { color: var(--text); }
.team-card a:first-of-type { margin-top: 24px; }

/* ---------- Polaroid-Galerie (nahbare Trust-Elemente zwischen Kapiteln) ---------- */
.polaroid-gallery { padding: 90px 0; overflow: hidden; }
.polaroid-gallery-line {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  text-align: center;
  color: var(--text-dim);
  margin: 0 0 52px;
}
.polaroid-stack {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
  flex-wrap: wrap;
}
.polaroid {
  background: #f2f0ec;
  padding: 14px 14px 48px;
  width: 220px;
  margin: 0;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.2);
  position: relative;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.polaroid:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.04) !important;
  box-shadow: 0 35px 60px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 2;
}
.polaroid img { width: 100%; aspect-ratio: 1 / 1.05; object-fit: cover; display: block; filter: saturate(1.05) contrast(1.02); }
.polaroid figcaption {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  color: #2a2a2a;
}
.polaroid-1 { transform: rotate(-7deg); margin-top: 22px; }
.polaroid-2 { transform: rotate(4deg); margin-top: -8px; z-index: 1; }
.polaroid-3 { transform: rotate(-3deg); margin-top: 30px; }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37,211,102,0.45), 0 0 0 1px rgba(255,255,255,0.15);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 14px 36px rgba(37,211,102,0.55); }

/* ---------- FAQ ---------- */
.faq { padding: 140px 0; position: relative; overflow: hidden; }
.faq > .container { position: relative; z-index: 1; }
.faq-list { margin-top: 56px; display: flex; flex-direction: column; gap: 4px; }
.faq-item {
  border-bottom: 1px solid var(--card-border);
  padding: 26px 0;
}
.faq-item summary {
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 400;
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 18px; font-size: 1rem; max-width: 620px; }

/* ---------- Kontakt ---------- */
.kontakt { padding: 150px 0 160px; background: var(--bg-alt); border-top: 1px solid var(--card-border); position: relative; overflow: hidden; }
.kontakt::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -320px;
  width: 1300px;
  height: 640px;
  margin-left: -650px;
  background: radial-gradient(ellipse farthest-side at center, rgba(233,78,27,0.26), transparent 70%);
  z-index: 1;
  pointer-events: none;
  animation: ambient-glow-drift 22s linear infinite;
}
.kontakt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 280px;
  background: linear-gradient(to bottom, transparent, #000);
  pointer-events: none;
  z-index: 0;
}
.kontakt-inner { max-width: 640px; position: relative; z-index: 1; }

.kontakt-chat-preview { margin-top: 44px; max-width: 440px; }
.chat-preview-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin: 0 0 14px;
}
.chat-window { display: flex; flex-direction: column; gap: 10px; }
.chat-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 84%;
}
.chat-in {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom-left-radius: 4px;
  color: var(--text-dim);
}
.chat-out {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--accent), #ff7a3d);
  color: #fff;
  border-bottom-right-radius: 4px;
  font-weight: 500;
  opacity: 0;
}
.chat-time {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 400;
  opacity: 0.8;
}
.chat-typing {
  align-self: flex-start;
  display: flex;
  gap: 5px;
  width: fit-content;
  padding: 12px 16px;
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
}
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-faint); }

@keyframes chatTypingShow { to { opacity: 1; } }
@keyframes chatTypingHide { to { opacity: 0; } }
@keyframes chatTypingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}
@keyframes chatReplyIn { to { opacity: 1; } }

.kontakt-chat-preview.is-active .chat-typing {
  animation: chatTypingShow 0.01s linear 0.2s forwards, chatTypingHide 0.3s ease 2s forwards;
}
.kontakt-chat-preview.is-active .chat-typing span:nth-child(1) { animation: chatTypingBounce 0.9s ease-in-out 0.2s 2; }
.kontakt-chat-preview.is-active .chat-typing span:nth-child(2) { animation: chatTypingBounce 0.9s ease-in-out 0.35s 2; }
.kontakt-chat-preview.is-active .chat-typing span:nth-child(3) { animation: chatTypingBounce 0.9s ease-in-out 0.5s 2; }
.kontakt-chat-preview.is-active .chat-out { animation: chatReplyIn 0.4s ease 2.2s forwards; }

.kontakt-primary { margin-top: 72px; }
.btn-large { padding: 20px 36px; font-size: 1.05rem; gap: 10px; }
.kontakt-hint { margin-top: 14px; font-size: 0.85rem; color: var(--text-faint); }

.kontakt-form-toggle { margin-top: 40px; }
.kontakt-form-toggle summary {
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
  width: fit-content;
}
.kontakt-form-toggle summary:hover { color: var(--text); }
.kontakt-form-toggle .contact-form { margin-top: 24px; }

.contact-form {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-row { display: flex; gap: 14px; }
.form-row input { flex: 1; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.2s var(--ease);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form ::placeholder { color: var(--text-faint); }
.contact-form button { margin-top: 6px; align-self: flex-start; }

.kontakt-direct { margin-top: 28px; font-size: 0.95rem; }
.kontakt-direct a { color: var(--accent); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0 0; border-top: 1px solid var(--card-border); }
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; row-gap: 12px; }
.footer-logo { height: 16px; opacity: 0.7; }
.footer-inner p { font-size: 0.82rem; color: var(--text-faint); margin-left: auto; }
.footer-links { display: flex; gap: 20px; font-size: 0.82rem; color: var(--text-faint); }
.footer-links a { transition: color 0.2s var(--ease); }
.footer-links a:hover { color: var(--text); }

.footer-giant-crop {
  container-type: inline-size;
  width: min(94vw, 1520px);
  margin: 24px auto 0;
  height: clamp(5rem, 16vw, 12.5rem);
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.footer-giant {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 29cqw;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--accent);
  opacity: 0.08;
  user-select: none;
}

/* ---------- Legal pages (Impressum / Datenschutz) ---------- */
.legal-page { padding: 160px 0 100px; }
.legal-header { max-width: 720px; margin: 0 auto 56px; }
.legal-header .eyebrow { justify-content: flex-start; }
.legal-notice {
  max-width: 720px;
  margin: 0 auto 48px;
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px dashed rgba(233, 78, 27, 0.45);
  background: rgba(233, 78, 27, 0.07);
  font-size: 0.92rem;
  color: var(--text-dim);
}
.legal-notice strong { color: var(--text); }
.legal-body { max-width: 720px; margin: 0 auto; }
.legal-body section { margin-bottom: 44px; }
.legal-body h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.legal-body h3 { font-size: 1.05rem; font-weight: 600; margin: 20px 0 8px; }
.legal-body p { margin-bottom: 12px; }
.legal-body ul { margin: 0 0 12px; padding-left: 20px; color: var(--text-dim); }
.legal-body li { margin-bottom: 6px; }
.legal-body a.inline-link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-placeholder {
  color: var(--accent);
  background: rgba(233, 78, 27, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.95em;
}
.legal-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .header-inner .btn-small.btn-primary { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .site-header { padding: 0 14px; }
  .header-inner { margin-top: 12px; padding: 12px 18px; }
  .story-bar { left: 14px; right: 14px; }
  .scroll-cue { opacity: 0.7; }

  .nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--card-border);
    padding: 8px 28px 20px;
  }
  .nav.is-open a { padding: 14px 0; border-bottom: 1px solid var(--card-border); }
  .nav.is-open a:last-child { border-bottom: none; }

  .mission-inner { grid-template-columns: 1fr; gap: 40px; }
  .leistungen-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-line { left: 20px; transform: none; }
  .timeline li,
  .timeline li:nth-of-type(even) {
    grid-template-columns: 40px 1fr;
    gap: 20px;
    padding: 32px 0;
  }
  .timeline-dot,
  .timeline li:nth-of-type(even) .timeline-dot { grid-column: 1; grid-row: 1 / 3; align-self: center; justify-self: start; margin-left: 13px; }
  .timeline-step-media,
  .timeline li:nth-of-type(even) .timeline-step-media { grid-column: 2; grid-row: 1; height: 180px; }
  .timeline-content,
  .timeline li:nth-of-type(even) .timeline-content { grid-column: 2; grid-row: 2; text-align: left; margin-top: 16px; }
  .timeline li:nth-of-type(even) .timeline-content p { margin-left: 0; }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .price-features { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }

  .cases-pin { height: auto; }
  .cases-track { display: block; width: auto; }
  .case-panel { grid-template-columns: 1fr; width: auto; max-width: none; margin: 0 0 64px; padding: 0 32px; gap: 24px; height: auto; align-content: center; }
  .case-panel:first-child { margin-left: 0; }
  .case-panel-media { height: 64vh; }
  .case-mockup-img { max-width: 80vw; max-height: 100%; }
}

@media (max-width: 720px) {
  .hero-foot { flex-direction: column; align-items: stretch; gap: 24px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .hero-photo { opacity: 0.4; }

  .mission, .problem, .leistungen, .ablauf, .preise, .team { padding: 90px 0; }
  .ergebnisse-intro { padding: 90px 0 60px; }
  .problem-resolve { margin-top: 48px; }

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

  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { flex-direction: column; }

  .team-card { height: 400px; }
  .team-card-front { flex-direction: column; text-align: center; }
  .team-card a { margin-left: auto; margin-right: auto; }

  .dialog-media { height: 26%; }
  .dialog-body { padding: 22px 24px 28px; }
  .dialog-body h3 { font-size: 1.4rem; margin-top: 10px; }
  .dialog-body p { margin-top: 12px; font-size: 0.95rem; line-height: 1.55; }
  .dialog-cta { margin-top: 18px; }

  .stats-inline { gap: 32px; }
  .polaroid-gallery { padding: 64px 0; }
  .polaroid { width: 148px; padding: 8px 8px 32px; }
  .polaroid figcaption { font-size: 0.8rem; bottom: 12px; }
  .polaroid-stack { gap: 4px; }
  .hl-line:not(:first-child) .hl-inner { padding-left: 0.3em; }

  .case-panel-media { height: 58vh; }
  .case-panel-content h4 { margin-top: 28px; }

  .whatsapp-float { width: 50px; height: 50px; right: 16px; bottom: 16px; }
  .btn-large { width: 100%; }
}
