/* SLL Websites – Creative Digital Studio
   Eigene visuelle Identität für /websites: dunkles Graphit, Lime, grosse Typografie.
   Startzustände für Bewegung nur unter .motion-ok (gesetzt im <head>), damit die Seite
   ohne Skript und bei prefers-reduced-motion sofort vollständig sichtbar ist. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Space Grotesk (SIL OFL, lokal unter /websites/fonts/) für Überschriften und Logo */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/websites/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/websites/fonts/space-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #151820;
  --bg-2: #1b1f29;
  --bg-3: #232733;
  --bone: #ecebe4;
  --text: #ecebe4;
  --dim: #9ea3ae;
  --faint: rgba(236, 235, 228, 0.18);
  --line: rgba(236, 235, 228, 0.09);
  --line-strong: rgba(236, 235, 228, 0.2);
  /* Primärfarbe Weiss auf Graphit; Lime ist nur noch eine der Begleitfarben. */
  --primary: #f6f5f0;
  --ink: #151820;
  --lime: #c9f082;
  /* Begleitfarben: die Seite ist mehrfarbig. */
  --sun: #ffd46b;
  --sky: #8ccbff;
  --coral: #ff7b5c;
  --lilac: #bba8ff;
  --plum: #6e2b57;
  --navy: #26326a;
  --error: #ff9b8a;

  --font: "Manrope", "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  --display: "Space Grotesk", "Manrope", "Avenir Next", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --container: 1440px;
  --header-h: 72px;
  --radius: 18px;
  --radius-lg: 26px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

html.intro-on,
html.menu-open {
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100svh;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 450;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

::selection {
  color: var(--ink);
  background: var(--primary);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.mono {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: clamp(96px, 6vw + 64px, 200px);
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--primary);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 200ms var(--ease-out);
}

.skip-link:focus {
  transform: none;
}

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform 400ms var(--ease-out), color 300ms var(--ease-out), background-color 300ms var(--ease-out);
}

.btn-sm {
  height: 40px;
  padding: 0 18px;
  font-size: 0.9rem;
}

.btn-lg {
  height: 60px;
  padding: 0 30px;
  font-size: 1.0625rem;
}

.btn-primary {
  color: var(--ink);
  background: var(--primary);
}

/* Füllung von unten: Bone wächst als Kreis aus dem Button-Boden. */
.btn-primary::before {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 100%;
  width: 140%;
  aspect-ratio: 1;
  background: var(--sun);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, 0) scale(0);
  transition: transform 600ms var(--ease-out);
}

.btn-primary:hover::before,
.btn-primary:focus-visible::before {
  transform: translate(-50%, -55%) scale(1);
}

.btn-ghost {
  color: var(--text);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.btn-ghost:hover {
  box-shadow: inset 0 0 0 1px var(--primary);
  color: var(--primary);
}

.btn-arrow {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 400ms var(--ease-out);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.link-quiet {
  position: relative;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.link-quiet::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform-origin: right;
  transition: transform 450ms var(--ease-out);
}

.link-quiet:hover::after {
  transform: scaleX(0);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- Header ---------- */

/* Kopf als schwebende Kapsel; ein farbiger Indikator gleitet zwischen den Navigationspunkten. */
.site-header {
  position: fixed;
  z-index: 50;
  top: 12px;
  left: max(10px, var(--gutter) - 12px);
  right: max(10px, var(--gutter) - 12px);
  max-width: calc(var(--container) + 24px);
  height: calc(var(--header-h) - 12px);
  margin-inline: auto;
  background: rgba(27, 31, 41, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: transform 500ms var(--ease-out), background-color 400ms ease, border-color 400ms ease;
}

@supports (backdrop-filter: blur(1px)) {
  .site-header {
    background: rgba(27, 31, 41, 0.55);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
  }
}

.site-header.is-solid {
  background: rgba(27, 31, 41, 0.86);
  border-color: var(--line-strong);
}

.site-header.is-hidden {
  transform: translateY(calc(-100% - 20px));
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 100%;
  padding: 0 7px 0 22px;
}

.nav {
  position: relative;
}

.nav-list li {
  position: relative;
  z-index: 1;
}

.nav-pill {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 0;
  width: var(--pw, 0px);
  height: 38px;
  background: color-mix(in srgb, var(--pc, var(--primary)) 22%, var(--bg-3));
  border-radius: 999px;
  opacity: 0;
  transform: translate(var(--px, 0px), -50%);
  transition: transform 500ms var(--ease-out), width 500ms var(--ease-out), opacity 300ms ease, background-color 400ms ease;
  pointer-events: none;
}

.nav-pill.on {
  opacity: 1;
}

.nav-pill::before {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--pc, var(--primary));
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: block;
  width: auto;
  height: 22px;
  color: var(--text);
  overflow: visible;
  transition: transform 500ms var(--ease-spring);
}

.brand:hover .brand-mark {
  transform: translateY(-1px) scale(1.03);
}

.nav-list {
  display: none;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  position: relative;
  display: block;
  padding: 9px 16px 9px 26px;
  border-radius: 999px;
  color: var(--dim);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 250ms ease, background-color 250ms ease;
}

.nav-list a:hover {
  color: var(--text);
}

.nav-list a[aria-current="true"] {
  color: var(--primary);
}

.header-cta {
  display: none;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 6px 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--bg-3);
  font-weight: 700;
  font-size: 0.9rem;
}

.menu-toggle-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--primary);
  border-radius: 50%;
}

.menu-toggle-icon span {
  position: absolute;
  width: 12px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 400ms var(--ease-out);
}

.menu-toggle-icon span:first-child { transform: translateY(-3px); }
.menu-toggle-icon span:last-child { transform: translateY(3px); }

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:last-child { transform: rotate(-45deg); }

.progress {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  pointer-events: none;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--sun), var(--sky), var(--lilac), var(--coral));
  transform: scaleX(0);
  transform-origin: left;
}

@media (min-width: 960px) {
  .nav-list { display: flex; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* Mobiles Menü: ganze Fläche in Lime, grosse Links. */
.menu {
  position: fixed;
  z-index: 45;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 24px) var(--gutter) calc(var(--gutter) + env(safe-area-inset-bottom));
  color: var(--ink);
  background: var(--primary);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 700ms var(--ease-io);
}

.menu[hidden] {
  display: none;
}

.menu.is-open {
  clip-path: inset(0 0 0 0);
}

.menu-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-list li {
  overflow: hidden;
  border-bottom: 1px solid rgba(21, 24, 32, 0.15);
}

.menu-list a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
  font-size: clamp(2.4rem, 11vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  text-decoration: none;
  transform: translateY(105%);
  transition: transform 700ms var(--ease-out) calc(200ms + var(--i) * 60ms);
}

.menu.is-open .menu-list a {
  transform: none;
}

.menu-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.menu-foot {
  font-weight: 600;
}

/* Kopf auf Lime, solange das Menü offen ist. */
html.menu-open .site-header {
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: none;
}

html.menu-open .brand {
  color: var(--ink);
}

html.menu-open .brand-mark {
  color: var(--ink);
}

html.menu-open .menu-toggle {
  color: var(--ink);
  background: rgba(21, 24, 32, 0.08);
}

html.menu-open .menu-toggle-icon {
  background: var(--ink);
}

html.menu-open .menu-toggle-icon span {
  background: var(--primary);
}

html.menu-open .progress {
  opacity: 0;
}

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

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: calc(var(--header-h) + clamp(32px, 7vh, 80px)) var(--gutter) clamp(24px, 4vh, 40px);
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-inner {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: clamp(28px, 5vh, 56px);
  width: min(100%, var(--container));
  margin-inline: auto;
  pointer-events: none;
}

.hero-inner a,
.hero-inner button {
  pointer-events: auto;
}

.hero-title {
  position: relative;
  z-index: 1;
  max-width: 13ch;
  font-size: clamp(3.1rem, 1.2rem + 8.4vw, 11rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.hl {
  font-style: normal;
  color: var(--primary);
}

.hero-foot {
  display: grid;
  gap: 28px;
  align-items: end;
}

.hero-sub {
  max-width: 30ch;
  color: var(--dim);
  font-size: clamp(1.15rem, 0.9rem + 0.8vw, 1.6rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

/* Vier Disziplinen als farbige, verlinkte Felder unter dem Hero. */
.disciplines {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100% + 24px, var(--container) + 24px);
  margin: 36px auto 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.disciplines li + li {
  border-left: 1px solid var(--line);
}

.disciplines li:nth-child(3) {
  border-left: 0;
}

.disciplines li:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}

.disciplines a {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 2px;
  align-items: center;
  padding: 16px 12px;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  transition: color 350ms ease;
}

.disciplines a::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--c);
  content: "";
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 550ms var(--ease-io);
}

.disciplines a:hover,
.disciplines a:focus-visible {
  color: var(--ink);
}

.disciplines a:hover::before,
.disciplines a:focus-visible::before {
  transform: scaleY(1);
}

.disciplines a:focus-visible {
  outline-offset: -2px;
  outline-color: var(--ink);
}

.dc-glyph {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: var(--ink);
  background: var(--c);
  border-radius: 11px;
  overflow: hidden;
  transition: background-color 350ms ease, color 350ms ease;
}

.disciplines a:hover .dc-glyph,
.disciplines a:focus-visible .dc-glyph {
  color: var(--c);
  background: var(--ink);
}

.dc-num {
  align-self: end;
  color: var(--dim);
  font-size: 0.68rem;
  transition: color 350ms ease;
}

.disciplines a:hover .dc-num,
.disciplines a:focus-visible .dc-num {
  color: rgba(21, 24, 32, 0.6);
}

.dc-name {
  align-self: center;
  font-size: clamp(1.02rem, 0.85rem + 0.6vw, 1.4rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

@media (max-width: 559px) {
  .disciplines a {
    column-gap: 10px;
    padding: 14px 10px;
  }
  .dc-glyph {
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }
  .dc-name {
    font-size: 0.9rem;
    hyphens: auto;
    overflow-wrap: anywhere;
  }
}

.dg-wd {
  grid-template-columns: repeat(2, 9px);
  grid-template-rows: repeat(2, 9px);
  gap: 3px;
  place-content: center;
}

.dg-wd i {
  background: currentColor;
  border-radius: 2px;
  transition: transform 500ms var(--ease-spring);
}

.dg-wd i:nth-child(1) { grid-column: span 2; width: 21px; }
.dg-wd i:nth-child(4) { display: none; }
.disciplines a:hover .dg-wd i:nth-child(2) { transform: translateX(12px); }
.disciplines a:hover .dg-wd i:nth-child(3) { transform: translateX(-12px); }

/* </> als drei Zeichen: die Klammern gleiten per transform auseinander (ruhig, ohne Layout-Neuberechnung). */
.br {
  display: inline-block;
  transition: transform 450ms var(--ease-out);
}

.dg-we {
  grid-auto-flow: column;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  transition: background-color 350ms ease, color 350ms ease;
}

.disciplines a:hover .dg-we .br-l { transform: translateX(-3px); }
.disciplines a:hover .dg-we .br-r { transform: translateX(3px); }
.disciplines a:hover .dg-we .br-s { transform: rotate(14deg); }

.dg-mo::before {
  position: absolute;
  left: 9px;
  right: 9px;
  top: 50%;
  height: 2px;
  background: currentColor;
  opacity: 0.35;
  content: "";
}

.dg-mo i {
  position: absolute;
  left: 7px;
  top: calc(50% - 5px);
  width: 10px;
  height: 10px;
  background: currentColor;
  border-radius: 50%;
}

.disciplines a:hover .dg-mo i {
  animation: dg-slide 900ms var(--ease-spring) infinite alternate;
}

@keyframes dg-slide {
  to { transform: translateX(20px); }
}

.dg-br {
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: -0.05em;
  transition: font-weight 500ms var(--ease-out), background-color 350ms ease, color 350ms ease;
}

.disciplines a:hover .dg-br {
  font-weight: 800;
}

@media (min-width: 900px) {
  .disciplines {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-right: 64px;
  }
  .disciplines li:nth-child(3) {
    border-left: 1px solid var(--line);
  }
  .disciplines li:nth-child(n + 3) {
    border-top: 0;
  }
}

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(24px, 4vh, 40px);
  display: none;
  width: 44px;
  height: 64px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.scroll-cue-line {
  position: absolute;
  left: 50%;
  top: 14px;
  width: 2px;
  height: 14px;
  background: var(--primary);
  border-radius: 2px;
  transform: translateX(-50%);
}

html.motion-ok .scroll-cue-line {
  animation: cue 1800ms var(--ease-io) 3500ms 3;
}

@keyframes cue {
  0% { transform: translate(-50%, 0); opacity: 1; }
  60% { transform: translate(-50%, 22px); opacity: 0; }
  61% { transform: translate(-50%, -6px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 1; }
}

@media (min-width: 900px) {
  .hero-foot {
    grid-template-columns: 1fr auto;
  }
  .scroll-cue {
    display: block;
  }
}

/* Wort-Masken für Überschriften (vom Skript erzeugt). */
.w {
  display: inline-block;
  overflow: hidden;
  padding: 0.14em 0.04em 0.3em;
  margin: -0.14em -0.04em -0.3em;
  vertical-align: top;
}

.wi {
  display: inline-block;
}

html.motion-ok [data-split] .wi {
  transform: translateY(150%);
  transition: transform 1000ms var(--ease-out);
  transition-delay: calc(var(--wi) * 55ms);
}

html.motion-ok [data-split].in .wi {
  transform: none;
}

html.motion-ok .hero-title .wi {
  transition-delay: calc(80ms + var(--wi) * 70ms);
}

html.motion-ok:not(.is-ready) .hero-title.in .wi {
  transform: translateY(150%);
}

/* «gut aussehen» erst als Kontur (die Oberfläche), dann wischt Lime darüber (die Substanz).
   Kontur mit paint-order: stroke fill – sonst zeigt der Strich die überlappenden Innenkonturen
   der Variable Font. Die Lime-Füllung ist eine eigene Ebene (data-text, gesetzt von main.js). */
html.js .hero-title .hl .wi {
  position: relative;
  color: var(--bg);
  -webkit-text-stroke: 0.05em var(--text);
  paint-order: stroke fill;
  transition:
    transform 1000ms var(--ease-out) calc(80ms + var(--wi) * 70ms),
    -webkit-text-stroke-color 400ms ease calc(1900ms + (var(--wi) - 5) * 260ms);
}

html.js .hero-title .hl .wi::after {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  -webkit-text-stroke: 0;
  content: attr(data-text);
  clip-path: inset(-0.3em 100% -0.3em -0.1em);
  transition: clip-path 1100ms var(--ease-io) calc(1000ms + (var(--wi) - 5) * 260ms);
}

html.js.is-ready .hero-title .hl .wi {
  -webkit-text-stroke-color: transparent;
}

html.js.is-ready .hero-title .hl .wi::after {
  clip-path: inset(-0.3em -0.2em -0.3em -0.1em);
}

html.js:not(.motion-ok) .hero-title .hl .wi,
html.js:not(.motion-ok) .hero-title .hl .wi::after {
  transition: none;
}

html.motion-ok .hero-foot,
html.motion-ok .disciplines,
html.motion-ok .scroll-cue {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 900ms ease, transform 1000ms var(--ease-out);
}

html.motion-ok.is-ready .hero-foot { opacity: 1; transform: none; transition-delay: 650ms; }
html.motion-ok.is-ready .disciplines { opacity: 1; transform: none; transition-delay: 850ms; }
html.motion-ok.is-ready .scroll-cue { opacity: 1; transform: none; transition-delay: 1000ms; }

/* ---------- Manifest → Mosaik ---------- */

.zoom {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0 0;
}

.zoom-sticky {
  display: flex;
  flex-direction: column-reverse;
  gap: 48px;
  padding-inline: var(--gutter);
}

.zoom-statement {
  max-width: var(--container);
  margin-inline: auto;
  width: 100%;
}

.zoom-title {
  max-width: 20ch;
  font-size: clamp(2rem, 1rem + 3.8vw, 5.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.mosaic {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: var(--container);
  height: min(86svh, 760px);
  margin-inline: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 1fr 1.25fr 1fr 1fr 1fr;
  grid-template-areas:
    "wd we"
    "fx fx"
    "mo br"
    "pf pr"
    "st ko";
}

@media (min-width: 760px) {
  .mosaic {
    gap: 12px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
    grid-template-areas:
      "wd wd we we mo mo"
      "wd wd fx fx mo mo"
      "br br fx fx st ko"
      "br br pf pr st ko";
  }
}

/* Mit Bewegung: Statement füllt den Schirm in Lime und zoomt beim Scrollen ins Mosaik zurück. */
html.motion-ok .zoom {
  height: 340vh;
  padding: 0;
}

html.motion-ok .zoom-sticky {
  position: sticky;
  top: 0;
  display: block;
  height: 100vh;
  height: 100svh;
  padding: 0;
  overflow: hidden;
}

html.motion-ok .mosaic {
  position: absolute;
  top: calc(var(--header-h) + 8px);
  bottom: var(--gutter);
  left: var(--gutter);
  right: var(--gutter);
  width: auto;
  max-width: none;
  height: auto;
  transform-origin: 0 0;
}

@media (min-width: 1536px) {
  html.motion-ok .mosaic {
    left: calc((100% - var(--container)) / 2);
    right: calc((100% - var(--container)) / 2);
  }
}

html.motion-ok .zoom-statement {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: none;
  padding: var(--header-h) var(--gutter) var(--gutter);
  color: var(--ink);
  pointer-events: none;
}

html.motion-ok .zoom-statement > * {
  width: min(100%, var(--container));
  margin-inline: auto;
}

/* Kacheln */
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 0;
  padding: clamp(12px, 1.5vw, 22px);
  overflow: hidden;
  border-radius: clamp(12px, 1.3vw, 20px);
  text-decoration: none;
  transition: transform 500ms var(--ease-out);
}

.tile-label {
  position: relative;
  z-index: 1;
  font-size: clamp(0.95rem, 0.6rem + 0.9vw, 1.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

a.tile::after {
  position: absolute;
  top: clamp(12px, 1.5vw, 22px);
  right: clamp(12px, 1.5vw, 22px);
  font-size: 1.1rem;
  line-height: 1;
  content: "↗";
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity 300ms ease, transform 400ms var(--ease-out);
}

a.tile:hover::after,
a.tile:focus-visible::after {
  opacity: 1;
  transform: none;
}

a.tile:focus-visible {
  outline-offset: -4px;
  outline-color: currentColor;
}

/* Jede Kachel eine eigene Farbe, wie im Dropbox-Raster. */
.t-wd { grid-area: wd; color: var(--ink); background: var(--sun); }
.t-we { grid-area: we; background: var(--bg-3); }
.t-mo { grid-area: mo; color: var(--ink); background: var(--lilac); }
.t-fx { grid-area: fx; color: var(--ink); background: var(--primary); display: grid; place-items: center; }
.t-br { grid-area: br; color: var(--ink); background: var(--coral); }
.t-pf { grid-area: pf; background: var(--plum); }
.t-pr { grid-area: pr; color: var(--ink); background: var(--sky); }
.t-st { grid-area: st; background: var(--navy); }
.t-ko { grid-area: ko; color: var(--ink); background: var(--lime); }

.tile {
  --spd: 2.2;
}

a.tile:hover,
a.tile:focus-visible {
  --spd: 1.4;
  transform: translateY(-4px);
}

.fx-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-size: clamp(1.2rem, 0.6rem + 1.8vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.fx-mark {
  display: block;
  width: 78%;
  color: var(--ink);
}

.fx-mark svg {
  width: 100%;
  height: auto;
}

html.motion-ok .fx-mark,
html.motion-ok .tile-label,
html.motion-ok .tile-art {
  opacity: var(--tiles-o, 1);
}

html.motion-ok .fx-mark {
  opacity: var(--mark-o, 1);
}

/* Kachel-Illustrationen: laufen in Schleife, solange das Mosaik sichtbar ist (.live, von main.js);
   beim Darüberfahren doppelt so schnell (--spd). */
.tile-art {
  position: absolute;
  right: clamp(12px, 1.5vw, 22px);
  bottom: clamp(12px, 1.5vw, 22px);
  width: clamp(54px, 34%, 170px);
  aspect-ratio: 4 / 3;
  pointer-events: none;
}

@media (max-width: 759px) {
  .tile-art {
    width: clamp(44px, 38%, 96px);
  }
}

/* Angehalten, solange das Mosaik nicht sichtbar ist (überstimmt die animation-Kurzformen unten). */
.mosaic:not(.live) .tile-art,
.mosaic:not(.live) .tile-art *,
.mosaic:not(.live) .tile-art *::before {
  animation-play-state: paused !important;
}

/* Webdesign: Blöcke tauschen die Plätze */
.art-wd i {
  position: absolute;
  background: var(--ink);
  border-radius: 3px;
}

.art-wd i:nth-child(1) { left: 0; top: 0; width: 100%; height: 10%; opacity: 0.35; }
.art-wd i:nth-child(2) { left: 0; top: 20%; width: 56%; height: 80%; animation: wd-big calc(2.4s * var(--spd)) var(--ease-io) infinite; }
.art-wd i:nth-child(3) { left: 64%; top: 20%; width: 36%; height: 36%; opacity: 0.55; animation: wd-small calc(2.4s * var(--spd)) var(--ease-io) infinite; }
.art-wd i:nth-child(4) { left: 64%; top: 64%; width: 36%; height: 36%; opacity: 0.55; animation: wd-small calc(2.4s * var(--spd)) var(--ease-io) 80ms infinite; }

@keyframes wd-big {
  0%, 15% { left: 0; top: 20%; width: 56%; height: 80%; }
  35%, 60% { left: 44%; top: 20%; width: 56%; height: 80%; }
  75%, 90% { left: 0; top: 20%; width: 100%; height: 44%; }
  100% { left: 0; top: 20%; width: 56%; height: 80%; }
}

@keyframes wd-small {
  0%, 15% { left: 64%; }
  35%, 60% { left: 0; }
  75%, 90% { left: 0; top: 72%; }
  100% { left: 64%; }
}

/* Webentwicklung: Code-Zeilen schreiben sich, Cursor blinkt */
.art-we {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 4px;
  color: var(--sky);
}

.we-lines {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  gap: 5px;
  width: 70%;
}

.we-lines i {
  display: block;
  height: 5px;
  background: currentColor;
  border-radius: 3px;
  opacity: 0.45;
  transform-origin: left;
  animation: we-line calc(1.8s * var(--spd)) var(--ease-out) infinite;
}

.we-lines i:nth-child(1) { width: 80%; }
.we-lines i:nth-child(2) { width: 55%; margin-left: 14%; animation-delay: 150ms; }
.we-lines i:nth-child(3) { width: 68%; margin-left: 14%; animation-delay: 300ms; }

@keyframes we-line {
  0% { transform: scaleX(0); }
  40%, 85% { transform: scaleX(1); }
  100% { transform: scaleX(0); opacity: 0; }
}

.art-we .we-code {
  font-family: var(--mono);
  font-size: clamp(1.3rem, 0.5rem + 2.2vw, 3.2rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
}

.we-code .br {
  transition: none;
  animation: calc(1.8s * var(--spd)) var(--ease-io) infinite;
}

.we-code .br-l { animation-name: we-open-l; }
.we-code .br-r { animation-name: we-open-r; }
.we-code .br-s { animation-name: we-tilt; }

@keyframes we-open-l {
  0%, 25%, 100% { transform: none; }
  50%, 75% { transform: translateX(-0.16em); }
}

@keyframes we-open-r {
  0%, 25%, 100% { transform: none; }
  50%, 75% { transform: translateX(0.16em); }
}

@keyframes we-tilt {
  0%, 25%, 100% { transform: none; }
  50%, 75% { transform: rotate(14deg); }
}

.we-caret {
  width: 3px;
  height: 1.1em;
  background: currentColor;
  font-size: clamp(1.3rem, 0.5rem + 2.2vw, 3.2rem);
  animation: caret 0.8s steps(1) infinite;
}

@keyframes caret {
  50% { opacity: 0; }
}

/* Motion Design: Punkt fährt die Kurve hin und zurück */
.art-mo {
  aspect-ratio: 1;
  width: clamp(54px, 46%, 170px);
}

.art-mo svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.art-mo path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}

.mo-x,
.mo-y {
  position: absolute;
  inset: 0;
}

.mo-x {
  animation: mo-x calc(1.3s * var(--spd)) linear infinite alternate;
}

.mo-y {
  transform: translateY(100%);
  animation: mo-y calc(1.3s * var(--spd)) cubic-bezier(0.45, 0, 0.4, 1) infinite alternate;
}

.mo-y::before {
  position: absolute;
  left: -8px;
  top: -8px;
  width: 16px;
  height: 16px;
  background: var(--ink);
  border-radius: 50%;
  content: "";
}

@keyframes mo-x {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}

@keyframes mo-y {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* Digital Branding: Schriftschnitt atmet, Farbmuster hüpfen */
.art-br {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 6%;
}

.art-br b {
  margin-right: auto;
  font-size: clamp(1.8rem, 0.6rem + 3vw, 4.4rem);
  font-weight: 300;
  line-height: 0.8;
  letter-spacing: -0.06em;
  animation: br-weight calc(1.6s * var(--spd)) var(--ease-io) infinite alternate;
}

@keyframes br-weight {
  to { font-weight: 800; }
}

.art-br i {
  width: 18%;
  aspect-ratio: 1;
  border-radius: 50%;
  animation: br-hop calc(1.2s * var(--spd)) var(--ease-spring) infinite;
}

.art-br i:nth-of-type(1) { background: var(--ink); }
.art-br i:nth-of-type(2) { background: var(--bone); animation-delay: 120ms; }
.art-br i:nth-of-type(3) { box-shadow: inset 0 0 0 2px var(--ink); animation-delay: 240ms; }

@keyframes br-hop {
  0%, 50%, 100% { transform: none; }
  25% { transform: translateY(-70%); }
}

/* Arbeiten: Rahmen fächern auf */
.art-pf i {
  position: absolute;
  inset: 10% 0 0 20%;
  border: 2px solid var(--sun);
  border-radius: 6px;
  background: var(--plum);
  animation: pf-fan calc(2s * var(--spd)) var(--ease-io) infinite;
}

.art-pf i:nth-child(2) { --tx: -12%; --ty: -8%; --r: -6deg; opacity: 0.75; }
.art-pf i:nth-child(3) { --tx: -24%; --ty: -16%; --r: -12deg; opacity: 0.5; }

@keyframes pf-fan {
  0%, 20% { transform: translate(calc(var(--tx, 0%) * 0.5), calc(var(--ty, 0%) * 0.5)); }
  50%, 75% { transform: translate(var(--tx, 0%), var(--ty, 0%)) rotate(var(--r, 4deg)); }
  100% { transform: translate(calc(var(--tx, 0%) * 0.5), calc(var(--ty, 0%) * 0.5)); }
}

/* Prozess: Linie läuft durch, Stationen füllen sich nacheinander */
.art-pr {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.art-pr::before {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: var(--ink);
  content: "";
  transform-origin: left;
  animation: pr-line calc(2s * var(--spd)) var(--ease-io) infinite;
}

@keyframes pr-line {
  0% { transform: scaleX(0); }
  70%, 90% { transform: scaleX(1); }
  100% { transform: scaleX(1); opacity: 0; }
}

.art-pr i {
  position: relative;
  width: 14%;
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--sky);
  animation: pr-dot calc(2s * var(--spd)) steps(1) infinite;
}

.art-pr i:nth-child(2) { animation-delay: calc(0.3s * var(--spd)); }
.art-pr i:nth-child(3) { animation-delay: calc(0.6s * var(--spd)); }
.art-pr i:nth-child(4) { animation-delay: calc(0.9s * var(--spd)); }
.art-pr i:nth-child(5) { animation-delay: calc(1.2s * var(--spd)); }

@keyframes pr-dot {
  0% { background: var(--sky); }
  10%, 85% { background: var(--ink); }
}

/* Studio: Schweizer Kreuz dreht sich in Vierteln */
.art-st {
  display: grid;
  place-items: end;
}

.art-st i {
  position: relative;
  width: 52%;
  aspect-ratio: 1;
  background: var(--coral);
  border-radius: 8px;
  animation: st-turn calc(2.4s * var(--spd)) var(--ease-spring) infinite;
}

.art-st i::before,
.art-st i::after {
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--navy);
  content: "";
  transform: translate(-50%, -50%);
}

.art-st i::before { width: 60%; height: 18%; }
.art-st i::after { width: 18%; height: 60%; }

@keyframes st-turn {
  0%, 30% { transform: rotate(0); }
  45%, 75% { transform: rotate(90deg) scale(0.9); }
  90%, 100% { transform: rotate(180deg); }
}

/* Projekt starten: Pfeil zieht nach oben rechts */
.art-ko svg {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 60%;
  height: auto;
  aspect-ratio: 1;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linecap: round;
  animation: ko-nudge calc(0.9s * var(--spd)) var(--ease-io) infinite alternate;
}

@keyframes ko-nudge {
  to { transform: translate(10%, -10%) scale(1.06); }
}

.t-ko::after {
  display: none;
}

/* ---------- Laufband ---------- */

.marquee {
  display: grid;
  gap: clamp(2px, 0.8vw, 12px);
  overflow: hidden;
  padding-block: clamp(40px, 6vw, 96px);
  border-bottom: 1px solid var(--line);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 0.35em;
  width: max-content;
  font-size: clamp(2.6rem, 1.2rem + 5.2vw, 7.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.05em;
  white-space: nowrap;
  will-change: transform;
}

.marquee-track > span {
  color: var(--c, var(--text));
}

/* Kontur ohne sichtbare Innenkonturen der Variable Font: Strich zuerst, Füllung in Hintergrundfarbe darüber. */
.marquee .outline,
.outline-text {
  color: var(--bg);
  -webkit-text-stroke: 0.035em var(--text);
  paint-order: stroke fill;
}

.marquee .star {
  font-size: 0.5em;
}

/* ---------- Abschnittsköpfe ---------- */

.section-head {
  display: grid;
  gap: 24px;
  margin-bottom: clamp(48px, 7vw, 100px);
}

.section-num {
  color: var(--primary);
}

.section-title {
  max-width: 16ch;
  font-size: clamp(2.6rem, 1rem + 5.6vw, 7rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.section-lead {
  max-width: 50ch;
  color: var(--dim);
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  line-height: 1.55;
}

.section-head-row {
  align-items: end;
}

@media (min-width: 1000px) {
  .section-head-row {
    grid-template-columns: 1.3fr 1fr;
    gap: 48px;
  }
}

/* ---------- Leistungen ---------- */

.service-stack {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-card {
  position: relative;
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(22px, 3.6vw, 52px);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transform-origin: 50% 0;
}

/* Abdunkeln, wenn die nächste Karte darüber gleitet (Deckkraft würde durchscheinen lassen). */
.service-card::after {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--bg);
  content: "";
  opacity: var(--shade, 0);
  pointer-events: none;
}

.service-copy {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.service-index {
  color: var(--c, var(--primary));
}

.service-card .seg button[aria-pressed="true"] {
  background: var(--c, var(--primary));
}

.service-card .tags li::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  vertical-align: 1px;
  background: var(--c, var(--primary));
  border-radius: 50%;
  content: "";
}

.service-title {
  font-size: clamp(2.1rem, 11cqi, 4.8rem);
  hyphens: manual;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.service-copy p {
  max-width: 44ch;
  color: var(--dim);
  font-size: 1.0625rem;
}

/* Leistungsumfang: nummerierte Zeilen mit Haarlinie; Akzentstrich und Plus reagieren auf Hover. */
.deliver {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.deliver li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px 2px;
  border-top: 1px solid var(--line-strong);
}

.deliver li::before {
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: var(--c, var(--primary));
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 600ms var(--ease-io);
}

.deliver li:hover::before {
  transform: scaleX(1);
}

.dl-num {
  color: var(--c, var(--primary));
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.dl-name {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.dl-plus {
  position: relative;
  flex: 0 0 12px;
  height: 12px;
  margin-left: auto;
  color: var(--dim);
  transition: transform 500ms var(--ease-spring), color 300ms ease;
}

.dl-plus::before,
.dl-plus::after {
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
}

.dl-plus::before { width: 12px; height: 1.5px; }
.dl-plus::after { width: 1.5px; height: 12px; }

.deliver li:hover .dl-plus {
  color: var(--c, var(--primary));
  transform: rotate(90deg);
}

html.motion-ok .deliver[data-reveal] {
  opacity: 1;
  transform: none;
}

html.motion-ok .deliver[data-reveal] li {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms ease, transform 800ms var(--ease-out);
  transition-delay: calc(150ms + var(--k) * 90ms);
}

html.motion-ok .deliver[data-reveal].in li {
  opacity: 1;
  transform: none;
}

html.motion-ok .deliver[data-reveal].in li::before {
  animation: dl-sweep 900ms var(--ease-io) calc(300ms + var(--k) * 90ms);
}

@keyframes dl-sweep {
  0% { transform: scaleX(0); transform-origin: left; }
  50% { transform: scaleX(1); transform-origin: left; }
  51% { transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

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

@media (min-width: 960px) {
  .service-stack {
    gap: 6vh;
  }
  .service-card {
    position: sticky;
    top: calc(var(--header-h) + 20px + var(--i) * 16px);
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    min-height: min(640px, calc(100svh - var(--header-h) - 100px));
  }
  .service-card:last-child {
    margin-bottom: 4vh;
  }
}

/* Demo-Bühnen */
.service-demo {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: clamp(12px, 1.6vw, 20px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.demo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.demo-label {
  color: var(--dim);
}

.demo-note {
  color: var(--dim);
  font-size: 0.875rem;
  line-height: 1.5;
}

.seg,
.filter {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  background: var(--bg-3);
  border-radius: 999px;
}

.seg button,
.filter button {
  padding: 7px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--dim);
  font-size: 0.82rem;
  font-weight: 650;
  transition: color 250ms ease, background-color 250ms ease;
}

.seg button:hover,
.filter button:hover {
  color: var(--text);
}

.seg button[aria-pressed="true"],
.filter button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--primary);
}

/* ---------- Leistungs-Stationen ----------
   Jede Karte eine eigene Station: Auswahl links, Live-Vorschau reagiert sofort (wie das Kontaktformular). */

/* Kartenlayouts: 02 breit mit Bühne unten, 03 gespiegelt */
@media (min-width: 960px) {
  .service-card.is-wide {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .service-card.is-wide .service-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 56px;
    row-gap: 18px;
    align-items: end;
  }

  .is-wide .service-index,
  .is-wide .service-title,
  .is-wide .service-copy p {
    grid-column: 1;
  }

  .is-wide .service-title {
    font-size: clamp(2.1rem, 5.5cqi, 4.8rem);
  }

  .is-wide .deliver {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: end;
  }

  .service-card.is-flip {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .is-flip .service-copy {
    order: 2;
  }
}

.demo-count {
  color: var(--c, var(--dim));
}

/* Auswahl-Kacheln: füllen sich beim Wählen von unten in der Kartenfarbe */
.picks {
  display: grid;
  gap: 8px;
}

.pick {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 44px 11px 14px;
  overflow: hidden;
  isolation: isolate;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 650;
  text-align: left;
  transition: color 300ms ease, border-color 300ms ease, transform 450ms var(--ease-spring);
}

.pick::before {
  position: absolute;
  z-index: -1;
  inset: -1px;
  background: var(--c);
  content: "";
  transform: translateY(101%);
  transition: transform 500ms var(--ease-io);
}

.pick::after {
  position: absolute;
  top: 50%;
  right: 12px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  color: var(--c);
  font-size: 0.7rem;
  font-weight: 800;
  content: "";
  transform: translateY(-50%);
  transition: background-color 300ms ease, border-color 300ms ease;
}

.pick:hover {
  border-color: var(--c);
  transform: translateY(-2px);
}

.pick[aria-pressed="true"] {
  color: var(--ink);
  border-color: var(--c);
}

.pick[aria-pressed="true"]::before {
  transform: none;
}

.pick[aria-pressed="true"]::after {
  background: var(--ink);
  border-color: var(--ink);
  content: "✓";
}

.pick:active {
  transform: scale(0.97);
}

.picks-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.picks-row .pick {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  font-size: 0.88rem;
}

.picks-row .pick::after {
  display: none;
}

@container (max-width: 520px) {
  .picks-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Kleine Icons in den Kacheln */
.pk-ico {
  position: relative;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: var(--c);
  transition: color 300ms ease;
}

.pick[aria-pressed="true"] .pk-ico,
.pick[aria-pressed="true"] .pk-curve,
.pick[aria-pressed="true"] .tp {
  color: var(--ink);
}

.pick.pop .pk-ico,
.pick.pop .pk-curve,
.pick.pop .tp {
  animation: ci-pop 500ms var(--ease-spring);
}

.pk-ico b {
  position: absolute;
  display: block;
  background: currentColor;
  border-radius: 2px;
}

.ico-hero b:nth-child(1) { left: 0; top: 2px; width: 22px; height: 9px; }
.ico-hero b:nth-child(2) { left: 0; top: 14px; width: 14px; height: 3px; }
.ico-hero b:nth-child(3) { left: 0; top: 19px; width: 8px; height: 3px; }
.ico-cards b { top: 4px; width: 6px; height: 14px; }
.ico-cards b:nth-child(1) { left: 0; }
.ico-cards b:nth-child(2) { left: 8px; }
.ico-cards b:nth-child(3) { left: 16px; }
.ico-gal b { width: 10px; height: 9px; }
.ico-gal b:nth-child(1) { left: 0; top: 2px; }
.ico-gal b:nth-child(2) { left: 12px; top: 2px; }
.ico-gal b:nth-child(3) { left: 0; top: 13px; }
.ico-gal b:nth-child(4) { left: 12px; top: 13px; }
.ico-team b { top: 7px; width: 6px; height: 6px; border-radius: 50%; }
.ico-team b:nth-child(1) { left: 0; }
.ico-team b:nth-child(2) { left: 8px; top: 4px; width: 7px; height: 7px; }
.ico-team b:nth-child(3) { left: 16px; }
.ico-team::after { position: absolute; left: 0; right: 0; top: 15px; height: 4px; background: currentColor; border-radius: 2px; opacity: 0.5; content: ""; }
.ico-form b { left: 0; width: 22px; height: 4px; }
.ico-form b:nth-child(1) { top: 2px; }
.ico-form b:nth-child(2) { top: 9px; }
.ico-form b:nth-child(3) { top: 16px; width: 11px; height: 5px; border-radius: 3px; }

.seg-full {
  display: flex;
  flex-wrap: nowrap;
}

.seg-full button {
  flex: 1;
}

/* Code-Feld (Responsive-Station) */
.code {
  margin: 0;
  padding: 14px;
  overflow-x: auto;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.74rem;
  font-weight: 450;
  line-height: 1.7;
  letter-spacing: 0;
  text-transform: none;
}

/* ---- 01 Webdesign: Baukasten ---- */
.build-split {
  display: grid;
  gap: 14px;
  align-items: start;
}

.build-controls {
  display: grid;
  gap: 12px;
}

@container (min-width: 620px) {
  .build-split {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  }
}

@container (max-width: 619px) {
  .demo-build .picks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .demo-build .pick {
    gap: 9px;
    padding: 10px 12px;
    font-size: 0.88rem;
  }
  .demo-build .pick::after {
    display: none;
  }
}

.site-frame {
  overflow: hidden;
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.sf-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  background: #dcdad1;
}

.sf-bar i {
  width: 7px;
  height: 7px;
  background: rgba(21, 24, 32, 0.25);
  border-radius: 50%;
}

.sf-bar span {
  margin-left: 8px;
  padding: 1px 9px;
  color: rgba(21, 24, 32, 0.55);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.62rem;
}

.site {
  container-type: inline-size;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 330px;
  padding: 4% 5%;
  overflow: hidden;
  color: var(--ink);
}

.s-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.s-nav b {
  width: 12cqi;
  height: 3cqi;
  background: var(--ink);
  border-radius: 1cqi;
}

.s-nav span {
  display: flex;
  gap: 2.5cqi;
}

.s-nav i {
  width: 7cqi;
  height: 1.4cqi;
  background: rgba(21, 24, 32, 0.3);
  border-radius: 1cqi;
}

.s-sec {
  display: grid;
  grid-template-rows: 1fr;
  margin-top: 3.4cqi;
  opacity: 1;
  transition: grid-template-rows 600ms var(--ease-io), margin-top 600ms var(--ease-io), opacity 400ms ease;
}

.s-sec.off {
  grid-template-rows: 0fr;
  margin-top: 0;
  opacity: 0;
}

.s-in {
  min-height: 0;
  overflow: hidden;
}

html.motion-ok .s-sec.is-new .s-in > * {
  animation: s-pop 650ms var(--ease-out);
}

@keyframes s-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
}

html.motion-ok .site.is-restyle {
  animation: s-restyle 500ms var(--ease-out);
}

@keyframes s-restyle {
  from { opacity: 0.4; }
}

.s-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4cqi;
  align-items: center;
}

.s-copy {
  display: grid;
  gap: 1.6cqi;
}

.s-copy b {
  height: 3.8cqi;
  background: var(--ink);
  border-radius: 1cqi;
}

.s-copy b:nth-child(2) {
  width: 72%;
}

.s-copy i {
  width: 85%;
  height: 1.4cqi;
  margin-top: 1cqi;
  background: rgba(21, 24, 32, 0.3);
  border-radius: 1cqi;
}

.s-btn {
  display: block;
  width: 18cqi;
  height: 4.6cqi;
  margin-top: 1.4cqi;
  background: var(--ink);
  border-radius: 99px;
}

.s-img {
  aspect-ratio: 4 / 3;
  background: var(--c);
  border-radius: 1.6cqi;
}

.s-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5cqi;
}

.s-cards span {
  position: relative;
  height: 14cqi;
  background: rgba(21, 24, 32, 0.07);
  border-radius: 1.6cqi;
}

.s-cards span::before {
  position: absolute;
  left: 2.4cqi;
  top: 2.4cqi;
  width: 3.4cqi;
  height: 3.4cqi;
  background: var(--c);
  border-radius: 50%;
  content: "";
}

.s-gal {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2cqi;
}

.s-gal span {
  height: 16cqi;
  background: rgba(21, 24, 32, 0.12);
  border-radius: 1.4cqi;
}

.s-gal span:nth-child(odd) {
  background: var(--c);
}

.s-gal span:nth-child(4) {
  display: none;
}

.s-team {
  display: flex;
  gap: 4cqi;
}

.s-team span {
  width: 10cqi;
  height: 10cqi;
  background: rgba(21, 24, 32, 0.15);
  border-radius: 50%;
}

.s-form {
  display: grid;
  gap: 1.6cqi;
}

.s-form i {
  height: 4.4cqi;
  background: #fff;
  border: 0.3cqi solid rgba(21, 24, 32, 0.15);
  border-radius: 1cqi;
}

.s-empty {
  position: absolute;
  left: 0;
  right: 0;
  top: 45%;
  color: rgba(21, 24, 32, 0.45);
  font-family: var(--mono);
  font-size: 3.4cqi;
  text-align: center;
  transition: opacity 300ms ease;
}

.s-empty[hidden] {
  display: block;
  opacity: 0;
}

/* Haltung Raster: alles gleichwertig */
.site[data-style="grid"] .s-hero { grid-template-columns: 1fr 1fr; }
.site[data-style="grid"] .s-copy b { height: 3cqi; }
.site[data-style="grid"] .s-img { aspect-ratio: 1; }
.site[data-style="grid"] .s-cards span { height: 16cqi; background: #fff; border: 0.3cqi solid rgba(21, 24, 32, 0.12); }
.site[data-style="grid"] .s-gal { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.site[data-style="grid"] .s-gal span:nth-child(4) { display: block; }
.site[data-style="grid"] .s-gal span { height: 14cqi; }

/* Haltung Editorial: Titel führt, Listen statt Kästen */
.site[data-style="editorial"] .s-copy b:first-child { height: 4.8cqi; }
.site[data-style="editorial"] .s-cards span { height: 9cqi; background: transparent; border-top: 0.5cqi solid var(--ink); border-radius: 0; }
.site[data-style="editorial"] .s-cards span::before { top: 2cqi; left: 0; }

/* Haltung Fokus: Bild zuerst, alles zentriert */
.site[data-style="focus"] .s-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.site[data-style="focus"] .s-img { order: -1; width: 100%; aspect-ratio: 16 / 6; }
.site[data-style="focus"] .s-copy { justify-items: center; width: 80%; }
.site[data-style="focus"] .s-copy b { width: 90%; }
.site[data-style="focus"] .s-copy b:nth-child(2) { width: 60%; }
.site[data-style="focus"] .s-cards { grid-template-columns: 1fr; gap: 1.6cqi; }
.site[data-style="focus"] .s-cards span { height: 6cqi; }
.site[data-style="focus"] .s-gal { grid-template-columns: 1fr 1fr; }
.site[data-style="focus"] .s-gal span:nth-child(4) { display: block; }
.site[data-style="focus"] .s-gal span { height: 10cqi; }
.site[data-style="focus"] .s-team { justify-content: center; }
.site[data-style="focus"] .s-form { justify-items: center; }
.site[data-style="focus"] .s-form i { width: 80%; }

/* ---- 02 Webentwicklung: Responsive-Regler ---- */
.resp-split {
  display: grid;
  gap: 14px;
  align-items: stretch;
}

@container (min-width: 700px) {
  .resp-split {
    grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  }
}

.resp-explain {
  display: grid;
  gap: 10px;
  align-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.resp-explain li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  opacity: 0.5;
  transition: opacity 300ms ease, border-color 300ms ease, background-color 300ms ease, transform 400ms var(--ease-spring);
}

.resp-explain li.is-active {
  opacity: 1;
  background: color-mix(in srgb, var(--c) 12%, var(--bg-2));
  border-color: var(--c);
  transform: translateX(4px);
}

.resp-explain span {
  color: var(--dim);
  font-size: 0.9rem;
  line-height: 1.4;
}

.resp-explain b {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 700;
}

.dev {
  position: relative;
  flex: 0 0 auto;
  color: var(--c);
  border: 2px solid currentColor;
  border-radius: 4px;
}

.dev-phone { width: 15px; height: 25px; }
.dev-tablet { width: 22px; height: 28px; }
.dev-desk { width: 30px; height: 20px; margin-bottom: 6px; }

.dev-desk::after {
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 12px;
  height: 3px;
  background: currentColor;
  border-radius: 2px;
  content: "";
  transform: translateX(-50%);
}

.resp-area {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-width: 0;
  padding: 16px 30px 16px 16px;
  background: repeating-linear-gradient(45deg, transparent 0 8px, rgba(236, 235, 228, 0.03) 8px 9px), var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.resp-frame {
  container-type: inline-size;
  position: relative;
  width: var(--fw, 100%);
  min-width: 0;
  max-width: 100%;
  height: 300px;
  color: var(--ink);
  background: var(--bone);
  border-radius: 12px;
}

.resp-frame.is-tween {
  transition: width 700ms var(--ease-io);
}

.rs {
  height: 100%;
  padding: 16px;
  overflow: hidden;
  border-radius: inherit;
}

.rs-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rs-nav b {
  width: 54px;
  height: 11px;
  background: var(--ink);
  border-radius: 3px;
}

.rs-links {
  display: flex;
  gap: 10px;
}

.rs-links i {
  width: 34px;
  height: 5px;
  background: rgba(21, 24, 32, 0.3);
  border-radius: 3px;
}

.rs-burger {
  display: none;
  gap: 3px;
}

.rs-burger i {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
}

@container (max-width: 419px) {
  .rs-links { display: none; }
  .rs-burger { display: grid; }
}

.rs-title {
  max-width: 16ch;
  margin: 16px 0 14px;
  font-family: var(--display);
  font-size: clamp(16px, 6.4cqi, 34px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.rs-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@container (min-width: 420px) {
  .rs-cards { grid-template-columns: 1fr 1fr; }
}

@container (min-width: 640px) {
  .rs-cards { grid-template-columns: repeat(3, 1fr); }
}

.rs-cards span {
  position: relative;
  height: 62px;
  background: #fff;
  border: 1px solid rgba(21, 24, 32, 0.1);
  border-radius: 8px;
}

.rs-cards span::before {
  position: absolute;
  left: 10px;
  right: 40%;
  top: 12px;
  height: 6px;
  background: var(--c);
  border-radius: 3px;
  content: "";
}

.rs-cards span::after {
  position: absolute;
  left: 10px;
  right: 20%;
  top: 26px;
  height: 4px;
  background: rgba(21, 24, 32, 0.15);
  border-radius: 3px;
  content: "";
}

.resp-handle {
  position: absolute;
  top: 50%;
  right: -15px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 64px;
  padding: 0;
  background: var(--c);
  border: 0;
  border-radius: 999px;
  cursor: ew-resize;
  touch-action: none;
  transform: translateY(-50%);
  transition: transform 300ms var(--ease-spring);
}

.resp-handle span {
  width: 2px;
  height: 22px;
  background: var(--ink);
  border-radius: 2px;
  box-shadow: 5px 0 0 var(--ink), -5px 0 0 var(--ink);
  transform: scaleX(0.6);
}

.resp-handle:hover,
.resp-handle.is-drag {
  transform: translateY(-50%) scale(1.08);
}

.resp-handle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

html.motion-ok .resp-handle.hint {
  animation: handle-hint 1400ms var(--ease-io) 2;
}

@keyframes handle-hint {
  50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--c) 30%, transparent); }
}

/* ---- 03 Motion Design: gleicher Klick, ohne und mit Bewegung ---- */
.mo-stage {
  display: grid;
  flex: 1;
  place-items: center;
  min-height: 330px;
  padding: 22px;
  overflow: hidden;
  background: var(--c);
  border-radius: 14px;
}

.mo-phone {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(100%, 260px);
  height: 310px;
  padding: 16px;
  overflow: hidden;
  color: var(--ink);
  background: var(--bone);
  border-radius: 26px;
  box-shadow: 0 24px 50px rgba(21, 24, 32, 0.22);
}

.mo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mo-head b {
  width: 46px;
  height: 9px;
  background: var(--ink);
  border-radius: 3px;
}

.mo-head span {
  display: grid;
  gap: 3px;
}

.mo-head i {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
}

.mo-card {
  display: grid;
  gap: 7px;
  padding: 10px;
  background: #fff;
  border-radius: 14px;
}

.mo-img {
  aspect-ratio: 16 / 8;
  background: var(--sun);
  border-radius: 9px;
}

.mo-card b {
  width: 70%;
  height: 8px;
  background: var(--ink);
  border-radius: 3px;
}

.mo-card i {
  height: 5px;
  background: rgba(21, 24, 32, 0.2);
  border-radius: 3px;
}

.mo-card i:last-child {
  width: 60%;
}

.mo-send {
  position: relative;
  height: 48px;
  margin-top: auto;
  overflow: hidden;
  color: var(--primary);
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: background-color 450ms ease, color 450ms ease, transform 250ms var(--ease-spring);
}

.mo-send:active {
  transform: scale(0.94);
}

.mo-send > span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity 300ms ease, transform 500ms var(--ease-spring);
}

.mo-dots {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(14px);
}

.mo-dots i {
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 50%;
  animation: mo-dot 800ms ease-in-out infinite;
}

.mo-dots i:nth-child(2) { animation-delay: 120ms; }
.mo-dots i:nth-child(3) { animation-delay: 240ms; }

@keyframes mo-dot {
  50% { transform: translateY(-5px); }
}

.mo-done {
  opacity: 0;
  transform: scale(0.6);
}

.mo-stage[data-state="loading"] .mo-label { opacity: 0; transform: translateY(-14px); }
.mo-stage[data-state="loading"] .mo-dots { opacity: 1; transform: none; }
.mo-stage[data-state="done"] .mo-label { opacity: 0; transform: translateY(-14px); }
.mo-stage[data-state="done"] .mo-done { opacity: 1; transform: none; }
.mo-stage[data-state="done"] .mo-send { color: var(--ink); background: var(--lime); }

.mo-toast {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--primary);
  background: var(--ink);
  border-radius: 14px;
  transform: translateY(-150%);
  transition: transform 650ms var(--ease-spring);
}

.mo-stage[data-state="done"] .mo-toast {
  transform: none;
}

.mo-toast i {
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  height: 26px;
  color: var(--ink);
  background: var(--lime);
  border-radius: 50%;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 800;
}

.mo-toast span {
  font-size: 0.78rem;
  line-height: 1.3;
}

.mo-toast b {
  display: block;
  font-size: 0.88rem;
}

/* Ohne Bewegung: alles springt sofort um */
.mo-stage.is-static *,
.mo-stage.is-static *::before,
.mo-stage.is-static *::after {
  transition: none !important;
  animation: none !important;
}

.mo-caption {
  color: var(--dim);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ---- 04 Digital Branding: Marken-Studio ---- */
.brand-wrap {
  display: grid;
  gap: 16px;
}

@container (min-width: 640px) {
  .brand-wrap {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: stretch;
  }
}

.brand-controls {
  display: grid;
  gap: 12px;
  align-content: start;
}

.brand-controls .picks-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.brand-name {
  display: grid;
  gap: 6px;
}

.brand-name .mono {
  color: var(--dim);
}

.brand-name input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  transition: border-color 250ms ease;
}

.brand-name input:focus {
  outline: none;
  border-color: var(--c);
}

.tp {
  color: var(--c);
  font-size: 1.35rem;
  line-height: 1;
  transition: color 300ms ease;
}

.tp-clear,
.brand-board[data-type="clear"] .bb-mark {
  font-family: var(--display);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: none;
}

.tp-classic,
.brand-board[data-type="classic"] .bb-mark {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: none;
}

.tp-playful,
.brand-board[data-type="playful"] .bb-mark {
  font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", var(--display);
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: lowercase;
}

.tp-tech,
.brand-board[data-type="tech"] .bb-mark {
  font-family: var(--mono);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.swatches {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.swatch {
  display: flex;
  gap: 3px;
  height: 44px;
  padding: 4px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  transition: transform 400ms var(--ease-spring), border-color 250ms ease;
}

.swatch i {
  flex: 1;
  border-radius: 8px;
}

.swatch:hover {
  transform: translateY(-2px);
}

.swatch[aria-pressed="true"] {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.brand-board {
  --b-bg: #ff7b5c;
  --b-fg: #151820;
  --b-ac: #f6f5f0;
  display: grid;
  gap: 14px;
  align-content: center;
  padding: clamp(16px, 2vw, 26px);
  background: color-mix(in srgb, var(--b-bg) 22%, var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: background-color 500ms ease;
}

html.motion-ok .brand-board.bump .bb-card,
html.motion-ok .brand-board.bump .bb-icon,
html.motion-ok .brand-board.bump .bb-web {
  animation: bb-bump 550ms var(--ease-spring);
}

html.motion-ok .brand-board.bump .bb-icon { animation-delay: 70ms; }
html.motion-ok .brand-board.bump .bb-web { animation-delay: 140ms; }

@keyframes bb-bump {
  40% { transform: scale(0.96); }
}

.bb-card {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  justify-content: center;
  aspect-ratio: 1.75;
  padding: 8% 9%;
  overflow: hidden;
  color: var(--b-fg);
  background: var(--b-bg);
  border-radius: 14px;
  transform: rotate(-1.5deg);
  transition: background-color 500ms ease, color 500ms ease;
}

.bb-card .bb-mark {
  font-size: 11cqi;
  line-height: 1;
  overflow-wrap: anywhere;
}

.brand-board[data-type="tech"] .bb-card .bb-mark {
  font-size: 8cqi;
}

.bb-line {
  width: 16cqi;
  height: 0.9cqi;
  margin: 4cqi 0 3cqi;
  background: var(--b-ac);
  border-radius: 1cqi;
  transition: background-color 500ms ease;
}

.bb-meta {
  font-family: var(--mono);
  font-size: 3.2cqi;
  opacity: 0.7;
}

.bb-side {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
}

.bb-icon {
  display: grid;
  place-items: center;
  width: 72px;
  aspect-ratio: 1;
  color: var(--b-bg);
  background: var(--b-ac);
  border-radius: 20px;
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 700;
  transition: background-color 500ms ease, color 500ms ease;
}

.brand-board[data-type="classic"] .bb-icon { font-family: "Iowan Old Style", Georgia, serif; font-style: italic; font-weight: 400; }
.brand-board[data-type="tech"] .bb-icon { font-family: var(--mono); }

.bb-web {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0 14px;
  color: var(--b-bg);
  background: var(--b-fg);
  border-radius: 14px;
  transition: background-color 500ms ease, color 500ms ease;
}

.bb-web .bb-mark {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 0.9rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bb-web i {
  display: none;
  flex: 0 0 14px;
  height: 4px;
  background: currentColor;
  border-radius: 2px;
  opacity: 0.4;
}

.bb-web i:first-of-type {
  margin-left: 4px;
}

.bb-web b {
  margin-left: auto;
  flex: 0 0 34px;
  height: 22px;
  background: var(--b-ac);
  border-radius: 99px;
  transition: background-color 500ms ease;
}

/* ---------- Arbeiten ---------- */

.work-side {
  display: grid;
  gap: 24px;
  justify-items: start;
}

.work-grid {
  display: grid;
  gap: clamp(28px, 3vw, 40px) clamp(16px, 2.4vw, 32px);
}

@media (min-width: 800px) {
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
  .work-card.is-offset {
    margin-top: clamp(60px, 10vw, 160px);
  }
}

.work-card[hidden] {
  display: none;
}

.work-card {
  transition: opacity 500ms ease, transform 700ms var(--ease-out);
}

.work-card.is-leaving {
  opacity: 0;
  transform: scale(0.96);
}

.work-link {
  display: block;
  text-decoration: none;
}

.work-visual {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  transform: translateY(var(--py, 0px));
}

.work-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}

.work-card:hover .work-visual img {
  transform: scale(1.04);
}

.is-placeholder .work-visual::after {
  position: absolute;
  top: 54px;
  left: 18px;
  padding: 6px 11px;
  color: var(--text);
  background: rgba(21, 24, 32, 0.82);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  content: "Vorschau folgt";
}

.wv-browser {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  align-items: center;
  background: rgba(21, 24, 32, 0.9);
}

.wv-browser i {
  width: 9px;
  height: 9px;
  background: var(--faint);
  border-radius: 50%;
}

.wv-art {
  position: absolute;
  inset: 36px 0 0;
}

.wv-art span {
  position: absolute;
  display: block;
  transition: transform 1100ms var(--ease-out);
}

.wv-1 { background: var(--bg-3); }
.wv-1 .s1 { right: -12%; bottom: -30%; width: 62%; aspect-ratio: 1; background: var(--sky); border-radius: 50%; }
.wv-1 .s2 { left: 8%; top: 22%; width: 46%; height: 13%; background: var(--bone); border-radius: 6px; }
.wv-1 .s3 { left: 8%; top: 42%; width: 30%; height: 5%; background: var(--faint); border-radius: 4px; }
.work-card:hover .wv-1 .s1 { transform: translate(-6%, -8%) scale(1.06); }
.work-card:hover .wv-1 .s2 { transform: translateX(4%); }

.wv-2 { background: var(--bone); }
.wv-2 .s1 { left: 7%; bottom: 4%; color: var(--ink); font-size: clamp(6rem, 18vw, 15rem); font-weight: 800; line-height: 0.8; letter-spacing: -0.07em; }
.wv-2 .s2 { right: 8%; top: 12%; width: 22%; aspect-ratio: 1; background: var(--coral); border-radius: 14px; }
.wv-2 .s3 { right: 8%; top: calc(12% + 30%); width: 22%; height: 5%; background: var(--ink); border-radius: 3px; }
.work-card:hover .wv-2 .s2 { transform: rotate(45deg) scale(0.9); }
.work-card:hover .wv-2 .s1 { transform: translateY(-4%); }

.wv-3 { background: var(--lilac); }
.wv-3 span { width: 26%; aspect-ratio: 1; background: var(--ink); }
.wv-3 .s1 { left: 22%; top: 16%; border-radius: 50% 50% 0 50%; }
.wv-3 .s2 { left: 50%; top: 16%; border-radius: 0 50% 50% 50%; }
.wv-3 .s3 { left: 22%; top: calc(16% + 35%); border-radius: 50% 50% 50% 0; }
.wv-3 .s4 { left: 50%; top: calc(16% + 35%); border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 clamp(6px, 1vw, 12px) var(--ink); }
.wv-3 .s1 { background: var(--sun); }
.work-card:hover .wv-3 .s1 { transform: rotate(-90deg); }
.work-card:hover .wv-3 .s4 { transform: scale(0.7); }

.wv-cta {
  display: grid;
  place-items: center;
  background: transparent;
  border: 1.5px dashed var(--line-strong);
  transition: border-color 400ms ease, background-color 400ms ease;
}

.work-cta:hover .wv-cta {
  border-color: var(--primary);
  background: rgba(201, 240, 130, 0.04);
}

.wv-plus {
  position: relative;
  width: 22%;
  aspect-ratio: 1;
  transition: transform 700ms var(--ease-spring);
}

.wv-plus::before,
.wv-plus::after {
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--primary);
  border-radius: 4px;
  content: "";
  transform: translate(-50%, -50%);
}

.wv-plus::before { width: 100%; height: 10%; }
.wv-plus::after { width: 10%; height: 100%; }

.work-cta:hover .wv-plus {
  transform: rotate(90deg);
}

.work-info {
  display: grid;
  gap: 6px;
  padding: 18px 4px 0;
}

.work-info h3 {
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.8rem);
  font-weight: 750;
  letter-spacing: -0.03em;
}

.work-info p {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dim);
  text-transform: none;
  letter-spacing: 0.01em;
}

.status {
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--primary);
  border-radius: 50%;
}

.work-cta h3 {
  color: var(--primary);
}

/* ---------- Prozess ---------- */

.process {
  position: relative;
  padding-block: clamp(96px, 6vw + 64px, 200px);
  border-top: 1px solid var(--line);
}

.process-head {
  display: grid;
  gap: 24px;
  margin-bottom: clamp(40px, 6vw, 80px);
}

.process-viewport {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.process-track {
  position: relative;
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0 0 0 28px;
  list-style: none;
}

/* Mobile Linie links der Schritte */
.process-track::before {
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line-strong);
  content: "";
}

.step {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 24px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 500ms ease;
}

.step::before {
  position: absolute;
  left: -29px;
  top: 30px;
  width: 16px;
  height: 16px;
  background: var(--bg);
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  content: "";
  transition: background-color 400ms ease, border-color 400ms ease;
}

.step.is-active {
  border-color: color-mix(in srgb, var(--c, var(--primary)) 45%, transparent);
}

.step.is-active::before {
  background: var(--c, var(--primary));
  border-color: var(--c, var(--primary));
}

.step-num {
  color: var(--c, var(--primary));
}

.step h3 {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
}

.step p {
  color: var(--dim);
}

.process-rail {
  display: none;
}

/* Schritt-Illustrationen: spielen, sobald der Schritt aktiv wird. */
.step-art {
  position: relative;
  height: 120px;
  margin-bottom: 8px;
  background: var(--bg);
  border-radius: 14px;
  overflow: hidden;
}

.step-art span {
  position: absolute;
  display: block;
  transition: transform 700ms var(--ease-spring), opacity 400ms ease, width 800ms var(--ease-io);
}

.art-talk span {
  height: 22%;
  border-radius: 999px;
}

.art-talk span:nth-child(1) { left: 10%; top: 16%; width: 46%; background: var(--bg-3); transform-origin: left bottom; }
.art-talk span:nth-child(2) { right: 10%; top: 40%; width: 52%; background: var(--c, var(--primary)); transform-origin: right bottom; transition-delay: 250ms; }
.art-talk span:nth-child(3) { left: 10%; top: 64%; width: 32%; background: var(--bg-3); transform-origin: left bottom; transition-delay: 500ms; }

.art-tree span:nth-child(1) { left: 50%; top: 14%; width: 22%; height: 22%; margin-left: -11%; background: var(--c, var(--primary)); border-radius: 6px; }
.art-tree span:nth-child(2),
.art-tree span:nth-child(3),
.art-tree span:nth-child(4) { top: 62%; width: 20%; height: 22%; background: var(--bg-3); border-radius: 6px; }
.art-tree span:nth-child(2) { left: 12%; transition-delay: 150ms; }
.art-tree span:nth-child(3) { left: 40%; transition-delay: 250ms; }
.art-tree span:nth-child(4) { left: 68%; transition-delay: 350ms; }
.art-tree::before {
  position: absolute;
  left: 22%;
  right: 22%;
  top: 36%;
  height: 26%;
  border: 2px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  content: "";
}

.art-frames span {
  top: 18%;
  width: 34%;
  height: 64%;
  border-radius: 8px;
  border: 2px solid var(--c, var(--primary));
  background: var(--bg-2);
}

.art-frames span:nth-child(1) { left: 12%; }
.art-frames span:nth-child(2) { left: 33%; transition-delay: 120ms; }
.art-frames span:nth-child(3) { left: 54%; background: var(--c, var(--primary)); transition-delay: 240ms; }

.art-code span {
  left: 10%;
  height: 10%;
  background: var(--bg-3);
  border-radius: 999px;
}

.art-code span:nth-child(1) { top: 18%; width: 40%; background: var(--c, var(--primary)); }
.art-code span:nth-child(2) { top: 36%; left: 18%; width: 52%; transition-delay: 120ms; }
.art-code span:nth-child(3) { top: 54%; left: 18%; width: 30%; transition-delay: 240ms; }
.art-code span:nth-child(4) { top: 72%; width: 24%; background: var(--c, var(--primary)); transition-delay: 360ms; }

.art-live span {
  left: 50%;
  top: 50%;
  width: 96px;
  height: 52px;
  margin: -26px 0 0 -48px;
  background: var(--bg-3);
  border-radius: 999px;
  transition: background-color 500ms ease 300ms;
}

.art-live span::after {
  position: absolute;
  left: 6px;
  top: 6px;
  width: 40px;
  height: 40px;
  background: var(--bone);
  border-radius: 50%;
  content: "";
  transition: transform 700ms var(--ease-spring) 300ms, background-color 500ms ease 300ms;
}

.step.is-active .art-live span { background: var(--c, var(--primary)); }
.step.is-active .art-live span::after { background: var(--ink); transform: translateX(44px); }

html.motion-ok .step:not(.is-active) .art-talk span { transform: scale(0.3); opacity: 0; }
html.motion-ok .step:not(.is-active) .art-tree span { transform: translateY(30%) scale(0.6); opacity: 0; }
html.motion-ok .step:not(.is-active) .art-frames span { transform: translateX(-40%); opacity: 0; }
html.motion-ok .step:not(.is-active) .art-code span { width: 0; }

@media (min-width: 640px) and (max-width: 959px) {
  .process-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-left: 0;
  }
  .process-track::before,
  .step::before {
    display: none;
  }
}

@media (min-width: 960px) {
  .process-track {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding-left: 0;
  }
  .process-track::before,
  .step::before {
    display: none;
  }
}

/* Mit Bewegung ab 960 px: Abschnitt wird angeheftet, die Schritte gleiten waagrecht durch. */
@media (min-width: 960px) {
  html.motion-ok .process {
    padding: 0;
  }

  html.motion-ok .process-sticky {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    height: 100svh;
    padding-top: var(--header-h);
    overflow: hidden;
  }

  html.motion-ok .process-head {
    margin-bottom: clamp(28px, 5vh, 56px);
  }

  html.motion-ok .process-viewport {
    width: 100%;
    padding-inline: max(var(--gutter), (100% - var(--container)) / 2);
  }

  html.motion-ok .process-track {
    display: flex;
    gap: 20px;
    width: max-content;
    will-change: transform;
  }

  html.motion-ok .step {
    width: clamp(320px, 30vw, 430px);
    min-height: min(440px, 52svh);
    align-content: start;
  }

  html.motion-ok .step-art {
    height: clamp(110px, 16svh, 170px);
  }

  html.motion-ok .process-rail {
    position: relative;
    display: block;
    height: 2px;
    margin-top: clamp(24px, 4vh, 44px);
    background: var(--line-strong);
  }

  html.motion-ok .process-rail span {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--lime), var(--sky), var(--sun), var(--lilac), var(--coral));
    transform: scaleX(0);
    transform-origin: left;
  }
}

/* ---------- Studio ---------- */

.studio-statement {
  max-width: 24ch;
  font-size: clamp(2rem, 1rem + 3.6vw, 5rem);
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

html.motion-ok .studio-statement .fw {
  color: var(--faint);
  transition: color 400ms ease;
}

html.motion-ok .studio-statement .fw.on {
  color: var(--text);
}

html.motion-ok .studio-statement .fw.on.accent {
  color: var(--c, var(--primary));
}

.studio-statement .accent {
  color: var(--c, var(--primary));
}

.principles {
  display: grid;
  gap: 40px 32px;
  margin: clamp(72px, 10vw, 140px) 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .principles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.principles li {
  display: grid;
  gap: 12px;
  align-content: start;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

.principles li:nth-child(1) { --c: var(--sun); }
.principles li:nth-child(2) { --c: var(--sky); }
.principles li:nth-child(3) { --c: var(--lilac); }
.principles li:nth-child(4) { --c: var(--coral); }

.pr-icon svg {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  fill: none;
  stroke: var(--c, var(--primary));
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html.motion-ok .pr-icon svg * {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset 1600ms var(--ease-out);
}

html.motion-ok .principles li.in .pr-icon svg * {
  stroke-dashoffset: 0;
}

.principles h3 {
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.principles p {
  color: var(--dim);
}

/* Studio-Block: grosser Satz links, Familien-Grafik rechts */
.family {
  display: grid;
  gap: 40px;
  align-items: center;
  margin-top: clamp(72px, 10vw, 140px);
  padding: clamp(28px, 4vw, 56px);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

@media (min-width: 900px) {
  .family {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
}

.fam-big {
  margin-bottom: 22px;
  font-family: var(--display);
  font-size: clamp(2.1rem, 1rem + 3.2vw, 4.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.fam-big span {
  display: block;
}

.fam-text p:not(.fam-big) {
  max-width: 46ch;
  color: var(--dim);
  font-size: 1.15rem;
}

.fam-text a {
  color: var(--text);
  text-decoration-color: var(--primary);
  text-underline-offset: 0.2em;
}

.fam-visual {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 300px;
}

.fam-node {
  position: relative;
  z-index: 1;
  padding: 18px 26px;
  border-radius: 16px;
}

.fam-parent {
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
}

.fam-parent img {
  display: block;
  width: 170px;
  height: auto;
}

.fam-link {
  width: 2px;
  height: 70px;
  background: repeating-linear-gradient(to bottom, var(--text) 0 6px, transparent 6px 12px);
}

.family.live .fam-link {
  animation: link-flow 900ms linear infinite;
}

@keyframes link-flow {
  to { background-position: 0 12px; }
}

.fam-child {
  color: var(--ink);
  background: var(--primary);
}

.fam-child svg {
  display: block;
  width: 200px;
  height: auto;
}

.fam-chip {
  position: absolute;
  z-index: 2;
  padding: 7px 13px;
  color: var(--ink);
  background: var(--c);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.fam-chip:nth-child(4) { left: 0; bottom: 6%; rotate: -6deg; }
.fam-chip:nth-child(5) { right: 0; bottom: 20%; rotate: 5deg; }
.fam-chip:nth-child(6) { left: 4%; top: 14%; rotate: 4deg; }
.fam-chip:nth-child(7) { right: 2%; top: 6%; rotate: -4deg; }

.family.live .fam-chip {
  animation: fam-float 5s ease-in-out infinite;
  animation-delay: calc(var(--k) * -1.25s);
}

@keyframes fam-float {
  50% { translate: 0 -8px; }
}

/* ---------- Kontakt ---------- */

.contact {
  border-top: 1px solid var(--line);
}

.contact-head {
  display: grid;
  gap: clamp(28px, 3vw, 44px);
  margin-bottom: clamp(48px, 7vw, 96px);
}

.contact-title {
  color: var(--primary);
  font-size: clamp(3.4rem, 0.8rem + 11vw, 13.5rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

/* ---------- Anfrage in vier Schritten ---------- */

.wizard {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}

@media (min-width: 1000px) {
  .wizard {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  }
}

.wz-main {
  position: relative;
  min-width: 0;
  padding: clamp(22px, 3.4vw, 48px);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Fortschritt: vier Balken in den Schrittfarben */
.wz-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 clamp(28px, 4vw, 48px);
  padding: 0;
  list-style: none;
}

html:not(.js) .wz-progress {
  display: none;
}

.wz-progress li {
  position: relative;
  padding-top: 14px;
}

.wz-progress li::before,
.wz-progress li::after {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px;
  content: "";
}

.wz-progress li::before {
  background: var(--line-strong);
}

.wz-progress li::after {
  background: var(--c);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 700ms var(--ease-io);
}

.wz-progress li.is-current::after {
  transform: scaleX(0.4);
}

.wz-progress li.is-done::after {
  transform: scaleX(1);
}

.wz-dot {
  display: none;
}

.wz-label {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 300ms ease;
}

.wz-progress li.is-current .wz-label,
.wz-progress li.is-done .wz-label {
  color: var(--text);
}

@media (max-width: 480px) {
  .wz-label {
    font-size: 0.6rem;
    letter-spacing: 0.02em;
  }
}

/* Schritte: feste Mindesthöhe, damit die Fläche beim Wechseln nicht springt */
@media (min-width: 1000px) {
  html.js .wz-steps {
    min-height: 430px;
  }
}

.wz-step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

html:not(.js) .wz-step + .wz-step {
  margin-top: 48px;
}

html.js .wz-step:not(.is-active) {
  display: none;
}

html.motion-ok .wz-step.is-active {
  animation: wz-in 650ms var(--ease-out);
}

html.motion-ok .wz-steps[data-dir="back"] .wz-step.is-active {
  animation-name: wz-in-back;
}

@keyframes wz-in {
  from { opacity: 0; transform: translateX(48px); }
}

@keyframes wz-in-back {
  from { opacity: 0; transform: translateX(-48px); }
}

.wz-q {
  display: block;
  float: left;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 1.1rem + 2vw, 2.8rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.wz-q:focus {
  outline: none;
}

.wz-q + * {
  clear: both;
}

.wz-n-old {
  display: block;
  margin-bottom: 14px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.wz-hint {
  margin-bottom: 26px;
  color: var(--dim);
}

/* Auswahlkarten: füllen sich beim Wählen von unten in ihrer Farbe */
.wz-options {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr));
}

.wz-options-sm {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
}

@media (max-width: 560px) {
  .wz-options,
  .wz-options-sm {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .opt-card,
  .wz-options-sm .opt-card {
    min-height: 128px;
    padding: 14px;
  }
  .wz-main {
    padding: 18px;
  }
  .opt-title {
    padding-top: 20px;
    font-size: 0.95rem;
    hyphens: auto;
    overflow-wrap: anywhere;
  }
  .opt-card small {
    font-size: 0.78rem;
  }
  .opt-check {
    top: 12px;
    right: 12px;
  }
}

.opt {
  position: relative;
  display: block;
  cursor: pointer;
}

.opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.opt-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 156px;
  padding: 18px;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  transition: border-color 300ms ease, color 300ms ease, transform 450ms var(--ease-spring);
}

.wz-options-sm .opt-card {
  min-height: 118px;
}

.opt-card::before {
  position: absolute;
  z-index: -1;
  inset: -1px;
  background: var(--c);
  content: "";
  transform: translateY(101%);
  transition: transform 550ms var(--ease-io);
}

.opt:hover .opt-card {
  border-color: var(--c);
  transform: translateY(-3px);
}

.opt input:checked + .opt-card {
  color: var(--ink);
  border-color: var(--c);
}

.opt input:checked + .opt-card::before {
  transform: none;
}

.opt input:focus-visible + .opt-card {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.opt input:active + .opt-card {
  transform: scale(0.97);
}

.opt-title {
  margin-top: auto;
  padding-top: 26px;
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.opt-card small {
  margin-top: 4px;
  color: var(--dim);
  font-size: 0.85rem;
  line-height: 1.35;
  transition: color 300ms ease;
}

.opt input:checked + .opt-card small {
  color: rgba(21, 24, 32, 0.68);
}

.opt-check {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  transition: background-color 300ms ease, border-color 300ms ease;
}

.opt-check::after {
  position: absolute;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid var(--c);
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(45deg) scale(0);
  transition: transform 400ms var(--ease-spring);
}

.opt input:checked + .opt-card .opt-check {
  background: var(--ink);
  border-color: var(--ink);
}

.opt input:checked + .opt-card .opt-check::after {
  transform: rotate(45deg) scale(1);
}

html.motion-ok .wz-step.is-active .opt {
  animation: opt-in 600ms var(--ease-out) both;
}

.opt:nth-child(2) { animation-delay: 60ms !important; }
.opt:nth-child(3) { animation-delay: 120ms !important; }
.opt:nth-child(4) { animation-delay: 180ms !important; }
.opt:nth-child(5) { animation-delay: 240ms !important; }

@keyframes opt-in {
  from { opacity: 0; transform: translateY(16px); }
}

/* Themen-Icons in den Karten: laufen beim Darüberfahren, hüpfen beim Wählen. */
.ci {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: var(--c);
  font-style: normal;
  transform: scale(1.5);
  transform-origin: left top;
  transition: color 300ms ease;
}

.opt input:checked + .opt-card .ci {
  color: var(--ink);
  animation: ci-pop 500ms var(--ease-spring);
}

@keyframes ci-pop {
  40% { transform: scale(1.9) rotate(-8deg); }
}

.ci b {
  position: absolute;
  display: block;
  background: currentColor;
  border-radius: 2px;
}

.ci-wd b:nth-child(1) { left: 2px; top: 3px; width: 18px; height: 4px; }
.ci-wd b:nth-child(2) { left: 2px; top: 10px; width: 10px; height: 9px; transition: transform 450ms var(--ease-spring); }
.ci-wd b:nth-child(3) { left: 14px; top: 10px; width: 6px; height: 9px; opacity: 0.6; transition: transform 450ms var(--ease-spring); }
.opt:hover .ci-wd b:nth-child(2) { transform: translateX(8px); }
.opt:hover .ci-wd b:nth-child(3) { transform: translateX(-12px); }

.ci-we {
  grid-auto-flow: column;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: -0.06em;
  transition: color 300ms ease;
}

.opt:hover .ci-we .br-l { transform: translateX(-2px); }
.opt:hover .ci-we .br-r { transform: translateX(2px); }
.opt:hover .ci-we .br-s { transform: rotate(14deg); }

.ci-mo::before {
  position: absolute;
  left: 2px;
  right: 2px;
  top: 10px;
  height: 2px;
  background: currentColor;
  opacity: 0.4;
  content: "";
}

.ci-mo b {
  left: 1px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.opt:hover .ci-mo b { animation: ci-slide 700ms var(--ease-io) infinite alternate; }

@keyframes ci-slide {
  to { transform: translateX(10px); }
}

.ci-br {
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: -0.04em;
  transition: font-weight 450ms var(--ease-out), color 300ms ease;
}

.opt:hover .ci-br,
.opt input:checked + .opt-card .ci-br { font-weight: 700; }

.ci-open b {
  top: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.ci-open b:nth-child(1) { left: 3px; }
.ci-open b:nth-child(2) { left: 9px; }
.ci-open b:nth-child(3) { left: 15px; }
.opt:hover .ci-open b { animation: ci-dot 900ms var(--ease-io) infinite; }
.opt:hover .ci-open b:nth-child(2) { animation-delay: 120ms; }
.opt:hover .ci-open b:nth-child(3) { animation-delay: 240ms; }

@keyframes ci-dot {
  0%, 60%, 100% { transform: none; }
  30% { transform: translateY(-5px); }
}

/* Zeitrahmen als Tempo-Balken */
.tm {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
  color: var(--c);
  transition: color 300ms ease;
}

.tm b {
  width: 5px;
  background: currentColor;
  border-radius: 2px;
  opacity: 0.22;
  transform-origin: bottom;
}

.tm b:nth-child(1) { height: 7px; }
.tm b:nth-child(2) { height: 11px; }
.tm b:nth-child(3) { height: 16px; }
.tm b:nth-child(4) { height: 22px; }

.tm[data-level="1"] b:nth-child(-n + 1),
.tm[data-level="2"] b:nth-child(-n + 2),
.tm[data-level="3"] b:nth-child(-n + 3),
.tm[data-level="4"] b {
  opacity: 1;
}

.opt input:checked + .opt-card .tm {
  color: var(--ink);
}

.opt:hover .tm b {
  animation: tm-bounce 700ms var(--ease-spring);
}

.opt:hover .tm b:nth-child(2) { animation-delay: 60ms; }
.opt:hover .tm b:nth-child(3) { animation-delay: 120ms; }
.opt:hover .tm b:nth-child(4) { animation-delay: 180ms; }

@keyframes tm-bounce {
  40% { transform: scaleY(1.35); }
}

/* Felder als ruhige Boxen */
.field {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.field label {
  font-size: 0.92rem;
  font-weight: 650;
}

.opt-tag {
  margin-left: 6px;
  color: var(--dim);
  font-size: 0.8rem;
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  font-size: 1.05rem;
  transition: border-color 250ms ease, box-shadow 250ms ease;
}

.field textarea {
  min-height: 200px;
  resize: vertical;
  font-size: 1.15rem;
  line-height: 1.55;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(236, 235, 228, 0.32);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(246, 245, 240, 0.1);
}

.field [aria-invalid="true"] {
  border-color: var(--error);
}

.field-error {
  margin-top: 12px;
  color: var(--error);
  font-size: 0.875rem;
}

.field .field-error {
  margin-top: 0;
}

.field-row {
  display: grid;
  gap: 0 16px;
}

@media (min-width: 640px) {
  .field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Navigation */
.wz-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.wz-next,
.wz-send {
  margin-left: auto;
}

.wz-copy {
  order: 2;
  margin-left: auto;
}

.wz-send {
  order: 3;
  margin-left: 0;
}

html:not(.js) .wz-back,
html:not(.js) .wz-next,
html:not(.js) .wz-copy {
  display: none;
}

html:not(.js) .wz-send {
  margin-left: 0;
}

.wz-nav [hidden] {
  display: none !important;
}

.wz-back[aria-hidden="true"] {
  visibility: hidden;
}

.form-status {
  min-height: 1.5em;
  margin-top: 16px;
  color: var(--text);
  font-weight: 600;
}

.form-status:empty {
  display: none;
}

.form-status.is-error {
  color: var(--error);
}

.form-note {
  max-width: 60ch;
  margin-top: 22px;
  color: var(--dim);
  font-size: 0.875rem;
}

.form-note a {
  color: var(--text);
}

/* Live-Vorschau als weisses Blatt */
.wz-preview {
  display: grid;
  gap: 28px;
  min-width: 0;
}

@media (min-width: 1000px) {
  .wz-preview {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

.pv-card {
  position: relative;
  padding: 22px 22px 26px;
  color: var(--ink);
  background: var(--primary);
  border-radius: 22px;
  transform: rotate(-1.2deg);
  transition: transform 600ms var(--ease-spring);
}

.pv-card:hover {
  transform: none;
}

.pv-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(21, 24, 32, 0.22);
}

.pv-dots {
  display: inline-flex;
  gap: 5px;
}

.pv-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.pv-dots i:nth-child(1) { background: var(--coral); }
.pv-dots i:nth-child(2) { background: var(--sun); }
.pv-dots i:nth-child(3) { background: var(--sky); }

.pv-state {
  margin-left: auto;
  padding: 4px 10px;
  background: rgba(21, 24, 32, 0.08);
  border-radius: 999px;
  transition: background-color 400ms ease;
}

.pv-card.is-ready .pv-state {
  background: var(--lime);
}

.pv-rows {
  display: grid;
  margin: 0;
}

.pv-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(21, 24, 32, 0.1);
  border-radius: 6px;
}

.pv-row:last-child {
  border-bottom: 0;
}

@media (max-width: 560px) {
  .pv-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .pv-row dd {
    overflow-wrap: break-word;
  }
}

.pv-row dt {
  margin: 0;
  padding-top: 3px;
  color: rgba(21, 24, 32, 0.55);
  font-size: 0.68rem;
}

.pv-row dd {
  min-width: 0;
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.pv-row-msg dd {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
  font-weight: 450;
  line-height: 1.5;
}

.pv-empty {
  display: block;
  width: 72%;
  height: 11px;
  margin: 5px 0;
  background: rgba(21, 24, 32, 0.08);
  border-radius: 6px;
}

.pv-empty-short {
  width: 46%;
}

html.motion-ok .pv-row.is-new dd {
  animation: pv-in 500ms var(--ease-out);
}

html.motion-ok .pv-row.is-new {
  animation: pv-flash 1000ms ease;
}

@keyframes pv-in {
  from { opacity: 0; transform: translateY(6px); }
}

@keyframes pv-flash {
  0% { background: rgba(255, 212, 107, 0.45); }
  100% { background: transparent; }
}

.pv-tag {
  display: inline-flex;
  align-items: center;
  margin: 0 6px 6px 0;
  padding: 3px 9px;
  background: var(--c);
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 650;
}

.pv-plane {
  position: absolute;
  right: 18px;
  bottom: -18px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--ink);
  border-radius: 50%;
}

.pv-plane svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.8;
  stroke-linejoin: round;
}

html.motion-ok .pv-card.is-sent .pv-plane svg {
  animation: plane-fly 1400ms var(--ease-io);
}

@keyframes plane-fly {
  45% { opacity: 0; transform: translate(40px, -40px) scale(0.6); }
  55% { opacity: 0; transform: translate(-30px, 30px) scale(0.6); }
  100% { opacity: 1; transform: none; }
}

.wz-direct {
  display: grid;
  gap: 10px;
  padding-left: 4px;
}

.wz-direct .mono {
  color: var(--dim);
}

.contact-mail {
  position: relative;
  justify-self: start;
  font-size: clamp(1.35rem, 1rem + 1.4vw, 2.1rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-mail::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--primary);
  content: "";
  transform-origin: left;
  transition: transform 500ms var(--ease-out);
}

.contact-mail:hover::after {
  transform: scaleX(0);
  transform-origin: right;
}

/* ---------- Footer ---------- */

.footer {
  position: relative;
  padding: clamp(64px, 8vw, 120px) 0 24px;
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.footer-panel {
  position: relative;
  padding: clamp(24px, 4vw, 56px);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.fp-top {
  display: grid;
  gap: 48px;
}

@media (min-width: 900px) {
  .fp-top {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: start;
  }
}

.fp-claim {
  display: grid;
  gap: 28px;
  justify-items: start;
}

.footer-claim {
  max-width: 16ch;
  font-size: clamp(1.9rem, 1rem + 2.8vw, 3.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
}

.fp-cols {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr) minmax(0, 0.9fr);
  gap: 28px 24px;
}

@media (max-width: 600px) {
  .fp-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.fp-cols div {
  display: grid;
  gap: 10px;
  align-content: start;
}

.fp-cols .mono {
  margin-bottom: 6px;
  color: var(--dim);
}

.fp-cols a {
  position: relative;
  justify-self: start;
  color: var(--text);
  text-decoration: none;
}

@media (max-width: 600px) {
  .fp-cols div:nth-child(2) {
    grid-column: 1 / -1;
    order: 3;
  }
}

.fp-cols a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 450ms var(--ease-out);
}

.fp-cols a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer-word {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  transform: translateY(var(--fy, 0%));
}

.footer-word svg {
  display: block;
  width: 100%;
  height: auto;
  color: var(--text);
}

.fw-tiles {
  position: absolute;
  top: -34px;
  right: 0;
  display: flex;
  gap: 6px;
}

.fw-tiles i {
  width: 18px;
  height: 18px;
  background: var(--c);
  border-radius: 5px;
  transition: transform 450ms var(--ease-spring);
}

.footer-panel:hover .fw-tiles i {
  transform: translateY(-6px) rotate(10deg);
}

.footer-panel:hover .fw-tiles i:nth-child(2) { transition-delay: 50ms; }
.footer-panel:hover .fw-tiles i:nth-child(3) { transition-delay: 100ms; }
.footer-panel:hover .fw-tiles i:nth-child(4) { transition-delay: 150ms; }
.footer-panel:hover .fw-tiles i:nth-child(5) { transition-delay: 200ms; }

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  color: var(--dim);
  font-size: 0.88rem;
}

.footer-bar a {
  color: var(--text);
}

.to-top {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  background: var(--bg-3);
  border-radius: 50%;
  transition: background-color 300ms ease, color 300ms ease, transform 400ms var(--ease-spring);
}

.to-top svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.to-top:hover {
  color: var(--ink);
  background: var(--primary);
  transform: translateY(-3px);
}

/* ---------- Allgemeine Einblendungen ---------- */

html.motion-ok [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 900ms ease, transform 1100ms var(--ease-out);
  transition-delay: var(--rd, 0ms);
}

html.motion-ok [data-reveal].in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
}

@media print {
  .site-header,
  .menu,
  .intro,
  .hero-grid,
  .marquee,
  .scroll-cue {
    display: none !important;
  }
  html.motion-ok .zoom,
  html.motion-ok .process {
    height: auto !important;
  }
}

/* ---------- Anzeige-Schrift ---------- */

.hero-title,
.zoom-title,
.section-title,
.service-title,
.step h3,
.studio-statement,
.contact-title,
.footer-claim,
.marquee-track,
.tile-label,
.menu-list a,
.work-info h3,
.principles h3,
.dc-name,
.contact-mail,
.pv-2 {
  font-family: var(--display);
}

.hero-title { letter-spacing: -0.045em; }
.section-title,
.service-title,
.contact-title { letter-spacing: -0.04em; }

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

.hero-collage {
  display: none;
}

@media (min-width: 1100px) {
  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(300px, 27vw, 400px);
    grid-template-areas:
      "title collage"
      "foot foot";
    align-content: center;
    column-gap: 24px;
  }

  .hero-title {
    grid-area: title;
    align-self: center;
    font-size: clamp(5rem, 1rem + 6.4vw, 9.4rem);
  }

  .hero-foot {
    grid-area: foot;
  }

  .hero-collage {
    position: relative;
    display: block;
    grid-area: collage;
    align-self: center;
    height: clamp(360px, 46vh, 460px);
  }
}

.hc {
  position: absolute;
  opacity: 0;
  scale: 0.85;
  transition: opacity 600ms ease, scale 800ms var(--ease-spring), rotate 600ms var(--ease-out);
  transition-delay: calc(900ms + var(--k, 0) * 140ms);
  will-change: transform;
}

html:not(.motion-ok) .hc,
html.is-ready .hc {
  opacity: 1;
  scale: 1;
}

html.motion-ok .hc {
  animation: hc-float 7s ease-in-out infinite;
  animation-delay: calc(var(--k, 0) * -1.3s);
}

.hero.is-off .hc {
  animation-play-state: paused;
}

@keyframes hc-float {
  50% { translate: 0 -10px; }
}

.hc-browser {
  --k: 0;
  top: 10%;
  left: 4%;
  width: 80%;
  overflow: hidden;
  color: var(--ink);
  background: var(--bone);
  border-radius: 16px;
  rotate: -4deg;
  pointer-events: auto;
}

.hc-browser:hover {
  rotate: 0deg;
}

.hcb-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 10px;
  background: #dcdad1;
}

.hcb-bar i {
  width: 7px;
  height: 7px;
  background: rgba(21, 24, 32, 0.25);
  border-radius: 50%;
}

.hcb-bar span {
  margin-left: 8px;
  padding: 1px 8px;
  color: rgba(21, 24, 32, 0.55);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.58rem;
}

.hcb-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  padding: 14px;
}

.hcb-body b {
  grid-column: 1;
  height: 9px;
  background: var(--ink);
  border-radius: 3px;
}

.hcb-body b:nth-of-type(2) {
  width: 70%;
}

.hcb-body i {
  grid-column: 1;
  height: 5px;
  background: rgba(21, 24, 32, 0.25);
  border-radius: 3px;
}

.hcb-img {
  grid-column: 2;
  grid-row: 1 / span 4;
  min-height: 74px;
  background: var(--sun);
  border-radius: 8px;
}

.hcb-btn {
  grid-column: 1;
  width: 54px;
  height: 16px;
  background: var(--ink);
  border-radius: 99px;
}

.hc-palette {
  --k: 1;
  top: 0;
  right: 0;
  display: flex;
  gap: 6px;
  padding: 8px;
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  rotate: 7deg;
}

.hc-palette i {
  width: 24px;
  height: 24px;
  background: var(--c);
  border-radius: 7px;
  transition: transform 400ms var(--ease-spring);
}

.hc-palette:hover i:nth-child(odd) {
  transform: translateY(-5px);
}

.hc-cursor {
  --k: 3;
  top: 48%;
  right: 6%;
  display: flex;
  align-items: flex-start;
}

html.motion-ok .hc-cursor {
  animation: hc-roam 9s ease-in-out infinite;
}

@keyframes hc-roam {
  0%, 100% { translate: 0 0; }
  30% { translate: -70px -60px; }
  60% { translate: -20px 40px; }
}

.hc-cursor svg {
  width: 24px;
  height: 24px;
  fill: var(--coral);
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.hc-cursor span {
  margin: 18px 0 0 -4px;
  padding: 3px 9px;
  color: var(--ink);
  background: var(--coral);
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 700;
}


/* Grössere Hero-Leiste */
.disciplines a {
  grid-template-rows: auto;
  column-gap: 16px;
  padding: 20px 14px;
}

.dc-glyph {
  border-radius: 14px;
}

.dg-wd {
  grid-template-columns: repeat(2, 12px);
  grid-template-rows: repeat(2, 12px);
  gap: 4px;
}

.dg-wd i:nth-child(1) {
  width: 28px;
}

.dg-we {
  font-size: 1.05rem;
}

.dg-mo i {
  left: 10px;
  top: calc(50% - 6px);
  width: 13px;
  height: 13px;
}

.dg-br {
  font-size: 1.45rem;
}

@media (max-width: 559px) {
  .dc-glyph {
    width: 44px;
    height: 44px;
  }
}

/* Leistungslisten: Punkt statt Nummer */
.dl-dot {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  background: var(--c, var(--primary));
  border-radius: 50%;
}

/* ---------- Kinosaal im Manifest ----------
   Die Leinwand ist ein Loch im dunklen Saal (riesiger Schatten); dahinter liegt die weisse Mosaik-Kachel.
   Positionen (--sx/--sy/--sw/--sh) setzt main.js. */

.cinema {
  display: none;
}

html.motion-ok .cinema {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: block;
  pointer-events: none;
}

.cin-screen {
  position: absolute;
  left: var(--sx);
  top: var(--sy);
  width: var(--sw);
  height: var(--sh);
  border-radius: 6px;
  box-shadow: 0 0 0 200vmax #0c0e13;
}

.cin-glow {
  position: absolute;
  left: calc(var(--sx) - var(--sw) * 0.2);
  top: calc(var(--sy) - var(--sh) * 0.3);
  width: calc(var(--sw) * 1.4);
  height: calc(var(--sh) * 1.9);
  background: radial-gradient(closest-side, rgba(246, 245, 240, 0.13), transparent);
}

.cin-beam {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(246, 245, 240, 0.09), rgba(246, 245, 240, 0.015));
}

.cin-seats {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--seat-top);
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.cin-row {
  display: flex;
  justify-content: center;
  gap: var(--g);
  margin-top: calc(var(--w) * -0.35);
}

.seat {
  position: relative;
  flex: 0 0 var(--w);
  height: calc(var(--w) * 0.95);
  background: linear-gradient(#9b3346, #4f1622 75%);
  border-radius: calc(var(--w) * 0.34) calc(var(--w) * 0.34) 6px 6px;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.08);
}

.seat.has-head::before,
.seat.has-head::after {
  position: absolute;
  left: 50%;
  background: #06070a;
  content: "";
  transform: translateX(calc(-50% + var(--hx, 0%))) scale(var(--hs, 1));
  transform-origin: 50% 100%;
}

.seat.has-head::before {
  bottom: 78%;
  width: 44%;
  height: 50%;
  border-radius: 50% 50% 46% 46%;
}

.seat.has-head::after {
  bottom: 52%;
  width: 84%;
  height: 34%;
  border-radius: 45% 45% 0 0;
}

html.motion-ok .zoom-statement {
  inset: auto;
  left: var(--sx);
  top: var(--sy);
  width: var(--sw);
  height: var(--sh);
  padding: 0 7%;
  align-items: flex-start;
}

html.motion-ok .zoom-statement > * {
  width: auto;
  margin: 0;
}

html.motion-ok .zoom-title {
  max-width: 20ch;
  font-size: clamp(1.15rem, calc(var(--sw) * 0.052), 4.6rem);
}

@media (max-width: 699px) {
  html.motion-ok .zoom-title {
    font-size: calc(var(--sw) * 0.078);
  }
}

.hero-collage .hc {
  pointer-events: auto;
}

/* ---------- Runde 6 ---------- */

/* Hinweis-Pillen statt Mono-Überschriften: Farbe der Karte, kleines bewegtes Symbol */
.hint {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-self: start;
  padding: 7px 14px 7px 10px;
  color: var(--c, var(--primary));
  background: color-mix(in srgb, var(--c, var(--primary)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c, var(--primary)) 38%, transparent);
  border-radius: 999px;
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hint i {
  position: relative;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}

.hint-tap i::before,
.hint-tap i::after {
  position: absolute;
  inset: 4px;
  background: currentColor;
  border-radius: 50%;
  content: "";
}

.hint-tap i::after {
  inset: 0;
  background: transparent;
  border: 2px solid currentColor;
}

html.motion-ok .hint-tap i::after {
  animation: tap-ring 1.8s ease-out infinite;
}

@keyframes tap-ring {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

.hint-drag i::before {
  position: absolute;
  left: 0;
  right: 0;
  top: 7px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  opacity: 0.5;
  content: "";
}

.hint-drag i::after {
  position: absolute;
  left: 0;
  top: 3px;
  width: 10px;
  height: 10px;
  background: currentColor;
  border-radius: 50%;
  content: "";
}

html.motion-ok .hint-drag i::after {
  animation: drag-dot 1.4s ease-in-out infinite alternate;
}

@keyframes drag-dot {
  to { transform: translateX(6px); }
}

.hint-type i::before {
  position: absolute;
  left: 7px;
  top: 1px;
  width: 2px;
  height: 14px;
  background: currentColor;
  content: "";
}

html.motion-ok .hint-type i::before {
  animation: caret 0.9s steps(1) infinite;
}

.wz-n {
  display: block;
  margin-bottom: 12px;
  color: var(--dim);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
}

.aside-head,
.fp-head {
  margin-bottom: 6px;
  color: var(--dim);
  font-size: 0.92rem;
  font-weight: 600;
}

.plane-trail {
  fill: none;
  stroke: rgba(246, 245, 240, 0.55);
  stroke-width: 1.4;
  stroke-dasharray: 3 5;
  stroke-linecap: round;
}

[data-plane-mask] {
  fill: none;
  stroke: #fff;
  stroke-width: 8;
}

.plane-body {
  fill: #f6f5f0;
  stroke: rgba(21, 24, 32, 0.35);
  stroke-width: 0.8;
  stroke-linejoin: round;
}

.plane-fold {
  fill: none;
  stroke: rgba(21, 24, 32, 0.45);
  stroke-width: 0.8;
}

/* ---- Kino: Vorhang, Hinweise, Szene auf der Leinwand ---- */
.cin-curtain {
  position: absolute;
  top: 0;
  width: calc(var(--sx) + var(--sw) / 2 + 2px);
  height: calc(var(--sy) + var(--sh) + 3%);
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.25), transparent 30%, rgba(0, 0, 0, 0.3)),
    repeating-linear-gradient(90deg, #5a0c1a 0, #8c1c30 14px, #b02a42 22px, #8c1c30 30px, #5a0c1a 44px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.cin-curtain-l {
  left: 0;
  border-bottom-right-radius: 40px;
  transform: translateX(calc(var(--open, 0) * -1 * (var(--sw) / 2 + 30px)));
}

.cin-curtain-r {
  right: 0;
  border-bottom-left-radius: 40px;
  transform: translateX(calc(var(--open, 0) * (var(--sw) / 2 + 30px)));
}

.cin-note {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--sun);
  font-family: var(--display);
  font-size: clamp(0.95rem, 0.7rem + 0.6vw, 1.3rem);
  font-weight: 700;
  opacity: var(--note-o, 0);
  transform: translateY(calc((1 - var(--note-o, 0)) * 12px));
}

.cin-note span {
  padding: 6px 13px;
  background: rgba(12, 14, 19, 0.9);
  border-radius: 999px;
}

.cin-note svg {
  width: 56px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cin-note-web {
  left: max(12px, calc(var(--sx) - 210px));
  top: calc(var(--sy) + var(--sh) * 0.18);
  flex-direction: row-reverse;
}

.cin-note-crowd {
  right: 7%;
  top: calc(var(--seat-top) - 64px);
  color: var(--sky);
}

@media (max-width: 699px) {
  .cin-note svg { display: none; }
  .cin-note-web {
    left: var(--sx);
    top: calc(var(--sy) + var(--sh) + 10px);
    translate: 0 0;
  }
  .cin-note-web span::before { content: "↑ "; }
  .cin-note-crowd {
    right: var(--sx);
    top: calc(var(--seat-top) - 44px);
  }
  .cin-note-crowd span::after { content: " ↓"; }
}

html.motion-ok .zoom-statement {
  padding: 0;
}

.scene {
  display: grid;
  gap: 5%;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 5% 6%;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 28%, rgba(140, 203, 255, 0.35), transparent 55%),
    radial-gradient(circle at 88% 85%, rgba(255, 123, 92, 0.35), transparent 55%),
    linear-gradient(135deg, #20275a, #3a1b46);
  border-radius: 6px;
}

html.motion-ok .scene {
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
}

html:not(.motion-ok) .scene {
  padding: 28px;
  border-radius: var(--radius-lg);
}

@media (min-width: 700px) {
  html:not(.motion-ok) .scene {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  }
}

.scene-site {
  display: flex;
  flex-direction: column;
  aspect-ratio: 4 / 3.6;
  overflow: hidden;
  background: var(--bone);
  border-radius: 12px;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.35);
  rotate: -4deg;
}

.ss-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 11%;
  padding: 0 6%;
  background: #dcdad1;
}

.ss-bar i {
  width: 6px;
  height: 6px;
  background: rgba(21, 24, 32, 0.25);
  border-radius: 50%;
}

.ss-body {
  display: grid;
  flex: 1;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: min-content;
  gap: 6% 8%;
  align-content: start;
  padding: 9% 8%;
}

.ss-body b {
  grid-column: 1;
  height: 9px;
  background: var(--ink);
  border-radius: 3px;
}

.ss-body b:nth-of-type(2) { width: 70%; }

.ss-img {
  grid-column: 2;
  grid-row: 1 / span 3;
  min-height: 56px;
  background: var(--sun);
  border-radius: 7px;
}

.ss-body i {
  grid-column: 1 / -1;
  height: 5px;
  background: rgba(21, 24, 32, 0.2);
  border-radius: 3px;
}

.ss-btn {
  width: 40%;
  height: 14px;
  background: var(--coral);
  border-radius: 99px;
}

.scene-bubble {
  position: relative;
  padding: 7% 8%;
  color: var(--ink);
  background: var(--primary);
  border-radius: 24px;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.3);
}

.scene-bubble::before {
  position: absolute;
  left: -16px;
  top: 58%;
  width: 26px;
  height: 26px;
  background: var(--primary);
  clip-path: polygon(100% 0, 0 55%, 100% 100%);
  content: "";
}

html.motion-ok .zoom-title {
  max-width: none;
  font-size: clamp(1rem, calc(var(--sw) * 0.034), 3rem);
  line-height: 1.08;
}

.zoom-title .sw {
  transition: opacity 300ms ease, color 300ms ease;
}

html.motion-ok .zoom-title .sw {
  opacity: 0.14;
}

html.motion-ok .zoom-title .sw.on {
  opacity: 1;
}

@media (max-width: 699px) {
  html.motion-ok .scene {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 7%;
  }
  .scene-site {
    width: 48%;
  }
  .scene-bubble::before {
    left: 18%;
    top: -14px;
    clip-path: polygon(0 100%, 45% 0, 100% 100%);
  }
  html.motion-ok .zoom-title {
    font-size: calc(var(--sw) * 0.062);
  }
}

/* ---- Grundsätze: kleine Animationen ---- */
.pr-art {
  position: relative;
  display: block;
  width: 76px;
  height: 56px;
  margin-bottom: 14px;
  color: var(--c, var(--primary));
}

.pa-layout i {
  position: absolute;
  background: currentColor;
  border-radius: 3px;
}

.pa-layout i:nth-child(1) { left: 0; top: 0; width: 100%; height: 14%; opacity: 0.4; }
.pa-layout i:nth-child(2) { left: 0; top: 26%; width: 55%; height: 74%; }
.pa-layout i:nth-child(3) { left: 63%; top: 26%; width: 37%; height: 32%; opacity: 0.5; }
.pa-layout i:nth-child(4) { left: 63%; top: 68%; width: 37%; height: 32%; opacity: 0.5; }

.principles.live .pa-layout i:nth-child(2) { animation: pa-big 6s var(--ease-io) infinite; }
.principles.live .pa-layout i:nth-child(3),
.principles.live .pa-layout i:nth-child(4) { animation: pa-small 6s var(--ease-io) infinite; }

@keyframes pa-big {
  0%, 30% { left: 0; }
  45%, 80% { left: 45%; }
  95%, 100% { left: 0; }
}

@keyframes pa-small {
  0%, 30% { left: 63%; }
  45%, 80% { left: 0; }
  95%, 100% { left: 63%; }
}

.pa-curve svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.pa-curve path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0.6;
}

.pa-x,
.pa-y {
  position: absolute;
  inset: 8.3% 6.25%;
}

.pa-y {
  inset: 0;
  transform: translateY(100%);
}

.pa-y::before {
  position: absolute;
  left: -6px;
  top: -6px;
  width: 12px;
  height: 12px;
  background: currentColor;
  border-radius: 50%;
  content: "";
}

.principles.live .pa-x { animation: mo-x 2.6s linear infinite alternate; }
.principles.live .pa-y { animation: mo-y 2.6s cubic-bezier(0.33, 0, 0.36, 1) infinite alternate; }

.pa-devices i {
  position: absolute;
  bottom: 4px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.pa-devices b {
  position: absolute;
  inset: 3px;
  background: currentColor;
  border-radius: 2px;
  opacity: 0.18;
}

.d-mon { left: 0; width: 40px; height: 28px; bottom: 12px !important; }
.d-mon::after {
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 14px;
  height: 3px;
  background: currentColor;
  border-radius: 2px;
  content: "";
  transform: translateX(-50%);
}
.d-tab { left: 44px; width: 20px; height: 28px; }
.d-pho { left: 67px; width: 11px; height: 19px; border-radius: 3px !important; }

.principles.live .pa-devices b { animation: dev-light 4.5s ease-in-out infinite; }
.principles.live .d-tab b { animation-delay: 1.5s; }
.principles.live .d-pho b { animation-delay: 3s; }

@keyframes dev-light {
  0%, 30%, 100% { opacity: 0.18; }
  10%, 22% { opacity: 1; }
}

.pa-bolt svg {
  position: absolute;
  left: 22px;
  top: 0;
  width: 54px;
  height: 54px;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}

.principles.live .pa-bolt svg { animation: bolt-flash 3.2s ease-in-out infinite; }

@keyframes bolt-flash {
  0%, 60%, 100% { fill: transparent; }
  70%, 85% { fill: currentColor; }
}

.pa-bolt i {
  position: absolute;
  left: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  opacity: 0;
}

.pa-bolt i:nth-of-type(1) { top: 16px; width: 14px; }
.pa-bolt i:nth-of-type(2) { top: 26px; width: 20px; }
.pa-bolt i:nth-of-type(3) { top: 36px; width: 10px; }

.principles.live .pa-bolt i { animation: speed-line 3.2s ease-out infinite; }
.principles.live .pa-bolt i:nth-of-type(2) { animation-delay: 80ms; }
.principles.live .pa-bolt i:nth-of-type(3) { animation-delay: 160ms; }

@keyframes speed-line {
  0%, 62% { opacity: 0; transform: translateX(-8px); }
  72% { opacity: 1; }
  90%, 100% { opacity: 0; transform: translateX(8px); }
}

/* ---- Motion: Szenen-Auswahl ---- */
.mo-scenes .pick {
  flex-direction: row;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
}

.sc-ico {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: var(--c);
  font-style: normal;
  transition: color 300ms ease;
}

.pick[aria-pressed="true"] .sc-ico {
  color: var(--ink);
}

.sc-send::before {
  position: absolute;
  inset: 2px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%, 22% 50%);
  content: "";
}

.sc-menu b,
.sc-load b {
  position: absolute;
  left: 2px;
  right: 2px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.sc-menu b:nth-child(1) { top: 4px; }
.sc-menu b:nth-child(2) { top: 8px; }
.sc-menu b:nth-child(3) { top: 12px; }
.sc-load b { height: 4px; opacity: 0.6; }
.sc-load b:nth-child(1) { top: 3px; }
.sc-load b:nth-child(2) { top: 10px; right: 7px; }

.sc-like::before {
  position: absolute;
  inset: 0;
  font-size: 16px;
  line-height: 18px;
  text-align: center;
  content: "♥";
}

.mo-head {
  position: relative;
  z-index: 4;
}

.mo-burger {
  display: grid;
  gap: 4px;
}

.mo-burger i {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 450ms var(--ease-out), background-color 300ms ease;
}

.mo-menu {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 70px 22px;
  background: var(--ink);
  transform: translateX(105%);
  transition: transform 600ms var(--ease-out);
}

.mo-menu i {
  display: block;
  height: 12px;
  background: var(--primary);
  border-radius: 4px;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 400ms ease, transform 500ms var(--ease-out);
}

.mo-menu i:nth-child(1) { width: 70%; transition-delay: 150ms; }
.mo-menu i:nth-child(2) { width: 55%; transition-delay: 220ms; }
.mo-menu i:nth-child(3) { width: 80%; transition-delay: 290ms; }
.mo-menu i:nth-child(4) { width: 45%; transition-delay: 360ms; background: var(--lilac); }

.mo-stage[data-scene="menu"][data-state="done"] .mo-menu { transform: none; }
.mo-stage[data-scene="menu"][data-state="done"] .mo-menu i { opacity: 1; transform: none; }
.mo-stage[data-scene="menu"][data-state="done"] .mo-head b { background: var(--primary); }
.mo-stage[data-scene="menu"][data-state="done"] .mo-burger i { background: var(--primary); }
.mo-stage[data-scene="menu"][data-state="done"] .mo-burger i:first-child { transform: translateY(3px) rotate(45deg); }
.mo-stage[data-scene="menu"][data-state="done"] .mo-burger i:last-child { transform: translateY(-3px) rotate(-45deg); }
.mo-stage:not([data-scene="send"]) .mo-toast { transform: translateY(-150%) !important; }

.mo-card {
  position: relative;
}

.mo-heart {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 300ms ease;
}

.mo-stage[data-scene="like"] .mo-heart {
  opacity: 1;
}

.mo-heart svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  transition: fill 300ms ease, stroke 300ms ease;
}

.mo-heart em {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--coral);
  border-radius: 50%;
  opacity: 0;
}

.mo-heart em:nth-of-type(1) { --a: 0deg; }
.mo-heart em:nth-of-type(2) { --a: 60deg; }
.mo-heart em:nth-of-type(3) { --a: 120deg; }
.mo-heart em:nth-of-type(4) { --a: 180deg; }
.mo-heart em:nth-of-type(5) { --a: 240deg; }
.mo-heart em:nth-of-type(6) { --a: 300deg; }

.mo-stage[data-scene="like"][data-state="done"] .mo-heart svg {
  fill: var(--coral);
  stroke: var(--coral);
  animation: heart-pop 600ms var(--ease-spring);
}

.mo-stage[data-scene="like"][data-state="done"] .mo-heart em {
  animation: burst 700ms ease-out forwards;
}

@keyframes heart-pop {
  40% { transform: scale(1.45); }
}

@keyframes burst {
  0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(1); }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(-26px) scale(0.4); }
}

.mo-stage[data-scene="load"][data-state="loading"] .mo-img,
.mo-stage[data-scene="load"][data-state="loading"] .mo-card b,
.mo-stage[data-scene="load"][data-state="loading"] .mo-card i {
  background: linear-gradient(90deg, #e1e0db 0%, #f2f1ec 50%, #e1e0db 100%) 0 0 / 200% 100%;
  animation: shimmer 1s linear infinite;
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

.mo-stage[data-scene="load"][data-state="done"] .mo-img { animation: img-in 650ms var(--ease-out); }
.mo-stage[data-scene="load"][data-state="done"] .mo-card b,
.mo-stage[data-scene="load"][data-state="done"] .mo-card i { animation: line-in 600ms var(--ease-out) both; }
.mo-stage[data-scene="load"][data-state="done"] .mo-card i { animation-delay: 120ms; }
.mo-stage[data-scene="load"][data-state="done"] .mo-card i:last-of-type { animation-delay: 220ms; }

@keyframes img-in {
  from { opacity: 0; transform: scale(0.92); }
}

@keyframes line-in {
  from { opacity: 0; transform: translateX(-12px); }
}

/* ---- Branding: mehr Optionen ---- */
.brand-controls .picks-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.brand-controls .pick-type {
  gap: 6px;
  padding: 10px;
  font-size: 0.8rem;
}

.brand-controls .tp {
  font-size: 1.15rem;
}

.tp-elegant,
.brand-board[data-type="elegant"] .bb-mark {
  font-family: var(--display);
  font-style: normal;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.tp-bold,
.brand-board[data-type="bold"] .bb-mark {
  font-family: var(--display);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.brand-board[data-type="elegant"] .bb-card .bb-mark { font-size: 6.5cqi; }
.brand-board[data-type="elegant"] .bb-icon { font-weight: 300; }

.swatch {
  height: 38px;
}

.shapes button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.shp {
  width: 11px;
  height: 11px;
  background: currentColor;
}

.shp-0 { border-radius: 1px; }
.shp-1 { border-radius: 4px; }
.shp-2 { border-radius: 50%; }

.brand-board {
  --b-card-rad: 14px;
  --b-icon-rad: 20px;
  --b-btn-rad: 99px;
}

.bb-card { border-radius: var(--b-card-rad); transition: background-color 500ms ease, color 500ms ease, border-radius 500ms var(--ease-out); }
.bb-icon { border-radius: var(--b-icon-rad); transition: background-color 500ms ease, color 500ms ease, border-radius 500ms var(--ease-out); }
.bb-web b { border-radius: var(--b-btn-rad); }
.bb-web { min-height: 52px; border-radius: var(--b-card-rad); }

.bb-post {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0 14px;
  overflow: hidden;
  color: var(--b-fg);
  background: var(--b-bg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--b-card-rad);
  transition: background-color 500ms ease, color 500ms ease, border-radius 500ms var(--ease-out);
}

.bb-post .bb-mark {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 1rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bb-post i {
  flex: 0 0 26px;
  height: 26px;
  background: var(--b-ac);
  border-radius: var(--b-icon-rad);
}

@media (max-width: 600px) {
  .fam-visual {
    min-height: 0;
    padding: 52px 0;
  }
  .fam-chip:nth-child(4) { left: 0; bottom: 0; top: auto; right: auto; }
  .fam-chip:nth-child(5) { right: 0; bottom: 0; top: auto; left: auto; }
  .fam-chip:nth-child(6) { left: 0; top: 0; bottom: auto; right: auto; }
  .fam-chip:nth-child(7) { right: 0; top: 0; bottom: auto; left: auto; }
}

/* ---------- Runde 7 ---------- */

/* Jede Station misst ihren eigenen Platz (Container Queries statt Fensterbreite). */
.service-demo {
  container-type: inline-size;
}

/* Papierflieger über der ganzen Seite */
.sky {
  display: none;
}

html.motion-ok .sky {
  position: fixed;
  z-index: 44;
  inset: 0;
  display: block;
  pointer-events: none;
}

.sky svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.sky .plane-trail {
  stroke: rgba(246, 245, 240, 0.4);
}

.sky .plane-craft {
  transform: scale(1.5);
}

@media (max-width: 700px) {
  .sky .plane-craft {
    transform: scale(1.15);
  }
}

/* Motion: Merken – grosses Herz und Zähler, kein Hinweisfenster */
.mo-badge {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-left: auto;
  margin-right: 10px;
  color: var(--ink);
  background: var(--coral);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
  opacity: 0;
  transform: scale(0);
  transition: opacity 250ms ease, transform 500ms var(--ease-spring);
}

.mo-stage[data-scene="like"][data-state="done"] .mo-badge {
  opacity: 1;
  transform: none;
}

.mo-bigheart {
  position: absolute;
  left: 50%;
  top: 34%;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  opacity: 0;
  pointer-events: none;
}

.mo-bigheart svg {
  width: 100%;
  height: 100%;
  fill: #fff;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.25));
}

.mo-stage[data-scene="like"][data-state="done"] .mo-bigheart {
  animation: big-heart 1100ms var(--ease-out) forwards;
}

@keyframes big-heart {
  0% { opacity: 0; transform: scale(0.2); }
  25% { opacity: 1; transform: scale(1.2); }
  45% { transform: scale(0.95); }
  70% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.1) translateY(-10px); }
}

.mo-stage[data-scene="like"][data-state="done"] .mo-send {
  color: var(--ink);
  background: var(--coral);
}

/* Motion: Laden – Platzhalter, Fortschritt im Knopf, neues Bild */
.mo-send > span.mo-progress {
  display: block;
  z-index: 0;
  background: rgba(246, 245, 240, 0.22);
  transform: scaleX(0);
  transform-origin: left;
}

.mo-stage[data-scene="load"][data-state="loading"] .mo-progress {
  transform: scaleX(1);
  transition: transform var(--wait, 1400ms) linear;
}

.mo-stage[data-scene="load"] .mo-dots {
  display: none !important;
}

.mo-stage[data-scene="load"][data-state="loading"] .mo-label {
  opacity: 1;
  transform: none;
}

.mo-stage[data-scene="load"]:not([data-state="done"]) .mo-img,
.mo-stage[data-scene="load"]:not([data-state="done"]) .mo-card b,
.mo-stage[data-scene="load"]:not([data-state="done"]) .mo-card i {
  background: #dddcd6;
}

.mo-stage[data-scene="load"][data-state="loading"] .mo-img,
.mo-stage[data-scene="load"][data-state="loading"] .mo-card b,
.mo-stage[data-scene="load"][data-state="loading"] .mo-card i {
  background: linear-gradient(90deg, #dddcd6 0%, #f2f1ec 50%, #dddcd6 100%) 0 0 / 200% 100%;
  animation: shimmer 1s linear infinite;
}

.mo-stage[data-scene="load"][data-state="done"] .mo-img {
  background:
    linear-gradient(transparent 55%, rgba(21, 24, 32, 0.25) 55%),
    linear-gradient(160deg, var(--sky), var(--lilac));
}

.mo-stage[data-scene="load"][data-state="done"] .mo-send {
  color: var(--ink);
  background: var(--sky);
}

/* Runde 10: Hinweis «Namen eintippen» klappt beim Tippen weg,
   die Adresse auf der Karte bleibt einzeilig. */
.brand-name .hint-type {
  max-height: 3rem;
  overflow: hidden;
  transition: opacity 220ms ease, transform 320ms var(--ease-out), max-height 320ms ease,
    padding 320ms ease, margin 320ms ease, border-width 320ms ease;
}

.brand-name.is-typed .hint-type {
  max-height: 0;
  margin-bottom: -6px;
  padding-block: 0;
  border-width: 0;
  opacity: 0;
  transform: translateY(-4px);
}

.bb-meta {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Runde 11: Erklärung unter der Motion-Station als Info-Kasten */
.mo-info {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--lilac) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--lilac) 32%, transparent);
  border-radius: 14px;
  transition: background-color 300ms ease, border-color 300ms ease;
}

.mo-info__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--ink);
  background: var(--lilac);
  border-radius: 10px;
  transition: background-color 300ms ease;
}

.mo-info__icon svg {
  width: 18px;
  height: 18px;
}

.mo-info__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.mo-info__head b {
  color: var(--lilac);
  font-weight: 700;
  transition: color 300ms ease;
}

.mo-info__head span {
  padding: 2px 9px;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.mo-info__text {
  margin: 0;
  color: var(--dim);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Ohne Bewegung: neutral-grau, damit der Unterschied auch hier sichtbar ist */
.mo-info.is-off {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
}

.mo-info.is-off .mo-info__icon {
  background: #8b90a0;
}

.mo-info.is-off .mo-info__head b {
  color: #b9bdc9;
}

html.motion-ok .mo-info.is-new .mo-info__body {
  animation: mo-info-in 380ms var(--ease-out) both;
}

@keyframes mo-info-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}
