/* =========================================================
   HERO: gemeinsame Basis (Bühne, Fußzeile, Fakten, Scroll-Hinweis)
   ========================================================= */
.hero { position: relative; }
.hero__stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
}

.hero__foot {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto;
  align-items: end;
  gap: 18px clamp(24px, 4vw, 64px);
  margin-top: auto;
}
.hero__lead { margin: 0; max-width: 38ch; font-size: var(--t-sub); line-height: 1.38; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.hero__facts {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--t-caption);
  font-weight: 600;
}
/* Farben folgen --fg, damit sie im Übergang zur roten Fläche lesbar bleiben. */
.hero__facts li { padding: 6px 12px; border: 1px solid currentColor; border-radius: var(--r-pill); border-color: color-mix(in srgb, currentColor 30%, transparent); }
.hero__facts strong { color: inherit; font-weight: 800; }
/* Google-Badge in der Fakten-Zeile: gleiche Höhe wie die Pills */
.hero__facts .hero__google { display: flex; padding: 0; overflow: hidden; background: #fff; }
.hero__google a { display: flex; align-items: center; padding: 3px 12px; }
.hero__google img { height: 25px; width: auto; }
.hero__foot > * { opacity: 0; transform: translateY(16px); }

.hero__scroll {
  position: absolute;
  z-index: 4;
  right: var(--gutter);
  top: calc(var(--header-h) + clamp(20px, 5vh, 64px) + 6px);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: opacity 0.8s var(--ease);
}
/* Nach dem ersten Scroll im Hero blendet der Hinweis sanft aus. */
.hero.has-scrolled .hero__scroll { opacity: 0; }
.hero__scroll-line { width: 44px; height: 2px; background: currentColor; transform-origin: left; animation: scrollLine 1.8s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
.hero.is-revealed .hero__scroll { opacity: 0; }

@media (max-width: 899px) {
  .hero__stage { min-height: 560px; }
  .hero__foot { grid-template-columns: 1fr; }
  .hero__actions { justify-content: flex-start; }
  .hero__actions .btn { flex: 1 1 220px; }
  .hero__facts { justify-content: center; }
  .hero__facts li:nth-child(n+4) { display: none; }
  .hero__scroll { display: none; }
}
@media (max-height: 700px) and (min-width: 900px) {
  .hero__facts { display: none; }
  /* Im Tape-Hero sitzen die Badges neben dem Text und bleiben auch bei niedrigen Fenstern. */
  .hero--tape .hero__facts { display: flex; }
}

/* =========================================================
   HERO: Text Ring Tape Roll (DE + SV) (assets/js/tape-hero.js)
   Kugel als WebGL-Canvas; der h1 ist unsichtbar und gibt nur die Landeplätze der Bänder vor.
   ========================================================= */
.hero--tape .hero__stage { background: var(--hero-bg); }
/* Volle Fensterbreite (inkl. Platz der Scrollleiste): Erscheint die Leiste bei der Freigabe, überdeckt sie nur
   den Rand; die Kugel ändert ihre Größe nicht und wird nicht neu aufgebaut. .hero__stage schneidet den Rest ab. */
.tape__stage { position: absolute; top: 0; bottom: 0; left: 0; width: 100vw; z-index: 1; }
.tape__stage canvas { display: block; cursor: grab; touch-action: none; }
.tape__stage canvas.is-dragging { cursor: grabbing; }
/* Nach der Freigabe scrollt Wischen die Seite, nicht die Kugel. */
.hero--tape.is-released .tape__stage canvas { cursor: default; touch-action: pan-y; }
.tape__source { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.tape__title {
  position: absolute;
  z-index: 2;
  left: clamp(20px, 4vw, 64px);
  bottom: var(--tape-bottom, clamp(28px, 9vh, 96px));
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3.6vw, 62px);
  /* Gleiche Laufweite wie das Band (dort ab 96 px gezeichnet), sonst sitzen die Striche versetzt. */
  font-optical-sizing: none;
  line-height: 1.08;
  letter-spacing: 0;
  color: transparent;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.tape__title > span { display: block; }
.tape__title .tape__red { display: inline; }
.tape__title mark { color: transparent; white-space: nowrap; }
.tape__title .rough-annotation { overflow: visible; }

.hero--tape .hero__foot {
  position: absolute;
  z-index: 3;
  left: clamp(20px, 4vw, 64px);
  right: var(--gutter);
  bottom: clamp(20px, 4vh, 44px);
  margin: 0;
  color: var(--ink);
  align-items: end;
  grid-template-rows: 1fr auto;
  transform: translateY(120%);
}
/* Rechts: Fakten oben, Buttons unten bündig mit der Unterkante des Textes. */
.hero--tape .hero__lead { grid-column: 1; grid-row: 1 / span 2; align-self: end; }
.hero--tape .hero__facts { grid-column: 2; grid-row: 1; align-self: end; justify-content: flex-end; }
.hero--tape .hero__actions { grid-column: 2; grid-row: 2; align-self: end; }

/* Handschrift-Anmerkung links neben dem Video (Desktop): Linie und Lage setzt tape-hero.js. */
/* 100vw wie .tape__stage: Die Scrollleiste bei der Freigabe darf die Zeichnung nicht stauchen (sonst springt die Linie). */
.hero__note { position: absolute; top: 0; left: 0; width: 100vw; height: 100%; z-index: 2; pointer-events: none; visibility: hidden; }
.hero__note.is-on { visibility: visible; }
.hero__note-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero__note-line { fill: none; stroke: var(--red); stroke-width: 2.5; stroke-linecap: butt; stroke-linejoin: round; }
.hero__note-line--2 { stroke-width: 1.6; opacity: 0.85; }
.hero__note-text {
  position: absolute;
  /* leicht schräg wie von Hand geschrieben */
  transform: translate(-100%, -50%) rotate(-4deg);
  transform-origin: 100% 50%;
  font-family: "Caveat", var(--font-text);
  font-weight: 500;
  font-size: clamp(1.5rem, 1.8vw, 2.1rem);
  line-height: 1;
  color: var(--red);
  white-space: nowrap;
  clip-path: inset(0 100% 0 0);
}
@media (max-width: 899px) {
  .hero__note { display: none; }
}

/* Fläche über dem Video: bei Hover erscheint „Unsere Videos“ (nicht auf Touch/mobil). */
.hero__dock { position: absolute; z-index: 3; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.hero--tape.is-revealed .hero__dock { pointer-events: auto; }
.hero__dock-btn {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.3s var(--ease), background-color 0.25s, color 0.25s;
}
.hero__dock:hover .hero__dock-btn,
.hero__dock-btn:focus-visible { opacity: 1; transform: none; }
/* Hover wie der große CTA im Ablauf: hoch und leicht gedreht; Farbe weiß mit roter Schrift. */
.hero__dock .hero__dock-btn:hover { background: var(--paper); color: var(--red); transform: translateY(-4px) rotate(-1deg); }
@media (max-width: 899px), (hover: none) {
  .hero__dock { display: none; }
}
@media (max-width: 899px) {
  .tape__title { left: 12px; font-size: clamp(32px, 8.6vw, 46px); }
}
/* Mobil: Titelzeilen sind an die Ringe gebunden und dadurch klein; die Subline bleibt darunter. */
@media (max-width: 899px) {
  .hero--tape .hero__foot { grid-template-rows: auto; }
  .hero--tape .hero__lead { grid-column: 1; grid-row: 1; font-size: 1rem; }
  .hero--tape .hero__facts { grid-column: 1; grid-row: 2; justify-content: flex-start; }
  .hero--tape .hero__actions { grid-column: 1; grid-row: 3; justify-content: flex-start; }
  /* Google-Bewertung bleibt, „15 Jahre“ weicht, wenn der Platz knapp wird. */
  .hero--tape .hero__facts li:nth-child(n+4) { display: flex; }
  .hero--tape .hero__facts li:first-child { display: none; }
}
/* Unter 400 px nur „1.000+ Filme“ und Google, beide über die Zeile verteilt. */
@media (max-width: 400px) {
  .hero--tape .hero__facts { flex-wrap: nowrap; justify-content: stretch; width: 100%; }
  .hero--tape .hero__facts li:nth-child(3) { display: none; }
  .hero--tape .hero__facts li:nth-child(2),
  .hero--tape .hero__facts li:nth-child(4) {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    gap: 0.3em;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
  }
  .hero--tape .hero__facts .hero__google a { width: 100%; justify-content: center; }
}

/* Header und Fortschritt erscheinen erst, wenn die Bänder fast gelandet sind. */
.site-header { transition: border-color 0.3s, box-shadow 0.3s, height 0.4s var(--ease), opacity 0.7s var(--ease), transform 0.8s var(--ease), visibility 0s; }
html:has(.hero--tape:not(.is-revealed)) .site-header,
html:has(.hero--tape:not(.is-revealed)) .progress { opacity: 0; visibility: hidden; transform: translateY(-100%); transition-delay: 0s, 0s, 0s, 0s, 0s, 0.8s; }

/* Ohne WebGL oder Video: Titel als normaler Text, Fußzeile sofort sichtbar. */
.hero--tape.is-fallback .tape__title { color: var(--ink); white-space: normal; bottom: auto; top: calc(var(--header-h) + 6vh); right: var(--gutter); }
.hero--tape.is-fallback .tape__title .tape__red { color: var(--red); }
.hero--tape.is-fallback .hero__foot { color: var(--ink); transform: none; }.hero--tape.is-fallback .hero__foot > * { opacity: 1; transform: none; }

/* =========================================================
   ABLAUF (rot, Sticky-Visual + Schritte)
   ========================================================= */
.ablauf { color: var(--fg); }
.ablauf__pin {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 96px);
  padding: var(--space-xl) var(--gutter) var(--space-l);
}
.ablauf__visual {
  position: sticky;
  top: calc(var(--header-h) + 4vh);
  height: calc(100svh - var(--header-h) - 8vh);
  max-height: 760px;
}
.ablauf__frame {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
}
.ablauf__frame.is-on { opacity: 1; visibility: visible; }

/* Schritt 1: Telefonat-Foto im Querformat, Termin-Plakette oben, Notiz überlappt unten links. */
.ablauf__call { display: flex; align-items: center; }
.ablauf__call-media { position: relative; width: 100%; }
.ablauf__call img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 62% 40%;
  border-radius: var(--r-card);
  box-shadow: 0 40px 80px -40px rgba(58, 18, 28, 0.6);
}
.ablauf__slot {
  position: absolute;
  /* links oben: Michaels Kopf sitzt rechts im Bild */
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--red-deep);
  font-size: var(--t-caption);
  font-weight: 700;
  box-shadow: 0 12px 24px -12px rgba(58, 18, 28, 0.5);
}
/* CTA mittig unter dem Foto: führt zum Kontaktformular */
.ablauf__call { flex-direction: column; justify-content: center; gap: 24px; }
.ablauf__call-cta { box-shadow: 0 16px 32px -16px rgba(58, 18, 28, 0.55); }

.ablauf__styles figure {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(32%, 30vh);
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--paper);
  box-shadow: 0 24px 50px -24px rgba(58, 18, 28, 0.6);
  transform: translate(-50%, -50%);
}
.ablauf__styles img { width: 100%; height: 100%; object-fit: cover; }
.ablauf__styles figcaption {
  position: absolute;
  left: 10px; bottom: 10px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--paper);
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ablauf__prod { display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.ablauf__prod video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-card); background: var(--paper); }
.ablauf__checks { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ablauf__checks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: rgba(251, 246, 243, 0.16);
  font-size: var(--t-caption);
  font-weight: 600;
  transition: background-color 0.3s, color 0.3s;
}
.ablauf__checks li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; transition: background-color 0.3s; }
.ablauf__checks li.is-done { background: var(--paper); color: var(--red-deep); }
.ablauf__checks li.is-done::before { background: var(--red); border-color: var(--red); }

.ablauf__text { padding-top: 4vh; }
/* Desktop: großer CTA mittig unter der Sektion (außerhalb des Sticky-Bereichs); mobil bleibt der Button im Text. */
.ablauf__cta { display: flex; justify-content: center; padding: 0 var(--gutter) var(--space-xl); }
@media (min-width: 900px) {
  .ablauf__cta-mobile { display: none !important; }
}
@media (max-width: 899px) {
  .ablauf__cta { display: none; }
}
.ablauf__text .h2 { margin-bottom: var(--space-l); }

.steps-wrap { position: relative; padding-left: clamp(28px, 3vw, 48px); margin-bottom: var(--space-l); }
.ablauf__rail { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: rgba(251, 246, 243, 0.25); }
.ablauf__rail-fill { position: absolute; inset: 0; background: var(--paper); transform: scaleY(0); transform-origin: top; }
/* Nullpunkt auf der Schiene: Punkt darauf, Label senkrecht links im Spalt. */
.ablauf__here { position: absolute; left: 1px; top: 0; width: 0; height: 0; }
.ablauf__here::after {
  content: "";
  position: absolute;
  left: -6px; top: -6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 5px rgba(251, 246, 243, 0.3);
}
/* Fortschritt der Sektion in Prozent, waagrecht links neben dem Punkt; feste Breite, damit die Zahl nicht springt. */
.ablauf__here-label {
  position: absolute;
  right: 14px;
  top: 0;
  min-width: 4.2ch;
  white-space: nowrap;
  transform: translateY(-50%);
  font-size: var(--t-caption);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
@media (max-width: 899px) {
  .ablauf__here-label { display: none; }
}

.steps { margin: 0; padding: 0; list-style: none; }
.step {
  /* Desktop: viel Scrollweg je Schritt, damit das Visual links in Ruhe wechselt (Schritt 3 hat eigene Regel). */
  min-height: 85svh;
  padding: 12px 0 var(--space-l);
  opacity: 0.38;
  transition: opacity 0.5s var(--ease);
}
.step.is-active { opacity: 1; }
/* Desktop: Schritt-Text pinnt kurz mittig neben seinem Visual; links läuft die Animation weiter (--pin-top aus sections.js). */
@media (min-width: 900px) {
  .step__body { position: sticky; top: var(--pin-top, 30vh); }
}
/* Letzter Schritt bleibt lange stehen, damit die Produktionsphasen in Ruhe abgehakt werden. */
.step:last-child { min-height: 95svh; padding-bottom: var(--space-m); }
.step__num { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; font-weight: 700; font-size: var(--t-caption); letter-spacing: 0.1em; }
.step__time { padding: 4px 10px; border-radius: var(--r-pill); background: rgba(251, 246, 243, 0.16); letter-spacing: 0.02em; font-weight: 600; }
.step__title { margin: 0 0 18px; font-family: var(--font-display); font-weight: 800; font-size: var(--t-h3); letter-spacing: 0.03em; line-height: 1.05; }
.step__who { display: grid; gap: 12px; margin: 0; max-width: 46ch; }
.step__who div { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: baseline; }
.step__who dt {
  justify-self: start;
  padding: 3px 9px;
  border-radius: var(--r-btn);
  background: var(--paper);
  color: var(--red-deep);
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.step__who div + div dt { background: var(--ink); color: var(--paper); }
.step__who dd { margin: 0; }

@media (max-width: 899px) {
  .ablauf__pin { grid-template-columns: 1fr; gap: 24px; padding-top: var(--space-l); }
  .ablauf__visual {
    top: var(--header-h);
    z-index: 2;
    /* Hoch genug für Video plus zwei Badge-Zeilen, sonst ragt „Projekt starten“ in die Badges. */
    height: calc(36svh + 108px);
    margin: 0 calc(-1 * var(--gutter));
    padding: 12px var(--gutter);
    background: var(--bg);
    order: 2;
    /* Sticky endet um die Button-Höhe früher: löst sich, wenn Button-Oberkante die Unterkante trifft. */
    margin-bottom: var(--ab-tail, 52px);
  }
  .steps-wrap { margin-top: calc(-1 * var(--ab-tail, 52px)); }
  .ablauf__frame { inset: 12px var(--gutter); }
  .ablauf__styles figcaption { left: 6px; bottom: 6px; padding: 3px 6px; font-size: 9px; letter-spacing: 0.04em; }
  .ablauf__text { display: contents; }
  .ablauf__text > .eyebrow, .ablauf__text > .h2 { order: 1; margin-bottom: 0; }
  .ablauf__text .h2 { margin-bottom: 8px; }
  .steps-wrap { order: 3; }
  .ablauf__text > .btn { order: 4; justify-self: center; }
  .step { min-height: 46svh; }
  .step:last-child { min-height: 52svh; padding-bottom: var(--space-s); }
  .ablauf__call-media { height: 100%; }
  .ablauf__call img { aspect-ratio: auto; height: 100%; }
  .ablauf__slot { top: 10px; left: 10px; padding: 6px 10px; font-size: var(--t-micro); }
  /* Mobil ist der Rahmen niedrig: CTA liegt unten mittig auf dem Foto */
  .ablauf__call { gap: 0; }
  .ablauf__call-cta { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); min-height: 42px; padding: 0 16px; font-size: 0.875rem; white-space: nowrap; }
  .ablauf__call-cta:hover { transform: translateX(-50%) translateY(-2px); }
  .ablauf__styles figure { width: 30%; }
}

/* =========================================================
   ARBEITEN: Scroll Flight
   ========================================================= */
.arbeiten__pin {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.flight__gl { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.flight__gl.is-hover { cursor: pointer; }
.flight__fog {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--paper) 0, var(--paper) var(--fog-a, 250px), rgba(251, 246, 243, 0) var(--fog-b, 520px));
  opacity: 0;
  pointer-events: none;
}
.arbeiten__head {
  position: absolute;
  z-index: 2;
  top: calc(var(--header-h) + clamp(16px, 4vh, 48px));
  left: var(--gutter);
  right: var(--gutter);
  pointer-events: none;
}
.arbeiten__head .h2 { max-width: 14ch; }

.focus {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  bottom: clamp(20px, 4vh, 44px);
  width: min(380px, calc(100% - 2 * var(--gutter)));
  padding: 18px 20px 20px;
  border-radius: var(--r-card);
  background: var(--paper);
  color: var(--ink);
  border: var(--line);
  box-shadow: 0 20px 40px -24px rgba(58, 18, 28, 0.45);
}
.focus-pin {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 74%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transform: translate(-50%, -100%);
  pointer-events: none;
  opacity: 0;
}
.focus-pin span {
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: var(--red);
  color: var(--paper);
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px -6px rgba(58, 18, 28, 0.6);
}
.focus-pin::after { content: ""; width: 2px; height: 22px; background: var(--red); }
.focus__label { display: flex; justify-content: space-between; margin: 0 0 6px; font-size: var(--t-micro); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
/* Titel immer zwei Zeilen hoch: Karte springt beim Wechsel nicht. */
.focus__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; height: 2.2em; margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: 0.03em; line-height: 1.1; }
/* Themenbeschreibung: feste Höhe von zwei Zeilen, damit die Karte beim Wechsel nicht springt. */
.focus__meta { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; height: 2.8em; margin: 6px 0 14px; font-size: var(--t-caption); line-height: 1.4; opacity: 0.8; }
.focus__label span:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding-right: 12px; }
.focus__label span:last-child { flex: none; font-variant-numeric: tabular-nums; }
@media (max-width: 899px) {
  .focus { left: 50%; transform: translateX(-50%); }
  .focus { padding: 12px 14px 14px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 12px; }
  .focus__label { grid-column: 1 / -1; }
  .focus__title { font-size: 1.1rem; }
  .focus__meta { display: none; }
  .focus .btn { grid-row: 2; grid-column: 2; align-self: center; }
}

.flight__fallback {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(140px, 22vh, 220px);
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0 var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  list-style: none;
}
.arbeiten.is-fallback .focus, .arbeiten.is-fallback .focus-pin { display: none; }
.arbeiten.is-fallback .flight__fallback { bottom: var(--space-l); }
.arbeiten.is-fallback .arbeiten__pin { padding-bottom: calc(var(--space-l) + 32vh); }
.flight__fallback li { flex: 0 0 min(72vw, 420px); scroll-snap-align: start; }
.flight__fallback button { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.flight__fallback img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.flight__fallback span { display: block; margin-top: 8px; font-weight: 600; }
.arbeiten.is-fallback .flight__gl, .arbeiten.is-fallback .flight__fog { display: none; }
.arbeiten.is-fallback .arbeiten__pin { height: auto; min-height: 100svh; }

/* =========================================================
   STIMMEN
   ========================================================= */
.stimmen { padding: var(--space-xl) 0 var(--space-l); color: var(--fg); }
.stimmen__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 120px);
  padding: 0 var(--gutter);
  align-items: start;
}
.bignum { font-size: clamp(5.5rem, 15vw, 17rem); line-height: 0.85; color: var(--red); letter-spacing: 0; }
.stimmen__sub { margin: 18px 0 32px; font-size: var(--t-sub); font-weight: 600; line-height: 1.3; }
.awards { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.award {
  display: grid;
  place-items: center;
  height: 104px;
  padding: 10px 16px;
  border-radius: var(--r-card);
  background: #fff;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.3s var(--ease);
}
a.award:hover { transform: translateY(-3px) rotate(-1deg); }
.award img { height: 84px; width: auto; max-width: none; }
.award--tall { padding: 6px 10px; }
.award--google img { height: 52px; }

/* Odometer: jede Ziffer ist eine Rolle 0–9 */
.bignum { display: flex; align-items: flex-start; }
.odo__col { display: inline-block; height: 0.85em; overflow: hidden; }
.odo__reel { display: flex; flex-direction: column; align-items: center; }
.odo__reel span, .odo__static { display: block; height: 0.85em; line-height: 0.85; }

.quotes { padding-top: clamp(0px, 3vw, 48px); }
.quotes__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.quotes__tabs button {
  padding: 8px 14px;
  border: 1px solid var(--ink);
  border-radius: var(--r-pill);
  background: transparent;
  font-size: var(--t-caption);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}
.quotes__tabs button[aria-selected="true"], .quotes__tabs button:hover { background: var(--ink); color: var(--paper); }
.quote { margin: 0; }
.quote p { margin: 0 0 20px; font-size: clamp(1.5rem, 2.3vw, 2.6rem); font-weight: 500; line-height: 1.28; letter-spacing: -0.01em; }
.quote footer { font-size: var(--t-caption); font-weight: 600; opacity: 0.8; }

.logos { margin-top: var(--space-l); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logos__track { display: flex; align-items: center; gap: clamp(32px, 5vw, 80px); width: max-content; animation: logos 40s linear infinite; }
/* Kundenlogos (Originalfarbe, 256 px hoch): standardmäßig dunkel in Graustufen, Hover blendet weich in die Originalfarbe.
   Breite Wortmarken werden in der Breite begrenzt (object-fit), damit alle optisch ähnlich groß wirken. */
.logos img {
  height: clamp(44px, 4.6vw, 68px);
  width: auto;
  max-width: clamp(130px, 13vw, 210px);
  object-fit: contain;
  filter: grayscale(1) brightness(0.82) contrast(1.25);
  opacity: 0.8;
  transition: filter 0.5s var(--ease), opacity 0.5s var(--ease);
}
.logos img:hover { filter: grayscale(0) brightness(1) contrast(1); opacity: 1; }
.logos:hover .logos__track { animation-play-state: paused; }
@keyframes logos { to { transform: translateX(-50%); } }

@media (max-width: 899px) {
  .stimmen__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   WISSEN & CASE STUDIES
   ========================================================= */
.wissen { position: relative; padding: var(--space-xl) var(--gutter) var(--space-l); color: var(--fg); }
.wissen__head { margin-bottom: var(--space-l); }

.cases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); margin: 0 0 var(--space-l); padding: 0; list-style: none; }
.case { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.case img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--r-card);
  transition: transform 0.6s var(--ease), box-shadow 0.4s;
}
.case:hover img { transform: translateY(-4px) scale(1.015); box-shadow: 0 22px 40px -24px rgba(58, 18, 28, 0.55); }
.case__tag { font-size: var(--t-micro); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.case__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.15rem, 1.3vw, 1.5rem); letter-spacing: 0.02em; line-height: 1.15; }
.case:hover .case__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.articles { margin: 0 0 var(--space-m); padding: 0; list-style: none; border-top: 1px solid var(--pencil); }
.articles li { border-bottom: 1px solid var(--pencil); }
.article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(16px, 2vw, 26px) 0;
  text-decoration: none;
}
.article__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 2.8rem); letter-spacing: 0.02em; line-height: 1.05; transition: transform 0.45s var(--ease), color 0.3s; }
.article i { flex: none; font-size: 1.2rem; color: var(--red); transition: transform 0.45s var(--ease); }
.article:hover .article__title { transform: translateX(12px); color: var(--red); }
.article:hover i { transform: translateX(6px) rotate(-45deg); }
/* fixed statt absolute: folgt der Maus, ohne die Seite seitlich zu verbreitern */
.article-preview {
  position: fixed;
  z-index: 50;
  top: 0; left: 0;
  width: clamp(200px, 20vw, 300px);
  aspect-ratio: 705 / 463;
  overflow: hidden;
  border-radius: 10px;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.25s, transform 0.35s var(--ease);
  box-shadow: 0 20px 40px -20px rgba(58, 18, 28, 0.5);
}
.article-preview.is-on { opacity: 1; transform: scale(1); }
.article-preview img { width: 100%; height: 100%; object-fit: cover; }
.wissen__all { margin-top: 8px; }

@media (max-width: 899px) {
  .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-m); margin-bottom: var(--space-xl); }
  .article-preview { display: none; }
}
@media (max-width: 480px) {
  .cases { grid-template-columns: 1fr; row-gap: var(--space-l); }
}

/* =========================================================
   FAQ
   ========================================================= */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 120px);
  padding: var(--space-l) var(--gutter) var(--space-xl);
  color: var(--fg);
}
.faq__head { align-self: start; position: sticky; top: calc(var(--header-h) + 32px); }
.faq__list { border-top: 1px solid var(--pencil); }
.faq__item { border-bottom: 1px solid var(--pencil); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.15rem, 1.5vw, 1.6rem);
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--red);
  font-size: 15px;
  transition: transform 0.45s var(--ease), background-color 0.3s, color 0.3s;
}
.faq__item summary:hover i { background: var(--red); color: var(--paper); }
.faq__item[open] summary i { transform: rotate(135deg); background: var(--red); color: var(--paper); }
.faq__body { overflow: hidden; }
.faq__body p { margin: 0 0 16px; max-width: 62ch; }
.faq__body a { color: var(--red); font-weight: 600; }

@media (max-width: 899px) {
  .faq { grid-template-columns: 1fr; }
  .faq__head { position: static; }
}

/* =========================================================
   KONTAKT
   ========================================================= */
.kontakt { padding: var(--space-xl) var(--gutter) var(--space-l); color: var(--fg); }
.kontakt__head { margin-bottom: var(--space-l); }
.kontakt__lead { margin: 18px 0 0; font-size: var(--t-sub); }
.toggle button i { margin-right: 6px; font-size: 0.9em; }

.kontakt__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(16px, 2vw, 28px); align-items: start; }
.path { display: flex; flex-direction: column; gap: 16px; }
.path p { margin: 0; }
.path__num { font-size: var(--t-micro); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.path__title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: var(--t-h3); letter-spacing: 0.03em; line-height: 1.05; }
/* Konfigurator-Vorschau: echte Screens der 5 Schritte, wechseln automatisch */
.konfig { display: grid; gap: 10px; }
.konfig__screen {
  position: relative;
  aspect-ratio: 880 / 528;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(58, 18, 28, 0.12), 0 14px 30px -20px rgba(58, 18, 28, 0.5);
}
.konfig__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity 0.6s ease, transform 1.2s var(--ease); }
.konfig__screen img.is-on { opacity: 1; transform: none; }
.konfig__steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: k; }
.konfig__steps button {
  position: relative;
  padding: 6px 10px 6px 30px;
  border: 1px solid var(--pencil);
  border-radius: var(--r-pill);
  background: transparent;
  font-size: var(--t-micro);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.konfig__steps li { counter-increment: k; }
.konfig__steps button::before {
  content: counter(k);
  position: absolute;
  left: 5px; top: 50%;
  display: grid;
  place-items: center;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--red-deep);
  font-size: 10px;
  transform: translateY(-50%);
}
.konfig__steps button[aria-current="step"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.konfig__steps button[aria-current="step"]::before { background: var(--red); color: var(--paper); }
.path > .btn { align-self: flex-start; }

.toggle {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-self: flex-start;
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--blush);
}
.toggle button {
  position: relative;
  z-index: 1;
  padding: 10px 18px;
  border: 0;
  background: none;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: color 0.3s;
}
html[lang="sv"] .toggle button,
html[lang="sv"] .hero__actions .btn { white-space: nowrap; }
.toggle button[aria-selected="true"] { color: var(--paper); }
.toggle__thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: var(--r-pill); background: var(--red); }

.forms { position: relative; }
.form { display: grid; gap: 16px; }
.form__group { margin: 0; padding: 0; border: 0; }
.form__group legend { margin-bottom: 8px; font-weight: 700; font-size: var(--t-caption); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  min-width: 64px;
  padding: 8px 10px;
  border: 1px solid var(--pencil);
  border-radius: var(--r-btn);
  background: var(--paper);
  font-size: var(--t-caption);
  font-weight: 600;
  line-height: 1.15;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.chip small { display: block; font-weight: 500; opacity: 0.7; }
.chip:hover { border-color: var(--ink); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--paper); }
.chips--time .chip { min-width: 0; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; font-size: var(--t-caption); font-weight: 600; }
.field em { font-style: normal; font-weight: 500; opacity: 0.6; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--pencil);
  border-radius: var(--r-btn);
  background: #fff;
  font: inherit;
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select {
  appearance: none;
  padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233a121c' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
  cursor: pointer;
}
.field select:focus,
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(216, 23, 74, 0.15); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--red); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-caption); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--red); }
.check.is-invalid { color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .btn { justify-self: start; }
.form__note { margin: 0; min-height: 1.5em; font-size: var(--t-caption); font-weight: 600; color: var(--red-deep); }

.kontakt__direct { display: flex; align-items: center; gap: 14px; margin: var(--space-m) 0 0; font-weight: 600; }
.kontakt__direct img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.kontakt__direct a { text-underline-offset: 3px; }

@media (max-width: 899px) {
  .kontakt__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  /* Mobil: Haupt-Buttons zentriert in voller Breite */
  .form .btn, .path > .btn { justify-self: stretch; width: 100%; }
}

/* =========================================================
   PLAYER
   ========================================================= */
.player {
  width: min(1200px, 94vw);
  max-width: none;
  max-height: 94svh;
  padding: 0;
  border: 0;
  border-radius: var(--r-card);
  background: var(--ink);
  color: var(--paper);
  overflow: visible;
}
.player::backdrop { background: rgba(58, 18, 28, 0.82); backdrop-filter: blur(4px); }
.player__inner { position: relative; }
.player__video { width: 100%; aspect-ratio: 16 / 9; height: auto; max-height: 80svh; border-radius: var(--r-card) var(--r-card) 0 0; background: #000; }
.player__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 16px 20px 18px; }
.player__title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; letter-spacing: 0.03em; }
.player__meta { margin: 2px 0 0; font-size: var(--t-caption); opacity: 0.7; }
.player__close {
  position: absolute;
  top: -18px; right: -18px;
  z-index: 2;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: var(--paper);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
@media (max-width: 640px) {
  .player__close { top: 8px; right: 8px; }
}
