/* ==========================================================================
   KS Mediengestaltung – Stylesheet (Version 2: Vollfarbe, Desktop zuerst)
   --------------------------------------------------------------------------
   1. Schrift & Tokens        5. Startseite: Hero + 3D-Bühne + Laufband
   2. Basis                   6. Startseite: KI, Ablauf (Scroll-Story & Effekte am Dateiende)
   3. Buttons                 7. Kontakt-Band, Unterseiten, Formulare
   4. Header & Navigation     8. Footer, schmale Bildschirme, reduzierte Bewegung
   Farben nur über die Variablen in :root ändern.
   ========================================================================== */

/* 1. Schrift & Tokens ------------------------------------------------------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-variable-latin.woff") format("woff");
  font-weight: 400 900;
  font-stretch: 100% 125%;
  font-display: swap;
}

:root {
  --blue: #2b2dff;          /* Leitfarbe: große Flächen */
  --blue-deep: #1617c9;     /* Hover, Schatten */
  --lime: #d6ff3d;          /* Signal: „Termin buchen“, Akzente auf Blau/Schwarz */
  --ink: #000;
  --paper: #fff;
  --paper-2: #f1f1ec;
  --grey: #4a4a4a;          /* Nebentext auf Weiß (8,9:1) */
  --on-blue-2: #dcdcff;     /* Nebentext auf Blau */
  --on-black-2: #b9b9b9;    /* Nebentext auf Schwarz */

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --step-0: 1.125rem;
  --step-1: 1.3125rem;
  --step-2: clamp(1.5rem, 1.1rem + 0.9vw, 2rem);
  --step-3: clamp(2rem, 1.2rem + 1.8vw, 3rem);
  --step-4: clamp(2.75rem, 1rem + 4vw, 5.5rem);

  --container: 90rem;
  --gutter: clamp(1.25rem, 3.5vw, 3.5rem);
  --section: clamp(5rem, 3rem + 7vw, 10rem);
  --header-h: 5rem;

  --cut: 0.85rem;
  --chamfer: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  --ease: cubic-bezier(0.16, 0.84, 0.2, 1);
}

/* 2. Basis ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; font-family: var(--font); font-size: var(--step-0); line-height: 1.55;
  color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 850; font-stretch: 120%; line-height: 0.98; letter-spacing: -0.03em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
[data-surface="dark"] :focus-visible { outline-color: var(--lime); }
::selection { background: var(--lime); color: #000; }
main:focus { outline: none; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 100; padding: 0.75rem 1rem; background: #000; color: #fff; font-weight: 700; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

/* Überschriften erscheinen beim Hineinscrollen (nur mit JS und ohne „Bewegung reduzieren“) */
.reveal-on .reveal { transition: clip-path 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal-on .reveal:not(.is-in) { clip-path: inset(0 0 100% 0); transform: translateY(0.4em); }

/* 3. Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.5rem; padding: 0.95rem 1.6rem;
  font: inherit; font-size: 1.0625rem; font-weight: 750; font-stretch: 112%; line-height: 1.1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  color: #fff; background: var(--ink); border: 0; clip-path: var(--chamfer);
  transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--lime), inset 0 0 0 5px #000; }
.btn--lime { background: var(--lime); color: #000; }
.btn--lime:hover { background: #000; color: var(--lime); }
[data-surface="dark"] .btn--lime:hover { background: #fff; color: #000; }
.btn--lime:focus-visible { box-shadow: inset 0 0 0 3px #000, inset 0 0 0 5px var(--lime); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-deep); }
.btn--small { min-height: 2.75rem; padding: 0.6rem 1.1rem; font-size: 0.9688rem; }

/* Kontur-Buttons: Rahmen folgt dem schrägen Schnitt; --ghost-fill = Hintergrund der Fläche */
.btn--ghost, .btn--line-light { position: relative; isolation: isolate; }
.btn--ghost::before, .btn--line-light::before {
  content: ""; position: absolute; inset: 2px; z-index: -1; background: var(--ghost-fill, var(--paper));
  clip-path: polygon(0 0, calc(100% - var(--cut) + 1px) 0, 100% calc(var(--cut) - 1px), 100% 100%, calc(var(--cut) - 1px) 100%, 0 calc(100% - var(--cut) + 1px));
  transition: background-color 0.2s;
}
.btn--ghost { background: #000; color: #000; }
.btn--ghost:hover { color: #fff; }
.btn--ghost:hover::before { background: #000; }
.btn--line-light { background: #fff; color: #fff; }
.btn--line-light:hover { color: #000; }
.btn--line-light:hover::before { background: #fff; }
.btn--ghost:focus-visible, .btn--line-light:focus-visible { box-shadow: none; }
.btn--ghost:focus-visible::before, .btn--line-light:focus-visible::before { inset: 4px; }

.text-link { font-weight: 750; font-stretch: 110%; text-decoration-thickness: 2px; }
.text-link:hover { color: var(--blue); }

/* 4. Header & Navigation ---------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  color: #000; background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled:not(.is-dark) { box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12); }
.site-header.is-dark { color: #fff; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header.is-dark.is-scrolled { background: rgba(8, 8, 40, 0.35); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.site-header__inner { width: min(100% - 2 * var(--gutter), var(--container)); height: 100%; margin-inline: auto; display: flex; align-items: center; gap: 2rem; }
.brand { flex: none; margin-right: auto; display: block; }
.brand img { width: 240px; }
.brand__light, .is-dark .brand__dark { display: none; }
.is-dark .brand__light { display: block; }
.site-nav { display: flex; align-items: center; gap: 2.25rem; }
.site-nav__list { list-style: none; display: flex; gap: 2rem; }
.site-nav__list a {
  font-weight: 650; font-size: 1rem; text-decoration: none; padding-block: 0.4rem; white-space: nowrap;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 2px no-repeat; transition: background-size 0.25s var(--ease);
}
.site-nav__list a:hover, .site-nav__list a[aria-current="page"] { background-size: 100% 2px; }
.site-nav__actions { display: flex; align-items: center; gap: 1.5rem; }
.site-nav__phone { font-weight: 750; font-stretch: 112%; text-decoration: none; white-space: nowrap; }
.site-nav .btn { min-height: 3rem; padding: 0.75rem 1.3rem; }
.nav-toggle { display: none; }
@media (max-width: 84rem) { .site-nav__phone { display: none; } .site-nav__list { gap: 1.4rem; } }
@media (max-width: 76rem) { .site-header__inner { gap: 1.25rem; } .site-nav { gap: 1.5rem; } .site-nav__list { gap: 1.1rem; } .site-nav__list a { font-size: 0.9375rem; } .brand img { width: 200px; } }

/* 5. Startseite: Hero ------------------------------------------------------- */
.hero {
  --ghost-fill: var(--blue);
  position: relative; display: grid; grid-template-rows: 1fr auto;
  min-height: max(100vh, 52rem); padding-top: var(--header-h);
  background: var(--blue); color: #fff; overflow: hidden;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.22; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .hero__video { display: none; } }
.hero::before { /* großes Lichtfeld für Tiefe */
  content: ""; position: absolute; inset: -20% -10% auto 35%; height: 120%;
  background: radial-gradient(closest-side, rgba(120, 125, 255, 0.55), transparent 70%); pointer-events: none;
}
.hero__inner {
  position: relative; width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 6.2fr) minmax(0, 5.8fr); gap: clamp(2rem, 4vw, 5rem);
  align-items: center; padding-block: clamp(2rem, 5vh, 4rem);
}
.hero__copy { container-type: inline-size; display: grid; gap: 2rem; align-content: center; }
.hero__title { font-size: 13cqw; /* längstes Wort „Unternehmen.“ darf leicht in den Spaltenabstand ragen */ font-weight: 880; font-stretch: 125%; line-height: 0.86; letter-spacing: -0.05em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.07em; margin-bottom: -0.07em; }
.hero__title .line > span { display: inline-block; animation: rise 1.1s var(--ease) both; animation-delay: calc(var(--i) * 0.11s + 0.1s); }
@keyframes rise { from { transform: translateY(110%); } }
.hero__lead { font-size: var(--step-1); line-height: 1.5; max-width: 34rem; color: #fff; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero__phone { color: var(--on-blue-2); }
.hero__phone a { color: #fff; font-weight: 750; }

/* 3D-Bühne mit Browserfenstern */
.hero__stage { display: grid; gap: 1.25rem; justify-items: start; }
.stage { position: relative; width: 100%; height: clamp(26rem, 40vw, 40rem); perspective: 1900px; perspective-origin: 30% 40%; }
.stage__rig {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: translateY(calc(var(--hp, 0) * -6rem))
             rotateX(calc(9deg - var(--my, 0) * 5deg + var(--hp, 0) * 14deg))
             rotateY(calc(-19deg + var(--mx, 0) * 7deg))
             rotateZ(2deg);
  transition: transform 0.6s var(--ease);
}
.win {
  --slot: 0;
  position: absolute; left: 10%; top: 22%; width: 90%; margin: 0;
  border-radius: 14px; overflow: hidden; background: #fff; color: #111;
  box-shadow: 0 50px 90px -30px rgba(0, 0, 40, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.1);
  transform: translate3d(calc(var(--slot) * -7%), calc(var(--slot) * -13%), calc(var(--slot) * -170px));
  filter: brightness(calc(1 - var(--slot) * 0.14));
  transition: transform 0.9s var(--ease), filter 0.9s var(--ease);
  animation: win-in 1.2s var(--ease) backwards; animation-delay: calc(0.35s + (3 - var(--slot)) * 0.12s);
}
@keyframes win-in { from { opacity: 0; transform: translate3d(0, 55%, -500px) rotateX(-25deg); } }
.win__bar { display: flex; align-items: center; gap: 0.45rem; padding: 0.7rem 1rem; background: #f3f3f0; border-bottom: 1px solid #ddd; font-size: 0.8rem; color: #555; }
.win__bar i { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #d4d4cf; }
.win__bar i:first-child { background: #ff6159; } .win__bar i:nth-child(2) { background: #ffbd2e; } .win__bar i:nth-child(3) { background: #28c941; }
.win__bar span { margin-left: 0.8rem; padding: 0.15rem 0.9rem; background: #fff; border-radius: 99px; }
.win__screen { container-type: inline-size; aspect-ratio: 16 / 10; }
.stage__switch { display: flex; flex-wrap: wrap; gap: 0.5rem; position: relative; z-index: 2; }
.chip {
  min-height: 2.75rem; padding: 0.5rem 1.1rem; font: inherit; font-size: 1rem; font-weight: 650;
  color: #fff; background: rgba(255, 255, 255, 0.08); border: 2px solid rgba(255, 255, 255, 0.6); border-radius: 99px; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { border-color: #fff; background: rgba(255, 255, 255, 0.16); }
.chip[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: #000; }
.stage__caption { font-size: 0.9375rem; color: var(--on-blue-2); }

/* Laufband */
.marquee { position: relative; background: var(--lime); color: #000; overflow: hidden; border-block: 3px solid #000; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span {
  display: inline-flex; align-items: center; gap: 2.2rem; padding: 1.1rem 0 1.1rem 2.2rem;
  font-size: clamp(2rem, 3.4vw, 3.6rem); font-weight: 880; font-stretch: 125%; letter-spacing: -0.03em; white-space: nowrap;
}
.marquee span::after { content: ""; width: 0.55em; height: 0.55em; background: #000; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Beispiel-Websites in den Fenstern (Größen in Container-Einheiten) */
.mock {
  --m-bg: #fff; --m-ink: #111; --m-accent: #111; --m-on-accent: #fff; --m-line: rgba(0, 0, 0, 0.18);
  --m-font: var(--font); --m-title-weight: 850; --m-title-stretch: 112%;
  height: 100%; display: grid; grid-template-rows: auto 1fr auto; gap: 2.6cqw;
  padding: 3cqw 4cqw; background: var(--m-bg); color: var(--m-ink); font-size: 1.6cqw; line-height: 1.35;
}
.mock__nav { display: flex; align-items: center; gap: 3cqw; font-size: 1.5cqw; }
.mock__nav b { margin-right: auto; font-family: var(--m-font); font-size: 2cqw; }
.mock__nav span { opacity: 0.75; }
.mock__hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 4cqw; align-items: center; }
.mock__copy { display: grid; gap: 2cqw; justify-items: start; }
.mock__title { font-family: var(--m-font); font-weight: var(--m-title-weight); font-stretch: var(--m-title-stretch); font-size: 5.2cqw; line-height: 0.98; letter-spacing: -0.02em; }
.mock__text { font-size: 1.7cqw; opacity: 0.85; }
.mock__btn { padding: 1.3cqw 2.3cqw; background: var(--m-accent); color: var(--m-on-accent); font-weight: 700; font-size: 1.55cqw; }
.mock__img { aspect-ratio: 1 / 0.85; overflow: hidden; }
.mock__img img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 16s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12) translate(-2%, -1%); } }
.mock__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5cqw; padding-top: 1.8cqw; border-top: 1px solid var(--m-line); font-size: 1.4cqw; }
.mock__facts b { display: block; }
/* Branchen-Skizzen */
.mock--handwerk { --m-bg: #1e2a22; --m-ink: #f1e9da; --m-accent: #e3b46a; --m-on-accent: #1e2a22; --m-line: rgba(241, 233, 218, 0.25); }
.mock--gastro { --m-bg: #fbeee6; --m-ink: #3b1e17; --m-accent: #b3264d; --m-on-accent: #fff; --m-font: Georgia, "Times New Roman", serif; --m-title-weight: 700; --m-title-stretch: 100%; }
.mock--gastro .mock__title { font-style: italic; }
.mock--gastro .mock__btn { border-radius: 99px; }
.mock--gastro .mock__img { border-radius: 40% 40% 12px 12px; }
.mock--praxis { --m-bg: #fff; --m-ink: #0f2b3a; --m-accent: #137f7c; --m-title-weight: 700; --m-title-stretch: 100%; }
.mock--praxis .mock__img, .mock--praxis .mock__btn { border-radius: 1.5cqw; }
.mock--handel { --m-bg: #ffd43b; --m-ink: #111; --m-accent: #111; --m-on-accent: #ffd43b; --m-title-weight: 900; --m-title-stretch: 125%; }
.mock--handel .mock__title { text-transform: uppercase; }

/* 6. Startseite: Leistungen als Scroll-Story → siehe Datei-Ende „Scroll-Story“ */

/* KI-Telefonrezeption (Schwarz) */
.ki { position: relative; background: #000; color: #fff; }
.ki__sticky {
  width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 6rem); align-items: center;
  padding-block: calc(var(--header-h) + 3rem) var(--section);
}
.ki.is-pinned { height: 340vh; }
.ki.is-pinned .ki__sticky { position: sticky; top: 0; height: 100vh; padding-block: calc(var(--header-h) + 1rem) 2rem; }
.ki__copy { display: grid; gap: clamp(1rem, 2.4vh, 1.75rem); align-content: center; }
.ki__title { font-size: clamp(2.5rem, min(1rem + 3.2vw, 7vh), 5rem); font-stretch: 125%; letter-spacing: -0.045em; }
.ki__lead { font-size: clamp(1.0625rem, 2.2vh, 1.3125rem); color: var(--on-black-2); max-width: 38rem; }
.ki__steps { list-style: none; counter-reset: k; display: grid; border-top: 1px solid rgba(255, 255, 255, 0.25); max-width: 40rem; }
.ki__steps li {
  counter-increment: k; display: grid; grid-template-columns: 3.5rem 1fr; align-items: baseline; column-gap: 1rem;
  padding: clamp(0.5rem, 1.3vh, 0.9rem) 0; border-bottom: 1px solid rgba(255, 255, 255, 0.25); transition: opacity 0.4s, color 0.4s;
}
.ki__steps li::before { content: counter(k); grid-row: span 2; font-size: 2.4rem; font-weight: 880; font-stretch: 125%; line-height: 1; color: var(--lime); }
.ki__steps b { font-size: clamp(1.25rem, 2.6vh, 1.75rem); font-stretch: 118%; font-weight: 850; }
.ki__steps span { color: var(--on-black-2); }
.ki.is-pinned .ki__steps li { opacity: 0.3; }
.ki.is-pinned .ki__steps li.is-active, .ki.is-pinned .ki__steps li.is-done { opacity: 1; }
.ki.is-pinned .ki__steps li.is-done::before { color: #fff; }
.ki.is-pinned .ki__steps li.is-active b { color: var(--lime); }

.phone { margin: 0; width: 100%; max-width: 24rem; justify-self: center; padding: 0.8rem; background: #1b1b1b; border-radius: 3rem; box-shadow: 0 0 0 2px #333, 0 40px 120px -20px rgba(214, 255, 61, 0.25); }
.phone__screen { display: grid; grid-template-rows: auto 1fr; border-radius: 2.3rem; overflow: hidden; background: #f3f3f0; color: #000; height: min(40rem, 70vh); }
.phone__top { display: grid; justify-items: center; gap: 0.15rem; padding: 1.6rem 1rem 1.2rem; background: var(--blue); color: #fff; text-align: center; }
.phone__status { font-size: 0.875rem; color: var(--on-blue-2); }
.phone__name { font-size: 1.25rem; font-weight: 850; font-stretch: 115%; }
.phone__hint, .phone__timer { font-size: 0.8125rem; color: var(--on-blue-2); font-variant-numeric: tabular-nums; }
.transcript { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; padding: 1rem; margin: 0; overflow-y: auto; font-size: 0.9688rem; line-height: 1.45; scroll-behavior: smooth; }
.bubble { max-width: 86%; padding: 0.7rem 0.9rem; background: #fff; border-radius: 1rem 1rem 1rem 0.25rem; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.bubble__who { display: block; font-size: 0.75rem; font-weight: 750; color: var(--grey); }
.bubble--ki { align-self: flex-start; }
.bubble--caller { align-self: flex-end; background: var(--blue); color: #fff; border-radius: 1rem 1rem 0.25rem 1rem; }
.bubble--caller .bubble__who { color: var(--on-blue-2); }
.ki.is-pinned .bubble:not(.is-shown), .call-demo .bubble.is-hidden { display: none; }
.bubble.is-new { animation: pop 0.45s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(0.75rem) scale(0.96); } }
.typing { align-self: flex-start; display: inline-flex; gap: 0.3rem; padding: 0.8rem 1rem; background: #fff; border-radius: 1rem; }
.typing i { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--grey); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 50% { opacity: 0.25; } }

/* Ablauf */
.process { padding-block: var(--section); background: var(--paper); }
.process__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem 4rem; align-items: end; margin-bottom: clamp(3rem, 6vw, 5.5rem); }
.process__title { font-size: clamp(3rem, 1rem + 5vw, 7rem); font-stretch: 125%; letter-spacing: -0.045em; }
.process__lead { font-size: var(--step-1); color: var(--grey); }
.process__steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3.5rem 2.5rem; }
.pstep { counter-increment: s; display: grid; gap: 0.9rem; align-content: start; padding-top: 1.5rem; border-top: 3px solid #000; }
.pstep::before {
  content: counter(s, decimal-leading-zero);
  font-size: clamp(5rem, 3rem + 4vw, 9rem); font-weight: 900; font-stretch: 125%; line-height: 0.85; letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 2px var(--blue); transition: color 0.8s var(--ease);
}
.pstep.is-in::before, .no-js .pstep::before { color: var(--blue); }
.pstep h3 { font-size: var(--step-2); font-stretch: 118%; }
.pstep p { color: var(--grey); max-width: 26rem; }
.process__cta { margin-top: clamp(3rem, 5vw, 4.5rem); }

/* 7. Kontakt-Band ----------------------------------------------------------- */
.contact-band { --ghost-fill: var(--blue); background: var(--blue); color: #fff; padding-block: var(--section) clamp(2rem, 4vw, 3.5rem); overflow: hidden; }
.contact-band__inner { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; display: grid; gap: clamp(2rem, 4vw, 3rem); container-type: inline-size; }
.contact-band__title { font-size: clamp(3rem, 1rem + 5vw, 7.5rem); font-stretch: 125%; letter-spacing: -0.045em; max-width: 14ch; }
.contact-band__direct { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1.5rem 4rem; padding-top: clamp(1.5rem, 3vw, 2.5rem); border-top: 2px solid rgba(255, 255, 255, 0.35); }
.contact-band__mail { color: #fff; font-weight: 800; font-stretch: 112%; font-size: clamp(1.35rem, 0.8rem + 1.4vw, 2.25rem); letter-spacing: -0.02em; text-decoration-thickness: 2px; text-underline-offset: 0.2em; overflow-wrap: anywhere; transition: color 0.25s; }
.contact-band__mail:hover { color: var(--lime); }
.contact-band__phone {
  display: block; color: var(--lime); text-decoration: none; white-space: nowrap;
  font-size: clamp(2.25rem, 1rem + 2.6vw, 3.75rem); font-weight: 900; font-stretch: 122%; line-height: 1; letter-spacing: -0.04em;
  transition: color 0.25s;
}
.contact-band__phone:hover { color: #fff; }

/* Unterseiten --------------------------------------------------------------- */
.page-hero { --ghost-fill: var(--blue); padding-block: calc(var(--header-h) + clamp(3rem, 8vw, 7rem)) clamp(4rem, 8vw, 7rem); background: var(--blue); color: #fff; }
.page-hero--dark { --ghost-fill: #000; background: #000; }
.page-hero--lime { --ghost-fill: var(--lime); background: var(--lime); color: #000; }
.page-hero--plain { --ghost-fill: var(--paper-2); background: var(--paper-2); color: #000; }
.page-hero__title { font-size: clamp(3.5rem, 1rem + 8vw, 10rem); font-weight: 900; font-stretch: 125%; letter-spacing: -0.055em; line-height: 0.88; }
.page-hero__lead { margin-top: 2.25rem; font-size: var(--step-2); line-height: 1.35; max-width: 46rem; font-weight: 500; }
.page-hero .space-top { margin-top: 2.5rem; }

.section { padding-block: var(--section); }
.section--tint { --ghost-fill: var(--paper-2); background: var(--paper-2); }
.section__head { display: grid; gap: 1.25rem; align-content: start; max-width: 54rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section__title { font-size: var(--step-4); font-stretch: 122%; letter-spacing: -0.04em; }
.section__lead { font-size: var(--step-1); color: var(--grey); max-width: 42rem; }
.split { display: grid; gap: 1.5rem 4rem; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.split .section__head { margin-bottom: 0; }
.ablauf { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: start; }
.ablauf .section__head { position: sticky; top: calc(var(--header-h) + 2rem); }
.prose { max-width: 42rem; display: grid; gap: 1rem; }
.legal { font-size: var(--step-1); }
.page-legal .page-hero { padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.page-legal .page-hero + .section { padding-top: clamp(2.5rem, 5vw, 4rem); }
.legal h2 { margin-top: 1.25rem; font-size: var(--step-2); }
.legal__source { margin-top: 1rem; font-size: 0.9375rem; color: var(--grey); }
/* Lange Rechtstexte (Datenschutz): kleinere Grundschrift, klare Stufen */
.legal--long { font-size: var(--step-0); gap: 0.85rem; }
.legal--long h2 { margin-top: 2rem; }
.legal h3 { margin-top: 0.75rem; font-size: var(--step-1); font-stretch: 105%; letter-spacing: -0.015em; line-height: 1.15; }
.legal h4 { margin-top: 0.25rem; font-size: var(--step-0); font-weight: 700; font-stretch: 100%; letter-spacing: 0; line-height: 1.3; }
.legal ul { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.35rem; }
.legal a { overflow-wrap: anywhere; }
.space-top { margin-top: 2rem; }

/* Schritte (Unterseiten) */
.steps { list-style: none; counter-reset: step; display: grid; gap: 2.25rem; }
.step { counter-increment: step; display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 0.4rem 1.75rem; }
.step::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 4.5rem; height: 4.5rem; background: var(--blue); color: #fff; font-size: 1.75rem; font-weight: 900; font-stretch: 125%; clip-path: var(--chamfer); }
.step__title { font-size: var(--step-2); padding-top: 0.5rem; }
.step__text { color: var(--grey); max-width: 38rem; }

/* Abläufe mit Nummern (KI-Seite, hell) */
.flow { list-style: none; counter-reset: flow; display: grid; border-top: 3px solid #000; }
.flow__step { counter-increment: flow; display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 0.25rem 1.25rem; padding: 1.4rem 0; border-bottom: 1px solid #000; transition: opacity 0.3s; }
.flow__step::before { content: counter(flow); grid-row: span 2; font-size: 2.75rem; font-weight: 900; font-stretch: 125%; line-height: 1; color: var(--blue); }
.flow__title { font-size: var(--step-2); }
.flow__text { color: var(--grey); }

/* Pakete */
.packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.package { --pp: clamp(1.75rem, 2.5vw, 2.5rem); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto 1fr auto; gap: 1.25rem; padding: var(--pp); background: var(--paper); border: 3px solid #000; }
.package__title { font-size: clamp(1.6rem, 0.7rem + 1.55vw, 2.6rem); hyphens: manual; }
.package__for { color: var(--grey); }
.package__list { list-style: none; display: grid; align-content: start; gap: 0.65rem; border-top: 1px solid #ccc; padding-top: 1.25rem; }
.package__list li { position: relative; padding-left: 1.75rem; }
.package__list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.85rem; height: 0.5rem; border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(-45deg); }
.package__foot { display: grid; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid #ccc; }
.package__price { font-weight: 750; font-stretch: 112%; }
.package--full { --ghost-fill: var(--blue); background: var(--blue); color: #fff; border-color: var(--blue); }
.package--full .package__for { color: var(--on-blue-2); }
.package--full .package__list, .package--full .package__foot { border-top-color: rgba(255, 255, 255, 0.35); }
.package--full .package__list li::before { border-color: var(--lime); }
.package--full .btn--lime:hover { background: #fff; color: #000; }

.extras { display: grid; border-top: 3px solid #000; }
.extra { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 1rem 3rem; padding: clamp(2rem, 3vw, 2.75rem) 0; border-bottom: 1px solid #000; }
.extra__title { font-size: var(--step-3); }
.extra__body { display: grid; gap: 1rem; }
.extra__body ul { padding-left: 1.2rem; display: grid; gap: 0.35rem; }

.note { --ghost-fill: var(--lime); display: grid; gap: 1rem; padding: clamp(2rem, 3vw, 3rem); background: var(--lime); max-width: 56rem; clip-path: polygon(0 0, calc(100% - 2rem) 0, 100% 2rem, 100% 100%, 0 100%); }
.note h2 { font-size: var(--step-3); }
.note .btn--lime { background: #000; color: var(--lime); }
.note .btn--lime:hover { background: var(--blue); color: #fff; }

.faq { display: grid; border-top: 3px solid #000; max-width: 58rem; }
.faq details { border-bottom: 1px solid #000; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.5rem 0; cursor: pointer; list-style: none; font-size: var(--step-1); font-weight: 750; font-stretch: 112%; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 2rem; font-weight: 400; line-height: 1; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--blue); }
.faq__answer { padding: 0 0 1.75rem; max-width: 44rem; color: var(--grey); display: grid; gap: 0.75rem; }

.audience { font-size: var(--step-2); font-weight: 650; line-height: 1.35; max-width: 46rem; }
.prep-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.prep-list li { padding: 1.4rem 1.5rem; background: var(--paper); border: 3px solid #000; }
.prep-list b { display: block; font-stretch: 112%; margin-bottom: 0.3rem; }

/* KI-Seite: Demo mit Knopf */
.call-demo { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.call-demo.is-playing .flow__step { opacity: 0.3; }
.call-demo.is-playing .flow__step.is-active { opacity: 1; }
.call-demo__controls { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.call-demo__hint { font-size: 0.9375rem; color: var(--grey); margin-top: 1rem; max-width: 36rem; }
.call-demo .phone { box-shadow: 0 0 0 2px #333, 0 40px 100px -30px rgba(43, 45, 255, 0.5); }
.call-demo .transcript { max-height: none; }

/* Kontakt */
.contact-direct { display: grid; gap: 3rem; }
.contact-direct__label { display: block; margin-bottom: 0.6rem; font-weight: 650; color: var(--grey); }
.mega-link { display: inline-block; font-size: clamp(2.25rem, 1rem + 3.4vw, 4.5rem); font-weight: 900; font-stretch: 125%; letter-spacing: -0.05em; line-height: 0.95; text-decoration: none; overflow-wrap: anywhere; transition: color 0.2s; }
.mega-link:hover { color: var(--blue); }
.mega-link--mail { font-size: clamp(1.5rem, 0.8rem + 2.2vw, 3rem); }
.booking { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2.5rem, 5vw, 5rem); }
.booking__intro { display: grid; gap: 1.25rem; align-content: start; }
.booking__intro .section__title { font-size: clamp(2.25rem, 1rem + 2.4vw, 3.75rem); }
.form { display: grid; gap: 1.35rem; padding: clamp(1.75rem, 3vw, 3rem); background: var(--paper); border: 3px solid #000; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.35rem; align-items: start; }
.field { display: grid; gap: 0.45rem; align-content: start; }
.field--group { border: 0; padding: 0; margin: 0; min-width: 0; }
.field--group legend { padding: 0; margin-bottom: 0.45rem; }
.field label, .field legend { font-weight: 750; font-size: 1rem; }
.field__hint { font-size: 0.9375rem; color: var(--grey); font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-height: 3.25rem; padding: 0.75rem 0.9rem; font: inherit; font-size: 1.0625rem; color: #000; background: #fff; border: 2px solid #000; border-radius: 0; }
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: #b00020; }
.field__error { color: #b00020; font-weight: 650; font-size: 0.9688rem; }
.field__suggest { font-size: 0.9688rem; color: var(--grey); }
.field__suggest button { padding: 0; font: inherit; font-weight: 750; color: var(--blue); background: none; border: 0; text-decoration: underline; cursor: pointer; }
.form__footer { display: grid; gap: 1rem; padding-top: 0.5rem; }
.form__privacy { font-size: 0.9375rem; color: var(--grey); }
.form-status { --ghost-fill: var(--lime); display: grid; gap: 0.75rem; padding: 1.5rem; background: var(--lime); }
.form-status h3 { font-size: var(--step-2); }
.form-status__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.form__trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status--error { --ghost-fill: #ffe3e6; background: #ffe3e6; }
.form { position: relative; }
.placeholder-box { display: grid; gap: 0.75rem; padding: 2rem; max-width: 46rem; border: 3px dashed #000; background: #fff; }

/* 8. Footer ----------------------------------------------------------------- */
.site-footer { background: #000; color: #fff; padding-block: clamp(4rem, 6vw, 5.5rem) 2rem; }
.site-footer :focus-visible { outline-color: var(--lime); }
.site-footer__inner { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); }
.site-footer__brand { display: grid; gap: 1.25rem; align-content: start; }
.site-footer__brand img { width: 240px; }
.site-footer__brand p { color: var(--on-black-2); max-width: 22rem; }
.site-footer__heading { font-size: 0.9375rem; font-weight: 650; font-stretch: 110%; color: var(--on-black-2); margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; display: grid; gap: 0.55rem; }
.site-footer a { text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--lime); }
.site-footer__legal { width: min(100% - 2 * var(--gutter), var(--container)); margin: 3rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.2); color: var(--on-black-2); font-size: 0.9375rem; }

/* Schmale Bildschirme (Grundversorgung – Feinschliff folgt) --------------------- */
@media (max-width: 64rem) {
  .site-nav__list { gap: 1.1rem; }
  .site-nav__list a { font-size: 0.9375rem; }
  .brand img { width: 200px; }
  .site-nav .btn { padding-inline: 1rem; }
}
@media (max-width: 56rem) {
  .hero__inner, .ki__sticky, .process__head, .proof__grid,
  .split, .ablauf, .booking, .call-demo, .extra { grid-template-columns: minmax(0, 1fr); }
  .packages, .process__steps { grid-template-columns: minmax(0, 1fr); }
  .hero__title { font-size: 11.5cqw; } /* einspaltig: „Unternehmen.“ muss ganz hineinpassen */
  .ablauf .section__head { position: static; }
}
/* Menü als Klappmenü, sobald die Leiste nicht mehr in eine Zeile passt (5 Punkte + Button) */
@media (max-width: 64rem) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; padding: 0.5rem 0.25rem 0.5rem 0.75rem; font: inherit; font-weight: 750; color: inherit; background: none; border: 0; cursor: pointer; }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 1.4rem; height: 2px; background: currentColor; position: relative; transition: transform 0.25s, background-color 0.2s; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -7px; } .nav-toggle__bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }
  body.nav-open .site-header { background: var(--paper); color: #000; -webkit-backdrop-filter: none; backdrop-filter: none; }
  body.nav-open .brand__dark { display: block; } body.nav-open .brand__light { display: none; }
  .site-nav { position: fixed; top: var(--header-h); left: 0; right: 0; height: calc(100dvh - var(--header-h)); flex-direction: column; align-items: stretch; justify-content: space-between; padding: 2rem var(--gutter); background: var(--paper); color: #000; overflow-y: auto; }
  .js .site-nav:not(.is-open) { display: none; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list a { display: block; padding-block: 0.9rem; border-bottom: 1px solid #ddd; font-size: 2rem; font-weight: 850; font-stretch: 118%; background: none; }
  .site-nav__actions { flex-direction: column; align-items: stretch; }
  .site-nav__phone { display: block; font-size: 1.5rem; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 52rem) {
  .brand img { width: 180px; }
  .form__row, .prep-list, .site-footer__inner { grid-template-columns: minmax(0, 1fr); }
  .stage { height: 22rem; }
}

/* Seitentitel auf dem Smartphone: lange Wörter („Leistungen“, „Automatisierung“) dürfen nicht über den Rand ragen */
@media (max-width: 40rem) {
  .page-hero__title, .auto-hero__title { font-size: clamp(2.25rem, 11.2vw, 3.5rem); }
  .placeholder-box { padding: 1.25rem; }
  .placeholder-box h2 { hyphens: auto; }
  .contact-band__mail { font-size: clamp(1rem, 4.6vw, 1.35rem); overflow-wrap: normal; }
  .ring-call__stage { padding-left: 1.75rem; }
}
h1, h2, h3 { overflow-wrap: break-word; }

/* Leistungen: Illustrationen der Pakete ---------------------------------------
   Eine Seite (scrollt durch), Seitenbaum (baut sich auf), Ebenen-Stapel (fliegt zusammen).
   Start per data-pv + .is-live (JS), bei reduzierter Bewegung steht das Endbild. */
.package__visual {
  position: relative; height: 15rem; margin: calc(-1 * var(--pp)) calc(-1 * var(--pp)) 0.5rem;
  overflow: hidden; background: var(--paper-2); border-bottom: 3px solid #000;
}
.package--full .package__visual { background: var(--blue-deep); border-bottom-color: rgba(255, 255, 255, 0.35); }
.pv-tag {
  position: absolute; left: 1rem; bottom: 0.9rem; z-index: 3; padding: 0.3rem 0.6rem;
  font-size: 0.8125rem; font-weight: 800; font-stretch: 112%; background: #000; color: #fff;
}
.package--full .pv-tag { background: var(--lime); color: #000; }

/* Eine Seite */
.pv-browser { --scr: 9.4rem; position: absolute; left: 50%; top: 1.25rem; width: min(15rem, 72%); transform: translateX(-50%) rotate(-2deg); background: #fff; border: 3px solid #000; box-shadow: 0.5rem 0.5rem 0 var(--blue); }
.pv-browser__bar { display: flex; gap: 0.3rem; padding: 0.4rem 0.5rem; background: #000; }
.pv-browser__bar i { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: #fff; opacity: 0.6; }
.pv-browser__screen { height: var(--scr); overflow: hidden; }
.pv-page { display: grid; }
.pv-sec { display: grid; gap: 0.35rem; align-content: center; padding: 0.8rem; min-height: 4.6rem; }
.pv-sec b { display: block; height: 0.4rem; width: 80%; background: currentColor; opacity: 0.85; }
.pv-sec b.is-short { width: 50%; }
.pv-btn { width: 3.2rem; height: 0.9rem; background: var(--lime); margin-top: 0.2rem; }
.pv-sec--hero { min-height: 6.5rem; background: var(--blue); color: #fff; }
.pv-sec--hero b { height: 0.7rem; }
.pv-sec--cards { grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
.pv-sec--cards i { height: 3rem; background: var(--paper-2); border: 2px solid #000; }
.pv-sec--about { grid-template-columns: auto 1fr; align-items: center; gap: 0.6rem; background: var(--paper-2); }
.pv-sec--about span:last-child { display: grid; gap: 0.35rem; }
.pv-dot { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: #000; }
.pv-sec--map { position: relative; min-height: 4rem; background: repeating-linear-gradient(45deg, #e4e4dc 0 0.5rem, #f1f1ec 0.5rem 1rem); }
.pv-pin { position: absolute; left: 55%; top: 40%; width: 0.9rem; height: 0.9rem; background: var(--blue); border: 2px solid #000; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.pv-sec--contact { background: #000; color: #fff; }
.pv--one.is-live .pv-page { animation: pv-scroll 9s ease-in-out infinite; animation-play-state: var(--pv-play, running); }
@keyframes pv-scroll {
  0%, 12% { transform: translateY(0); }
  45%, 60% { transform: translateY(calc(-100% + var(--scr))); }
  92%, 100% { transform: translateY(0); }
}

/* Seitenbaum */
.pv-tree { position: absolute; inset: 0.75rem 0.75rem 2.6rem; width: calc(100% - 1.5rem); height: calc(100% - 3.35rem); overflow: visible; }
.pv-tree text { font: 800 15px var(--font); font-stretch: 112%; text-anchor: middle; fill: #000; }
.pv-tree .pv-node rect:not([fill]) { fill: #000; }
.pv-lines path { stroke-dasharray: 260; stroke-dashoffset: 0; }
.pv-node { transform-box: fill-box; transform-origin: 50% 0; }
.pv--multi.is-armed .pv-lines path { stroke-dashoffset: 260; }
.pv--multi.is-armed .pv-node { opacity: 0; transform: translateY(14px) scale(0.85); }
.pv--multi.is-live .pv-lines path { stroke-dashoffset: 0; transition: stroke-dashoffset 0.9s var(--ease) 0.35s; }
.pv--multi.is-live .pv-node { opacity: 1; transform: none; transition: opacity 0.4s, transform 0.6s cubic-bezier(0.2, 1.4, 0.4, 1); transition-delay: calc(0.75s + var(--d, -1.5) * 0.14s); }
.pv--multi.is-live .pv-node--root { transition-delay: 0s; }

/* Ebenen-Stapel */
.pv-stage { position: absolute; inset: 3.25rem 0 0 4rem; perspective: 900px; display: grid; place-items: center; }
.pv-plates { position: relative; width: 12rem; height: 8rem; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-38deg) scale(0.92); }
.pv-plate {
  --gap: 1.9rem;
  position: absolute; inset: 0; padding: 0.55rem 0.7rem; display: grid; align-content: end; gap: 0.35rem;
  background: #fff; color: #000; border: 2px solid #000; box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.3);
  transform: translateZ(calc(var(--i) * var(--gap)));
}
.pv-plate span { order: 9; font-size: 0.9375rem; font-weight: 850; font-stretch: 115%; }
.pv-plate i { display: block; height: 0.9rem; border: 2px dashed #000; }
.pv-plate--1 { background: #f1f1ec; }
.pv-plate--2 { background: var(--lime); }
.pv-plate--2 i { border-style: solid; background: #fff; }
.pv-plate--3 b { display: block; height: 0.3rem; background: #000; width: 85%; }
.pv-plate--3 b:last-child { width: 55%; }
.pv-plate--4 { background: #000; color: var(--lime); border-color: var(--lime); }
.pv-plate--4 code { font: 800 1.4rem ui-monospace, monospace; color: #fff; }
.pv--stack.is-armed .pv-plate { opacity: 0; transform: translateZ(calc(var(--i) * var(--gap) + 9rem)); }
.pv--stack.is-live .pv-plate {
  opacity: 1; transform: translateZ(calc(var(--i) * var(--gap)));
  transition: opacity 0.35s, transform 0.8s cubic-bezier(0.2, 1.3, 0.4, 1); transition-delay: calc(0.2s + var(--i) * 0.18s);
}
.pv--stack.is-settled .pv-plate { animation: pv-breathe 4.5s ease-in-out infinite; animation-delay: calc(var(--i) * -0.4s); animation-play-state: var(--pv-play, running); }
@keyframes pv-breathe {
  0%, 100% { transform: translateZ(calc(var(--i) * var(--gap))); }
  50% { transform: translateZ(calc(var(--i) * (var(--gap) + 0.45rem))); }
}

/* KI-Automatisierung (Unterseite) --------------------------------------------- */
.auto-hero__title { font-size: clamp(3rem, 0.5rem + 6.4vw, 8.5rem); }
.auto-hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 2.5rem clamp(2.5rem, 5vw, 6rem); align-items: start; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.auto-hero .page-hero__lead { margin-top: 0; }
.feed { margin: 0; display: grid; gap: 1rem; }
.feed__cap { font-size: 0.9375rem; color: var(--on-black-2); }
.feed__list { list-style: none; display: grid; gap: 0.75rem; align-content: start; }
.note {
  --cut: 1rem;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.2rem 1rem;
  padding: 1rem 1.25rem 1.1rem; background: #fff; color: #000; clip-path: var(--chamfer);
}
.note__tag { font-size: 0.8125rem; font-weight: 800; font-stretch: 112%; color: var(--blue); }
.note__time { font-size: 0.8125rem; color: var(--grey); font-variant-numeric: tabular-nums; }
.note__title { grid-column: 1 / -1; font-size: 1.1875rem; font-weight: 850; font-stretch: 112%; line-height: 1.2; }
.note__text { grid-column: 1 / -1; font-size: 0.9375rem; color: var(--grey); }
.note--blue { background: var(--blue); color: #fff; }
.note--blue .note__tag { color: var(--lime); }
.note--blue .note__time, .note--blue .note__text { color: var(--on-blue-2); }
.note--lime { background: var(--lime); }
.note--lime .note__tag, .note--lime .note__time, .note--lime .note__text { color: #000; }
.note.is-in { animation: note-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.note.is-out { opacity: 0; transform: translateY(0.75rem) scale(0.97); transition: opacity 0.4s, transform 0.4s; }
@keyframes note-in { from { opacity: 0; transform: translateY(-1.25rem) scale(0.95); } }

/* KI-Telefonrezeption: Anruf-Animation im Hero */
.ring-call { margin: 0; display: grid; gap: 1.5rem; }
.ring-call__stage { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 2.5rem); height: 9rem; margin-block: 1.25rem 0.5rem; padding-left: 1rem; }
.ring-call__icon { position: relative; flex: none; display: grid; place-items: center; width: 7rem; height: 7rem; border-radius: 50%; background: var(--lime); color: #000; }
.ring-call__icon svg { position: relative; width: 2.75rem; height: 2.75rem; fill: currentColor; }
.ring-call__pulse { position: absolute; inset: 0; }
.ring-call__pulse i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--lime); opacity: 0; }
.ring-call__wave { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 3px; height: 4.5rem; max-width: 22rem; }
.ring-call__wave i { flex: 1; max-width: 6px; height: var(--h); background: #fff; transform-origin: center; }
.ring-call__steps { list-style: none; counter-reset: rc; display: grid; border-top: 1px solid rgba(255, 255, 255, 0.3); }
.ring-call__steps li { counter-increment: rc; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 0.15rem 1rem; padding: 0.9rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.3); transition: opacity 0.4s; }
.ring-call__steps li::before { content: counter(rc); grid-row: span 2; font-size: 2.1rem; font-weight: 900; font-stretch: 125%; line-height: 1; color: var(--lime); }
.ring-call__steps b { font-size: 1.1875rem; font-weight: 850; font-stretch: 112%; }
.ring-call__steps span { color: var(--on-black-2); }
.ring-call.is-cycling .ring-call__steps li { opacity: 0.32; }
.ring-call.is-cycling .ring-call__steps li.is-active { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .ring-call__pulse i { animation: rc-ring 2.4s ease-out infinite; animation-play-state: var(--rc-play, running); }
  .ring-call__pulse i:nth-child(2) { animation-delay: 0.8s; }
  .ring-call__pulse i:nth-child(3) { animation-delay: 1.6s; }
  .ring-call__wave i { animation: rc-wave 1.1s ease-in-out infinite; animation-delay: var(--d); animation-play-state: var(--rc-play, running); }
}
@keyframes rc-ring { 0% { transform: scale(1); opacity: 0.85; } 100% { transform: scale(2); opacity: 0; } }
@keyframes rc-wave { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }

.modules { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(2rem, 3vw, 3rem); border-top: 3px solid #000; }
.module { display: grid; gap: 0.75rem; align-content: start; padding: clamp(1.75rem, 2.5vw, 2.25rem) 0; border-bottom: 1px solid #000; }
.module__title { font-size: var(--step-2); }
.module p { color: var(--grey); }
.modules__note { margin-top: 2.5rem; font-size: var(--step-1); max-width: 46rem; }

.ki__links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.ki__more { color: #fff; font-weight: 750; text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.ki__more:hover { color: var(--lime); }

@media (max-width: 64rem) {
  .auto-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .modules { grid-template-columns: minmax(0, 1fr); }
}

/* Reduzierte Bewegung & Druck --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none !important; }
}
@media print {
  .site-header, .site-footer, .contact-band, .stage, .marquee, .skip-link { display: none !important; }
  .hero, .ki, .page-hero { background: none !important; color: #000 !important; }
}

/* ==========================================================================
   „Was ich für Sie baue“: Website zerlegt sich und baut sich neu (läuft automatisch)
   ========================================================================== */
.build { position: relative; background: var(--paper-2); color: #000; }
.build__sticky {
  width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr); gap: clamp(2rem, 4vw, 4rem); align-items: center;
  padding-block: calc(var(--header-h) + 3rem) var(--section);
}
.build__title { font-size: clamp(2.75rem, min(1rem + 4vw, 9vh), 6rem); font-stretch: 125%; letter-spacing: -0.045em; margin-bottom: clamp(1.25rem, 3.5vh, 2.75rem); }
.build__list { list-style: none; counter-reset: c; border-top: 3px solid #000; }
.chapter { counter-increment: c; border-bottom: 1px solid rgba(0, 0, 0, 0.18); padding-block: clamp(0.55rem, 1.5vh, 1rem); }
.chapter__title { display: flex; gap: 0.9rem; align-items: baseline; font-size: clamp(1.25rem, 2.6vh, 1.6rem); font-stretch: 118%; transition: color 0.4s, font-size 0.5s var(--ease); }
.chapter__title::before { content: counter(c, decimal-leading-zero); flex: none; font-size: 0.62em; font-weight: 750; color: var(--blue); font-variant-numeric: tabular-nums; }
.chapter__title a { text-decoration: none; }
.chapter__title a:hover { color: var(--blue); }
.chapter__body { display: grid; gap: 0.55rem; margin-top: 0.35rem; padding-left: 2.1rem; }
.chapter__body p { color: var(--grey); max-width: 32rem; font-size: clamp(0.9375rem, 1.9vh, 1rem); line-height: 1.45; }
.chapter__more { justify-self: start; font-weight: 750; font-stretch: 110%; text-decoration-thickness: 2px; }
.chapter__more:hover { color: var(--blue); }

/* Bühne */
.build__stage { position: relative; height: min(72vh, 44rem); perspective: 2200px; perspective-origin: 50% 35%; }
.build:not(.is-film) .build__stage { height: 34rem; }
.build__toggle { margin-top: 1.25rem; padding: 0.5rem 0; font: inherit; font-size: 0.9375rem; font-weight: 650; color: var(--grey); background: none; border: 0; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.build__toggle:hover { color: #000; }
.build__scene {
  --rx: 10deg; --ry: -16deg;
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(0deg) scale(1);
  transition: transform 0.95s var(--ease);
}
.bwin {
  --bw: clamp(26rem, 40vw, 44rem);
  position: absolute; left: 50%; top: 50%; width: var(--bw); height: calc(var(--bw) * 0.66);
  font-size: calc(var(--bw) / 46); transform-style: preserve-3d;
  transform: translate(-50%, -50%); transition: transform 1.2s var(--ease);
}
.lay { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 0.9s var(--ease), opacity 0.6s; }
.lay::after {
  content: attr(data-label); position: absolute; right: 100%; bottom: 0.5em; margin-right: 1.2em; white-space: nowrap;
  padding: 0.5em 1em; background: #000; color: var(--lime); font-size: 1.15em; font-weight: 800; font-stretch: 115%;
  opacity: 0; transform: translateX(1em); transition: opacity 0.5s, transform 0.8s var(--ease);
}
.chrome { position: absolute; inset: 0 0 auto 0; height: 7%; display: flex; align-items: center; gap: 0.45em; padding: 0 1em; background: #e9e9e5; border-radius: 0.9em 0.9em 0 0; font-size: 0.8em; transform-style: preserve-3d; }
.chrome i { width: 0.75em; height: 0.75em; border-radius: 50%; background: #ff6159; } .chrome i:nth-child(2) { background: #ffbd2e; } .chrome i:nth-child(3) { background: #28c941; }
.chrome__url { margin-left: 1em; padding: 0.15em 1.1em; border-radius: 99px; background: #fff; color: #333; font-weight: 600; transition: transform 1.1s var(--ease), background-color 0.6s, box-shadow 0.6s; }
.chrome__badge { margin-left: auto; padding: 0.15em 0.9em; border-radius: 99px; background: var(--lime); color: #000; font-weight: 800; opacity: 0; transform: translateY(-0.6em); transition: opacity 0.4s, transform 0.6s var(--ease); }
.screen { position: absolute; inset: 7% 0 0 0; background: #fbfaf7; border-radius: 0 0 0.9em 0.9em; box-shadow: 0 2.6em 5em -1.6em rgba(10, 10, 60, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.06); }
.lay--wire { opacity: 0; background: linear-gradient(rgba(43, 45, 255, 0.1) 1px, transparent 1px) 0 0 / 2.2em 2.2em, linear-gradient(90deg, rgba(43, 45, 255, 0.1) 1px, transparent 1px) 0 0 / 2.2em 2.2em, rgba(255, 255, 255, 0.55); border: 2px solid var(--blue); border-radius: 0.9em; }
.wire { position: absolute; border: 2px dashed var(--blue); background: rgba(43, 45, 255, 0.07); }
.wire--x { background: linear-gradient(to top right, transparent calc(50% - 1px), var(--blue) 50%, transparent calc(50% + 1px)), linear-gradient(to bottom right, transparent calc(50% - 1px), var(--blue) 50%, transparent calc(50% + 1px)), rgba(43, 45, 255, 0.07); }
.lay--code { opacity: 0; display: flex; flex-direction: column; justify-content: center; gap: 0.9em; padding: 0 7%; background: rgba(0, 0, 0, 0.88); border-radius: 0.9em; color: var(--lime); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.05em; }


.part { position: absolute; transition: transform 0.8s var(--ease), opacity 0.45s; transition-delay: calc(var(--d, 0) * 70ms); }
.p-logo { left: 5%; top: 11%; font-size: 1.2em; font-weight: 880; font-stretch: 122%; color: #111; }
.p-nav { right: 5%; top: 11.8%; display: flex; gap: 1.5em; font-size: 0.78em; color: #555; }
.p-nav i { font-style: normal; }
.p-title { left: 5%; top: 23%; width: 46%; font-size: 2.5em; font-weight: 900; font-stretch: 120%; line-height: 0.96; letter-spacing: -0.035em; color: #111; }
.p-title__b { position: absolute; inset: 0; opacity: 0; color: var(--blue); }
.p-title__a, .p-title__b { display: block; transition: opacity 0.5s, transform 0.7s var(--ease); }
.p-text { left: 5%; top: 53%; width: 40%; font-size: 0.9em; line-height: 1.4; color: #555; }
.p-btn { left: 5%; top: 66%; padding: 0.75em 1.3em; background: var(--blue); color: #fff; font-weight: 750; font-size: 0.85em; clip-path: polygon(0 0, calc(100% - 0.6em) 0, 100% 0.6em, 100% 100%, 0.6em 100%, 0 calc(100% - 0.6em)); }
.p-img { left: 53%; top: 20%; width: 42%; height: 53%; overflow: hidden; border-radius: 0.7em; }
.p-img svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 0.7s, transform 6s linear; }
.p-img__b { opacity: 0; }
.p-card { top: 79%; width: 28%; height: 15%; display: flex; flex-direction: column; gap: 0.45em; padding: 0.8em 0.9em; background: #fff; border: 1px solid #e3e3dd; border-radius: 0.55em; }
.p-card b { width: 1.5em; height: 1.5em; border-radius: 0.35em; background: var(--lime); }
.p-card i, .bpage i { display: block; height: 0.45em; width: 90%; border-radius: 99px; background: #dcdcd6; }
.p-card i.w60, .bpage i.w60 { width: 60%; }
.p-mail { position: absolute; left: 50%; top: 52%; padding: 0.8em 1.4em; border-radius: 99px; background: #000; color: var(--lime); font-size: 1.6em; font-weight: 850; font-stretch: 115%; white-space: nowrap; opacity: 0; transform: translate(-50%, -50%) translateZ(120px) scale(0.6); transition: transform 1.1s var(--ease), opacity 0.5s; box-shadow: 0 1.5em 3em -1em rgba(0, 0, 0, 0.5); }

/* Weitere Seiten */
.bpage {
  position: absolute; left: 50%; top: 50%; width: calc(var(--bw, 40vw) * 0.46); height: calc(var(--bw, 40vw) * 0.31);
  --bw: clamp(26rem, 40vw, 44rem); font-size: calc(var(--bw) / 70);
  display: flex; flex-direction: column; gap: 0.6em; padding: 2.4em 1.4em 1.2em; overflow: hidden;
  background: #fff; border-radius: 0.8em; box-shadow: 0 2em 4em -1.5em rgba(10, 10, 60, 0.35);
  opacity: 0; transform: translate(-50%, -50%) translateZ(-260px) scale(0.6); transition: transform 0.9s var(--ease), opacity 0.45s;
}
.bpage__bar { position: absolute; inset: 0 0 auto 0; height: 1.4em; background: #e9e9e5; }
.bpage b { font-size: 1.8em; font-weight: 900; font-stretch: 120%; letter-spacing: -0.03em; }
.bpage__grid, .bpage__team, .bpage__gallery { display: grid; gap: 0.6em; flex: 1; }
.bpage__grid { grid-template-columns: repeat(3, 1fr); }
.bpage__grid em { background: var(--blue); border-radius: 0.4em; }
.bpage__grid em:nth-child(2) { background: var(--lime); }
.bpage__team { grid-template-columns: repeat(3, 1fr); }
.bpage__team em { aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 38%, #f2c9a6 0 22%, transparent 23%), radial-gradient(circle at 50% 100%, var(--blue) 0 45%, transparent 46%), #e7e7ff; }
.bpage__gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; }
.bpage__gallery em { border-radius: 0.3em; background: linear-gradient(135deg, #2b2dff, #8c8eff); }
.bpage__gallery em:nth-child(2n) { background: linear-gradient(135deg, #d6ff3d, #9ccc1a); }
.bpage__gallery em:nth-child(3n) { background: linear-gradient(135deg, #1e2a22, #4f6b55); }
.bpage__job { height: 2.2em; border-radius: 0.4em; border: 2px solid #000; background: linear-gradient(90deg, var(--lime) 0 0.6em, transparent 0.6em); }

/* Zustand -1: Einzelteile schweben lose im Raum */
.build[data-state="-1"] .build__scene { --rx: 18deg; --ry: -26deg; }
.build[data-state="-1"] .lay--design { opacity: 0.25; }
.build[data-state="-1"] .lay--wire { opacity: 1; }
.build[data-state="-1"] .part { transform: translate3d(var(--ex), var(--ey), var(--ez)) rotate(var(--er)); transition-delay: 0s; }
/* Zustand 1: Unterseiten fächern sich auf */
.build[data-state="1"] .bwin { transform: translate(-50%, -50%) translateZ(120px) scale(0.6); }
.build[data-state="1"] .bpage { opacity: 1; }
.build[data-state="1"] .bpage--a { transform: translate(-50%, -50%) translate3d(-66%, -78%, -40px) rotateY(14deg); transition-delay: 0.05s; }
.build[data-state="1"] .bpage--b { transform: translate(-50%, -50%) translate3d(66%, -78%, -40px) rotateY(-14deg); transition-delay: 0.12s; }
.build[data-state="1"] .bpage--c { transform: translate(-50%, -50%) translate3d(-66%, 78%, -80px) rotateY(14deg); transition-delay: 0.19s; }
.build[data-state="1"] .bpage--d { transform: translate(-50%, -50%) translate3d(66%, 78%, -80px) rotateY(-14deg); transition-delay: 0.26s; }
/* Zustand 2: Ebenen eines Komplettprojekts */
.build[data-state="2"] .build__scene { transform: rotateX(58deg) rotateY(0deg) rotateZ(-34deg) scale(0.78) translateY(4%); }
.build[data-state="2"] .lay--wire { opacity: 1; transform: translateZ(-90px); }
.build[data-state="2"] .lay--design { transform: translateZ(10px); }
.build[data-state="2"] .lay--content { transform: translateZ(120px); }
.build[data-state="2"] .lay--code { opacity: 1; transform: translateZ(240px); }
.build[data-state="2"] .lay::after { opacity: 1; transform: none; }
/* Zustand 3: Betreuung – Inhalte aktualisieren sich */
.build[data-state="3"] .p-title__a { opacity: 0; transform: translateY(-0.4em); }
.build[data-state="3"] .p-title__b { opacity: 1; }
.build[data-state="3"] .p-img__a { opacity: 0; }
.build[data-state="3"] .p-img__b { opacity: 1; transform: scale(1.08); }
.build[data-state="3"] .chrome__badge { opacity: 1; transform: none; }
.build[data-state="3"] .p-card:nth-of-type(1) { background: var(--lime); border-color: var(--lime); }
.build[data-state="3"] .p-btn { background: #000; }
/* Zustand 4: Domain & E-Mail */
.build[data-state="4"] .build__scene { --rx: 4deg; --ry: -8deg; }
.build[data-state="4"] .lay--content { opacity: 0.25; }
.build[data-state="4"] .chrome__url { transform: translate3d(9em, 9em, 200px) scale(2.6); background: var(--lime); color: #000; box-shadow: 0 1em 2.5em -0.6em rgba(0, 0, 0, 0.45); }
.build[data-state="4"] .p-mail { opacity: 1; transform: translate(-50%, -50%) translateZ(220px) scale(1); transition-delay: 0.25s; }


/* --------------------------------------------------------------------------
   Film: Konzept → Design → Code → Ebenen → Unterseiten → Betreuung → Domain
   Gesteuert von main.js (Klasse .is-film, data-state, .is-on/.is-placed/.is-grab)
   -------------------------------------------------------------------------- */
.film-cap { position: absolute; left: 0; top: 0; z-index: 5; display: none; align-items: center; gap: 0.75rem; font-weight: 800; font-stretch: 115%; font-size: 1.05rem; }
.film-cap b { display: grid; place-items: center; min-width: 2.6rem; height: 2.6rem; padding: 0 0.5rem; background: #000; color: var(--lime); font-weight: 900; clip-path: var(--chamfer); }
.film-cap span { transition: opacity 0.3s; }
.film-cap.is-switch span { opacity: 0; }
.is-film .film-cap { display: flex; }

/* Code-Editor */
.lay--code { justify-content: flex-start; padding: 7% 6%; gap: 0.55em; font-size: 0.95em; line-height: 1.35; color: #fff; }
.lay--code code { white-space: pre; min-height: 1.35em; }
.lay--code code.in1 { padding-left: 2em; }
.lay--code i { font-style: normal; color: var(--lime); }
.lay--code u { text-decoration: none; color: #9da0ff; }
.lay--code em { font-style: normal; color: #ffcf7a; }
.lay--code code.is-typing::after { content: ""; display: inline-block; width: 0.55em; height: 1.05em; margin-left: 0.1em; vertical-align: -0.15em; background: var(--lime); animation: caret 0.8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* Planungszettel und Gestaltungs-Kit */
.notes, .kit { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.note-tag { position: absolute; padding: 0.55em 1em; background: var(--lime); color: #000; font-weight: 850; font-stretch: 112%; font-size: 1em; box-shadow: 0 0.8em 1.6em -0.6em rgba(0, 0, 0, 0.35); opacity: 0; transform: translateZ(60px) scale(0.6) rotate(-6deg); transition: opacity 0.4s, transform 0.6s var(--ease); }
.note-tag--a { left: 6%; top: -5%; }
.note-tag--b { right: -6%; top: 34%; }
.note-tag--c { left: 38%; bottom: -6%; }
.note-tag.is-on { opacity: 1; transform: translateZ(60px) scale(1) rotate(-3deg); }
.note-tag--b.is-on { transform: translateZ(60px) scale(1) rotate(4deg); }
.kit { inset: auto 0 -16% 0; height: 10%; display: flex; align-items: center; gap: 0.7em; opacity: 0; transform: translateZ(80px) translateY(1em); transition: opacity 0.5s, transform 0.8s var(--ease); }
.kit i { width: 2.2em; height: 2.2em; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0.4em 1em rgba(0, 0, 0, 0.25); }
.kit b { margin-left: 0.6em; font-size: 2.2em; font-weight: 900; font-stretch: 125%; }
.kit span { font-weight: 700; color: var(--grey); }
.kit.is-on { opacity: 1; transform: translateZ(80px); }

/* Teile: versteckt, bis sie gesetzt werden; gezogene Teile hängen am Mauszeiger */
.is-film .part:not(.is-placed):not(.is-grab) { opacity: 0; transform: translate3d(var(--ex), var(--ey), var(--ez)) rotate(var(--er)); transition-delay: 0s; }
.is-film .part.is-grab:not(.is-placed) { opacity: 1; transform: translate3d(var(--gx, 40%), var(--gy, 40%), 70px) rotate(3deg); transition-delay: 0s; box-shadow: 0 1.5em 3em -1em rgba(0, 0, 0, 0.45); }
.is-film .part.is-placed { transition-delay: 0s; }
.part.has-cursor::after {
  content: ""; position: absolute; left: 55%; top: 55%; width: 1.9em; height: 2.4em; z-index: 3;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 40'%3E%3Cpath d='M2 2v31l8-7 6 12 6-3-6-12h11z' fill='%23d6ff3d' stroke='%23000' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  filter: drop-shadow(0 0.3em 0.4em rgba(0, 0, 0, 0.35));
}
.is-film .wire { transform-origin: 0 0; transition: transform 0.45s var(--ease), opacity 0.3s; }
.is-film .wire:not(.is-on) { transform: scale(0); opacity: 0; }
.is-film .wire.is-on.has-cursor::after { content: ""; position: absolute; right: -0.9em; bottom: -1.4em; width: 1.6em; height: 2em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 40'%3E%3Cpath d='M2 2v31l8-7 6 12 6-3-6-12h11z' fill='%23d6ff3d' stroke='%23000' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }

/* Szenen */
.build[data-state="plan"] .lay--design { opacity: 0.2; }
.build[data-state="plan"] .lay--wire { opacity: 1; }
.build[data-state="plan"] .build__scene { --rx: 14deg; --ry: -20deg; }
.build[data-state="design"] .lay--wire { opacity: 0.35; }
.build[data-state="code"] .lay--code { opacity: 1; transform: translateZ(110px) translate(-7%, 5%) scale(0.86); box-shadow: 0 2em 4em -1.2em rgba(0, 0, 0, 0.6); }
.build[data-state="code"] .build__scene { --rx: 6deg; --ry: -10deg; }
.build[data-state="2"] .build__scene { animation: layers-turn 3.6s ease-in-out both; }
@keyframes layers-turn { from { transform: rotateX(58deg) rotateZ(-34deg) scale(0.78) translateY(4%); } to { transform: rotateX(54deg) rotateZ(-22deg) scale(0.8) translateY(4%); } }


/* ==========================================================================
   Über mich & Ansprechpartner-Karte (nur Kontaktseite)
   ========================================================================== */
.about__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 2.5rem; margin-top: 0.75rem; }
.about__block { display: grid; gap: 0.6rem; align-content: start; padding-top: 1.1rem; border-top: 3px solid #000; }
.about__block h3 { font-size: var(--step-1); font-stretch: 115%; }
.about__block p { color: var(--grey); }

.contact-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2.5rem 5rem; align-items: center; }
.contact-hero__person { margin: 0; display: grid; width: min(22rem, 30vw); }
.contact-hero__ph { width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: #000; }
.contact-hero__ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.contact-hero__card {
  display: grid; justify-items: start; gap: 0.2rem; text-align: left;
  padding: 1rem 1.25rem 1.1rem; background: #000; color: #fff;
}
.contact-hero__card b { white-space: nowrap; font-size: clamp(1.35rem, 1rem + 0.8vw, 1.75rem); font-weight: 900; font-stretch: 120%; letter-spacing: -0.02em; line-height: 1.1; }
.contact-hero__card span { color: var(--lime); font-weight: 700; font-size: 0.9688rem; }

.contact-about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.contact-about__text .section__title { margin-bottom: 1.75rem; }
.contact-card { --ghost-fill: #000; display: grid; gap: 1.5rem; padding: clamp(2rem, 3vw, 2.75rem); background: #000; color: #fff; clip-path: polygon(0 0, calc(100% - 2rem) 0, 100% 2rem, 100% 100%, 0 100%); }
.contact-card__title { font-size: var(--step-3); font-stretch: 122%; }
.contact-card__label { display: block; margin-bottom: 0.3rem; font-size: 0.9375rem; font-weight: 650; color: var(--on-black-2); }
.contact-card__link { font-size: clamp(1.75rem, 1rem + 1.6vw, 2.6rem); font-weight: 900; font-stretch: 120%; letter-spacing: -0.03em; line-height: 1.05; text-decoration: none; color: #fff; overflow-wrap: anywhere; }
.contact-card__link--mail { font-size: clamp(1.05rem, 0.7rem + 0.7vw, 1.3rem); font-stretch: 100%; letter-spacing: 0; white-space: nowrap; }
@media (max-width: 30rem) { .contact-card__link--mail { white-space: normal; } }
.contact-card__link:hover { color: var(--lime); }
.contact-card .btn--lime:hover { background: #fff; color: #000; }
@media (max-width: 56rem) {
  .about__cols, .contact-hero, .contact-about { grid-template-columns: minmax(0, 1fr); }
  .contact-hero__person { width: min(18rem, 70vw); }
}

/* ==========================================================================
   Hero-Extras: wechselndes Wort, Leben in den Fenstern, Stapel fliegt auseinander
   ========================================================================== */
.line--swap .swap { color: var(--lime); transition: transform 0.5s var(--ease), opacity 0.35s; }
.line--swap .swap.is-out { transform: translateY(-105%); opacity: 0; }
.line--swap .swap.is-in-start { transform: translateY(105%); opacity: 0; transition: none; }
.hero__title .line > span { animation-fill-mode: backwards; }

.win { transform: translate3d(calc(var(--slot) * -7%), calc(var(--slot) * -13% - var(--hp, 0) * var(--slot) * 22%), calc(var(--slot) * -170px + var(--hp, 0) * 160px)) rotateZ(calc(var(--hp, 0) * var(--slot) * -4deg)); }
.spin { transform-box: fill-box; transform-origin: center; animation: spin 7s linear infinite; }
.spin--fast { animation-duration: 3s; }
.beat { transform-box: fill-box; transform-origin: center; animation: beat 2.4s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes beat { 50% { transform: scale(1.1); } }
.mock__btn { animation: btn-pulse 2.6s ease-in-out infinite; }
@keyframes btn-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--m-accent) 60%, transparent); } 50% { box-shadow: 0 0 0 1.2cqw transparent; } }

/* ==========================================================================
   Intro (einmal pro Besuch, nur Startseite) – reines CSS, ausgelöst im <head>
   ========================================================================== */
.intro-run body::before, .intro-run body::after { content: ""; position: fixed; inset: 0; pointer-events: none; }
.intro-run body::before { z-index: 200; background: var(--lime); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); animation: intro-wipe 0.9s var(--ease) 1.05s forwards; }
.intro-run body::after { z-index: 201; background: url("../img/brand/logo-schwarz-1040.webp") center / min(460px, 62vw) auto no-repeat; animation: intro-logo 0.9s var(--ease) both, intro-logo-out 0.45s ease-in 0.95s forwards; }
@keyframes intro-wipe { to { clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); } }
@keyframes intro-logo { from { opacity: 0; transform: scale(0.82); filter: blur(10px); } }
@keyframes intro-logo-out { to { opacity: 0; transform: translateY(-3rem); } }
.intro-run .hero__title .line > span { animation-delay: calc(var(--i) * 0.11s + 1.35s); }
.intro-run .win { animation-delay: calc(1.5s + (3 - var(--slot)) * 0.12s); }

/* ==========================================================================
   Magnetische Buttons (nur Maus, ohne „Bewegung reduzieren“)
   ========================================================================== */
.btn, .chip { transform: translate(var(--bx, 0px), var(--by, 0px)); transition: background-color 0.2s, color 0.2s, transform 0.35s var(--ease), border-color 0.2s; }
.btn:hover { transform: translate(var(--bx, 0px), var(--by, 0px)); }

/* ==========================================================================
   Farbflächen wachsen beim Hineinscrollen als Kreis auf (KI-Abschnitt, Kontakt-Band)
   ========================================================================== */
.circle-on:not(.circle-done) { clip-path: circle(var(--cr, 0px) at 50% 60vh); }

@media (max-width: 56rem) {
  .build__sticky { grid-template-columns: minmax(0, 1fr); }
}
/* Smartphone-Startseite ------------------------------------------------------ */
@media (max-width: 40rem) {
  .page-home .site-header__inner { gap: 0.75rem; }
  .page-home .brand img { width: clamp(8.5rem, 47vw, 11.25rem); }
  .page-home .hero { min-height: auto; }
  .page-home .hero__inner { padding-block: 1.5rem 1.75rem; gap: 1.5rem; }
  .page-home .hero__copy { gap: 1rem; }
  .page-home .hero__title { line-height: 0.96; }
  .page-home .hero__title .line { display: inline; overflow: visible; }
  .page-home .hero__title .line--swap { display: block; }
  .page-home .hero__lead { font-size: 1rem; line-height: 1.45; }
  .page-home .hero__actions { gap: 0.55rem 0.75rem; }
  .page-home .hero__actions .btn { padding-inline: 0.65rem; font-size: 0.9375rem; }
  .page-home .hero__phone { font-size: 0.9375rem; }
  .page-home .hero__stage { gap: 0.75rem; }

  .page-home .stage { height: auto; perspective: none; }
  .page-home .stage__rig { position: relative; display: grid; transform: none; }
  .page-home .win {
    position: relative; grid-area: 1 / 1; inset: auto; width: 100%; min-width: 0;
    transform: none; filter: none; visibility: hidden; animation: none; transition: none;
    box-shadow: 0 1rem 2rem rgba(0, 0, 40, 0.3);
  }
  .page-home .win[data-front] { visibility: visible; }
  .page-home .win__bar { padding: 0.5rem; gap: 0.3rem; }
  .page-home .win__bar span { margin-left: 0.25rem; padding-inline: 0.45rem; }
  .page-home .stage__switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .page-home .chip { font-size: 0.9375rem; padding-inline: 0.4rem; }
  .page-home .marquee span { font-size: 1.5rem; padding-block: 0.7rem; }

  .page-home .build__sticky, .page-home .ki__sticky { padding-block: 3.25rem; gap: 1.5rem; }
  .page-home .build__title, .page-home .ki__title, .page-home .process__title,
  .page-home .contact-band__title {
    font-size: clamp(2rem, 1.25rem + 4vw, 3rem);
  }
  .page-home .build__stage { container-type: inline-size; height: clamp(17rem, 91vw, 29rem); }
  .page-home .build:not(.is-film) .build__stage { height: clamp(14rem, 73vw, 23rem); }
  .page-home .bwin { --bw: min(27rem, 74cqw); }
  .page-home .build__toggle { min-height: 2.75rem; }
  .page-home .ki__copy, .page-home .contact-band__inner { grid-template-columns: minmax(0, 1fr); }
  .page-home .ki__copy .btn { max-width: 100%; padding-inline: 1rem; text-align: center; white-space: normal; }
  .page-home .contact-band__phone { font-size: clamp(1.75rem, 7vw, 2.25rem); }
  .page-home .process { padding-block: 3.25rem; }
  .page-home .process__head { gap: 0.75rem; margin-bottom: 2rem; }
  .page-home .process__steps { gap: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .spin, .beat, .mock__btn, .mock__img img { animation: none !important; }
}
