/* amrit.codes – Startseite, Impressum, Datenschutz und 404 (KI-Beratung im Fokus).
   Look: Mitternacht und Mint, Überschriften im Code-Look.
   Eigenständig: lädt weder base.css noch landing.css, damit die Orbit-Hop-Seiten unberührt bleiben. */

/* ===== Schriften (selbst gehostet) ===== */
@font-face {
  font-family: 'DM Sans'; font-style: normal; font-weight: 100 1000; font-display: swap;
  src: url('../fonts/dm-sans-normal.woff2') format('woff2');
}
/* JetBrains Mono, SIL Open Font License 1.1, Lizenztext: fonts/OFL-jetbrains-mono.txt */
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url('../fonts/jetbrains-mono.woff2') format('woff2');
}

/* ===== Tokens =====
   paper = heller Grund · tint = getönte Fläche · ink/ink-soft/muted = Schrift auf Hell
   mint = Leitfarbe für Flächen, Marken und Linien (es gibt bewusst keinen dritten Farbton)
   deep/deeper = Mitternachtsblau der Bänder · on-deep = Schrift darauf
   Mint trägt nie Schrift auf hellem Grund (zu wenig Kontrast), sondern immer dunkle Schrift auf Mint
   oder Mint auf Mitternachtsblau. Alle Schrift-Kombinationen erreichen mindestens 4.5:1. */
:root {
  --paper: #f8fafb; --tint: #e3ecf6; --line: #c8d6e6;
  --ink: #0a1a2b; --ink-soft: #2a3b4d; --muted: #536474;
  --mint: #5fe3c8; --mint-strong: #34cfae; --on-mint: #0a1a2b;
  --deep: #0b1e33; --deeper: #071526; --line-deep: #1f3a55;
  --on-deep: #eef6f8; --on-deep-muted: #9fb6c7;

  --font-display: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 2.5rem + 5vw, 7.5rem);
  --radius: 6px;
  --header-h: 4.5rem;
}

/* ===== Reset und Grundlage ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--mint); color: var(--on-mint); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100%; left: var(--gutter); z-index: 1000;
  background: var(--ink); color: #fff; padding: 0.75rem 1.25rem;
  border-radius: var(--radius); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

/* ===== Typografie ===== */
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); font-weight: 700; letter-spacing: -0.04em; }
h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.25rem); line-height: 1.16; letter-spacing: -0.05em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.18; }
h3 { font-size: 1.15rem; line-height: 1.3; }
p + p { margin-top: 1em; }
strong { color: var(--ink); font-weight: 600; }
/* Hervorhebung in der Hauptüberschrift: kräftige Mint-Linie unter dem Text */
.hl {
  text-decoration: underline; text-decoration-color: var(--mint-strong);
  text-decoration-thickness: 0.1em; text-underline-offset: 0.17em;
  text-decoration-skip-ink: none;
}

/* Kleine Marken: dunkle Code-Schrift auf Mint */
.tag {
  display: inline-block; justify-self: start; align-self: start;
  font-family: var(--font-display); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.2;
  background: var(--mint); color: var(--on-mint);
  padding: 0.4rem 0.65rem; border-radius: 4px;
}

/* ===== Buttons und Links ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.9rem 1.5rem; border-radius: var(--radius);
  font-weight: 700; font-size: 0.975rem; line-height: 1.2; text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn svg { flex: none; }
.btn--primary { background: var(--mint); color: var(--on-mint); }
.btn--primary:hover { background: var(--ink); color: var(--mint); }
.section--deep .btn--primary:hover { background: var(--on-deep); color: var(--ink); }
.btn--small { padding: 0.6rem 1.05rem; font-size: 0.925rem; }
.btn:disabled, .btn:disabled:hover { opacity: 0.6; cursor: progress; }
.link {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 600; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--mint-strong);
  text-decoration-thickness: 2px; text-underline-offset: 0.3em;
  transition: text-decoration-color 0.2s ease;
}
.link:hover { text-decoration-color: var(--ink); }

/* ===== Kopfzeile ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--deep);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav--scrolled { border-bottom-color: var(--line-deep); }
.nav :focus-visible, .mobile-menu :focus-visible, .page-header :focus-visible { outline-color: var(--mint); }
.nav .btn--primary:hover, .mobile-menu .btn--primary:hover { background: var(--on-deep); color: var(--ink); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.nav__logo, .page-header__logo, .footer__brand {
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.04em;
  color: var(--on-deep); text-decoration: none;
}
.nav__logo span, .page-header__logo span, .footer__brand span { color: var(--mint); }
.nav__links { display: none; align-items: center; gap: 2rem; }
.nav__link {
  font-size: 0.95rem; font-weight: 500; color: var(--on-deep-muted); text-decoration: none;
  padding: 0.4rem 0; border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav__link:hover { color: var(--on-deep); }
.nav__link--active { color: var(--on-deep); border-bottom-color: var(--mint); }

.hamburger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
  width: 44px; height: 44px; margin-right: -10px; padding: 10px;
}
.hamburger span { display: block; height: 1.5px; background: var(--on-deep); transition: transform 0.25s ease, opacity 0.2s ease; }
.hamburger--open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger--open span:nth-child(2) { opacity: 0; }
.hamburger--open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 90;
  background: var(--deep); border-top: 1px solid var(--line-deep);
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 1.5rem var(--gutter) 2rem;
  opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s ease;
}
.mobile-menu--open { opacity: 1; visibility: visible; }
.mobile-menu__link {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.04em;
  color: var(--on-deep); text-decoration: none;
  padding: 0.9rem 0; border-bottom: 1px solid var(--line-deep);
}
.mobile-menu__link.btn {
  font-family: var(--font-body); font-size: 1rem; letter-spacing: 0; color: var(--on-mint);
  margin-top: 1.5rem; padding: 1rem 1.5rem; border-bottom: none;
}

/* ===== Hero (getönte Fläche) ===== */
.hero { background: var(--tint); padding: clamp(3rem, 1.5rem + 7vw, 7rem) 0 clamp(3rem, 2rem + 4vw, 5rem); }
.hero__grid { display: grid; gap: 2.75rem; }
.hero h1 { max-width: 22ch; margin-top: 1.5rem; }
.hero__sub { max-width: 40rem; margin-top: 1.75rem; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); line-height: 1.6; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: 2.5rem; }
.hero__facts {
  display: grid; gap: 0; margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  border-top: 1px solid var(--line);
}
.hero__facts li { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.hero__facts strong { display: block; font-size: 1rem; }
.hero__facts span { display: block; font-size: 0.925rem; color: var(--muted); line-height: 1.5; margin-top: 0.15rem; }

/* Beispiel-Ablauf im Hero: die einzige Animation der Seite */
.flow { width: 100%; max-width: 24rem; transition: opacity 0.35s ease; }
.flow.is-resetting { opacity: 0.35; }
.flow__caption {
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem;
}
.flow__node {
  display: flex; align-items: center; gap: 0.9rem;
  background: #ffffff; border: 1.5px solid var(--line); border-radius: 12px; padding: 0.8rem 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.flow__icon {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 9px; background: var(--tint); color: var(--ink);
  transition: background-color 0.3s ease;
}
.flow__icon svg { width: 1.3rem; height: 1.3rem; }
.flow__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.flow__text strong { font-size: 0.95rem; }
.flow__text > span { font-size: 0.82rem; color: var(--muted); }
.flow__ai {
  display: inline-block; margin-left: 0.4rem; vertical-align: 0.1em;
  font-family: var(--font-display); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em;
  background: var(--deep); color: var(--mint); padding: 0.14rem 0.4rem; border-radius: 4px;
}
/* Zustandsanzeige rechts: leerer Kreis, pulsierender Ring, Haken auf Mint */
.flow__state {
  position: relative; flex: none; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  border: 2px solid var(--line); transition: border-color 0.3s ease, background-color 0.3s ease;
}
.flow__state::after {
  content: ''; position: absolute; left: 50%; top: 45%; width: 0.3rem; height: 0.56rem;
  border: solid var(--on-mint); border-width: 0 2px 2px 0;
  transform: translate(-50%, -50%) rotate(45deg) scale(0); transition: transform 0.25s ease;
}
.flow__node.is-active { border-color: var(--mint-strong); box-shadow: 0 10px 26px -14px rgba(11, 30, 51, 0.45); }
.flow__node.is-active .flow__icon { background: var(--mint); }
.flow__node.is-active .flow__state { border-color: var(--mint-strong); animation: flow-pulse 0.9s ease-in-out infinite; }
.flow__node.is-done .flow__state { border-color: var(--mint); background: var(--mint); }
.flow__node.is-done .flow__state::after { transform: translate(-50%, -50%) rotate(45deg) scale(1); }
/* Verbindung: graue Linie, die sich in Mint füllt, sobald der Schritt darüber erledigt ist */
.flow__link { position: relative; display: block; width: 2px; height: 1.15rem; margin-left: calc(1rem + 1.25rem); background: var(--line); }
.flow__link::after {
  content: ''; position: absolute; inset: 0; background: var(--mint-strong);
  transform: scaleY(0); transform-origin: top; transition: transform 0.45s ease;
}
.flow__link.is-on::after { transform: scaleY(1); }
@keyframes flow-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(52, 207, 174, 0.55); } 50% { box-shadow: 0 0 0 6px rgba(52, 207, 174, 0); } }

/* ===== Sektionen ===== */
.section { padding: var(--section) 0; }
.section--tint { background: var(--tint); }
.section--deep { background: var(--deep); color: var(--on-deep-muted); }
.section--deep h2, .section--deep h3, .section--deep strong { color: var(--on-deep); }
.section--deep :focus-visible { outline-color: var(--mint); }
.section__grid { display: grid; gap: 1.5rem; }
.section__intro { max-width: 40rem; margin-top: 1.25rem; font-size: 1.125rem; }
.section__body > h2 { max-width: 26ch; }
.block { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }

/* ===== Leistungen ===== */
.services { border-bottom: 1px solid var(--line); }
.service { display: grid; gap: 0.75rem; padding: 2rem 0; border-top: 1px solid var(--line); }
.service__text { max-width: 38rem; }
.service__result { margin-top: 0.9rem; font-size: 0.95rem; color: var(--muted); }
.service__result b {
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); margin-right: 0.5rem;
}

/* ===== Für wen (Mitternachts-Band) ===== */
.audience { display: grid; gap: 2rem; }
.audience__item { border-top: 3px solid var(--mint); padding-top: 1.25rem; }
.audience__item p { margin-top: 0.6rem; }

/* ===== Vorgehen ===== */
.steps { display: grid; gap: 0; counter-reset: step; }
.step { padding: 1.5rem 0; border-top: 3px solid var(--mint); counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700; line-height: 1; letter-spacing: -0.04em;
  color: var(--ink); margin-bottom: 0.9rem;
}
.step p { margin-top: 0.6rem; font-size: 1rem; }

/* ===== Entwicklung (getönte Fläche) ===== */
.dev-services { display: grid; gap: 2rem; }
.dev-services h3 { font-size: 1.05rem; }
.dev-services p { margin-top: 0.5rem; font-size: 1rem; }
.facts { display: flex; flex-wrap: wrap; gap: 1.5rem 3.5rem; }
.facts dt { font-size: 0.925rem; color: var(--muted); }
.facts dd {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; line-height: 1;
  color: var(--ink); letter-spacing: -0.05em;
}
.facts div { display: flex; flex-direction: column-reverse; gap: 0.4rem; padding-left: 1rem; border-left: 3px solid var(--mint-strong); }
.subhead {
  font-family: var(--font-display); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  padding-bottom: 1rem;
}
.cases { border-bottom: 1px solid var(--line); }
.case { display: grid; gap: 0.9rem; padding: 1.75rem 0; border-top: 1px solid var(--line); }
.case__rows { display: grid; gap: 0.9rem; }
.case__rows dt {
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.case__rows dd { font-size: 1rem; margin-top: 0.15rem; }
.case .link { margin-top: 0.25rem; font-size: 0.95rem; }

/* ===== Kontakt (Mitternachts-Band) ===== */
.contact { display: grid; gap: 3rem; }
.contact__intro h2 { margin-top: 1.25rem; }
.contact__text { max-width: 30rem; margin-top: 1.25rem; font-size: 1.125rem; }
.contact__mail { margin-top: 2rem; }
.contact__mail span { display: block; font-size: 0.925rem; }
.contact__mail a {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; letter-spacing: -0.03em;
  color: var(--on-deep); text-decoration: underline;
  text-decoration-color: var(--mint); text-decoration-thickness: 2px; text-underline-offset: 0.35em;
}
.contact__mail a:hover { color: var(--mint); }

.contact-form { display: grid; gap: 1.25rem; }
.contact-form__label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--on-deep); margin-bottom: 0.4rem; }
.contact-form__field {
  width: 100%; font: inherit; color: var(--on-deep);
  background: var(--deeper); border: 1px solid var(--line-deep); border-radius: var(--radius);
  padding: 0.85rem 1rem; transition: border-color 0.2s ease;
}
.contact-form__field::placeholder { color: var(--on-deep-muted); opacity: 0.75; }
.contact-form__field:hover { border-color: var(--on-deep-muted); }
.contact-form__field:focus { outline: none; border-color: var(--mint); }
textarea.contact-form__field { min-height: 9rem; resize: vertical; }
.contact-form__honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__note { font-size: 0.875rem; line-height: 1.5; }
.contact-form__note a, .contact-form__error a { color: var(--on-deep); }
.contact-form__error {
  font-size: 0.95rem; color: var(--on-deep);
  border: 1px solid var(--mint); border-radius: var(--radius); padding: 0.85rem 1rem;
}
.contact-form .btn { justify-self: start; }
.contact-form__success {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.04em;
  color: var(--on-deep); line-height: 1.3;
  border: 1px solid var(--line-deep); border-left: 3px solid var(--mint); border-radius: var(--radius); padding: 2rem;
}
.contact-form__success span {
  display: block; margin-top: 0.5rem;
  font-family: var(--font-body); font-size: 1rem; font-weight: 400; letter-spacing: 0; color: var(--on-deep-muted);
}

/* ===== Fußzeile ===== */
.footer { background: var(--deeper); color: var(--on-deep-muted); padding: 3.5rem 0 2rem; font-size: 0.95rem; }
.footer__inner { display: grid; gap: 2.5rem; }
.footer__tagline { margin-top: 0.4rem; max-width: 22rem; }
.footer__title {
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--mint); margin-bottom: 0.6rem;
}
.footer__link { display: block; padding: 0.35rem 0; color: var(--on-deep-muted); text-decoration: none; transition: color 0.2s ease; }
.footer__link:hover { color: var(--mint); }
.footer :focus-visible { outline-color: var(--mint); }
.footer__copy { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-deep); font-size: 0.85rem; }

/* ===== Textseiten: Impressum, Datenschutz, 404 ===== */
body:has(> .legal-content) { min-height: 100vh; display: flex; flex-direction: column; font-size: 1rem; }
.page-header { background: var(--deep); }
.page-header__inner, .legal-content__inner, .page-footer__inner {
  width: 100%; max-width: calc(46rem + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter);
}
.page-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.page-header__logo { padding: 0.5rem 0; }
.page-header__back {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.6rem 0;
  font-size: 0.925rem; font-weight: 500; color: var(--on-deep-muted); text-decoration: none;
  transition: color 0.2s ease;
}
.page-header__back:hover { color: var(--mint); }

.legal-content { flex: 1; padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0 var(--section); }
.legal-content h1 { font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.5rem); line-height: 1.15; overflow-wrap: anywhere; hyphens: auto; }
.legal-content__updated {
  margin: 0.75rem 0 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line);
  font-size: 0.9rem; color: var(--muted);
}
.legal-content h2 { font-size: 1.2rem; line-height: 1.3; margin: 2.75rem 0 0.75rem; }
.legal-content--sectioned h2 { padding-top: 2rem; border-top: 1px solid var(--line); }
.legal-content--sectioned h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.legal-content h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; letter-spacing: 0; margin: 1.5rem 0 0.5rem; }
.legal-content p, .legal-content p + p { margin: 0 0 0.75rem; }
.legal-content a {
  overflow-wrap: anywhere;   /* lange E-Mail- und Webadressen umbrechen statt überstehen */
  color: var(--ink); font-weight: 500; text-decoration: underline;
  text-decoration-color: var(--mint-strong); text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.legal-content a:hover { text-decoration-color: var(--ink); }
.legal-content ul { margin: 0.5rem 0 0.75rem; }
.legal-content ul li { position: relative; padding-left: 1.25rem; margin-bottom: 0.35rem; }
.legal-content ul li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 0.6rem; height: 3px; border-radius: 2px; background: var(--mint-strong); }
.address-block {
  background: var(--tint); border-left: 3px solid var(--mint-strong);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1.25rem 1.5rem; margin: 1rem 0;
}
.address-block p { margin: 0; line-height: 1.9; }
.note-box, .info-box, .positive-box { border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1rem 0; font-size: 0.925rem; }
.note-box { background: var(--tint); border: 1px solid var(--line); }
.info-box { background: var(--tint); }
.info-box p { margin: 0; }
.info-box p + p { margin: 0.4rem 0 0; }
.positive-box { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--mint-strong); }
.label {
  display: inline-block; margin-bottom: 0.25rem;
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink);
}
.toc { background: var(--tint); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 3rem; }
.toc__title {
  font-family: var(--font-display); font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); margin-bottom: 0.5rem;
}
.legal-content .toc ul { margin: 0; }
.legal-content .toc ul li { margin: 0; padding-left: 0; }
.legal-content .toc ul li::before { display: none; }
.legal-content .toc a { display: inline-block; padding: 0.7rem 0; font-size: 0.925rem; font-weight: 400; color: var(--ink-soft); text-decoration: none; }
.legal-content .toc a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--mint-strong); }
/* Automatische Nummerierung: ausgeblendete Abschnitte zählen nicht mit */
.legal-content--counted { counter-reset: sec; }
.legal-content--counted h2::before { counter-increment: sec; content: counter(sec) ". "; }
.toc--counted ul { counter-reset: toc; }
.toc--counted a::before { counter-increment: toc; content: counter(toc) ". "; }

.page-footer { background: var(--deeper); color: var(--on-deep-muted); padding: 2rem 0; text-align: center; font-size: 0.875rem; }
.page-footer :focus-visible { outline-color: var(--mint); }
.page-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.5rem; margin-bottom: 1rem; }
.page-footer__links a { display: inline-block; padding: 0.65rem 0.25rem; color: var(--on-deep-muted); text-decoration: none; transition: color 0.2s ease; }
.page-footer__links a:hover, .page-footer__links a[aria-current="page"] { color: var(--mint); }

/* 404 */
.not-found { padding-top: 1rem; }
.legal-content .not-found p.not-found__code {
  display: inline-block; margin-bottom: 1.5rem;
  font-family: var(--font-display); font-size: clamp(3.5rem, 2.5rem + 9vw, 6.5rem); font-weight: 800;
  line-height: 1; letter-spacing: -0.06em;
  background: var(--mint); color: var(--on-mint); padding: 0.08em 0.2em; border-radius: var(--radius);
}
.not-found__text { max-width: 34rem; margin-top: 1rem; font-size: 1.0625rem; }
.not-found__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: 2rem; }
.legal-content a.btn { text-decoration: none; font-weight: 700; }
.legal-content a.btn--primary { color: var(--on-mint); }
.legal-content a.btn--primary:hover { color: var(--mint); }
.legal-content a.link { font-weight: 600; }

/* ===== Ab Tablet ===== */
@media (min-width: 700px) {
  .hero__facts { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
  .hero__facts li { padding: 1.5rem 2rem 1.5rem 0; border-bottom: none; }
  .hero__facts li + li { padding-left: 2rem; border-left: 1px solid var(--line); }
  .audience { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; }
  .dev-services { grid-template-columns: repeat(3, 1fr); }
  .service { grid-template-columns: 1fr 1.6fr; column-gap: 2.5rem; align-items: start; }
  .case { grid-template-columns: 1fr 1.6fr; column-gap: 2.5rem; align-items: start; }
  .footer__inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* ===== Ab Desktop ===== */
@media (min-width: 960px) {
  .nav__links { display: flex; }
  .hamburger, .mobile-menu { display: none; }
  .hero__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr); column-gap: 3.5rem; align-items: center; }
  .flow { justify-self: end; }
  .section__grid { grid-template-columns: 13rem 1fr; column-gap: 3rem; }
  .section__grid > .tag { margin-top: 0.35rem; }
  .steps { grid-template-columns: repeat(4, 1fr); column-gap: 2rem; }
  .step { padding-bottom: 0; }
  .contact { grid-template-columns: 1fr 1fr; column-gap: 5rem; align-items: start; }
}

/* Schmale Zweispalter (z. B. iPad quer): Hauptüberschrift etwas kleiner, damit sie dreizeilig bleibt */
@media (min-width: 960px) and (max-width: 1199px) {
  h1 { font-size: 2.7rem; }
}

/* ===== Weniger Bewegung ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .flow__state { animation: none !important; }
}
