/* Prototyp B „KI-Berater“ – ergänzt das Basis-Stylesheet aus Prototyp A */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.advisor { position: relative; overflow: hidden; background: var(--dark-blu); color: var(--white); padding: clamp(40px, 6vw, 80px) 16px; }
.advisor :focus-visible { outline-color: var(--white); }
.advisor-inner { position: relative; max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 40px; align-items: start; }

.intro h1 { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: clamp(34px, 5.5vw, 64px); line-height: 1.02; margin: 0 0 16px; }
.intro { transition: opacity .4s var(--ease), max-height .5s var(--ease), margin .5s var(--ease); max-height: 520px; }
.advisor.talking .intro { opacity: 0; max-height: 0; margin: 0; overflow: hidden; }
.advisor.talking .hero-lead { margin: 0; }

/* Chat */
.chat { display: flex; flex-direction: column; gap: 14px; }
.advisor.talking .chat { min-height: 320px; max-height: min(62vh, 620px); overflow-y: auto; padding-right: 6px; scroll-behavior: smooth; }
.msg { max-width: 88%; padding: 14px 18px; border-radius: 14px; line-height: 1.55; animation: rise .35s var(--ease) both; opacity: 1; transform: none; }
.msg p { margin: 0 0 8px; } .msg p:last-child { margin: 0; }
.msg ul { margin: 6px 0; padding-left: 20px; }
.msg-user { align-self: flex-end; background: var(--white); color: var(--black); border-bottom-right-radius: 4px; font-weight: 400; }
.msg-bot { align-self: flex-start; background: var(--blu); border-bottom-left-radius: 4px; }
.msg-bot strong { font-weight: 700; }
.msg-error { align-self: flex-start; border: 1.5px solid var(--white); }
.who { display: block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; opacity: .8; margin-bottom: 4px; }
.typing span { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: var(--white); animation: blink 1.2s infinite both; }
.typing span:nth-child(2) { animation-delay: .2s } .typing span:nth-child(3) { animation-delay: .4s }
@keyframes blink { 0%, 80%, 100% { opacity: .25 } 40% { opacity: 1 } }

.starters { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 16px; }
.advisor.talking .starters { margin: 14px 0; }
.starters[hidden] { display: none; }
.starters .pain { animation-delay: .1s; }

.composer { display: flex; align-items: flex-end; gap: 10px; background: var(--white); border-radius: 14px; padding: 8px 8px 8px 18px; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.composer textarea { flex: 1; border: 0; resize: none; font: inherit; font-weight: 400; color: var(--black); padding: 10px 0; max-height: 160px; background: transparent; }
.composer textarea:focus { outline: none; }
.composer:focus-within { outline: 3px solid var(--white); outline-offset: 3px; }
.send { flex: none; width: 48px; height: 48px; border-radius: 10px; border: 0; background: var(--blu); cursor: pointer; display: grid; place-items: center; transition: background .2s, transform .2s var(--ease); }
.send:hover { background: var(--dark-blu); transform: translateX(2px); }
.send:disabled { background: var(--grey); cursor: wait; }
.send svg { width: 22px; height: 22px; fill: none; stroke: var(--white); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ai-note { font-size: 12px; margin: 10px 0 0; opacity: .85; }
.ai-note a { color: var(--white); }

/* Lösungsweg */
.path-col { border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius); padding: 24px; position: sticky; top: 96px; }
.path-col h2 { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: 20px; margin: 0 0 16px; letter-spacing: .5px; }
.path { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.path-step { display: flex; align-items: center; gap: 12px; font-size: 14px; opacity: .6; transition: opacity .4s; }
.path-step::before { content: attr(data-step); display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--white); font-weight: 700; font-size: 13px; transition: background .4s, color .4s; }
.path-step.done { opacity: 1; }
.path-step.done::before { background: var(--white); color: var(--dark-blu); }
.cards { display: grid; gap: 14px; }
.cards-empty { font-size: 14px; opacity: .8; margin: 0; }
.card { background: var(--white); color: var(--black); border-radius: var(--radius); padding: 20px; animation: pop .5s var(--ease); position: relative; }
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--blu); border-radius: var(--radius) 0 0 var(--radius); }
.card-area { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--blu); font-weight: 700; }
.card h3 { font-size: 18px; margin: 6px 0 8px; color: var(--dark-blu); }
.card p { margin: 0 0 10px; font-size: 14px; }
.card .first { font-size: 14px; font-weight: 400; }
.card .first b { color: var(--blu); }
.card .btn { margin-top: 6px; width: 100%; }
.card-inline { max-width: 94%; align-self: flex-start; }
.card-lead { background: var(--blu); color: var(--white); }
.card-lead::before { background: var(--white); }
.card-lead h3 { color: var(--white); }

/* Lösungen als Fragen an den Berater */
.sol .ask { background: none; border: 0; padding: 12px 0 0; font: inherit; font-weight: 700; color: var(--blu); cursor: pointer; text-align: left; }

@media (max-width: 960px) {
  .advisor-inner { grid-template-columns: 1fr; }
  .path-col { position: static; }
  .advisor:not(.talking) .path-col { display: none; }
  .msg { max-width: 94%; }
}
@media (prefers-reduced-motion: reduce) {
  .typing span { animation: none; opacity: 1; }
}
