/* ILDEKI Agenten-Seite v3 – Designsystem
   Quelle der Werte: HUD-Palette des Agenten (ILDEKI_HUD_USER_PROMPT §7). Klein gehalten:
   1 Akzent, 3 Flächen, 2 Textfarben, 6 Abstände, 5 Schriftgrößen. */

@font-face { font-family: "DM Sans"; src: url("fonts/DMSans-Variable.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("fonts/PlayfairDisplay-Variable.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  /* Farben nach Funktion */
  --bg: #070b11;
  --surface: #111a25;
  --surface-hi: #172433;
  --line: #253343;
  --text: #e4edf2;
  --text-muted: #879baa;
  --accent: #79d5e5;
  --accent-ink: #04141b;
  --ok: #72d5ae;
  --warn: #e1b777;
  --focus: #ffffff;
  --line-ui: #5b7184;      /* Rahmen von Bedienelementen, mind. 3:1 gegen --bg */
  --accent-hi: #a1e3ef;    /* Hover Primärbutton */
  --accent-lo: #5ec2d3;    /* Active Primärbutton */

  /* Abstände (rem) */
  --s1: 0.5rem;
  --s2: 0.75rem;
  --s3: 1rem;
  --s4: 1.5rem;
  --s5: 2.5rem;
  --s6: 4.5rem;
  --s7: 7rem;

  /* Schrift */
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --fs-s: 0.875rem;
  --fs-b: 1.0625rem;
  --fs-l: 1.25rem;
  --fs-xl: clamp(1.75rem, 3.4vw, 2.5rem);
  --fs-2xl: clamp(2rem, 3.8vw, 3.25rem);

  /* Formen: Rahmen der Agentenfenster 10 px, Bedienelemente 6 px (bewusst zwei Werte, nicht drei) */
  --r-frame: 10px;
  --r-ctrl: 6px;

  --container: 72rem;
  --gutter: 1rem;
  --header-h: 4rem;
}

@media (min-width: 48em) { :root { --gutter: 1.5rem; } }
@media (min-width: 80em) { :root { --gutter: 2rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-b);
  line-height: 1.6;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--accent-hi); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: var(--s3); top: -4rem; background: var(--accent); color: var(--accent-ink); padding: var(--s2) var(--s3); border-radius: var(--r-ctrl); z-index: 100; font-weight: 600; }
.skip:focus { top: var(--s2); }

.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(7, 11, 17, 0.94); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(7, 11, 17, 0.82); backdrop-filter: blur(10px); } }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; min-height: 2.75rem; gap: var(--s2); text-decoration: none; color: var(--text); }
.brand img { width: 2.25rem; height: 2.25rem; border-radius: 8px; }
.brand__word { font-size: 0.8125rem; letter-spacing: 0.26em; font-weight: 650; line-height: 1.1; }
.brand__word small { display: block; font-size: 0.625rem; letter-spacing: 0.22em; color: var(--text-muted); font-weight: 500; margin-top: 3px; }

.nav { display: none; }
.nav a, .btn.header-cta, .btn.header-login { white-space: nowrap; }
.nav a { color: var(--text-muted); text-decoration: none; padding: var(--s1) var(--s2); border-radius: var(--r-ctrl); font-size: var(--fs-s); }
.nav a:hover { color: var(--text); background: var(--surface); }
.btn.header-cta, .btn.header-login { display: none; }

.menu-btn { display: inline-flex; align-items: center; gap: var(--s1); background: var(--surface); color: var(--text); border: 1px solid var(--line-ui); border-radius: var(--r-ctrl); min-height: 2.75rem; padding: 0 var(--s3); font: inherit; font-size: var(--fs-s); cursor: pointer; }
.menu-btn:hover { background: var(--surface-hi); }
.menu-btn[aria-expanded="true"] { border-color: var(--accent); }

.mobile-nav { border-top: 1px solid var(--line); background: var(--bg); max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { padding: var(--s2) var(--gutter) var(--s3); display: grid; }
.mobile-nav a { display: block; padding: var(--s2) 0; min-height: 2.75rem; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }

@media (min-width: 72em) {
  .nav { display: flex; gap: 2px; }
  .btn.header-cta, .btn.header-login { display: inline-flex; }
  .menu-btn, .mobile-nav { display: none; }
}

/* ---------- Buttons ---------- */
.btn { text-align: center; display: inline-flex; align-items: center; justify-content: center; gap: var(--s1); min-height: 2.75rem; padding: 0 var(--s4); border-radius: var(--r-ctrl); border: 1px solid transparent; font: inherit; font-weight: 600; font-size: var(--fs-b); text-decoration: none; cursor: pointer; transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hi); color: var(--accent-ink); }
.btn--primary:active { background: var(--accent-lo); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-ui); }
.btn--ghost:hover { border-color: var(--accent); color: var(--text); background: var(--surface); }
.btn--ghost:active { background: var(--surface-hi); }
.btn--sm { min-height: 2.5rem; padding: 0 var(--s3); font-size: var(--fs-s); }

/* ---------- Sektionen ---------- */
section { padding-block: var(--s6); }
@media (min-width: 60em) { section { padding-block: var(--s7); } }

.eyebrow { color: var(--accent); font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; margin-bottom: var(--s3); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; letter-spacing: -0.005em; }
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-l); font-family: var(--font-body); font-weight: 650; line-height: 1.3; }
.lead { font-size: var(--fs-l); color: var(--text-muted); line-height: 1.55; max-width: 38rem; }
.section-head { max-width: 40rem; margin-bottom: var(--s5); }
.section-head .lead { margin-top: var(--s3); }
.muted { color: var(--text-muted); }
.note { font-size: var(--fs-s); color: var(--text-muted); }

/* ---------- Hero ---------- */
.hero { padding-top: var(--s5); padding-bottom: var(--s5); overflow: hidden; position: relative; }
.hero::before { content: ""; position: absolute; left: 50%; bottom: -10%; width: min(110rem, 160%); height: 70%; transform: translateX(-50%); background: radial-gradient(ellipse at 50% 100%, rgba(121, 213, 229, 0.16), transparent 62%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero__grid { display: grid; gap: var(--s4); grid-template-areas: "head" "actions" "stage" "beats"; }
.hero__head { grid-area: head; }
.hero__actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: var(--s2); }
.hero h1 { font-size: clamp(2.125rem, 7vw, 4.75rem); overflow-wrap: break-word; line-height: 1.04; }
.hero__accent { color: var(--accent); }
.hero__head .lead { margin-top: var(--s3); font-size: clamp(1.0625rem, 1.9vw, 1.3125rem); max-width: 32rem; }
@media (min-width: 60em) {
  .hero { padding-top: var(--s5); padding-bottom: var(--s6); }
  .hero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); grid-template-areas: "head stage" "actions stage" "beats beats"; column-gap: var(--s4); align-items: center; align-content: center; }
  .hero h1 { font-size: clamp(2.5rem, 4vw, 4.25rem); }
  .hero__head { align-self: end; }
  .hero__actions { align-self: start; margin-top: var(--s3); }
}

/* Bühne: der Agent in Bewegung. Der Rand läuft in den Seitenhintergrund aus, damit er auf der Seite zu schweben scheint. */
.stage { grid-area: stage; margin-inline: calc(var(--gutter) * -1); position: relative; }
.stage__frame { position: relative; }
.stage__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; background: var(--bg); mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 90%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 90%, transparent);
  mask-composite: intersect; }
.stage__pause { position: absolute; right: var(--gutter); bottom: var(--s1); background: rgba(7, 11, 17, 0.8); color: var(--text); border: 1px solid var(--line-ui); border-radius: var(--r-ctrl); min-height: 2.75rem; padding: 0 var(--s3); font: inherit; font-size: var(--fs-s); cursor: pointer; }
.stage__pause:hover { background: var(--surface-hi); }
.stage figcaption { padding-inline: var(--gutter); margin-top: var(--s1); font-size: var(--fs-s); color: var(--text-muted); }
.hero__hint-inline { display: block; margin-top: 4px; }
.hero__hint-inline::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; margin-right: var(--s1); border-radius: 50%; background: var(--ok); }
@media (min-width: 60em) { .stage { margin-inline: 0 calc(-1 * (max(0px, (100vw - 72rem) / 2) + var(--gutter))); } }

.beats { grid-area: beats; list-style: none; display: grid; gap: var(--s3); margin-top: var(--s5); padding: 0; counter-reset: beat; }
.beats li { display: grid; gap: 2px; padding-left: 2.25rem; position: relative; counter-increment: beat; }
.beats li::before { content: counter(beat); position: absolute; left: 0; top: 0; width: 1.5rem; height: 1.5rem; border: 1px solid var(--accent); border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; color: var(--accent); }
.beats strong { font-weight: 650; }
.beats span { color: var(--text-muted); font-size: var(--fs-s); }
@media (min-width: 48em) { .beats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); } }

/* Für wen: jede Branche mit einem echten Beispielauftrag */
.who { padding-top: var(--s5); }
.who__grid { display: grid; gap: var(--s3); }
.who__card { display: flex; flex-direction: column; gap: var(--s2); height: 100%; padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-frame); text-decoration: none; color: var(--text); }
a.who__card:hover { background: var(--surface-hi); border-color: var(--line-ui); color: var(--text); }
.who__for { color: var(--accent); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; }
.who__card q { font-family: var(--font-display); font-size: var(--fs-l); line-height: 1.35; quotes: "„" "“"; }
.who__go { margin-top: auto; padding-top: var(--s1); color: var(--text-muted); font-size: var(--fs-s); }
a.who__card:hover .who__go { color: var(--accent); }
@media (min-width: 48em) { .who__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72em) { .who__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Screenshot-Rahmen: der Glanz hinter dem Bild greift den Lichtkern des Agenten auf */
.shot { position: relative; }
.shot::before { content: ""; position: absolute; inset: 8% 0 -6%; background: radial-gradient(ellipse at 50% 60%, rgba(121, 213, 229, 0.22), transparent 65%); z-index: 0; pointer-events: none; }
.shot img { position: relative; z-index: 1; width: 100%; border: 1px solid var(--line); border-radius: var(--r-frame); background: var(--surface); }
.shot figcaption { position: relative; z-index: 1; margin-top: var(--s2); font-size: var(--fs-s); color: var(--text-muted); }

/* ---------- Ablauf ---------- */
.steps { display: grid; gap: var(--s6); }
.step { display: grid; gap: var(--s4); align-items: center; }
.step__no { font-family: var(--font-display); font-size: 3.5rem; line-height: 1; color: var(--accent); opacity: 0.9; margin-bottom: var(--s2); }
.step__text p { margin-top: var(--s2); color: var(--text-muted); max-width: 28rem; }
.step__text h3 { font-size: var(--fs-l); }
@media (min-width: 60em) {
  .step { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s6); }
  .step:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
  .step:nth-child(even) .step__text { order: 2; }
}

/* ---------- Aufgaben ---------- */
.tasks { background: var(--surface); border-block: 1px solid var(--line); }
.task-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.task { display: grid; grid-template-columns: 3rem 1fr; gap: var(--s3); padding-block: var(--s4); border-bottom: 1px solid var(--line); }
.task__no { font-family: var(--font-display); color: var(--accent); font-size: var(--fs-l); }
.task p { margin-top: var(--s1); color: var(--text-muted); max-width: 32rem; }
@media (min-width: 60em) {
  .task-list { grid-template-columns: 1fr 1fr; column-gap: var(--s6); }
  .task { grid-template-columns: 3.5rem 1fr; }
}
.tasks .note { margin-top: var(--s4); }

/* ---------- Kontrolle ---------- */
.control__grid { display: grid; gap: var(--s5); align-items: center; }
.checks { display: grid; gap: var(--s4); margin-top: var(--s5); }
.checks li { display: grid; grid-template-columns: 1.5rem 1fr; gap: var(--s2); }
.checks li::before { content: ""; width: 1.5rem; height: 1.5rem; margin-top: 0.1rem; border: 1px solid var(--ok); border-radius: 50%; background: radial-gradient(circle, var(--ok) 0 2px, transparent 3px); }
.checks strong { display: block; color: var(--text); font-weight: 650; }
.checks span { display: block; color: var(--text-muted); margin-top: 2px; }
@media (min-width: 60em) {
  .control__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s6); }
}

/* ---------- Angebote ---------- */
.offers { background: var(--surface); border-block: 1px solid var(--line); }
.offer-grid { display: grid; gap: var(--s4); }
.offer { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-frame); padding: var(--s4); }
.offer__tag { color: var(--accent); font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; }
.offer h3 { margin-top: var(--s2); font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 2.1vw, 1.75rem); line-height: 1.2; overflow-wrap: normal; hyphens: auto; }
.offer__promise { margin-top: var(--s2); color: var(--text-muted); }
.offer ul { margin-top: var(--s4); display: grid; gap: var(--s2); border-top: 1px solid var(--line); padding-top: var(--s4); }
.offer li { position: relative; padding-left: 1.25rem; }
.offer li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 0.5rem; height: 1px; background: var(--accent); }
.offer__foot { margin-top: auto; padding-top: var(--s4); }
.offer__price { font-size: var(--fs-s); color: var(--text-muted); margin-bottom: var(--s2); }
.offer .btn { width: 100%; }
@media (min-width: 60em) {
  .offer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .offer h3 { min-height: 2.4em; }
}
.offers .note { margin-top: var(--s4); }

/* ---------- FAQ ---------- */
.faq { max-width: 46rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: var(--s3); align-items: center; padding: var(--s3) 0; min-height: 3.25rem; cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--accent); font-size: var(--fs-l); line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq summary:hover { color: var(--accent); }
.faq details p { padding-bottom: var(--s3); color: var(--text-muted); max-width: 40rem; }

/* ---------- Kontakt ---------- */
.contact { background: var(--surface); border-top: 1px solid var(--line); }
.contact__grid { display: grid; gap: var(--s5); }
.contact__actions { display: grid; gap: var(--s2); align-content: start; margin-top: var(--s4); }
.contact__actions .btn { justify-content: flex-start; }
.contact address { font-style: normal; color: var(--text-muted); font-size: var(--fs-s); margin-top: var(--s2); }
@media (min-width: 60em) { .contact__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s6); align-items: start; } }

/* ---------- Footer ---------- */
.site-footer { padding-block: var(--s5); border-top: 1px solid var(--line); font-size: var(--fs-s); color: var(--text-muted); }
.site-footer .wrap { display: grid; gap: var(--s3); }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); }
.site-footer a { color: var(--text-muted); }
.site-footer nav a { display: inline-block; padding-block: 0.7rem; }
.site-footer a:hover { color: var(--text); }
@media (min-width: 60em) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; } .site-footer .legal { grid-column: 1 / -1; } }

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Kontaktformular ---------- */
.form { display: grid; gap: var(--s3); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-frame); padding: var(--s4); }
.field { display: grid; gap: var(--s1); }
.field label { font-size: var(--fs-s); font-weight: 600; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea { width: 100%; min-height: 2.75rem; padding: var(--s1) var(--s2); background: var(--surface); color: var(--text); border: 1px solid var(--line-ui); border-radius: var(--r-ctrl); font: inherit; font-size: var(--fs-b); }
.field textarea { resize: vertical; min-height: 7rem; }
.field input:hover, .field textarea:hover { border-color: var(--accent); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--warn); border-width: 2px; }
.field__err { color: var(--warn); font-size: var(--fs-s); }
.field__err:empty { display: none; }
.field--check { grid-template-columns: auto 1fr; align-items: start; column-gap: var(--s2); }
.field--check input { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; accent-color: var(--accent); }
.field--check .field__err { grid-column: 1 / -1; }
.field a { color: var(--accent); }
.form .btn { justify-self: start; }
.form .btn:disabled { opacity: 0.6; cursor: progress; }
.form__msg { font-size: var(--fs-s); }
.form__msg:empty { display: none; }
.form__msg--ok { color: var(--ok); }
.form__msg--err { color: var(--warn); }

/* Branchenseiten */
.who__grid--static .who__card { cursor: default; }
.also { padding-block: var(--s5); border-top: 1px solid var(--line); }
.also ul { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin-top: var(--s2); }
.also a { color: var(--text); }
.also a:hover { color: var(--accent); }

/* Terminbuchung */
.book { display: grid; gap: var(--s5); max-width: 46rem; }
.book h2 { font-size: var(--fs-l); font-family: var(--font-body); font-weight: 650; }
.book__step { display: grid; gap: var(--s3); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { min-height: 2.75rem; padding: 0 var(--s3); border-radius: var(--r-ctrl); border: 1px solid var(--line-ui); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.chip:hover { background: var(--surface-hi); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 650; }
.chip--time { min-width: 4.5rem; text-align: center; }
.book__summary { padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--r-frame); background: var(--surface); }
.book__ok { padding: var(--s4); border: 1px solid var(--ok); border-radius: var(--r-frame); }
.book .field--radio { display: flex; gap: var(--s4); flex-wrap: wrap; }
.book .field--radio label { display: inline-flex; align-items: center; gap: var(--s1); }
.book .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- KI erklärt ---------- */
.explain { background: var(--bg); }
.explain__block { display: grid; gap: var(--s4); padding-block: var(--s5); border-top: 1px solid var(--line); }
.section-head + .explain__block { border-top: 0; padding-top: 0; }
.explain__no { font-family: var(--font-display); font-size: 3.5rem; line-height: 1; color: var(--accent); opacity: 0.9; margin-bottom: var(--s2); }
.explain__text p { margin-top: var(--s2); color: var(--text-muted); max-width: 34rem; }
.explain__text p:first-of-type { margin-top: 0; }
.explain__text h3 + p { margin-top: var(--s2); }
.explain__text .explain__image { padding-left: var(--s3); border-left: 2px solid var(--accent); color: var(--text); }
.cols { display: grid; gap: var(--s3); align-content: start; }
.col { padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-frame); }
.col h4 { margin: 0 0 var(--s2); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; font-family: var(--font-body); }
.col--yes h4 { color: var(--ok); }
.col--no h4 { color: var(--warn); }
.col ul { display: grid; gap: var(--s2); }
.col li { position: relative; padding-left: 1.25rem; color: var(--text); }
.col li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 0.5rem; height: 1px; background: var(--text-muted); }
.harness { position: relative; margin: 0; }
.harness::before { content: ""; position: absolute; inset: 10% 0 -6%; background: radial-gradient(ellipse at 50% 55%, rgba(121, 213, 229, 0.18), transparent 65%); pointer-events: none; }
.harness svg { position: relative; display: block; width: 100%; height: auto; max-width: 32rem; margin-inline: auto; overflow: visible; }
.harness figcaption { position: relative; margin-top: var(--s2); font-size: var(--fs-s); color: var(--text-muted); text-align: center; }
.h-frame { fill: var(--surface); stroke: var(--line-ui); stroke-width: 1; stroke-dasharray: 5 5; }
.h-cap { fill: var(--text-muted); font: 600 11px var(--font-body); letter-spacing: 0.18em; }
.h-ring { fill: none; stroke: var(--line-ui); stroke-width: 1; }
.h-links line { stroke: var(--accent); stroke-width: 1.5; stroke-opacity: 0.7; }
.h-core { fill: var(--bg); stroke: var(--accent); stroke-width: 2; }
.h-core-t { fill: var(--text); font: 600 13px var(--font-body); }
.h-core-s { fill: var(--text-muted); font: 500 12px var(--font-body); }
.h-node rect { fill: var(--surface-hi); stroke: var(--accent); stroke-width: 1; }
.h-node text { fill: var(--text); font: 600 14px var(--font-body); }
@media (prefers-reduced-motion: no-preference) { .h-core { animation: h-pulse 3.2s ease-in-out infinite; } }
@keyframes h-pulse { 0%, 100% { stroke-opacity: 1; } 50% { stroke-opacity: 0.45; } }
.parts { display: grid; gap: var(--s3); }
.parts > div { padding: var(--s3) var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-frame); }
.parts dt { color: var(--accent); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; }
.parts dd { margin: var(--s1) 0 0; color: var(--text-muted); }
.start-steps { display: grid; gap: var(--s3); counter-reset: ss; padding: 0; list-style: none; }
.start-steps li { position: relative; display: grid; gap: 2px; padding: var(--s3) var(--s4) var(--s3) 3.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-frame); counter-increment: ss; }
.start-steps li::before { content: counter(ss); position: absolute; left: var(--s3); top: var(--s3); width: 1.75rem; height: 1.75rem; border: 1px solid var(--accent); border-radius: 50%; display: grid; place-items: center; font-size: 0.8125rem; color: var(--accent); }
.start-steps strong { font-weight: 650; }
.start-steps span { color: var(--text-muted); }
.prompts { display: grid; gap: var(--s3); }
.prompts li { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-frame); }
.prompts q { font-family: var(--font-display); font-size: var(--fs-l); line-height: 1.35; quotes: "„" "“"; }
.prompts span { margin-top: auto; color: var(--accent); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; }
@media (min-width: 48em) {
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .parts, .prompts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 60em) {
  .explain__block { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s6); padding-block: var(--s6); align-items: start; }
  .explain__block--harness .parts { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Wissensseiten ---------- */
.article { padding-block: var(--s5) var(--s6); }
.article__wrap { max-width: 50rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); font-size: var(--fs-s); color: var(--text-muted); padding: 0; margin: 0 0 var(--s4); }
.crumbs li + li::before { content: "/"; margin-right: var(--s2); color: var(--line-ui); }
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--accent); }
.article__head h1 { font-size: clamp(1.875rem, 4.6vw, 3rem); }
.article__head .lead { margin-top: var(--s3); }
.article__body { margin-top: var(--s5); }
.article__body h2 { font-size: clamp(1.4rem, 2.6vw, 1.875rem); margin-top: var(--s5); margin-bottom: var(--s2); }
.article__body p { margin-top: var(--s2); max-width: 42rem; color: var(--text); }
.article__body .note { color: var(--text-muted); }
.article__body a { color: var(--accent); }
.table-wrap:focus-visible { outline-offset: 2px; }
.callout { margin-top: var(--s3); padding: var(--s3) var(--s4); border-left: 2px solid var(--accent); background: var(--surface); border-radius: 0 var(--r-frame) var(--r-frame) 0; }
.callout p { margin: 0; }
.plain { display: grid; gap: var(--s2); margin-top: var(--s2); max-width: 42rem; }
.plain li { position: relative; padding-left: 1.25rem; }
.plain li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 0.5rem; height: 1px; background: var(--accent); }
.plain--num { counter-reset: pn; list-style: none; padding-left: 0; }
.plain--num li { counter-increment: pn; padding-left: 2rem; }
.plain--num li::before { content: counter(pn) "."; width: auto; height: auto; top: 0; background: none; color: var(--accent); font-weight: 600; }
.parts--page { margin-top: var(--s3); }
.article .start-steps { margin-top: var(--s3); }
.faq--page { margin-top: var(--s3); }
.table-wrap { margin-top: var(--s3); overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-frame); }
.compare { width: 100%; border-collapse: collapse; font-size: var(--fs-s); min-width: 30rem; }
.compare caption { text-align: left; padding: var(--s2) var(--s3); color: var(--text-muted); caption-side: top; }
.compare th, .compare td { padding: var(--s2) var(--s3); text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.compare thead th { background: var(--surface); font-weight: 650; }
.compare tbody th { font-weight: 650; }
.compare td { color: var(--text-muted); }
.compare.fill td { height: 2.75rem; }
.check { display: grid; gap: var(--s2); margin-top: var(--s3); padding: 0; list-style: none; max-width: 42rem; }
.check li { display: grid; grid-template-columns: 1.5rem 1fr; gap: var(--s3); align-items: start; }
.check .box { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; border: 1.5px solid var(--line-ui); border-radius: 4px; }
.article__next { margin-top: var(--s5); }
.article__cta { margin-top: var(--s6); padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-frame); }
.article__cta h2 { margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.625rem); }
.article__cta p { margin: var(--s2) 0 var(--s3); color: var(--text-muted); }
.explain__text .explain__more { margin-top: var(--s3); }
@media print {
  .site-header, .site-footer, .no-print, .skip, .crumbs, .article__next { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .article__body p, .plain li, .check li, .compare td, .compare th { color: #000 !important; }
  .article__head h1, .article__body h2 { color: #000; }
  .eyebrow, .article__body a { color: #000; }
  .compare th, .compare td, .table-wrap { border-color: #000 !important; }
  .compare thead th { background: #eee; }
  .article__head .lead, .article__body .note, .compare caption, .plain--num li::before { color: #000 !important; }
  .callout { background: #fff; border-left-color: #000; }
  .callout p { color: #000 !important; }
  tr, li { break-inside: avoid; }
  .table-wrap { overflow: visible; }
  .compare { min-width: 0; }
  .check .box { border-color: #000; }
}
