/* =========================================================
   M365 Tool Selector — game-spezifische Optik
   (baut auf ../shared/base.css = worksmart365-Tokens)
   ========================================================= */

.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 680px; margin: 0 0 1.8rem; }

/* ---- Start ---- */
.howto__list { margin: 0.4rem 0 1.2rem; padding-left: 1.2rem; color: var(--ink-soft); }
.howto__list li { margin-bottom: 0.5rem; }
.howto__levels { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.start-meta { color: var(--muted); font-size: 0.9rem; margin-top: 0.9rem; }

/* ---- Round head ---- */
.round-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.8rem; }
.round-head__right { display: flex; align-items: center; gap: 0.6rem; }
.round-counter { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.score-pill { background: var(--deep-blue); color: #fff; border-radius: var(--radius-pill); padding: 4px 13px; font-size: 0.82rem; font-weight: 700; }

/* ---- Scenario card ---- */
.scenario { border-left: 4px solid var(--accent); }
.scenario__cat { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 0.4rem; }
.scenario__title { margin: 0 0 0.6rem; font-size: 1.35rem; }
.scenario__text { font-size: 1.06rem; color: var(--ink); margin: 0; line-height: 1.6; }

/* ---- Palette ---- */
.palette-head { display: flex; align-items: baseline; justify-content: space-between; margin: 1.6rem 0 0.7rem; }
.palette-hint { font-size: 0.82rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.sel-count { font-size: 0.85rem; color: var(--accent-dk); font-weight: 700; }

.palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-rows: 1fr; gap: 0.6rem; align-items: stretch; }

.tool {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;   /* Inhalt oben-links verankern (nicht mittig) */
  padding: 0.7rem 0.9rem 0.7rem 1.05rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.05s ease, background 0.12s ease;
  text-align: left;
  font-family: inherit;
  position: relative;
  min-width: 0;
}
.tool:hover { border-color: var(--ink); box-shadow: var(--shadow-soft); }
.tool:active { transform: scale(0.985); }
/* Echte Tool-Farbe als schmaler linker Streifen (statt Buchstaben-Icon) */
.tool__bar { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; border-radius: var(--radius) 0 0 var(--radius); }
.tool__body { min-width: 0; }
.tool__name { font-weight: 700; font-size: 0.9rem; color: var(--ink); line-height: 1.2; }
.tool__blurb { font-size: 0.74rem; color: var(--muted); line-height: 1.3; margin-top: 2px; display: block; }
.tool__badge { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; display: none; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 800; color: #fff; box-shadow: var(--shadow-soft); }

.tool.selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-ring); }

/* Locked / revealed states after submit */
.palette.locked .tool { cursor: default; }
.palette.locked .tool:hover { box-shadow: none; }
.palette.locked .tool:not(.is-correct):not(.is-ok):not(.is-wrong) { opacity: 0.5; }

.tool.is-correct { border-color: var(--success); background: var(--success-soft); box-shadow: none; }
.tool.is-correct .tool__badge { display: flex; background: var(--success); }
.tool.is-correct .tool__badge::before { content: "✓"; }

.tool.is-ok { border-color: var(--deep-blue); background: var(--info-soft); box-shadow: none; }
.tool.is-ok .tool__badge { display: flex; background: var(--deep-blue); }
.tool.is-ok .tool__badge::before { content: "✓"; }

.tool.is-wrong { border-color: var(--error); background: var(--error-soft); box-shadow: none; }
.tool.is-wrong .tool__badge { display: flex; background: var(--error); }
.tool.is-wrong .tool__badge::before { content: "✕"; }

.tool.is-missed { border-style: dashed; border-color: var(--success); }
.tool.is-missed .tool__badge { display: flex; background: #fff; color: var(--success); border: 1.5px solid var(--success); }
.tool.is-missed .tool__badge::before { content: "+"; }

/* "Hot" marker for Copilot */
.tool__hot { position: absolute; bottom: 4px; right: 6px; font-size: 0.6rem; }

/* ---- Action bar ---- */
.action-bar { margin-top: 1.6rem; display: flex; gap: 0.7rem; }
.action-bar--center { justify-content: center; }

/* ---- Feedback ---- */
.feedback { margin-top: 1.6rem; border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden; animation: fb-in 0.22s ease; }
@keyframes fb-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.feedback__head { padding: 1rem 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #fff; }
.feedback__head--success { background: var(--success); }
.feedback__head--warn { background: var(--warn); }
.feedback__head--error { background: var(--error); }
.feedback__rating { font-weight: 800; font-size: 1.1rem; }
.feedback__pts { font-weight: 700; font-size: 0.95rem; background: rgba(255,255,255,0.22); padding: 3px 12px; border-radius: var(--radius-pill); }
.feedback__body { padding: 1.3rem 1.4rem; background: #fff; }
.feedback__body h4 { margin: 1.1rem 0 0.4rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.feedback__body h4:first-child { margin-top: 0; }
.feedback__why { color: var(--ink); margin: 0 0 0.3rem; }

.notelist { list-style: none; padding: 0; margin: 0.3rem 0 0; }
.notelist li { display: flex; gap: 0.6rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.notelist li:last-child { border-bottom: 0; }
.note__chip { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; font-weight: 700; font-size: 0.82rem; color: var(--ink); }
.note__dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.note__txt { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.5; }
.note__txt b { color: var(--ink); }

/* Verlinkte Tool-Namen (öffnen die Web-App in neuem Tab) */
.tool-link { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--gray-400); }
.tool-link:hover { color: var(--accent-dk); border-bottom-color: var(--accent); text-decoration: none; }
.tool-link .ext { font-size: 0.7em; margin-left: 2px; color: var(--accent-dk); }
.fb-hint { font-size: 0.78rem; color: var(--muted); font-style: italic; margin: 0.1rem 0 0; }

.miss-line { font-size: 0.9rem; margin: 0.2rem 0; color: var(--ink-soft); }
.miss-line .tag { font-weight: 700; }
.miss-line .tag--miss { color: var(--success); }
.miss-line .tag--extra { color: var(--error); }

/* ---- End screen ---- */
.result { text-align: center; }
.result__score { font-weight: 800; font-size: 3.4rem; color: var(--accent); line-height: 1; letter-spacing: -0.03em; }
.result__max { font-size: 1.4rem; color: var(--muted); font-weight: 700; }
.result__rating { font-weight: 800; font-size: 1.3rem; margin: 0.4rem 0 0; }
.result__sub { color: var(--ink-soft); margin: 0.8rem 0 0; }

/* .recap* liegt jetzt zentral in ../shared/base.css */

.cta { border: 1px solid var(--line); background: var(--gray-50); }
.cta h3 { margin-top: 0; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1rem; }

@media (max-width: 640px) {
  .palette { grid-template-columns: 1fr 1fr; }
  .tool__blurb { display: none; }
  .scenario__text { font-size: 1rem; }
  .action-bar .btn { flex: 1; }
}
