/* HAIPACT. Hörtling // AI with Impact.
   Gestaltung ausschließlich aus 02_Wissensbasis/HAIPACT-STYLEGUIDE.md abgeleitet.
   Schwarz. Weiß. Wenige resedagrüne Akzente. Keine Karten, keine Verläufe, keine Schatten. */

@font-face { font-family: 'Inter Display'; src: url('assets/InterDisplay-Light.woff2') format('woff2'); font-style: normal; font-weight: 300; font-display: swap; }
@font-face { font-family: 'Inter Display'; src: url('assets/InterDisplay-Regular.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter Display'; src: url('assets/InterDisplay-Medium.woff2') format('woff2'); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter Display'; src: url('assets/InterDisplay-SemiBold.woff2') format('woff2'); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter Display'; src: url('assets/InterDisplay-Bold.woff2') format('woff2'); font-style: normal; font-weight: 700; font-display: swap; }

:root {
  --background: #000000;
  --text: #FFFFFF;
  --muted: #A8A8A8;
  --accent: #68825B;
  --line: #292929;

  --page-max: 1280px;
  --gutter: 56px;
  --header-offset: 124px;
  --target-gap: 24px;

  --ease: cubic-bezier(.22, 1, .36, 1);

  font-family: 'Inter Display', Inter, Arial, sans-serif;
  font-synthesis: none;
  color: var(--text);
  background: var(--background);
  color-scheme: dark;
  scroll-padding-top: var(--header-offset);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; overflow-x: hidden; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--text); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: transparent; border: 0; cursor: pointer; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:is(a, button, summary, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 7px; }

h1, h2, h3, p, ul { margin: 0; padding: 0; letter-spacing: 0; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
/* Einzelne lange Wörter dürfen in keiner Schriftgröße abgeschnitten werden; ohne Überlauf bleibt jede Zeile unangetastet. */
h1, h2, h3, h4, p, li, summary { overflow-wrap: break-word; }
p { font-size: 1rem; line-height: 1.7; font-weight: 400; }
strong { font-weight: 600; }
ul { list-style: none; }

.wrap { width: min(var(--page-max), calc(100% - (var(--gutter) * 2))); margin-inline: auto; }

.skip { position: fixed; top: -120px; left: 20px; z-index: 30; padding: 12px 16px; color: #000; background: #fff; }
.skip:focus { top: 12px; }

/* --- Textrollen ------------------------------------------------------- */

.eyebrow { font-size: .8125rem; line-height: 1.5; font-weight: 500; color: var(--muted); }
.number {
  font-size: .8125rem;
  line-height: 1.5;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.arrow { flex-shrink: 0; color: var(--accent); }

/* --- Kopfzeile -------------------------------------------------------- */

.header-shell {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(0 0 0 / .96);
  backdrop-filter: blur(12px);
}
.header { display: flex; align-items: center; gap: 32px; min-height: 100px; }
.brand { font-size: 1.5rem; font-weight: 600; white-space: nowrap; }
.brand-ai { color: var(--accent); }

/* Aktuelles Kapitel in der Kopfzeile; auf dem Desktop übernimmt die Navigation diese Orientierung. */
.header-current { display: none; min-width: 0; font-size: .8125rem; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-current .number { margin-right: 8px; }

.primary-nav { display: flex; align-items: center; gap: 20px 28px; margin-left: auto; font-size: .875rem; flex-wrap: wrap; justify-content: flex-end; }
.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  color: var(--muted);
  transition: color 250ms var(--ease);
}
.primary-nav a::after {
  content: '';
  position: absolute;
  inset: auto 0 4px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 250ms var(--ease);
}
.primary-nav a:is(:hover, :focus-visible) { color: var(--text); }
.primary-nav a:is(:hover, :focus-visible)::after,
.primary-nav a[aria-current='location']::after { transform: scaleX(1); }
.primary-nav a[aria-current='location'] { color: var(--text); }

.header-cta {
  display: none;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding-bottom: 6px;
  font-size: .875rem;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
}
.header-cta::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(.25);
  transform-origin: left;
  transition: transform 400ms var(--ease);
}
.header-cta:is(:hover, :focus-visible)::after { transform: scaleX(1); }
.header-cta .arrow { transition: transform 300ms var(--ease); }
.header-cta:is(:hover, :focus-visible) .arrow { transform: translate(4px, -4px); }
.header-cta .icon-mail { display: none; color: var(--accent); }

.menu-toggle { display: none; align-items: center; gap: 12px; margin-left: auto; min-height: 44px; font-size: .875rem; font-weight: 500; }
.menu-toggle .bars { display: grid; gap: 5px; width: 22px; }
.menu-toggle .bars i { display: block; height: 1px; background: var(--text); transition: transform 250ms var(--ease), opacity 250ms var(--ease); }
.menu-toggle[aria-expanded='true'] .bars i:first-child { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] .bars i:last-child { transform: translateY(-3px) rotate(-45deg); }

/* Lesefortschritt: 2 px resedagrün, ohne Prozentanzeige. */
.scroll-progress { display: none; height: 2px; background: transparent; }
[data-js='on'] .scroll-progress { display: block; }
.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

/* --- Einstieg --------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 64px;
  align-items: end;
  padding-block: 72px 88px;
}
.hero h1 { margin-top: 24px; }
/* Großtext bricht nur, wenn er allein breiter ist als die Zeile; sonst bleibt jede Zeile unangetastet.
   min-width: 0 nimmt den Rasterspalten den Zwang, dem Wort zu folgen. */
.hero-main, .hero-copy { min-width: 0; }
.hero-name, .hero-slogan { overflow-wrap: break-word; }
.hero-name { text-wrap: initial; }
.hero-name { display: block; font-size: 7.5rem; line-height: 1.08; font-weight: 700; will-change: transform; }
.hero-ai { color: var(--accent); }
.hero-slogan { display: block; margin-top: 16px; font-size: 2.5rem; line-height: 1.3; font-weight: 300; will-change: transform; }
.hero-copy { padding-bottom: 4px; }
.hero-lead { max-width: 440px; font-size: 1.5rem; line-height: 1.4; font-weight: 500; text-wrap: balance; }
.hero-description { margin-top: 18px; max-width: 680px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 36px; margin-top: 30px; }

.button-primary, .button-ghost, .text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  width: fit-content;
  max-width: 100%;
  font-weight: 500;
}
.button-primary { min-height: 48px; padding-bottom: 7px; font-size: .9375rem; }
.button-primary::after, .email::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(.25);
  transform-origin: left;
  transition: transform 400ms var(--ease);
}
.button-primary:is(:hover, :focus-visible)::after, .email:is(:hover, :focus-visible)::after { transform: scaleX(1); }
.button-primary .arrow { transition: transform 300ms var(--ease); }
.button-primary:is(:hover, :focus-visible) .arrow { transform: translate(4px, -4px); }

.button-ghost { min-height: 48px; color: var(--muted); font-size: .9375rem; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 6px; transition: color 250ms var(--ease), text-decoration-color 250ms var(--ease); }
.button-ghost:is(:hover, :focus-visible) { color: var(--text); text-decoration-color: var(--accent); }

.text-link { min-height: 44px; font-size: .875rem; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }

/* --- Kapitel ---------------------------------------------------------- */

.chapter {
  padding-block: 44px 88px;
  border-top: 1px solid var(--line);
}
.chapter-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px 56px;
  margin-bottom: 40px;
}
.chapter-statement { min-width: 0; }
.chapter-statement h2, .hero h1 { font-size: 2.25rem; line-height: 1.2; }
.chapter-intro { margin-top: 14px; max-width: 680px; color: var(--muted); }
/* Das Kapitel in Leseposition erhält die volle Bezeichnungsfarbe; die Reihenfolge bleibt lesbar ohne JavaScript. */
.chapter.is-active > .chapter-head .eyebrow { color: var(--text); transition: color 250ms var(--ease); }

/* Kennzahlen */

.stat-grid { display: grid; gap: 8px; }
.stat {
  display: grid;
  grid-template-columns: minmax(min(220px, 100%), .85fr) 1.6fr;
  gap: 8px 48px;
  align-items: baseline;
  padding-block: 36px;
}
/* Lange Zahlen und E-Mail-Adressen brechen zuletzt, damit sie in keiner Schriftgröße abgeschnitten werden. */
.stat > * { min-width: 0; }
.stat-value { overflow-wrap: anywhere; }
.email { flex-wrap: wrap; overflow-wrap: anywhere; }
.about > * { min-width: 0; }
/* Feste Aufstellung: die Zahl bleibt links, Überschrift, Erläuterung und Quelle stehen rechts.
   Ohne sie rutscht die Quelle einer Kennzahl ohne Erläuterung in die linke Spalte. */
.stat .stat-value { grid-column: 1; grid-row: 1; }
.stat h3 { grid-column: 2; grid-row: 1; }
.stat .stat-note { grid-column: 1; grid-row: 2; }
.stat .source { grid-column: 2; grid-row: 2; }
.stat-value { font-size: 3.5rem; line-height: 1.05; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat h3 { font-size: 1.375rem; line-height: 1.3; font-weight: 500; text-wrap: balance; }
.stat-note { margin-top: 10px; max-width: 620px; color: var(--muted); }
.stat .source { margin-top: 14px; }

.motivation-close { margin-top: 64px; }
.statement { font-size: 1.75rem; line-height: 1.35; font-weight: 500; max-width: 26ch; text-wrap: balance; }
.statement + .statement { margin-top: 22px; }
.bridge { margin-top: 26px; max-width: 680px; color: var(--muted); }
.bridge .text-link { margin-left: 6px; }
.data-note { margin-top: 36px; color: var(--muted); font-size: .8125rem; }

/* Quellen */

.source summary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding-block: 8px;
  font-size: .8125rem;
  color: var(--muted);
  list-style: none;
  transition: color 250ms var(--ease);
}
.source summary::-webkit-details-marker { display: none; }
.source summary::before { content: '+'; color: var(--text); }
.source[open] summary::before { content: '−'; }
.source summary:hover { color: var(--text); }
.source p { margin-top: 10px; max-width: 680px; color: var(--muted); font-size: .8125rem; line-height: 1.6; }
.source-location { overflow-wrap: anywhere; }
.source-location a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
  transition: color 250ms var(--ease), text-decoration-color 250ms var(--ease);
}
.source-location a:is(:hover, :focus-visible) { color: var(--text); text-decoration-color: var(--accent); }
.source-location .arrow { width: 13px; height: 13px; }

/* --- Hilfsmittel ------------------------------------------------------ */

/* Ausgelagerter Hinweis für Bildschirmleser; bleibt Bedienungsnamen erhalten. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Leistungen */

/* Leistungen: sechs Schritte als Prozesspfad, Inhalte bleiben vollständig sichtbar.
   Nummer und Punkt stehen im linken Kolumnenfeld, der Text folgt der Kapitelkolumne. */

.service-rail {
  position: relative;
  display: grid;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Der Pfad verbindet die Schritte; er ist Schmuck und trägt keine Information. */
.service-rail::before {
  content: '';
  position: absolute;
  inset-block: 14px 14px;
  inset-inline-start: 5px;
  width: 1px;
  background: var(--line);
  transform-origin: top;
}
/* Die Linie wächst beim ersten Eintritt in den Sichtbereich; ohne JavaScript und ohne Observer bleibt sie vollständig sichtbar. */
.service-rail[data-rail='armed']::before { transform: scaleY(0); }
.service-rail[data-rail='grown']::before { transform: scaleY(1); transition: transform 600ms var(--ease); }

.service {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0 56px;
  align-items: start;
  min-width: 0;
}
.service .number { padding-left: 34px; }
.service::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--background);
  border: 1px solid var(--line);
  transition: background-color 250ms var(--ease), border-color 250ms var(--ease), transform 250ms var(--ease);
}
/* Der Punkt bezeichnet allein die Leseposition. Er reagiert nicht auf Berührung des Schritts,
   sonst leuchten zwei Punkte und der Nutzer kann der Leseposition nicht mehr vertrauen. */
.service.is-current::after {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.18);
}
.service-rail .service:target::before { inset-inline-start: 17px; }
.service-body { min-width: 0; max-width: 720px; }
.service h3 { font-size: 1.375rem; line-height: 1.3; font-weight: 500; text-wrap: balance; }
.service-body > p { margin-top: 14px; color: var(--muted); }
.chapter-cta { margin-top: 64px; }

/* Schwerpunkte */

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px;
}
.focus { min-width: 0; }
.focus h3 { margin-top: 12px; font-size: 1.375rem; line-height: 1.3; font-weight: 500; text-wrap: balance; }
.focus-topics { margin-top: 18px; font-size: .9375rem; line-height: 1.7; color: var(--muted); }
.focus-topics li::before { content: '/ '; color: var(--accent); }
.focus-body { margin-top: 18px; max-width: 720px; color: var(--muted); }

/* Über mich */

.about {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px 64px;
  align-items: start;
}
.about-portrait { margin: 0; }
.about-image { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 70% center; }
.about-name { margin-bottom: 18px; font-size: 1rem; font-weight: 600; }
.about-copy { max-width: 680px; }
.about-copy p { color: var(--muted); }
.about-copy p + p { margin-top: 18px; }

.career { margin-top: 72px; display: grid; gap: 32px; }
.career-item { display: grid; grid-template-columns: auto 1fr; gap: 0 28px; align-items: start; }
.career-body { min-width: 0; max-width: 720px; }
.career-body h3 { font-size: 1.375rem; line-height: 1.3; font-weight: 500; }
.career-subtitle { margin-top: 6px; font-weight: 400; color: var(--muted); }
.career-body p:last-child { margin-top: 14px; color: var(--muted); }

/* Kontakt */

.contact { padding-bottom: 52px; }
/* Kontakt: Ansprache und Adresse folgen der Kolumnstellung des Kapitelkopfs. */
.contact-body { display: grid; grid-template-columns: 1fr 2fr; gap: 18px 56px; }
.contact-body > * { grid-column: 2; min-width: 0; }
.contact-description { color: var(--muted); }
.email {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  min-height: 48px;
  margin-top: 30px;
  padding-bottom: 8px;
  font-size: 2rem;
  font-weight: 500;
}
.email .arrow { transition: transform 300ms var(--ease); }
.email:is(:hover, :focus-visible) .arrow { transform: translate(4px, -4px); }
.email.phone { margin-top: 0; font-variant-numeric: tabular-nums; }

/* Fußzeile */

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 32px;
  padding-block: 28px;
  border-top: 1px solid var(--line);
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--muted);
}
.footer nav { display: flex; gap: 12px 24px; flex-wrap: wrap; }
.footer nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .8125rem; }
.draft-note { font-size: .75rem; }

/* Rechteseiten */

.draft { padding: 12px 20px; text-align: center; color: var(--muted); font-size: .8125rem; }
.legal { max-width: 800px; padding-block: 56px 88px; }
.legal h1 { font-size: 2.25rem; line-height: 1.2; margin-block: 18px 28px; }
.legal h2 { font-size: 1.375rem; line-height: 1.3; margin-block: 32px 12px; }
.legal p { margin-bottom: 16px; color: var(--muted); overflow-wrap: anywhere; }
.legal a { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }
.legal .notice { padding-left: 20px; border-left: 2px solid var(--accent); color: var(--text); }
.source-entry { padding-top: 36px; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 8px; font-size: .875rem; color: var(--muted); }

/* --- Bewegung --------------------------------------------------------- */

/* Vorgehalten ist nur, was JavaScript tatsächlich einblenden kann.
   Ohne JavaScript, ohne IntersectionObserver und bei reduzierter Bewegung bleibt jeder Inhalt unverändert sichtbar. */
[data-js='on'] .reveal-armed { opacity: 0; }

/* Ziel eines Sprunglinks: 2 px senkrechter Markierer in Resedagrün, zusätzlich zur Beschriftung. */
:is(.stat, .service, .focus, .career-item, .source-entry):target { position: relative; }
:is(.stat, .service, .focus, .career-item, .source-entry):target::before {
  content: '';
  position: absolute;
  inset-block: 8px;
  inset-inline-start: calc(-1 * var(--target-gap));
  width: 2px;
  background: var(--accent);
}

/* --- Umbruchpunkte ---------------------------------------------------- */

@media (max-width: 1100px) {
  :root { --gutter: 32px; --header-offset: 116px; }
  .hero { grid-template-columns: 1fr; gap: 44px; padding-block: 56px 72px; }
  .hero-name { font-size: 6rem; }
  .hero-slogan { font-size: 2.25rem; }
  .chapter-head { grid-template-columns: 1fr 2.5fr; gap: 20px 40px; }
  .header-cta { display: none; }
  .service-rail { gap: 34px; }
  .service { grid-template-columns: 1fr 2.5fr; gap: 0 40px; }
  .contact-body { grid-template-columns: 1fr 2.5fr; gap: 16px 40px; }
  .focus-grid { gap: 40px; }
}

@media (max-width: 850px) {
  .focus-grid { grid-template-columns: 1fr; gap: 40px; }
  .about { grid-template-columns: 220px 1fr; gap: 20px 36px; }
  .stat { grid-template-columns: minmax(0, 1fr); gap: 0; align-items: start; padding-block: 26px; }
  /* Auch die spezifischeren Desktop-Positionen zurücksetzen: keine unsichtbare zweite Spalte. */
  .stat > .stat-value,
  .stat > h3,
  .stat > .stat-note,
  .stat > .source { grid-column: 1; grid-row: auto; }
  .stat > h3 { margin-top: 12px; }
  .stat > .stat-note { margin-top: 8px; }
  .stat > .source { margin-top: 12px; }
  .stat-value { font-size: 3rem; }
}

@media (max-width: 700px) {
  :root { --gutter: 20px; --header-offset: 92px; --target-gap: 16px; }
  .header { min-height: 68px; gap: 16px; flex-wrap: wrap; }
  .brand { font-size: 1.25rem; }
  .header-current { display: block; margin-right: auto; }
  /* Kontakt bleibt auf Mobilgeräten erreichbar, ohne das Menü öffnen zu müssen. */
  .header-cta { display: inline-flex; }
  .menu-toggle { margin-left: 0; }
  .primary-nav {
    order: 5;
    position: static;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .primary-nav a { min-height: 48px; font-size: 1rem; }
  /* Mit JavaScript wird die Navigation zu einem aufklappbaren Menü. Ohne JavaScript bleibt sie dauerhaft sichtbar. */
  [data-menu='on'] .menu-toggle { display: inline-flex; }
  [data-menu='on'] .primary-nav { display: none; position: absolute; inset: 68px 0 auto; padding: 8px var(--gutter) 24px; background: #000; border-bottom: 1px solid var(--line); }
  [data-menu='on'] body.nav-open .primary-nav { display: flex; flex-wrap: nowrap; }
  .chapter-head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 30px; }
  /* Kantenausgleich: ohne die zweite Rasterspalte bleibt der Inhalt in der Spurbreite und kann schrumpfen. */
  .chapter-body, .contact-body { grid-column: auto; }
  .contact-body { grid-template-columns: 1fr; }
  .contact-body > * { grid-column: auto; }
  .chapter { padding-block: 28px 60px; }
  .chapter-intro { line-height: 1.6; }
  .hero { padding-block: 36px 56px; gap: 32px; }
  .hero-name { font-size: 4.5rem; }
  .hero-slogan { font-size: 2rem; margin-top: 16px; }
  .hero-lead { font-size: 1.25rem; }
  .hero-description { line-height: 1.6; }
  .hero-actions { gap: 6px 28px; }
  .chapter-statement h2, .hero h1, .legal h1 { font-size: 1.875rem; }
  .service-rail { gap: 28px; padding-left: 26px; }
  .service { grid-template-columns: 1fr; gap: 10px; }
  .service .number { padding-left: 0; }
  .service::after { inset-inline-start: -26px; }
  .service-rail .service:target::before { inset-inline-start: -17px; }
  .contact-body { grid-template-columns: 1fr; gap: 12px; }
  .contact-body > * { grid-column: 1; }
  .service h3, .focus h3, .stat h3, .career-body h3 { font-size: 1.25rem; }
  .about { grid-template-columns: 1fr; }
  .about-image { max-width: 220px; }
  .career { margin-top: 48px; }
  .statement { font-size: 1.375rem; }
  .email { font-size: 1.5rem; }
  .legal { padding-block: 32px 56px; }
}

@media (max-width: 700px) {
  /* Kopfzeile: eine Zeile, Kontaktlink und Menü als Grafik mit vollständigem Bedienungsnamen. */
  .header-cta-label,
  .menu-label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .header-cta { width: 48px; justify-content: center; gap: 0; padding-inline: 0; }
  .header-cta::after { display: none; }
  .header-cta .arrow { display: none; }
  .header-cta .icon-mail { display: block; }
  .menu-toggle { position: relative; width: 44px; justify-content: center; gap: 0; }
}

@media (max-width: 420px) {
  /* Auf Smartphones tritt die Kapitelanzeige zurück. */
  .header-current { display: none; }
  .hero-name { font-size: 3.5rem; }
  .hero-slogan { font-size: 1.75rem; }
  .stat-value { font-size: 2.5rem; }
}

@media (max-width: 350px) {
  .hero-name { font-size: 3rem; }
  .hero-slogan { font-size: 1.5rem; }
}

/* --- Reduzierte Bewegung ---------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  /* Ohne Bewegung darf nichts verborgen bleiben. */
  [data-js='on'] .reveal-armed { opacity: 1; }
  .service-rail[data-rail='armed']::before { transform: none; }
  .button-primary::after, .email::after { transform: scaleX(1); }
  .primary-nav a::after { transform: scaleX(1); opacity: 0; }
  .primary-nav a[aria-current='location']::after { opacity: 1; }
}

/* --- Erzwungene Farben (Windows Hochkontrast und vergleichbare Einstellungen) --- */

/* Systemfarben ersetzen die Markenfarben; eigenständig gezeichnete Elemente
   bleiben dadurch sichtbar und bedienbar. */
@media (forced-colors: active) {
  .header-shell { background: Canvas; backdrop-filter: none; border-bottom: 1px solid CanvasText; }
  [data-menu='on'] .primary-nav { background: Canvas; border-bottom: 1px solid CanvasText; }
  :is(a, button, summary, [tabindex]):focus-visible { outline: 2px solid Highlight; outline-offset: 7px; }
  ::selection { background: Highlight; color: HighlightText; }
  .scroll-progress span,
  .primary-nav a::after,
  .header-cta::after,
  .button-primary::after,
  .email::after { background: LinkText; }
  .service-rail::before { background: CanvasText; }
  .service::after { background: Canvas; border-color: CanvasText; }
  .service.is-current::after { background: Highlight; border-color: Highlight; }
  .chapter.is-active > .chapter-head .eyebrow { color: CanvasText; }
  :is(.stat, .service, .focus, .career-item, .source-entry):target::before { background: Highlight; }
  .skip { background: Canvas; color: CanvasText; outline: 2px solid Highlight; }
}

/* --- Druck ------------------------------------------------------------ */

@media print {
  :root { color: #000000; background: #FFFFFF; color-scheme: light; }
  body { background: #FFFFFF; overflow: visible; }
  .wrap { width: 100%; max-width: none; }
  .header-shell, .scroll-progress, .menu-toggle, .skip, .hero-actions, .chapter-cta, .footer nav { display: none !important; }
  .header { min-height: 0; }
  .hero { display: block; padding-block: 24px; }
  .hero-copy { margin-top: 24px; }
  .chapter { padding-block: 20px; }
  .stat, .stat + .stat { padding-block: 14px; }
  /* Der Prozesspfad ist Bildschmuck; auf Papier tragen Nummer und Text allein. */
  .service { grid-template-columns: 1fr; gap: 4px; }
  .service .number { padding-left: 0; }
  .service p, .chapter-intro, .stat-note, .focus-body, .career-body p, .contact-description, .bridge, .data-note, .legal p, .footer { color: #292929; }
  .stat-value { font-size: 2.5rem; }
  .service-rail { grid-template-columns: 1fr 1fr; gap: 14px 32px; padding-left: 0; }
  .service-rail::before, .service::after { display: none; }
  .focus-grid { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 150px 1fr; }
  .source > p, .primary-nav { display: block !important; }
  .primary-nav { position: static; flex-direction: row; gap: 18px; background: none; border: 0; padding: 0; }
  [data-js='on'] .reveal-armed { opacity: 1 !important; }
  [data-reveal], [data-reveal-item] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
