/* ============================================================
   KI-LABOR — interaktive Demo-Seite (/ki-labor)
   Nutzt die Editorial-Refresh-Tokens (Gold/Tinten-Blau/Cream,
   Geist + Fraunces). Alle Klassen mit kl- Präfix, damit nichts
   mit dem globalen Stylesheet kollidiert.
   ============================================================ */

/* ---------- Hero ---------- */
.kl-hero { text-align: left; }
.kl-hero .wrap { max-width: 980px; }

.kl-eyebrow {
  display: inline-block;
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-1-deep, #A87E40);
  padding: 6px 12px;
  border: 1px solid var(--accent-1-soft, rgba(201,155,92,0.3));
  border-radius: 100px;
  background: rgba(201,155,92,0.06);
  margin-bottom: 22px;
}

.kl-hero__title {
  font-family: var(--font-accent, "Fraunces", Georgia, serif);
  font-weight: 500;
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--text, #0E1E3A);
  margin: 0 0 22px;
}

.kl-hero__lead {
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.6;
  color: var(--text-muted, #5B5751);
  max-width: 62ch;
  margin: 0 0 30px;
}

.kl-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-bottom: 34px;
}
.kl-trust__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  color: var(--text-muted, #5B5751);
  font-weight: 500;
}
.kl-trust__item::before {
  content: "";
  width: 18px; height: 18px;
  flex: 0 0 18px;
  background: no-repeat center / contain;
}
.kl-trust__item[data-i="lock"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A87E40' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}
.kl-trust__item[data-i="doc"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A87E40' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M9 13h6M9 17h6'/%3E%3C/svg%3E");
}
.kl-trust__item[data-i="ai"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A87E40' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.9 4.5L18.5 9l-4.6 1.5L12 15l-1.9-4.5L5.5 9l4.6-1.5z'/%3E%3C/svg%3E");
}

.kl-hero__cta { margin-top: 4px; }

/* ---------- Section-Köpfe ---------- */
.kl-labor { background: var(--bg, #FAFAF8); }
.kl-section-head { max-width: 760px; margin: 0 0 48px; }
.kl-section-title {
  font-family: var(--font-accent, "Fraunces", Georgia, serif);
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--text, #0E1E3A);
  margin: 0 0 16px;
}
.kl-section-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted, #5B5751);
  margin: 0;
}

/* ---------- Demo-Grid ---------- */
.kl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.kl-demo {
  border: 1px solid var(--border, #E2DFD8);
  border-radius: 16px;
  background: var(--card, #fff);
  box-shadow: var(--shadow-card, 0 1px 3px rgba(14,30,58,0.06));
  overflow: hidden;
  transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
  display: flex;
  flex-direction: column;
}
.kl-demo:hover { box-shadow: var(--shadow-hover, 0 12px 32px rgba(14,30,58,0.10)); border-color: #d8d2c6; }
.kl-demo.is-open { box-shadow: var(--shadow-hover, 0 12px 32px rgba(14,30,58,0.10)); border-color: var(--accent-1, #C99B5C); }
/* Kachel #1 (Chatbot / breit) spannt beide Spalten */
.kl-demo.kl-demo--wide { grid-column: 1 / -1; }

.kl-demo__head {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 16px;
  align-items: start;
  width: 100%;
  text-align: left;
  padding: 24px 24px;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.kl-demo__icon {
  width: 46px; height: 46px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--accent-1-soft, rgba(201,155,92,0.1));
  color: var(--accent-1-deep, #A87E40);
}
.kl-demo__icon svg { width: 24px; height: 24px; }
.kl-demo__branche {
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-1-deep, #A87E40);
  margin-bottom: 5px;
  display: block;
}
.kl-demo__title {
  font-family: var(--font-display, "Geist", sans-serif);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.25;
  color: var(--text, #0E1E3A);
  margin: 0 0 7px;
}
.kl-demo__pain {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted, #5B5751);
  margin: 0;
}
.kl-demo__pain b { color: var(--text, #0E1E3A); font-weight: 600; }
.kl-demo__toggle {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border, #E2DFD8);
  display: grid; place-items: center;
  color: var(--text-muted, #5B5751);
  flex: 0 0 34px;
  transition: transform .3s ease, background .2s ease, color .2s ease;
}
.kl-demo.is-open .kl-demo__toggle { transform: rotate(45deg); background: var(--accent-1, #C99B5C); color: #fff; border-color: var(--accent-1, #C99B5C); }
.kl-demo__toggle svg { width: 16px; height: 16px; }

/* ---------- Panel (aufklappbar) ---------- */
.kl-demo__panel {
  display: none;
  padding: 0 24px 24px;
  border-top: 1px solid var(--border-soft, #ECE9E2);
  margin-top: 2px;
}
.kl-demo.is-open .kl-demo__panel { display: block; animation: kl-slidein .28s ease; }
@keyframes kl-slidein { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.kl-field { margin-top: 18px; }
.kl-field__label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text, #0E1E3A);
  margin-bottom: 7px;
}
.kl-field__hint { font-weight: 400; color: var(--text-dim, #A09A93); }
.kl-input, .kl-textarea, .kl-select {
  width: 100%;
  font-family: var(--font-body, "Geist", sans-serif);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text, #0E1E3A);
  background: var(--bg, #FAFAF8);
  border: 1px solid var(--border, #E2DFD8);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.kl-textarea { resize: vertical; min-height: 110px; }
.kl-input:focus, .kl-textarea:focus, .kl-select:focus {
  outline: none;
  border-color: var(--accent-1, #C99B5C);
  box-shadow: 0 0 0 3px var(--accent-1-soft, rgba(201,155,92,0.12));
}
.kl-row { display: flex; gap: 14px; flex-wrap: wrap; }
.kl-row .kl-field { flex: 1 1 160px; margin-top: 18px; }
.kl-charcount { font-size: 12px; color: var(--text-dim, #A09A93); text-align: right; margin-top: 5px; }
.kl-charcount.is-over { color: #c0392b; }

.kl-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 20px;
}
.kl-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans, "Geist", sans-serif);
  font-weight: 500; font-size: 15px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease;
}
.kl-btn--run { background: var(--accent-1, #C99B5C); color: #fff; border-color: var(--accent-1, #C99B5C); }
.kl-btn--run:hover { background: var(--accent-1-deep, #A87E40); border-color: var(--accent-1-deep, #A87E40); }
.kl-btn--ghost { background: transparent; color: var(--text, #0E1E3A); border-color: var(--border, #E2DFD8); }
.kl-btn--ghost:hover { border-color: var(--text-dim, #A09A93); }
.kl-btn:disabled { opacity: .55; cursor: not-allowed; }
.kl-btn__spin {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.45); border-top-color: #fff;
  animation: kl-spin .7s linear infinite; display: none;
}
.kl-btn.is-loading .kl-btn__spin { display: inline-block; }
.kl-btn.is-loading .kl-btn__label { opacity: .8; }
@keyframes kl-spin { to { transform: rotate(360deg); } }

/* ---------- Ergebnis ---------- */
.kl-result { display: none; margin-top: 22px; }
.kl-result.is-visible { display: block; animation: kl-slidein .3s ease; }
.kl-result__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 12px;
}
.kl-result__badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono, monospace);
  font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-2, #0E1E3A);
}
.kl-result__badge::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #1A6B5C;
}
.kl-result__tools { display: flex; gap: 8px; flex-wrap: wrap; }

.kl-out {
  background: var(--surface, #F5E6D3);
  border: 1px solid var(--border, #E2DFD8);
  border-radius: 12px;
  padding: 20px 22px;
}
.kl-out--plain { background: #fff; }
.kl-out__text {
  font-size: 15.5px; line-height: 1.65; color: var(--text, #0E1E3A);
  white-space: pre-wrap; margin: 0;
}

.kl-mocknote {
  font-size: 12.5px; line-height: 1.5;
  color: var(--accent-1-deep, #A87E40);
  background: var(--accent-1-soft, rgba(201,155,92,0.10));
  border: 1px dashed var(--accent-1, #C99B5C);
  border-radius: 8px; padding: 9px 12px; margin-bottom: 14px;
}
.kl-mocknote code { font-family: var(--font-mono, monospace); font-size: 12px; background: rgba(14,30,58,0.06); padding: 1px 5px; border-radius: 4px; }

/* Triage-Ergebnis */
.kl-triage__meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.kl-tag {
  font-size: 12.5px; font-weight: 600;
  padding: 5px 11px; border-radius: 100px;
  border: 1px solid var(--border, #E2DFD8); background: #fff;
  color: var(--text, #0E1E3A);
}
.kl-tag--urgent { background: #fcecea; border-color: #f0c4bd; color: #b23b2b; }
.kl-tag--mid    { background: #fdf4e3; border-color: #f0dcae; color: #9a6b18; }
.kl-tag--low    { background: #eef6f2; border-color: #c3e0d3; color: #1a6b5c; }
.kl-triage__label { font-size: 12.5px; font-weight: 600; color: var(--text-dim, #A09A93); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 6px; }

/* Dokument-Vorschau (Angebot/Rechnung/Bestellliste) */
.kl-doc { background: #fff; border: 1px solid var(--border, #E2DFD8); border-radius: 12px; padding: 22px 24px; }
.kl-doc__title { font-family: var(--font-display,"Geist",sans-serif); font-weight: 600; font-size: 18px; color: var(--text,#0E1E3A); margin: 0 0 4px; }
.kl-doc__sub { font-size: 13.5px; color: var(--text-muted,#5B5751); margin: 0 0 18px; }
.kl-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.kl-table th, .kl-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border-soft,#ECE9E2); }
.kl-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-dim,#A09A93); font-weight: 600; }
.kl-table td.kl-num, .kl-table th.kl-num { text-align: right; white-space: nowrap; }
.kl-doc__totals { margin-top: 14px; margin-left: auto; width: min(320px, 100%); font-size: 14.5px; }
.kl-doc__totals .kl-tot-row { display: flex; justify-content: space-between; padding: 5px 10px; }
.kl-doc__totals .kl-tot-row--grand { font-weight: 700; font-size: 16px; border-top: 2px solid var(--text,#0E1E3A); margin-top: 4px; padding-top: 9px; color: var(--text,#0E1E3A); }
.kl-doc__group { margin-bottom: 20px; }
.kl-doc__group h4 { font-size: 14px; font-weight: 700; color: var(--accent-1-deep,#A87E40); margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--accent-1-soft,rgba(201,155,92,.25)); }

.kl-disclaimer {
  font-size: 12.5px; line-height: 1.5; color: var(--text-dim, #A09A93);
  margin-top: 14px; padding-left: 22px; position: relative;
}
.kl-disclaimer::before {
  content: "i"; position: absolute; left: 0; top: 1px;
  width: 15px; height: 15px; border-radius: 50%;
  border: 1px solid currentColor; font-size: 10px; font-weight: 700;
  display: grid; place-items: center; font-style: normal;
}

/* Mini-CTA unter jedem Ergebnis */
.kl-demo__foot {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px dashed var(--border, #E2DFD8);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.kl-demo__foot p { margin: 0; font-size: 14px; color: var(--text-muted, #5B5751); }
.kl-demo__foot a { color: var(--accent-1-deep, #A87E40); font-weight: 600; text-decoration: none; white-space: nowrap; }
.kl-demo__foot a:hover { text-decoration: underline; }

/* Fehler / Limit */
.kl-note { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-size: 14.5px; line-height: 1.5; display: none; }
.kl-note.is-visible { display: block; }
.kl-note--err { background: #fcecea; border: 1px solid #f0c4bd; color: #a5382a; }
.kl-note--limit { background: var(--accent-1-soft, rgba(201,155,92,0.12)); border: 1px solid var(--accent-1, #C99B5C); color: var(--accent-1-deep, #A87E40); }
.kl-note--limit a { color: var(--accent-1-deep, #A87E40); font-weight: 700; }

/* Chatbot-Kachel */
.kl-chatcard__body { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; padding-top: 18px; }
.kl-chatcard__body p { flex: 1 1 300px; margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--text-muted,#5B5751); }
.kl-live-dot { display:inline-flex; align-items:center; gap:7px; font-size:12.5px; font-weight:600; color:#1a6b5c; text-transform:uppercase; letter-spacing:.05em; }
.kl-live-dot::before { content:""; width:9px; height:9px; border-radius:50%; background:#1a6b5c; box-shadow:0 0 0 0 rgba(26,107,92,.5); animation:kl-pulse 2s infinite; }
@keyframes kl-pulse { 0%{box-shadow:0 0 0 0 rgba(26,107,92,.45);} 70%{box-shadow:0 0 0 8px rgba(26,107,92,0);} 100%{box-shadow:0 0 0 0 rgba(26,107,92,0);} }

/* ---------- So wird das bei Ihnen echt — ARTEFAKT-BÜHNE ----------
   Konzept: das echte Dokument wandert durch vier Stationen.
   Nutzergesteuert (Ziehen · Pfeile · Tastatur) — die einzige Bewegungs-
   Sprache, die auf der Seite noch frei ist: data-reveal (editorial-refresh.js)
   und Auto-Kino (ki-story.js) sind bereits vergeben.
   Hell, materiell, kein Scroll-Trigger. --------------------------------- */
.kl-weg {
  background: linear-gradient(180deg, var(--surface, #F5E6D3) 0%, #F1E4D6 100%);
  overflow: hidden;
}

.kl-stage { position: relative; margin: 8px 0 44px; }

/* Rail: scroll-snap trägt die Mechanik — auf Mobile nativ, ohne JS. */
.kl-stage__rail {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  /* Erste Szene bündig zum Seiten-Container, letzte darf ausatmen */
  padding: 10px max(32px, calc((100vw - var(--container, 1280px)) / 2 + 32px)) 30px;
  scrollbar-width: none;
  cursor: grab;
  outline: none;
}
.kl-stage__rail::-webkit-scrollbar { display: none; }
.kl-stage__rail.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.kl-stage__rail.is-dragging .kl-scene { pointer-events: none; }
.kl-stage__rail:focus-visible { box-shadow: inset 0 0 0 2px var(--accent-1, #C99B5C); border-radius: 18px; }

/* Szene: Papier oben, Text darunter. 78% Breite → die nächste lugt hervor. */
.kl-scene {
  flex: 0 0 min(560px, 78vw);
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
/* Ebene 1 der Schachtelung: eine helle „Ablage", auf der das Blatt liegt.
   Karte-in-Karte-in-Karte ist das gemessene Idiom (Stripe/Ramp) — nicht Kippung. */
.kl-scene__paper {
  height: 340px;
  display: grid;
  place-items: center;
  position: relative;
  background: rgba(255, 255, 255, 0.40);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    0 2px 22px -10px rgba(14,30,58,0.12);
}
.kl-scene__say h3 {
  font-family: var(--font-accent, "Fraunces", Georgia, serif);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  color: var(--text, #0E1E3A);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.kl-scene__say p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-muted, #5B5751);
  max-width: 46ch;
}

/* ---- Das Papier: echtes Blatt, echte Tiefe ---- */
.kl-paper {
  background: #fff;
  width: 300px;
  min-height: 290px;
  padding: 26px 28px;
  position: relative;
  /* gestapelte Schatten = Körperlichkeit statt flacher Karte */
  box-shadow:
    0 1px 1px rgba(14,30,58,0.05),
    0 8px 16px -6px rgba(14,30,58,0.14),
    0 26px 44px -18px rgba(14,30,58,0.22);
  transition: transform .5s cubic-bezier(.19,1,.22,1), box-shadow .5s cubic-bezier(.19,1,.22,1);
}
.kl-scene:hover .kl-paper {
  transform: translateY(-5px);
  box-shadow:
    0 1px 1px rgba(14,30,58,0.05),
    0 14px 24px -6px rgba(14,30,58,0.16),
    0 40px 60px -20px rgba(14,30,58,0.26);
}
/* BEWUSST KEINE Rotation: nachgemessen an Stripe/Ramp/Qonto/Craft/Dropbox —
   gekippte Blätter sind in echtem Dokumenten-SaaS ausgestorben und überleben
   375px nicht. Tiefe kommt aus Schachtelung + Überlappung + Schatten. */

/* Station 1 — handgeschriebener Zettel auf liniertem Block */
.kl-paper--note {
  background:
    repeating-linear-gradient(180deg, transparent 0 27px, rgba(14,30,58,0.07) 27px 28px),
    #FFFDF7;
  border-radius: 2px;
}
.kl-note__line, .kl-note__scribble {
  font-family: "Caveat", "Segoe Script", cursive;
  font-size: 25px;
  line-height: 28px;
  color: #2b3a5c;
  margin: 0;
}
.kl-note--dim .kl-note__line { opacity: .45; }
.kl-note__scribble {
  color: var(--accent-1-deep, #A87E40);
  transform: rotate(-2deg);
  margin-top: 12px;
  font-weight: 600;
}

/* Station 2 — angeschlossen: Chips als Systeme */
.kl-wires { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.kl-chip {
  font-family: var(--font-sans, "Geist", sans-serif);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--accent-1-deep, #A87E40);
  background: var(--accent-1-soft, rgba(201,155,92,0.12));
  border: 1px solid rgba(201,155,92,0.4);
  border-radius: 100px;
  padding: 5px 11px;
}

/* Annotations-Pille, die die Blattkante durchbricht.
   Gemessen bei stripe.com/tax: genau diese Überlappung erzeugt die Tiefe. */
.kl-pill {
  position: absolute;
  left: 20px;
  bottom: -15px;
  background: #fff;
  border: 1px solid var(--border, #E2DFD8);
  border-radius: 100px;
  padding: 7px 14px;
  font-family: var(--font-sans, "Geist", sans-serif);
  font-size: 12px;
  font-weight: 600;
  color: var(--text, #0E1E3A);
  white-space: nowrap;
  box-shadow: 0 8px 18px -6px rgba(14,30,58,0.22);
}
.kl-pill::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-1, #C99B5C);
  margin-right: 7px;
  vertical-align: 1px;
}

/* Station 3 + 4 — das Dokument */
.kl-doc-mini { font-family: var(--font-sans, "Geist", sans-serif); }
.kl-doc-mini__head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 2px solid var(--text, #0E1E3A);
  padding-bottom: 8px; margin-bottom: 12px;
  font-size: 13px; color: var(--text, #0E1E3A);
}
.kl-doc-mini__head span { color: var(--text-dim, #A09A93); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.kl-doc-mini__row {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 12.5px; color: var(--text-muted, #5B5751);
  padding: 7px 0; border-bottom: 1px solid #F0EDE6;
  position: relative;
}
.kl-doc-mini__row b { color: var(--text, #0E1E3A); font-variant-numeric: tabular-nums; }
.kl-doc-mini__sum {
  display: flex; justify-content: space-between;
  margin-top: 10px; padding-top: 9px;
  border-top: 2px solid var(--text, #0E1E3A);
  font-size: 14px; font-weight: 700; color: var(--text, #0E1E3A);
}
/* die Korrekturspur — handschriftlich am Rand */
.kl-doc-mini__row--fix b { color: #b23b2b; text-decoration: line-through; }
.kl-mark {
  position: absolute; right: -6px; top: 20px;
  font-family: "Caveat", cursive;
  font-size: 17px;
  color: #b23b2b;
  transform: rotate(-4deg);
  white-space: nowrap;
}
.kl-paper--draft { padding-bottom: 44px; }

/* Der Freigabe-Stempel */
.kl-stamp {
  position: absolute;
  right: -14px; bottom: 26px;
  font-family: var(--font-sans, "Geist", sans-serif);
  font-size: 13px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-1-deep, #A87E40);
  border: 2.5px solid var(--accent-1-deep, #A87E40);
  border-radius: 4px;
  padding: 7px 12px;
  transform: rotate(-9deg);
  opacity: .82;
  background: rgba(255,255,255,0.6);
}

/* ---- Steuerung ---- */
.kl-stage__nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; margin-top: 4px;
}
.kl-dots { display: flex; gap: 9px; }
.kl-dot {
  width: 9px; height: 9px; border-radius: 50%;
  border: 0; padding: 0; cursor: pointer;
  background: rgba(14,30,58,0.18);
  transition: background .25s ease, transform .25s ease;
}
.kl-dot.is-on { background: var(--accent-1-deep, #A87E40); transform: scale(1.35); }
.kl-arrows { display: flex; gap: 10px; }
.kl-arrow {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff;
  border: 1px solid var(--border, #E2DFD8);
  color: var(--text, #0E1E3A);
  cursor: pointer;
  box-shadow: var(--shadow-card, 0 1px 3px rgba(14,30,58,0.06));
  transition: border-color .2s ease, transform .2s ease, opacity .2s ease;
}
.kl-arrow:hover { border-color: var(--accent-1, #C99B5C); transform: translateY(-1px); }
.kl-arrow:disabled { opacity: .3; cursor: default; transform: none; }
.kl-arrow svg { width: 19px; height: 19px; }

/* ---- Fuß ---- */
.kl-weg__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  padding-top: 30px;
  border-top: 1px solid rgba(14,30,58,0.10);
}
.kl-weg__safety {
  margin: 0; font-size: 14px; line-height: 1.6;
  color: var(--text-muted, #5B5751); max-width: 46ch;
}
.kl-weg__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Und darüber hinaus ---------- */
.kl-beyond { background: var(--surface, #F5E6D3); }
.kl-beyond__list { list-style: none; margin: 0 0 36px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.kl-beyond__list li {
  background: var(--card,#fff); border: 1px solid var(--border,#E2DFD8);
  border-radius: 12px; padding: 20px 22px;
}
.kl-beyond__list h4 { font-family: var(--font-display,"Geist",sans-serif); font-weight:600; font-size:16.5px; color:var(--text,#0E1E3A); margin:0 0 7px; display:flex; align-items:center; gap:10px; }
.kl-beyond__list h4 span { color: var(--accent-1-deep,#A87E40); }
.kl-beyond__list p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-muted,#5B5751); }
.kl-beyond__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.kl-noscript { font-size: 16px; color: var(--text-muted,#5B5751); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .kl-grid { grid-template-columns: 1fr; }
  .kl-beyond__list { grid-template-columns: 1fr; }
  /* Bühne mobil: Wischen ist hier die Heimatgeste — Rail bleibt, wird nur enger.
     Pfeile bleiben sichtbar, damit klar ist, dass es weitergeht. */
  .kl-stage__rail { gap: 18px; padding: 10px 24px 26px; }
  .kl-scene { flex: 0 0 82vw; gap: 18px; }
  .kl-scene__paper { height: 300px; }
  .kl-paper { width: min(270px, 76vw); min-height: 258px; padding: 22px 22px; }
  .kl-note__line, .kl-note__scribble { font-size: 22px; line-height: 25px; }
  .kl-scene__say h3 { font-size: 21px; }
  .kl-stage__nav { flex-direction: row; }
  .kl-arrow { width: 42px; height: 42px; }
  .kl-weg__foot { flex-direction: column; align-items: flex-start; }
  .kl-demo__head { padding: 20px; grid-template-columns: 42px 1fr auto; gap: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .kl-demo, .kl-demo__toggle, .kl-btn, .kl-result, .kl-demo__panel { transition: none !important; animation: none !important; }
  .kl-live-dot::before { animation: none; }
  /* Bühne: Bewegung kommt vom Nutzer, die bleibt. Nur das weiche Scrollen und
     die Papier-Transitions entfallen — der Inhalt ist ohnehin immer sichtbar. */
  .kl-stage__rail { scroll-behavior: auto; }
  .kl-paper, .kl-arrow, .kl-dot { transition: none !important; }
  .kl-scene:hover .kl-paper { transform: none !important; }
}

/* ============================================================
   PRINT — nur der Druck-Container (#kl-print) wird gedruckt.
   Erzeugt das PDF via Browser „Als PDF speichern".
   ============================================================ */
.kl-print { position: absolute; left: -9999px; top: 0; width: 210mm; }

@media print {
  body > *:not(.kl-print) { display: none !important; }
  .kl-print { position: static !important; left: 0 !important; width: auto; display: block !important; }

  .kl-pdf { font-family: "Geist", Arial, sans-serif; color: #0E1E3A; padding: 8mm 4mm; }
  .kl-pdf__brand { display:flex; justify-content:space-between; align-items:flex-start; border-bottom:2px solid #0E1E3A; padding-bottom:10px; margin-bottom:22px; }
  .kl-pdf__brand strong { font-size: 20px; letter-spacing:-.01em; }
  .kl-pdf__brand small { color:#5B5751; font-size:11px; display:block; margin-top:3px; }
  .kl-pdf__meta { text-align:right; font-size:11px; color:#5B5751; line-height:1.6; }
  .kl-pdf h1 { font-size: 21px; margin: 0 0 4px; }
  .kl-pdf__sub { font-size: 12px; color:#5B5751; margin: 0 0 20px; }
  .kl-pdf table { width:100%; border-collapse:collapse; font-size:12px; margin-bottom: 14px; }
  .kl-pdf th, .kl-pdf td { padding: 7px 8px; border-bottom:1px solid #E2DFD8; text-align:left; }
  .kl-pdf th { background:#F5E6D3; font-size:10px; text-transform:uppercase; letter-spacing:.04em; }
  .kl-pdf .kl-num { text-align:right; white-space:nowrap; }
  .kl-pdf__totals { width: 62mm; margin-left:auto; font-size:12px; }
  .kl-pdf__totals .r { display:flex; justify-content:space-between; padding:4px 8px; }
  .kl-pdf__totals .r--grand { font-weight:700; font-size:14px; border-top:2px solid #0E1E3A; margin-top:4px; padding-top:7px; }
  .kl-pdf__group h3 { font-size:13px; color:#A87E40; margin:0 0 6px; border-bottom:1px solid #E2DFD8; padding-bottom:5px; }
  .kl-pdf__group { margin-bottom:16px; }
  .kl-pdf__foot { margin-top: 26px; padding-top:12px; border-top:1px solid #E2DFD8; font-size:10.5px; color:#A09A93; line-height:1.5; }
  @page { margin: 12mm; }
}
