/* =========================================================
   Nevolox "Agentic" – lokaler Prototyp (06.11.2026)
   Idee: Die Seite ist eine Arbeitsfläche, auf der KI-Agenten
   die Inhalte vor den Augen aufbauen. Das ist das eine laute
   Element; alles andere bleibt ruhig.
   ========================================================= */

@font-face { font-family: 'Poppins'; font-weight: 400; font-style: normal; font-display: swap; src: url('assets/fonts/poppins-400.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-style: normal; font-display: swap; src: url('assets/fonts/poppins-500.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-style: normal; font-display: swap; src: url('assets/fonts/poppins-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-style: normal; font-display: swap; src: url('assets/fonts/poppins-700.woff2') format('woff2'); }

:root {
  /* Marken-Anthrazit #21262D bleibt die Kartenfläche, der Grund wird eine Spur tiefer */
  --bg:        #14171C;
  --bg-alt:    #171B21;
  --surface:   #1E232A;
  --surface-2: #262C34;
  --line:      #2B313A;
  --line-2:    #3A414B;
  --text:      #F1F3F6;
  --muted:     #A6ADB8;
  --soft:      #8E95A0;
  --accent:    #4C8DF6;   /* Marken-Blau, nur für Handlungen */
  --accent-hi: #86B3FF;
  --accent-lo: rgba(76, 141, 246, 0.14);

  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(60px, 7.5vw, 100px);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background-color: var(--bg);
  /* Punktraster wie auf einer Design-Arbeitsfläche, ohne Lichthof (keine Scheine, Mario 24.11.2026) */
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.055) 1px, transparent 0);
  background-size: 26px 26px;
  background-repeat: repeat;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 6px; }
strong { font-weight: 600; color: #fff; }
h1, h2, h3 { margin: 0; font-weight: 600; color: #fff; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 4.4vw + 0.6rem, 4.4rem); line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 2.6vw + 0.7rem, 3rem); line-height: 1.1; letter-spacing: -0.025em; }
h3 { font-size: 1.15rem; line-height: 1.35; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 0.4vw + 0.95rem, 1.2rem); color: var(--muted); line-height: 1.7; max-width: 62ch; }
.lead strong { color: var(--text); }

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

/* Kleine Rubrik über Überschriften: Satzschreibung, ruhig */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.9rem; font-weight: 500; color: var(--soft);
  margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }

/* ---------- Fortschrittslinie ---------- */
.scroll-progress { position: fixed; left: 0; top: 0; bottom: 0; width: 2px; z-index: 75; background: rgba(255, 255, 255, 0.04); pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--accent); transform-origin: top; transform: scaleY(0); }

/* ---------- Kopfzeile als schwebende Leiste ---------- */
.header { position: fixed; top: 14px; left: 0; right: 0; z-index: 70; padding: 0 16px; pointer-events: none; }
.header__inner {
  pointer-events: auto;
  max-width: var(--wrap); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 7px 7px 7px 22px;
  background: rgba(24, 28, 34, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.brand img { height: 22px; width: auto; }
.nav { display: flex; align-items: center; }
.nav__menu { display: flex; align-items: center; gap: 10px; }
.nav__list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__link { display: block; padding: 8px 13px; border-radius: 999px; color: var(--muted); font-size: 0.875rem; text-decoration: none; white-space: nowrap; }
.nav__link:hover, .nav__link.is-active { color: #fff; background: var(--surface-2); }
.nav__link[aria-current="page"] { color: #fff; }
.nav__cta { padding: 9px 20px; border-radius: 999px; }
.nav__toggle { display: none; }

@media (max-width: 860px) {
  .nav__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border: 0; border-radius: 999px;
    background: var(--surface-2); color: var(--text); cursor: pointer;
  }
  .nav__toggle svg { width: 20px; height: 20px; stroke: currentColor; }
  .nav__menu {
    display: none; position: absolute; top: calc(100% + 8px); left: 16px; right: 16px;
    flex-direction: column; align-items: stretch; gap: 8px; padding: 12px;
    background: #191D23; border: 1px solid var(--line); border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  }
  .nav.is-open .nav__menu { display: flex; }
  .nav__list { flex-direction: column; }
  .nav__link { padding: 12px 14px; font-size: 1rem; }
  .nav__cta { text-align: center; }
}

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 12px;
  font: 500 0.95rem/1 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .2s, border-color .2s, color .2s;
}
.btn .arrow { width: 14px; height: 14px; }
.btn--primary { background: var(--accent); color: #0E1013; font-weight: 600; }
.btn--primary:hover { background: #77A8F9; color: #0E1013; }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--secondary:hover { border-color: var(--accent-hi); color: #fff; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: default; }

/* ---------- Abschnitte ---------- */
main { display: block; }
.section { padding: var(--section) 0; position: relative; }
.section--alt { background: linear-gradient(180deg, rgba(23, 27, 33, 0.85), rgba(23, 27, 33, 0.85)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head h2 { margin-bottom: 18px; }
.demos-more { margin-top: 28px; }

/* ---------- Hero Startseite ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 110px 0 60px; position: relative; overflow: hidden; text-align: center; }
.hero > .container { flex: 1 1 auto; }
/* Der Schriftzug steht für sich: darunter die Überschrift über die volle Breite,
   erst dann Text links und Beispielkarte rechts. Nichts überlappt. */
.hero__word {
  margin: 0 auto 0.1em;
  font-size: clamp(3.6rem, 15vw, 13.5rem);
  font-weight: 700; line-height: 0.88; letter-spacing: -0.05em;
  color: #fff;
  user-select: none;
  white-space: nowrap;
}
/* Hintergrund des Kopfs: geschwungene Fassade, grau und stark zurückgenommen, nach unten in den Seitengrund
   auslaufend. Dieselbe Behandlung wie die Bilder im Kopf der Unterseiten. Von Mario am 24.11.2026 aus acht
   Varianten gewählt (Nr. 8, branche-bau_16). Bild ist gemeinfrei, keine Namensnennung nötig. */
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: url('bilder/hero-fassade.webp') center / cover no-repeat;
  opacity: 0.16; filter: contrast(1.1);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 23, 28, 0.35), var(--bg) 92%);
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { margin-bottom: clamp(20px, 2.6vw, 30px); font-size: clamp(1.6rem, 2.2vw + 0.8rem, 3rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.hero__grid { display: block; }
.hero__copy .lead { margin: 0 auto; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .hero__actions { justify-content: center; }
.hero__ref { margin: 34px auto 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--soft); font-size: 0.93rem; max-width: 62ch; }

/* ---------- Hero Unterseiten ---------- */
.service-hero { padding: 168px 0 72px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.service-hero__bg { position: absolute; inset: 0; z-index: 0; opacity: 0.16; filter: grayscale(1) contrast(1.1); }
.service-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.service-hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 23, 28, 0.2), var(--bg) 92%); }
.service-hero .container { position: relative; z-index: 1; }
.service-hero__inner { max-width: 860px; }
.service-hero h1 { margin-bottom: 22px; }
/* eigene Zeile: sonst rutscht die Rubrik (eyebrow) direkt hinter den Link */
.back-link { display: flex; width: max-content; align-items: center; gap: 8px; margin-bottom: 26px; color: var(--soft); font-size: 0.9rem; text-decoration: none; }
.back-link:hover { color: #fff; }
.back-link svg { width: 14px; height: 14px; stroke: currentColor; }

.error-hero { padding-top: 180px; min-height: 70vh; }

/* ---------- Über uns ---------- */
/* Werte als schlichte Zeilen mit Linie statt als Kästen: Sie tragen nur noch eine Aussage. */
.about-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 32px; margin-top: 8px; }
.value-card { padding: 18px 0 0; border-top: 1px solid var(--line); }
.value-card h3 { margin-bottom: 0; }
.reference-band {
  margin-top: 40px; padding: 30px 32px; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: var(--surface);
}
.reference-band .eyebrow { margin-bottom: 10px; }
.reference-band h3 { font-size: 1.4rem; margin-bottom: 8px; }
.reference-band p { color: var(--muted); margin: 0; max-width: 70ch; }

/* ---------- Ablauf (echte Reihenfolge, daher nummeriert) ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
.step { padding: 26px 22px 6px 0; border-right: 1px solid var(--line); margin-right: 22px; }
.step:last-child { border-right: 0; margin-right: 0; }
.step__num { font-size: 0.85rem; font-weight: 600; color: var(--accent-hi); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.93rem; }

/* ---------- Formate (Schulungsseite) ---------- */
.tier-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tier-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 26px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line);
}
.tier-card__step { font-size: 0.85rem; color: var(--soft); font-weight: 500; }
.tier-card__list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.tier-card__list li { position: relative; padding-left: 20px; color: var(--muted); font-size: 0.93rem; line-height: 1.55; }
.tier-card__list li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 8px; height: 2px; background: var(--accent); }
.tier-card .btn { margin-top: auto; align-self: flex-start; }

/* Abschluss-Aufruf */
.final-cta { max-width: 760px; margin: 0 auto; padding: 8px 0; text-align: center; }
.final-cta .lead { margin-left: auto; margin-right: auto; }
.final-cta h2 { margin-bottom: 18px; }
.final-cta .btn { margin-top: 12px; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-info { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-info__row { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-info__label { font-size: 0.82rem; color: var(--soft); margin-bottom: 4px; }
.contact-info__value { font-size: 1.05rem; color: var(--text); }
.contact-info__value a { color: var(--text); text-decoration: none; }
.contact-info__value a:hover { color: var(--accent-hi); }
.form { padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.85rem; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px;
  background: var(--bg); border: 1px solid #667080; color: var(--text);
  font: 400 1rem/1.5 var(--font);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #858C97; }
.field [aria-invalid="true"] { border-color: #FCA5A5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-lo); }
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__hint { font-size: 0.82rem; color: var(--soft); margin: 0; }
.form__status { padding: 12px 14px; border-radius: 10px; font-size: 0.92rem; }
.form__status.is-success { background: rgba(134, 239, 172, 0.1); color: #BBF7D0; }
.form__status.is-error { background: rgba(252, 165, 165, 0.1); color: #FECACA; }

/* ---------- Rechtliches ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.legal h3 { font-size: 1.05rem; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 20px; }

/* ---------- Fußzeile ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 32px; background: #121418; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer__brand img { height: 24px; width: auto; margin-bottom: 16px; }
.footer__about { color: var(--soft); font-size: 0.92rem; max-width: 46ch; }
.footer h2 { font-size: 0.85rem; font-weight: 500; color: var(--soft); margin-bottom: 14px; letter-spacing: 0; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__links a { color: var(--muted); text-decoration: none; font-size: 0.93rem; }
.footer__links a:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--soft); font-size: 0.85rem; }
.footer__bottom a { color: var(--soft); text-decoration: none; }
.footer__bottom a:hover { color: #fff; }

/* ---------- Responsiv ---------- */
@media (max-width: 760px) {
  .hero { padding-top: 122px; }
  .hero__word { font-size: 22.5vw; margin-bottom: 0.14em; }
  .about-values, .contact-grid, .form__row, .footer__top, .tier-grid { grid-template-columns: 1fr; }
  .step { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
  .service-hero { padding-top: 132px; }
  .header__inner { padding-left: 18px; }
  /* Handy: Der Name steht schon am Auswahlrahmen. Das zweite Schild am Zeiger verdeckt hier nur Text. */
  .agent__tag { display: none; }
  /* Auch das Schild am Auswahlrahmen entfällt am Handy: zu unübersichtlich (Mario, 24.11.2026) */
  .agent-frame b { display: none; }
}

/* =========================================================
   Umbau 24.11.2026: Figuren, Zeichen, Über-uns mit Bild
   ========================================================= */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Farben der Agenten, als Klassen (CSP: keine style-Attribute) */
.c-rosa { --c: #F9A8D4; } .c-cyan { --c: #67E8F9; } .c-gelb { --c: #FDE68A; } .c-lila { --c: #C4B5FD; }
.c-gruen { --c: #86EFAC; }

/* Zweispaltig: Text links, Figur rechts */
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(28px, 5vw, 76px); align-items: center; }
.split__text > .section-head { margin-bottom: 0; }
.split__text .lead:last-child { margin-bottom: 0; }

/* Figur: ein Werkstück in der Farbe eines Agenten. Das Namensschild kommt beim Aufbau vom Agenten selbst. */
.fig {
  position: relative; margin: 0; padding: 22px 24px;
  border-radius: var(--r-md); background: var(--surface);
  border: 1px solid var(--line);
  border-color: color-mix(in srgb, var(--c, var(--line-2)) 38%, var(--line));
}
.fig__titel { display: block; font-size: 0.88rem; color: var(--soft); margin-bottom: 16px; }
.fig__note { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }

/* Wer kann was lesen */
.kann { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.kann th, .kann td { padding: 11px 0; border-top: 1px solid var(--line); text-align: left; font-weight: 400; }
.kann thead th { border-top: 0; padding-top: 0; font-size: 0.8rem; color: var(--soft); }
.kann th[scope="row"] { color: var(--text); padding-right: 12px; }
.kann td, .kann thead th + th { width: 96px; text-align: center; }
.kann svg { width: 18px; height: 18px; margin: 0 auto; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.kann .ja svg { stroke: var(--c, var(--accent-hi)); }
.kann .nein svg { stroke: #6E7580; }

/* Schrittfolge und Listen in Figuren */
.ablauf, .punkte { list-style: none; margin: 0; padding: 0; }
.ablauf li, .punkte li { position: relative; padding: 0 0 16px 26px; }
.ablauf li:last-child, .punkte li:last-child { padding-bottom: 0; }
.ablauf li::before { content: ''; position: absolute; left: 0; top: 6px; width: 9px; height: 9px; border-radius: 3px; background: var(--c, var(--accent)); }
.ablauf li::after { content: ''; position: absolute; left: 4px; top: 20px; bottom: -2px; width: 1px; background: var(--line-2); }
.ablauf li:last-child::after { display: none; }
.ablauf strong, .punkte strong { display: block; font-size: 0.98rem; font-weight: 500; color: var(--text); line-height: 1.4; }
.ablauf span, .punkte span { display: block; font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
.ablauf .ablauf__mensch::before { background: #fff; }
.punkte li::before { content: ''; position: absolute; left: 1px; top: 5px; width: 6px; height: 11px; border: solid var(--c, var(--accent-hi)); border-width: 0 2px 2px 0; transform: rotate(40deg); }

/* Über Nevolox: Bild und Text nebeneinander */
.about { display: grid; grid-template-columns: minmax(180px, 280px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; margin-bottom: 44px; }
.about > .section-head { margin-bottom: 0; max-width: 700px; }
.about__bild { margin: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.about__bild img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }

/* Responsiv für die Umbau-Teile. Steht bewusst hier unten: weiter oben würden die
   Grundregeln dieses Abschnitts die Media-Regeln wieder überschreiben. */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split > .fig { max-width: 620px; }
}
@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; gap: 24px; }
  .about__bild { max-width: 220px; }
  .kann td, .kann thead th + th { width: 64px; }
  .kann thead th { font-size: 0.8rem; }
  .fig { padding: 20px 18px; }
}

/* =========================================================
   Agenten-Ebene
   ========================================================= */
.agents { position: fixed; inset: 0; z-index: 80; pointer-events: none; overflow: hidden; }
.agents__core {
  position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  display: grid; place-items: center; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line-2);
  transition: opacity .5s, transform .5s;
}
.agents__core img { width: 24px; height: 24px; }
.agents__core.is-gone { opacity: 0; transform: scale(0.6); }

.agent { position: absolute; left: 0; top: 0; will-change: transform; }
/* Im Rand neben dem Inhalt: weiter unterwegs, aber etwas zurückgenommen */
.agent__cursor { transition: opacity .45s; }
.agent.is-docked .agent__cursor { opacity: 0.72; }
.agent__cursor {
  width: 17px; height: 17px; transform-origin: 1px 1px;
  fill: var(--c); stroke: #0E1013; stroke-width: 1.1; stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55));
}
.agent__tag {
  position: absolute; left: 13px; top: 17px;
  padding: 3px 8px; border-radius: 6px;
  background: var(--c); color: #111318;
  font: 500 11px/1.4 var(--font); white-space: nowrap;
  opacity: 0; transform: translateY(-3px) scale(0.96);
  transition: opacity .18s, transform .18s;
}
/* Das Schild am Zeiger zeigt, wer anfliegt. Beim Bauen steht der Name am Auswahlrahmen,
   ein zweites Schild würde nur den Text verdecken, der gerade entsteht. */
.agent.is-anflug .agent__tag { opacity: 1; transform: none; }

/* Auswahlrahmen, den ein Agent um sein Element legt */
.agent-frame {
  position: absolute; z-index: 65; pointer-events: none;
  border: 1px solid var(--c); border-radius: 4px;
  opacity: 0; transition: opacity .22s;
}
.agent-frame.is-on { opacity: 1; }
.agent-frame i { position: absolute; width: 7px; height: 7px; background: var(--bg); border: 1px solid var(--c); }
.agent-frame .tl { left: -4px; top: -4px; }
.agent-frame .tr { right: -4px; top: -4px; }
.agent-frame .bl { left: -4px; bottom: -4px; }
.agent-frame .br { right: -4px; bottom: -4px; }
.agent-frame b {
  position: absolute; left: -1px; bottom: calc(100% + 5px);
  padding: 2px 7px; border-radius: 4px 4px 4px 0;
  background: var(--c); color: #111318; font: 500 11px/1.5 var(--font); white-space: nowrap;
}

/* ---------- Aufbau: Liste muss mit TARGETS in agentic.js übereinstimmen ---------- */
html.agents-on :is(
  .hero__word, .hero h1, .hero .lead, .hero__actions, .hero__ref,
  .service-hero h1, .service-hero .lead, .service-hero .hero__actions,
  .error-hero h1, .error-hero .lead, .error-hero .hero__actions,
  .section-head h2, .section-head .lead, .demo, .value-card, .reference-band, .step,
  .tier-card, .final-cta h2, .final-cta .lead, .contact-info, .form, .fig, .about__bild
):not(.is-building):not(.is-typing):not(.is-built) { opacity: 0; }

html.agents-on .is-building {
  clip-path: inset(0 100% 0 0);
  animation: agent-build var(--build-ms, 650ms) cubic-bezier(.3, .6, .4, 1) forwards;
}
@keyframes agent-build { to { clip-path: inset(0 0 0 0); } }
html.agents-on .is-built { animation: agent-settle .5s ease-out; }
@keyframes agent-settle { from { filter: brightness(1.35); } to { filter: none; } }

.is-typing .ghost { color: transparent; -webkit-text-stroke-color: transparent; }
.is-typing .typed { position: relative; }
.is-typing .typed::after {
  content: ''; display: inline-block; width: 2px; height: 0.9em; margin-left: 2px;
  background: var(--accent-hi); vertical-align: -0.08em;
}
.hero__word.is-typing .typed::after { width: 6px; background: #fff; }

@media (prefers-reduced-motion: reduce) {
  .agents, .agent-frame { display: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Ausbau 24.11.2026: Live-Demo, Referenzen, Zugänglichkeit, Handy
   ========================================================= */

/* Sprunglink für Tastatur und Screenreader */
.skip { position: absolute; left: 16px; top: -64px; z-index: 90; padding: 10px 14px; border-radius: 8px; background: var(--accent); color: #0E1013; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; color: #0E1013; }
main:focus { outline: none; }

/* Zwei Referenzen nebeneinander */
.refs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.refs .reference-band { margin-top: 0; }

/* Schalter in der Fußzeile: Zeiger aus- und einblenden */
.footer__schalter { padding: 0; border: 0; background: none; font: inherit; color: var(--soft); cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.footer__schalter:hover { color: #fff; }

/* ---------- Live-Demo: links kommt etwas herein, in der Mitte wird gearbeitet, rechts liegt es bereit ---------- */
.demo { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.demo__wahl { display: flex; gap: 6px; padding: 10px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.demo__tab {
  flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 16px; border: 1px solid transparent; border-radius: 10px;
  background: transparent; color: var(--muted); font: 500 0.93rem/1.25 var(--font); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.demo__tab::before { content: ''; flex: none; width: 9px; height: 9px; border-radius: 3px; background: var(--c); opacity: .55; }
.demo__tab:hover { color: #fff; background: var(--surface); }
.demo__tab[aria-selected="true"] { background: var(--surface-2); border-color: var(--line-2); color: #fff; }
.demo__tab[aria-selected="true"]::before { opacity: 1; }

.demo__feld { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.8fr) minmax(0, 1.15fr); min-height: 610px; }
.demo__feld[hidden] { display: none; }
.demo__titel { grid-column: 1 / -1; padding: 22px 24px 0; }
.demo__spalte { position: relative; min-width: 0; padding: 22px 24px 24px; }
.demo__spalte + .demo__spalte { border-left: 1px solid var(--line); }
.demo__arbeit { display: flex; flex-direction: column; background: var(--bg-alt); }
.demo__kopf { margin: 0 0 16px; font-size: 0.85rem; color: var(--soft); }
.demo__bedarf { margin: 0 0 12px; font-size: 0.93rem; color: var(--text); }
.demo__hinweis { margin: 0; padding: 14px 24px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--soft); }

/* Eingang: das Schriftstück, so wie es ankommt */
.doc { padding: 16px 18px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line); font-size: 0.93rem; color: var(--muted); }
.doc + .doc { margin-top: 10px; }
.doc__art { margin: 0 0 8px; font-size: 0.8rem; color: var(--soft); }
.doc__zeile { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); margin: 0; color: var(--text); line-height: 1.55; }
.doc__zeile span { color: var(--soft); }
.doc__text { margin: 0; line-height: 1.75; }
.doc__zeile + .doc__text { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
/* Scan: enger gesetzt und leicht schief, wie vom Kopierer */
.doc__text--scan { letter-spacing: 0.04em; transform: rotate(-0.6deg); }
.doc__anhang { margin: 12px 0 0; font-size: 0.85rem; color: var(--soft); }
.doc__hand { margin: 14px 0 2px 6px; font-style: italic; color: #C9D1DC; transform: rotate(-1.4deg); transform-origin: left center; }
.doc-tab { width: 100%; border-collapse: collapse; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.doc-tab th, .doc-tab td { padding: 8px 0; border-top: 1px solid var(--line); text-align: left; font-weight: 400; }
.doc-tab thead th { border-top: 0; padding-top: 0; font-size: 0.8rem; color: var(--soft); }
.doc-tab th[scope="row"] { color: var(--text); padding-right: 10px; }
.doc-tab td:last-child, .doc-tab thead th:last-child { text-align: right; }
.demo mark { margin: 0 -2px; padding: 1px 2px; border-radius: 3px; background: transparent; color: inherit; transition: background-color .35s, color .35s; }
.demo mark.ist-da { background: color-mix(in srgb, var(--c) 24%, transparent); color: #fff; }

/* Mitte: die Schritte */
.demo__schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.demo__schritte li { position: relative; padding-left: 26px; font-size: 0.93rem; line-height: 1.4; color: var(--soft); transition: color .25s; }
.demo__schritte li::before { content: ''; position: absolute; left: 0; top: 2px; width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line-2); transition: background-color .25s, border-color .25s; }
.demo__schritte li.ist-laeuft { color: #fff; }
.demo__schritte li.ist-laeuft::before { border-color: var(--c); animation: demo-puls .9s ease-in-out infinite; }
.demo__schritte li.ist-da { color: var(--text); }
.demo__schritte li.ist-da::before { background: var(--c); border-color: var(--c); }
.demo__schritte li.ist-da::after { content: ''; position: absolute; left: 5px; top: 4px; width: 4px; height: 8px; border: solid #111318; border-width: 0 2px 2px 0; transform: rotate(40deg); }
@keyframes demo-puls { 50% { background: color-mix(in srgb, var(--c) 45%, transparent); } }
.demo__start { align-self: stretch; margin-bottom: 24px; }

/* Rechts: das Ergebnis */
.erg { padding: 11px 14px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line); font-size: 0.9rem; line-height: 1.5; color: var(--muted); }
.erg strong { display: block; font-weight: 500; color: var(--text); }
.erg--offen { border-style: dashed; border-color: color-mix(in srgb, var(--c) 50%, var(--line)); }
.erg-tab { width: 100%; border-collapse: collapse; font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.erg-tab th, .erg-tab td { padding: 8px 0; border-top: 1px solid var(--line); text-align: left; font-weight: 400; color: var(--muted); }
.erg-tab thead th { border-top: 0; padding-top: 0; font-size: 0.8rem; color: var(--soft); }
.erg-tab th[scope="row"] { color: var(--text); padding-right: 10px; }
.erg-tab td:last-child, .erg-tab thead th:last-child { text-align: right; color: var(--text); }
.demo__ausgang > .erg, .demo__ausgang > .erg-tab { margin-bottom: 10px; }
.demo__leer { position: absolute; left: 24px; right: 24px; top: 58px; margin: 0; padding: 18px; border: 1px dashed var(--line-2); border-radius: var(--r-sm); font-size: 0.9rem; color: var(--soft); }
.demo__freigabe { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; }
.demo__status { flex: 1 1 100%; min-height: 1.5em; margin: 0; font-size: 0.9rem; line-height: 1.5; color: #BBF7D0; }

/* Mit Skript: Ergebnis erscheint Schritt für Schritt. Ohne Skript steht alles fertig da. */
.demo--aktiv .demo__titel { display: none; }
.demo--aktiv .demo__ausgang [data-s] { opacity: 0; transition: opacity .35s; }
.demo--aktiv .demo__ausgang [data-s].ist-da { opacity: 1; }
.demo--aktiv .demo__feld.ist-gestartet .demo__leer { display: none; }
.demo--aktiv .demo__freigabe { transition: opacity .35s; }
.demo--aktiv .demo__feld:not(.ist-fertig) .demo__freigabe { opacity: 0; }
.demo:not(.demo--aktiv) :is(.demo__wahl, .demo__start, .demo__leer, .demo__freigabe) { display: none; }
.demo:not(.demo--aktiv) .demo__feld + .demo__feld { border-top: 1px solid var(--line); }

@media (max-width: 980px) {
  .demo__feld { grid-template-columns: 1fr; }
  .demo__spalte + .demo__spalte { border-left: 0; border-top: 1px solid var(--line); }
  .demo__feld { min-height: 0; }
  .demo__leer { position: static; margin-bottom: 0; }
  .demo--aktiv .demo__feld:not(.ist-gestartet) .demo__ausgang > :is(.erg, .erg-tab, .demo__freigabe) { display: none; }
}
@media (max-width: 760px) {
  h1 { font-size: 2.15rem; }
  .hero h1 { font-size: 1.6rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .refs { grid-template-columns: 1fr; }
  .demo__wahl { flex-direction: column; }
  .demo__tab { justify-content: flex-start; }
  .demo__spalte { padding: 20px 18px; }
  .demo__hinweis { padding: 14px 18px; }
  /* Schritte: Nummer neben dem Text statt darüber, das halbiert die Höhe */
  .steps { display: block; }
  .step { display: grid; grid-template-columns: 2.1rem minmax(0, 1fr); column-gap: 10px; padding: 16px 0; margin: 0; }
  .step__num { grid-row: 1 / span 2; margin: 0; padding-top: 3px; }
  .step h3 { margin-bottom: 2px; }
  .step p { margin: 0; }
  /* Über Nevolox: kleineres Bild, Werte als schlichte Liste statt drei Kästen */
  .about__bild { max-width: 140px; }
  .about-values { gap: 0; }
  .value-card { padding: 16px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .demo__schritte li.ist-laeuft::before { animation: none; }
}

/* =========================================================
   Schliff 24.11.2026 (zweite Durchsicht)
   ========================================================= */
/* Startseite: Schulungen und Begleitung als Kartenpaar, mit Ablauf in der Farbe der Karte */
.tier-card--leistung { gap: 14px; padding: 30px; border-color: color-mix(in srgb, var(--c, var(--line-2)) 38%, var(--line)); }
.tier-card--leistung h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
.tier-card--leistung p { margin: 0; color: var(--muted); }
.tier-card--leistung .ablauf { margin: 8px 0 10px; }
/* Beispiel auf der Prozess-Seite: Figur links, damit nicht dreimal dasselbe Muster folgt */
@media (min-width: 901px) {
  .split--rev { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .split--rev > .fig { order: -1; }
}
/* Demo vor dem Start: Der Hinweis füllt die Spalte, statt eine leere Fläche zu lassen */
@media (min-width: 981px) {
  .demo__leer { bottom: 24px; display: grid; place-items: center; text-align: center; }
}
@media (max-width: 760px) {
  .doc__zeile { grid-template-columns: 1fr; }
  .doc__zeile span { font-size: 0.8rem; }
  .tier-card--leistung { padding: 24px 20px; }
  /* Fußzeile kürzer: Leistungen und Unternehmen nebeneinander */
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer__top > div:first-child { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; gap: 6px; }
}

/* Startseite: Leistungen als drei gleiche Zeilen untereinander, ohne Kasten und ohne Farbrand (24.11.2026) */
.tier-grid--drei { grid-template-columns: 1fr; gap: 0; border-bottom: 1px solid var(--line); }
.tier-grid--drei .tier-card--leistung {
  background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 36px 0;
}
.tier-grid--drei .tier-card__rest { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.tier-grid--drei .tier-card--leistung h3 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.1; margin: 0; color: var(--text, inherit); }
.tier-grid--drei .tier-card--leistung p { font-size: 1.15rem; line-height: 1.55; }
@media (min-width: 901px) {
  .tier-grid--drei .tier-card--leistung {
    display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 48px; align-items: center; padding: 56px 0;
  }
}
