/* ================================================================
   PFISTERER CONSULTING — v8 „Veredelung“
   Schicht ÜBER relaunch.css. Nur Ergänzungen aus PLAN-V8
   Abschnitt 4; Typo- und Layout-Overrides aus v7 entfallen.
   ================================================================ */

/* ---------------------------------------------------------------
   BEWEGUNGSSCHALTER (Header) — Zustand an html[data-motion]
   --------------------------------------------------------------- */
.motion-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 10px;
  font: 600 13px/1 var(--sans);
  color: var(--sub);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: color 160ms var(--ease-out), background 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.motion-toggle:hover { color: var(--ink); background: var(--soft); border-color: var(--line); }
.motion-toggle:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
.motion-toggle svg { width: 15px; height: 15px; flex: none; fill: currentColor; }
.motion-toggle-text { white-space: nowrap; }
.motion-toggle .icon-play { display: none; }
html[data-motion="paused"] .motion-toggle { color: var(--acc); }
html[data-motion="paused"] .motion-toggle .icon-pause { display: none; }
html[data-motion="paused"] .motion-toggle .icon-play { display: block; }

/* Sieben Navigationspunkte seit „KI & Software“ (PLAN-V8-KI 3.5): unterhalb
   1400 px trägt der Schalter nur noch sein Symbol, die Paddings sind enger,
   damit Kopfzeile und Aktionen einzeilig bleiben. */
/* Kopfzeile trägt seit „KI & Software“ sieben Punkte: 8 px Padding je Seite
   statt 10 px, damit die Zeile auch bei 1440 px einzeilig bleibt. */
.main-nav .nav-link,
.main-nav .nav-sub-toggle { padding-left: 8px; padding-right: 8px; }

@media (min-width: 1025px) and (max-width: 1200px) {
  .logo { font-size: 15px; }
  .main-nav { gap: 0; }
  .main-nav .nav-link,
  .main-nav .nav-sub-toggle { padding-left: 4px; padding-right: 4px; font-size: 13px; }
  /* CTA in Kurzform: die Sprachumschaltung bleibt sichtbar und bedienbar. */
  .header-cta .cta-long { display: none; }
  .header-cta .cta-short { display: inline; }
}

@media (max-width: 1500px) {
  .motion-toggle { min-width: 44px; min-height: 44px; padding: 0; }
  .motion-toggle-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

@media (max-width: 520px) {
  .header-actions { gap: 4px; margin-left: 0; }
  .header-actions .lang-switch { display: none; }
  .logo { font-size: 15px; }
  .motion-toggle { min-width: 40px; }
  .header-actions .header-cta { padding-inline: 8px; font-size: 13px; }
}
@media (max-width: 360px) {
  .header-actions .header-cta { display: none; }
}

/* ---------------------------------------------------------------
   HERO 4.1 — „René im Datenglobus“ (Text links, quadratische Bühne rechts)
   --------------------------------------------------------------- */
.hero-bleed {
  background-color: var(--bg);
  background-image: radial-gradient(rgba(17, 24, 32, 0.05) 1.15px, transparent 1.15px);
  background-size: 16px 16px;
}

.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 400px);
  gap: 36px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

/* H1 in der linken Spalte: max. 3 Zeilen bei 1440 px, überlappt nie die Bühne.
   René-Entscheidung 2026-10-27: kleine H1 bleibt, so groß wie mit 3 Zeilen möglich. */
.hero-copy h1 {
  font-size: clamp(2.1rem, 2.4vw, 2.25rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  max-width: none;
  text-wrap: balance;
}

/* Lead: 17–18 px in --sub, damit die H1 die Hierarchie trägt. */
.hero-copy .sub {
  font-size: clamp(1.0625rem, 1.2vw, 1.125rem);
  line-height: 1.6;
  color: var(--sub);
}

.hero-stage {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 1 / 1;
}

/* Blueprint-Rahmen: vier 12-px-Eckwinkel in --line-strong (b-product §5) */
.stage-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
  z-index: 3;
}
.stage-corner--tl {
  top: 0;
  left: 0;
  border-top: 1.5px solid var(--line-strong);
  border-left: 1.5px solid var(--line-strong);
}
.stage-corner--tr {
  top: 0;
  right: 0;
  border-top: 1.5px solid var(--line-strong);
  border-right: 1.5px solid var(--line-strong);
}
.stage-corner--bl {
  bottom: 0;
  left: 0;
  border-bottom: 1.5px solid var(--line-strong);
  border-left: 1.5px solid var(--line-strong);
}
.stage-corner--br {
  bottom: 0;
  right: 0;
  border-bottom: 1.5px solid var(--line-strong);
  border-right: 1.5px solid var(--line-strong);
}

/* Bühne und Poster (CLS 0) */
.stage {
  position: relative;
  margin: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  background: transparent;
  overflow: clip;
}

.stage-poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: opacity 180ms var(--ease-out);
}

.stage-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: clip;
}

/* KI-Badge unten rechts an der Bühne */
.hero-stage .ai-badge {
  right: 10px;
  bottom: 10px;
  z-index: 3;
}

@media (min-width: 1025px) {
  .hero { padding: 48px 0 44px; }
  .hero .svc { margin-top: 32px; }
}

@media (max-width: 900px) {
  .hero-bleed { padding-bottom: 0; }
  .hero { padding: 28px 0 32px; }
  .hero-main {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .hero-stage {
    order: -1;
    max-width: 360px;
    margin-inline: auto;
  }
  .hero-stage .ai-badge {
    right: 8px;
    bottom: 8px;
  }
  .hero-copy h1 {
    font-size: clamp(1.75rem, 7vw, 2rem);
    text-wrap: wrap;
  }
}

@media (max-width: 360px) {
  .hero-copy h1 {
    font-size: clamp(1.45rem, 7vw, 1.7rem);
  }
}

/* ---------------------------------------------------------------
   TEXT-REVEAL 4.1 — H1 zeilenweise (0.8s, 70ms Staffel) + Sub/CTAs (0.4s)
   --------------------------------------------------------------- */
.hero h1 {
  animation: none;
}

.reveal-probe {
  display: inline-block;
}

.reveal-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

.reveal-line {
  display: block;
  animation: v8-line-reveal 800ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.reveal-line--0 { animation-delay: 0ms; }
.reveal-line--1 { animation-delay: 70ms; }
.reveal-line--2 { animation-delay: 140ms; }
.reveal-line--3 { animation-delay: 210ms; }
.reveal-line--4 { animation-delay: 280ms; }
.reveal-line--5 { animation-delay: 350ms; }

.reveal-line.is-revealed {
  animation: none;
  transform: none;
}

.hero .sub {
  animation: v8-sub-reveal 400ms cubic-bezier(0.16, 1, 0.3, 1) 220ms both;
}
.hero .ctas {
  animation: v8-sub-reveal 400ms cubic-bezier(0.16, 1, 0.3, 1) 300ms both;
}
.hero .svc {
  animation: v8-sub-reveal 400ms cubic-bezier(0.16, 1, 0.3, 1) 360ms both;
}

@keyframes v8-line-reveal {
  from { transform: translateY(105%); }
  to { transform: translateY(0); }
}

@keyframes v8-sub-reveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------------------------------
   REDUCED MOTION & BEWEGUNGSSCHALTER PAUSIERT — alles sofort statisch
   --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .reveal-line,
  .hero h1,
  .hero .sub,
  .hero .ctas,
  .hero .svc,
  .proof .p {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

html[data-motion="paused"] .reveal-line,
html[data-motion="paused"] .hero h1,
html[data-motion="paused"] .hero .sub,
html[data-motion="paused"] .hero .ctas,
html[data-motion="paused"] .hero .svc,
html[data-motion="paused"] .proof .p {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

html[data-poster-capture],
html[data-poster-capture] body,
html[data-poster-capture] .hero-bleed {
  background: transparent !important;
}
html[data-poster-capture] .ai-badge,
html[data-poster-capture] .stage-corner {
  display: none !important;
}

/* ===== Phase 2 W2-A ===== */
/* Feste Punktwolken-Ebene; ihre transparente Fläche sitzt zwischen Seitenweiß und Text. */
.cloud-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  overflow: hidden;
  pointer-events: none;
}

.cloud-stage .stage-poster {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .cloud-stage .stage-poster { opacity: 0.7; }
}
html[data-motion="paused"] .cloud-stage .stage-poster { opacity: 0.7; }

.stage-canvas {
  z-index: 1 !important;
}

#content > .wrap,
#content > .person,
#content > .close > .wrap {
  position: relative;
  z-index: 2;
}

/* Datenwolke: feste Slots in der freien Spalte, nie im Seitenrand. */
.aside-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.cloud-slot {
  position: relative;
  width: 320px;
  height: 320px;
  max-width: 100%;
  align-self: flex-end;
  pointer-events: none;
}
/* Beschriftung liegt absolut unter dem Kasten: das Mess-Rect bleibt 320 × 320,
   sonst schrumpft die Form (place() rechnet mit r.width/2 - 12). */
.cloud-slot__label {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 10px;
  max-width: 320px;
  font: 500 11px/1.3 var(--mono);
  letter-spacing: 0.04em;
  color: var(--muted);
}
@media (max-width: 900px) {
  .cloud-slot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
}


/* ===== Phase 2 W2-B ===== */
/* ================================================================
   v8 Phase 2 W2-B — Wireframe-Objekte + Leistungen-Sticky
   ================================================================ */

/* Allgemeine Wireframe-Stage */
.stage--wire {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wire-poster,
.wire-card-svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* Zweispaltige Sticky-Strecke auf /leistungen/ (PLAN-V8 4.5, c-dopamine §2.3) */
body:has([data-leistungen-track]) #content > .wrap {
  z-index: auto;
}

body:has([data-leistungen-track]) section.close {
  position: relative;
  z-index: 2;
}

.leistungen-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  gap: 36px;
  align-items: start;
  padding: 26px 0 56px;
}

.leistungen-track .line-cards {
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 0;
  min-width: 0;
}

.leistungen-track .line-card {
  padding-right: 76px;
}

.leistungen-track .line-card.is-active {
  border-color: var(--acc);
  box-shadow: inset 3px 0 0 var(--acc), var(--shadow-card);
}

/* Kleines Wireframe-Abzeichen in der Karte (Desktop rechts unten, Mobil unter dem Text) */
.line-card-wire {
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 48px;
  height: 48px;
  pointer-events: none;
  opacity: 0.82;
  transition: opacity 250ms cubic-bezier(.22, 1, .36, 1);
}

.line-card:hover .line-card-wire,
.line-card.is-active .line-card-wire {
  opacity: 1;
}

/* Rechte Sticky-Spalte: keine Höhe über dem Inhalt hinaus, kein Leerscrollen */
.leistungen-stage-col {
  position: sticky;
  top: 96px;
  align-self: start;
  min-width: 0;
}

.leistungen-stage-sticky {
  display: flex;
  flex-direction: column;
}

.leistungen-stage-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: transparent;
  background-image: radial-gradient(rgba(17, 24, 32, 0.055) 1.15px, transparent 1.15px);
  background-size: 16px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: clip;
}

.leistungen-stage-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 4px 0;
}

.leistungen-stage-num {
  font: 600 12px/1.3 var(--mono);
  color: var(--acc);
  letter-spacing: 0.04em;
  flex: none;
}

.leistungen-stage-caption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.leistungen-stage-title {
  font: 650 14.5px/1.3 var(--sans);
  color: var(--ink);
}

.leistungen-stage-sub {
  font: 500 12.5px/1.35 var(--sans);
  color: var(--muted);
}

/* Feature-Block „Deep research“-Format (4.3: Text links, Wireframe-Objekt rechts, viel Luft) */
.wire-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 44px;
  align-items: center;
  padding: 36px 0;
}

.wire-feature-stage {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}

/* Mobil: keine Sticky-Strecke, Objekte unter den Karten */
@media (max-width: 900px) {
  .leistungen-track {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px 0 44px;
  }

  .leistungen-track .line-card {
    padding-right: 24px;
  }

  .line-card-wire {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    height: 156px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    background-image: radial-gradient(rgba(17, 24, 32, 0.045) 1.1px, transparent 1.1px);
    background-size: 14px 14px;
    border-radius: 0 0 6px 6px;
  }

  .line-card-wire .wire-card-svg {
    width: 132px;
    height: 132px;
  }

  .line-card-wire.has-live-stage .wire-card-svg {
    display: none;
  }

  .line-card-wire .stage--wire {
    width: 132px;
    height: 132px;
    max-width: 132px;
    max-height: 132px;
  }

  /* Vor dem Andocken aus dem Fluss nehmen, sonst verschiebt die volle Bühne den Inhalt (CLS). */
  .leistungen-stage-col {
    position: absolute;
    top: 0;
    left: -10000px;
    width: 132px;
    height: 132px;
    overflow: hidden;
  }

  .leistungen-stage-col:not(:has(figure.stage)) {
    display: none;
  }

  .wire-feature {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .wire-feature-stage {
    max-width: 240px;
  }
}

@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .leistungen-stage-col {
    display: none;
  }
}

@media (max-width: 900px) {
  html[data-motion="paused"] .leistungen-stage-col {
    display: none;
  }
}

/* ===== Phase 2 W2-C ===== */
/* v8 Phase 2 W2-C – Bewegungsebene */

/* Heading-Reveals starten erst, wenn das Element sichtbar wird. */
.has-line-reveal .reveal-line {
  animation: none;
  transform: translateY(105%);
}
.has-line-reveal.is-visible .reveal-line:not(.is-revealed) {
  animation: v8-line-reveal 800ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.has-line-reveal .reveal-line.is-revealed {
  animation: none;
  transform: none;
}

/* Wie v7: Scroll-Reveals nur über View-Timelines und nur ohne reduced-motion.
   REVIEW-K2 A3: Nicht die Section einblenden (bei hohen Sections wird ihr Kopf
   dadurch erst spät deckend), sondern Kopf und Blöcke je Element mit kurzer
   Range. Jede h2 ist damit nach ≤ 1 s im Bildschirm vollständig da. */
@keyframes v8-section-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    body:has(.stage) section:not(:has(.stage)) > :is(h2, h3),
    body:has(.stage) section:not(:has(.stage)) .prose > *,
    body:has(.stage) .proof .p,
    body:has(.stage) tbody tr {
      animation: v8-section-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
  }
}

/* Systeme-Laufband: das Partial enthält nur Text, die zweite Gruppe ist Deko. */
.systems-marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  color: var(--sub);
  font: 500 12px/1.2 var(--mono);
}
.systems-marquee-track {
  display: flex;
  width: max-content;
  animation: systems-marquee 150s linear infinite; /* Themen sind gut doppelt so lang wie die früheren Systemnamen: gleiches Tempo */
}
.systems-marquee-group {
  display: flex;
  flex: none;
  align-items: center;
  gap: 1.5rem;
  padding: 13px 1.5rem 13px 0;
  white-space: nowrap;
}
.systems-marquee-group span + span::before {
  content: '·';
  margin-right: 1.5rem;
  color: var(--acc);
}
.systems-marquee:hover .systems-marquee-track,
.systems-marquee:focus-within .systems-marquee-track {
  animation-play-state: paused;
}
@keyframes systems-marquee {
  to { transform: translateX(-50%); }
}

/* Karten und Navigationslinks */
.line-card,
.svc a,
.more-link {
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(.22, 1, .36, 1);
}
.line-card {
  position: relative;
  background-color: #fff;
  transition-property: background-color, border-color, box-shadow;
}
.line-card::after {
  content: '↗';
  position: absolute;
  top: 16px;
  right: 18px;
  color: var(--acc);
  opacity: .65;
  transition: transform 250ms cubic-bezier(.22, 1, .36, 1), opacity 250ms cubic-bezier(.22, 1, .36, 1);
}
.line-card:hover,
.line-card:focus-visible {
  background-color: var(--acc-tint);
}
.line-card:hover::after,
.line-card:focus-visible::after {
  opacity: 1;
  transform: translateX(4px);
}
.svc a {
  transition-property: background-color, box-shadow;
}
.svc a::after {
  transition: border-color 250ms cubic-bezier(.22, 1, .36, 1), transform 250ms cubic-bezier(.22, 1, .36, 1);
}
.svc a:hover::after,
.svc a:focus-visible::after,
.svc a[aria-current]::after {
  transform: translateX(4px) rotate(45deg);
}
.more-link {
  transition-property: color, transform;
}
.more-link:hover,
.more-link:focus-visible {
  transform: translateX(4px);
}

/* Wireframe-Renderer kann die Karte ohne zusätzliche JS-Hooks signalisieren. */
.line-card :is(.wireframe, .wire-object, .wireframe-object),
.svc a :is(.wireframe, .wire-object, .wireframe-object),
.more-link :is(.wireframe, .wire-object, .wireframe-object) {
  transition: transform 250ms cubic-bezier(.22, 1, .36, 1);
}
.line-card:hover :is(.wireframe, .wire-object, .wireframe-object),
.svc a:hover :is(.wireframe, .wire-object, .wireframe-object),
.more-link:hover :is(.wireframe, .wire-object, .wireframe-object) {
  transform: rotate(12deg);
}

/* Button-Füllung schiebt sich links ein; der Inhalt bleibt über dem Verlauf. */
.btn {
  --btn-fill: var(--acc-dark);
  --btn-hover-color: #fff;
  position: relative;
  isolation: isolate;
  transition: background 250ms cubic-bezier(.22, 1, .36, 1), border-color 250ms cubic-bezier(.22, 1, .36, 1), color 250ms cubic-bezier(.22, 1, .36, 1), transform 250ms cubic-bezier(.22, 1, .36, 1), box-shadow 250ms cubic-bezier(.22, 1, .36, 1);
}
.btn::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(var(--btn-fill), var(--btn-fill)) left center / 0 100% no-repeat;
  transition: background-size 250ms cubic-bezier(.22, 1, .36, 1);
}
.btn:hover::before,
.btn:focus-visible::before { background-size: 100% 100%; }
.btn:hover { background: var(--acc); color: var(--btn-hover-color); }
.btn.ghost,
.btn.btn-secondary,
.btn.btn-ghost {
  --btn-fill: var(--acc-tint);
  --btn-hover-color: var(--acc-dark);
}
.btn.ghost:hover,
.btn.btn-secondary:hover,
.btn.btn-ghost:hover { background: transparent; }
.btn.inverse,
.cta-section .btn {
  --btn-fill: var(--acc-tint);
  --btn-hover-color: var(--acc);
}
.btn.inverse:hover,
.cta-section .btn:hover { background: #fff; }
.btn.inverse-ghost,
.cta-section .btn.btn-secondary {
  --btn-fill: rgba(255, 255, 255, .1);
  --btn-hover-color: #fff;
}
.btn.inverse-ghost:hover,
.cta-section .btn.btn-secondary:hover { background: transparent; }
.btn:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }

/* Der Bewegungsschalter zeigt für bereits gestartete Reveals das Endbild. */
html[data-motion="paused"] .has-line-reveal .reveal-line,
html[data-motion="paused"] body:has(.stage) section:not(:has(.stage)) > :is(h2, h3),
html[data-motion="paused"] body:has(.stage) section:not(:has(.stage)) .prose > *,
html[data-motion="paused"] body:has(.stage) .proof .p,
html[data-motion="paused"] body:has(.stage) tbody tr {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}
html[data-motion="paused"] .systems-marquee-track {
  animation: none;
}
html[data-motion="paused"] .systems-marquee { overflow-x: auto; }
html[data-motion="paused"] .systems-marquee-group:nth-child(2) {
  display: none;
}
html[data-motion="paused"] .systems-marquee-track {
  width: 100%;
  transform: none;
}
html[data-motion="paused"] .systems-marquee-group {
  width: 100%;
  justify-content: space-between;
  gap: 0;
  padding-inline: 0;
}
html[data-motion="paused"] .systems-marquee-group span + span::before { margin-right: .3em; }
@media (prefers-reduced-motion: reduce) {
  .systems-marquee-group span + span::before { margin-right: .3em; }
}
html[data-motion="paused"] .line-card,
html[data-motion="paused"] .line-card::after,
html[data-motion="paused"] .svc a,
html[data-motion="paused"] .svc a::after,
html[data-motion="paused"] .more-link,
html[data-motion="paused"] .btn,
html[data-motion="paused"] .btn::before,
html[data-motion="paused"] .line-card :is(.wireframe, .wire-object, .wireframe-object),
html[data-motion="paused"] .svc a :is(.wireframe, .wire-object, .wireframe-object),
html[data-motion="paused"] .more-link :is(.wireframe, .wire-object, .wireframe-object) {
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .has-line-reveal .reveal-line,
  body:has(.stage) section:not(:has(.stage)),
  body:has(.stage) .proof .p,
  body:has(.stage) tbody tr {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .systems-marquee-track { animation: none; }
  .systems-marquee { overflow-x: auto; }
  .systems-marquee-group:nth-child(2) { display: none; }
  .systems-marquee-track { width: 100%; transform: none; }
  .systems-marquee-group {
    width: 100%;
    justify-content: space-between;
    gap: 0;
    padding-inline: 0;
  }
  .systems-marquee-group span + span::before { margin-right: .3em; }
  .line-card,
  .line-card::after,
  .svc a,
  .svc a::after,
  .more-link,
  .btn,
  .btn::before,
  .line-card :is(.wireframe, .wire-object, .wireframe-object),
  .svc a :is(.wireframe, .wire-object, .wireframe-object),
  .more-link :is(.wireframe, .wire-object, .wireframe-object) {
    transition: none !important;
  }
}

@media (max-width: 520px) {
  html[data-motion="paused"] .systems-marquee-group,
  .systems-marquee-group { font-size: 8.8px; letter-spacing: -.04em; }
}


/* Header-Logo: einmaliges Buchstaben-Reveal + Kobalt-Punkt (AUFTRAG-MARKE 2). */
.logo-text { display: inline; }
.logo-ch { display: inline-block; }
html[data-brand="on"] .logo-ch { opacity: 0; transform: translateY(3px); animation: logo-ch-in .4s cubic-bezier(.16,1,.3,1) both; }
@keyframes logo-ch-in { to { opacity: 1; transform: none; } }
.logo-dot { position: relative; display: inline-block; width: 10px; height: 10px; margin-left: 5px; vertical-align: -1px; }
.logo-dot i { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--acc); }
@media (max-width: 520px) { .logo-dot i { width: 6px; height: 6px; margin: -3px 0 0 -3px; } }
.logo-dot i:nth-child(1) { --dx: -6px; --dy: -4px; }
.logo-dot i:nth-child(2) { --dx: -2px; --dy: -6px; }
.logo-dot i:nth-child(3) { --dx: 2px; --dy: -6px; }
.logo-dot i:nth-child(4) { --dx: 6px; --dy: -4px; }
.logo-dot i:nth-child(5) { --dx: 7px; --dy: 0px; }
.logo-dot i:nth-child(6) { --dx: 6px; --dy: 4px; }
.logo-dot i:nth-child(7) { --dx: 2px; --dy: 6px; }
.logo-dot i:nth-child(8) { --dx: -2px; --dy: 6px; }
.logo-dot i:nth-child(9) { --dx: -6px; --dy: 4px; }
.logo-dot i:nth-child(10) { --dx: -7px; --dy: 0px; }
.logo-dot i:nth-child(11) { --dx: -4px; --dy: -2px; }
.logo-dot i:nth-child(12) { --dx: 4px; --dy: 2px; }
html[data-brand="on"] .logo-dot i { animation: dot-gather .6s cubic-bezier(.16,1,.3,1) both; }
html[data-brand="on"] .logo:hover .logo-dot i,
html[data-brand="on"] .logo:focus-visible .logo-dot i { animation: dot-scatter .5s cubic-bezier(.22,1,.36,1) both; }
@keyframes dot-gather { from { opacity: 0; transform: translate(var(--dx), var(--dy)); } to { opacity: 1; transform: none; } }
@keyframes dot-scatter { 0% { transform: none; } 45% { transform: translate(var(--dx), var(--dy)); } 100% { transform: none; } }
html[data-motion="paused"] .logo-ch,
html[data-motion="paused"] .logo-dot i { animation: none !important; opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  .logo-ch, .logo-dot i { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* Marquee: Trenner zwischen allen Einträgen, auch am Naht zwischen den Gruppen. */
.systems-marquee-group span::before {
  content: '·';
  margin-right: 1.5rem;
  color: var(--acc);
}
html[data-motion="paused"] .systems-marquee-group span::before { margin-right: .3em; }
@media (prefers-reduced-motion: reduce) {
  .systems-marquee-group span::before { margin-right: .3em; }
}

/* Karten-Wireframes: 96 px im freien Feld unten rechts, Text bleibt frei. */
@media (min-width: 901px) {
  .line-card { padding-right: 24px; padding-bottom: 130px; }
  .line-card-wire {
    position: absolute;
    right: 24px;
    bottom: 24px;
    width: 96px;
    height: 96px;
    margin: 0;
  }
  .line-card-wire .wire-card-svg { width: 92px; height: 92px; }
}

.logo-ch:nth-child(1) { animation-delay: 0ms; }
.logo-ch:nth-child(2) { animation-delay: 18ms; }
.logo-ch:nth-child(3) { animation-delay: 36ms; }
.logo-ch:nth-child(4) { animation-delay: 54ms; }
.logo-ch:nth-child(5) { animation-delay: 72ms; }
.logo-ch:nth-child(6) { animation-delay: 90ms; }
.logo-ch:nth-child(7) { animation-delay: 108ms; }
.logo-ch:nth-child(8) { animation-delay: 126ms; }
.logo-ch:nth-child(9) { animation-delay: 144ms; }
.logo-ch:nth-child(10) { animation-delay: 162ms; }
.logo-ch:nth-child(11) { animation-delay: 180ms; }
.logo-ch:nth-child(12) { animation-delay: 198ms; }
.logo-ch:nth-child(13) { animation-delay: 216ms; }
.logo-ch:nth-child(14) { animation-delay: 234ms; }
.logo-ch:nth-child(15) { animation-delay: 252ms; }
.logo-ch:nth-child(16) { animation-delay: 270ms; }
.logo-ch:nth-child(17) { animation-delay: 288ms; }
.logo-ch:nth-child(18) { animation-delay: 306ms; }
.logo-ch:nth-child(19) { animation-delay: 324ms; }
.logo-ch:nth-child(20) { animation-delay: 342ms; }

/* ===== Phase 2 W2-D ===== */
/* v8 Phase 2 W2-D – Footer-Wortmarke */
.site-footer { border-top: 0; }
.footer-rule {
  display: block;
  width: 100%;
  height: 2px;
  margin-bottom: 36px;
}
.footer-rule path {
  fill: none;
  stroke: var(--acc);
  stroke-width: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  vector-effect: non-scaling-stroke;
}

.footer-wordmark,
.footer-wordmark__svg {
  --wm-wide: inline;
  --wm-narrow: none;
}
.site-footer { background: transparent; }
.footer-wordmark-wrap { margin-top: 48px; }
.footer-wordmark {
  position: relative;
  width: 100%;
  height: 18vh;
  min-height: 140px;
  max-height: 220px;
  margin: 0 auto;
}
.footer-wordmark .cloud-slot--wordmark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  align-self: stretch;
}
.footer-wordmark__static {
  position: absolute;
  inset: 0;
  color: rgba(17, 24, 32, 0.22);
}
.footer-wordmark__static path { stroke-width: 1.25px; vector-effect: non-scaling-stroke; }
/* REVIEW-K2 D1: das statische SVG bleibt stehen, bis die Punkt-Wortmarke
   wirklich gezeichnet ist. data-stage-ready heißt nur "irgendeine Bühne läuft". */
html[data-wordmark-drawn="1"] .footer-wordmark__static { display: none; }
.footer-wordmark__line {
  margin: 10px 0 0;
  color: var(--sub);
  font: 500 12px/1.5 var(--mono);
  letter-spacing: 0.06em;
  text-align: center;
}
footer.site-footer { position: relative; z-index: 2; }
@media (max-width: 900px) {
  html[data-wordmark-drawn="1"] .footer-wordmark__static { display: block; }
  .footer-wordmark { height: auto; min-height: 0; }
  /* Mobil trägt das SVG die Höhe (die Punkt-Wolke ist dort aus). */
  .footer-wordmark__static { position: static; }
}
.footer-wordmark__svg {
  display: block;
  width: 100%;
  height: 100%;
}
.footer-wordmark__set--wide { display: var(--wm-wide); }
.footer-wordmark__set--narrow { display: var(--wm-narrow); font-weight: 400; }
.footer-wordmark__animated { display: none; }
.footer-wordmark__character {
  --wm-start: calc(attr(data-offset type(<number>)) * 1%);
  offset-distance: var(--wm-start);
  offset-rotate: auto;
}
.footer-wordmark__character[data-contour="0"] { offset-path: url("#wm-p0"); }
.footer-wordmark__character[data-contour="1"] { offset-path: url("#wm-p1"); }
.footer-wordmark__character[data-contour="2"] { offset-path: url("#wm-p2"); }
.footer-wordmark__character[data-contour="3"] { offset-path: url("#wm-p3"); }
.footer-wordmark__character[data-contour="4"] { offset-path: url("#wm-p4"); }
.footer-wordmark__character[data-contour="5"] { offset-path: url("#wm-p5"); }
.footer-wordmark__character[data-contour="6"] { offset-path: url("#wm-p6"); }
.footer-wordmark__character[data-contour="7"] { offset-path: url("#wm-p7"); }
.footer-wordmark__character[data-contour="8"] { offset-path: url("#wm-p8"); }
.footer-wordmark__character[data-contour="9"] { offset-path: url("#wm-p9"); }
.footer-wordmark__character[data-contour="10"] { offset-path: url("#wm-p10"); }
.footer-wordmark__character[data-contour="11"] { offset-path: url("#wm-p11"); }
.footer-wordmark__character[data-contour="12"] { offset-path: url("#wm-p12"); }
.footer-wordmark__character[data-contour="13"] { offset-path: url("#wm-p13"); }

@keyframes v8-footer-rule {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@keyframes v8-footer-column {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes v8-footer-words {
  to { offset-distance: calc(var(--wm-start) + 1.5%); }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .footer-rule path {
      animation: v8-footer-rule 0.8s linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 65%;
    }
    .footer-grid > div {
      animation: v8-footer-column 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
      animation-timeline: view();
      animation-range: entry 0% entry 65%;
    }
    .footer-grid > div:nth-child(2) { animation-range: entry 8% entry 73%; }
    .footer-grid > div:nth-child(3) { animation-range: entry 16% entry 81%; }
    .footer-grid > div:nth-child(4) { animation-range: entry 24% entry 89%; }
  }
}

/* Chromium kann startOffset nicht als CSS-Eigenschaft animieren. Die Zeichen folgen
   daher per Motion Path exakt denselben Konturen; ohne Unterstützung bleibt textPath. */
@supports (animation-timeline: view()) and (offset-distance: calc(attr(data-offset type(<number>)) * 1%)) {
  @media (prefers-reduced-motion: no-preference) {
    /* Das statische SVG trägt keine __animated-Teile; es wird darum nicht mehr
       ausgeblendet (REVIEW-K2 D1). */
    .footer-wordmark__animated.footer-wordmark__set--wide { display: var(--wm-wide); }
    .footer-wordmark__animated.footer-wordmark__set--narrow { display: var(--wm-narrow); }
    .footer-wordmark__character {
      animation: v8-footer-words 6s linear both;
      animation-timeline: --v8-wordmark;
      animation-range: entry 0% entry 100%;
    }
  }
}

@media (max-width: 900px) {
  .footer-wordmark {
    height: auto;
    min-height: 0;
    max-height: none;
    margin-top: 28px;
  }
  .footer-wordmark__svg { height: auto; }
}
@media (max-width: 520px) {
  .footer-wordmark,
  .footer-wordmark__svg {
    --wm-wide: none;
    --wm-narrow: inline;
  }
  .footer-wordmark { padding-inline: 20px; }
}
@media (max-width: 400px) {
  .footer-wordmark { padding-inline: 0; }
}

html[data-motion="paused"] .footer-rule path,
html[data-motion="paused"] .footer-grid > div,
html[data-motion="paused"] .footer-wordmark__character {
  animation: none !important;
}
html[data-motion="paused"] .footer-rule path { stroke-dashoffset: 0 !important; }
html[data-motion="paused"] .footer-grid > div { opacity: 1 !important; transform: none !important; }
html[data-motion="paused"] .footer-wordmark__animated { display: none !important; }
html[data-motion="paused"] .footer-wordmark__static.footer-wordmark__set--wide { display: var(--wm-wide) !important; }
html[data-motion="paused"] .footer-wordmark__static.footer-wordmark__set--narrow { display: var(--wm-narrow) !important; }

@media (prefers-reduced-motion: reduce) {
  .footer-rule path,
  .footer-grid > div,
  .footer-wordmark__character { animation: none !important; }
  .footer-rule path { stroke-dashoffset: 0 !important; }
  .footer-grid > div { opacity: 1 !important; transform: none !important; }
  .footer-wordmark__animated { display: none !important; }
  .footer-wordmark__static.footer-wordmark__set--wide { display: var(--wm-wide) !important; }
  .footer-wordmark__static.footer-wordmark__set--narrow { display: var(--wm-narrow) !important; }
}

/* ---------------------------------------------------------------
   SEITENKOPF C5–C9 — eine Grundlage für alle Unterseiten
   (partials/kopf.html). Aufbau: Crumb, H1, Lead, erster handfester
   Inhalt; rechts die Bühne, vertikal zum Textblock zentriert.
   Heller Grund als Band, damit der Kopf als Einheit liest.
   --------------------------------------------------------------- */
.page-head-band {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  /* REVIEW-K2 D3: Abstand zum ersten Absatz darunter (≥ 48 px). Der Abstand
     sitzt am Band, weil die Folgeseiten kein eigenes oberes Padding haben. */
  margin-bottom: 48px;
}
/* Mobil zählt die Lückenregel (≤ 64 px) mehr als der Mindestabstand:
   Band-Padding 20 px + 28 px Rand ergeben 48 px. */
@media (max-width: 900px) {
  .page-head-band { margin-bottom: 28px; }
}
.page-head {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 28px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--kopf-stage, 360px);
  column-gap: 56px;
  /* REVIEW-K2 D3: Text und Bühne beginnen oben. Vorher stand der Text mittig
     und ließ unter dem Lead eine leere Fläche, während unten der Fließtext
     direkt an die Bandkante stieß. Die Bühne streckt sich zusätzlich auf die
     Zeilenhöhe (Regel K-1). */
  align-items: start;
}
.page-head:not(:has(> .stage--kopf)) {
  grid-template-columns: minmax(0, 1fr);
}
.page-head-text { grid-column: 1; grid-row: 1; min-width: 0; }
.page-head-text .crumb { display: inline-block; margin-bottom: 8px; }
.page-head h1 { margin-top: 0; }

/* Lead unter der H1 (C5): 17–18 px, --sub, max. 3 Zeilen. */
.page-head-lead {
  margin-top: 14px;
  max-width: 56ch;
  font-size: clamp(1.0625rem, 1.2vw, 1.125rem);
  line-height: 1.6;
  color: var(--sub);
}

/* Zusatzzeile unter dem Lead (z. B. erster Absatz auf /kontakt/). */
.page-head-intro {
  grid-column: 1;
  margin-top: 10px;
  max-width: 56ch;
}
.page-head-intro p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--sub);
  margin: 0;
}

/* Erster handfester Inhalt im Kopf (C9): eigene Zeile unter Text und Bühne. */
/* Regel K-1: der erste Inhalt steht in der linken Spalte unter dem Lead.
   Nur `--wide` (z. B. die drei Kontaktwege) läuft als eigene Reihe unter
   Text und Bühne. */
.page-head-first { margin-top: 18px; }
.page-head-first--wide {
  grid-column: 1 / -1;
  margin-top: 24px;
}

/* Chips: Versprechen, Teilleistungen, Status (Mono, wie die Quellzeilen). */
.kopf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kopf-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  font: 500 12.5px/1.3 var(--mono);
  letter-spacing: .01em;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
a.kopf-chip:hover { border-color: var(--acc); color: var(--acc); }
.kopf-chip--acc { color: var(--acc); border-color: var(--acc); }
.kopf-chip--status { color: var(--warn-ink); background: var(--warn-bg); border-color: transparent; }
.kopf-cta { margin-top: 14px; }

/* Belegt-Zeile: die Karte, die vorher unten rechts stand (C9). */
.kopf-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line-strong);
}
.kopf-proof__label {
  font: 600 11px/1.4 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.kopf-proof ul { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; }
.kopf-proof li { font-size: 13.5px; line-height: 1.45; }
.kopf-proof a { color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.kopf-proof a:hover { color: var(--acc); border-color: var(--acc); }

/* Mini-Karten im Kopf (Root-Seiten, Labor-Kacheln). */
.kopf-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kopf-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
a.kopf-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.kopf-card__t { font: 600 15px/1.35 var(--display); }
.kopf-card__d { font-size: 13.5px; line-height: 1.45; color: var(--sub); }

/* Kennzahlen im Kopf (/ueber-mich/, C9): dieselben Werte, kompakt. */
.kopf-stats { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.kopf-stats b { display: block; font: 700 19px/1.2 var(--display); color: var(--ink); }
.kopf-stats span { font-size: 12.5px; line-height: 1.4; color: var(--sub); }

/* ---------------------------------------------------------------
   KOPFWOLKE 4.6 — Punktform im Seitenkopf, rechts neben der H1
   (max. 360 px breit, weißes Feld; mobil unter dem Text, max. 220 px)

   Regel K-1 (Auftrag Phase 4 B): Die Bühne ist so hoch wie die Textspalte,
   nicht ein erzwungenes Quadrat. Vorher stand links nur H1 und Lead und
   darunter blieben rund 250 px leer. `stretch` lässt die Zeilenhöhe von der
   Textspalte bestimmen, `min-height` hält die Form sichtbar, `max-height`
   deckelt sie bei 400 px (Seitenverhältnis bis 16:10 damit erlaubt).
   --------------------------------------------------------------- */
.stage--kopf {
  grid-column: 2;
  grid-row: 1;
  /* Die Höhe kommt aus der Zeile (Texthöhe), die Breite folgt daraus bis
     16:10 und höchstens 360 px. Vorher war es ein festes Quadrat: bei kurzem
     Text blieb links eine leere Fläche stehen. */
  width: auto;
  aspect-ratio: 16 / 10;
  height: 100%;
  min-height: 150px;
  max-height: 400px;
  max-width: var(--kopf-stage, 360px);
  justify-self: end;
  align-self: stretch;
  background: #fff;
}

@media (max-width: 900px) {
  .page-head {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
    padding-top: 22px;
    padding-bottom: 24px;
  }
  /* Mobil zählt der Inhalt: H1, Lead und der erste Inhalt stehen vor der Bühne,
     damit alles drei im ersten Bildschirm liegt (C9). */
  .page-head { padding: 20px 28px 22px; }
  .page-head-text { order: 1; grid-row: auto; }
  .page-head-intro { order: 2; grid-row: auto; }
  .page-head-first--wide { order: 3; grid-row: auto; margin-top: 14px; }
  /* Regel K-1 mobil: Bühne über oder unter dem Text, max. 220 px hoch. */
  .page-head > .stage--kopf {
    order: 4;
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    width: 100%;
    max-width: 220px;
    aspect-ratio: auto;
    height: 220px;
    min-height: 0;
    max-height: 220px;
    margin-top: 16px;
  }
  .kopf-cards { grid-template-columns: minmax(0, 1fr); }
}

/* Über mich: der Halbton ersetzt das Foto im Kopf (C1). */
.about-hero-text-col > .stage--kopf {
  max-width: 280px;
  margin-top: 8px;
}

/* Zeitleiste (4.6): ruhige Liste, Jahr links, Station rechts. */
.zeitleiste-section {
  padding: 8px 0 56px;
  border-bottom: 1px solid var(--line);
}
.zeitleiste {
  list-style: none;
  margin: 24px 0 0;
  padding: 0 0 0 18px;
  border-left: 1.5px solid var(--line-strong);
}
.zeitleiste__item {
  position: relative;
  display: grid;
  grid-template-columns: 15ch minmax(0, 1fr);
  gap: 16px;
  padding: 10px 0;
}
.zeitleiste__item::before {
  content: '';
  position: absolute;
  left: -22.5px;
  top: 18px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acc);
}
.zeitleiste__span {
  font: 500 12px/1.4 var(--mono);
  color: var(--sub);
  letter-spacing: .02em;
}
.zeitleiste__label {
  font-size: 15px;
  line-height: 1.5;
}
@media (max-width: 700px) {
  .zeitleiste__item { grid-template-columns: 1fr; gap: 2px; }
  .zeitleiste__item::before { top: 16px; }
}

/* ---------------------------------------------------------------
   KONTAKT C8 — Handlung zuerst: drei Karten im ersten Bildschirm
   --------------------------------------------------------------- */
.page-head-first .contact-grid { margin: 0; }
.page-head-first .contact-card { padding: 18px 20px; }
/* Icons als feine Linien (C8): Emoji sind raus, die Grundregel blendet sie aus. */
.page-head-first .contact-card-icon {
  display: block;
  width: 22px;
  height: 22px;
  margin-bottom: 8px;
  color: var(--acc);
}
.page-head-first .contact-card-title { margin-bottom: 4px; }
.page-head-first .contact-card-desc { margin-bottom: 12px; font-size: 13.5px; }
.contact-rest-section { padding: 48px 0 64px; }
.contact-rest-intro h2 { margin-top: 0; }
.contact-rest-faq details.accordion:first-child { margin-top: 0; }
@media (min-width: 901px) {
  .contact-rest { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
}

@media (max-width: 900px) {
  .page-head-first .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .page-head-first .contact-card--primary { order: -1; }
}

/* ---------------------------------------------------------------
   NAVIGATION „KI & SOFTWARE“ (PLAN-V8-KI 3.5)
   Mega-Dropdown mit drei Spalten, Querverweis in „Leistungen“,
   aufklappbarer Punkt im Mobilmenü. Basis: .submenu aus relaunch.css.
   --------------------------------------------------------------- */
.submenu a.submenu-cross {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 10px;
}
.submenu a.submenu-cross b { color: var(--acc); font-weight: 600; }

.submenu--mega {
  left: auto;
  right: 0;
  width: min(760px, calc(100vw - 40px));
  padding: 14px 14px 10px;
}
/* Sieben Punkte: „KI & Software“ darf nicht in die zweite Zeile rutschen. */
.nav-sub-toggle { white-space: nowrap; }
/* Das Mega-Fenster hängt am Kopf, nicht am 97 px breiten Menüpunkt. */
.nav-item--mega { position: static; }
.submenu--mega { left: 50%; right: auto; transform: translate(-50%, 6px); }
.nav-item:hover .submenu--mega,
.nav-item:focus-within .submenu--mega,
.nav-item.is-open .submenu--mega { transform: translate(-50%, 0); }
.mega-cols {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 6px 14px;
}
.mega-col { min-width: 0; }
.mega-h {
  margin: 0 0 4px;
  padding: 0 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.mega-col a { padding: 8px 12px; }
.mega-col a b { font-size: 14px; }
.mega-col a span { font-size: 12.5px; }
.submenu--mega .mega-status {
  display: inline-block;
  margin-top: 5px;
  padding: 1px 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--acc);
  background: var(--acc-tint);
  border-radius: 999px;
}
.mega-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 10px;
  padding: 10px 12px 4px;
  border-top: 1px solid var(--line);
}
.mega-foot a b { font-size: 13.5px; color: var(--acc); font-weight: 600; }

/* Mobilmenü: „KI & Software“ als aufklappbarer Punkt, Gruppen als Zwischenüberschriften. */
.mobile-nav .m-acc summary { cursor: pointer; list-style: none; position: relative; }
.mobile-nav .m-acc summary::-webkit-details-marker { display: none; }
.mobile-nav .m-acc summary::after {
  content: '';
  position: absolute;
  right: 2px;
  top: 12px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms var(--ease-out);
}
.mobile-nav .m-acc[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.mobile-nav .m-sub-h {
  margin: 12px 0 2px;
  padding-left: 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.mobile-nav .m-status {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--acc);
  background: var(--acc-tint);
  padding: 1px 6px;
  border-radius: 999px;
}

@media (max-width: 1100px) {
  .submenu--mega { width: min(620px, calc(100vw - 40px)); }
  .mega-cols { grid-template-columns: 1fr 1fr 1fr; gap: 6px 8px; }
  .mega-col a b { font-size: 13px; }
}

/* C1: Hinweis „KI-bearbeitet“ an der Kopfbühne, sitzt am unteren Rand der Bühne. */
.page-head-badge {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  justify-self: end;
  margin: 0 8px 14px 0;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--sub);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  z-index: 2;
}
.page-head-badge:hover { color: var(--acc); border-color: var(--acc); }
@media (max-width: 900px) {
  .page-head-badge { grid-column: 1; grid-row: auto; order: 4; justify-self: start; align-self: auto; margin: -24px 0 0 8px; }
}

/* Auftrag Phase 4 D0: Das Halbton-Porträt auf /ueber-mich/ ist Inhalt, nicht
   Deko. Die Bühne bekommt eine Mindesthöhe, damit das Gesicht lesbar bleibt;
   die linke Spalte ist mit Lead und Kennzahlen bereits gefüllt. */
/* Nur Desktop: die mobile Bühne bleibt bei max. 220 px (Regel K-1). */
@media (min-width: 901px) {
  .stage--kopf[data-form="halbton"] { min-height: 320px; }
}

/* Phase 4: Bei 320 px passt "Terminüberschreitungen" nicht in eine halbe Spalte (Overflow 21 px). */
@media (max-width: 360px) { .about-results { grid-template-columns: 1fr; } }

/* Referenzen: Zitat oben, Fallstudien als Karten, Kontaktbox (Feedback René 2026-10-29).
   Belege qualitativ (Rolle, Systeme, Referenzperson), keine Kennzahlen als Aufmacher. */
.prose .ref-quote { max-width: 800px; margin: 8px 0 44px; }
.prose .ref-quote blockquote { max-width: none; margin: 0; padding: 0; border: 0; font-size: 17px; }
.ref-quote .q-contact { margin: 0; padding: 8px 0 0; }
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; margin: 18px 0 44px; }
.case-card { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 22px 24px; background: #fff; }
.prose .case-kicker { margin: 0; font-family: var(--mono); font-size: 11.5px; color: var(--acc); line-height: 1.4; }
.prose .case-title { margin: 0; font-size: 1.0625rem; line-height: 1.4; }
.case-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 2px 0 0; font-size: 14px; line-height: 1.5; }
.case-facts dt { color: var(--muted); font-weight: 600; }
.case-facts dd { margin: 0; color: var(--sub); }
.case-more { border-top: 1px solid var(--line); padding-top: 10px; }
.case-more summary { cursor: pointer; list-style: none; font-size: 14px; font-weight: 600; color: var(--ink); }
.case-more summary::-webkit-details-marker { display: none; }
.case-more summary::before { content: '+'; display: inline-block; width: 1.1em; color: var(--acc); }
.case-more[open] summary::before { content: '−'; }
.case-body { margin-top: 10px; font-size: 14.5px; }
.case-body > :first-child { margin-top: 0; }
.case-link { margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--acc); text-decoration: none; }
.case-link:hover, .case-link:focus-visible { text-decoration: underline; }
.ref-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 8px 0 44px; }
.ref-card { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 22px 24px; background: #fff; }
.prose .ref-card h3 { margin: 0; }
.prose .ref-card p, .prose .ref-card ul { margin: 0; }
.ref-card .case-link { margin-top: auto; padding-top: 4px; }
.ref-contact { border: 1px solid var(--acc); border-radius: 10px; background: var(--acc-tint); padding: 26px 28px; }
.prose .ref-contact h2 { margin-top: 0; }
.prose .ref-contact ul { list-style: none; padding: 0; margin: 0 0 18px; }
.ref-contact li { padding: 8px 0; border-top: 1px solid rgba(26, 79, 196, 0.15); }
.ref-contact li strong { display: block; }
.prose .ref-note { margin-top: 28px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
@media (max-width: 900px) {
  .case-grid, .ref-more { grid-template-columns: minmax(0, 1fr); }
}

/* Über mich: drei Ergebnis-Karten (ZARGES-Kennzahlen entfernt, Feedback René 2026-10-29). */
@media (min-width: 901px) { .about-results { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
