/* KM Angebot — Onboarding / Learning Mode (F32)
   Geführte Tour: abgedunkelter Hintergrund mit Spotlight + Sprechblase.
   Liegt bewusst ÜBER allen Modals (.modal z-index 50, #diktat-btn 200).
   CI-Farben aus app.css (--gruen/--mint/--navy) mit Fallbacks. */

#onb-overlay {
  position: fixed; inset: 0; z-index: 300;
  touch-action: none; /* App dahinter nicht mitscrollen */
  font-family: Calibri, "Segoe UI", system-ui, sans-serif;
}

/* Spotlight: der riesige box-shadow dunkelt alles AUSSER dem Ausschnitt ab.
   Ohne Ziel (.onb-ohne-ziel) schrumpft er auf 0×0 in der Mitte → Vollabdunkelung. */
#onb-spot {
  position: fixed;
  border-radius: 14px;
  border: 3px solid var(--mint, #74A98C);
  box-shadow: 0 0 0 200vmax rgba(20, 30, 26, .62);
  transition: top .25s ease, left .25s ease, width .25s ease, height .25s ease;
  pointer-events: none;
}
#onb-spot.onb-ohne-ziel { border: none; }

/* Sprechblase */
#onb-bubble {
  position: fixed;
  width: min(92vw, 470px);
  max-height: 80vh; overflow-y: auto;
  background: var(--card, #FFFFFF); color: var(--text, #1E2A26);
  border-radius: var(--radius, 14px);
  padding: 16px 18px 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .4);
  transition: top .25s ease, left .25s ease;
}
#onb-bubble.onb-zentriert {
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  transition: none; /* Zentriert-Sprung nicht animieren */
}

#onb-x {
  position: absolute; top: 6px; right: 6px;
  background: transparent; border: none;
  font: inherit; font-size: 1.1em; color: var(--muted, #6B7B74);
  padding: 8px 12px; cursor: pointer; border-radius: 10px;
}

#onb-progress {
  font-size: .78em; color: var(--muted, #6B7B74);
  letter-spacing: .3px; margin-bottom: 2px;
}
#onb-titel {
  margin: 2px 30px 6px 0; /* rechts Platz für das ✕ */
  color: var(--gruen, #3F7560); font-size: 1.2em; line-height: 1.25;
}
#onb-text { margin: 0 0 12px; line-height: 1.45; }

/* Checkbox-Zeile — app.css stylt label als Spalte, hier bewusst als Zeile */
#onb-nichtwieder-row {
  display: flex; flex-direction: row; align-items: center; gap: 8px;
  font-size: .85em; color: var(--muted, #6B7B74);
  margin: 0 0 12px; cursor: pointer;
}
#onb-nichtwieder-row input {
  width: 22px; height: 22px; margin: 0; padding: 0; flex: none; /* Fingerziel */
}

/* Buttons — Tablet-tauglich groß */
#onb-btns { display: flex; gap: 10px; align-items: center; }
#onb-btns .onb-grow { flex: 1; }
#onb-btns button {
  font: inherit; border: none; cursor: pointer;
  border-radius: var(--radius, 14px);
  padding: 12px 20px; min-height: 48px;
  background: #E3ECE7; color: var(--text, #1E2A26);
}
#onb-weiter, #onb-fertig {
  background: var(--gruen, #3F7560); color: #fff; font-weight: 600;
}
#onb-weiter:active, #onb-fertig:active { background: var(--mint, #74A98C); }
#onb-zurueck:disabled { opacity: .4; cursor: default; }

/* eigenes hidden (nicht von app.css abhängig) */
.onb-weg { display: none !important; }
