/* =====================================================================
   Kowalski-Seite (/kowalski, /de/kowalski), neu 19.11.2026.
   HTML wird gebaut: entwicklung/kowalski-seite (vorlage.html + texte.js -> public/kowalski(.de).html).
   Verhalten: js/kowalski-seite.js. Flach und ruhig wie die Startseite: keine Verlaeufe, kein Leuchten,
   kein Glas. Das Kowalski-Fenster (.kwd-*) ist derselbe Nachbau wie auf der Startseite (index.html, #ai).
   ===================================================================== */

.kw { --kw-r: 18px; }
.kw .hl { color: var(--primary); }
.kw-wrap { max-width: var(--content); margin: 0 auto; padding: 0 var(--pad-x); }
.kw svg { flex: none; }

/* Erscheinen beim Scrollen (nur mit JavaScript, sonst bleibt alles sichtbar) */
.kw-js .kw-rein { opacity: 0; transform: translateY(16px); transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1); transition-delay: var(--rd, 0s); }
.kw-js .kw-rein.sichtbar { opacity: 1; transform: none; }

/* ---------- Kopf ---------- */
.kw-hero { margin-top: 70px; padding: clamp(40px, 5.5vw, 72px) 0 0; background: var(--bg-darker); border-bottom: 1px solid var(--line); overflow: hidden; }
.kw-hero-text { max-width: 980px; margin: 0 auto; text-align: center; }
.kw-hero .crumbs { justify-content: center; margin-bottom: 22px; }
.kw-hero h1 { margin: 0 auto 20px; max-width: 18ch; text-wrap: balance; font-size: clamp(2.5rem, 5.8vw, 4.5rem); font-weight: 800; letter-spacing: -0.042em; line-height: 1.02; color: var(--text-bright); }
.kw-sub { margin: 0 auto; max-width: 64ch; font-size: clamp(1.02rem, 1.4vw, 1.17rem); line-height: 1.65; color: var(--text-muted); }
.kw-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.kw-facts { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; color: var(--text-muted); font-size: 0.93rem; }
.kw-facts li { display: inline-flex; align-items: center; gap: 8px; }
.kw-facts svg { width: 18px; height: 18px; color: var(--primary); }
.kw-facts b { color: var(--text-bright); font-weight: 600; }

/* Buehne: echtes Dashboard (Bild) + Kowalski-Fenster darueber */
.kw-buehne { position: relative; max-width: 1240px; margin: clamp(40px, 5vw, 60px) auto 0; padding: 0 var(--pad-x); }
.kw-dash { height: clamp(420px, 44vw, 600px); border-radius: 20px 20px 0 0; border: 1px solid var(--line-strong); border-bottom: 0; overflow: hidden; background: var(--bg-dark); }
.kw-dash img { width: 100%; height: auto; display: block; filter: brightness(0.62) saturate(0.85); transition: filter 0.6s ease; }
.kw-buehne .kwd { position: absolute; top: clamp(28px, 4vw, 52px); right: calc(var(--pad-x) + clamp(20px, 3vw, 44px)); width: min(430px, 44%); }
.kw-buehne .kwd-win { height: clamp(400px, 40vw, 520px); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04); }
.kw-nochmal { position: absolute; left: 50%; bottom: -46px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg-card); color: var(--text); font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: border-color 0.15s, color 0.15s, transform 0.12s; }
.kw-nochmal svg { width: 15px; height: 15px; }
.kw-nochmal:hover { border-color: var(--primary); color: var(--text-bright); }
.kw-nochmal:active { transform: translateX(-50%) scale(0.96); }
.kw-nochmal[hidden] { display: none; }

/* ---------- Kowalski-Fenster (wie index.html #ai) ---------- */
.kwd-win { display: flex; flex-direction: column; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--bg-card); box-shadow: var(--shadow-md); overflow: hidden; color: var(--text); font-size: 0.875rem; text-align: left; }
.kwd-head { flex: none; display: flex; align-items: center; gap: 11px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.kwd-head img { width: 36px; height: 36px; flex: none; display: block; }
.kwd-who { min-width: 0; }
.kwd-who b { display: block; font-size: 0.95rem; font-weight: 700; color: var(--text-bright); letter-spacing: -0.01em; line-height: 1.25; }
.kwd-who span { display: block; font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kwd-state { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; opacity: 0; transition: opacity 0.25s; }
.kwd-state.on { opacity: 1; }
.kwd-state svg { width: 14px; height: 14px; color: var(--primary); display: none; }
.kwd-state .kwd-spin { display: none; }
.kwd[data-phase="work"] .kwd-state .kwd-spin { display: block; }
.kwd[data-phase="done"] .kwd-state svg { display: block; }
.kwd-log { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.kwd-feed { margin-top: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; transition: opacity 0.3s ease; }
.kwd-feed > * { flex-shrink: 0; }
.kwd-feed.is-fading { opacity: 0; }
.kwd-in { animation: kwdIn 0.26s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
.kwd-msg { max-width: 88%; padding: 9px 13px; border-radius: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.kwd-msg.me { align-self: flex-end; background: var(--primary); color: #04201f; font-weight: 500; border-bottom-right-radius: 5px; }
.kwd-msg.kw { align-self: flex-start; background: var(--bg-elevated); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.kwd-dots { align-self: flex-start; display: inline-flex; gap: 4px; padding: 13px 14px; border-radius: 14px; border-bottom-left-radius: 5px; background: var(--bg-elevated); border: 1px solid var(--line); }
.kwd-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); animation: kwdDot 1.1s ease-in-out infinite; }
.kwd-dots i:nth-child(2) { animation-delay: 0.15s; }
.kwd-dots i:nth-child(3) { animation-delay: 0.3s; }
.kwd-thought { display: flex; gap: 8px; padding: 2px 4px; font-size: 0.82rem; line-height: 1.5; color: var(--text-muted); }
.kwd-thought svg { flex: none; width: 14px; height: 14px; margin-top: 3px; }
.kwd-step { display: flex; align-items: center; gap: 10px; padding: 7px 11px 7px 8px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); font-size: 0.82rem; }
.kwd-ic { flex: none; width: 26px; height: 26px; border-radius: 7px; display: flex; align-items: center; justify-content: center; background: var(--bg-elevated); color: var(--text-muted); transition: color 0.25s, background-color 0.25s; }
.kwd-ic svg { width: 14px; height: 14px; display: block; }
.kwd-step[data-st="run"] .kwd-ic { color: var(--primary); background: var(--primary-dim); }
.kwd-step[data-st="done"] .kwd-ic { color: var(--primary); }
.kwd-step[data-st="skip"] { opacity: 0.7; }
.kwd-what { flex: 1; min-width: 0; color: var(--text); line-height: 1.4; }
.kwd-what code, .kwd-ask code, .kwd-thought code, .kw-frage code, .kw-probe code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88em; color: inherit; }
.kwd-st { flex: none; display: flex; align-items: center; justify-content: flex-end; min-width: 22px; font-size: 0.74rem; line-height: 1.4; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.kwd-st svg, .kwd-st .kwd-ok { width: 13px; height: 13px; color: var(--primary); }
.kwd-spin { width: 12px; height: 12px; border-radius: 50%; box-sizing: border-box; border: 2px solid var(--primary); border-right-color: transparent; animation: kwdSpin 0.8s linear infinite; }
.kwd-ask { box-sizing: border-box; overflow: hidden; padding: 12px 13px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg-elevated); transition: height 0.28s cubic-bezier(0.3, 0.7, 0.3, 1), background-color 0.28s, border-color 0.28s, border-radius 0.28s; }
.kwd-ask > * { transition: opacity 0.14s ease; }
.kwd-ask.is-leaving { background: rgba(255, 255, 255, 0.02); border-color: var(--line); border-radius: 10px; }
.kwd-ask.is-leaving > * { opacity: 0; }
.kwd-ask b, .kw-frage-offen > b { display: block; font-size: 0.78rem; font-weight: 600; color: var(--text-muted); margin-bottom: 3px; }
.kwd-ask p, .kw-frage-offen > p { margin: 0 0 11px; color: var(--text-bright); line-height: 1.45; }
.kwd-ask-row { display: flex; gap: 8px; flex-wrap: wrap; }
.kwd-btn { display: inline-flex; align-items: center; padding: 8px 14px; border: 0; border-radius: 9px; font: inherit; font-size: 0.8rem; font-weight: 600; line-height: 1; white-space: nowrap; background: var(--primary); color: #04201f; transition: transform 0.12s ease, filter 0.12s ease; }
.kwd-btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.kwd-btn.is-pressed { transform: scale(0.95); filter: brightness(0.86); }
button.kwd-btn { cursor: pointer; }
button.kwd-btn:hover { filter: brightness(1.08); }
button.kwd-btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--text-muted); color: var(--text-bright); }
button.kwd-btn:active { transform: scale(0.95); }
.kwd-foot { flex: none; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.kwd-compose { display: flex; align-items: flex-end; gap: 10px; padding: 8px 8px 8px 13px; border-radius: 13px; border: 1px solid var(--line); background: var(--bg-darker); transition: border-color 0.2s; }
.kwd[data-phase="type"] .kwd-compose { border-color: var(--line-strong); }
.kwd-input { flex: 1; min-width: 0; min-height: 30px; display: flex; align-items: center; line-height: 1.45; color: var(--text-bright); }
.kwd-input > span { min-width: 0; }
.kwd-ph { color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kwd-typed:empty, .kwd-typed:empty + .kwd-caret { display: none; }
.kwd-typed:not(:empty) ~ .kwd-ph { display: none; }
.kwd-input.has-text { display: block; padding: 5px 0; }
.kwd-caret { display: inline-block; width: 1.5px; height: 1.1em; margin-left: 1px; vertical-align: -0.2em; background: var(--text-bright); animation: kwdBlink 1s steps(2, start) infinite; }
.kwd-send { flex: none; padding: 8px 14px; border-radius: 9px; font-size: 0.8rem; font-weight: 600; line-height: 1; background: var(--bg-elevated); color: var(--text-muted); transition: background-color 0.2s, color 0.2s, transform 0.12s ease, filter 0.12s ease; }
.kwd-send.ready { background: var(--primary); color: #04201f; }
.kwd-send.is-pressed { transform: scale(0.94); filter: brightness(0.86); }
@keyframes kwdIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes kwdSpin { to { transform: rotate(360deg); } }
@keyframes kwdDot { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes kwdBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ---------- Abschnitte ---------- */
.kw-sek { padding: var(--sec-y) 0; }
.kw-sek-dunkel { background: var(--bg-darker); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kw-sek + .kw-sek-dunkel, .kw-sek-dunkel + .kw-sek { border-top: 0; }
.kw-kopf { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.kw-kopf-mitte { margin-left: auto; margin-right: auto; text-align: center; }
.kw-kopf h2 { text-wrap: balance; margin: 0 0 14px; font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 750; letter-spacing: -0.035em; line-height: 1.06; color: var(--text-bright); }
.kw-kopf p { margin: 0; font-size: 1.08rem; line-height: 1.65; color: var(--text-muted); max-width: 62ch; }

/* ---------- Was Kowalski macht ---------- */
.kw-jobs { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); grid-template-rows: repeat(4, auto); column-gap: clamp(36px, 5vw, 80px); }
.kw-job { display: contents; }
.kw-job-text { grid-column: 1; min-height: 52vh; display: flex; flex-direction: column; justify-content: center; padding: 28px 0; cursor: pointer; opacity: 0.32; transition: opacity 0.35s ease; }
.kw-job[data-job="0"] .kw-job-text { grid-row: 1; min-height: 40vh; justify-content: flex-start; padding-top: 12px; }
.kw-job[data-job="1"] .kw-job-text { grid-row: 2; }
.kw-job[data-job="2"] .kw-job-text { grid-row: 3; }
.kw-job[data-job="3"] .kw-job-text { grid-row: 4; min-height: 46vh; }
.kw-job.an .kw-job-text { opacity: 1; }
.kw-job-text:hover { opacity: 0.75; }
.kw-job.an .kw-job-text:hover { opacity: 1; }
.kw-job-ico { width: 48px; height: 48px; margin-bottom: 20px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-card); border: 1px solid var(--line-strong); color: var(--primary); transition: background-color 0.3s, border-color 0.3s; }
.kw-job.an .kw-job-ico { background: var(--primary-dim); border-color: rgba(var(--primary-rgb), 0.35); }
.kw-job-ico svg { width: 23px; height: 23px; }
.kw-job-text h3 { margin: 0 0 10px; font-size: clamp(1.45rem, 2.3vw, 1.9rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1.15; color: var(--text-bright); }
.kw-job-text p { margin: 0; max-width: 42ch; font-size: 1.04rem; line-height: 1.65; color: var(--text-muted); }
.kw-szene { grid-column: 2; grid-row: 1 / span 4; align-self: start; position: sticky; top: calc(50vh - 230px); display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 22px; background: var(--bg-card); border: 1px solid var(--line); box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(10px) scale(0.985); transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1), visibility 0s linear 0.35s; }
.kw-job.an .kw-szene { opacity: 1; visibility: visible; transform: none; transition: opacity 0.35s ease 0.05s, transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1) 0.05s, visibility 0s; }
.kw-chat { display: flex; flex-direction: column; gap: 10px; }
.kw-du { align-self: flex-end; max-width: 86%; margin: 0; padding: 10px 14px; border-radius: 15px 15px 5px 15px; background: var(--primary); color: #04201f; font-weight: 500; font-size: 0.93rem; line-height: 1.5; }
.kw-er { display: flex; align-items: flex-end; gap: 10px; max-width: 92%; }
.kw-er img { width: 28px; height: 28px; flex: none; }
.kw-er p { margin: 0; padding: 10px 14px; border-radius: 15px 15px 15px 5px; background: var(--bg-elevated); border: 1px solid var(--line); color: var(--text); font-size: 0.93rem; line-height: 1.55; }
.kw-ding { border-radius: 14px; border: 1px solid var(--line); background: var(--bg-darker); overflow: hidden; }
.kw-ding-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 0.82rem; }
.kw-ding-kopf b { color: var(--text-bright); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 600; font-size: 0.8rem; }
.kw-ding-kopf span { color: var(--text-muted); }
.kw-dateien { list-style: none; margin: 0; padding: 6px; }
.kw-dateien li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; font-size: 0.88rem; color: var(--text); }
.kw-dateien li svg { width: 16px; height: 16px; color: var(--text-muted); }
.kw-dateien li span { flex: 1; min-width: 0; }
.kw-dateien li em { font-style: normal; font-size: 0.72rem; font-weight: 700; color: var(--primary); padding: 2px 8px; border-radius: 999px; background: var(--primary-dim); }
.kw-dateien li small { color: var(--text-muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; min-width: 52px; text-align: right; }
.kw-dateien li.neu { background: rgba(var(--primary-rgb), 0.05); }
.kw-dateien li.neu svg { color: var(--primary); }
.kw-job.an .kw-dateien li.neu { animation: kwNeu 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
.kw-job.an .kw-dateien li.neu:nth-child(2) { animation-delay: 0.08s; }
.kw-job.an .kw-dateien li.neu:nth-child(3) { animation-delay: 0.16s; }
@keyframes kwNeu { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.kw-code { margin: 0; padding: 12px 14px 14px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.8rem; line-height: 1.75; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.kw-code > span { display: block; }
.kw-code .rot { color: #ff9a9a; }
.kw-code .gruen { color: #7fe3a3; }
.kw-code .grau { color: var(--text-muted); }
.kw-diff .rot, .kw-diff .gruen { margin: 0 -14px; padding: 0 14px 0 30px; position: relative; }
.kw-diff .rot { background: rgba(var(--danger-rgb), 0.09); }
.kw-diff .gruen { background: rgba(var(--success-rgb), 0.09); }
.kw-diff .rot::before, .kw-diff .gruen::before { position: absolute; left: 13px; }
.kw-diff .rot::before { content: '-'; }
.kw-diff .gruen::before { content: '+'; }
.kw-eingriff { display: flex !important; align-items: center; gap: 8px; margin: 6px -14px; padding: 7px 14px; background: rgba(var(--primary-rgb), 0.08); border-top: 1px solid rgba(var(--primary-rgb), 0.18); border-bottom: 1px solid rgba(var(--primary-rgb), 0.18); color: var(--text-bright); font-family: 'Inter', sans-serif; font-size: 0.82rem; }
.kw-eingriff img { width: 16px; height: 16px; }
.kw-eingriff b { color: var(--primary); }

.kw-mehr { list-style: none; margin: clamp(48px, 6vw, 72px) 0 0; padding: 32px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.kw-mehr li { display: flex; flex-direction: column; gap: 6px; }
.kw-mehr svg { width: 22px; height: 22px; color: var(--primary); margin-bottom: 8px; }
.kw-mehr b { color: var(--text-bright); font-size: 1rem; font-weight: 650; }
.kw-mehr span { color: var(--text-muted); font-size: 0.93rem; line-height: 1.55; }
.kw-mehr li:nth-child(2) { --rd: 0.06s; }
.kw-mehr li:nth-child(3) { --rd: 0.12s; }
.kw-mehr li:nth-child(4) { --rd: 0.18s; }

/* ---------- Drei Schritte ---------- */
.kw-schritte { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.kw-schritte li { position: relative; }
.kw-schritte li:nth-child(2) { --rd: 0.08s; }
.kw-schritte li:nth-child(3) { --rd: 0.16s; }
.kw-schritte i { position: relative; z-index: 1; width: 44px; height: 44px; margin-bottom: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--bg-card); border: 1px solid var(--line-strong); color: var(--text-bright); font-style: normal; font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.kw-schritte li:first-child i { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.kw-schritte li:not(:last-child)::after { content: ''; position: absolute; top: 22px; left: 60px; right: calc(-1 * clamp(24px, 4vw, 56px) + 12px); height: 1px; background: var(--line-strong); }
.kw-schritte h3 { margin: 0 0 10px; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.015em; color: var(--text-bright); }
.kw-schritte p { margin: 0; color: var(--text-muted); font-size: 0.98rem; line-height: 1.65; }

/* ---------- Kontrolle ---------- */
.kw-zwei { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.kw-safe { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.kw-safe li { display: flex; gap: 16px; }
.kw-safe li:nth-child(2) { --rd: 0.05s; }
.kw-safe li:nth-child(3) { --rd: 0.1s; }
.kw-safe li:nth-child(4) { --rd: 0.15s; }
.kw-safe svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--bg-card); border: 1px solid var(--line); color: var(--primary); }
.kw-safe b { display: block; margin: 1px 0 4px; color: var(--text-bright); font-size: 1.04rem; }
.kw-safe span { color: var(--text-muted); font-size: 0.96rem; line-height: 1.6; }
.kw-probe-fenster { border-radius: 18px; border: 1px solid var(--line-strong); background: var(--bg-card); box-shadow: var(--shadow-lg); overflow: hidden; font-size: 0.875rem; }
.kw-probe-feed { display: flex; flex-direction: column; gap: 9px; padding: 18px; }
.kw-probe-du { align-self: flex-end; max-width: 86%; margin: 0 0 4px; padding: 9px 13px; border-radius: 14px 14px 5px 14px; background: var(--primary); color: #04201f; font-weight: 500; line-height: 1.5; }
.kw-frage { position: relative; transition: height 0.32s cubic-bezier(0.3, 0.7, 0.3, 1); }
.kw-frage-offen { padding: 14px 15px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg-elevated); }
.kw-diffzeile { margin: 0 0 13px; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.8rem; line-height: 1.8; }
.kw-diffzeile span { display: block; padding: 0 12px 0 28px; position: relative; }
.kw-diffzeile .rot { background: rgba(var(--danger-rgb), 0.1); color: #ff9a9a; }
.kw-diffzeile .gruen { background: rgba(var(--success-rgb), 0.1); color: #7fe3a3; }
.kw-diffzeile .rot::before { content: '-'; position: absolute; left: 12px; }
.kw-diffzeile .gruen::before { content: '+'; position: absolute; left: 12px; }
.kw-frage-ja, .kw-frage-nein { display: none; flex-direction: column; gap: 9px; }
.kw-frage[data-zustand="ja"] .kw-frage-offen, .kw-frage[data-zustand="nein"] .kw-frage-offen { display: none; }
.kw-frage[data-zustand="ja"] .kw-frage-ja, .kw-frage[data-zustand="nein"] .kw-frage-nein { display: flex; }
.kw-frage-ja > *, .kw-frage-nein > * { animation: kwdIn 0.3s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
.kw-frage-ja > :nth-child(2), .kw-frage-nein > :nth-child(2) { animation-delay: 0.35s; }
.kw-frage-ja .kwd-st svg { animation: kwPop 0.4s cubic-bezier(0.3, 1.6, 0.5, 1) 0.1s both; }
@keyframes kwPop { from { transform: scale(0.3); opacity: 0; } to { transform: none; opacity: 1; } }
.kw-frage-nein .kwd-ic { color: var(--text-muted); }
.kw-probe-er { align-self: flex-start; max-width: 88%; margin: 0; padding: 9px 13px; border-radius: 14px 14px 14px 5px; background: var(--bg-elevated); border: 1px solid var(--line); line-height: 1.5; }
.kw-probe-fuss { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 4px 0; color: var(--text-muted); font-size: 0.88rem; }
.kw-probe-fuss button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); font: inherit; font-size: 0.84rem; font-weight: 600; cursor: pointer; }
.kw-probe-fuss button svg { width: 14px; height: 14px; }
.kw-probe-fuss button:hover { border-color: var(--primary); color: var(--text-bright); }
.kw-probe-fuss button[hidden] { display: none; }

/* ---------- Modelle ---------- */
.kw-modelle { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kw-modell { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 26px 24px 24px; border-radius: var(--kw-r); border: 1px solid var(--line); background: var(--bg-card); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color 0.2s, background-color 0.2s, transform 0.2s cubic-bezier(0.2, 0.7, 0.3, 1); }
.kw-modell:nth-child(2) { --rd: 0.06s; }
.kw-modell:nth-child(3) { --rd: 0.12s; }
.kw-modell:hover { border-color: var(--line-strong); }
.kw-modell:active { transform: scale(0.985); }
.kw-modell.an { border-color: rgba(var(--primary-rgb), 0.6); background: var(--bg-elevated); }
.kw-modell::after { content: ''; position: absolute; top: 20px; right: 20px; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: box-shadow 0.2s, background-color 0.2s; }
.kw-modell.an::after { background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304252a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 13px no-repeat; box-shadow: none; }
.kw-modell img { width: 72px; height: 72px; margin-bottom: 10px; transition: transform 0.35s cubic-bezier(0.3, 1.5, 0.5, 1); }
.kw-modell.an img { transform: translateY(-3px) rotate(-4deg); }
.kw-modell-kopf { display: flex; align-items: center; gap: 12px; }
.kw-modell-kopf b { color: var(--text-bright); font-size: 1.3rem; font-weight: 750; letter-spacing: -0.02em; }
.kw-stufe { display: inline-flex; gap: 3px; }
.kw-stufe i { width: 14px; height: 5px; border-radius: 3px; background: var(--line-strong); }
.kw-stufe i.v { background: var(--primary); }
.kw-modell small { color: var(--primary); font-size: 0.86rem; font-weight: 600; }
.kw-modell-text { margin-top: 4px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
.kw-bsp { display: flex; align-items: flex-start; gap: 12px; margin: 18px 0 0; padding: 16px 20px; border-radius: 14px; background: var(--bg-card); border: 1px dashed var(--line-strong); color: var(--text); font-size: 0.97rem; line-height: 1.55; }
.kw-bsp svg { width: 20px; height: 20px; margin-top: 2px; color: var(--primary); }
.kw-bsp b { color: var(--text-bright); }
[data-bsp-text] { transition: opacity 0.16s ease; }
.kw-fragen { display: flex; align-items: center; gap: 24px; margin-top: clamp(40px, 5vw, 64px); padding: 28px 30px; border-radius: var(--kw-r); background: var(--bg-card); border: 1px solid var(--line); }
.kw-fragen > img { width: 72px; height: 72px; flex: none; }
.kw-fragen h3 { margin: 0 0 6px; font-size: 1.25rem; font-weight: 700; color: var(--text-bright); }
.kw-fragen p { margin: 0 0 16px; color: var(--text-muted); font-size: 0.97rem; line-height: 1.6; }
.kw-fragen-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.kw-fragen-knoepfe button { padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg-elevated); color: var(--text); font: inherit; font-size: 0.9rem; cursor: pointer; transition: border-color 0.15s, color 0.15s, transform 0.12s; }
.kw-fragen-knoepfe button:hover { border-color: var(--primary); color: var(--text-bright); }
.kw-fragen-knoepfe button:active { transform: scale(0.97); }

/* ---------- Credits ---------- */
.kw-gratis { display: flex; align-items: center; gap: clamp(18px, 3vw, 36px); margin-bottom: 18px; padding: 24px 28px; border-radius: var(--kw-r); background: rgba(var(--primary-rgb), 0.06); border: 1px solid rgba(var(--primary-rgb), 0.28); }
.kw-gratis-zahl { flex: none; display: flex; flex-direction: column; align-items: center; min-width: 96px; }
.kw-gratis-zahl b { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--primary); font-variant-numeric: tabular-nums; }
.kw-gratis-zahl span { margin-top: 4px; color: var(--text-muted); font-size: 0.85rem; }
.kw-gratis-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding-left: clamp(18px, 3vw, 36px); border-left: 1px solid rgba(var(--primary-rgb), 0.22); }
.kw-gratis-text b { color: var(--text-bright); font-size: 1.1rem; }
.kw-gratis-text span { color: var(--text-muted); font-size: 0.95rem; line-height: 1.55; }
.kw-gratis .btn-outline { flex: none; }
.kw-pakete { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.kw-paket { position: relative; display: flex; flex-direction: column; padding: 26px 24px 24px; border-radius: var(--kw-r); background: var(--bg-card); border: 1px solid var(--line); transition: border-color 0.2s, transform 0.25s cubic-bezier(0.2, 0.7, 0.3, 1); }
.kw-paket:nth-child(2) { --rd: 0.06s; }
.kw-paket:nth-child(3) { --rd: 0.12s; }
.kw-paket:hover { border-color: var(--line-strong); }
.kw-paket-tipp { border-color: rgba(var(--primary-rgb), 0.55); background: var(--bg-elevated); }
.kw-paket-tipp:hover { border-color: var(--primary); }
.kw-tipp { position: absolute; top: -13px; left: 22px; display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px 0 5px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-size: 0.78rem; font-weight: 700; }
.kw-tipp img { width: 20px; height: 20px; }
.kw-paket-kopf { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.kw-paket-kopf img { width: 56px; height: 56px; image-rendering: pixelated; flex: none; }
.kw-paket-kopf h3 { margin: 0; font-size: 1.2rem; font-weight: 700; color: var(--text-bright); }
.kw-paket-kopf small { color: var(--text-muted); font-size: 0.88rem; }
.kw-preis { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.kw-preis b { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; color: var(--text-bright); font-variant-numeric: tabular-nums; }
.kw-preis span { color: var(--text-muted); font-size: 0.92rem; }
.kw-preis s { color: var(--text-muted); font-size: 1.05rem; font-weight: 500; }
.kw-preis-je { margin: 2px 0 0; color: var(--text-muted); font-size: 0.88rem; }
.kw-preis-je b { color: var(--text); font-weight: 600; }
.kw-paket-credits { margin: 18px 0 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--text-muted); font-size: 0.95rem; }
.kw-paket-credits b { color: var(--text-bright); font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.kw-inkl { list-style: none; margin: 16px 0 22px; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.kw-inkl li { display: flex; align-items: flex-start; gap: 10px; color: var(--text); font-size: 0.94rem; line-height: 1.45; }
.kw-inkl svg { width: 18px; height: 18px; margin-top: 1px; color: var(--primary); }
.kw-paket-cta { width: 100%; justify-content: center; }
.kw-paket-fuss { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; color: var(--text-muted); font-size: 0.92rem; }
.kw-paket-fuss li { display: inline-flex; align-items: center; gap: 8px; }
.kw-paket-fuss svg { width: 16px; height: 16px; color: var(--primary); }
.kw-zaehlt { color: var(--primary) !important; }

/* ---------- Support-Bot gegen Agent ---------- */
.kw-vs { max-width: 980px; margin: 0 auto; }
.kw-vs-kopf, .kw-vs-zeile { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1fr); }
.kw-vs-kopf > *, .kw-vs-zeile > * { padding: 18px 22px; }
.kw-vs-kopf b { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 0.95rem; font-weight: 650; }
.kw-vs-kopf b.wir { color: var(--text-bright); background: rgba(var(--primary-rgb), 0.07); border: 1px solid rgba(var(--primary-rgb), 0.3); border-bottom: 0; border-radius: 16px 16px 0 0; }
.kw-vs-kopf b.wir img { width: 26px; height: 26px; }
.kw-vs-zeile { border-top: 1px solid var(--line); }
.kw-vs-zeile > span { color: var(--text-bright); font-weight: 600; font-size: 0.96rem; }
.kw-vs-zeile p { margin: 0; display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; line-height: 1.5; }
.kw-vs-zeile p svg { width: 18px; height: 18px; margin-top: 2px; }
.kw-vs-zeile p.nein { color: var(--text-muted); }
.kw-vs-zeile p.nein svg { color: rgba(var(--danger-rgb), 0.75); }
.kw-vs-zeile p.ja { color: var(--text-bright); background: rgba(var(--primary-rgb), 0.07); border-left: 1px solid rgba(var(--primary-rgb), 0.3); border-right: 1px solid rgba(var(--primary-rgb), 0.3); }
.kw-vs-zeile p.ja svg { color: var(--primary); }
.kw-vs-zeile:last-child p.ja { border-bottom: 1px solid rgba(var(--primary-rgb), 0.3); border-radius: 0 0 16px 16px; }

/* ---------- Abschluss ---------- */
.kw-schluss { padding: var(--sec-y) 0; }
.kw-schluss-karte { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: 24px; overflow: hidden; background: var(--bg-card); border: 1px solid var(--line); }
.kw-schluss-bild { width: 100%; height: 100%; min-height: 360px; object-fit: cover; object-position: 70% 50%; order: 2; display: block; }
.kw-schluss-text { padding: clamp(32px, 5vw, 60px); display: flex; flex-direction: column; justify-content: center; }
.kw-schluss-text > img { width: 72px; height: 72px; margin-bottom: 18px; }
.kw-schluss-text h2 { text-wrap: balance; margin: 0 0 14px; font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 750; letter-spacing: -0.035em; line-height: 1.08; color: var(--text-bright); }
.kw-schluss-text p { margin: 0; color: var(--text-muted); font-size: 1.05rem; line-height: 1.65; }
.kw-ab { color: var(--text-bright); font-weight: 650; }
.kw-ab span { color: var(--text-muted); font-weight: 400; }
.kw-schluss .kw-ctas { justify-content: flex-start; margin-top: 26px; }

/* ---------- Schmaler ---------- */
@media (max-width: 1080px) {
    .kw-buehne .kwd { width: min(400px, 52%); }
    .kw-mehr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kw-pakete { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; gap: 26px; }
    .kw-gratis { flex-wrap: wrap; }
}
@media (max-width: 960px) {
    .kw-jobs { display: flex; flex-direction: column; gap: 56px; }
    .kw-job { display: flex; flex-direction: column; gap: 20px; }
    .kw-job-text, .kw-job[data-job] .kw-job-text { min-height: 0; padding: 0; opacity: 1; cursor: default; }
    .kw-szene, .kw-job.an .kw-szene { position: static; opacity: 1; visibility: visible; transform: none; transition: none; padding: 16px; }
    .kw-job .kw-job-ico { background: var(--primary-dim); border-color: rgba(var(--primary-rgb), 0.35); }
    .kw-zwei { grid-template-columns: minmax(0, 1fr); }
    .kw-modelle { grid-template-columns: minmax(0, 1fr); }
    .kw-modell { display: grid; grid-template-columns: 60px minmax(0, 1fr); column-gap: 18px; padding: 20px; }
    .kw-modell img { grid-row: 1 / span 3; width: 60px; height: 60px; margin: 0; }
    .kw-modell-text { grid-column: 2; }
    .kw-schluss-karte { grid-template-columns: minmax(0, 1fr); }
    .kw-schluss-bild { order: 0; min-height: 0; aspect-ratio: 16 / 7; }
}
@media (max-width: 760px) {
    .kw-hero { padding-top: 36px; }
    .kw-hero h1 { max-width: none; }
    .kw-ctas .btn-solid, .kw-ctas .btn-ghost { flex: 1 1 100%; }
    .kw-facts { flex-direction: column; align-items: center; gap: 10px; }
    .kw-buehne { margin-top: 40px; padding: 0 14px; }
    .kw-dash { height: 230px; border-radius: 16px 16px 0 0; }
    .kw-dash img { width: 820px; max-width: none; }
    .kw-buehne .kwd { position: relative; top: auto; right: auto; width: auto; margin: -170px 6px 0; }
    .kw-buehne .kwd-win { height: 470px; }
    .kw-nochmal { position: static; transform: none; margin: 14px auto 18px; display: flex; }
    .kw-nochmal:active { transform: scale(0.96); }
    .kw-hero { padding-bottom: 28px; }
    .kw-schritte { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .kw-schritte li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 18px; padding-bottom: 28px; }
    .kw-schritte i { grid-row: 1 / span 2; margin: 0; }
    .kw-schritte li:not(:last-child)::after { top: 52px; bottom: 6px; left: 22px; right: auto; width: 1px; height: auto; }
    .kw-schritte h3 { margin-top: 9px; }
    .kw-mehr { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .kw-mehr li { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; }
    .kw-mehr svg { grid-row: 1 / span 2; margin: 2px 0 0; }
    .kw-gratis { flex-direction: column; align-items: flex-start; padding: 22px; }
    .kw-gratis-zahl { flex-direction: row; align-items: baseline; gap: 8px; min-width: 0; }
    .kw-gratis-text { padding-left: 0; border-left: 0; }
    .kw-gratis .btn-outline { width: 100%; }
    .kw-fragen { flex-direction: column; align-items: flex-start; padding: 22px; gap: 14px; }
    .kw-fragen > img { width: 56px; height: 56px; }
    .kw-vs-kopf { display: none; }
    .kw-vs-zeile { grid-template-columns: minmax(0, 1fr); padding: 16px 0; }
    .kw-vs-zeile > * { padding: 6px 2px; }
    .kw-vs-zeile p.ja { border: 0; border-radius: 10px; padding: 10px 12px; margin-top: 4px; }
    .kw-vs-zeile:last-child p.ja { border: 0; border-radius: 10px; }
    .kw-probe-fuss { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    .kw-js .kw-rein { opacity: 1; transform: none; transition: none; }
    .kwd-in, .kwd-dots i, .kwd-spin, .kwd-caret, .kw-job.an .kw-dateien li.neu, .kw-frage-ja > *, .kw-frage-nein > *, .kw-frage-ja .kwd-st svg { animation: none; }
    .kw-szene, .kw-job.an .kw-szene, .kwd-feed, .kwd-btn, .kwd-send, .kwd-ic, .kwd-state, .kw-modell img, .kw-frage { transition: none; }
}
