:root {
  /* mindsquare-Farben aus dem Folienmaster 2026 */
  --charcoal: #3c3c3b;
  --heading: #2b2b2a;
  --orange: #ea5b0c;
  --orange-btn: #c24a07;
  --orange-ink: #a63f06;
  --yellow: #fdc300;
  --logo-gray: #a8a8a7;
  --ink: #222221;
  --muted: #5d5d5b;
  --line: #e6e3df;
  --bg: #f7f6f4;
  --card: #ffffff;
  --soft: #f1eeea;
  --top: #ffffff;
  --ok: #1a7f37;
  --red: #b42318;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(30, 25, 20, .05), 0 8px 24px rgba(30, 25, 20, .06);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1rem; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.opt { color: var(--muted); font-weight: 400; font-size: .85em; }

/* Kopfzeile: mindsquare-Logo und Wortmarke mindSpark */
.top {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 12px 24px; background: var(--top); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.ms-logo { display: block; height: 34px; width: auto; }
.brand-div { width: 1px; height: 30px; background: var(--line); }
.spark-word { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 1.35rem; letter-spacing: -.01em; }
.spark-icon { width: 24px; height: 22px; }
.w-mind { color: var(--logo-gray); }
.w-spark { color: var(--orange); }
.brand-sub { color: var(--muted); font-weight: 600; }
.steps { display: flex; gap: 6px; list-style: none; margin: 0 0 0 auto; padding: 0; counter-reset: s; }
.steps li {
  counter-increment: s; font-size: .85rem; padding: 4px 12px; border-radius: 999px;
  background: var(--soft); color: var(--muted);
}
.steps li::before { content: counter(s) " "; font-weight: 700; }
.steps li.done { color: var(--ink); }
.steps li.active { background: var(--orange-btn); color: #fff; }
.who { display: inline-flex; align-items: center; gap: 7px; padding: 4px 4px 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; background: var(--card); }
.who-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(26,127,55,.15); flex-shrink: 0; }
.who-mail { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-rolle { padding: 1px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: .72rem; font-weight: 650; }
.mode { font-size: .8rem; background: var(--soft); color: var(--muted); padding: 3px 10px; border-radius: 6px; }

main { max-width: 1240px; margin: 0 auto; padding: 28px 24px 60px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Buttons und Felder */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; padding: 10px 18px; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent; text-decoration: none; white-space: nowrap;
}
.btn.primary { background: var(--orange-btn); color: #fff; }
.btn.primary:hover { background: var(--orange-ink); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--heading); }
.btn.ghost:hover { background: var(--soft); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.wide { width: 100%; }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 14px; }
input, textarea, select {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 400;
  padding: 10px 12px; border: 1px solid #cfd6df; border-radius: 10px; background: #fff; color: var(--ink);
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus, .btn:focus-visible { outline: 3px solid rgba(234, 91, 11, .35); outline-offset: 1px; border-color: var(--orange); }
.error { color: var(--red); min-height: 1em; margin: 8px 0 0; font-size: .92rem; }
.note, .hint { font-size: .85rem; color: var(--muted); }

/* Start */
#view-start { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.hero h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--heading); margin-top: 12px; }
.subline { font-size: 1.3rem; font-weight: 600; color: var(--heading); margin: -4px 0 14px; max-width: 34ch; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 46ch; }
.how { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.how li { display: flex; gap: 14px; align-items: flex-start; }
.how b {
  flex: none; width: 34px; height: 34px; border-radius: 6px; display: grid; place-items: center;
  background: var(--yellow); color: var(--heading); box-shadow: inset 12px 12px 0 -6px var(--orange);
}
.how strong { display: block; }
.start-form { padding: 24px; }
.scope { margin-top: 24px; padding: 14px 16px; border-left: 4px solid var(--orange); background: var(--card); border-radius: 0 10px 10px 0; font-size: .95rem; }
.benefit, .real { border-top: 1px solid var(--line); padding-top: 16px; margin-bottom: 16px; }
.benefit dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-top: 10px; }
.benefit dd { margin: 2px 0 0; }
.benefit ul, .real ul { margin: 4px 0 8px; padding-left: 20px; }

/* Chat */
#view-chat { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.chat { display: flex; flex-direction: column; height: calc(100vh - 160px); min-height: 480px; }
.messages { flex: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 82%; padding: 12px 16px; border-radius: 14px; white-space: pre-wrap; }
.msg.assistant { background: var(--soft); border-top-left-radius: 4px; align-self: flex-start; }
.msg.user { background: var(--charcoal); color: #fff; border-top-right-radius: 4px; align-self: flex-end; }
.msg.typing { color: var(--muted); font-style: italic; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 22px 10px; }
.chip {
  font: inherit; font-size: .9rem; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--charcoal); color: var(--heading);
}
.chip:hover { background: var(--charcoal); color: #fff; }
.composer { display: flex; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); align-items: flex-end; }
.composer textarea { margin: 0; }
.chat .error { padding: 0 22px 10px; }

.spec { padding: 22px; position: sticky; top: 20px; }
.checklist { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }
.checklist li { display: flex; gap: 10px; align-items: center; font-size: .92rem; color: var(--muted); }
.checklist li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c3cad4; flex: none;
}
.checklist li.ok { color: var(--ink); }
.checklist li.ok::before { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E") center/14px no-repeat; }
.spec dl { margin: 0 0 16px; }
.spec dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-top: 12px; }
.spec dd { margin: 2px 0 0; font-size: .95rem; }
.spec .title { font-size: 1.15rem; font-weight: 700; color: var(--heading); }
.swatch { display: inline-block; width: 16px; height: 16px; border-radius: 4px; vertical-align: -3px; margin-right: 4px; border: 1px solid rgba(0, 0, 0, .1); }
.spec ol { margin: 4px 0 0; padding-left: 20px; }

/* Bau */
.building { padding: 48px 24px; text-align: center; max-width: 620px; margin: 40px auto; }
.spinner {
  width: 44px; height: 44px; margin: 0 auto 18px; border-radius: 50%;
  border: 4px solid var(--soft); border-top-color: var(--orange); border-right-color: var(--yellow); animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.progress { height: 6px; background: var(--soft); border-radius: 99px; overflow: hidden; margin-top: 18px; }
.progress span { display: block; height: 100%; width: 3%; background: linear-gradient(90deg, var(--orange), var(--yellow)); transition: width .4s; }

.preview-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
.preview-head h2 { color: var(--heading); font-size: 1.4rem; margin: 0; }
.preview-head p { margin: 4px 0 0; }
.preview-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.preview-actions select { width: auto; margin: 0; }
.preview-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.frame { overflow: hidden; }
.frame iframe { display: block; width: 100%; height: calc(100vh - 230px); min-height: 560px; border: 0; background: #fff; }
.guide { padding: 20px; }
.guide ol { padding-left: 20px; margin: 0 0 20px; }
.guide li { margin-bottom: 8px; }
.change { border-top: 1px solid var(--line); padding-top: 12px; }
.change summary { cursor: pointer; font-weight: 700; margin-bottom: 8px; }
.change[open] summary { margin-bottom: 10px; }
.change textarea { margin: 0 0 10px; }

/* Bewertung */
.rate-form { max-width: 760px; margin: 0 auto; padding: 28px; }
.stars { border: 0; padding: 0; margin: 0 0 20px; display: flex; gap: 6px; }
.star {
  font-size: 2.2rem; line-height: 1; background: none; border: 0; cursor: pointer; color: #c9cfd8; padding: 2px;
}
.star.on { color: var(--orange); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
fieldset.interest { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 0 0 16px; }
fieldset.interest legend { font-weight: 600; font-size: .92rem; padding: 0 6px; }
.radio, .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 6px 0; }
.radio input, .check input { width: auto; margin: 4px 0 0; flex: none; }

/* Danke */
.done-card { max-width: 640px; margin: 40px auto; padding: 36px; text-align: center; }
.done-card h2 { color: var(--heading); font-size: 1.6rem; }
.done-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

@media (max-width: 900px) {
  #view-start, #view-chat, .preview-grid { grid-template-columns: 1fr; }
  .chat { height: 70vh; }
  .spec { position: static; }
  .steps { margin-left: 0; }
  .frame iframe { height: 75vh; min-height: 420px; }
}
@media (max-width: 560px) {
  main { padding: 18px 16px 48px; }
  .top { padding: 12px 16px; gap: 10px; }
  .steps li { padding: 3px 8px; font-size: .78rem; }
  .row { grid-template-columns: 1fr; }
  .msg { max-width: 92%; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --heading: #f4f2ee; --ink: #ecebe8; --muted: #b0aea9; --line: #353432; --bg: #141413;
    --card: #1e1e1d; --soft: #2a2927; --top: #1e1e1d; --charcoal: #4a4a48;
    color-scheme: dark;
  }
  input, textarea, select { background: #141413; border-color: #43423f; }
  .chip { border-color: #8a8984; }
}

/* mindSpark: Website, Bau-Schritte, Aufdecken, Nutzen, Folgeideen */
.site-note { margin-top: -6px; }
.brandbox { padding: 10px 12px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 10px; font-size: .88rem; }
.brand-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.brand-row img { height: 28px; max-width: 110px; object-fit: contain; background: #fff; border-radius: 6px; padding: 2px 6px; }
.upload { cursor: pointer; }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload:focus-within { outline: 3px solid rgba(234, 91, 11, .35); }
#logo-error { margin: 6px 0 0; min-height: 0; }
.buildsteps { text-align: left; list-style: none; padding: 0; margin: 22px auto 0; max-width: 420px; display: grid; gap: 8px; }
.buildsteps li { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.buildsteps li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #c3cad4; flex: none; }
.buildsteps li.now { color: var(--ink); font-weight: 600; }
.buildsteps li.now::before { border-color: var(--orange); border-top-color: transparent; animation: spin 1s linear infinite; }
.buildsteps li.ok { color: var(--ink); }
.buildsteps li.ok::before { border-color: var(--ok); background: var(--ok); }
.reveal { text-align: center; max-width: 620px; margin: 40px auto; padding: 44px 28px; animation: pop .35s ease-out; }
.reveal-kicker { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--orange-btn); margin: 0 0 6px; }
.reveal h2 { font-size: 1.8rem; color: var(--heading); }
.btn.big { font-size: 1.1rem; padding: 14px 28px; margin-top: 10px; }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.bignum { font-size: 2rem; font-weight: 800; color: var(--ok); line-height: 1.1; }
.bignum small { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); }
.next-steps { text-align: left; margin: 20px auto; max-width: 480px; padding-left: 22px; }
.next-steps li { margin-bottom: 8px; }
.next-steps strong { display: block; }
.more-ideas { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 18px; }
.idea-list { display: grid; gap: 8px; margin-top: 10px; }
.idea-list .btn { white-space: normal; text-align: left; justify-content: flex-start; }

/* Funken: kleine Quadrate in den Farben des mindsquare-Logos */
.hero { position: relative; }
.kicker { display: inline-block; margin: 0; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-btn); }
.hl { background: linear-gradient(90deg, var(--orange), #f29100); -webkit-background-clip: text; background-clip: text; color: transparent; }
.spark-src { position: relative; display: inline-block; }
.sparks { position: absolute; left: -10%; right: -10%; bottom: 75%; height: 90px; pointer-events: none; }
.sparks i {
  position: absolute; bottom: 0; width: 8px; height: 8px; background: var(--yellow); opacity: 0;
  animation: rise 3.2s cubic-bezier(.2,.6,.35,1) infinite;
}
.sparks i:nth-child(odd) { background: var(--orange); width: 6px; height: 6px; }
.sparks i:nth-child(3n) { width: 4px; height: 4px; }
.sparks i:nth-child(1) { left: 8%; --x: -24px; animation-delay: 0s; }
.sparks i:nth-child(2) { left: 22%; --x: 10px; animation-delay: .25s; }
.sparks i:nth-child(3) { left: 36%; --x: -12px; animation-delay: .5s; }
.sparks i:nth-child(4) { left: 50%; --x: 18px; animation-delay: .75s; }
.sparks i:nth-child(5) { left: 64%; --x: -6px; animation-delay: 1s; }
.sparks i:nth-child(6) { left: 78%; --x: 26px; animation-delay: 1.25s; }
.sparks i:nth-child(7) { left: 90%; --x: 8px; animation-delay: 1.5s; }
.sparks i:nth-child(8) { left: 15%; --x: 20px; animation-delay: 1.75s; }
.sparks i:nth-child(9) { left: 29%; --x: -20px; animation-delay: 2s; }
.sparks i:nth-child(10) { left: 43%; --x: 4px; animation-delay: 2.25s; }
.sparks i:nth-child(11) { left: 57%; --x: -28px; animation-delay: 2.5s; }
.sparks i:nth-child(12) { left: 71%; --x: 14px; animation-delay: 2.75s; }
.sparks i:nth-child(13) { left: 85%; --x: -10px; animation-delay: 3s; }
.sparks i:nth-child(14) { left: 50%; --x: -16px; animation-delay: 1.1s; }
@keyframes rise {
  0% { transform: translate(0, 0) rotate(0) scale(1); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translate(var(--x, 0), -80px) rotate(200deg) scale(.5); opacity: 0; }
}
.reveal { position: relative; overflow: hidden; }
.burst { position: absolute; left: 50%; top: 42%; width: 0; height: 0; pointer-events: none; }
.burst span { position: absolute; width: 10px; height: 10px; background: var(--yellow); animation: burst 1.1s cubic-bezier(.15,.7,.3,1) forwards; }
.burst span:nth-child(odd) { background: var(--orange); }
@keyframes burst {
  0% { transform: translate(0, 0) rotate(0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(.4); opacity: 0; }
}
@media (max-width: 560px) {
  .ms-logo { height: 26px; }
  .brand-div { height: 24px; }
  .spark-word { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sparks, .burst { display: none; }
  .reveal { animation: none; }
}
@media (prefers-color-scheme: dark) {
  .kicker, .reveal-kicker { color: var(--orange); }
}

/* Neu beginnen, Bewertungsleiste, kompakte Seitenleiste */
.btn.small { padding: 6px 12px; font-size: .85rem; }
#restart { margin-left: 4px; }
.guide { position: sticky; top: 16px; max-height: calc(100vh - 150px); overflow-y: auto; }
.rate-bar {
  position: sticky; bottom: 12px; z-index: 20; margin-top: 16px;
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(30, 25, 20, .18);
}
.rate-bar-text { font-weight: 700; }
.rate-bar .star { font-size: 1.7rem; }
.rate-bar.nudge { animation: nudge 1.6s ease-in-out 3; border-color: var(--orange); }
@keyframes nudge { 50% { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(234, 91, 12, .35); } }
.rate-notice { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; background: var(--soft); border-left: 4px solid var(--orange); font-weight: 600; }
@media (max-width: 900px) { .guide { position: static; max-height: none; } }
@media (prefers-reduced-motion: reduce) { .rate-bar.nudge { animation: none; } }

/* ---------- Wartezeit: Studio, Nutzen, Funkenspiel, Lösungen ---------- */
.building-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.build-main { display: grid; gap: 16px; }
.build-main > .card, .insp { animation: rise-in .45s cubic-bezier(.2,.7,.3,1) both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.studio { padding: 24px; overflow: hidden; position: relative; }
.studio::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 195, 0, .18), transparent 65%); pointer-events: none;
}
.studio-top { display: flex; gap: 24px; align-items: center; position: relative; }
.studio-text h2 { font-size: 1.45rem; margin: 2px 0 4px; }
.studio-text p { margin: 0; }
.pct { margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--soft); color: var(--heading); letter-spacing: 0; }

.forge { position: relative; width: 120px; height: 120px; flex: none; }
.ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring-bg { stroke: var(--soft); }
.ring-fg { stroke: var(--orange); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset .4s linear; }
.forge-core { position: absolute; inset: 0; }
.forge-core i { position: absolute; display: block; }
.forge-core .q-big { left: 40px; top: 40px; width: 40px; height: 40px; background: var(--yellow); animation: breathe 2.4s ease-in-out infinite; }
.forge-core .q-small { left: 40px; top: 40px; width: 19px; height: 19px; background: var(--orange); animation: breathe 2.4s ease-in-out infinite .2s; }
.forge-core .f { width: 7px; height: 7px; left: 56px; top: 56px; background: var(--orange); opacity: 0; animation: orbit 3.2s linear infinite; }
.forge-core .f:nth-child(even) { background: var(--yellow); width: 5px; height: 5px; }
.forge-core .f2 { animation-delay: -.64s; } .forge-core .f3 { animation-delay: -1.28s; }
.forge-core .f4 { animation-delay: -1.92s; } .forge-core .f5 { animation-delay: -2.56s; }
@keyframes breathe { 50% { transform: scale(1.07); } }
@keyframes orbit {
  0% { transform: rotate(0deg) translateX(50px) rotate(0deg) scale(.6); opacity: 0; }
  15% { opacity: 1; }
  70% { opacity: 1; }
  100% { transform: rotate(360deg) translateX(8px) rotate(-360deg) scale(.2); opacity: 0; }
}

.timeline { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 2px; position: relative; }
.timeline li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 7px 0; color: var(--muted); position: relative; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 10px; top: 26px; bottom: -8px; width: 2px; background: var(--line); }
.tl-dot { width: 18px; height: 18px; border-radius: 5px; border: 2px solid #c9c5bf; background: var(--card); position: relative; z-index: 1; transition: all .3s; }
.timeline li.now { color: var(--ink); font-weight: 650; }
.timeline li.now .tl-dot { border-color: var(--orange); background: var(--yellow); animation: pulse-dot 1.2s ease-in-out infinite; }
.timeline li.ok { color: var(--ink); }
.timeline li.ok .tl-dot { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E") center/13px no-repeat; }
.timeline li.ok::after { background: var(--ok); }
.tl-time { font-size: .82rem; font-variant-numeric: tabular-nums; color: var(--muted); }
@keyframes pulse-dot { 50% { box-shadow: 0 0 0 6px rgba(253, 195, 0, .25); } }

.teaser { padding: 20px 22px; border-left: 5px solid var(--yellow); }
.teaser .kicker, .nutzen .kicker { margin-bottom: 6px; }
.teaser-text { margin: 0; font-size: 1.15rem; line-height: 1.55; min-height: 1.5em; }
.teaser-text.typing::after { content: ""; display: inline-block; width: 9px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--orange); animation: caret .9s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.nutzen { padding: 20px 22px; }
.nutzen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.nutzen-cell { padding: 14px 16px; border-radius: 12px; background: var(--soft); }
.nutzen-cell b { display: block; font-size: 2.3rem; line-height: 1.05; color: var(--ok); font-variant-numeric: tabular-nums; }
.nutzen-cell span { font-size: .9rem; color: var(--muted); }
.nutzen .hint { margin: 10px 0 0; }

.game { padding: 18px 20px 0; overflow: hidden; }
.game-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.game-head h3 { margin: 0 0 2px; }
.game-head .hint { margin: 0; }
.score { text-align: center; min-width: 76px; }
.score b { display: block; font-size: 2rem; line-height: 1; color: var(--orange-btn); font-variant-numeric: tabular-nums; }
.score span { font-size: .78rem; color: var(--muted); }
.score small { display: block; font-size: .72rem; color: var(--muted); margin-top: 2px; }
.score.bump b { animation: bump .25s ease-out; }
@keyframes bump { 50% { transform: scale(1.35); } }
.sparkfield { position: relative; height: 220px; margin: 12px -20px 0; background: linear-gradient(180deg, transparent, var(--soft)); overflow: hidden; cursor: crosshair; }
.spark-b {
  position: absolute; bottom: -24px; padding: 0; border: 0; cursor: pointer; background: var(--orange);
  width: 16px; height: 16px; border-radius: 3px; animation: fly var(--dur, 6s) linear forwards;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .5);
}
.spark-b.y { background: var(--yellow); }
.spark-b.gold { width: 24px; height: 24px; background: linear-gradient(135deg, #ffe066, var(--yellow) 50%, var(--orange)); box-shadow: 0 0 14px 4px rgba(253, 195, 0, .7); }
.spark-b:focus-visible { outline: 3px solid var(--heading); }
@keyframes fly {
  0% { transform: translate(0, 0) rotate(0); opacity: 0; }
  8% { opacity: 1; }
  100% { transform: translate(var(--dx, 20px), -270px) rotate(var(--rot, 180deg)); opacity: .9; }
}
.pop { position: absolute; width: 6px; height: 6px; pointer-events: none; animation: pop-out .6s ease-out forwards; }
@keyframes pop-out { to { transform: translate(var(--px), var(--py)) scale(.3); opacity: 0; } }
.plus { position: absolute; pointer-events: none; font-weight: 800; color: var(--orange-btn); animation: plus-up .8s ease-out forwards; }
@keyframes plus-up { to { transform: translateY(-34px); opacity: 0; } }

.build-side { display: grid; gap: 16px; position: sticky; top: 16px; }
.insp { padding: 18px; }
.insp h3 { margin-bottom: 2px; }
.insp .hint { margin: 0 0 10px; }
.insp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.insp-list > li { border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.insp-list > li:hover { border-color: var(--orange); box-shadow: 0 6px 18px rgba(30, 25, 20, .08); transform: translateY(-1px); }
.sol-btn { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 12px 14px; cursor: pointer; border-radius: 12px; }
.sol-btn:focus-visible { outline: 3px solid rgba(234, 91, 11, .4); }
.sol-btn strong { display: block; padding-right: 22px; position: relative; }
.sol-btn strong::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 1.2rem; color: var(--orange-btn); transition: transform .2s; }
.sol-btn[aria-expanded="true"] strong::after { transform: rotate(45deg); }
.sol-more { padding: 0 14px 14px; }
.sol-more p { margin: 0 0 10px; font-size: .92rem; }
.merk { width: 100%; }
.merk[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); color: #fff; }
.insp-list > li.gemerkt { border-color: var(--ok); }
.insp-list .tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--orange-btn); margin-bottom: 2px; }
.insp-list .gemerkt-tag { color: var(--ok); margin-left: 8px; }
.event-link { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; padding: 12px 14px; color: inherit; text-decoration: none; }
.event-date { display: grid; place-items: center; height: 52px; border-radius: 10px; background: var(--charcoal); color: #fff; line-height: 1.05; }
.event-date b { font-size: 1.25rem; }
.event-date small { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.event-link strong { display: block; font-size: .95rem; }
.event-link .go { font-size: .82rem; font-weight: 650; color: var(--orange-btn); }
.reveal-score { font-weight: 650; color: var(--orange-btn); }

@media (max-width: 960px) { .building-wrap { grid-template-columns: 1fr; } .build-side { position: static; } }
@media (max-width: 560px) {
  .studio-top { flex-direction: column; text-align: center; }
  .nutzen-grid { grid-template-columns: 1fr; }
  .sparkfield { height: 180px; }
}
@media (prefers-color-scheme: dark) {
  .insp-list .tag, .event-link .go, .score b, .reveal-score { color: var(--orange); }
  .tl-dot { border-color: #55534f; }
}
@media (prefers-reduced-motion: reduce) {
  .forge-core i, .timeline li.now .tl-dot, .build-main > .card, .insp, .teaser-text.typing::after { animation: none !important; }
  .forge-core .f { display: none; }
  .game { display: none; }
}

/* ---------- Animierte Funken in der Wortmarke ---------- */
.spark-icon { overflow: visible; }
.spark-icon rect { transform-box: fill-box; transform-origin: center; }
.spark-icon rect:nth-child(3) { animation: spark-a 2.8s ease-in-out infinite; }
.spark-icon rect:nth-child(4) { animation: spark-b 3.4s ease-in-out infinite .4s; }
.spark-icon rect:nth-child(5) { animation: spark-c 2.2s ease-in-out infinite .9s; }
.spark-icon rect:nth-child(n+6) { opacity: 0; animation: spark-fly 2.6s ease-out infinite; }
.spark-icon rect:nth-child(7) { animation-delay: .9s; }
.spark-icon rect:nth-child(8) { animation-delay: 1.7s; }
.brand:hover .spark-icon rect { animation-duration: 1s; }
@keyframes spark-a { 50% { transform: translate(2px, -3px) rotate(45deg) scale(1.2); } }
@keyframes spark-b { 0%, 100% { opacity: 1; } 50% { opacity: .2; transform: translate(-1px, -2px) scale(.7); } }
@keyframes spark-c { 50% { transform: translate(1px, -2px) rotate(90deg); opacity: .5; } }
@keyframes spark-fly {
  0% { opacity: 0; transform: translate(0, 0) scale(1); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--sx, 6px), var(--sy, -10px)) rotate(120deg) scale(.4); }
}
@media (prefers-reduced-motion: reduce) { .spark-icon rect { animation: none !important; } .spark-icon rect:nth-child(n+6) { display: none; } }

/* ---------- Einblicke aus dem Lösungsportal ---------- */
.showcase { padding: 20px 22px; }
.sc-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.sc-head h3 { margin: 2px 0 4px; }
.sc-head .hint { margin: 0; }
.sc-dots { display: flex; gap: 6px; padding-top: 6px; flex-shrink: 0; }
.sc-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; }
.sc-dots button[aria-selected="true"] { background: var(--orange); }
.sc-stage { margin: 14px 0 12px; min-height: 230px; }
.sc-in { animation: sc-in .5s ease; }
@keyframes sc-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sol-why { display: block; font-size: .82rem; color: var(--muted); font-weight: 400; margin-top: 2px; }

.eb-frame { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); font-size: .78rem; line-height: 1.35; box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.eb-bar-top { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; padding: 8px 110px 8px 12px; background: var(--charcoal); color: #fff; }
.eb-bar-top span { opacity: .75; font-size: .72rem; }
.eb-body { padding: 10px 12px 12px; display: grid; gap: 8px; }
.eb-lead { margin: 0; font-weight: 650; color: var(--heading); }
.eb-title { margin: 0 0 4px; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.eb-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 6px; }
.eb-kpi { padding: 6px 8px; border-radius: 8px; background: var(--soft); }
.eb-kpi b { display: block; font-size: 1rem; }
.eb-kpi span { color: var(--muted); font-size: .7rem; }
.tone-good b, .eb-delta.tone-good { color: var(--ok); }
.tone-bad b, .eb-delta.tone-bad { color: var(--red); }
.tone-warn b, .eb-delta.tone-warn { color: #a66a00; }
.eb-table { width: 100%; border-collapse: collapse; }
.eb-table th, .eb-table td { text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.eb-table th { font-size: .68rem; color: var(--muted); font-weight: 600; }
.eb-table tr.changed td { background: rgba(253,195,0,.12); }
.eb-pill { padding: 1px 7px; border-radius: 999px; background: var(--soft); font-size: .7rem; white-space: nowrap; }
.eb-pill.tone-good { background: #e3f4e8; color: #1d6b35; }
.eb-pill.tone-warn { background: #fff1cf; color: #7a5300; }
.eb-pill.tone-bad { background: #fde3dc; color: #9a2a06; }
.eb-proposal { padding: 8px 10px; border-radius: 10px; background: #fff6ec; border: 1px solid #f6c9a4; }
.eb-proposal p { margin: 4px 0; }
.eb-proposal ul { margin: 0; padding-left: 16px; color: var(--muted); }
.eb-ai { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--orange-btn); color: #fff; font-size: .68rem; font-weight: 650; }
.eb-ai.mini { margin-left: 6px; padding: 0 6px; }
.eb-steps { margin: 0; padding-left: 18px; }
.eb-steps li.state-done { color: var(--ok); }
.eb-steps li.state-active { font-weight: 650; }
.eb-steps small { color: var(--muted); margin-left: 6px; }
.eb-fields { display: grid; grid-template-columns: max-content 1fr; gap: 3px 10px; margin: 0; }
.eb-fields dt { color: var(--muted); }
.eb-fields dd { margin: 0; }
.eb-inbox, .eb-ranking, .eb-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.eb-inbox li { padding: 5px 8px; border-radius: 8px; background: var(--soft); display: grid; }
.eb-inbox li span { color: var(--muted); font-size: .7rem; }
.eb-ranking li { display: grid; grid-template-columns: 1fr 80px 28px; gap: 8px; align-items: center; }
.eb-ranking li i { display: block; height: 6px; border-radius: 3px; background: var(--orange); }
.eb-ranking li.rec span { font-weight: 650; }
.eb-timeline li { display: grid; grid-template-columns: 74px 1fr; gap: 6px; }
.eb-timeline small { color: var(--muted); }
.eb-chart { display: flex; gap: 6px; align-items: flex-end; height: 70px; }
.eb-bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; text-align: center; }
.eb-bar i { display: block; background: var(--orange); border-radius: 3px 3px 0 0; }
.eb-bar small { font-size: .62rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eb-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 6px; }
.eb-board div { display: grid; gap: 4px; align-content: start; }
.eb-board span { padding: 4px 6px; border-radius: 6px; background: var(--soft); }
.eb-doc p { margin: 0 0 4px; }
.eb-file { display: inline-block; margin-bottom: 4px; padding: 2px 8px; border-radius: 6px; background: var(--soft); }
.eb-chat { display: grid; gap: 5px; }
.eb-chat p { margin: 0; padding: 6px 9px; border-radius: 10px; max-width: 85%; background: var(--soft); }
.eb-chat p.user { justify-self: end; background: var(--charcoal); color: #fff; }
.eb-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.eb-actions span { padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line); }
.eb-actions span.primary { background: var(--orange-btn); color: #fff; border-color: var(--orange-btn); }
.eb-ribbon { position: absolute; top: 8px; right: 10px; padding: 1px 8px; border-radius: 999px; background: rgba(255,255,255,.18); color: #fff; font-size: .62rem; letter-spacing: .04em; text-transform: uppercase; }

.loesung-dialog { width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 24px; border: 0; border-radius: 16px; background: var(--card); color: var(--ink); box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.loesung-dialog::backdrop { background: rgba(20,20,20,.45); }
.ld-head { display: flex; justify-content: space-between; align-items: center; }
.ld-close { border: 0; background: transparent; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted); }
.loesung-dialog h2 { margin: 6px 0 8px; color: var(--heading); }
.ld-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 20px; margin: 14px 0 8px; align-items: start; }
.ld-grid h4 { margin: 0 0 6px; }
.ld-flow { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.ld-actions { display: flex; justify-content: flex-end; }
.ld-actions .btn { width: auto; }
@media (max-width: 760px) { .ld-grid { grid-template-columns: 1fr; } .sc-stage { min-height: 0; } }
@media (prefers-color-scheme: dark) {
  .eb-proposal { background: #33241a; border-color: #6b3b1d; }
  .eb-pill.tone-good { background: #1d3a26; color: #8fe0a8; }
  .eb-pill.tone-warn { background: #3d3214; color: #ffd77a; }
  .eb-pill.tone-bad { background: #4a2414; color: #ffb48a; }
}
