/* mucki.ai Startseite. Bewusst hell und ruhig: Die dunkle Kapitel-Story mit 3D-Brain gehört den Kundenseiten. */

:root {
  --loader-bg: #0b1020;
  --loader-dot: #93b4ff;
  --bg: #FBFCFC;
  --surface: #ffffff;
  --tint: #F2F7F6;
  --ink: #1e293b;
  --mute: #616b7c;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --blue: #1e40af;
  --blue-deep: #1e3a8a;
  --accent: #3B82F6;
  --lavender: #E0E7FF;
  --navy: #0b1020;

  --font-head: "Manrope", system-ui, sans-serif;
  --font-text: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --t-hero: clamp(2.5rem, 1.6rem + 4.2vw, 5.25rem);
  --t-title: clamp(1.875rem, 1.4rem + 2vw, 3.25rem);
  --t-lead: clamp(1rem, 0.94rem + 0.3vw, 1.1875rem);
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section: clamp(4.5rem, 3rem + 7vw, 9rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
a { color: var(--blue); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--blue); color: #fff; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); }
.title { font-family: var(--font-head); font-weight: 800; font-size: var(--t-title); line-height: 1.08; letter-spacing: -0.03em; max-width: 13em; }
.title--wide { max-width: 18em; }
.lead { font-size: var(--t-lead); line-height: 1.6; color: var(--mute); max-width: 36em; }
.note { padding-left: 16px; border-left: 2px solid var(--blue); font-weight: 500; line-height: 1.55; max-width: 30em; }
.stack-text { display: flex; flex-direction: column; gap: 1.25rem; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

.section { padding: var(--section) 0; }
.section--tint { background: var(--tint); }
.section > .wrap + .wrap { margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.section .eyebrow + .title { margin-top: 0.75rem; }
.section .title + .lead { margin-top: 1.25rem; }

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

.btn {
  min-height: 50px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-deep); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--ink); background: var(--surface); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 0.9375rem; }
.btn--white { background: #fff; color: var(--blue); }
.btn--white:hover { background: var(--lavender); }
.btn--outline-white { border: 1px solid rgba(255, 255, 255, 0.5); color: #fff; }
.btn--outline-white:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

/* ---------- Kopfleiste ---------- */

.top { position: sticky; top: 0; z-index: 40; background: rgba(251, 252, 252, 0.86); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color 0.3s ease; }
.top.is-scrolled { border-bottom-color: var(--line); }
.top__inner { max-width: 1200px; margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; gap: 2rem; }
.top__logo img { width: 96px; }
.top__nav { display: flex; gap: 1.75rem; margin-left: auto; }
.top__nav a { color: var(--mute); text-decoration: none; font-size: 0.9375rem; font-weight: 500; transition: color 0.2s ease; }
.top__nav a:hover { color: var(--ink); }
.lang { display: flex; align-items: center; gap: 6px; font-size: 0.875rem; color: var(--line-strong); }
.lang a { color: var(--mute); text-decoration: none; font-weight: 500; }
.lang a[aria-current="page"] { color: var(--blue); font-weight: 700; }
.lang a:hover { color: var(--ink); }
@media (max-width: 860px) {
  .top__nav { display: none; }
  .lang { margin-left: auto; }
}

/* ---------- Start ---------- */

/* Berliner Skyline in mucki-Blau wie auf der bisherigen Seite; darunter ragt die Architektur-Linie als Karte hinein. */
.hero { position: relative; padding-top: clamp(4rem, 2.5rem + 6vw, 8rem); }
.hero__city { position: absolute; inset: 0 0 clamp(90px, 8vw, 130px) 0; overflow: hidden; background: var(--blue); }
.hero__bg { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero__city::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 64, 175, 0.84) 0%, rgba(30, 58, 138, 0.9) 100%); }
.hero > .wrap { position: relative; z-index: 1; }
.hero__text { color: #fff; }
.hero .eyebrow { color: var(--lavender); }
.hero__title { margin-top: 1.25rem; font-family: var(--font-head); font-weight: 800; font-size: var(--t-hero); line-height: 1.02; letter-spacing: -0.035em; max-width: 11em; }
.hero__lead { margin-top: 1.5rem; font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.3125rem); line-height: 1.6; color: rgba(255, 255, 255, 0.82); max-width: 34em; }
.hero__cta { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__check { margin-top: 1.5rem; display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 0.9375rem; font-weight: 500; text-decoration: none; transition: background-color 0.2s ease; }
.hero__check:hover { background: rgba(255, 255, 255, 0.16); }
.hero__check-tag { flex: none; white-space: nowrap; padding: 3px 10px; border-radius: 999px; background: var(--lavender); color: var(--blue); font-size: 0.8125rem; font-weight: 600; }
.hero__arch { margin-top: clamp(3rem, 2rem + 4vw, 5rem); }

/* Architektur-Linie: fünf Stationen auf einer Leitung, das Brain in der Mitte hervorgehoben. */
.arch {
  --pad: clamp(20px, 2.5vw, 36px);
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  padding: var(--pad);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 30px 70px rgba(30, 41, 59, 0.12);
}
.arch::before {
  content: "";
  position: absolute;
  left: calc(var(--pad) + 28px);
  right: calc(var(--pad) + 28px);
  top: calc(var(--pad) + 28px);
  height: 2px;
  background: var(--line-strong);
  transform-origin: left center;
  transition: transform 1.4s var(--ease) 0.2s;
}
/* Ein Punkt läuft langsam die Leitung entlang: Daten auf dem Weg zur Antwort. */
.arch::after {
  content: "";
  position: absolute;
  left: calc(var(--pad) + 28px);
  top: calc(var(--pad) + 25px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
  opacity: 0;
}
.is-ready .arch::after { animation: arch-flow 6s ease-in-out 1.8s infinite; }
@keyframes arch-flow {
  0% { opacity: 0; left: calc(var(--pad) + 28px); }
  8% { opacity: 1; }
  88% { opacity: 1; }
  100% { opacity: 0; left: calc(100% - var(--pad) - 36px); }
}

.arch__node { position: relative; display: flex; flex-direction: column; gap: 6px; }
.arch__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  color: var(--blue);
}
.arch__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.arch__node--brain .arch__icon { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 10px 30px rgba(30, 64, 175, 0.3); }
.arch__nr { font-family: var(--font-mono); font-size: 0.75rem; color: var(--mute); }
.arch__name { font-family: var(--font-head); font-weight: 800; font-size: 1.125rem; letter-spacing: -0.01em; }
.arch__text { font-size: 0.875rem; color: var(--mute); line-height: 1.45; max-width: 15em; }

/* Auftritt beim Laden, nur wenn JavaScript läuft (sonst bleibt alles sichtbar). */
.js .arch::before { transform: scaleX(0); }
.js .arch__node { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.9s var(--ease); }
.js .arch__node:nth-child(2) { transition-delay: 0.15s; }
.js .arch__node:nth-child(3) { transition-delay: 0.3s; }
.js .arch__node:nth-child(4) { transition-delay: 0.45s; }
.js .arch__node:nth-child(5) { transition-delay: 0.6s; }
.is-ready .arch::before { transform: scaleX(1); }
.is-ready .arch__node { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .arch { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .arch::before { left: calc(var(--pad) + 27px); right: auto; top: calc(var(--pad) + 28px); bottom: calc(var(--pad) + 28px); width: 2px; height: auto; transform-origin: center top; }
  .js .arch::before { transform: scaleY(0); }
  .is-ready .arch::before { transform: scaleY(1); }
  .is-ready .arch::after { animation: none; }
  .arch__node { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; row-gap: 2px; align-items: center; }
  .arch__icon { grid-row: span 3; margin: 0; }
  .arch__text { max-width: none; }
}

/* ---------- Heute ---------- */

.sources { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0.5rem; }
.sources li { padding: 7px 14px; border: 1px dashed var(--line-strong); border-radius: 999px; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--mute); background: var(--surface); }

/* ---------- Von A bis Z: Schichten ---------- */

.layers { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.layers__figure { align-self: stretch; }
.layers__sticky { position: sticky; top: 28vh; display: flex; flex-direction: column; gap: 10px; }

/* Flache Schichten. Bis zur aktuellen Stufe gebaut (gefüllt), darüber nur gestrichelt geplant. */
.bar {
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--mute);
  font-family: var(--font-head);
  font-weight: 700;
  transition: background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease, box-shadow 0.5s ease;
}
.bar.is-built { border-style: solid; border-color: var(--line-strong); background: var(--surface); color: var(--ink); }
.bar--brain.is-built { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 12px 30px rgba(30, 64, 175, 0.25); }
.bar.is-current { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); }
.bar--brain.is-current { box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25), 0 12px 30px rgba(30, 64, 175, 0.25); }
/* Ohne JavaScript: alle Schichten gebaut. */
html:not(.js) .bar { border-style: solid; background: var(--surface); color: var(--ink); }

.layers__steps { display: flex; flex-direction: column; }
.layer { padding: clamp(2rem, 1.5rem + 4vh, 4.5rem) 0; border-top: 1px solid var(--line-strong); display: flex; flex-direction: column; gap: 0.75rem; }
.layer:first-child { border-top: 0; padding-top: 0; }
.layer__nr { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--blue); }
.layer__name { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.5rem, 1.25rem + 1vw, 2.125rem); letter-spacing: -0.02em; line-height: 1.15; }
.layer p { color: var(--mute); font-size: var(--t-lead); line-height: 1.6; max-width: 32em; }
.layer .layer__result { color: var(--ink); font-weight: 600; font-size: 1rem; }
.layer .layer__result::before { content: "→ "; color: var(--blue); }

@media (max-width: 900px) {
  .layers { grid-template-columns: minmax(0, 1fr); }
  .layers__figure { display: none; }
}

/* ---------- Ein Brain, jedes Modell ---------- */

.split--models { align-items: center; }
.mcp {
  padding: clamp(20px, 2.5vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(30, 41, 59, 0.08);
}
.mcp__hint { text-align: center; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); margin-bottom: 12px; }
.models { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.model {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.3s ease, transform 0.2s var(--ease);
}
.model:hover { border-color: var(--blue); }
.model:active { transform: scale(0.97); }
.model[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; cursor: default; box-shadow: 0 8px 22px rgba(30, 64, 175, 0.25); }
/* Das zweite Modell lädt zum Klicken ein, bis jemand ein anderes gewählt hat. */
.model--nudge { animation: nudge 2.4s ease-in-out infinite; }
.models:has(li:not(:first-child) .model[aria-pressed="true"]) .model--nudge { animation: none; }
@keyframes nudge { 50% { border-color: var(--blue); background-color: var(--lavender); } }

.mcp__bus { position: relative; height: 72px; margin: 6px 0; }
.mcp__bus::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); background: var(--line-strong); }
.mcp__pill { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 4px 12px; border-radius: 999px; background: var(--lavender); color: var(--blue); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; }
.mcp__pulse { position: absolute; left: calc(50% - 4px); top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); opacity: 0; }

.mcp__brain { padding: 20px; border-radius: 16px; background: var(--blue); color: #fff; text-align: center; transition: box-shadow 0.4s ease; }
.mcp__brain-name { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; }
.mcp__tools { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.mcp__tools li { padding: 4px 10px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px; font-family: var(--font-mono); font-size: 0.75rem; color: rgba(255, 255, 255, 0.85); }

.mcp__answer { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.mcp__q { font-size: 0.9375rem; color: var(--mute); }
.mcp__q strong { font-weight: 600; color: var(--ink); }
.mcp__a { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.4; }
.mcp__meta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--mute); }
.mcp__model { padding: 1px 6px; border-radius: 6px; color: var(--blue); font-weight: 500; }
.mcp__caption { margin-top: 14px; font-size: 0.8125rem; color: var(--mute); }

/* Nach einem Klick: Puls über MCP ins Brain, das Brain leuchtet kurz, der Modellname blitzt. */
.mcp.is-asking .mcp__pulse { animation: pulse-down 0.6s ease-in forwards; }
.mcp.is-asking .mcp__brain { animation: brain-glow 1s ease-out 0.45s; }
.mcp.is-asking .mcp__model { animation: name-flash 1.2s ease-out 0.8s; }
@keyframes pulse-down { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 1; transform: translateY(72px); } }
@keyframes brain-glow { 30% { box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25), 0 16px 40px rgba(30, 64, 175, 0.4); } }
@keyframes name-flash { 0% { background: var(--lavender); } 100% { background: transparent; } }

/* ---------- Blaue Flächen (mucki-Blau wie auf der bisherigen Seite) ---------- */

.section--blue { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%); color: #fff; }
.section--blue .eyebrow { color: var(--lavender); }
.section--blue .lead { color: rgba(255, 255, 255, 0.8); }

/* ---------- Der Einstieg: Check ---------- */

.check { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.check .title { max-width: 14em; }
.check__list { display: grid; gap: 10px; margin-top: 0.5rem; }
.check__list li { position: relative; padding-left: 30px; font-weight: 500; }
.check__list li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 14px; height: 8px; border-left: 2px solid var(--lavender); border-bottom: 2px solid var(--lavender); transform: rotate(-45deg); }
.price { padding: clamp(24px, 3vw, 36px); border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 22px; background: rgba(255, 255, 255, 0.08); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.price__label { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lavender); }
.price__value { font-family: var(--font-head); font-weight: 800; font-size: clamp(3rem, 2.4rem + 2.5vw, 4.5rem); line-height: 1; letter-spacing: -0.04em; }
.price__meta { color: rgba(255, 255, 255, 0.78); margin-bottom: 1rem; }
.price .btn { width: 100%; }
.price__note { margin-top: 6px; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.7); }
@media (max-width: 900px) { .check { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Beweis ---------- */

.mascot { width: clamp(120px, 10vw + 60px, 180px); aspect-ratio: 4 / 5; object-fit: cover; object-position: center 18%; border-radius: 24px; box-shadow: 0 18px 40px rgba(30, 64, 175, 0.25); }

.proof { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px rgba(30, 41, 59, 0.06); }
.proof__head { padding: 22px 26px; border-bottom: 1px solid var(--line); }
.proof__kicker { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); }
.proof__addr { margin-top: 4px; font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; }
.proof__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.proof__grid div { padding: 18px 26px; border-bottom: 1px solid var(--line); }
.proof__grid div:nth-child(odd) { border-right: 1px solid var(--line); }
.proof__grid div:nth-last-child(-n + 2) { background: var(--tint); }
.proof__grid dt { font-size: 0.8125rem; color: var(--mute); }
.proof__grid dd { margin-top: 4px; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.proof__src { padding: 14px 26px; font-family: var(--font-mono); font-size: 0.6875rem; line-height: 1.6; color: var(--mute); }
@media (max-width: 420px) { .proof__grid div { padding: 16px 18px; } }

/* ---------- Anwendungen ---------- */

.uses { margin-top: clamp(2rem, 1.5rem + 3vw, 3.5rem); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.uses li { padding: 24px 24px 24px 0; display: flex; flex-direction: column; gap: 8px; }
.uses li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.uses h3 { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; }
.uses p { color: var(--mute); font-size: 0.9375rem; }
@media (max-width: 900px) {
  .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uses li:nth-child(3) { padding-left: 0; border-left: 0; }
  .uses li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .uses { grid-template-columns: minmax(0, 1fr); }
  .uses li, .uses li + li { padding: 20px 0; border-left: 0; }
  .uses li + li { border-top: 1px solid var(--line); }
}

/* ---------- Betrieb ---------- */

.runs { margin-top: clamp(2rem, 1.5rem + 3vw, 3.5rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.runs li { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; gap: 8px; }
.runs h3 { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; }
.runs p { color: var(--mute); font-size: 0.9375rem; }
.runs__foot { margin-top: 1.75rem; font-weight: 600; }
@media (max-width: 760px) { .runs { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Ablauf ---------- */

.path { margin-top: clamp(2rem, 1.5rem + 3vw, 3.5rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.path li { position: relative; display: flex; flex-direction: column; gap: 6px; padding-top: 52px; }
.path li::before { content: ""; position: absolute; left: 40px; right: -24px; top: 17px; height: 2px; background: var(--line-strong); }
.path li:last-child::before { display: none; }
.path__nr { position: absolute; top: 0; left: 0; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; }
.path h3 { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; }
.path__meta { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--blue); }
.path p:not(.path__meta) { color: var(--mute); font-size: 0.9375rem; }
@media (max-width: 900px) {
  .path { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .path li { padding: 0 0 0 56px; }
  .path li::before { left: 17px; right: auto; top: 44px; bottom: -28px; width: 2px; height: auto; }
}

/* ---------- FAQ ---------- */

.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); }
.faq details { border-top: 1px solid var(--line-strong); }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--font-text); font-weight: 400; font-size: 1.5rem; color: var(--blue); transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 40px 22px 0; color: var(--mute); }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: minmax(0, 1fr); } }

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

.contact__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.25rem; }
.contact__photo { width: 120px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.16); }
.contact .title { max-width: 14em; }
.contact__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 0.5rem; }
.contact__team { font-size: 0.9375rem; color: rgba(255, 255, 255, 0.75); max-width: 32em; }
.path h3 a { color: inherit; text-decoration: none; }
.path h3 a:hover { color: var(--blue); }

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

.foot { border-top: 1px solid var(--line); padding: 28px 0; }
.foot__inner { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; font-size: 0.875rem; color: var(--mute); }
.foot nav { display: flex; gap: 1.25rem; margin-left: auto; }
.foot a { color: var(--mute); }

/* ---------- Einblenden beim Scrollen ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js .arch__node { opacity: 1; transform: none; transition: none; }
  .js .arch::before { transform: none; transition: none; }
  .is-ready .arch::after, .model--nudge { animation: none; }
  .mcp.is-asking .mcp__pulse, .mcp.is-asking .mcp__brain, .mcp.is-asking .mcp__model { animation: none; }
}

/* Ladebildschirm: dunkel, mit leuchtendem mucki. Nur mit JavaScript, sonst ist die Seite sofort sichtbar. */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  background: var(--loader-bg);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.js:not(.is-loaded) body { overflow: hidden; }
.is-loaded .loader { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__mascot {
  width: clamp(120px, 34vw, 190px); height: auto;
  filter: drop-shadow(0 0 40px rgba(147, 180, 255, 0.5));
  animation: loader-pulse 1.6s ease-in-out infinite;
}
.loader__word {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-weight: 800; font-size: 22px; letter-spacing: 0.02em; color: #fff;
}
.loader__spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(224, 231, 255, 0.3); border-top-color: var(--loader-dot);
  animation: loader-spin 0.8s linear infinite;
}
@keyframes loader-pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes loader-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .loader__mascot, .loader__spinner { animation: none; }
  .js .loader { transition: none; }
}
