/* Made for Mobile — Entwurf 4. Hell wie Attio, dunkle Abschnitte wie Vercel, App-Screens mit Ausblendung wie Linear.
   Bewusste Abweichungen von design-taste-frontend (1px-Linien, Schatten an Produktfenstern, Masken-Verläufe,
   unscharfe Kopfleiste): Steven hat genau diese Referenzen gewählt (design-refs/vercel-attio.md). */

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-2: #fafafa;
  --surface: #f4f4f5;
  --line: rgb(10 10 10 / 0.08);
  --line-2: rgb(10 10 10 / 0.14);
  --ink: #0a0a0a;
  --ink-2: #3f3f46;
  --muted: #6e6e77;

  --d-bg: #0a0a0a;
  --d-surface: #111113;
  --d-line: #232326;
  --d-line-2: #34343a;
  --d-ink: #ededed;
  --d-muted: #a1a1aa;
  --d-field: #6a6a73;
  --error: #f87171;

  --wrap: 1200px;
  --pad: clamp(20px, 4vw, 40px);
  --section: clamp(96px, 11vw, 160px);

  --fs-h1: clamp(2.25rem, 5vw, 4rem);
  --fs-h2: clamp(1.875rem, 3.4vw, 3rem);
  --fs-lead: 1.125rem;
  --fs-body: 1rem;
  --fs-sm: 0.875rem;

  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  scrollbar-color: #d4d4d8 var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--fs-body) / 1.6 "Geist", system-ui, sans-serif;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: currentColor;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

::selection { background: var(--ink); color: #fff; }
.dark ::selection { background: var(--d-ink); color: var(--d-bg); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible { outline-color: var(--d-ink); }

.defs { position: absolute; }
.wrap { width: min(100% - 2 * var(--pad), var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute;
  top: -100px;
  left: var(--pad);
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: var(--ink);
  color: #fff;
  font-size: var(--fs-sm);
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.3s var(--ease);
}
.btn:active { transform: scale(0.97); transition-duration: 0.1s; }
.btn--sm { height: 34px; padding: 0 12px; }
.btn--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--dark:hover { background: #27272a; border-color: #27272a; }
.btn--light { background: var(--bg); border-color: var(--line-2); color: var(--ink); }
.btn--light:hover { background: var(--surface); }
.btn--white { background: var(--d-ink); color: var(--d-bg); }
.btn--white:hover { background: #fff; }
.btn--ghost { background: transparent; border-color: var(--d-line-2); color: var(--d-ink); }
.btn--ghost:hover { background: #18181b; }
.btn__icon { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn:hover .btn__icon { transform: translateX(2px); }

/* Navigation ------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(12px); /* taste-skill-ignore: Referenz Vercel/Attio */
  backdrop-filter: saturate(180%) blur(12px); /* taste-skill-ignore: Referenz Vercel/Attio */
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav { transition: border-color 0.3s ease, background-color 0.3s ease; }
.nav.is-dark { background: rgb(10 10 10 / 0.82); border-bottom-color: var(--d-line); }
.nav.is-dark .brand__logo { color: var(--d-ink); }
.nav.is-dark .nav__links a { color: var(--d-muted); }
.nav.is-dark .nav__links a:hover { color: var(--d-ink); }
.nav.is-dark .lang { background: transparent; border-color: var(--d-line-2); color: var(--d-ink); }
.nav.is-dark .lang:hover { background: #18181b; }
.nav.is-dark .btn--dark { background: var(--d-ink); border-color: var(--d-ink); color: var(--d-bg); }
.nav.is-dark .btn--dark:hover { background: #fff; border-color: #fff; }
.nav.is-dark :focus-visible { outline-color: var(--d-ink); }
.nav.is-dark .menu :focus-visible { outline-color: var(--ink); }
.brand__logo, .nav__links a, .lang, .btn { transition-property: background-color, border-color, color, transform; }
.nav__in { height: 64px; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; padding: 4px 0; border-radius: 4px; }
.brand__logo { width: 62px; height: 17px; color: var(--ink); }
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang {
  height: 34px;
  min-width: 38px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--ink-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.3s var(--ease);
}
.lang:hover { background: var(--surface); }
.lang:active { transform: scale(0.95); }

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
}
.menu-btn svg { width: 18px; height: 18px; }
.menu-btn__close,
.menu-btn[aria-expanded="true"] .menu-btn__open { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__close { display: inline; }
.nav.is-dark .menu-btn { background: transparent; border-color: var(--d-line-2); color: var(--d-ink); }
.menu {
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.menu a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.menu a:last-child { border-bottom: 0; }
.menu:not([hidden]) { animation: drop 0.35s var(--ease) both; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* Hero ------------------------------------------------------------------- */

.hero { padding-top: clamp(64px, 8vw, 112px); }
.hero__in { display: grid; justify-items: center; text-align: center; }
.hero__title {
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.hero__title span { display: block; }
.tone { color: var(--muted); }
.dark .tone { color: var(--d-muted); }
.hero__lead {
  max-width: 34rem;
  margin-top: 24px;
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Bühne ohne Rahmen: die Screens laufen unten direkt in die Seite aus. Mitte vorn, die Seiten gestaffelt dahinter. */
.stage {
  height: clamp(440px, 46vw, 640px);
  margin-top: clamp(40px, 5vw, 64px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 98%); /* taste-skill-ignore: Ausblendung wie Linear */
  mask-image: linear-gradient(to bottom, #000 40%, transparent 98%); /* taste-skill-ignore: Ausblendung wie Linear */
}
.stage__row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
}
.stage__row li {
  --w: clamp(130px, 13.5vw, 188px);
  --dy: 72px;
  --fx: 0px;
  flex: none;
  z-index: 1;
  width: var(--w);
  margin-top: var(--dy);
  animation: fan 1.2s var(--ease) both;
  animation-delay: 0.38s;
}
.stage__row li + li { margin-left: calc(-1 * clamp(16px, 2.4vw, 36px)); }
.stage__row li:nth-child(2),
.stage__row li:nth-child(4) { --w: clamp(160px, 16.5vw, 232px); --dy: 36px; z-index: 2; animation-delay: 0.24s; }
.stage__row li:nth-child(3) { --w: clamp(200px, 20.5vw, 290px); --dy: 0px; z-index: 3; animation-delay: 0.1s; }
.stage__row li:nth-child(1) { --fx: 150px; }
.stage__row li:nth-child(2) { --fx: 75px; }
.stage__row li:nth-child(4) { --fx: -75px; }
.stage__row li:nth-child(5) { --fx: -150px; }
.stage__row img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line-2);
  border-radius: clamp(20px, 2.2vw, 30px);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 22px 44px -20px rgb(0 0 0 / 0.28); /* taste-skill-ignore: Produktfenster wie in den Referenzen */
}
.stage__row li:nth-child(3) img { box-shadow: 0 2px 4px rgb(0 0 0 / 0.05), 0 36px 72px -24px rgb(0 0 0 / 0.38); } /* taste-skill-ignore: Produktfenster wie in den Referenzen */
@keyframes fan { from { opacity: 0; transform: translate(var(--fx), 56px) scale(0.94); } }
@keyframes rise { from { opacity: 0; transform: translateY(32px); } }

/* Beim Scrollen fächern die Screens leicht auf; nur wo der Browser scroll-gebundene Animation kann. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .stage__row img {
      animation: spread linear both;
      animation-timeline: scroll(root);
      animation-range: 0 75vh;
    }
  }
}
.stage__row li:nth-child(1) img { --sx: -56px; --sy: 28px; }
.stage__row li:nth-child(2) img { --sx: -28px; --sy: 14px; }
.stage__row li:nth-child(3) img { --sy: -12px; }
.stage__row li:nth-child(4) img { --sx: 28px; --sy: 14px; }
.stage__row li:nth-child(5) img { --sx: 56px; --sy: 28px; }
@keyframes spread { to { transform: translate(var(--sx, 0), var(--sy, 0)); } }

.proof { margin-top: 48px; text-align: center; }
.proof__label { font-size: var(--fs-sm); color: var(--muted); }
.proof__list { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 32px; }
.proof__list li { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); }
.proof__list img { width: 24px; height: 24px; border-radius: 6px; }

/* Abschnitte ------------------------------------------------------------- */

.section { padding-block: var(--section); }
.dark { background: var(--d-bg); color: var(--d-ink); }
.head {
  max-width: 24em;
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* Leistungen */
.cols {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.col { padding: 32px 32px 0 0; }
.col + .col { padding-left: 32px; border-left: 1px solid var(--line); }
.col h3 { font-size: var(--fs-lead); font-weight: 600; letter-spacing: -0.02em; }
.col > p { margin-top: 8px; color: var(--muted); }
.ticks { margin-top: 24px; display: grid; gap: 10px; }
.ticks li { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); color: var(--ink-2); }
.ticks li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.3 2.3 2.3 4.7-5' fill='none' stroke='%230a0a0a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Arbeiten: links die Apps als Liste, rechts drei Screens der aktiven App. Ohne Eingriff wechselt die Auswahl, wenn der Balken abgelaufen ist. */
.work { overflow-x: clip; padding-top: clamp(64px, 6vw, 88px); } /* das Leuchten darf nicht seitlich aus der Seite ragen */
.show { margin-top: clamp(32px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.show__list { border-top: 1px solid var(--d-line); }
.show__item { border-bottom: 1px solid var(--d-line); }
.show__btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border: 0;
  background: none;
  color: var(--d-muted);
  text-align: left;
  cursor: pointer;
}
.show__btn img { flex: none; width: 36px; height: 36px; border-radius: 9px; opacity: 0.7; transition: opacity 0.3s ease, transform 0.5s var(--ease); }
.show__name { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em; transition: color 0.3s ease; }
.show__kind { margin-left: auto; padding-left: 12px; font-size: var(--fs-sm); color: #8a8a93; }
.show__btn:hover .show__name,
.is-active .show__name { color: var(--d-ink); }
.show__btn:hover img,
.is-active .show__btn img { opacity: 1; }
.is-active .show__btn img { transform: scale(1.08); }
.show__btn:active img { transform: scale(0.94); }
.show__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.show__more > div { overflow: hidden; padding-left: 50px; }
.is-active .show__more { grid-template-rows: 1fr; }
.show__text { max-width: 40ch; color: #c4c4cb; }
.show__cap { display: none; } /* nur auf dem Handy, dort steht die Liste als Logo-Reihe */
.show__bar { position: relative; display: block; height: 2px; margin: 16px 0 18px; overflow: hidden; border-radius: 1px; background: var(--d-line); }
.show__bar::after { content: ""; position: absolute; inset: 0; background: var(--d-ink); transform: scaleX(0); transform-origin: left; }
.show.is-running .is-active .show__bar::after { animation: bar 6s linear forwards; }
/* Nach einem Klick bleibt die App stehen, bis die Maus den Abschnitt verlässt. */
.show.is-pinned .is-active .show__bar::after { animation-play-state: paused; }
/* Bei reduzierter Bewegung wechselt nichts von selbst; der Balken entfällt, gewählt wird per Klick. */
@media (prefers-reduced-motion: reduce) { .show__bar { display: none; } }
@keyframes bar { to { transform: scaleX(1); } }

/* Rechts: echte Screens der aktiven App. Beim Wechsel zieht die alte App ihre Screens ein und geht in Listenrichtung ab (--dir), die neue kommt von der Gegenseite nach. */
.show__stage { display: grid; }
.show__slide {
  position: relative;
  grid-area: 1 / 1;
  isolation: isolate;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(calc(var(--dir, 1) * -24px)) scale(0.97);
  transition: opacity 0.3s ease 0.1s, transform 0.4s ease-in;
}
.show__slide.is-entering { transform: translateY(calc(var(--dir, 1) * 40px)) scale(0.95); transition: none; }
.show__slide.is-active { opacity: 1; transform: none; transition: opacity 0.45s ease 0.18s, transform 0.85s var(--ease) 0.18s; }
.show__slide::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 42%;
  left: 50%;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 40%, transparent), transparent);
  translate: -50% -50%;
  pointer-events: none; /* reicht auf dem Handy über die Logos und darf Tipps nicht abfangen */
}
.show__slide--icon { align-content: center; }
.show__icon { width: 168px; height: auto; border-radius: 38px; }

/* Drei echte Screens je App, leicht überlagert. Die seitlichen liegen hinter dem Hauptscreen und kommen dahinter hervor, sobald die App aktiv und der Abschnitt im Bild ist. */
.trio {
  --m: clamp(200px, (100vh - 330px) * 0.46, 240px);
  --side: 0.84;
  --lap: 0.14;
  --x: calc(var(--m) * (0.5 + var(--side) / 2 - var(--lap))); /* Abstand der Mitten */
  --turn: cubic-bezier(0.32, 0.72, 0, 1);
  position: relative;
  display: grid;
  width: var(--m);
}
.trio img {
  grid-area: 1 / 1;
  z-index: 1;
  width: 100%;
  height: auto;
  border: 1px solid var(--d-line-2);
  border-radius: 34px;
  translate: calc(var(--x) * var(--p, 0));
  scale: var(--s, calc(var(--side) * 0.9));
  transition: translate 0.35s ease-in, scale 0.35s ease-in, transform 0.3s var(--ease);
}
.trio .is-back { z-index: 0; } /* läuft beim Rotieren hinten herum */
.trio [data-pos="c"] { --s: 1; z-index: 2; box-shadow: 0 24px 56px -16px rgb(0 0 0 / 0.75); } /* taste-skill-ignore: trennt die überlagerten Screens */
.is-running .is-active .trio [data-pos="l"] { --p: -1; --s: var(--side); }
.is-running .is-active .trio [data-pos="r"] { --p: 1; --s: var(--side); }
.is-active .trio img { transition: translate 0.9s cubic-bezier(0.34, 1.3, 0.64, 1) 0.4s, scale 0.9s cubic-bezier(0.34, 1.3, 0.64, 1) 0.4s, transform 0.3s var(--ease); }
.is-active .trio [data-pos="r"] { transition-delay: 0.48s, 0.48s, 0s; }
/* Nach einem Klick auf einen seitlichen Screen: sofort, ohne Überschwingen. Wer vorn liegt, wechselt erst in der Mitte, wenn beide gleich groß sind; der dritte läuft von Anfang an hinten. */
.is-turned .is-active .trio img { transition: translate 0.7s var(--turn), scale 0.7s var(--turn), z-index 0.7s var(--turn), transform 0.3s var(--ease), box-shadow 0.4s ease; }
.is-turned .is-active .trio .is-back { transition-duration: 0.7s, 0.7s, 0s, 0.3s, 0.4s; }
.trio__turn { position: absolute; z-index: 3; top: 8%; bottom: 8%; width: calc(var(--m) * (var(--side) - var(--lap))); padding: 0; border: 0; border-radius: 24px; background: none; cursor: pointer; }
.trio__turn--l { right: 100%; }
.trio__turn--r { left: 100%; }
@media (hover: hover) {
  .trio__turn--l:hover ~ [data-pos="l"] { transform: translateX(-10px); }
  .trio__turn--r:hover ~ [data-pos="r"] { transform: translateX(10px); }
}
.trio__turn--l:active ~ [data-pos="l"] { transform: translateX(-4px) scale(0.98); }
.trio__turn--r:active ~ [data-pos="r"] { transform: translateX(4px) scale(0.98); }


/* Ablauf: Schritte links, rechts ein iPhone, das beim Scrollen von der Notiz zur veröffentlichten App wird. */
.flow { margin-top: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(32px, 6vw, 96px); }
.flow__steps { grid-column: 1; grid-row: 1; padding-top: 8vh; }
.flow__stage { grid-column: 2; grid-row: 1; position: sticky; top: max(88px, calc(50vh - 308px)); align-self: start; display: grid; justify-items: center; }
.flow__step { position: relative; min-height: 40vh; padding-left: 52px; }
/* Das iPhone löst sich erst, wenn „Launch“ die Mitte deutlich passiert hat: letzter Schritt so hoch wie das iPhone. */
.flow__step:last-child { min-height: 600px; }
.flow__step::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 4px;
  left: 0;
  width: 16px;
  height: 16px;
  border: 2px solid var(--line-2);
  border-radius: 50%;
  background: var(--bg);
  transition: background-color 0.4s ease, border-color 0.4s ease, transform 0.5s var(--ease);
}
.flow__step::after {
  content: "";
  position: absolute;
  top: 24px;
  bottom: -4px;
  left: 7px;
  width: 2px;
  background: linear-gradient(var(--ink), var(--ink)) top / 100% calc(var(--f, 0) * 100%) no-repeat, var(--line);
}
.flow__step:last-child::after { display: none; }
.flow__step.is-on::before { background: var(--ink); border-color: var(--ink); }
.flow__step.is-active::before { transform: scale(1.25); }
.flow__step h3 { margin-top: -6px; font-size: clamp(1.5rem, 2.6vw, 2.125rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.03em; transition: color 0.4s ease; }
.flow__step p { max-width: 32ch; margin-top: 12px; font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); transition: color 0.4s ease; }
.js .flow__step:not(.is-active) h3 { color: #8e8e96; }
.js .flow__step.is-active p { color: var(--ink-2); }

.phone {
  position: relative;
  width: 288px;
  aspect-ratio: 9 / 19.5;
  overflow: hidden;
  border: 10px solid var(--ink);
  border-radius: 50px;
  background: var(--bg);
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.05), 0 48px 96px -36px rgb(0 0 0 / 0.4); /* taste-skill-ignore: Produktfenster wie in den Referenzen */
}
.phone__island { position: absolute; z-index: 5; top: 10px; left: 50%; width: 82px; height: 24px; border-radius: 12px; background: var(--ink); translate: -50% 0; }
.scene {
  position: absolute;
  inset: 0;
  padding: 60px 16px 16px;
  opacity: 0;
  transform: scale(0.96);
  filter: blur(8px);
  transition: opacity 0.6s var(--ease), transform 0.9s var(--ease), filter 0.6s var(--ease);
}
.flow[data-active="0"] .scene--talk,
.flow[data-active="1"] .scene--wire,
.flow[data-active="2"] .scene--build,
.flow[data-active="3"] .scene--store { opacity: 1; transform: none; filter: none; }

/* Die Szenen zeigen echte Texte und echte Oberfläche statt Platzhalter; jede spielt beim Aktivwerden einmal kurz ab. */

/* 1 Erstgespräch: kurzer Chat, daraus wird das Briefing, das abgehakt wird */
.sc-head { display: grid; justify-items: center; gap: 1px; padding-bottom: 12px; border-bottom: 1px solid var(--line); text-align: center; }
.sc-avatar { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 5px; border-radius: 50%; background: var(--ink); color: #fff; }
.sc-avatar svg { width: 24px; height: auto; }
.sc-head b { font-size: 12px; font-weight: 600; }
.sc-head > span:last-child { font-size: 10px; color: var(--muted); }
.sc-chat { margin-top: 14px; display: grid; gap: 6px; }
.sc-msg {
  justify-self: start;
  max-width: 80%;
  padding: 7px 11px;
  border-radius: 16px 16px 16px 4px;
  background: var(--surface);
  font-size: 11.5px;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  transform-origin: 0 100%;
  transition: opacity 0.3s ease, transform 0.5s var(--ease);
}
.sc-msg--me { justify-self: end; border-radius: 16px 16px 4px 16px; background: var(--ink); color: #fff; transform-origin: 100% 100%; }
.flow.is-live[data-active="0"] .sc-msg { opacity: 1; transform: none; transition-delay: calc(0.2s + var(--d) * 0.55s); }
.sc-brief { margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); opacity: 0; transform: translateY(12px); transition: opacity 0.4s ease, transform 0.6s var(--ease); }
.flow.is-live[data-active="0"] .sc-brief { opacity: 1; transform: none; transition-delay: 2.4s; }
.sc-brief > p { font-size: 12px; font-weight: 600; }
.sc-brief ul { margin-top: 4px; }
.sc-brief li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); }
.sc-brief li:first-child { border-top: 0; }
.sc-brief li > span:first-child { font-size: 10px; color: var(--muted); }
.sc-brief b { font-size: 12px; font-weight: 600; }
.sc-tick { grid-column: 2; grid-row: 1 / 3; display: grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid var(--line-2); border-radius: 50%; color: #fff; transition: background-color 0.4s ease, border-color 0.4s ease; }
.sc-tick svg { width: 13px; height: 13px; opacity: 0; scale: 0.5; transition: opacity 0.3s ease, scale 0.4s var(--ease); transition-delay: inherit; }
.flow.is-live[data-active="0"] .sc-tick { background: var(--ink); border-color: var(--ink); transition-delay: calc(2.9s + var(--d) * 0.3s); }
.flow.is-live[data-active="0"] .sc-tick svg { opacity: 1; scale: 1; }

/* 2 Konzept & Design: die Skizze baut sich auf, das Design legt sich von oben darüber, ein Tipp zeigt den klickbaren Prototyp */
.scene--wire { padding: 0; }
.sc-design { position: relative; aspect-ratio: 720 / 1564; background: var(--surface) radial-gradient(circle, #d4d4d8 1px, transparent 1.3px) 0 0 / 12px 12px; }
.sc-sketch i {
  position: absolute;
  top: calc(var(--y) * 1%);
  left: calc(var(--x) * 1%);
  width: calc(var(--w) * 1%);
  height: calc(var(--h) * 1%);
  border: 1.5px dashed #b4b4bc;
  border-radius: 6px;
  background: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.5s var(--ease);
}
.sc-sketch .pill { border-radius: 999px; }
.sc-sketch .line { border: 0; border-radius: 2px; background: #d4d4d8; }
.sc-sketch .img {
  border-style: solid;
  background:
    linear-gradient(to top right, transparent calc(50% - 0.6px), #c4c4cc calc(50% - 0.6px), #c4c4cc calc(50% + 0.6px), transparent calc(50% + 0.6px)),
    linear-gradient(to bottom right, transparent calc(50% - 0.6px), #c4c4cc calc(50% - 0.6px), #c4c4cc calc(50% + 0.6px), transparent calc(50% + 0.6px)),
    #fff;
}
.flow[data-active="1"] .sc-sketch i { opacity: 1; transform: none; transition-delay: calc(0.15s + var(--d) * 0.1s); }
.sc-design > img { position: absolute; inset: 0; width: 100%; height: auto; }
.flow[data-active="1"] .sc-design > img { animation: reveal 1.35s cubic-bezier(0.65, 0, 0.35, 1) 1s both; } /* Keyframes wie die Scan-Linie: beide starten bei jedem Aktivwerden gemeinsam neu */
@keyframes reveal { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
.sc-scan { position: absolute; top: 0; right: 0; left: 0; height: 2px; background: var(--ink); box-shadow: 0 0 14px 3px rgb(10 10 10 / 0.25); opacity: 0; } /* taste-skill-ignore: Scan-Linie des Design-Übergangs */
.flow[data-active="1"] .sc-scan { animation: scan 1.5s cubic-bezier(0.65, 0, 0.35, 1) 1s forwards; }
@keyframes scan { 0% { top: 0; opacity: 1; } 90% { top: 100%; opacity: 1; } 100% { top: 100%; opacity: 0; } }
.sc-tap { position: absolute; top: 47.1%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 2px solid #fff; border-radius: 50%; background: rgb(255 255 255 / 0.35); opacity: 0; }
.flow[data-active="1"] .sc-tap { animation: tap 0.9s ease-out 2.7s 2; }
@keyframes tap { 0% { opacity: 0; transform: scale(0.4); } 25% { opacity: 1; transform: scale(0.75); } 100% { opacity: 0; transform: scale(1.6); } }

/* 3 Entwicklung: dieselbe Oberfläche läuft jetzt auf dem iPhone, Testversionen kommen nacheinander an und stapeln sich */
.scene--build { padding: 0; }
.scene--build img { width: 100%; height: auto; }
.sc-toasts { position: absolute; top: 44px; right: 8px; left: 8px; }
.sc-toast {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgb(250 250 250 / 0.97);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 12px 28px -10px rgb(0 0 0 / 0.3); /* taste-skill-ignore: Systemmitteilung auf dem iPhone */
  transform: translateY(-180%);
  transform-origin: 50% 0;
  transition: transform 0.7s var(--ease);
}
.flow[data-active="2"] .sc-toast { transform: none; transition-delay: calc(0.5s + var(--n) * 1s); }
.flow[data-active="2"] .sc-toast:nth-child(1) { animation: stack-1 0.5s var(--ease) 1.5s forwards, stack-2 0.5s var(--ease) 2.5s forwards; }
.flow[data-active="2"] .sc-toast:nth-child(2) { animation: stack-1 0.5s var(--ease) 2.5s forwards; }
@keyframes stack-1 { from { transform: none; } to { transform: translateY(9px) scale(0.94); opacity: 0.8; } }
@keyframes stack-2 { from { transform: translateY(9px) scale(0.94); opacity: 0.8; } to { transform: translateY(18px) scale(0.88); opacity: 0.55; } }
.sc-toast__icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: #fff; }
.sc-toast__icon svg { width: 16px; height: 16px; }
.sc-toast > span:nth-child(2) { flex: 1; min-width: 0; }
.sc-toast b { display: block; font-size: 11.5px; font-weight: 600; }
.sc-toast b + span { display: block; font-size: 10.5px; color: var(--muted); }
.sc-toast small { align-self: start; font-size: 10px; color: var(--muted); }

/* 4 Launch: Store-Eintrag mit echten Screens, Prüfung läuft durch, danach wird geladen */
.sc-app { display: flex; gap: 14px; }
.sc-app__icon { flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 17px; background: linear-gradient(150deg, #3f3f46, var(--ink) 70%); }
.sc-app__icon::after { content: ""; width: 28px; height: 28px; border: 5px solid #fff; border-radius: 50%; }
.sc-app__info { display: grid; align-content: start; gap: 2px; }
.sc-app__info > b { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.sc-app__info > span:not(.sc-get) { font-size: 12px; color: var(--muted); }
.sc-get { display: grid; justify-items: start; align-items: center; margin-top: 8px; }
.sc-get > * { grid-area: 1 / 1; }
.sc-get__a,
.sc-get__b { padding: 4px 16px; border-radius: 999px; font-size: 12px; font-weight: 600; transition: opacity 0.25s ease, transform 0.4s var(--ease); }
.sc-get__a { background: var(--ink); color: #fff; }
.sc-get__b { background: var(--surface); opacity: 0; transform: scale(0.8); }
.sc-get__ring { width: 24px; height: 24px; rotate: -90deg; opacity: 0; }
.sc-get__ring circle { fill: none; stroke: var(--line-2); stroke-width: 2.5; }
.sc-get__ring circle + circle { stroke: var(--ink); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1s ease-in-out; }
.flow[data-active="3"] .sc-get__a { opacity: 0; transform: scale(0.6); transition-delay: 2.5s; }
.flow[data-active="3"] .sc-get__ring { animation: ring 1.3s linear 2.55s; }
.flow[data-active="3"] .sc-get__ring circle + circle { stroke-dashoffset: 0; transition-delay: 2.65s; }
.flow[data-active="3"] .sc-get__b { opacity: 1; transform: none; transition-delay: 3.85s; }
@keyframes ring { 0%, 100% { opacity: 0; } 10%, 88% { opacity: 1; } }
.sc-facts { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 9px 0; border-block: 1px solid var(--line); text-align: center; }
.sc-facts div + div { border-left: 1px solid var(--line); }
.sc-facts dt { font-size: 9.5px; color: var(--muted); }
.sc-facts dd { margin-top: 1px; font-size: 12px; font-weight: 600; }
.sc-shots { margin: 14px -16px 0 0; display: grid; grid-auto-flow: column; grid-auto-columns: 104px; gap: 8px; }
.sc-shots figure {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 10px;
  height: 236px;
  overflow: hidden;
  padding: 12px 8px 0;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.4s ease, transform 0.7s var(--ease);
}
.sc-shots figure.is-light { background: var(--surface); color: var(--ink); }
.sc-shots figcaption { font-size: 10px; font-weight: 600; line-height: 1.25; text-align: center; }
.sc-shots img { width: 100%; height: auto; border-radius: 8px; }
.sc-shots figure:first-child img { width: 88%; border-radius: 10px 10px 0 0; }
.sc-shots figure.is-light img { box-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 8px 18px -8px rgb(0 0 0 / 0.25); } /* taste-skill-ignore: Ausschnitte im Store-Screenshot */
.flow[data-active="3"] .sc-shots figure { opacity: 1; transform: none; }
.flow[data-active="3"] .sc-shots figure:nth-child(2) { transition-delay: 0.1s; }
.flow[data-active="3"] .sc-shots figure:nth-child(3) { transition-delay: 0.2s; }
.sc-review { position: absolute; right: 16px; bottom: 24px; left: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sc-review li { --i: 0; position: relative; display: grid; justify-items: center; gap: 6px; font-size: 10px; color: var(--muted); text-align: center; transition: color 0.3s ease; }
.sc-review li:nth-child(2) { --i: 1; }
.sc-review li:nth-child(3) { --i: 2; }
.sc-review li::before { content: ""; position: relative; z-index: 1; width: 12px; height: 12px; border: 1.5px solid var(--line-2); border-radius: 50%; background: var(--bg); transition: background-color 0.3s ease, border-color 0.3s ease; }
.sc-review li + li::after { content: ""; position: absolute; top: 5px; right: 50%; width: 100%; height: 1.5px; background: var(--line-2) linear-gradient(var(--ink), var(--ink)) no-repeat 0 0 / 0 100%; transition: background-size 0.6s ease; }
.flow[data-active="3"] .sc-review li { color: var(--ink); transition-delay: calc(0.6s + var(--i) * 0.7s); }
.flow[data-active="3"] .sc-review li::before { background-color: var(--ink); border-color: var(--ink); transition-delay: calc(0.6s + var(--i) * 0.7s); }
.flow[data-active="3"] .sc-review li::after { background-size: 100% 100%; transition-delay: calc(var(--i) * 0.7s); }
.sc-review li:last-child { font-weight: 600; }

/* Kontakt: kurzer Text, rechts der Button mit umlaufendem Laser; das Formular öffnet als Pop-up. */
/* Raster wie im Fuß (2fr 1fr 1fr): Text über die ersten beiden Spalten, Aktion genau in der letzten Fußspalte. */
.contact__in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px 32px; align-items: center; }
.contact__in > :first-child { grid-column: 1 / 3; }
.contact__in > .contact__cta { grid-column: 3; }
.contact .head { max-width: 16em; }
.contact__lead { max-width: 44ch; margin-top: 20px; font-size: var(--fs-lead); line-height: 1.55; color: var(--d-muted); }
.contact__cta { display: grid; justify-items: stretch; gap: 20px; }
.contact__mail { font-size: var(--fs-sm); color: var(--d-muted); }
.contact__mail a { color: var(--d-ink); font-weight: 500; text-underline-offset: 4px; }

/* Laser: ein heller Lichtpunkt läuft über den Rand. --a ist der Winkel, --beam die Helligkeit. */
@property --a { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@property --beam { syntax: "<number>"; inherits: true; initial-value: 1; }
.laser { --a: 0deg; position: relative; isolation: isolate; display: flex; border-radius: 14px; animation: laser 3.2s linear infinite; }
.laser::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(from var(--a), transparent 0 60%, #fff 84%, transparent 92%);
  filter: blur(14px);
  opacity: 0.8;
}
.laser__btn {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 58px;
  padding: 0 20px;
  border: 1.5px solid transparent;
  border-radius: 14px;
  background:
    linear-gradient(var(--d-bg), var(--d-bg)) padding-box,
    conic-gradient(from var(--a), transparent 0 64%, rgb(255 255 255 / 0.35) 76%, #fff 86%, transparent 92%) border-box,
    linear-gradient(var(--d-line-2), var(--d-line-2)) border-box;
  color: var(--d-ink);
  font-size: var(--fs-lead);
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.3s var(--ease);
}
.laser__btn:hover { background:
    linear-gradient(#141416, #141416) padding-box,
    conic-gradient(from var(--a), transparent 0 64%, rgb(255 255 255 / 0.35) 76%, #fff 86%, transparent 92%) border-box,
    linear-gradient(var(--d-line-2), var(--d-line-2)) border-box; }
.laser__btn:active { transform: scale(0.97); transition-duration: 0.1s; }
.laser__btn:focus-visible { outline: 2px solid var(--d-ink); outline-offset: 4px; }
.laser__btn:hover .btn__icon { transform: translateX(2px); }
.laser.is-off { animation-play-state: paused; }
@keyframes laser { to { --a: 360deg; } }

/* Pop-up: öffnet weich, dabei läuft der Laser einmal um den Rand und erlischt. */
html:has(.modal[open]) { overflow: hidden; }
.modal {
  width: min(100% - 32px, 640px);
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--d-ink);
  color-scheme: dark;
  --a: 0deg;
  --beam: 0;
}
.modal::backdrop { background: rgb(5 5 6 / 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); } /* taste-skill-ignore: Abdunkeln hinter dem Pop-up */
.modal[open] { animation: modal-in 0.55s var(--ease), modal-laser 1.5s cubic-bezier(0.45, 0, 0.25, 1) 0.15s both; }
.modal[open]::backdrop { animation: fade 0.4s ease; }
.modal.is-closing { animation: modal-out 0.2s ease forwards; }
.modal.is-closing::backdrop { animation: fade 0.2s ease reverse forwards; }
.modal::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -2px;
  border-radius: 22px;
  background: conic-gradient(from var(--a), transparent 0 66%, rgb(255 255 255 / var(--beam)) 86%, transparent 93%);
  filter: blur(18px);
}
.modal__box {
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: clamp(24px, 4vw, 40px);
  border: 1.5px solid transparent;
  border-radius: 20px;
  background:
    linear-gradient(var(--d-surface), var(--d-surface)) padding-box,
    conic-gradient(from var(--a), transparent 0 70%, rgb(255 255 255 / calc(var(--beam) * 0.4)) 80%, rgb(255 255 255 / var(--beam)) 87%, transparent 93%) border-box,
    linear-gradient(var(--d-line-2), var(--d-line-2)) border-box;
}
.modal :focus-visible { outline-color: var(--d-ink); }
.modal ::selection { background: var(--d-ink); color: var(--d-bg); }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.modal__title { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.03em; }
.modal__close { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--d-line-2); border-radius: var(--r-md); background: transparent; color: var(--d-ink); cursor: pointer; transition: background-color 0.2s ease; }
.modal__close:hover { background: #1a1a1d; }
.modal__close svg { width: 16px; height: 16px; }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(0.96); } }
@keyframes modal-out { to { opacity: 0; transform: translateY(8px) scale(0.98); } }
@keyframes modal-laser { 0% { --a: 0deg; --beam: 1; } 80% { --beam: 1; } 100% { --a: 360deg; --beam: 0; } }
@keyframes fade { from { opacity: 0; } }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.field { min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label,
.chips legend { display: block; margin-bottom: 8px; padding: 0; font-size: var(--fs-sm); font-weight: 500; color: var(--d-ink); }
.field__opt { font-weight: 400; color: var(--d-muted); }
.field input,
.field textarea {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--d-field);
  border-radius: var(--r-sm);
  background: var(--d-bg);
  color: var(--d-ink);
  font: inherit;
  font-size: var(--fs-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { height: auto; min-height: 128px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.field input:hover,
.field textarea:hover { border-color: #8a8a93; }
.field input:focus-visible,
.field textarea:focus-visible { outline: none; border-color: var(--d-ink); box-shadow: 0 0 0 3px rgb(237 237 237 / 0.14); }
.field ::placeholder { color: #8a8a93; opacity: 1; }
.field .is-invalid { border-color: var(--error); }
.field__error { margin-top: 6px; font-size: var(--fs-sm); color: var(--error); }
.chips { border: 0; padding: 0; }
.chips__row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--d-field);
  border-radius: 999px;
  font-size: var(--fs-sm);
  color: var(--d-muted);
  pointer-events: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.3s var(--ease);
}
.chip:hover span { border-color: #8a8a93; color: var(--d-ink); }
.chip input:checked + span { background: var(--d-ink); border-color: var(--d-ink); color: var(--d-bg); }
.chip input:focus-visible + span { outline: 2px solid var(--d-ink); outline-offset: 2px; }
.chip:active span { transform: scale(0.96); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 6px; }
.form__note { flex: 1 1 240px; font-size: var(--fs-sm); line-height: 1.5; color: var(--d-muted); }
.btn--lg { height: 48px; padding: 0 20px; font-size: var(--fs-body); }

.done { display: grid; justify-items: start; gap: 14px; padding: 8px 0; }
.done:focus { outline: none; }
.done:not([hidden]) { animation: rise 0.6s var(--ease) both; }
/* Abschluss unter dem Dialogtitel: eine Stufe kleiner als der Titel, damit die Hierarchie stimmt. */
.done h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.done p { max-width: 46ch; color: var(--d-muted); text-wrap: pretty; }
.done__mail { width: 100%; border: 1px solid var(--d-line-2); border-radius: var(--r-md); background: var(--d-bg); }
.done__meta { display: grid; gap: 4px; padding: 12px 14px; border-bottom: 1px solid var(--d-line); font-size: var(--fs-sm); }
.done__meta div { display: flex; gap: 8px; min-width: 0; }
.done__meta dt { flex: none; width: 4.5em; color: var(--d-muted); }
.done__meta dd { min-width: 0; overflow-wrap: anywhere; }
.done__meta a { color: var(--d-ink); text-underline-offset: 3px; }
.done__body { max-height: 220px; overflow: auto; margin: 0; padding: 12px 14px; font: inherit; font-size: var(--fs-sm); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--d-ink); user-select: text; }
.done__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.done .done__copied { font-size: var(--fs-sm); color: var(--d-ink); }
.done__badge { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--d-ink); color: var(--d-bg); }
.done__badge svg { width: 20px; height: 20px; }

/* Fuß -------------------------------------------------------------------- */

/* Die ganze Wortmarke liegt als Hintergrund hinter den Links und gibt auf breiten Schirmen die Höhe vor. */
.foot { display: grid; overflow: hidden; padding-block: clamp(40px, 5vw, 56px); border-top: 1px solid var(--d-line); }
.foot > * { grid-area: 1 / 1; }
.foot > .wrap { z-index: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.foot__top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot__brand p { max-width: 32ch; font-size: var(--fs-sm); color: var(--d-muted); }
.foot__nav { display: grid; gap: 10px; align-content: start; }
.foot__contact { font-size: var(--fs-sm); }
.foot__nav a,
.foot__contact a,
.foot__law a { font-size: var(--fs-sm); color: var(--d-muted); text-decoration: none; transition: color 0.2s ease; }
.foot__nav a:hover,
.foot__contact a:hover,
.foot__law a:hover { color: var(--d-ink); }
.foot__law { display: flex; gap: 20px; }
.foot__legal {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--d-line);
  font-size: var(--fs-sm);
  color: var(--d-muted);
}
.foot__mark {
  width: min(100% - 2 * var(--pad), var(--wrap));
  height: auto;
  margin-inline: auto;
  align-self: end;
  color: #17171a;
}

/* Rechtliches: Impressum und Datenschutz als eigene Leseseiten ------------- */

.legal { padding-block: clamp(56px, 8vw, 96px) var(--section); }
.legal__in { max-width: 60ch; }
.legal h1 { font-size: var(--fs-h2); font-weight: 600; line-height: 1.1; letter-spacing: -0.035em; }
.legal__lead { margin-top: 16px; font-size: var(--fs-lead); color: var(--ink-2); }
.legal h2 { margin-top: 48px; font-size: var(--fs-lead); font-weight: 600; letter-spacing: -0.02em; }
.legal h2 + * { margin-top: 12px; }
.legal :is(p, ul, address) + :is(p, ul, address) { margin-top: 12px; }
.legal address { font-style: normal; }
.legal ul { display: grid; gap: 6px; padding-left: 1.2em; list-style: disc; }
.legal a { text-underline-offset: 3px; }
.legal__todo { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); color: var(--ink-2); }

/* Leichtes Aufsteigen beim Scrollen: nur Bewegung, nie unsichtbar ------------ */

.can-rise [data-rise]:not(.is-in) { transform: translateY(20px); }
.can-rise [data-rise] { transition: transform 0.9s var(--ease), border-color 0.3s ease; }
.can-rise .cols > :nth-child(2) { transition-delay: 0.06s; }
.can-rise .cols > :nth-child(3) { transition-delay: 0.12s; }

/* Ab Tablet steht der zweite, graue Satz jeder Abschnittsüberschrift in einer eigenen Zeile. */
@media (min-width: 641px) {
  .head .tone { display: block; }
}

/* Leistungen: Titel, Absatz und Häkchen liegen spaltenübergreifend in denselben Zeilen, die Listen beginnen auf einer Höhe. */
@media (min-width: 961px) {
  .col { display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; }
}

/* Arbeiten einspaltig, sobald neben der Liste kein Platz für die Karten bleibt. */
@media (max-width: 1200px) {
  .show { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .show__stage { order: -1; margin-bottom: 16px; }
}

/* Tablet ----------------------------------------------------------------- */

@media (max-width: 960px) {
  .nav__links { display: none; }
  .menu-btn { display: grid; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .col { padding-right: 0; }
  .col + .col { padding-left: 0; border-left: 0; margin-top: 32px; border-top: 1px solid var(--line); }
  .contact__in { grid-template-columns: minmax(0, 1fr); }
  .contact__in > :first-child,
  .contact__in > .contact__cta { grid-column: 1; }
  .contact__cta { justify-items: start; }
  .laser { display: inline-flex; }
  .laser__btn { padding: 0 28px; }
  .phone { zoom: 0.52; }
  .foot__top { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}

/* Ablauf einspaltig: iPhone steht oben fest. Telefon quer bleibt zweispaltig; sehr kleine Telefone einspaltig ohne Feststehen. */
@media (max-width: 960px) and (min-height: 601px), (max-width: 640px) {
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow__stage { grid-column: 1; top: 64px; z-index: 2; margin-inline: calc(-1 * var(--pad)); padding: 16px var(--pad); background: var(--bg); }
  .flow__stage::after { content: ""; position: absolute; top: 100%; right: 0; left: 0; height: 32px; background: linear-gradient(var(--bg), rgb(255 255 255 / 0)); }
  .flow__steps { grid-row: 2; padding-top: 24px; }
  .flow__step { min-height: 34vh; }
  .flow__step:last-child { min-height: 0; padding-bottom: 12vh; }
}
/* Tablet: App-Reihe als 3 + 3 statt 5 + 1. */
@media (min-width: 641px) and (max-width: 960px) {
  .proof__list { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; justify-items: start; }
}
@media (min-width: 961px) and (max-height: 760px) {
  .phone { zoom: 0.8; }
}
@media (max-height: 600px) {
  .flow__stage { top: 72px; }
  .phone { zoom: 0.48; }
}
@media (max-width: 640px) and (max-height: 600px) {
  .flow__stage { position: static; }
  .flow__stage::after { display: none; }
}

/* Telefon ---------------------------------------------------------------- */

@media (max-width: 640px) {
  .nav__in { gap: 16px; }
  .btn--sm,
  .lang { height: 40px; }
  .hero__title span { display: inline; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1 1 0; }
  .stage { height: clamp(360px, 108vw, 500px); }
  .stage__row li:nth-child(1),
  .stage__row li:nth-child(5) { display: none; }
  .stage__row li:nth-child(2) { margin-left: 0; }
  .stage__row li:nth-child(2),
  .stage__row li:nth-child(4) { --w: 40vw; --dy: 28px; }
  .stage__row li:nth-child(3) { --w: 54vw; }
  .stage__row li + li { margin-left: -7vw; }
  /* Arbeiten auf dem Handy: alles auf einem Bildschirm. Die aktive App steht in der Mitte, die anderen liegen ringförmig dahinter (--o Seite und Abstand, --d Tiefe, aus script.js); gewechselt wird seitwärts. */
  .work { overflow: clip; padding-block: 24px 32px; } /* das Leuchten bleibt auch oben in der Sektion */
  .show { margin-top: 20px; }
  .show__stage { margin-bottom: 12px; }
  .show__slide { transform: translateX(calc(var(--ring, 1) * -32px)) scale(0.97); }
  .show__slide.is-entering { transform: translateX(calc(var(--ring, 1) * 56px)) scale(0.95); }
  .trio { --m: clamp(110px, (100svh - 404px) * 0.46, 42vw); --side: 0.8; --lap: 0.22; }
  .trio img { border-radius: 24px; }
  .show__icon { width: 140px; }
  .show__list { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 60px auto; border-top: 0; }
  .show__item { display: contents; }
  .show__btn {
    grid-area: 1 / 1;
    place-self: center;
    width: 46px;
    height: 46px;
    padding: 0;
    justify-content: center;
    z-index: calc(3 - var(--d, 0));
    opacity: calc(1 - var(--d, 0) * 0.35);
    transform: translateX(calc(var(--o, 0) * (56px - var(--d, 0) * 5px))) scale(calc(1 - var(--d, 0) * 0.22));
    transition: transform 0.6s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.4s ease;
  }
  .show__btn::after { content: ""; position: absolute; inset: -10px -5px; } /* größere Tippfläche bei kleinen Logos */
  .show__btn:focus-visible { z-index: 4; opacity: 1; } /* auch das verdeckte Logo muss per Tastatur sichtbar werden */
  /* Nur die aktive App ist farbig; so bleibt die Reihe ruhig und im Schwarz-Weiß der Seite. */
  .show__btn img { width: 100%; height: 100%; border-radius: 11px; outline: 1px solid rgb(255 255 255 / 0.1); outline-offset: -1px; opacity: 1; filter: grayscale(1); transition: filter 0.4s ease, transform 0.2s ease; }
  .is-active .show__btn img { transform: none; filter: none; }
  /* Name und Art bleiben unsichtbar im Knopf: Sie geben ihm seinen Namen für Screenreader. Sichtbar steht beides unter dem Balken. */
  .show__name,
  .show__kind { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  /* Alle Texte liegen in derselben Zelle, die Höhe richtet sich nach dem längsten und springt beim Wechsel nicht. */
  .show__more { display: block; grid-area: 2 / 1; opacity: 0; visibility: hidden; transition: opacity 0.3s ease; }
  .is-active .show__more { opacity: 1; visibility: visible; }
  .show__more > div { position: relative; overflow: visible; padding: 14px 0 0; }
  .show__bar { position: absolute; inset: 0 0 auto; margin: 0; }
  .show__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 4px; font-size: var(--fs-sm); color: #8a8a93; }
  .show__cap span:first-child { font-size: 1rem; font-weight: 600; letter-spacing: -0.015em; color: var(--d-ink); }
  .show__text { max-width: none; font-size: var(--fs-sm); }
  .laser,
  .laser__btn { width: 100%; justify-content: center; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .form__foot .btn { width: 100%; }
  .foot__top { grid-template-columns: minmax(0, 1fr); }
  .foot__legal { flex-direction: column; gap: 4px; }
}

/* Sehr kleine Telefone (unter 360 px): Logo behält seine Größe, der Kopf-Button weicht; „Projekt anfragen“ steht direkt darunter im Hero. */
@media (max-width: 359px) {
  .brand { flex: none; }
  .nav__end .btn--sm { display: none; }
}

/* Barrierefreiheit ------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { animation: none !important; transition-duration: 0.01ms !important; }
  /* iPhone-Szenen und seitliche Arbeiten-Screens: Endzustand sofort, Stapel der Testversionen ohne Animation */
  .phone *, .phone *::before, .phone *::after,
  .show__slide, .trio img { transition-delay: 0s !important; }
  .sc-toast:nth-child(1) { scale: 0.88; translate: 0 18px; opacity: 0.55; }
  .sc-toast:nth-child(2) { scale: 0.94; translate: 0 9px; opacity: 0.8; }
}
/* Touch: Bedienflächen mindestens 44 px, ohne dass sich Nachbarn überlappen. Mit Maus bleibt die feinere Kopfleiste. */
@media (pointer: coarse) {
  .brand { min-height: 44px; align-items: center; }
  .btn { min-height: 44px; }
  .lang,
  .btn--sm,
  .modal__close { height: 44px; min-width: 44px; }
  .nav__links a { padding-block: 12px; }
  .contact__mail a,
  .done__meta a { display: inline-block; padding-block: 11px; margin-block: -11px; }
  .menu-btn { width: 44px; height: 44px; }
  .chip span { height: 44px; }
  .foot__nav { gap: 0; }
  .foot__nav a { padding-block: 11px; }
  .foot__contact a,
  .foot__law a { display: inline-block; padding-block: 11px; margin-block: -11px; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav.is-dark { background: var(--d-bg); }
}
