/* Agenten-Check-Assistent im schwarzen Sparehour-Design. Chat nach dem Chat-Standard
   (~/.claude/skills/webdesign-2-0/references/motion-bibliothek.md, Abschnitt C). Schriften lokal. */
@font-face { font-family: "Geist"; font-weight: 300; font-display: swap; src: url(fonts/geist-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 400; font-display: swap; src: url(fonts/geist-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 500; font-display: swap; src: url(fonts/geist-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 600; font-display: swap; src: url(fonts/geist-latin-600-normal.woff2) format("woff2"); }
:root {
  --bg: #020203; --ink: #f2f3f7; --ink-2: rgba(242,243,247,.72); --muted: rgba(242,243,247,.5); --line: rgba(242,243,247,.14);
  --indigo: #e2620f; --mint: #ffd98a; --sky: #ffa53a; --me: #5b37ff; --them: #1b1d27;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif; --gut: clamp(18px, 5vw, 64px);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; background:
  radial-gradient(50vw 40vh at 90% 0%, rgba(226,98,15,.22), transparent 70%),
  radial-gradient(40vw 30vh at 0% 100%, rgba(255,217,138,.08), transparent 70%), var(--bg); background-attachment: fixed; }
a { color: var(--mint); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.bar { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding: 14px var(--gut); background: rgba(2,2,3,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.back { color: var(--ink-2); text-decoration: none; font-size: 14px; }
.back::before { content: "\2190  "; }
.back:hover { color: var(--ink); }
.step { color: var(--mint); font: 500 12px/1 var(--font); letter-spacing: .04em; }

.wrap { max-width: 720px; margin: 0 auto; padding: clamp(40px, 9vh, 100px) 18px 60px; }
h1, h2 { font-weight: 300; letter-spacing: -.03em; line-height: 1.06; margin: 0 0 22px; }
h1 { font-size: clamp(34px, 5.2vw, 56px); }
h2 { font-size: clamp(26px, 3.6vw, 38px); }
.kicker { color: var(--mint); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 18px; }
.lead { color: var(--ink-2); font-size: clamp(17px, 1.3vw, 19px); margin: 0 0 16px; }
.muted { color: var(--muted); margin: 0 0 30px; }

/* Buttons (Abschnitt D) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; cursor: pointer; text-decoration: none;
  font: 600 15px/1 var(--font); color: #060608; background: linear-gradient(180deg, #fff, #e4e6ee); border: 1px solid rgba(255,255,255,.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 24px -10px rgba(0,0,0,.8); transition: transform .1s ease-out, background .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); background: linear-gradient(180deg, #8dffc6, var(--mint)); border-color: var(--mint); box-shadow: 0 10px 28px -8px rgba(255,217,138,.45); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.btn .ico { width: 18px; height: 18px; }

/* Chat (Abschnitt C) */
.chatbox { border: 1px solid var(--line); border-radius: 22px; background: rgba(8,9,14,.88); overflow: hidden; box-shadow: 0 30px 100px -40px rgba(226,98,15,.45); }
.chathead { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ava { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: linear-gradient(135deg, var(--indigo), var(--sky)); color: #fff; font: 600 12px/1 var(--font); }
.chathead b { display: block; font-weight: 500; font-size: 14px; line-height: 1.2; }
.chathead span { font-size: 11.5px; color: var(--mint); }
.log { list-style: none; margin: 0; padding: 16px 14px 18px; display: flex; flex-direction: column; gap: 4px; min-height: 240px; }
.log li { max-width: 82%; padding: 10px 14px; border-radius: 18px; line-height: 1.45; font-size: 15.5px; animation: slidein .24s ease-out both; }
.log .day { align-self: center; max-width: none; padding: 0 0 8px; font: 500 11px/1 var(--font); color: var(--muted); background: none; animation: none; }
.log .q { align-self: flex-start; background: var(--them); color: #eef0f6; border-top-left-radius: 6px; }
.log .q + .q { border-top-left-radius: 6px; }
.log .a { align-self: flex-end; background: var(--me); color: #fff; border-bottom-right-radius: 6px; white-space: pre-wrap; animation-name: slidein-me; }
.log .a.skipped { background: transparent; border: 1px dashed rgba(255,255,255,.25); color: var(--muted); }
/* Gruppen: 4 px innerhalb eines Absenders, 18 px zwischen den Absendern */
.log .q + .a, .log .a + .q, .log .a + .typing, .log .status + .q, .log .status + .typing, .log .day + .q { margin-top: 14px; }
.log .status { align-self: flex-end; padding: 2px 4px 0; font: 500 10.5px/1 var(--font); color: var(--muted); background: none; animation: none; }
.log .status::after { content: " \2713\2713"; color: var(--mint); }
.log .typing { align-self: flex-start; display: flex; gap: 4px; padding: 13px 14px; background: var(--them); border-top-left-radius: 6px; }
.log .typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); animation: typing 1s infinite ease-in-out; }
.log .typing i:nth-child(2) { animation-delay: .15s; } .log .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
@keyframes slidein { from { opacity: 0; transform: translate(-8px, 8px); } }
@keyframes slidein-me { from { opacity: 0; transform: translate(8px, 8px); } }

.answer { position: sticky; bottom: 0; background: rgba(8,9,14,.96); padding: 12px 14px 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.answer textarea { font: 16px/1.45 var(--font); color: var(--ink); background: #0d0e14; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; resize: none; min-height: 72px; width: 100%;
  transition: border-color .25s, box-shadow .25s; }
.answer textarea:focus { border-color: rgba(255,217,138,.6); box-shadow: 0 0 0 3px rgba(255,217,138,.12); outline: none; }
.answer textarea::placeholder { color: rgba(255,255,255,.35); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row .btn { margin-left: auto; }
.mic { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255,217,138,.6); background: rgba(255,217,138,.06); color: var(--mint); font: 500 15px var(--font); cursor: pointer; transition: transform .1s, background .2s; }
.mic:active { transform: scale(.97); }
.mic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mic[aria-pressed="true"] { background: var(--mint); color: #04150c; box-shadow: 0 0 0 0 rgba(255,217,138,.55); animation: pulse 1.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(255,217,138,0); } }
.skip { background: none; border: 0; color: var(--muted); font: 14px var(--font); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; min-height: 44px; }
.hint { color: var(--muted); font-size: 13.5px; margin: 0; min-height: 1.4em; }

/* Formular: Linie wächst aus der Mitte (Abschnitt A2) */
.form { border: 1px solid var(--line); background: rgba(8,9,14,.85); border-radius: 22px; gap: 20px; padding: 30px; display: grid; }
.form label { color: var(--ink-2); gap: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; display: grid; }
.form input { font: 16px var(--font); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.22); border-radius: 0; padding: 10px 0; text-transform: none; letter-spacing: 0;
  background-image: linear-gradient(var(--mint), var(--mint)); background-repeat: no-repeat; background-position: center bottom; background-size: 0% 1px; transition: background-size .25s ease-out; }
.form input:focus { outline: none; background-size: 100% 1px; }
.form .btn { justify-self: start; }
.note { color: var(--muted); font-size: 13.5px; margin: 0; }
.err { color: #ff8a8a; margin: 0; }
.done .btn { margin-top: 16px; }

@media (max-width: 560px) {
  .form { padding: 22px; }
  .log li { max-width: 90%; }
  .row .btn { margin-left: 0; flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .log li, .mic[aria-pressed="true"], .log .typing i { animation: none; }
  .btn { transition: none; }
}
