/* ============================================================
   UWDG v3 · Blauschwarz, Kobalt, Chrom, Dreieck
   Theme: bewusst nur dunkel (Markenentscheidung aus v1/v2).
   Radien: Controls 10px, Panels 16px, Chips und Status als Pille.
   Farbe = Funktion:
     Kobalt  = Marke und Aktion
     Grün    = verfügbar / in Ordnung
     Bernstein = in Vorbereitung / Hinweis
     Rot     = Fehler / fehlt
   ============================================================ */

/* Selbst gehostete Schriften (OFL 1.1, Lizenzen in fonts/OFL-*.txt): keine Drittanbieter-Requests.
   Überschriften Manrope (Jonas' Wahl 21.10.2026: ruhig statt laut), Text Instrument Sans, Daten JetBrains Mono. */
@font-face { font-family: "Manrope"; src: url("fonts/manrope-latin.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-latin.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --bg0: #04060b;
  --bg1: #0a0f1a;
  --bg2: #101725;
  --bg3: #172033;
  --ink: #eef2fa;
  --dim: #9aa7bd;
  --line: rgba(148, 163, 190, 0.16);
  --line-strong: rgba(148, 163, 190, 0.42);
  --accent: #2757f0;
  --accent-hi: #5b88ff;
  --ok: #4fd197;
  --warn: #efbd55;
  --bad: #ff6b6f;
  --r-ctl: 10px;
  --r-panel: 16px;
  --font-display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --nav-h: 68px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  /* Ebenen */
  --z-nav: 100;
  --z-progress: 110;
  --z-toast: 160;
  --z-confetti: 170;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  scrollbar-width: thin;
  scrollbar-color: var(--bg3) var(--bg0);
  @media (prefers-reduced-motion: reduce) { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg0);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--accent-hi); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
a[href^="tel:"] { white-space: nowrap; } /* Telefonnummer bricht nie um */
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--accent); color: #fff; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}
/* Mono nur für Code und Adressen (28.10.2026): Etiketten, Status und Fußzeile stehen in der Textschrift */
.mono:is(.eyebrow, .call-tag, .call-status, .review-tag, .rep-reply-label, .footer-copy) {
  font-family: var(--font-body);
  letter-spacing: 0.03em;
  font-weight: 600;
}
kbd {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 0 5px;
  color: var(--dim);
}

:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--r-ctl);
  text-decoration: none;
}
.skip:focus-visible { left: 8px; }

.container {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}
.container.narrow { max-width: 880px; }

/* Chrom-Headline (Marken-Token aus dem Logo) */
.chrome {
  background: linear-gradient(180deg, #f4f7fc 12%, #c3cddf 55%, #8d9ab3 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* background-clip: text malt nur innerhalb des Rahmens. Bei engem Zeilenabstand ragen Unterlängen (g, j, p, q, y)
     und Umlaut-Punkte darüber hinaus und wurden abgeschnitten. Mehr Innenabstand, der Außenabstand gleicht ihn aus. */
  padding-block: 0.1em 0.24em;
}
.hero-title .line.chrome { margin-block: -0.1em -0.24em; }
h1.chrome, h2.chrome { margin-top: -0.1em; margin-bottom: 0.26em; }

/* ------------------------------------------------------------
   Scroll-Fortschritt (CSS scroll-driven, ohne JS)
   ------------------------------------------------------------ */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: var(--z-progress);
  background: var(--accent-hi);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .progress {
      animation: progress-grow linear;
      animation-timeline: scroll();
    }
    @keyframes progress-grow {
      from { transform: scaleX(0); }
      to { transform: scaleX(1); }
    }
  }
}

/* ------------------------------------------------------------
   Navigation
   ------------------------------------------------------------ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.nav.scrolled {
  background: rgba(4, 6, 11, 0.86);
  backdrop-filter: blur(14px);
  border-color: var(--line);
}
.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-brand { display: flex; align-items: center; flex: none; min-block-size: 44px; }
.nav-brand img { height: 36px; width: auto; }
.nav-links {
  display: flex;
  gap: 24px;
  margin-inline: auto;
}
.nav-links a {
  text-decoration: none;
  color: var(--dim);
  font-size: 0.92rem;
  font-weight: 500;
  padding-block: 6px;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active { box-shadow: inset 0 -2px 0 var(--accent-hi); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-burger {
  display: none;
  background: none;
  border: 0;
  padding: 12px 8px;
  margin-right: -8px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.25s;
}
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 6px clamp(20px, 4vw, 48px) 18px;
  background: rgba(4, 6, 11, 0.97);
  border-bottom: 1px solid var(--line);
}
.nav-mobile a {
  text-decoration: none;
  color: var(--ink);
  padding: 13px 0;
  font-weight: 500;
}
.nav-mobile a + a { border-top: 1px solid var(--line); }
.nav-mobile a:last-child { color: var(--accent-hi); font-weight: 700; }

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--r-ctl);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  touch-action: manipulation;
  transition: transform 0.18s var(--ease-out), background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover { background: #3767ff; color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--dim); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 0.88rem; }
.btn-call { display: none; }

/* Ladezustand: Dreieck dreht sich im Button */
.btn.is-loading .btn-label::before {
  content: "";
  display: inline-block;
  width: 0; height: 0;
  margin-right: 10px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 10px solid currentColor;
  vertical-align: -1px;
  @media (prefers-reduced-motion: no-preference) {
    animation: tri-spin 0.9s linear infinite;
  }
}
@keyframes tri-spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------
   Hero (PROTOTYP A + B1: Partikel bauen eine Mini-Seite, Namensfeld)
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: calc(var(--nav-h) + 14px);
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(4, 6, 11, 0.94) 0%, rgba(4, 6, 11, 0.4) 34%, rgba(4, 6, 11, 0) 60%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(48px, 9vh, 96px);
  pointer-events: none;
}
.hero-copy a { pointer-events: auto; }
.hero-title {
  font-size: clamp(2.2rem, 5.6vw, 4.6rem);
  font-weight: 700;
  margin-bottom: 0.4em;
}
.hero-title .line { display: block; }
/* Option C wie auf der echten Seite: Namen, Ort, Nummer gleich im ersten Bildschirm */
.hero-who { color: var(--dim); font-size: clamp(1rem, 1.25vw, 1.12rem); margin-bottom: 0.9em; }
.hero-who strong { color: var(--ink); font-weight: 700; }
.hero-who a { display: inline-block; padding-block: 12px; margin-block: -12px; font-weight: 700; white-space: nowrap; }
.hero-sub {
  max-width: 36rem;
  color: var(--dim);
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  margin-bottom: 1.6em;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Bühne: Mini-Seite und Namensfeld. Steht oben, der Text unten, dazwischen wächst der freie Raum. */
.hero-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  gap: 14px;
  margin-bottom: auto;
  padding-bottom: 20px;
}

/* Die Mini-Seite: eine echte kleine Startseite. Gedämpftes Hellgrau statt Weiß (Jonas, 28.10.2026):
   hebt sich klar vom dunklen Grund ab (16:1), blendet aber nicht. Kein Browserrahmen.
   --p ist die Farbe des Betriebs, --p-text die abgedunkelte Fassung für Schrift auf der grauen Fläche (über 4,5:1). */
/* Betriebsfarbe des Beispielbetriebs: Ziegelrot der Zimmerei, bewusst nicht UWDG-Kobalt (28.10.2026),
   damit die Mini-Seite als fremder Betrieb lesbar ist und kein zweiter blauer Knopf neben unserem steht. */
.ms {
  --p: #c2410c;
  --p-text: color-mix(in srgb, var(--p) 72%, #0b1220);
  position: relative;
  display: flex;
  flex-direction: column;
  background: #e3e7ee;
  color: #142033;
  border-radius: var(--r-panel);
  padding: 15px 16px 16px;
  font-family: var(--font-body);
  line-height: 1.4;
  overflow: hidden;
}
/* Bühne: Mini-Seite und davor das stille Logo (ab dem ersten Bild, bevor die Punkte übernehmen) */
.ms-wrap { position: relative; min-width: 0; }
/* Nur die Wortmarke: Ausschnitt ohne die Unterzeile des Logos (logo.svg 300×109, Zeilen 10,9 bis 74,1) */
.hero-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: min(78%, 34rem);
  aspect-ratio: 300 / 63.2;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.hero-mark img { width: 100%; height: auto; margin-top: -3.633%; }
/* Sichtbar erst, wenn die Punkte angekommen sind (app.js setzt .is-built).
   Ohne JS nach 6 s (vorher steht das Logo), bei reduzierter Bewegung sofort. */
/* Weicher Übergang: Die Seite verdichtet sich aus den Punkten (Unschärfe und Deckkraft über 1 s),
   die Punkte bleiben solange in der Seitenform und ziehen erst danach als Rahmen nach außen (app.js). */
@media (prefers-reduced-motion: reduce) {
  .hero-mark { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  /* Ohne JS weicht das stille Logo nach 6 s der Mini-Seite. Mit JS übernehmen die Punkte (.is-handed). */
  .hero-mark { animation: mark-out 0.5s var(--ease-out) 6s forwards; }
  .hero-mark.is-handed { animation: none; opacity: 0; transition: opacity 0.6s ease; }
  /* Eigener Name für den Notfall-Fallback: Mit gleichem Namen startet die Einblendung beim Klassenwechsel nicht neu */
  .ms:not(.is-built) { opacity: 0; animation: ms-fallback 0.6s var(--ease-out) 6s forwards; }
  .ms.is-built { animation: ms-in 1s cubic-bezier(0.25, 0.8, 0.3, 1) both; }
  .ms.is-built.is-instant { animation: none; }
  .ms.is-built.is-rebuilding { opacity: 0.12; filter: blur(3px); animation: none; transition: opacity 0.3s, filter 0.3s; }
}
@keyframes ms-fallback { to { opacity: 1; } }
@keyframes mark-out { to { opacity: 0; } }
@keyframes ms-in {
  0% { opacity: 0; filter: blur(10px); transform: scale(0.985); }
  55% { opacity: 0.8; filter: blur(2px); }
  100% { opacity: 1; filter: none; transform: none; }
}
/* flex-shrink: 0, sonst staucht die feste Höhe am Notebook den Titel unter die Unterzeile (1280–1536 px, 28.10.2026) */
.ms > * { margin: 0; flex-shrink: 0; }
.ms-nav { display: flex; align-items: center; gap: 9px; min-width: 0; }
.ms-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--p);
  color: #fff;
  font: 800 0.75rem/1 var(--font-display);
  letter-spacing: 0.02em;
}
.ms-name {
  flex: 1;
  min-width: 0;
  font: 700 0.95rem/1.2 var(--font-display);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ms-links { display: none; gap: 18px; font-size: 0.82rem; color: #4d586b; }
.ms-navcta {
  flex: none;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--p-text);
  border: 1.5px solid var(--p);
  border-radius: 999px;
  padding: 4px 11px;
}
/* Kennzeichnung oben an der Stelle der ersten Tatsache, mindestens 14 px, in der Betriebsfarbe */
.ms-badge { margin-top: 14px; font-size: 0.875rem; font-weight: 700; color: var(--p-text); }
.ms-title {
  margin-top: 4px;
  font: 800 1.2rem/1.16 var(--font-display);
  letter-spacing: -0.02em;
  max-width: 24ch;
  min-height: 2.32em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
/* Eingegebener Name als Überschrift: lange Namen kleiner, damit nichts abgeschnitten wird */
.ms-title.is-long { font-size: 1.02rem; max-width: 30ch; }
.ms-sub { display: none; margin-top: 8px; color: #4d586b; max-width: 46ch; }
.ms .ms-sub:empty { display: none; }
.ms-btn {
  align-self: flex-start;
  margin-top: 12px;
  background: var(--p);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
}
.ms-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.ms-card { background: #eceff4; border: 1px solid #c9d1de; border-radius: 9px; padding: 9px 11px; min-width: 0; }
.ms-card b { display: block; font: 700 0.8rem/1.25 var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-card span { display: none; font-size: 0.78rem; color: #4d586b; }
.ms-card:nth-child(3) { display: none; }

/* Namensfeld */
.hero-panel { position: relative; }
.hero-panel-label { display: block; font: 800 1.1rem/1.2 var(--font-display); letter-spacing: -0.01em; margin-bottom: 3px; }
.hero-panel-hint { color: var(--dim); font-size: 0.85rem; line-height: 1.4; margin: 0 0 8px; }
.hero-panel-input {
  display: block;
  width: 100%;
  min-height: 50px;
  background: var(--bg1);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-ctl);
  color: var(--ink);
  font: 500 1.05rem var(--font-body);
  padding: 11px 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hero-panel-input::placeholder { color: #8d99b0; }
.hero-panel-input:hover { border-color: var(--dim); }
.hero-panel-input:focus-visible { outline: none; border-color: var(--accent-hi); box-shadow: 0 0 0 3px rgba(91, 136, 255, 0.35); }
.hero-panel-status { margin: 7px 0 0; color: var(--dim); font-size: 0.85rem; line-height: 1.4; }
/* Leer: keine Höhe, bleibt aber als Live-Region im Baum */
.hero-panel-status:empty { margin: 0; }
/* Grün nur, wenn ein Gewerk erkannt wurde. „Kein Gewerk erkannt“ ist kein Erfolg, sondern neutral. */
.hero-panel-status b { color: var(--ink); font-weight: 600; }
.hero-panel-status b.is-hit { color: var(--ok); }
/* Brücke vom Namensfeld zum Erstgespräch (Text per textContent aus app.js) */
.hero-panel-go {
  display: inline-block;
  margin-top: 4px;
  padding-block: 10px;
  font-weight: 700;
  color: var(--accent-hi);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.hero-panel-go:hover { color: var(--ink); }
.hero-panel-go span { display: inline-block; margin-left: 6px; transition: transform 0.2s; }
.hero-panel-go:hover span { transform: translateX(4px); }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Ab Tablet quer: Mini-Seite links groß, Namensfeld rechts */
@media (min-width: 1024px) {
  .hero-stage {
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
    align-items: center;
    column-gap: clamp(32px, 4vw, 64px);
    padding-bottom: 28px;
  }
  .hero { padding-top: calc(var(--nav-h) + 26px); }
  .ms { height: clamp(290px, 44vh, 410px); padding: 20px 24px 22px; }
  .ms-nav { margin-bottom: 8px; }
  .ms-mark { width: 34px; height: 34px; font-size: 0.85rem; border-radius: 8px; }
  .ms-name { font-size: 1.1rem; flex: 0 1 auto; margin-right: auto; }
  .ms-links { display: flex; flex: none; white-space: nowrap; }
  .ms-navcta { font-size: 0.8rem; padding: 6px 13px; margin-left: 10px; }
  .ms-badge { margin-top: auto; font-size: 0.9rem; }
  /* Titelgröße folgt auch der Fensterhöhe (niedrige Notebook-Fenster) */
  .ms-title { font-size: clamp(1.3rem, min(2.3vw, 4.4vh), 2.1rem); min-height: 0; max-width: 34ch; }
  .ms-title.is-long { font-size: clamp(1.1rem, min(1.6vw, 3.2vh), 1.5rem); }
  .ms-sub { display: block; font-size: 0.95rem; }
  .ms-btn { font-size: 0.88rem; padding: 10px 18px; margin-top: 14px; }
  .ms-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: auto; padding-top: 18px; }
  .ms-card { padding: 11px 13px; }
  .ms-card b { font-size: 0.85rem; }
  .ms-card span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ms-card:nth-child(3) { display: block; }
  .hero-panel-label { font-size: clamp(1.3rem, 1.8vw, 1.6rem); margin-bottom: 6px; }
  .hero-panel-hint { font-size: 0.95rem; margin-bottom: 12px; }
  .hero-panel-input { min-height: 56px; font-size: 1.1rem; }
  .hero-panel-status { font-size: 0.95rem; }

  .hero-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: clamp(32px, 4vw, 64px);
  }
  .hero-title { grid-column: 1 / -1; font-size: clamp(2.6rem, 4.4vw, 4.2rem); }
  .hero-who { grid-column: 1 / -1; }
  .hero-sub { margin-bottom: 0; }
  .hero-cta { flex-wrap: nowrap; }
  .hero-scrim { background: linear-gradient(0deg, rgba(4, 6, 11, 0.94) 0%, rgba(4, 6, 11, 0.5) 24%, rgba(4, 6, 11, 0) 42%); }
}
/* Niedrige Notebook-Fenster (1920×1080 mit 125/150 % Skalierung): Unterzeile der Mini-Seite weg */
@media (min-width: 1024px) and (max-height: 860px) {
  .ms-sub { display: none; }
}
@media (min-width: 1024px) and (max-height: 640px) {
  .ms-cards { display: none; }
}
/* Handys hochkant: kompakt, damit Mini-Seite, Namensfeld, Headline, Namen und Button in den ersten Bildschirm passen.
   Die Kacheln der Mini-Seite fallen am Handy immer weg (Jonas, 28.10.2026: Hauptbutton auch bei 360×640 voll sichtbar). */
@media (max-width: 560px) {
  .ms-cards { display: none; }
  .hero { padding-top: calc(var(--nav-h) + 6px); }
  .hero-stage { gap: 12px; padding-bottom: 14px; }
  .hero-copy { padding-bottom: clamp(16px, 3vh, 28px); }
  .hero-title { font-size: clamp(1.75rem, 7.6vw, 2rem); line-height: 1.04; margin-bottom: 0.3em; }
  .hero-who { font-size: 0.95rem; line-height: 1.4; margin-bottom: 0.6em; }
  .hero-sub { font-size: 0.92rem; line-height: 1.42; margin-bottom: 0.9em; }
  .hero-cta { gap: 10px; }
}
@media (max-width: 560px) and (max-height: 700px), (orientation: landscape) and (max-height: 400px) and (max-width: 1023px) {
  .hero-cta .btn-ghost { display: none; }
}
/* Kurze Handys: Unterzeile weg, damit der Button im ersten Bildschirm bleibt */
@media (max-width: 560px) and (max-height: 760px) {
  .hero-sub { display: none; }
}
/* Sehr kurze Handys (360×640, iPhone mit Safari-Leisten): auch der Knopf der Mini-Seite fällt weg */
@media (max-width: 560px) and (max-height: 700px) {
  .ms-btn { display: none; }
}
/* Handys (hochkant und quer): Namen und Nummer in zwei kurzen Zeilen */
@media (max-width: 560px), (orientation: landscape) and (max-height: 500px) and (max-width: 1023px) {
  .hero-who-sep { display: none; }
  .hero-who-tel { display: block; }
}
/* Handys quer: Mini-Seite und Namensfeld nebeneinander, der Text darunter (der Hero wird höher als der Bildschirm) */
@media (orientation: landscape) and (max-height: 500px) and (max-width: 1023px) {
  .hero-stage { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; column-gap: 24px; }
  .hero-title { font-size: 1.6rem; line-height: 1.04; margin-bottom: 0.3em; }
  .hero-who { font-size: 0.85rem; line-height: 1.35; margin-bottom: 0.55em; }
  .hero-sub { font-size: 0.85rem; line-height: 1.38; margin-bottom: 0.8em; }
  .hero .hero-cta { gap: 10px; }
  .hero .hero-cta .btn { flex: 0 0 auto; }
}

/* ------------------------------------------------------------
   Sektionen
   ------------------------------------------------------------ */
/* Rhythmus (28.10.2026): weniger Leerlauf zwischen den Abschnitten, Ablauf und Schnellcheck dichter */
.section { padding-block: clamp(64px, 8vw, 112px); }
#ablauf, #schnellcheck { padding-block: clamp(56px, 6vw, 88px); }
.section-alt { background: linear-gradient(180deg, var(--bg1), var(--bg0)); }
/* Abschnitte außerhalb des Bildschirms erst rendern, wenn sie gebraucht werden (nicht beim Sticky-Stapel) */
#ueber-uns, #showroom, #schnellcheck, #auf-anfrage, #ablauf, #pakete, #kontakt, .footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 1000px;
}
/* Bei der ersten Sprungmarke alles rendern, damit das Ziel an der richtigen Stelle liegt */
html.cv-off :is(#ueber-uns, #showroom, #schnellcheck, #auf-anfrage, #ablauf, #pakete, #kontakt, .footer) { content-visibility: visible; }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2, .voice-copy h2, .contact-copy h2, .about-copy h2 {
  font-size: clamp(1.75rem, 3.8vw, 2.9rem);
}
.section-lead { color: var(--dim); font-size: 1.06rem; max-width: 62ch; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-hi);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.tri {
  flex: none;
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 8px solid var(--accent-hi);
}

/* Status-Pille: Text + Symbol + Farbe (nie nur Farbe) */
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 12px 4px 10px;
  margin-bottom: 16px;
  border: 1px solid currentColor;
}
.status-ico { font-size: 0.9em; line-height: 1; }
/* Doppelte Klasse, damit `.cell p` (Farbe --dim) die Statusfarbe nicht überschreibt */
.status.status-ok { color: var(--ok); background: rgba(79, 209, 151, 0.08); }
.status.status-soon { color: var(--warn); background: rgba(239, 189, 85, 0.08); }
.status.status-ask { color: var(--accent-hi); background: rgba(91, 136, 255, 0.08); }

/* Häkchen-Liste (frei von Karten) */
.tick-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}
.tick-list li {
  position: relative;
  padding-left: 26px;
  color: var(--dim);
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 9px solid var(--accent-hi);
}

/* ------------------------------------------------------------
   Leistungen: Webseiten groß als Hauptsache (das, was es fest gibt),
   die Leistungen auf Anfrage ruhig und kompakt darunter (28.10.2026).
   ------------------------------------------------------------ */
.svc-web {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  background: linear-gradient(180deg, var(--bg2), var(--bg1));
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: clamp(24px, 4vw, 56px);
}
.svc-web h3 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin-bottom: 0.25em; }
.svc-web-copy > p:last-child { color: var(--dim); max-width: 46ch; margin: 0; font-size: 1.04rem; }
.svc-links { display: flex; flex-wrap: wrap; gap: 0 28px; margin: 10px 0 0; }
.svc-links .card-link { margin-top: 0; }
.svc-ask { margin-top: clamp(36px, 4.5vw, 56px); }
.svc-ask-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); }
.svc-ask-item h3 { font-size: 1.22rem; margin-bottom: 0.45em; }
.svc-ask-item p { color: var(--dim); font-size: 0.95rem; margin-bottom: 0.8em; max-width: 52ch; }
.svc-ask-item .card-link { margin-top: 8px; }
.cell-note { color: var(--dim); font-size: 0.92rem; max-width: 72ch; margin: clamp(18px, 2.5vw, 26px) 0 0; }
.cell-list { list-style: none; display: grid; gap: 6px; margin: 0 0 6px; }
.cell-list li { color: var(--ink); padding-left: 22px; position: relative; font-size: 0.97rem; }
.cell-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
/* Beispiele für Leistungen auf Anfrage: kein Häkchen (das hieße „enthalten“), nur ein ruhiger Strich */
.svc-ask-item .cell-list li { color: var(--dim); font-size: 0.93rem; }
.svc-ask-item .cell-list li::before { content: ""; top: 0.8em; width: 9px; height: 2px; background: var(--line-strong); }
/* Automatisierung: kleiner Ablauf aus drei Stationen, ein Impuls läuft durch (Bewegung = Bedeutung) */
.cell-flow {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 8px;
  max-width: 420px;
  margin: 18px 0 6px;
  pointer-events: none;
}
.cf-node {
  font-size: 0.8rem;
  color: var(--dim);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctl);
  padding: 8px 11px;
  text-align: center;
  background: rgba(4, 6, 11, 0.6);
  line-height: 1.35;
}
.cf-hub { color: var(--ink); border-color: var(--accent-hi); }
.cf-link { position: relative; height: 1px; background: var(--line-strong); overflow: hidden; }
.cf-link i { position: absolute; top: -1px; left: -30%; width: 30%; height: 3px; border-radius: 2px; background: var(--accent-hi); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .cf-link i { animation: flow 2.4s var(--ease-out) infinite; }
  .cf-link + .cf-hub + .cf-link i { animation-delay: 1.2s; }
  @keyframes flow { 0% { left: -30%; opacity: 1; } 60% { left: 100%; opacity: 1; } 100% { left: 100%; opacity: 0; } }
}
.card-link {
  display: inline-block;
  margin-top: 18px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-hi);
  padding-block: 6px;
}
.card-link span { display: inline-block; transition: transform 0.2s; }
.card-link:hover span { transform: translateX(4px); }

/* ------------------------------------------------------------
   Showroom
   ------------------------------------------------------------ */
.showroom {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(24px, 3.5vw, 56px);
  align-items: start;
}
.showroom > *, .voice-grid > *, .contact-grid > *, .rep-demo > *, .about > * { min-width: 0; }
.control-group { border: 0; padding: 0; margin: 0 0 26px; }
.control-group legend, .chip-field legend {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 12px;
  padding: 0;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dim);
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  min-height: 40px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.chip-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.chip-btn[aria-checked="true"] { color: #fff; background: var(--accent); border-color: var(--accent); }
/* Farbkreise ohne eigenen Rand: Der halbdurchsichtige Rand lag über dem Verlauf, die helle Hälfte schien durch
   und sah aus wie ein weißer, nicht gefüllter Ring. Jetzt ein feiner Ring außerhalb, Auswahl als Ring mit Abstand. */
.swatch {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: var(--sw);
  box-shadow: 0 0 0 1px rgba(148, 163, 190, 0.28);
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.2s;
}
.swatch:hover { transform: scale(1.08); box-shadow: 0 0 0 1px rgba(148, 163, 190, 0.6); }
.swatch[aria-checked="true"] { transform: scale(1.08); box-shadow: 0 0 0 3px var(--bg0), 0 0 0 5px var(--ink); }
.show-note { color: var(--dim); font-size: 0.92rem; }

.preview-shell {
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  overflow: hidden;
  background: var(--bg1);
}
.preview-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.preview-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.preview-url {
  margin-left: 10px;
  color: var(--dim);
  background: var(--bg2);
  border-radius: 6px;
  padding: 3px 12px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Vorschau-Innenwelt: eigene Farbvariablen pro Farbwelt */
.preview {
  --p: #1d6ae5;
  --pv-bg: #fff;
  --pv-card: #eef4fd;
  --pv-ink: #0f1c33;
  --pv-dim: #54627d;
  position: relative;
  overflow: hidden;
  background: var(--pv-bg);
  color: var(--pv-ink);
  padding: 22px 26px 0;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  transition: background 0.4s;
}
.preview.switching .pv-hero, .preview.switching .pv-cards { animation: pv-in 0.5s var(--ease-out); }
@keyframes pv-in { from { opacity: 0; transform: translateY(10px); } }
.pv-nav { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; }
.pv-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.95rem; }
.pv-logo i {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--pv-on, #fff);
  background: var(--p);
  border-radius: 6px;
  width: 24px; height: 24px;
  display: grid;
  place-items: center;
}
.pv-nav-cta { font-size: 0.78rem; font-weight: 700; color: var(--p); border: 1.5px solid var(--p); border-radius: 999px; padding: 5px 13px; }
.pv-hero { padding: 26px 0 22px; }
.pv-badge { display: inline-block; font-size: 0.75rem; font-weight: 700; color: var(--p); background: var(--pv-card); border-radius: 999px; padding: 4px 11px; margin-bottom: 12px; }
.pv-title { font-family: var(--font-body); font-weight: 700; font-size: 1.45rem; line-height: 1.2; margin: 0 0 8px; max-width: 24ch; }
.pv-sub { color: var(--pv-dim); font-size: 0.92rem; margin: 0 0 16px; max-width: 42ch; }
.pv-btn { display: inline-block; background: var(--p); color: var(--pv-on, #fff); font-size: 0.85rem; font-weight: 700; border-radius: 8px; padding: 10px 20px; }
.pv-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pv-card { background: var(--pv-card); border-radius: 10px; padding: 14px; font-size: 0.8rem; }
.pv-card b { display: block; margin-bottom: 4px; font-size: 0.85rem; }
.pv-card span { color: var(--pv-dim); }
.pv-footer { margin-top: auto; display: flex; justify-content: space-between; color: var(--pv-dim); font-size: 0.75rem; padding: 18px 0 16px; }
.preview.style-rund .pv-btn, .preview.style-rund .pv-badge { border-radius: 999px; }
.preview.style-rund .pv-card { border-radius: 18px; }
.preview.style-rund .pv-logo i { border-radius: 50%; }
.preview.style-minimal .pv-btn { border-radius: 4px; }
.preview.style-minimal .pv-card { border-radius: 4px; background: transparent; border: 1px solid color-mix(in srgb, var(--pv-dim) 28%, transparent); }
.preview.style-minimal .pv-badge { background: transparent; padding-inline: 0; }
.preview.style-elegant .pv-title { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: 0.01em; }
.preview.style-elegant .pv-badge { background: transparent; border-bottom: 1px solid var(--p); border-radius: 0; padding-inline: 0; }
.preview.style-elegant .pv-btn { border-radius: 0; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.75rem; }
.preview.style-elegant .pv-card { background: transparent; border-top: 1px solid color-mix(in srgb, var(--pv-dim) 30%, transparent); border-radius: 0; }
.pv-splash {
  position: absolute;
  z-index: 5;
  border-radius: 50%;
  pointer-events: none;
  transform: scale(0);
  opacity: 0.32;
  animation: pv-splash 0.7s var(--ease-out) forwards;
}
@keyframes pv-splash { to { transform: scale(1); opacity: 0; } }

/* ------------------------------------------------------------
   Schnellcheck
   ------------------------------------------------------------ */
.checker-label { display: block; font-weight: 700; margin-bottom: 8px; }
.checker-row { display: flex; align-items: stretch; gap: 10px; }
.checker-prefix {
  display: flex;
  align-items: center;
  color: var(--dim);
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  padding-inline: 12px;
}
#check-domain {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  background: var(--bg1);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctl);
  color: var(--ink);
  font: inherit;
  padding: 12px 16px;
}
#check-domain::placeholder { color: #7d8aa1; }
.field-help { color: var(--dim); font-size: 0.86rem; margin: 8px 0 0; }
.field-error { color: var(--bad); font-size: 0.9rem; font-weight: 500; margin: 8px 0 0; }

.check-stage { margin-top: 28px; }
.check-list {
  list-style: none;
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: 8px 0;
}
.check-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: baseline;
  padding: 12px 22px;
}
.check-row + .check-row { border-top: 1px solid var(--line); }
.check-ico { font-weight: 600; text-align: center; }
.check-label { font-weight: 700; }
.check-value { font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink); text-align: right; overflow-wrap: anywhere; }
.check-text { grid-column: 2 / -1; color: var(--dim); font-size: 0.9rem; margin: 0; }
/* Neutral, ohne Ampelfarben: Farbe darf hier kein Urteil transportieren */
.check-row.ja .check-ico { color: var(--ink); }
.check-row.nein .check-ico, .check-row.info .check-ico { color: var(--dim); }
.check-row.pending { color: var(--dim); }
.check-row.pending .check-label { font-weight: 500; }
@media (prefers-reduced-motion: no-preference) {
  .check-row.pending .check-ico { animation: blink 1s steps(2) infinite; }
  .check-row.enter { animation: row-in 0.35s var(--ease-out) both; }
}
@keyframes blink { 50% { opacity: 0.2; } }
@keyframes row-in { from { opacity: 0; transform: translateY(6px); } }
.check-foot { margin-top: 18px; }
.check-meta { color: var(--dim); margin-bottom: 8px; }
.check-read {
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: 18px 22px;
  margin-bottom: 20px;
}
.check-read h3 { font-size: 0.98rem; margin-bottom: 0.6em; }
.check-read p { color: var(--dim); font-size: 0.9rem; max-width: 72ch; margin-bottom: 0.7em; }
.check-read p:last-child { margin-bottom: 0; }
.check-offer { color: var(--ink); margin-bottom: 12px; }

/* ------------------------------------------------------------
   Telefon-KI
   ------------------------------------------------------------ */
.demo-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.demo-tab {
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dim);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 10px 20px;
  min-height: 44px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.demo-tab:hover { color: var(--ink); }
.demo-tab[aria-selected="true"] { color: #fff; background: var(--accent); }
.demo-panel > h3, .voice-copy h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
.rep-step h4 { font-family: var(--font-display); font-size: 1.05rem; margin: 0 0 0.4em; line-height: 1.2; }
.rep-ai .card-link { display: inline-block; margin-top: 14px; }
.voice-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.voice-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.demo-note { color: var(--dim); font-size: 0.88rem; margin-top: 14px; }
.phone {
  background: linear-gradient(180deg, var(--bg2), var(--bg1));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 14px;
  max-width: 380px;
  justify-self: center;
  width: 100%;
}
.phone-screen {
  background: var(--bg0);
  border-radius: 18px;
  padding: 18px;
  height: 500px;
  display: flex;
  flex-direction: column;
}
.call-head { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.call-name { font-family: var(--font-display); font-weight: 600; margin: 0; display: flex; align-items: center; gap: 10px; }
.call-tag { font-weight: 600; color: var(--warn); border: 1px solid currentColor; border-radius: 999px; padding: 1px 8px; font-size: 0.75rem; }
.call-status { color: var(--dim); margin: 4px 0 10px; }
.waveform { display: flex; gap: 4px; align-items: flex-end; height: 22px; }
.waveform span { width: 4px; height: 4px; border-radius: 2px; background: var(--accent-hi); opacity: 0.4; }
.waveform.active span { animation: wave 0.9s ease-in-out infinite alternate; opacity: 1; }
.waveform.active span:nth-child(2n) { animation-delay: 0.12s; }
.waveform.active span:nth-child(3n) { animation-delay: 0.24s; }
.waveform.active span:nth-child(4n) { animation-delay: 0.36s; }
@keyframes wave { from { height: 4px; } to { height: 20px; } }
@media (prefers-reduced-motion: reduce) {
  .waveform.active span { animation: none; height: 12px; }
}
.call-transcript {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  scrollbar-width: thin;
}
.call-empty { color: var(--dim); font-size: 0.9rem; margin: auto 0; text-align: center; }
.bubble { max-width: 88%; border-radius: 14px; padding: 10px 14px; font-size: 0.9rem; line-height: 1.45; }
.bubble .who { display: block; font-size: 0.75rem; letter-spacing: 0.1em; opacity: 0.75; margin-bottom: 4px; }
.bubble.ai { background: var(--bg2); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.caller { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble.result { align-self: stretch; max-width: none; background: transparent; border: 1px dashed var(--ok); color: var(--ink); font-size: 0.84rem; }
.bubble.result b { color: var(--ok); font-size: 0.75rem; letter-spacing: 0.08em; display: block; margin-bottom: 4px; }
.bubble.typing { display: flex; gap: 4px; align-items: center; background: var(--bg2); align-self: flex-start; border-bottom-left-radius: 4px; min-height: 34px; }
.bubble.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); animation: dot-pulse 1s ease-in-out infinite; }
.bubble.typing i:nth-child(2) { animation-delay: 0.15s; }
.bubble.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot-pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .phone-screen.ringing { animation: phone-ring 0.9s ease-in-out; }
  @keyframes phone-ring {
    0%, 70%, 100% { transform: none; }
    10%, 30%, 50% { transform: translateX(-3px) rotate(-0.5deg); }
    20%, 40%, 60% { transform: translateX(3px) rotate(0.5deg); }
  }
}

/* ------------------------------------------------------------
   Bewertungen
   ------------------------------------------------------------ */
.rep-flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin-bottom: clamp(36px, 5vw, 56px);
  counter-reset: rep;
}
.rep-step { position: relative; padding-top: 18px; border-top: 1px solid var(--line-strong); }
.rep-step::before {
  counter-increment: rep;
  content: counter(rep);
  position: absolute;
  top: -12px;
  left: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-hi);
  background: var(--bg0);
  padding-right: 10px;
}
.rep-step h3 { font-size: 1.12rem; }
.rep-step p { color: var(--dim); font-size: 0.95rem; margin: 0; }
.rep-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
  max-width: 1000px;
}
.review-card {
  background: linear-gradient(180deg, var(--bg2), var(--bg1));
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: 24px;
}
.review-tag {
  display: inline-block;
  color: var(--warn);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 12px;
}
.review-name { font-weight: 700; margin: 0 0 8px; }
.review-stars { color: var(--warn); letter-spacing: 0.1em; margin-left: 8px; }
.review-stars .off { font-style: normal; opacity: 0.25; }
.review-text { margin: 0; color: var(--dim); }
.rep-reply {
  margin-top: 16px;
  background: var(--bg1);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-hi);
  border-radius: var(--r-ctl);
  padding: 16px 18px;
}
.rep-reply-label { color: var(--accent-hi); margin: 0 0 6px; }
.rep-reply p:last-child { margin: 0; color: var(--ink); font-size: 0.95rem; }
.type-caret::after { content: "▌"; animation: caret 0.8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* ------------------------------------------------------------
   Ablauf (echte Reihenfolge, deshalb nummeriert)
   ------------------------------------------------------------ */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 32px);
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-hi), var(--line) 85%);
  transform-origin: 0 50%;
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .steps::before {
      animation: line-draw linear both;
      animation-timeline: view();
      animation-range: entry 20% cover 45%;
    }
    @keyframes line-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}
.step { position: relative; }
.step-n {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg0);
  border: 1px solid var(--accent-hi);
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 18px;
}
.step h3 { font-size: 1.12rem; }
.step p { color: var(--dim); font-size: 0.95rem; margin: 0; }

/* ------------------------------------------------------------
   Preise
   ------------------------------------------------------------ */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  align-items: stretch;
}
.price {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg2), var(--bg1));
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: clamp(22px, 2.5vw, 32px);
}
.price.featured { border-color: var(--accent-hi); box-shadow: 0 0 0 1px var(--accent-hi) inset; }
.price-flag {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 12px;
}
.price h3 { font-size: 1.35rem; margin-bottom: 0.3em; }
.price-for { color: var(--dim); font-size: 0.92rem; min-height: 3em; }
.price ul { list-style: none; display: grid; gap: 8px; margin: 0 0 22px; }
.price li { padding-left: 22px; position: relative; font-size: 0.94rem; }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.price .btn { margin-top: auto; }
/* Alle drei Karten haben dieselben Zeilen in derselben Reihenfolge (Treppe). Ab drei Spalten liegen die Zeilen
   per Subgrid auf einer Linie: Titel, Für-wen-Satz, sechs Listenzeilen, Knopf. Start und Handwerk lassen die
   sechste Zeile leer. Unter 1025 px stehen die Karten untereinander, ohne Subgrid normale Kartenansicht. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 1025px) {
    .price-grid { grid-template-rows: repeat(9, auto); row-gap: 0; }
    .price { display: grid; grid-template-rows: subgrid; grid-row: span 9; }
    .price h3, .price-for { margin-bottom: 0; }
    .price-for { min-height: 0; padding: 0.3em 0 1em; }
    .price ul { grid-template-rows: subgrid; grid-row: span 6; gap: 0; margin: 0; }
    .price li { padding-block: 5px; }
    .price .btn { align-self: end; margin-top: 18px; }
  }
}
.preview-shell { scroll-margin-top: calc(var(--nav-h) + 8px); }
/* Gemeinsame Zeile und B2B-Satz direkt unter den Karten, normale Schriftgröße */
.price-common { margin: clamp(20px, 2.5vw, 28px) 0 0; max-width: 80ch; }
.price-more {
  margin-top: clamp(24px, 3vw, 36px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.price-care {
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: clamp(20px, 2.5vw, 28px);
}
.price-care h3 { font-size: 1.12rem; }
.price-care p { color: var(--dim); margin: 0; }
.price-b2b {
  color: var(--ink);
  font-size: 1rem;
  border-left: 2px solid var(--accent-hi);
  padding-left: 14px;
  max-width: 80ch;
  margin: clamp(20px, 2.5vw, 28px) 0 0;
}
.price-notes { color: var(--dim); font-size: 0.88rem; }
/* Zahlung, Festpreis und Ausschlüsse: am Handy zugeklappt (app.js), am Desktop offen */
.price-notes summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  padding-block: 10px;
  margin-bottom: 4px;
}
.price-notes summary::marker { color: var(--accent-hi); }
.price-notes summary:hover { color: var(--accent-hi); }
.price-notes strong { color: var(--ink); }
.price-notes p { margin-bottom: 0.7em; }

/* ------------------------------------------------------------
   Über uns
   ------------------------------------------------------------ */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.about-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink); max-width: 40ch; }
.about-copy p:not(.about-lead) { color: var(--dim); max-width: 58ch; }
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 26px 0 22px; }
.person p strong { overflow-wrap: anywhere; }
.person { margin: 0; }
.portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-panel);
  border: 1px solid var(--line-strong);
  background: var(--bg2);
  display: grid;
  place-items: center;
  padding: 12px;
  text-align: center;
  overflow: hidden;
  margin-bottom: 12px;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.person p strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.person p span { display: block; color: var(--dim); font-size: 0.92rem; margin-top: 4px; }
.phone-line { color: var(--ink); font-size: 1.02rem; }
.phone-line a { font-weight: 700; white-space: nowrap; }
.uwdg-name { color: var(--dim); font-size: 0.92rem; }
.values { list-style: none; display: grid; gap: 26px; }
/* Belege statt Adjektive: die Überschrift ist die Tatsache, keine Akzentlinie */
.values h3 { font-size: 1.12rem; margin-bottom: 0.3em; }
.values p { color: var(--dim); margin: 0; font-size: 0.97rem; }

/* ------------------------------------------------------------
   Formular
   ------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.contact-form {
  background: linear-gradient(180deg, var(--bg2), var(--bg1));
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: clamp(22px, 3vw, 36px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.req { color: var(--accent-hi); }
.opt { color: var(--dim); font-weight: 400; }
.field input, .field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  background: var(--bg0);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctl);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  padding: 11px 14px;
  transition: border-color 0.2s;
}
.field input::placeholder { color: #7d8aa1; }
.field input:hover, .field textarea:hover { border-color: var(--dim); }
.field textarea { resize: vertical; min-height: 120px; }
.field .err { display: none; color: var(--bad); font-weight: 500; font-size: 0.86rem; margin: 6px 0 0; }
.field input:user-invalid, .field textarea:user-invalid,
.field input.user-invalid-fallback, .field textarea.user-invalid-fallback { border-color: var(--bad); }
.field input:user-invalid ~ .err, .field textarea:user-invalid ~ .err,
.field input.user-invalid-fallback ~ .err, .field textarea.user-invalid-fallback ~ .err { display: block; }
.chip-field { border: 0; padding: 0; margin: 4px 0 20px; }
.chip-field legend { font-family: var(--font-body); font-weight: 700; font-size: 0.92rem; margin-bottom: 10px; }
.chip-check { display: inline-block; margin: 0; position: relative; }
.chip-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-check span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dim);
  background: var(--bg0);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 15px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.chip-check span:hover { color: var(--ink); }
.chip-check input:checked + span { color: #fff; background: var(--accent); border-color: var(--accent); }
.chip-check input:focus-visible + span { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.day-chips .chip-check span { flex-direction: column; line-height: 1.15; padding: 7px 12px; min-width: 64px; }
.day-chips .chip-check small { font-size: 0.75rem; opacity: 0.85; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.vormerk {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctl);
  padding: 12px 14px;
  margin: -6px 0 20px;
}
.vormerk input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.vormerk label { font-size: 0.9rem; color: var(--ink); cursor: pointer; }
.form-req { color: var(--dim); font-size: 0.84rem; margin: -6px 0 16px; }
.form-privacy { color: var(--dim); font-size: 0.86rem; }
.btn-submit { width: 100%; }
.form-status { margin-top: 14px; font-size: 0.95rem; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--ink); border: 1px solid color-mix(in srgb, var(--ok) 60%, transparent); border-radius: var(--r-ctl); padding: 14px 16px; }
.form-status.ok strong { color: var(--ok); display: block; font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 4px; }
.form-status.error { color: var(--bad); }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.footer { border-top: 1px solid var(--line); padding-block: 40px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 32px;
  align-items: start;
}
.footer-mark { height: 90px; width: auto; border-radius: 10px; border: 1px solid var(--line); }
.footer-brand p { color: var(--dim); font-size: 0.9rem; margin: 14px 0 0; max-width: 38ch; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { display: inline-flex; align-items: center; min-block-size: 44px; color: var(--dim); text-decoration: none; font-size: 0.92rem; padding-block: 8px; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { color: var(--dim); margin: 8px 0 0; }
.footer-meta p { margin: 8px 0 0; }
.footer-clean { color: var(--dim); font-size: 0.86rem; }

/* ------------------------------------------------------------
   Schnellmenü (natives <dialog>)
   ------------------------------------------------------------ */
.cmdk {
  width: min(560px, calc(100% - 32px));
  max-height: none;
  margin: 14vh auto auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}
.cmdk::backdrop { background: rgba(4, 6, 11, 0.7); backdrop-filter: blur(6px); }
.cmdk-panel {
  background: var(--bg1);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-panel);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
@media (prefers-reduced-motion: no-preference) {
  .cmdk[open] .cmdk-panel { animation: cmdk-in 0.22s var(--ease-out); }
  @keyframes cmdk-in { from { opacity: 0; transform: translateY(-8px) scale(0.98); } }
}
.cmdk-input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  font-size: 1.02rem;
  padding: 18px 22px;
}
.cmdk-input:focus { outline: none; }
.cmdk-list { list-style: none; padding: 8px; max-height: 320px; overflow-y: auto; }
.cmdk-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--r-ctl); cursor: pointer; font-size: 0.94rem; }
.cmdk-item .ico { color: var(--accent-hi); width: 18px; text-align: center; }
.cmdk-item .hint { margin-left: auto; font-size: 0.75rem; letter-spacing: 0.08em; color: var(--dim); }
.cmdk-item.sel { background: var(--bg3); }
.cmdk-empty { color: var(--dim); padding: 14px; font-size: 0.92rem; }
.cmdk-hint { display: flex; gap: 16px; flex-wrap: wrap; color: var(--dim); border-top: 1px solid var(--line); margin: 0; padding: 10px 22px; }

/* ------------------------------------------------------------
   Toast + Konfetti
   ------------------------------------------------------------ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  z-index: var(--z-toast);
  background: var(--bg2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.confetti { position: fixed; inset: 0; z-index: var(--z-confetti); pointer-events: none; width: 100vw; height: 100vh; }

/* ------------------------------------------------------------
   Scroll-Reveals und Scroll-Effekte
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  }
  html.js .reveal.delay-1 { transition-delay: 0.1s; }
  html.js .reveal.in { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------
   Unterseiten (Impressum, Datenschutz, 404, Danke)
   ------------------------------------------------------------ */
.subpage .nav { background: rgba(4, 6, 11, 0.86); border-color: var(--line); backdrop-filter: blur(14px); }
.subpage-main { padding: calc(var(--nav-h) + clamp(40px, 7vw, 80px)) 0 clamp(72px, 10vw, 120px); }
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(1.7rem, 6vw, 3rem); margin-bottom: 0.7em; overflow-wrap: anywhere; hyphens: auto; }
.legal h1.chrome { margin-bottom: 0.46em; }
.legal h2 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); margin: 2em 0 0.5em; }
.legal h3 { font-size: 1.08rem; margin: 1.5em 0 0.4em; }
/* Danke-Seite: was nach der Anfrage passiert (echte Reihenfolge, deshalb nummeriert) */
.next-steps { padding-left: 1.4em; display: grid; gap: 8px; margin: 0 0 1.4em; color: var(--dim); }
.next-steps li::marker { color: var(--accent-hi); font-weight: 700; }
.legal p, .legal li, .legal address, .legal dd { color: var(--dim); }
.legal strong { color: var(--ink); }
.legal address { font-style: normal; margin-bottom: 1em; }
.legal a { word-break: break-word; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: 0.5em; }
.legal .box { border: 1px solid var(--line); border-radius: var(--r-panel); padding: 18px 22px; margin: 1.5em 0; }
.legal .box h2, .legal .box h3 { margin-top: 0; }
.legal .intro { color: var(--ink); font-size: 1.06rem; }
.legal ul.glance {
  list-style: none;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  display: grid;
  gap: 6px;
}
.legal ul.glance li { margin: 0; }
.legal .objection {
  border: 1px solid var(--accent-hi);
  border-radius: var(--r-panel);
  padding: 4px 22px 18px;
  margin: 2em 0;
}
.legal .objection h2 { margin-top: 0.9em; }
.legal .stand { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; margin-top: 3em; }
.legal mark.ph, mark.ph { background: #5a4310; color: #ffe6a8; padding: 0 4px; border-radius: 4px; }
.back-row { margin-top: 2.4em; }

.notfound { min-height: 100dvh; display: grid; align-content: center; position: relative; overflow: hidden; }
.notfound canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.notfound .container { position: relative; z-index: 2; }
.notfound h1 { font-size: clamp(2.2rem, 5.6vw, 4rem); }
.notfound p { color: var(--dim); max-width: 46ch; font-size: 1.08rem; }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 1100px) {
  .nav-links { gap: 18px; }
}
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .steps::before { display: none; }
  .price-grid { grid-template-columns: 1fr; max-width: 560px; }
  .price-more { grid-template-columns: minmax(0, 1fr); }
  .price-for { min-height: 0; }
}
@media (max-width: 900px) {
  .showroom, .voice-grid, .contact-grid, .rep-demo, .about { grid-template-columns: 1fr; }
  .rep-flow { grid-template-columns: 1fr; row-gap: 32px; }
  .svc-web, .svc-ask-grid { grid-template-columns: 1fr; }
  .svc-web { align-items: start; }
  .cell-flow { display: none; }
}
@media (max-width: 860px) {
  .nav-links, .nav-actions { display: none; }
  .nav-burger { display: block; margin-left: auto; }
  .nav-mobile:not([hidden]) { display: flex; }
  .nav-inner { gap: 12px; }
  /* Nach dem Hero: „Erstgespräch anfragen“ in der Kopfleiste (app.js setzt .past-hero) */
  .nav.past-hero .nav-actions { display: flex; margin-left: auto; }
  .nav.past-hero .nav-burger { margin-left: 0; }
  .nav.past-hero .nav-actions .btn { min-height: 40px; padding: 8px 12px; font-size: 0.8rem; }
  /* Kontakt: Anrufen als echter Knopf */
  .btn-call { display: flex; width: 100%; margin: 4px 0 24px; }
}
@media (max-width: 400px) {
  .nav.past-hero .nav-brand img { height: 28px; }
}
/* Sehr schmale Handys (320 px): kein Platz neben Logo und Menü, dort bleibt es beim Menü */
@media (max-width: 340px) {
  .nav.past-hero .nav-actions { display: none; }
  .nav.past-hero .nav-burger { margin-left: auto; }
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 18px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .people { gap: 12px; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .checker-row { flex-wrap: wrap; }
  .checker-prefix { display: none; }
  .checker-row .btn { width: 100%; }
  .check-row { grid-template-columns: 22px minmax(0, 1fr); padding: 12px 16px; }
  .check-value { grid-column: 2; text-align: left; }
  .pv-cards { grid-template-columns: 1fr; }
  .preview { padding: 16px 18px 0; min-height: 0; }
  .steps { grid-template-columns: 1fr; }
  .phone-screen { height: 460px; }
}

/* Unterseiten: Kopf ohne Menü, Button immer sichtbar */
.sub-actions { margin-left: auto; }
@media (max-width: 860px) {
  .nav-actions.sub-actions { display: flex; }
}

/* Wechselnde Partikel-Wörter (UWDG, WEB, KI, CHIEMGAU, Dreieck) im Kontaktbereich links unter den Kontaktwegen.
   Nur ab Desktop: Am Handy stünden sie zwischen Kontaktwegen und Formular und würden das Formular nach unten schieben. */
.word-stage { display: none; position: relative; }
.word-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (min-width: 1024px) {
  .word-stage { display: block; }
  .word-stage-kontakt { height: 170px; margin-top: 40px; max-width: 440px; }
}
