/* openProduction-Homepage — Firmenstil wie Broschüre (doc/brochure): Cyan-Titelbalken,
   Roboto Condensed in Versalien, Slabo als Fließtext, Nachtblau mit Bokeh für Kopf und Kontakt.
   Alles von der eigenen Origin (CSP default-src 'self'), keine Fremd-Requests.
   Bewegung: .rv blendet beim Scrollen ein (seite.js setzt .in), die Agenten-Szene läuft per
   seite.js; prefers-reduced-motion schaltet alles ab, ohne JS ist alles sichtbar. */

@font-face { font-family: "Roboto Condensed"; font-weight: 700; font-display: swap; src: url(fonts/RobotoCondensed-Bold.woff) format("woff"); }
@font-face { font-family: "Roboto"; font-weight: 300; font-display: swap; src: url(fonts/Roboto-Light.woff) format("woff"); }
@font-face { font-family: "Roboto"; font-weight: 400; font-display: swap; src: url(fonts/Roboto-Regular.woff) format("woff"); }
@font-face { font-family: "Slabo 13px"; font-weight: 400; font-display: swap; src: url(fonts/Slabo13px-Regular.woff) format("woff"); }

:root {
  --cyan: #32AFD7;
  --cyan-deep: #1f8db3;
  --cyan-soft: #e8f6fb;
  --navy: #23142D;
  --night: #15112e;
  --night-2: #1d1840;
  --ink: #1d1a26;
  --muted: #5d5a68;
  --line: #dfe3ea;
  --soft: #f3f7fa;
  --manual: #2f6fd6;
  --auto: #7b4fd6;
  --pass: #1f9d55;
  --fail: #d23b3b;
  --cond: "Roboto Condensed", "Arial Narrow", sans-serif;
  --sans: "Roboto", system-ui, sans-serif;
  --serif: "Slabo 13px", Georgia, serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SFMono-Regular", monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --top-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 8px); }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--serif); font-size: 18px; line-height: 1.55; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
figure { margin: 0; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); position: relative; }

/* ---------- Typografie ---------- */
h1, h2, h3 { font-family: var(--cond); font-weight: 700; text-transform: uppercase; margin: 0; }
h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: .035em; line-height: 1.08; color: var(--navy); margin-bottom: 26px; }
h3 { font-size: 17px; letter-spacing: .05em; color: var(--navy); margin-bottom: 8px; }
p { margin: 0 0 14px; }
.kicker { font-family: var(--cond); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); font-size: 15px; margin-bottom: 12px; }
.kicker span { display: inline-block; color: #fff; background: var(--cyan); padding: 2px 7px 1px; margin-right: 6px; letter-spacing: .06em; }
.intro { font-family: var(--sans); font-weight: 300; font-size: clamp(18px, 1.7vw, 21px); color: var(--muted); max-width: 40em; margin-bottom: 48px; }
ul.gt { list-style: none; padding: 0; margin: 0; }
ul.gt li { position: relative; padding-left: 28px; margin-bottom: 16px; }
ul.gt li::before { content: ">"; position: absolute; left: 0; color: var(--cyan); font-family: var(--sans); font-weight: 400; }
figcaption { font-family: var(--sans); font-weight: 300; font-size: 14px; color: var(--muted); margin-top: 12px; }

/* ---------- Knöpfe ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 8px; font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 15px; text-decoration: none; padding: 13px 22px 12px; border-radius: 4px; border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn span { transition: transform .2s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn-primary { background: var(--cyan); color: #fff; box-shadow: 0 8px 24px -8px rgba(50,175,215,.7); }
.btn-primary:hover { background: var(--cyan-deep); box-shadow: 0 12px 30px -8px rgba(50,175,215,.8); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--cyan-soft); }
.btn-sm { padding: 8px 16px 7px; font-size: 14px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

/* ---------- Kopfzeile (über dem Kopfbereich, beim Scrollen fest) ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 20; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.top.fest { background: rgba(21,17,46,.86); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.top-in { display: flex; align-items: center; gap: 28px; height: var(--top-h); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; }
.brand img { height: 30px; width: auto; }
.brand span { font-family: var(--cond); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 17px; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.35); }
.top nav { display: flex; gap: 26px; margin-left: auto; }
.top nav a { position: relative; color: #cfe7f1; text-decoration: none; font-family: var(--sans); font-size: 15px; padding: 6px 0; transition: color .2s; }
.top nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.top nav a:hover, .top nav a.aktiv { color: #fff; }
.top nav a:hover::after, .top nav a.aktiv::after { transform: scaleX(1); }

/* ---------- Kopfbereich ---------- */
.hero { position: relative; overflow: hidden; color: #fff; padding: calc(var(--top-h) + clamp(40px, 7vw, 88px)) 0 0;
  background: radial-gradient(120% 90% at 85% 10%, rgba(50,175,215,.22), transparent 55%),
              linear-gradient(100deg, rgba(21,17,46,.94) 0%, rgba(21,17,46,.78) 45%, rgba(21,17,46,.45) 100%),
              var(--night) url(img/bokeh.webp) center 60% / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.glow { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.glow i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(80px); opacity: .32; animation: treiben 22s ease-in-out infinite alternate; }
.glow i:nth-child(1) { background: #32AFD7; left: -12vmax; top: -18vmax; }
.glow i:nth-child(2) { background: #7b4fd6; right: -16vmax; top: 10vmax; opacity: .22; animation-duration: 28s; animation-delay: -6s; }
.glow i:nth-child(3) { background: #2f6fd6; left: 30%; bottom: -30vmax; opacity: .2; animation-duration: 32s; animation-delay: -12s; }
@keyframes treiben { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(6vmax,4vmax,0) scale(1.15); } }

.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.tb { display: inline-block; background: #fff; color: var(--cyan); font-family: var(--cond); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; font-size: clamp(20px, 2.4vw, 28px); line-height: 1; padding: 9px 14px 7px; margin: 0 0 20px; }
.hero h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.02; letter-spacing: .02em; margin-bottom: 24px; hyphens: manual;
  text-shadow: 0 2px 30px rgba(50,175,215,.25); }
.lead { font-family: var(--sans); font-weight: 300; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: #dcf0f8; max-width: 34em; margin-bottom: 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* Agenten-Szene */
.agent { position: relative; background: rgba(255,255,255,.97); color: var(--ink); border-radius: 14px; overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.2), 0 0 60px -10px rgba(50,175,215,.45); font-family: var(--sans); }
.agent::before { content: ""; position: absolute; inset: -1px; border-radius: 15px; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--w, 0deg), transparent 0 70%, var(--cyan) 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s; }
.agent.szene:not(.fertig)::before { opacity: 1; animation: rand 3s linear infinite; }
@property --w { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes rand { to { --w: 360deg; } }
.agent-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #f7f9fb; font-size: 13px; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #d9dee6; }
.agent-title { font-weight: 400; color: var(--navy); }
.agent-state { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12px; color: var(--manual); }
.agent-state i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.agent-state b { font-weight: 400; }
.agent-state .s-done, .agent-state .s-pause { display: none; }
.agent.pause .agent-state { color: var(--muted); }
.agent.pause .s-run { display: none; }
.agent.pause .s-pause { display: inline; }
.agent.szene.pause::before { opacity: 0 !important; }
.agent.szene.pause .agent-state i { animation: none !important; }
.agent.szene:not(.fertig) .agent-state i { animation: puls 1.2s ease-in-out infinite; }
.agent.fertig .agent-state { color: var(--pass); }
.agent.fertig .s-run { display: none; }
.agent.fertig .s-done { display: inline; }
@keyframes puls { 50% { opacity: .25; transform: scale(.7); } }

.agent-body { padding: 18px 18px 20px; display: grid; gap: 9px; align-content: start; transition: opacity .6s; }
.agent.aus .agent-body { opacity: 0; }
.msg-user { justify-self: end; max-width: 88%; background: #e3effb; color: #173a66; font-size: 14px; line-height: 1.45; padding: 10px 13px; border-radius: 12px 12px 3px 12px; }
.typed .rest { visibility: hidden; }
.tool { display: grid; grid-template-columns: 18px auto 1fr; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px; font-size: 13px; background: #fff; }
.tool .tn { color: var(--navy); white-space: nowrap; }
.tool code { font-family: var(--mono); font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.tool code em { font-style: normal; color: var(--pass); }
.tool pre { grid-column: 1 / -1; margin: 4px 0 0; padding: 8px 10px; background: #f2faf5; border-radius: 6px; font-family: var(--mono); font-size: 11px; line-height: 1.6; color: #17663a; overflow: hidden; white-space: normal; }
.tool pre span { display: block; white-space: pre; }
.tk { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid var(--pass); box-sizing: border-box;
  background: var(--pass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.2 5 8.5 9.4 3.9' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 12px no-repeat; }
.approve { border: 1.5px solid var(--manual); border-radius: 10px; overflow: hidden; font-size: 13px; }
.approve p { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 12px; background: #e8f0fc; color: #173a66; font-weight: 600; font-size: 12.5px; }
.approve p small { margin-left: auto; font-weight: 400; font-size: 11px; color: #5d7aa6; }
.approve-text { padding: 10px 12px 0; font-size: 13px; color: var(--ink); line-height: 1.45; }
.approve-text small { display: block; margin-top: 4px; font-size: 12px; color: var(--manual); }
.shield { width: 12px; height: 14px; background: var(--manual); clip-path: polygon(50% 0, 100% 18%, 100% 55%, 50% 100%, 0 55%, 0 18%); }
.approve-btns { display: flex; justify-content: flex-end; gap: 8px; padding: 9px 12px; }
.approve-btns span { font-size: 12.5px; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--line); transition: transform .15s, background .3s, box-shadow .3s; }
.approve-btns .b-yes { background: var(--manual); color: #fff; border-color: var(--manual); }
.approve.ok { border-color: var(--line); }
.approve.ok p { background: #f2f4f7; color: var(--muted); }
.approve.ok p small { visibility: hidden; }
.approve.ok .shield { background: var(--pass); }
.approve.drueckt .b-yes { transform: scale(.94); box-shadow: 0 0 0 5px rgba(47,111,214,.25); }
.result { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 14px; padding: 4px 2px 0; color: var(--navy); }
.result small { font-family: var(--mono); color: var(--muted); font-size: 11.5px; }

/* Szene-Ablauf: Schritte belegen ihren Platz von Anfang an (nichts springt) */
.agent.szene [data-s]:not(.an) { display: none; }
.agent.szene [data-s].an { animation: rein .45s var(--ease) both; }
@keyframes rein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.agent.szene .tool.an:not(.ok) .tk { background: transparent; border-color: #c9d6e3; border-top-color: var(--manual); animation: dreh .8s linear infinite; }
.agent.szene .tool.diff pre span { display: block; opacity: 0; transition: opacity .3s; }
.agent.szene .tool.diff.an pre span { opacity: 1; }
.agent.szene .tool.diff.an pre span:nth-child(2) { transition-delay: .35s; }
.agent.szene .tool.diff.an pre span:nth-child(3) { transition-delay: .7s; }
.agent.szene .result.an .chip { animation: plopp .5s var(--ease); }
@keyframes dreh { to { transform: rotate(360deg); } }
@keyframes plopp { 0% { transform: scale(.6); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* Rückfrage im KI-Coder (Designer: ChatQuestion — neutraler Kopf, Antwortzeilen, ein Knopf) */
.frage-karte { display: none; border: 1px solid #d5dae3; border-radius: 10px; overflow: hidden; background: #fff; font-size: 13px; }
.frage-kopf { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #f4f6f9; border-bottom: 1px solid var(--line); }
.frage-kopf b { font-weight: 600; font-size: 12.5px; color: var(--navy); flex: 1; }
.frage-kopf small { font-size: 11px; color: #8a8fa0; }
.fz { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #8a8fa0; color: #6b7080; font-size: 10.5px; font-weight: 600; line-height: 1; flex: none; }
.frage-inhalt { padding: 10px 12px 4px; }
.frage-ue { margin: 0 0 2px; font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #8a8fa0; }
.frage-text { margin: 0 0 8px; font-size: 13px; color: var(--ink); }
.frage-opt { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.frage-opt li { display: grid; grid-template-columns: 16px 1fr auto; gap: 10px; align-items: start; padding: 6px 8px; border-radius: 6px; }
.frage-opt li.gew { background: #eef4fd; }
.frage-opt i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #b7bfcc; margin-top: 2px; box-sizing: border-box; }
.frage-opt li.gew i { border: 4px solid var(--manual); }
.frage-opt b { display: block; font-weight: 500; font-size: 13px; color: var(--ink); }
.frage-opt em { font-style: normal; font-size: 10.5px; font-weight: 500; color: var(--manual); background: #e3edfb; border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: 1px; }
.frage-opt small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.frage-opt kbd { font-family: var(--mono); font-size: 10.5px; color: #a3a8b6; padding-top: 2px; }
.frage-fuss { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-top: 1px solid var(--line); }
.frage-fuss small { font-size: 11px; color: #8a8fa0; }
.b-ant { font-size: 12.5px; padding: 6px 14px; border-radius: 6px; background: var(--manual); color: #fff; transition: transform .15s, box-shadow .3s; }
.frage.drueckt .b-ant { transform: scale(.94); box-shadow: 0 0 0 5px rgba(47,111,214,.25); }
.frage-zeile { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); padding: 3px 4px; }
.agent.szene .frage.an:not(.ok) .frage-karte { display: block; }
.agent.szene .frage.an:not(.ok) .frage-zeile { display: none; }

/* Bereiche + Laufband */
.areas { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(48px, 7vw, 88px); border-top: 1px solid rgba(255,255,255,.16); }
.areas a { position: relative; display: block; padding: 24px 24px 28px 0; text-decoration: none; font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: clamp(17px, 1.9vw, 22px); color: #fff; }
.areas a + a { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.16); }
.areas a span { color: var(--cyan); font-size: .8em; margin-right: 10px; }
.areas a small { display: block; margin-top: 6px; font-family: var(--sans); font-weight: 300; text-transform: none; letter-spacing: 0; font-size: 15px; color: #b9d9e6; }
.areas a::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.areas a:hover::before { transform: scaleX(1); }
.areas a:hover { color: #bdeafa; }

.marquee { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.1); background: rgba(10,8,26,.45); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: band 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 14px; color: #9fc9da; padding: 18px 26px; white-space: nowrap; }
.marquee li::before { content: "●"; color: var(--cyan); font-size: 8px; vertical-align: 3px; margin-right: 26px; }
@keyframes band { to { transform: translateX(-50%); } }

/* ---------- Abschnitte ---------- */
/* Bedienkonzept: zwei Schrittansichten im Minimal-Look (Handoff „Prüfschritt-Ansichten“),
   Sprache wechselt per seite.js. Maße bewusst fest: Titel 2 Zeilen, Satz 2 Zeilen. */
.bedienung { background: var(--soft); }
.sprachen { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 8px; background: #fff; border: 1px solid var(--line); margin-bottom: 26px; }
.sprachen button { font-family: var(--cond); font-weight: 700; letter-spacing: .08em; font-size: 14px; border: 0; background: none; color: var(--muted); padding: 7px 12px 6px; border-radius: 5px; cursor: pointer; transition: background .2s, color .2s; }
.sprachen button:hover { color: var(--navy); background: var(--soft); }
.sprachen button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.sprachen button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.terminals { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 56px; }
.term { --c: var(--manual); --cw: #e3edfb; border: 1.5px solid var(--c); border-radius: 12px; overflow: hidden; background: var(--cw); display: flex; flex-direction: column; box-shadow: 0 24px 50px -28px rgba(21,17,46,.4); font-family: var(--sans); }
.term.auto { --c: var(--auto); --cw: #f1ebfb; }
.term-band { display: flex; justify-content: center; align-items: center; gap: 8px; background: var(--c); color: #fff; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 6px; }
.term-band i { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.term-body { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 26px 26px; }
.term-elem { height: 300px; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; margin-bottom: 14px; }
.adapter-film { position: relative; height: 296px; aspect-ratio: 640 / 659; max-width: 100%; }
.adapter-film img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.adapter-film img.an { opacity: 1; }
.adapter-film img:first-child { transition: opacity .35s; }
.term-knopf { transition: transform .15s, box-shadow .3s; }
.term-knopf.drueckt { transform: scale(.95); box-shadow: 0 0 0 6px rgba(47,111,214,.25); }
.ring { --p: 75%; width: 132px; height: 132px; border-radius: 50%; margin: 0 0 14px; background: conic-gradient(var(--auto) var(--p, 0%), #ddd2f2 0); display: grid; place-items: center; }
.ring span { width: 110px; height: 110px; border-radius: 50%; background: var(--cw); }
.term-ring { font-family: var(--mono); font-size: 12px; color: #5b3aa8; margin: 0 0 22px; min-height: 1.4em; }
.ring-pz { font-family: var(--sans); font-weight: 400; font-size: 24px; line-height: 1; color: #5b3aa8; font-variant-numeric: tabular-nums; }
.ring span { display: grid; place-items: center; }
.term-ring { margin-bottom: 0; }
.flash { width: 78%; background: #fff; border-radius: 10px; border: 1px solid #e3dcf3; padding: 12px 14px 12px; margin-bottom: 0; text-align: left; }
.flash-kopf { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.flash-kb { color: var(--ink); font-variant-numeric: tabular-nums; }
.flash-balken { height: 8px; border-radius: 4px; background: #ece6f8; overflow: hidden; }
.flash-balken i { display: block; height: 100%; width: var(--f, 75%); border-radius: 4px; background: linear-gradient(90deg, #9b78e6, var(--auto)); position: relative; }
.flash-balken i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); background-size: 60px 100%; background-repeat: no-repeat; animation: glanz 1.4s linear infinite; }
@keyframes glanz { from { background-position: -60px 0; } to { background-position: calc(100% + 60px) 0; } }
.flash-phasen { list-style: none; display: flex; gap: 6px; margin: 10px 0 0; padding: 0; font-size: 12.5px; }
.flash-phasen li { flex: 1; text-align: center; padding: 4px 4px; border-radius: 5px; background: #f4f1fa; color: #9a93ad; transition: background .3s, color .3s; }
.flash-phasen li.an { background: #ece4fb; color: #5b3aa8; }
.flash-phasen li.ok { color: #5b3aa8; }
.flash-phasen li.ok::before { content: "✓ "; }
.term-titel { font-size: 23px; font-weight: 400; color: var(--ink); line-height: 1.25; margin: 0 0 10px; min-height: 2.5em; display: flex; align-items: flex-end; justify-content: center; }
.term-satz { font-size: 16px; font-weight: 300; color: var(--muted); line-height: 1.45; margin: 0 0 20px; min-height: 2.9em; max-width: 30em; }
.term-knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 60%; background: var(--manual); color: #fff; border-radius: 6px; padding: 12px 20px; font-size: 16px; box-shadow: 0 6px 16px -6px rgba(47,111,214,.6); }
.term-fuss { display: flex; align-items: center; gap: 8px; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px; font-size: 13px; color: var(--muted); }
.term-fuss i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.term [data-k] { transition: opacity .25s; }
.terminals.wechsel [data-k] { opacity: 0; }
@property --p { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
.regeln { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 40px; }
.regeln h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.regeln p { font-size: 16.5px; margin: 0; }

/* Kurven-Schritt (Nachbau eines automatischen Schritts mit ui.plot, animiert per seite.js) */
.kurve-split { grid-template-columns: .8fr 1.4fr; }
.code { margin: 22px 0 0; padding: 16px 18px; border-radius: 10px; background: var(--night); color: #d9e6ee; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; overflow-x: auto; box-shadow: 0 20px 40px -24px rgba(21,17,46,.6); }
.code .c-k { color: #c4a5ff; } .code .c-s { color: #8fd9b6; } .code .c-n { color: #ffc58a; }
.term.kurve { box-shadow: 0 34px 70px -30px rgba(21,17,46,.45); }
.kurve-kopf { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 18px 22px 4px; }
.kurve-kopf .term-titel { min-height: 0; display: block; margin: 0; font-size: 21px; }
.ring.klein { width: 52px; height: 52px; margin: 0; flex: none; }
.ring.klein span { width: 40px; height: 40px; }
.kurve-karte { margin: 10px 18px 18px; background: #fff; border-radius: 10px; border: 1px solid #e3dcf3; padding: 12px 12px 8px; }
.pl-legende { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--sans); font-size: 12.5px; color: var(--muted); padding: 0 6px 4px; }
.pl-legende i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: 3px; margin-right: 6px; }
.lg-mess i { background: var(--manual); } .lg-abw i { background: #16a3a0; }
.pl-legende b { color: var(--ink); font-weight: 400; font-variant-numeric: tabular-nums; margin-left: 4px; }
.lg-t { margin-left: auto; font-family: var(--mono); }
.plot { width: 100%; height: auto; display: block; font-family: var(--sans); }
.pl-grid line { stroke: #eef0f4; stroke-width: 1; }
.pl-reg rect { fill: #8a8fa0; fill-opacity: .1; }
.pl-reg text { fill: #6b7080; font-size: 14px; text-anchor: middle; }
.pl-thr line { stroke: #8a8fa0; stroke-width: 1.2; stroke-dasharray: 5 4; }
.pl-thr text { fill: #6b7080; font-size: 14px; text-anchor: end; }
.pl-abw-a { fill: url(#pl-abw-g); }
.pl-abw { fill: none; stroke: #16a3a0; stroke-width: 1.8; }
.pl-mess { fill: none; stroke: var(--manual); stroke-width: 2.4; stroke-linejoin: round; }
.pl-dots circle { fill: #fff; stroke: var(--manual); stroke-width: 1.6; }
.pl-note circle { fill: #fff; stroke: #4b5060; stroke-width: 1.6; }
.pl-note line { stroke: #8a8fa0; stroke-width: 1; }
.pl-note rect { fill: #fff; stroke: #c9ccd6; }
.pl-note text { fill: var(--ink); font-size: 15px; text-anchor: middle; }
.pl-cursor { stroke: var(--auto); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.pl-kopf { fill: var(--manual); stroke: #fff; stroke-width: 2; opacity: 0; }
.pl-ax text { fill: #8a8fa0; font-size: 14px; font-variant-numeric: tabular-nums; }
.pl-ax-l text { text-anchor: end; } .pl-ax-r text { text-anchor: start; fill: #16a3a0; } .pl-ax-b text { text-anchor: middle; }
.pl-ax-l text { fill: var(--manual); }
.pl-at { font-size: 14px; font-weight: 400; }
.pl-ax-b .pl-at { fill: #6b7080; }
.kennwerte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.kennwerte div { background: #f6f4fb; border-radius: 6px; padding: 7px 10px; font-family: var(--sans); }
.kennwerte small { display: block; font-size: 11px; color: var(--muted); }
.kennwerte b { font-weight: 400; font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; transition: color .4s; }
.kurve.laeuft .kennwerte b { color: #b9b3c9; }
.kurve.laeuft .pl-cursor, .kurve.laeuft .pl-kopf { opacity: 1; }
.kurve .pl-reg, .kurve .pl-note { transition: opacity .5s var(--ease); }
.kurve.laeuft .pl-reg:not(.an), .kurve.laeuft .pl-note:not(.an) { opacity: 0; }
.kurve .ring { --p: 100%; }

/* KI-Support (dunkel, zweite Szene) */
.support { overflow: hidden; color: #fff; background: radial-gradient(90% 70% at 10% 0%, rgba(50,175,215,.18), transparent 60%), linear-gradient(180deg, var(--night), var(--night-2)); }
.support .glow i { opacity: .18; }
.support h2 { color: #fff; }
.support .intro { color: #bcd7e3; }
.support .split.sup { align-items: start; grid-template-columns: 1fr 1fr; }
.modi { display: inline-flex; gap: 2px; padding: 2px; border-radius: 6px; background: #e9edf2; font-size: 11.5px; }
.modi b, .modi span { padding: 3px 8px; border-radius: 4px; font-weight: 400; color: var(--muted); }
.modi b { background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.msg-bot { max-width: 92%; background: #f3f6f9; border: 1px solid var(--line); color: var(--ink); font-size: 14px; line-height: 1.5; padding: 10px 13px; border-radius: 12px 12px 12px 3px; }
.approve.fb { border-color: var(--cyan); }
.approve.fb p { background: var(--cyan-soft); color: #13506a; }
.approve.fb .shield { background: var(--cyan); }
.approve.fb .b-yes { background: var(--cyan-deep); border-color: var(--cyan-deep); }
.approve.fb.ok p { background: #f2f4f7; color: var(--muted); }
.approve.fb .approve-text small { color: #13506a; }
.chip.info { background: var(--cyan-deep); }
@media (min-width: 1061px) { .support .split.sup > .agent { position: sticky; top: calc(var(--top-h) + 24px); } }
.sup-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sup-list li { position: relative; padding: 16px 0 14px 34px; border-bottom: 1px solid rgba(255,255,255,.1); }
.sup-list li:last-child { border-bottom: 0; }
.sup-list li::before { content: ""; position: absolute; left: 0; top: 21px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--cyan); box-shadow: 0 0 0 4px rgba(50,175,215,.15); }
.sup-list h3 { color: #fff; }
.sup-list p { margin: 0; font-size: 16.5px; color: #c7dde8; }

section { position: relative; padding: clamp(64px, 9vw, 120px) 0; }

/* Agenten-Kreislauf */
.agentic { background: linear-gradient(180deg, var(--soft), #fff); }
.loop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
.loop::before { content: ""; position: absolute; left: 24px; right: 24px; top: 23px; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--auto)); transform-origin: left; transition: transform 1.4s var(--ease) .2s; }
html.js .loop::before { transform: scaleX(0); }
.loop li { position: relative; padding-top: 68px; }
.loop b { position: absolute; top: 0; left: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--cyan); color: var(--cyan); font-family: var(--cond); font-size: 20px; box-shadow: 0 0 0 6px var(--soft); transition: background .3s, color .3s, transform .5s var(--ease); }
.loop li:hover b { background: var(--cyan); color: #fff; transform: scale(1.08); }
.loop p { font-size: 16px; line-height: 1.5; color: #3b3846; }
html.js .loop.rv { opacity: 1; transform: none; }
html.js .loop li { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(.25s + var(--i) * .18s); }
html.js .loop.in::before { transform: scaleX(1); }
html.js .loop.in li { opacity: 1; transform: none; }

.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.rev > :first-child { order: 2; }
.area.alt { background: var(--soft); }

/* Bilder im Fensterrahmen */
.frame { border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -24px rgba(21,17,46,.35), 0 8px 20px -10px rgba(21,17,46,.2); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.frame:hover { transform: translateY(-6px); box-shadow: 0 40px 80px -24px rgba(21,17,46,.42), 0 10px 24px -10px rgba(21,17,46,.22); }
/* Kiosk mit KI-Support als HTML nachgebaut: entworfen auf 1600 × 900, 1em = 16 px bei voller Breite */
.kio { container-type: inline-size; }
.kio-in { font-size: calc(100cqw / 100); aspect-ratio: 16 / 9; display: grid; grid-template-columns: 1fr 22.9em; font-family: var(--sans); color: #1d2433; background: #fff; overflow: hidden; line-height: 1.4; }
.kio-in small { font-family: var(--mono); letter-spacing: .06em; }
.kio-links { display: flex; flex-direction: column; min-width: 0; }
.kio-top { display: flex; align-items: center; gap: .9em; height: 3.6em; padding: 0 1.5em; border-bottom: 1px solid #e6e8ee; font-size: .8em; }
.kio-chip { font-family: var(--mono); font-size: .85em; border: 1px solid #d6dae2; border-radius: .4em; padding: .2em .6em; text-transform: uppercase; color: #4a5263; }
.kio-grau { color: #6a7182; }
.kio-zeit { margin-left: auto; font-family: var(--mono); color: #4a5263; }
.kio-voll { background: #fff3dc; border: 1px solid #e9b44c; color: #8a5a00; border-radius: .45em; padding: .55em 1em; }
.kio-voll small { font-size: .8em; opacity: .7; }
.kio-warn { display: flex; gap: .6em; align-items: center; background: #fdf1d8; border-bottom: 1px solid #f0d9a6; color: #7a5200; padding: 0 1.7em; height: 2.6em; font-size: .68em; }
.kio-warn b { font-weight: 400; }
.kio-warn span { font-family: var(--mono); opacity: .8; }
.kio-warn u { margin-left: auto; }
.kio-kopf { display: flex; align-items: center; gap: .8em; padding: .75em 1.25em .6em; }
.kio-kopf div { margin-right: auto; display: flex; flex-direction: column; }
.kio-kopf small { font-size: .62em; color: #6a7182; }
.kio-kopf b { font-weight: 400; font-size: .98em; }
.kio-kopf i { display: block; height: 2px; width: 12.4em; background: var(--manual); margin-top: .4em; }
.kio-id { border: 1px solid #d6dae2; border-radius: .4em; padding: .35em 1.2em .35em 2.2em; font-family: var(--mono); font-size: .72em; display: flex; flex-direction: column; min-width: 13em; }
.kio-id small { font-size: .75em; color: #6a7182; }
.kio-ab { border: 1px solid #e3a6a6; color: var(--fail); border-radius: .4em; padding: .6em 1em; font-size: .8em; }
.kio-karte { flex: 1; margin: 0 1.4em 1em; border: 1.5px solid var(--manual); border-radius: .5em; overflow: hidden; display: flex; flex-direction: column; background: #e3edfb; }
.kio-band { background: var(--manual); color: #fff; text-align: center; font-family: var(--mono); font-size: .62em; letter-spacing: .16em; text-transform: uppercase; padding: .45em; }
.kio-mitte { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.kio-mitte img { height: 19em; width: auto; margin-bottom: .6em; }
.kio-mitte small { font-size: .6em; color: #3f5f9a; text-transform: uppercase; letter-spacing: .14em; }
.kio-mitte b { font-weight: 400; font-size: 1.3em; margin: .5em 0 .4em; }
.kio-mitte p { margin: 0 0 1.4em; font-size: .9em; color: #5d6476; }
.kio-knopf { background: var(--manual); color: #fff; border-radius: .35em; padding: .75em 7.5em; font-size: .85em; box-shadow: 0 .5em 1em -.6em rgba(47,111,214,.8); }
.kio-fuss { display: flex; justify-content: space-between; align-items: center; background: #fff; border-top: 1px solid #d7e2f3; padding: .55em 1em; font-size: .7em; color: #5d6476; }
.kio-fuss em { font-style: normal; color: var(--fail); border: 1px solid #e3a6a6; border-radius: .4em; padding: .5em 1em; }
.kio-chat { border-left: 1px solid #e6e8ee; background: #fafbfc; display: flex; flex-direction: column; font-size: .76em; min-width: 0; }
.kc-top { display: flex; align-items: center; gap: .6em; padding: 0 1.3em; height: 3.8em; flex: none; }
.kc-top b { font-weight: 400; }
.kc-top span { font-family: var(--mono); font-size: .75em; background: #e8a83a; color: #4a2c00; border-radius: .3em; padding: .1em .5em; }
.kc-tabs { display: flex; align-items: center; gap: 1em; padding: 0 1.3em .5em; border-bottom: 1px solid #e6e8ee; flex: none; }
.kc-tabs b { font-weight: 400; background: #fff; border: 1px solid #e0e3ea; border-radius: .4em; padding: .45em 1em; }
.kc-tabs span { color: #5d6476; }
.kc-tabs small { font-size: .8em; color: #8a90a0; }
.kc-tabs u { margin-left: auto; text-decoration: none; color: var(--manual); }
.kc-verlauf { flex: 1; min-height: 0; overflow: hidden; padding: .9em 1.3em 0; display: flex; flex-direction: column; justify-content: flex-end; gap: .75em; }
.kc-verlauf p { margin: 0; }
.kc-ich { align-self: flex-end; background: var(--manual); color: #fff; border-radius: .9em; padding: .5em 1em; }
.kc-tools { list-style: none; margin: 0; padding: 0; display: grid; gap: .5em; font-size: .88em; color: #6a7182; }
.kc-tools li::before { content: "✓"; margin-right: .6em; color: #8a90a0; }
.kc-schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: .45em; counter-reset: k; }
.kc-schritte li { counter-increment: k; display: flex; gap: .9em; background: #fff; border: 1px solid #e3e6ec; border-radius: .5em; padding: .7em 1em; }
.kc-schritte li::before { content: counter(k); flex: none; width: 1.7em; height: 1.7em; border-radius: 50%; background: #e8effa; color: var(--manual); font-size: .8em; display: grid; place-items: center; margin-top: .1em; }
.kc-vorschlag { display: flex; flex-wrap: wrap; gap: .5em; padding: .8em 1.3em .6em; border-top: 1px solid #eceef2; flex: none; }
.kc-vorschlag span { border: 1px solid #d6dae2; background: #fff; border-radius: 1em; padding: .4em .9em; font-size: .9em; }
.kc-eingabe { display: flex; gap: .5em; padding: 0 1.3em; flex: none; }
.kc-eingabe span { flex: 1; border: 1.5px solid var(--manual); border-radius: .4em; padding: .55em .8em; color: #8a90a0; background: #fff; }
.kc-eingabe i, .kc-eingabe b { font-style: normal; font-weight: 400; width: 2.6em; display: grid; place-items: center; border-radius: .4em; border: 1px solid #d6dae2; background: #fff; color: #6a7182; }
.kc-eingabe b { background: var(--manual); color: #fff; border: 0; }
.kc-privat { padding: .7em 1.6em 1em; font-size: .75em; color: #8a90a0; flex: none; }
/* Erscheinen: Frage, Werkzeuge, Antwort nacheinander, sobald das Bild sichtbar wird */
html.js .kc-verlauf > :not(.kc-alt), html.js .kc-vorschlag { opacity: 0; transform: translateY(.6em); transition: opacity .5s var(--ease), transform .5s var(--ease); }
html.js .in .kc-verlauf > *, html.js .in .kc-vorschlag { opacity: 1; transform: none; }
.kc-ich { transition-delay: .6s !important; }
.kc-tools { transition-delay: 1.2s !important; }
.kc-a1 { transition-delay: 1.9s !important; }
.kc-schritte { transition-delay: 2.5s !important; }
.kc-a2 { transition-delay: 3.1s !important; }
.kc-vorschlag { transition-delay: 3.6s !important; }
/* Entwicklung: IDE mit KI-Coder als animierte Szene (seite.js „IDE-Szene“). Entworfen auf 1280 px
   Breite, 1em = 16 px bei voller Breite; skaliert über die Containerbreite. data-z = ms bis „an“. */
.ide { container-type: inline-size; }
.ide-in { --ib: #e4e7ed; --i2: #f6f7f9; --it: #1d2433; --im: #6a7182; --ia: #2f63b8;
  font-size: calc(100cqw / 80); aspect-ratio: 1280 / 760; display: flex; flex-direction: column;
  font-family: var(--sans); color: var(--it); background: #fff; overflow: hidden; line-height: 1.4; }
.ide-in code, .ide-code, .ik-zeilen, .ide-baum .dat, .i-ungesp, .i-entwurf { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
.ide-top, .ide-leiste { display: flex; align-items: center; gap: .6em; padding: 0 .9em; border-bottom: 1px solid var(--ib); font-size: .72em; flex: none; }
.ide-top { height: 3.6em; }
.ide-leiste { height: 3.5em; }
.i-knopf { border: 1px solid #d6dae2; border-radius: .45em; padding: .4em .8em; color: #4a5263; }
.i-knopf.rechts { margin-left: auto; }
.i-badge { background: #b5520b; color: #fff; border-radius: .35em; padding: .25em .6em; font-size: .8em; font-weight: 400; text-transform: uppercase; letter-spacing: .08em; }
.i-pfad { color: var(--im); }
.i-pfad b { color: var(--it); font-weight: 400; }
.i-ungesp { margin-left: 1em; font-size: .85em; color: #8a5a00; background: #fff3dc; border: 1px solid #e9b44c; border-radius: .4em; padding: .2em .6em; opacity: 0; transition: opacity .4s; }
.i-ungesp.an { opacity: 1; }
.i-run { position: relative; border: 1px solid #9bd3b0; background: #eef9f2; color: #1f7a45; border-radius: .45em; padding: .45em .9em; min-width: 11.5em; white-space: nowrap; }
.i-run-laeuft { position: absolute; inset: 0; display: flex; align-items: center; white-space: nowrap; padding: 0 .9em; background: #1f9d55; color: #fff; border-radius: .4em; opacity: 0; transition: opacity .3s; }
.i-run-laeuft.an { opacity: 1; animation: iPuls 1.2s ease-in-out infinite; }
@keyframes iPuls { 50% { background: #23b562; } }
.i-dbg { border: 1px solid #b9cdf0; background: #eef3fc; color: var(--ia); border-radius: .45em; padding: .45em .9em; }
.i-entwurf { margin-left: auto; border: 1px solid #e9b44c; background: #fff7e8; color: #8a5a00; border-radius: .45em; padding: .4em .8em; font-size: .9em; }
.i-pub { background: var(--ia); color: #fff; border-radius: .45em; padding: .45em .9em; }
.ide-mitte { flex: 1; min-height: 0; display: grid; grid-template-columns: 2.6em 11em 1fr; }
.ide-haupt { position: relative; min-width: 0; display: flex; flex-direction: column; }
.tabwechsel { display: none !important; }
.ide-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ide-haupt .p-code { display: none; }
.ide-haupt:has(.tabwechsel.an) .p-code { display: flex; }
.ide-haupt:has(.tabwechsel.an) .p-ki { display: none; }
.ide-tabs .t-ki { background: #fff; color: var(--it); box-shadow: inset 0 2px 0 var(--ia); }
.ide-haupt:has(.tabwechsel.an) .t-ki { background: none; color: var(--im); box-shadow: none; }
.ide-haupt:has(.tabwechsel.an) .t-code { background: #fff; color: var(--it); box-shadow: inset 0 2px 0 var(--ia); }
.ide-tabs .t-rechts { margin-left: auto; border-right: 0; border-left: 1px solid var(--ib); color: var(--ia); }
.ide-hinweis { flex: none; margin: 0 1em .9em; align-self: flex-start; font-size: .66em; background: #eef9f2; border: 1px solid #bfe3cc; color: #1f6b3d; border-radius: .5em; padding: .5em .9em; }
.ide-hinweis em { font-style: normal; color: #1f9d55; }
.ic-auto { border: 1px solid #d6dae2; border-radius: 1em; padding: .2em .7em; white-space: nowrap; margin-left: auto; }
.ide-icons { border-right: 1px solid var(--ib); display: flex; flex-direction: column; align-items: center; gap: 1.1em; padding-top: .9em; background: var(--i2); }
.ide-icons i { width: 1em; height: 1em; border-radius: .25em; border: 1.5px solid #9aa1b0; }
.ide-icons i.an { border-color: var(--ia); background: #e3ecfa; }
.ide-baum { border-right: 1px solid var(--ib); padding: .7em .6em; font-size: .66em; background: #fbfbfc; }
.ide-baum small { display: block; color: var(--im); letter-spacing: .08em; margin-bottom: .7em; }
.ide-baum p { margin: 0 0 .55em; white-space: nowrap; }
.ide-baum .ord { color: var(--it); }
.ide-baum .dat { padding-left: 1.6em; color: #4a5263; }
.ide-baum .akt { background: #e8effa; border-radius: .3em; color: var(--ia); padding-top: .2em; padding-bottom: .2em; }
.ide-baum .akt span { color: #e08a00; opacity: 0; transition: opacity .3s; }
.ide-baum .akt span.an { opacity: 1; }
.ide-tabs { display: flex; font-size: .66em; border-bottom: 1px solid var(--ib); background: var(--i2); flex: none; }
.ide-tabs span { padding: .7em 1.1em; color: var(--im); border-right: 1px solid var(--ib); }
.ide-tabs i { font-style: normal; color: #e08a00; opacity: 0; transition: opacity .3s; }
.ide-tabs i.an { opacity: 1; }
.ide-code { flex: 1; padding: .8em 0; font-size: .7em; overflow: hidden; counter-reset: zeile; }
.ide-code p { counter-increment: zeile; }
.ide-code b::before { content: counter(zeile); }
.ide-code p { margin: 0; display: flex; white-space: pre; line-height: 1.75; transition: background .5s; }
.ide-code b { width: 3.2em; flex: none; text-align: right; padding-right: 1.2em; color: #a8aebb; font-weight: 400; }
.ide-code .k { font-style: normal; color: #a626a4; }
.ide-code .f { font-style: normal; color: #4078f2; }
.ide-code .s { font-style: normal; color: #50a14f; }
.ide-code .n { font-style: normal; color: #c18401; }
.ide-code .neu { background: rgba(31,157,85,.13); box-shadow: inset 3px 0 0 #1f9d55; }
.ide-code .neu b { color: #1f9d55; }
.cursor-zeile span::after { content: ""; display: inline-block; width: 2px; height: 1.1em; vertical-align: -.2em; margin-left: 2.3em; background: var(--ia); animation: iBlink 1s steps(1) infinite; }
@keyframes iBlink { 50% { opacity: 0; } }
.p-ki { background: #fafbfc; }
.ic-kopf { display: flex; align-items: center; gap: .6em; padding: .6em .9em; border-bottom: 1px solid var(--ib); font-size: .66em; flex: none; }
.ic-kopf b { font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic-modell { border: 1px solid #d6dae2; border-radius: .4em; padding: .2em .6em; white-space: nowrap; }
.ic-verlauf { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: .55em; padding: .7em max(1.4em, calc(50% - 22em)); font-size: .7em; }
.ic-verlauf > * { margin: 0; flex: none; }
.ic-ich { align-self: flex-end; max-width: 85%; background: var(--ia); color: #fff; border-radius: .9em .9em .25em .9em; padding: .55em .9em; }
.ic-denkt { color: var(--im); display: flex; align-items: center; gap: .3em; background: #fff; border: 1px solid var(--ib); border-radius: .5em; padding: .55em .8em; }
.ic-denkt i { width: .45em; height: .45em; border-radius: 50%; background: var(--ia); animation: iDenk 1s ease-in-out infinite; }
.ic-denkt i:nth-child(2) { animation-delay: .15s; } .ic-denkt i:nth-child(3) { animation-delay: .3s; margin-right: .4em; }
@keyframes iDenk { 50% { opacity: .25; transform: scale(.7); } }
.ic-tool { display: flex; align-items: center; gap: .5em; background: #fff; border: 1px solid var(--ib); border-radius: .5em; padding: .5em .8em; color: var(--im); }
.ic-tool code { color: var(--it); font-size: .95em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ic-tool small { margin-left: auto; color: var(--ia); white-space: nowrap; opacity: 0; transition: opacity .3s; }
.ic-tool.ok small { opacity: 1; }
.ic-ok { flex: none; width: 1em; height: 1em; border-radius: 50%; border: 1.5px solid #c4cad6; border-top-color: var(--ia); animation: iDreh .8s linear infinite; }
.ok > .ic-ok, .ic-diff.an > .ic-ok { animation: none; border: 0; background: #1f9d55 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.2 5 8.5 9.4 3.9' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
@keyframes iDreh { to { transform: rotate(360deg); } }
.ic-ki { color: var(--it); line-height: 1.5; }
.ic-diff { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .2em .5em; background: #fff; border: 1px solid #bfe3cc; border-radius: .5em; padding: .55em .8em; }
.ic-diff b { font-weight: 400; }
.ic-zahl { font-family: ui-monospace, Consolas, monospace; color: var(--im); }
.ic-zahl em { font-style: normal; color: #1f9d55; }
.ic-diff small { grid-column: 2 / 4; color: var(--im); }
.ic-frei { background: #fff; border: 1.5px solid var(--ia); border-radius: .55em; overflow: hidden; box-shadow: 0 .4em 1.2em -.6em rgba(47,99,184,.5); }
.ic-frei p { margin: 0; }
.ic-frei-kopf { display: flex; justify-content: space-between; background: #eef3fc; padding: .5em .8em; }
.ic-frei-kopf small { color: var(--ia); }
.ic-frei-kopf .f, .ic-frei.ok .ic-frei-kopf .w { display: none; }
.ic-frei.ok .ic-frei-kopf .f { display: inline; color: #1f9d55; }
.ic-frei-text { padding: .6em .8em .4em; }
.ic-frei-knoepfe { display: flex; justify-content: flex-end; gap: .5em; padding: .3em .8em .7em; }
.ic-frei-knoepfe span { border: 1px solid #d6dae2; border-radius: .4em; padding: .4em .9em; }
.ic-frei-knoepfe .ja { background: var(--ia); border-color: var(--ia); color: #fff; transition: transform .15s, box-shadow .3s; }
.ic-frei.drueckt .ja { transform: scale(.94); box-shadow: 0 0 0 .35em rgba(47,99,184,.25); }
.ic-frei.ok .ic-frei-knoepfe { display: none; }
.ic-eingabe { display: flex; gap: .5em; padding: .6em max(1.4em, calc(50% - 22em)) .8em; border-top: 1px solid var(--ib); font-size: .7em; flex: none; }
.ic-feld { position: relative; flex: 1; min-height: 3.2em; border: 1px solid #d6dae2; border-radius: .5em; background: #fff; padding: .55em .7em; color: var(--it); }
.ic-platz { position: absolute; left: .7em; top: .55em; color: #9aa1b0; }
.ic-tipp:not(:empty) + .ic-platz { display: none; }
.ic-tipp .rest { visibility: hidden; }
.ic-senden { align-self: flex-end; background: var(--ia); color: #fff; border-radius: .45em; padding: .5em .9em; opacity: .55; transition: opacity .3s, transform .15s; }
.ic-senden.bereit { opacity: 1; }
.ic-senden.drueckt { transform: scale(.94); }
.ide-konsole { height: 9.4em; border-top: 1px solid var(--ib); display: flex; flex-direction: column; flex: none; }
.ik-tabs { display: flex; gap: 1.2em; padding: .5em .9em; font-size: .62em; color: var(--im); border-bottom: 1px solid var(--ib); }
.ik-tabs b { color: var(--ia); font-weight: 400; box-shadow: 0 2px 0 var(--ia); }
.ik-zeilen { flex: 1; padding: .4em .9em; font-size: .62em; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.ik-zeilen p { margin: 0; line-height: 1.6; white-space: nowrap; }
.ik-zeilen em { font-style: normal; color: #a8aebb; margin-right: 1.2em; }
.ik-zeilen i { font-style: normal; display: inline-block; width: 3.6em; color: var(--ia); }
.ik-zeilen b { color: #1f9d55; font-weight: 400; }
.ik-zeilen .gruen { color: #1f9d55; }
.ik-zeilen .gruen i { color: #1f9d55; }
.ide-status { display: flex; gap: 1.2em; padding: .35em .9em; font-size: .58em; color: var(--im); border-top: 1px solid var(--ib); background: var(--i2); flex: none; }
.ide-status .r { margin-left: auto; }
/* Ablauf: [data-z] erscheint mit „an“; ohne JS bzw. bei reduzierter Bewegung steht alles da. */
html.js .ide.szene [data-z]:not(.an):not(.tabwechsel):not(.i-ungesp):not(.i-run-laeuft):not(span) { display: none; }
.ide [data-bis]:not(.an):not(.tabwechsel):not(.i-run-laeuft) { display: none; }
html.js .ide.szene .ide-baum [data-z]:not(.an), html.js .ide.szene .ide-tabs [data-z]:not(.an) { opacity: 0; }
html.js .ide.szene .ic-verlauf > .an, html.js .ide.szene .ik-zeilen > .an, html.js .ide.szene .ide-code .neu.an { animation: iRein .45s var(--ease) both; }
@keyframes iRein { from { opacity: 0; transform: translateY(.5em); } }

@media (prefers-reduced-motion: reduce) {
  html.js .kc-verlauf > :not(.kc-alt), html.js .kc-vorschlag { opacity: 1; transform: none; transition: none; }
}
.win { display: flex; align-items: center; gap: 12px; padding: 9px 14px; background: #f7f9fb; border-bottom: 1px solid var(--line); font-family: var(--sans); font-size: 12.5px; color: var(--muted); }
.hero-shot { display: none; }
figure.wide { margin-bottom: 56px; }

/* CAD mit Beschriftungen */
.cad-stage { position: relative; max-width: 520px; margin: 0 auto; }
.cad-stage { animation: schweben 7s ease-in-out infinite; }
.render { width: 100%; filter: drop-shadow(0 30px 30px rgba(21,17,46,.22)); }
@keyframes schweben { 50% { transform: translateY(-10px) rotate(-.4deg); } }
.pin { position: absolute; left: var(--x); top: var(--y); --tx: -6px; transform: translate(var(--tx), -6px); display: flex; align-items: center; gap: 8px; font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--navy); white-space: nowrap; pointer-events: none; }
.pin span { background: #fff; padding: 4px 8px 3px; border-radius: 4px; box-shadow: 0 6px 16px -6px rgba(21,17,46,.45); }
.pin::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(50,175,215,.25); flex: none; }
.pin::after { content: ""; position: absolute; left: -6px; top: -6px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--cyan); animation: ring 2.4s ease-out infinite; animation-delay: var(--d); opacity: 0; }
@keyframes ring { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
html.js .cad .pin { opacity: 0; transform: translate(var(--tx), 4px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: var(--d); }
html.js .cad.in .pin { opacity: 1; transform: translate(var(--tx), -6px); }
.pin.links { flex-direction: row-reverse; --tx: calc(-100% + 6px); }
.pin.links::after { left: auto; right: -6px; }

/* Entwicklung */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.grid3 p { font-size: 16.5px; }
.feat { padding-top: 18px; border-top: 2px solid var(--cyan); }

/* Oberfläche */
.ui-band { background: linear-gradient(180deg, #fff, var(--soft)); }
.chip { display: inline-block; font-family: var(--cond); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 13.5px; color: #fff; padding: 5px 11px 4px; border-radius: 4px; }
.chip.manual { background: var(--manual); }
.chip.auto { background: var(--auto); }
.chip.pass { background: var(--pass); }
.chip.fail { background: var(--fail); }

.facts { border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 80px) 0; }
.facts h3 { color: var(--cyan); }
.facts p { font-size: 16.5px; }

/* Kontakt */
.contact { overflow: hidden; color: #fff; background: linear-gradient(100deg, rgba(21,17,46,.94), rgba(21,17,46,.6)), var(--night) url(img/bokeh.webp) center 70% / cover no-repeat; }
.contact .glow i { opacity: .25; }
.contact-in { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; z-index: 1; }
.contact h2 { color: #fff; margin-bottom: 10px; font-size: clamp(32px, 4.4vw, 52px); }
.contact p { font-family: var(--sans); font-weight: 300; font-size: 21px; color: #cfeaf4; margin-bottom: 28px; }
.contact address { font-style: normal; font-family: var(--sans); font-weight: 300; letter-spacing: .1em; line-height: 1.9; font-size: 16px; text-align: right; }
.contact address a { text-decoration: none; transition: color .2s; }
.contact address a:hover { color: var(--cyan); }

/* Fußzeile */
.foot { padding: 24px 0; }
.foot-in { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font-family: var(--sans); font-size: 14px; }
.foot img { height: 24px; width: auto; }
.foot .claim { color: var(--cyan); }
.foot .links { margin-left: auto; display: flex; gap: 20px; }
.foot .links a { color: var(--muted); text-decoration: none; }
.foot .links a:hover { color: var(--navy); text-decoration: underline; }

/* ---------- Einblenden beim Scrollen ---------- */
html.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
html.js .rv.in { opacity: 1; transform: none; }
html.js .rv-img { transform: translateY(40px) scale(.97); }
html.js .rv-img.in { transform: none; }

/* ---------- Schmal ---------- */
@media (max-width: 1060px) {
  .top nav { display: none; }
  .top .btn { margin-left: auto; }
  .hero-in, .split, .support .split.sup, .terminals, .kurve-split { grid-template-columns: 1fr; }
  .regeln { grid-template-columns: 1fr 1fr; }
  .split.rev > :first-child { order: 0; }
  .agent { max-width: 620px; }
  .loop { grid-template-columns: 1fr; gap: 0; }
  .loop::before { left: 23px; right: auto; top: 24px; bottom: 24px; width: 2px; height: auto; transform-origin: top; background: linear-gradient(180deg, var(--cyan), var(--auto)); }
  html.js .loop::before { transform: scaleY(0); }
  html.js .loop.in::before { transform: scaleY(1); }
  .loop li { padding: 6px 0 22px 72px; min-height: 70px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .brand span { display: none; }
  .grid3, .regeln { grid-template-columns: 1fr; }
  .areas { grid-template-columns: 1fr; }
  .areas a, .areas a + a { padding: 16px 0; border-left: 0; }
  .areas a + a { border-top: 1px solid rgba(255,255,255,.16); }
  .tool { grid-template-columns: 18px 1fr; }
  .tool code { grid-column: 2; text-align: left; }
  .pin span, .modi { display: none; }
  .kennwerte b { font-size: 14px; }
  .code { font-size: 11px; }
  .contact address { text-align: left; }
  .foot .links { margin-left: 0; }
}

/* ---------- Reduzierte Bewegung: alles sofort im Endzustand ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .rv, html.js .loop li { opacity: 1; transform: none; }
  html.js .cad .pin { opacity: 1; transform: translate(var(--tx), -6px); }
  .marquee-track { width: auto; flex-wrap: wrap; }
  .marquee ul[aria-hidden] { display: none; }
}
