/* immerwach Website. Farben, Schriften, Abstaende nur ueber Tokens (immerwach-tokens.css). */

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

body {
  margin: 0;
  background: var(--iw-bg);
  color: var(--iw-text);
  font-family: var(--iw-font-text);
  font-size: var(--iw-size-text);
  line-height: var(--iw-leading);
  hyphens: manual;
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--iw-font-display); line-height: 1.15; margin: 0 0 var(--iw-space-3); text-wrap: balance; }
h1 { font-size: clamp(2.125rem, 1.2rem + 3.6vw, var(--iw-size-display)); font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; }
h2 { font-size: clamp(1.625rem, 1.2rem + 1.6vw, var(--iw-size-h2)); font-weight: 800; }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, var(--iw-size-h3)); font-weight: 700; line-height: 1.3; }
h1 em { font-style: normal; color: var(--iw-accent); }
p { margin: 0 0 var(--iw-space-3); }
a { color: var(--iw-accent-text); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--iw-accent-text-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--iw-focus); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--iw-content) + 2 * var(--iw-space-5)); margin: 0 auto; padding: 0 var(--iw-space-5); }
.wrap.schmal { max-width: calc(800px + 2 * var(--iw-space-5)); }
@media (max-width: 640px) { .wrap { padding: 0 var(--iw-space-3); } }

.lead { font-size: var(--iw-size-lead); line-height: 1.55; max-width: var(--iw-measure); }
.klein { font-size: var(--iw-size-small); line-height: 1.5; }
.gedaempft { color: var(--iw-text-muted); }
.platzhalter { background: var(--iw-accent); color: var(--iw-bg); border-radius: 4px; padding: 0 6px; font-size: 0.85em; font-weight: 600; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: var(--iw-space-3); top: var(--iw-space-3); z-index: 100; background: var(--iw-surface-raised); padding: var(--iw-space-2) var(--iw-space-3); border-radius: var(--iw-radius-s); }

/* Logo je nach Modus */
.logo-dunkel { display: none; }
:root[data-theme="dark"] .logo-hell { display: none; }
:root[data-theme="dark"] .logo-dunkel { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-hell { display: none; }
  :root:not([data-theme="light"]) .logo-dunkel { display: block; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--iw-space-2);
  min-height: 48px; padding: 0 var(--iw-space-4); border-radius: var(--iw-radius-pill);
  font-family: var(--iw-font-display); font-weight: 700; font-size: 1.0625rem; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background-color var(--iw-duration) ease-out, color var(--iw-duration) ease-out;
}
.btn-primaer { background: var(--iw-button-bg); color: var(--iw-button-text); }
.btn-primaer:hover { background: var(--iw-button-hover); color: var(--iw-button-text); }
.btn-sekundaer { border-color: var(--iw-text); color: var(--iw-text); background: transparent; }
.btn-sekundaer:hover { background: var(--iw-surface); color: var(--iw-text); }
.btn-klein { min-height: 40px; padding: 0 var(--iw-space-3); font-size: 1rem; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--iw-radius-pill);
  border: 1px solid var(--iw-border); background: transparent; color: var(--iw-text); cursor: pointer;
}
.icon-btn:hover { background: var(--iw-surface); }
.icon-btn svg, .karte-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-sonne { display: none; }
:root[data-theme="dark"] .i-sonne { display: block; }
:root[data-theme="dark"] .i-mond { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sonne { display: block; }
  :root:not([data-theme="light"]) .i-mond { display: none; }
}

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--iw-bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--iw-border); }
.kopf-inner { display: flex; align-items: center; gap: var(--iw-space-4); min-height: 72px; }
.marke { flex: none; }
.marke img { width: 150px; height: auto; }
.hauptnav { display: flex; gap: var(--iw-space-4); margin-left: auto; }
.hauptnav a { color: var(--iw-text); text-decoration: none; font-weight: 600; font-size: 1rem; }
.hauptnav a:hover { color: var(--iw-accent-text); }
.werkzeuge { display: flex; align-items: center; gap: var(--iw-space-2); }
.sprachen { display: flex; gap: 2px; margin-right: var(--iw-space-2); }
.sprachen a { padding: 6px 8px; border-radius: var(--iw-radius-s); font-size: var(--iw-size-small); font-weight: 600; color: var(--iw-text-muted); text-decoration: none; text-transform: uppercase; }
.sprachen a[aria-current="page"] { color: var(--iw-text); background: var(--iw-surface); }
.sprachen a:hover { color: var(--iw-text); }
.menu-btn { display: none; }

@media (max-width: 860px) {
  .kopf-inner { flex-wrap: wrap; gap: var(--iw-space-2); min-height: 64px; }
  .marke img { width: 128px; }
  .werkzeuge { margin-left: auto; }
  .sprachen { margin-right: 0; }
  .menu-btn { display: inline-grid; }
  .hauptnav { display: none; order: 3; width: 100%; flex-direction: column; gap: 0; margin: 0 0 var(--iw-space-2); }
  .hauptnav.offen { display: flex; }
  .hauptnav a { padding: var(--iw-space-3) 0; border-top: 1px solid var(--iw-border); }
}

/* Hero */
.hero { padding: var(--iw-space-7) 0 var(--iw-space-6); }
.hero h1 { max-width: 18ch; }
.eyebrow { display: flex; align-items: center; gap: var(--iw-space-2); font-weight: 600; color: var(--iw-text-muted); margin-bottom: var(--iw-space-4); }
.punkt { flex: none; width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--iw-accent); }
.aktionen { display: flex; flex-wrap: wrap; gap: var(--iw-space-3); margin: var(--iw-space-5) 0 var(--iw-space-4); }
@media (max-width: 640px) { .hero { padding: var(--iw-space-6) 0 var(--iw-space-5); } .aktionen .btn { flex: 1 1 100%; } }

/* Abschnitte */
.abschnitt { padding: var(--iw-space-7) 0; }
.flaeche { background: var(--iw-surface); }
@media (max-width: 640px) { .abschnitt { padding: var(--iw-space-6) 0; } }

/* Karten */
.karten { display: grid; gap: var(--iw-space-4); margin-top: var(--iw-space-5); }
.karten.vier { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.karten.drei { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.karte { background: var(--iw-surface-raised); border: 1px solid var(--iw-border); border-radius: var(--iw-radius-m); padding: var(--iw-space-4); box-shadow: var(--iw-shadow); }
.flaeche .karte { background: var(--iw-bg); }
.karte p { margin: 0; }
.karte-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--iw-surface); color: var(--iw-text); margin-bottom: var(--iw-space-3); }
.karte-icon .akzent { stroke: var(--iw-accent); }
.karte h3, .karte h4 { font-family: var(--iw-font-display); font-size: 1.25rem; font-weight: 700; line-height: 1.3; margin: 0 0 var(--iw-space-2); }
.karte .punkt { display: inline-block; margin-right: var(--iw-space-2); vertical-align: 0.15em; }

.grenzen { margin-top: var(--iw-space-5); padding: var(--iw-space-4); border-left: 4px solid var(--iw-accent); background: var(--iw-surface); border-radius: 0 var(--iw-radius-m) var(--iw-radius-m) 0; max-width: 820px; }
.grenzen h3 { font-size: 1.25rem; margin-bottom: var(--iw-space-2); }
.grenzen p { margin: 0; }

/* Ablauf */
.ablauf { list-style: none; padding: 0; margin: var(--iw-space-5) 0 0; display: grid; gap: var(--iw-space-4); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: schritt; }
.ablauf li { counter-increment: schritt; position: relative; padding-top: var(--iw-space-6); }
.ablauf li::before {
  content: counter(schritt); position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--iw-text); color: var(--iw-bg);
  font-family: var(--iw-font-display); font-weight: 800; font-size: 1.25rem;
}
.ablauf h3 { font-size: 1.25rem; margin-bottom: var(--iw-space-2); }
.ablauf p { margin: 0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--iw-border); }
.faq summary { cursor: pointer; list-style: none; padding: var(--iw-space-4) var(--iw-space-6) var(--iw-space-4) 0; position: relative; font-family: var(--iw-font-display); font-weight: 700; font-size: 1.1875rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg); transition: transform var(--iw-duration) ease-out; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 var(--iw-space-4); max-width: var(--iw-measure); }

/* Kontakt (immer dunkel) */
.kontakt { background: var(--iw-bg); color: var(--iw-text); }
.kontakt-signet { width: 72px; height: 72px; margin-bottom: var(--iw-space-3); }
.kontaktdaten { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--iw-space-4); margin: var(--iw-space-5) 0; max-width: 820px; }
.kontaktdaten dt { font-size: var(--iw-size-small); font-weight: 600; letter-spacing: 0.02em; color: var(--iw-text-muted); }
.kontaktdaten dd { margin: 0; }

/* Fuss */
.fuss { padding: var(--iw-space-5) 0; border-top: 1px solid var(--iw-border); }
.fuss-inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--iw-space-2) var(--iw-space-4); }
.fuss-inner img { width: 120px; height: auto; }
.fuss-inner p { margin: 0; }
.fuss-inner p:last-child { flex-basis: 100%; }

/* Demo */
.demo { margin-top: var(--iw-space-5); }
.demo-etikett { display: flex; align-items: center; gap: var(--iw-space-2); margin: 0; font-family: var(--iw-font-display); font-weight: 700; }
.demo-etikett .punkt { width: 10px; height: 10px; border-radius: 50%; background: var(--iw-accent); flex: none; }
.demo-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--iw-space-4); margin-top: var(--iw-space-3); }
@media (max-width: 860px) { .demo-body { grid-template-columns: 1fr; } }

.chat, .hintergrund { background: var(--iw-bg); border: 1px solid var(--iw-border); border-radius: var(--iw-radius-l); }
.chat { display: flex; flex-direction: column; min-height: 520px; overflow: hidden; }
.chat-kopf { display: flex; align-items: center; gap: var(--iw-space-3); padding: var(--iw-space-3) var(--iw-space-4); border-bottom: 1px solid var(--iw-border); }
.chat-kopf .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--iw-text); display: grid; place-items: center; flex: none; }
.chat-kopf .avatar span { width: 12px; height: 12px; border-radius: 50%; background: var(--iw-accent); }
.chat-kopf strong { font-family: var(--iw-font-display); display: block; line-height: 1.2; }
.chat-kopf small { color: var(--iw-text-muted); font-size: var(--iw-size-small); }
.chat-kopf .badge { margin-left: auto; font-size: 0.75rem; font-weight: 600; padding: 2px 10px; border-radius: var(--iw-radius-pill); border: 1px solid var(--iw-border); color: var(--iw-text-muted); white-space: nowrap; }
.chat-log { list-style: none; margin: 0; padding: var(--iw-space-4); display: flex; flex-direction: column; gap: var(--iw-space-3); flex: 1; overflow-y: auto; max-height: 560px; }
.msg { max-width: 85%; padding: 12px 16px; border-radius: 20px; font-size: 1rem; line-height: 1.5; animation: rein 250ms ease-out; }
.msg .wer { display: block; font-size: 0.75rem; font-weight: 600; color: var(--iw-text-muted); margin-bottom: 2px; }
.msg.bot { align-self: flex-start; background: var(--iw-surface); border-bottom-left-radius: 6px; }
.msg.user { align-self: flex-end; background: var(--iw-text); color: var(--iw-bg); border-bottom-right-radius: 6px; }
.msg.user .wer { color: inherit; opacity: 0.75; }
.msg.team { align-self: stretch; max-width: none; background: transparent; border: 2px dashed var(--iw-border-strong); }
.msg.team strong { font-family: var(--iw-font-display); }
.tippen { align-self: flex-start; display: flex; gap: 6px; padding: 14px 16px; background: var(--iw-surface); border-radius: 20px; border-bottom-left-radius: 6px; }
.tippen span { width: 8px; height: 8px; border-radius: 50%; background: var(--iw-accent); animation: wach 1s ease-in-out infinite; }
.tippen span:nth-child(2) { animation-delay: 0.15s; }
.tippen span:nth-child(3) { animation-delay: 0.3s; }
@keyframes wach { 0%, 100% { opacity: 0.3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes rein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.chat-eingabe { border-top: 1px solid var(--iw-border); padding: var(--iw-space-3) var(--iw-space-4) var(--iw-space-4); }
.chat-hinweis { margin: 0 0 var(--iw-space-2); }
.chat-vorschlag { display: flex; flex-wrap: wrap; gap: var(--iw-space-2); }
.vorschlag {
  flex: 1 1 260px; text-align: left; font: inherit; font-size: 1rem; line-height: 1.45; cursor: pointer;
  background: var(--iw-surface-raised); color: var(--iw-text); border: 1px solid var(--iw-border-strong);
  border-radius: 20px; padding: 10px 16px; display: flex; gap: var(--iw-space-3); align-items: center;
}
.vorschlag:hover { border-color: var(--iw-accent-text); }
.vorschlag .senden { margin-left: auto; flex: none; font-family: var(--iw-font-display); font-weight: 700; color: var(--iw-accent-text); }

.hintergrund { padding: var(--iw-space-4); align-self: start; }
.hintergrund h3 { font-size: 1.125rem; margin-bottom: var(--iw-space-3); }
.schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--iw-space-3); }
.schritte .leer { color: var(--iw-text-muted); font-size: 1rem; }
.schritt { display: grid; grid-template-columns: 32px 1fr; gap: var(--iw-space-3); align-items: start; animation: rein 250ms ease-out both; font-size: 1rem; line-height: 1.5; }
.schritt .nr { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--iw-surface); }
.schritt .nr svg { width: 18px; height: 18px; fill: none; stroke: var(--iw-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.schritt.handover .nr { background: var(--iw-accent); }
.schritt.handover .nr svg { stroke: var(--iw-bg); }
.schritt b { display: block; font-family: var(--iw-font-display); font-size: 0.875rem; letter-spacing: 0.02em; }
.demo-note { margin-top: var(--iw-space-3); max-width: var(--iw-measure); }
@media (max-width: 640px) { .chat { min-height: 440px; } .msg { max-width: 92%; } }
@media (max-width: 640px) {
  .chat { min-height: 0; }
  .chat-log { min-height: 200px; max-height: 380px; }
  .chat-kopf { flex-wrap: wrap; }
  .chat-kopf .badge { margin-left: 56px; }
}

/* Demo: Programm-Etikett und Freigabe in den Schritten */
.schritt .system { display: inline-block; margin-left: 6px; font-family: var(--iw-font-text); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.02em; padding: 0 8px; border-radius: var(--iw-radius-pill); border: 1px solid var(--iw-border-strong); color: var(--iw-text-muted); vertical-align: 1px; }
.schritt.approve .nr { background: var(--iw-text); }
.schritt.approve .nr svg { stroke: var(--iw-bg); }

/* Walzen im Einstieg: Ort | Branche | Ablauf, drehen von selbst (slot.js) */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: var(--iw-space-5); align-items: center; max-width: calc(var(--iw-content) + 2 * var(--iw-space-5)); margin: 0 auto; padding-left: var(--iw-space-5); padding-right: var(--iw-space-5); }
.hero > .wrap { padding: 0; max-width: none; margin: 0; }
.hero .lead { max-width: 34rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.slot { background: var(--iw-surface); border: 1px solid var(--iw-border); border-radius: var(--iw-radius-l); padding: var(--iw-space-4); box-shadow: var(--iw-shadow); }
.slot-titel { font-family: var(--iw-font-display); font-weight: 700; margin: 0 0 var(--iw-space-3); display: flex; align-items: center; gap: var(--iw-space-2); }
.slot-titel::before { content: ""; width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--iw-accent); }
.slot-walzen { display: grid; grid-template-columns: 0.9fr 1.05fr 1.05fr; gap: 6px; background: var(--iw-text); padding: 6px; border-radius: var(--iw-radius-m); }
.walze { min-width: 0; background: var(--iw-bg); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.walze-name { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--iw-text-muted); text-align: center; padding: 6px 4px 0; }
.fenster { --zeile: 44px; position: relative; height: calc(3 * var(--zeile)); overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.fenster::after { content: ""; position: absolute; left: 4px; right: 4px; top: var(--zeile); height: var(--zeile); border-top: 1px solid var(--iw-border); border-bottom: 1px solid var(--iw-border); pointer-events: none; }
.fenster ul { list-style: none; margin: 0; padding: 0; will-change: transform; }
.fenster li { height: var(--zeile); display: flex; align-items: center; justify-content: center; padding: 0 6px; text-align: center; font-family: var(--iw-font-display); font-weight: 800; font-size: 1rem; line-height: 1.1; overflow: hidden; }
.slot-satz { min-height: 11.5rem; margin: var(--iw-space-3) 0 var(--iw-space-2); line-height: 1.45; }
.slot-satz strong { display: block; font-family: var(--iw-font-display); font-size: 1.125rem; }
.slot-satz p { margin: var(--iw-space-2) 0 0; padding-left: var(--iw-space-3); border-left: 2px solid var(--iw-border-strong); }
.slot-satz p + p { border-left-color: var(--iw-accent); }
.slot-etikett { display: block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--iw-text-muted); }
.slot-cta { font-weight: 600; }
@media (max-width: 1100px) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); } .fenster li { font-size: 0.9375rem; } }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-left: var(--iw-space-3); padding-right: var(--iw-space-3); }
  .slot-wrap { margin-top: var(--iw-space-2); }
}
@media (max-width: 480px) { .slot-satz { min-height: 16.25rem; } }
@media (max-width: 420px) { .fenster { --zeile: 40px; } .fenster li { font-size: 0.8125rem; padding: 0 3px; } .slot { padding: var(--iw-space-3); } }
@media (max-width: 360px) { .slot-satz { min-height: 17.75rem; } }

/* ---------- Werbevideo ---------- */
/* Das Video hat feste, helle Farben. Der Rahmen bleibt deshalb in beiden Modi hell. */
.video-block { margin-top: var(--iw-space-6); padding-top: var(--iw-space-5); border-top: 1px solid var(--iw-border); }
.video-block h3 { margin-bottom: var(--iw-space-2); }
.video-block > p { max-width: var(--iw-measure); }
.video-rahmen { margin-top: var(--iw-space-4); max-width: 960px; aspect-ratio: 16 / 9; background: #FAF6F0; border: 1px solid var(--iw-border); border-radius: 16px; overflow: hidden; }
.video-rahmen video { display: block; width: 100%; height: 100%; }
.video-note { margin-top: var(--iw-space-3); }
.video-text { max-width: var(--iw-measure); }
.video-text summary { cursor: pointer; min-height: 44px; padding: 10px 0; font-family: var(--iw-font-display); font-weight: 700; color: var(--iw-accent-text); }
.video-text p { margin: 0 0 var(--iw-space-3); }

/* ---------- Stufe 1: KI-Einstieg ---------- */
.hero h1 { max-width: 20ch; }

/* Einwaende direkt nach dem Einstieg */
.einwaende { padding-top: var(--iw-space-5); }
.einwand h3 { font-size: 1.3125rem; }

/* Karussell der Einwaende (karussell.js). Ohne Skript bleibt es eine Reihe zum Wischen und Scrollen. */
.karussell { --sichtbar: 3; --luecke: var(--iw-space-4); margin-top: var(--iw-space-3); }
.karussell-bahn {
  list-style: none; display: flex; gap: var(--luecke);
  margin: 0 calc(-1 * var(--iw-space-2)); padding: var(--iw-space-2) var(--iw-space-2) var(--iw-space-4);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--iw-space-2); overscroll-behavior-x: contain;
}
.karussell-bahn > li { flex: 0 0 calc((100% - (var(--sichtbar) - 1) * var(--luecke)) / var(--sichtbar)); scroll-snap-align: start; }
.karussell.aktiv .karussell-bahn { scrollbar-width: none; }
.karussell.aktiv .karussell-bahn::-webkit-scrollbar { display: none; }
.karussell-leiste { display: flex; align-items: center; justify-content: center; gap: var(--iw-space-3); }
.karussell-leiste[hidden] { display: none; }
.karussell-punkte { display: flex; align-items: center; gap: 6px; }
.karussell-punkte span { width: 8px; height: 8px; border-radius: var(--iw-radius-pill); background: var(--iw-border); transition: width var(--iw-duration) ease-out, background-color var(--iw-duration) ease-out; }
.karussell-punkte span.an { width: 22px; background: var(--iw-accent); }
@media (max-width: 960px) { .karussell { --sichtbar: 2; } }
@media (max-width: 640px) { .karussell { --sichtbar: 1; --luecke: var(--iw-space-3); } }

/* Zwei Szenarien unter dem Karussell: vom guten zum besten Fall */
.ausgang { margin-top: var(--iw-space-5); }
.ausgang > h3 { margin-bottom: var(--iw-space-3); }
.ausgang-faelle { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--iw-space-3); align-items: stretch; }
.fall { background: var(--iw-surface); border: 1px solid var(--iw-border); border-radius: var(--iw-radius-m); padding: var(--iw-space-4); }
.fall.beste { background: var(--iw-surface-raised); border: 2px solid var(--iw-accent); box-shadow: var(--iw-shadow); }
.fall h4 { font-family: var(--iw-font-display); font-size: 1.3125rem; font-weight: 800; line-height: 1.3; margin: 0 0 var(--iw-space-2); }
.fall p { margin: 0; }
.fall .fall-etikett { display: inline-block; margin-bottom: var(--iw-space-3); padding: 2px 12px; border-radius: var(--iw-radius-pill); border: 1px solid var(--iw-border-strong); font-size: var(--iw-size-small); font-weight: 700; color: var(--iw-text-muted); }
.fall.beste .fall-etikett { background: var(--iw-button-bg); border-color: var(--iw-button-bg); color: var(--iw-button-text); }
.fall-pfeil { align-self: center; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--iw-text); color: var(--iw-bg); }
.fall-pfeil svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 720px) {
  .ausgang-faelle { grid-template-columns: 1fr; }
  .fall-pfeil { justify-self: center; transform: rotate(90deg); }
}

/* Tagesablauf: Zeit und Teilnehmende ueber dem Titel */
.ablauf.tag { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--iw-space-5) var(--iw-space-4); }
.ablauf .zeit { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0 0 var(--iw-space-2); font-size: var(--iw-size-small); }
.ablauf .zeit b { font-family: var(--iw-font-display); font-weight: 800; color: var(--iw-accent-text); }
.ablauf .zeit span { color: var(--iw-text-muted); }

/* Baukasten (demo.js): das Sprachmodell ist immer da, die drei anderen Bausteine kommen mit dem zweiten Klick */
.bausteine { list-style: none; margin: 0 0 var(--iw-space-5); padding: 0; display: grid; gap: var(--iw-space-2); }
.baustein {
  display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--iw-space-3); align-items: start; line-height: 1.4;
  background: var(--iw-bg); border: 1px dashed var(--iw-border-strong); border-radius: var(--iw-radius-m); padding: 10px 12px;
  transition: border-color 200ms ease-out;
}
.baustein .marke { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--iw-surface); color: var(--iw-text-muted); font-family: var(--iw-font-display); font-weight: 800; font-size: 1.25rem; }
.baustein .marke svg { width: 18px; height: 18px; fill: none; stroke: var(--iw-bg); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.baustein .text strong { display: block; font-family: var(--iw-font-display); font-size: 1.0625rem; }
.baustein .text span { display: block; font-size: var(--iw-size-small); color: var(--iw-text-muted); }
.baustein .text .inhalt { margin-top: 6px; padding-left: 8px; border-left: 2px solid var(--iw-accent); color: var(--iw-text); }
.baustein.an { border: 1px solid var(--iw-text); }
.baustein.an .marke { background: var(--iw-text); }
.vorschlag .klick { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--iw-accent); color: var(--iw-bg); font-family: var(--iw-font-display); font-weight: 800; }

.msg.merke { align-self: stretch; max-width: none; background: transparent; border-radius: 0; padding: 0 4px; font-size: var(--iw-size-small); color: var(--iw-text-muted); }
.msg.merke b { font-family: var(--iw-font-display); color: var(--iw-text); }
.msg.angehaengt { align-self: stretch; max-width: none; background: transparent; border-radius: 0; border-top: 1px dashed var(--iw-border-strong); margin-top: var(--iw-space-2); padding: var(--iw-space-3) 4px 0; font-size: var(--iw-size-small); }
.msg.angehaengt b { display: block; font-family: var(--iw-font-display); font-size: 1rem; color: var(--iw-accent-text); }
.msg.angehaengt span { display: block; }
.msg.angehaengt small { display: block; color: var(--iw-text-muted); font-size: 0.8125rem; }
.vorschlag.plus { border: 2px dashed var(--iw-accent-text); }
.vorschlag.plus > span:first-child { font-family: var(--iw-font-display); font-weight: 700; }
.schritt.gap { color: var(--iw-text-muted); }
.schritt.gap .nr { background: transparent; }
.schritt.gap .nr svg { stroke: var(--iw-accent-text); width: 24px; height: 24px; }
.schritt.gap b { color: var(--iw-accent-text); }

/* Beispiel-Auswertung */
.auswertung { margin: var(--iw-space-5) 0 0; max-width: 980px; background: var(--iw-bg); border: 1px solid var(--iw-border); border-radius: var(--iw-radius-l); padding: var(--iw-space-4); box-shadow: var(--iw-shadow); }
.auswertung figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--iw-space-3); margin-bottom: var(--iw-space-3); }
.auswertung figcaption strong { font-family: var(--iw-font-display); font-size: 1.25rem; }
.auswertung figcaption span { font-size: var(--iw-size-small); color: var(--iw-text-muted); }
.auswertung figcaption .badge { margin-left: auto; font-size: 0.75rem; font-weight: 600; padding: 2px 10px; border-radius: var(--iw-radius-pill); border: 1px solid var(--iw-border); white-space: nowrap; }
.auswertung table { width: 100%; border-collapse: collapse; }
.auswertung th, .auswertung td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-top: 1px solid var(--iw-border); }
.auswertung thead th { border-top: 0; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; color: var(--iw-text-muted); }
.auswertung tbody th { font-family: var(--iw-font-display); font-weight: 600; }
.auswertung tr.top th { font-weight: 800; }
.auswertung td:last-child, .auswertung thead th:last-child { padding-right: 0; white-space: nowrap; }
.rang { display: inline-block; min-width: 30px; text-align: center; padding: 1px 10px; border-radius: var(--iw-radius-pill); background: var(--iw-surface); font-family: var(--iw-font-display); font-weight: 800; }
.rang.start { background: var(--iw-accent); color: var(--iw-bg); }
.auswertung > p { margin: var(--iw-space-3) 0 0; }
@media (max-width: 720px) {
  .auswertung thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .auswertung tr { display: block; padding: 12px 0; border-top: 1px solid var(--iw-border); }
  .auswertung th, .auswertung td { display: block; border: 0; padding: 0; }
  .auswertung tbody th { margin-bottom: 4px; }
  .auswertung td { display: flex; gap: 8px; font-size: var(--iw-size-small); white-space: normal; }
  .auswertung td::before { content: attr(data-label); flex: none; width: 11em; color: var(--iw-text-muted); }
  .auswertung td:empty { display: none; }
  .auswertung figcaption .badge { margin-left: 0; }
}

/* Angebot: Baustein-Auswahl, Eckdaten, fuer wen */
.wahl { margin-top: var(--iw-space-5); background: var(--iw-surface-raised); border: 1px solid var(--iw-border); border-radius: var(--iw-radius-l); padding: var(--iw-space-4); box-shadow: var(--iw-shadow); }
.wahl h3 { font-size: 1.375rem; margin-bottom: var(--iw-space-1); }
.wahl > p { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: var(--iw-space-2); margin: var(--iw-space-3) 0 var(--iw-space-4); }
.chip { font: inherit; font-weight: 600; line-height: 1.3; min-height: 44px; padding: 8px 16px; cursor: pointer; color: var(--iw-text); background: var(--iw-bg); border: 1px solid var(--iw-border-strong); border-radius: var(--iw-radius-pill); }
.chip::before { content: "+"; display: inline-block; width: 1em; margin-right: 4px; font-family: var(--iw-font-display); font-weight: 800; color: var(--iw-accent-text); }
.chip:hover { border-color: var(--iw-text); }
.chip[aria-pressed="true"] { background: var(--iw-text); color: var(--iw-bg); border-color: var(--iw-text); }
.chip[aria-pressed="true"]::before { content: "✓"; color: inherit; }
.wahl .wahl-ergebnis { margin: 0 0 var(--iw-space-3); padding-left: 10px; border-left: 2px solid var(--iw-accent); }
.wahl-ergebnis b { font-family: var(--iw-font-display); }
.wahl .wahl-note { margin-top: var(--iw-space-3); max-width: var(--iw-measure); }
.passt ul { margin: var(--iw-space-3) 0 0; padding-left: 1.2em; display: grid; gap: 6px; }
.passt li::marker { color: var(--iw-accent); }
.angebot-details { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--iw-space-5); align-items: start; margin-top: var(--iw-space-6); }
.eckdaten { margin: 0; }
.eckdaten > div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: var(--iw-space-3); padding: var(--iw-space-3) 0; border-top: 1px solid var(--iw-border); }
.eckdaten > div:last-child { border-bottom: 1px solid var(--iw-border); }
.eckdaten dt { font-family: var(--iw-font-display); font-weight: 700; }
.eckdaten dd { margin: 0; }
.passt { background: var(--iw-surface); border-radius: var(--iw-radius-m); padding: var(--iw-space-4); }
.passt h3 { font-size: 1.25rem; margin: 0; }
@media (max-width: 860px) { .angebot-details { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .eckdaten > div { grid-template-columns: 1fr; gap: 2px; } }

/* Chat nicht auf die Hoehe des Baukastens strecken; Preis-Platzhalter als Block */
.demo-body .chat { align-self: start; }
@media (min-width: 861px) { .chat-log { max-height: 640px; } }
.eckdaten .platzhalter { display: inline-block; margin-top: 4px; }

/* ---------- Drei Stufen ---------- */
.stufen-band { background: var(--iw-bg); color: var(--iw-text); }
.stufen { list-style: none; margin: var(--iw-space-5) 0 0; padding: 0; display: grid; gap: var(--iw-space-4); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.stufe-karte { display: flex; flex-direction: column; background: var(--iw-surface-raised); border: 1px solid var(--iw-border); border-radius: var(--iw-radius-l); padding: var(--iw-space-4); }
.stufe-karte p { margin: 0 0 var(--iw-space-3); }
.stufe-karte .stufe-nr { margin: 0 0 var(--iw-space-2); font-family: var(--iw-font-display); font-weight: 800; font-size: var(--iw-size-small); letter-spacing: 0.06em; text-transform: uppercase; color: var(--iw-accent-text); }
.stufe-karte h3 { font-size: 1.75rem; margin-bottom: 2px; }
.stufe-karte .stufe-sub { color: var(--iw-text-muted); font-weight: 600; }
.stufe-karte .stufe-ergebnis { margin-top: auto; padding-top: var(--iw-space-3); border-top: 1px solid var(--iw-border); font-size: var(--iw-size-small); }
.stufe-karte a { font-weight: 600; }
.eyebrow.stufe { margin-bottom: var(--iw-space-2); font-family: var(--iw-font-display); font-weight: 800; font-size: var(--iw-size-small); letter-spacing: 0.06em; text-transform: uppercase; color: var(--iw-accent-text); }

/* Steckbrief eines Ablaufs (Stufe 2): gleiche Karte wie die Auswertung, Zeilen statt Tabelle */
.steckbrief dl { margin: 0; }
.steckbrief dl > div { display: grid; grid-template-columns: 14em minmax(0, 1fr); gap: var(--iw-space-3); padding: 10px 0; border-top: 1px solid var(--iw-border); }
.steckbrief dt { font-family: var(--iw-font-display); font-weight: 700; }
.steckbrief dd { margin: 0; }
/* Spur im Steckbrief: Programme als Stationen, dazwischen gestrichelt der Medienbruch */
.spur { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; margin-bottom: 8px; }
.spur .station { font-weight: 600; font-size: 0.875rem; line-height: 1.3; padding: 4px 12px; border: 1px solid var(--iw-border-strong); border-radius: var(--iw-radius-pill); background: var(--iw-bg); white-space: nowrap; }
.spur .bruch { width: 34px; height: 0; border-top: 2px dashed var(--iw-accent); position: relative; }
.spur .bruch::after { content: ""; position: absolute; left: 50%; top: -8px; width: 2px; height: 14px; margin-left: -1px; background: var(--iw-accent); transform: rotate(20deg); }
@media (max-width: 420px) { .spur .bruch { width: 18px; } .spur .station { padding: 4px 9px; } }
@media (max-width: 640px) { .steckbrief dl > div { grid-template-columns: 1fr; gap: 2px; } }
.eigentum { margin-bottom: 0; }
