:root {
  --bg: #0f1419;
  --panel: #1a2332;
  --panel2: #243044;
  --text: #e8eef7;
  --muted: #9aa8bc;
  --accent: #3d8bfd;
  --accent2: #22c55e;
  --danger: #f87171;
  --warn: #fbbf24;
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--font); color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, #1e3a5f 0%, transparent 50%),
              radial-gradient(900px 500px at 100% 0%, #163528 0%, transparent 45%),
              var(--bg);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 980px; margin: 0 auto; padding: 24px 18px 60px; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 24px;
}
.brand { font-weight: 700; font-size: 1.1rem; letter-spacing: 0.02em; }
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 0.95rem; }
.card {
  background: linear-gradient(180deg, var(--panel), #151c28);
  border: 1px solid #2a3648; border-radius: var(--radius);
  padding: 22px; box-shadow: 0 10px 40px rgba(0,0,0,.25);
}
.card h1, .card h2 { margin-top: 0; }
.muted { color: var(--muted); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .grid2 { grid-template-columns: 1fr; } }
label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid #334155; background: #0b1220; color: var(--text);
  font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid #3d8bfd66; border-color: var(--accent); }
.btn {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 600;
  padding: 12px 18px; border-radius: 999px; color: white;
  background: linear-gradient(135deg, var(--accent), #2563eb);
  transition: transform .08s ease, filter .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.secondary { background: #334155; }
.btn.success { background: linear-gradient(135deg, #16a34a, #15803d); }
.btn.danger { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.btn.ghost { background: transparent; border: 1px solid #475569; color: var(--text); }
.btn.big { padding: 18px 28px; font-size: 1.05rem; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.auth-box { max-width: 420px; margin: 60px auto; }
.error { background: #3f1d1d; color: #fecaca; padding: 10px 12px; border-radius: 8px; font-size: .92rem; }
.ok { background: #14301f; color: #bbf7d0; padding: 10px 12px; border-radius: 8px; }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: #1e293b; color: var(--muted); font-size: .78rem;
}
.badge.green { background: #14532d; color: #bbf7d0; }
.badge.amber { background: #78350f; color: #fde68a; }
.chat {
  display: flex; flex-direction: column; gap: 10px;
  max-height: 420px; overflow-y: auto; padding: 8px 2px 16px;
}
.bubble {
  max-width: 85%; padding: 12px 14px; border-radius: 14px; line-height: 1.45;
  white-space: pre-wrap;
}
.bubble.bot { background: var(--panel2); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.user { background: #1d4ed8; align-self: flex-end; border-bottom-right-radius: 4px; }
.mic-panel {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 18px; border: 1px dashed #334155; border-radius: var(--radius); margin-top: 12px;
}
.mic-status { color: var(--muted); font-size: .9rem; min-height: 1.3em; text-align: center; }
.pulse { box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 1.4s infinite; background: linear-gradient(135deg,#16a34a,#22c55e) !important; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); }
  70% { box-shadow: 0 0 0 18px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.score {
  font-size: 2.4rem; font-weight: 800; color: var(--accent2);
}
.listy { margin: 0; padding-left: 18px; }
.listy li { margin: 6px 0; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #243044; font-size: .92rem; }
.table th { color: var(--muted); font-weight: 600; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 800px) { .price-grid { grid-template-columns: 1fr; } }
.price-card { text-align: center; }
.price-card .p { font-size: 2rem; font-weight: 800; margin: 8px 0; }
.footer-note { margin-top: 28px; color: var(--muted); font-size: .82rem; text-align: center; }

/* —— Nutzer-Feedback (Produkt) —— */
.uf-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid #2a3648; cursor: pointer;
  background: linear-gradient(135deg, #1e3a5f, #243044);
  color: var(--text); font-size: 1.25rem;
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center;
}
.uf-fab:hover { filter: brightness(1.1); border-color: var(--accent); }
.uf-fab[aria-hidden="true"] { display: none; }
.uf-panel {
  position: fixed; right: 18px; bottom: 78px; z-index: 41;
  width: min(360px, calc(100vw - 28px));
  background: linear-gradient(180deg, var(--panel), #151c28);
  border: 1px solid #2a3648; border-radius: var(--radius);
  padding: 16px; box-shadow: 0 16px 48px rgba(0,0,0,.4);
}
.uf-panel[hidden] { display: none !important; }
.uf-panel h3 { margin: 0 0 6px; font-size: 1rem; }
.uf-panel .uf-actions { display: flex; gap: 8px; margin-top: 10px; justify-content: flex-end; }
.uf-panel .uf-meta { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.uf-card-inline {
  margin-top: 18px; padding: 16px 18px;
  border: 1px dashed #334155; border-radius: 12px;
  background: rgba(15, 23, 42, 0.45);
}
.uf-card-inline h3 { margin: 0 0 6px; font-size: 1.05rem; }
.uf-card-inline textarea { min-height: 96px; resize: vertical; }
.uf-thanks { color: #bbf7d0; font-size: .95rem; }

.speak-pulse {
  width: 14px; height: 14px; border-radius: 50%;
  background: #334155; box-shadow: 0 0 0 0 rgba(61,139,253,.0);
  transition: background .2s;
}
.speak-pulse.on {
  background: var(--accent);
  animation: speakPulse 1.2s ease-out infinite;
}
@keyframes speakPulse {
  0% { box-shadow: 0 0 0 0 rgba(61,139,253,.55); }
  70% { box-shadow: 0 0 0 12px rgba(61,139,253,0); }
  100% { box-shadow: 0 0 0 0 rgba(61,139,253,0); }
}
.level-meter {
  flex: 1; max-width: 180px; height: 8px; border-radius: 999px;
  background: #0b1220; border: 1px solid #334155; overflow: hidden;
}
.level-bar {
  height: 100%; width: 0%; background: linear-gradient(90deg, #22c55e, #3d8bfd);
  transition: width .05s linear;
}

/* —— Redesign: Inter + denser dark UI —— */
:root {
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --accent: #4f8cff;
  --accent2: #34d399;
  --radius: 16px;
}
body { font-feature-settings: "ss01" on, "cv11" on; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .72rem;
  color: var(--accent); font-weight: 600; margin: 0 0 8px;
}
.intro-hero h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 10px; }
.lead { font-size: 1.05rem; color: var(--muted); line-height: 1.55; margin: 0; max-width: 52ch; }
.steps { margin: 0; padding-left: 1.2rem; color: var(--text); }
.steps li { margin: 10px 0; line-height: 1.45; color: var(--muted); }
.steps li strong { color: var(--text); }

.mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0 6px; }
@media (max-width: 720px) { .mode-cards { grid-template-columns: 1fr; } }
.mode-card {
  border: 1px solid #2a3648; border-radius: 14px; padding: 14px 16px;
  background: #0b1220; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.mode-card:hover { border-color: #3d8bfd88; }
.mode-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px #3d8bfd55, 0 8px 24px rgba(61,139,253,.12);
}
.mode-card h3 { margin: 0 0 6px; font-size: 1rem; }
.mode-card p { margin: 0; font-size: .88rem; color: var(--muted); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0 20px; }
@media (max-width: 800px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
.stat {
  background: #0b1220; border: 1px solid #2a3648; border-radius: 12px; padding: 14px 16px;
}
.stat .label { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.stat .value { font-size: 1.6rem; font-weight: 800; margin-top: 4px; color: var(--accent2); }
.stat .value.blue { color: var(--accent); }

.spark {
  width: 100%; height: 64px; margin-top: 8px;
  background: #0b1220; border: 1px solid #2a3648; border-radius: 12px;
}
.level-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; background: #14532d; color: #bbf7d0; font-size: .85rem; font-weight: 600;
}
.interim {
  font-size: .85rem; color: var(--muted); font-style: italic; min-height: 1.2em; text-align: center;
}
.sim-banner {
  display: none; margin-bottom: 12px; padding: 10px 12px; border-radius: 10px;
  background: #1e293b; color: var(--muted); font-size: .9rem; border: 1px solid #334155;
}
.sim-banner.on { display: block; }


/* qa-mobile */
@media (max-width: 420px) {
  .wrap { padding: 16px 12px 48px; }
  .nav { flex-direction: column; align-items: flex-start; }
  .nav-links { gap: 10px; font-size: .88rem; }
  .btn.big { width: 100%; text-align: center; }
  .row .btn.big { width: auto; flex: 1; }
  .uf-fab { right: 12px; bottom: 12px; }
  .uf-panel { right: 12px; bottom: 70px; width: calc(100vw - 24px); }
  #endBtn { font-size: .85rem; padding: 10px 12px; }
}
