/* Schlicht nach Apple: schwarzer Grund, Systemschrift mit grössenabhängiger Laufweite, Kacheln ohne Rahmen,
   ein Akzent (Indigo-Cyan-Verlauf) nur an wenigen Stellen. Keine fremden Schriften, keine fremden Dienste. */
:root {
  /* Hell ist der Standard (Vorgabe Andrin), dunkel per Schalter in der Navigation */
  color-scheme: light;
  --bg: #fff; --surface: #f5f5f7; --surface-2: #f5f5f7; --surface-tint: #fff; --ink: #1d1d1f; --muted: #6e6e73; --faint: #86868b;
  --line: rgba(0, 0, 0, .1); --link: #0066cc;
  --grad: linear-gradient(100deg, #5b5ff0 0%, #2a7de1 55%, #0891b2 100%);
  --nav-bg: rgba(255, 255, 255, .78); --btn-hover: #e8e8ed; --on-ink: #fff; --track: rgba(0, 0, 0, .08);
  --glow: rgba(0, 102, 204, .07); --logo-grau: #b4b8c2; --soft: rgba(0, 0, 0, .04); --cta-glow: rgba(42, 125, 225, .12);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);            /* ruhiges Auslaufen, kein Nachfedern */
  --r-lg: 28px; --r-md: 20px;
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000; --surface: #111113; --surface-2: #1c1c1e; --surface-tint: #1c1c1f; --ink: #f5f5f7; --muted: #a1a1a6; --faint: #6e6e73;
  --line: rgba(255, 255, 255, .1); --link: #6fc8ff;
  --grad: linear-gradient(100deg, #8b8ff8 0%, #4fc3f7 55%, #22d3ee 100%);
  --nav-bg: rgba(0, 0, 0, .72); --btn-hover: #2c2c2e; --on-ink: #000; --track: rgba(255, 255, 255, .08);
  --glow: rgba(111, 200, 255, .09); --logo-grau: #5c5f68; --soft: rgba(255, 255, 255, .05); --cta-glow: rgba(79, 195, 247, .16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); transition: background-color .4s, color .4s;
  font: 17px/1.47 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.022em; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; justify-content: center; }
.muted { color: var(--muted); }
.entwurf { background: #f5a623; color: #1a1205; text-align: center; font-size: 12px; padding: 4px; letter-spacing: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 12px; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 6px; }

/* Navigation: durchscheinendes Material, Kante erst beim Scrollen */
.nav { position: sticky; top: 0; z-index: 20; background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 52px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.mono { width: 36px; height: 22px; color: var(--ink); flex: none; }
.nav-links { display: flex; align-items: center; gap: 28px; margin-left: auto; margin-right: 14px; }
.nav-links a:not(.btn) { color: var(--muted); font-size: 13px; letter-spacing: -0.01em; transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--ink); text-decoration: none; }
.menu-btn { display: none; font: inherit; font-size: 14px; color: var(--ink); background: none; border: 0; padding: 8px 4px; cursor: pointer; }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav-links { display: none; position: absolute; top: 52px; left: -24px; right: -24px; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); padding: 4px 24px 24px; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--ink); }
  .nav-links .btn { margin-top: 18px; justify-content: center; }
  .nav-links.always { display: flex; position: static; flex-direction: row; padding: 0; background: none; border: 0; }
  .nav-links.always .btn { margin-top: 0; }
}

/* Knöpfe: Pillen, Rückmeldung beim Drücken */
.actions { display: flex; gap: 14px 28px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 999px;
  font-weight: 500; font-size: 17px; color: var(--ink); background: var(--surface-2); transition: transform .1s ease-out, background .2s; }
.btn:hover { text-decoration: none; background: var(--btn-hover); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--ink); color: var(--on-ink); }
.btn.primary:hover { background: var(--ink); opacity: .86; }
.btn.small { min-height: 30px; padding: 0 14px; font-size: 12px; }
.btn.light { background: var(--ink); color: var(--on-ink); }
.btn.ghost { background: transparent; color: var(--link); padding: 0 8px; }
.btn.ghost:hover { background: transparent; text-decoration: underline; }
.link-more { font-size: 17px; }
.link-more::after, .more::after { content: " ›"; }

/* Kopf */
.hero { padding: 120px 0 64px; text-align: center; overflow-x: clip; }
.eyebrow { color: var(--muted); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 14px; }
.headline { font-size: clamp(48px, 8.4vw, 104px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 700; margin: 0 auto 22px; max-width: 12ch; }
.headline span { display: inline-block; }
.hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.lead { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.4; letter-spacing: -0.015em; color: var(--muted); max-width: 34ch; margin: 0 auto 30px; }
@media (prefers-reduced-motion: no-preference) {
  .headline span { opacity: 0; transform: translateY(.35em); filter: blur(8px); animation: wort .9s var(--ease) forwards; }
  .headline span:nth-child(2) { animation-delay: .06s } .headline span:nth-child(3) { animation-delay: .12s }
  .headline span:nth-child(4) { animation-delay: .18s } .headline span:nth-child(5) { animation-delay: .3s }
  .hero .lead, .hero .actions, .hero .eyebrow { opacity: 0; animation: auf .9s var(--ease) .45s forwards; }
  .hero .eyebrow { animation-delay: 0s; }
  .demo { opacity: 0; transform: translateY(40px) scale(.97); animation: fenster 1.2s var(--ease) .65s forwards; }
}
@keyframes wort { to { opacity: 1; transform: none; filter: none; } }
@keyframes auf { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fenster { to { opacity: 1; transform: none; } }

/* Demo-Fenster: lokales Modell schreibt live */
/* Fenster: dunkel in beiden Modi, wie ein Programmfenster */
.win { --ink: #f5f5f7; --muted: #a1a1a6; --faint: #6e6e73; --line: rgba(255, 255, 255, .1); --link: #6fc8ff; color-scheme: dark; color: var(--ink);
  position: relative; margin: 0; text-align: left; border-radius: 18px; background: #0d0d10; display: flex; flex-direction: column;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 80px -40px rgba(79, 195, 247, .3), 0 24px 50px -30px rgba(0, 0, 0, .7); }
.demo { max-width: 760px; margin: 64px auto 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 120px -40px rgba(79, 195, 247, .35), 0 30px 60px -30px rgba(0, 0, 0, .8); }
.demo::before { content: ""; position: absolute; inset: -40% -10% auto; height: 80%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(139, 143, 248, .22), transparent); filter: blur(30px); }
.demo-bar { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.dots { display: flex; gap: 8px; } .dots i { width: 12px; height: 12px; border-radius: 50%; background: #3a3a3c; }
.dots i:first-child { background: #ff5f57; } .dots i:nth-child(2) { background: #febc2e; } .dots i:nth-child(3) { background: #28c840; }
.demo-title { font-weight: 600; color: var(--ink); white-space: nowrap; }
.demo-state { margin-left: auto; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0; }
.demo-state b { width: 8px; height: 8px; border-radius: 50%; background: #30d158; box-shadow: 0 0 0 0 rgba(48, 209, 88, .6); animation: puls 2.4s infinite; }
@keyframes puls { 70% { box-shadow: 0 0 0 8px rgba(48, 209, 88, 0); } 100% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0); } }
.demo-body { padding: 24px 26px 20px; display: flex; flex-direction: column; gap: 14px; }
.demo-foot { display: flex; justify-content: space-between; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); font-family: var(--mono); letter-spacing: 0; }
.demo-foot span:first-child { text-transform: uppercase; letter-spacing: .12em; }

/* Leiste «Arbeitet mit» */
.partners-bar { padding: 56px 0 24px; }
.partners-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.partners-label { font-size: 13px; color: var(--faint); letter-spacing: 0; }
.partners-bar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 36px; }
.partners-bar a { color: var(--muted); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; transition: color .2s; }
.partners-bar a:hover { color: var(--ink); text-decoration: none; }

/* Abschnitte */
section { padding-block: 120px; }
.tint { background: var(--surface); }
.kicker { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 10px; display: inline-block;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { text-wrap: balance; font-size: clamp(36px, 5.4vw, 64px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 700; margin: 0 0 56px; }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 8px; font-weight: 600; }
section > .wrap:not(.two-col) > .kicker, section > .wrap:not(.two-col) > h2 { display: block; text-align: center; }
section > .wrap:not(.two-col) > h2 { max-width: 18ch; margin-inline: auto; }
.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid.three { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .grid.two { grid-template-columns: 1fr; } section { padding-block: 88px; } }

/* Kacheln mit Lichtschein, der dem Zeiger folgt */
.door, .project, .card, .steps li { position: relative; background: var(--surface-2); border-radius: var(--r-lg); overflow: hidden; isolation: isolate; }
.tint .door, .tint .project, .tint .card, .tint .steps li { background: var(--surface-tint); }
.door::after, .project::after, .card::after, .steps li::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--glow), transparent 60%); pointer-events: none; }
.door:hover::after, .project:hover::after, .card:hover::after, .steps li:hover::after { opacity: 1; }

/* Angebot */
.door { padding: 40px; }
.door-head { margin: 0 0 6px; color: var(--muted); font-size: 15px; }
.door-head .tag { display: block; font-size: 28px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); text-transform: none; font-family: inherit; margin-bottom: 4px; }
.offer { list-style: none; margin: 18px 0 0; padding: 0; }
.offer li { padding: 22px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.offer strong { display: block; color: var(--ink); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 4px; }
.fmt { display: block; margin-top: 10px; font-size: 13px; color: var(--link); letter-spacing: -0.01em; }

/* Ablauf: Linie füllt sich, wenn der Abschnitt ins Bild kommt */
.steps { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.steps li { padding: 36px 32px; color: var(--muted); font-size: 16px; }
.steps strong { display: block; color: var(--ink); font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 6px; }
.num { display: block; font: 600 15px/1 var(--mono); letter-spacing: 0; color: var(--faint); margin-bottom: 22px; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
#ablauf .actions { justify-content: center; }

/* Projekte */
.project { display: flex; flex-direction: column; }
.project > a, .project > img { display: block; overflow: hidden; }
.project img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .8s var(--ease); }
.project:hover img { transform: scale(1.03); }
.project .body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.project p, .card p { color: var(--muted); margin: 0; font-size: 16px; }
.tag { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: -0.01em; }
.more { margin-top: auto; padding-top: 14px; font-weight: 500; font-size: 16px; }
.more.soon { color: var(--faint); }
.more.soon::after { content: ""; }
.small-projects { margin-top: 20px; }
.card { padding: 30px; }
.card .tag { display: block; margin-bottom: 6px; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .project img { animation: heran linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  }
}
@keyframes heran { from { transform: scale(1.12); } to { transform: scale(1); } }

/* Über mich */
.two-col { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }
.two-col h2 { margin-bottom: 20px; font-size: clamp(32px, 4vw, 48px); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 20px; margin: 36px 0 12px; }
.facts strong { display: block; font-size: 56px; line-height: 1; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.facts span { color: var(--muted); font-size: 15px; }
.profil { margin-top: 28px; border-radius: var(--r-md); background: var(--soft); padding: 0 22px; }
.profil summary { cursor: pointer; padding: 16px 0; font-weight: 500; list-style: none; }
.profil summary::-webkit-details-marker { display: none; }
.profil summary::after { content: " +"; color: var(--link); }
.profil[open] summary::after { content: " −"; }
.profil p { color: var(--muted); font-size: 15px; margin: 0 0 14px; }
.sub { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); margin: 8px 0 4px; }
.edu-head { margin-top: 28px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 16px 0; border-top: 1px solid var(--line); color: var(--muted); display: grid; grid-template-columns: 120px 1fr; gap: 0 16px; }
.timeline .when { grid-row: span 2; font-size: 14px; color: var(--faint); font-variant-numeric: tabular-nums; padding-top: 2px; }
.timeline strong { color: var(--ink); font-weight: 600; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 18px 0; border-top: 1px solid var(--line); color: var(--muted); }
.list strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.list.compact li { padding: 12px 0; font-size: 15px; }

/* Beiträge */
.post h3 a { color: var(--ink); }
.post h3 a:hover { color: var(--link); text-decoration: none; }
.post .more { display: inline-block; margin-top: 14px; }

/* Fragen: Antwort gleitet auf, wo der Browser es kann */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 24px 40px 24px 0; font-weight: 600; font-size: 19px; letter-spacing: -0.02em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 20px; font-size: 26px; font-weight: 300; color: var(--muted); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--muted); max-width: 60ch; }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip; transition: height .5s var(--ease), content-visibility .5s allow-discrete; }
  .faq details[open]::details-content { height: auto; }
}
#fragen h2 { margin-bottom: 32px; }

/* Kontakt */
.cta { text-align: center; background: radial-gradient(700px 360px at 50% 110%, var(--cta-glow), transparent 70%), var(--bg); }
.cta h2 { margin-bottom: 18px; }
.cta p { color: var(--muted); font-size: 21px; line-height: 1.4; margin: 0 auto 34px; max-width: 34ch; }

footer { padding-block: 28px 44px; color: var(--faint); font-size: 12px; border-top: 1px solid var(--line); }
footer a { color: var(--muted); }

/* Einblenden beim Scrollen */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease) var(--d, 0ms), transform 1s var(--ease) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* Rechtliche Seiten und Artikel */
.legal, .article { padding-block: 72px 112px; }
.legal h1, .article h1 { font-size: clamp(36px, 5.4vw, 56px); line-height: 1.06; letter-spacing: -0.035em; margin: 0 0 20px; }
.legal h2 { font-size: 21px; margin: 40px 0 10px; letter-spacing: -0.02em; text-align: left; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--ink); }
.article .meta { color: var(--faint); font-size: 14px; margin: 0 0 40px; }
.article .body p { font-size: 19px; line-height: 1.58; letter-spacing: -0.015em; margin: 0 0 20px; }
.article .body h2 { font-size: 28px; margin: 48px 0 14px; text-align: left; }
.article .note { margin-top: 48px; padding: 20px 22px; border-radius: var(--r-md); background: var(--surface-2); color: var(--muted); font-size: 15px; }

/* Weniger Bewegung: alles sofort sichtbar, keine Wege, keine Skalierung */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (prefers-reduced-transparency: reduce) { .nav { background: var(--bg); backdrop-filter: none; } }
@media (max-width: 520px) {
  .ampel .demo-state { display: none; }
  .demo-body { padding: 20px 18px 16px; }
  .demo-foot { flex-direction: column; gap: 4px; }
  .demo-foot .demo-meta { white-space: normal; }
  .zkf-tabs button { padding: 4px 9px; }
}

/* Schalter hell und dunkel */
.nav-tools { display: flex; align-items: center; gap: 4px; }
.theme-btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: pointer; transition: color .2s, background .2s; }
.theme-btn:hover { color: var(--ink); background: var(--soft); }
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .mond { display: none; }
[data-theme="dark"] .theme-btn .sonne { display: none; }
[data-theme="dark"] .theme-btn .mond { display: block; }

/* Knopf am Ende jedes Angebots, Hervorhebung beim Sprung aus dem Kopf */
.door { display: flex; flex-direction: column; }
.door-cta { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); font-weight: 500; }
.door-cta::after { content: " ›"; }
.door:target { box-shadow: 0 0 0 2px var(--link); }
@media (prefers-reduced-motion: no-preference) { .door:target { animation: gefunden 1.6s var(--ease); } }
@keyframes gefunden { 0% { box-shadow: 0 0 0 0 var(--link); } 30% { box-shadow: 0 0 0 6px var(--link); } 100% { box-shadow: 0 0 0 2px var(--link); } }
.offer { margin-bottom: 8px; }

/* Ampel im Kopf */
.ampel-frage { margin: 0; color: var(--muted); font-size: 15px; }
.ampel-wahl { display: flex; flex-wrap: wrap; gap: 8px; }
.ampel-wahl button { font: inherit; font-size: 14px; color: var(--ink); background: #1f1f22; border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px;
  padding: 7px 14px; cursor: pointer; transition: background .2s, border-color .2s, transform .1s ease-out; }
.ampel-wahl button:hover { background: #2a2a2e; }
.ampel-wahl button:active { transform: scale(.96); }
.ampel-wahl button[aria-pressed="true"] { background: #f5f5f7; color: #000; border-color: #f5f5f7; }
.ampel-antwort { border-top: 1px solid var(--line); padding-top: 18px; min-height: 120px; }
.ampel-antwort p { margin: 0; }
.ampel-stufe { display: flex; align-items: center; gap: 10px; font-size: 19px; letter-spacing: -0.02em; }
.licht { width: 14px; height: 14px; border-radius: 50%; background: #3a3a3c; transition: background .3s, box-shadow .3s; }
.ampel[data-stufe="gruen"] .licht { background: #30d158; box-shadow: 0 0 16px rgba(48, 209, 88, .7); }
.ampel[data-stufe="gelb"] .licht { background: #ffd60a; box-shadow: 0 0 16px rgba(255, 214, 10, .6); }
.ampel[data-stufe="rot"] .licht { background: #ff453a; box-shadow: 0 0 16px rgba(255, 69, 58, .7); }
.ampel-werkzeug { margin-top: 6px !important; color: var(--link); font-size: 15px; }
.ampel-grund { margin-top: 8px !important; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* Einblick: zwei Fenster nebeneinander */
.wins { align-items: stretch; }
.win-text { margin-top: auto; padding: 18px 22px 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; line-height: 1.5; }
.win-text strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.agent-log { list-style: none; margin: 0; padding: 22px 22px 18px; display: grid; gap: 12px; font-family: var(--mono); font-size: 13px; letter-spacing: 0; color: var(--ink); min-height: 230px; }
.agent-log li { display: flex; gap: 10px; align-items: baseline; opacity: .25; transition: opacity .4s var(--ease); }
.agent-log li::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--faint); transform: translateY(1px); }
.agent-log li.laeuft { opacity: 1; }
.agent-log li.laeuft::before { border-color: var(--link); border-right-color: transparent; animation: drehen .8s linear infinite; }
.agent-log li.fertig { opacity: 1; color: var(--muted); }
.agent-log li.fertig::before { background: #30d158; border-color: #30d158; }
.agent-log li.halt.fertig { color: #ffd60a; }
.agent-log li.halt.fertig + li, .agent-log li:last-child.fertig:not(.halt) { color: var(--ink); }
.agent-log li.halt.fertig::before { background: #ffd60a; border-color: #ffd60a; animation: puls-gelb 1.6s infinite; }
@keyframes drehen { to { transform: translateY(1px) rotate(360deg); } }
@keyframes puls-gelb { 50% { box-shadow: 0 0 0 5px rgba(255, 214, 10, 0); } 0% { box-shadow: 0 0 0 0 rgba(255, 214, 10, .5); } }
.zkf-tabs { margin-left: auto; display: flex; background: #1f1f22; border-radius: 999px; padding: 3px; }
.zkf-tabs button { font: inherit; font-size: 12px; color: var(--muted); background: none; border: 0; border-radius: 999px; padding: 4px 12px; cursor: pointer; transition: background .25s, color .25s; }
.zkf-tabs button[aria-selected="true"] { background: #3a3a3c; color: var(--ink); }
.zkf-body { padding: 22px; min-height: 230px; }
.zkf-pane { animation: auf .5s var(--ease); }
.zkf-prompt { margin: 0 0 14px; font-family: var(--mono); font-size: 13px; letter-spacing: 0; line-height: 1.75; color: var(--ink); background: #18181b; border-radius: 12px; padding: 14px 16px; }
.zkf-prompt .z { display: inline-block; min-width: 70px; color: var(--link); font-weight: 600; }
.zkf-note { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 520px) { .agent-log, .zkf-body { min-height: 0; } .zkf-prompt .z { display: block; } }

/* Ampel im Einblick: volle Breite über den beiden Abläufen */
.ampel { margin-bottom: 20px; }
.ampel::before { content: ""; position: absolute; inset: -20% 10% auto; height: 70%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(139, 143, 248, .18), transparent); filter: blur(30px); }
