/* FRF Brain — Ask FRF guide through the Team app (25.10.2026, modules/fuehrung.js).
   Dimmed page with a cut-out around the highlighted element, a speech bubble with the step.
   Tokens only (design-tokens.css, Web3/Team look via --w3-*): light and dark follow them.
   The four .frf-fu-sperre blocks catch clicks beside the cut-out; the ring only draws (pointer-events: none),
   so the highlighted element itself stays usable. */

.frf-fu {
  position: fixed;
  inset: 0;
  z-index: 450;
  pointer-events: none;
  font: inherit;
  color: var(--text-1);
}
.frf-fu-sperre {
  position: fixed;
  pointer-events: auto;
  background: transparent;
}
/* Without a cut-out (opening, element missing) the whole page is dimmed by the top block. */
.frf-fu-ohne-loch .frf-fu-sperre-oben { background: var(--overlay); }
.frf-fu-ring {
  position: fixed;
  border-radius: var(--radius-md);
  box-shadow: 0 0 0 2px var(--akf-akzent, var(--warning)), 0 0 0 9999px var(--overlay);
  pointer-events: none;
  transition: left .18s ease, top .18s ease, width .18s ease, height .18s ease;
}
.frf-fu-ring[hidden] { display: none; }

.frf-fu-blase {
  position: fixed;
  box-sizing: border-box;
  width: min(360px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--w3-flaeche, var(--surface-1));
  box-shadow: var(--w3-schatten, var(--shadow-lg)), inset 0 0 0 1px var(--border-2);
  color: var(--text-1);
  font-size: var(--fs-14);
  line-height: 1.45;
  pointer-events: auto;
  transition: left .18s ease, top .18s ease;
}
.frf-fu-blase:focus { outline: none; }
.frf-fu-blase:focus-visible { box-shadow: var(--focus-ring), var(--w3-schatten, var(--shadow-lg)); }
.frf-fu-kopf {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}
.frf-fu-titel {
  min-width: 0;
  color: var(--text-2);
  font-size: var(--fs-13);
  font-weight: var(--fw-semibold);
  overflow-wrap: anywhere;
}
.frf-fu-zahl {
  flex: none;
  color: var(--text-3);
  font-size: var(--fs-12);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.frf-fu-text { margin: 0 0 var(--space-3); overflow-wrap: anywhere; }
.frf-fu-tipp, .frf-fu-meldung { margin: 0 0 var(--space-3); color: var(--text-2); font-size: var(--fs-13); }
.frf-fu-meldung { color: var(--text-warning, var(--warning)); font-weight: var(--fw-medium); }

.frf-fu-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.frf-fu-knoepfe .frf-fu-beenden { margin-left: auto; }
.frf-fu-knopf {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 var(--space-3);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--w3-fuellung, var(--surface-2));
  box-shadow: var(--w3-kante-feld, inset 0 0 0 1px var(--border-2));
  color: var(--text-1);
  font: inherit;
  font-size: var(--fs-13);
  font-weight: var(--fw-medium);
  white-space: nowrap;
  cursor: pointer;
}
.frf-fu-knopf:hover:not([disabled]) { background: var(--w3-fuellung-stark, var(--surface-3)); }
.frf-fu-knopf:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.frf-fu-knopf[disabled] { opacity: .45; cursor: default; }
.frf-fu-knopf[hidden] { display: none; }
.frf-fu-haupt, .frf-fu-haupt:hover:not([disabled]) { background: var(--akf-akzent, var(--warning)); color: var(--text-inv); box-shadow: none; }
.frf-fu-leise { background: transparent; box-shadow: none; color: var(--text-2); }
.frf-fu-leise:hover:not([disabled]) { color: var(--text-1); }

/* Prefill card: values only from the question, filled only on click. */
.frf-fu-vs {
  margin: 0 0 var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--w3-fuellung, var(--surface-2));
  box-shadow: inset 0 0 0 1px var(--border-1);
}
.frf-fu-vs-titel { margin-bottom: var(--space-1); color: var(--text-2); font-size: var(--fs-12); font-weight: var(--fw-semibold); }
.frf-fu-vs-liste { margin: 0 0 var(--space-2); padding: 0; list-style: none; font-size: var(--fs-13); }
.frf-fu-vs-liste li { overflow-wrap: anywhere; }
.frf-fu-vs-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.frf-fu-vs-status { color: var(--text-2); font-size: var(--fs-12); }
.frf-fu-vs-status:empty { display: none; }

/* Mark on a field Ask FRF filled (stays until undo or own typing). */
.frf-fu-vorgeschlagen { outline: 2px dashed color-mix(in srgb, var(--warning) 70%, transparent); outline-offset: 2px; }
.frf-fu-marke {
  display: inline-flex;
  align-items: center;
  margin: var(--space-1) 0 0 var(--space-2);
  padding: 1px var(--space-2);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--warning) 14%, transparent);
  color: var(--text-warning, var(--warning));
  font-size: var(--fs-11, 11px);
  font-weight: var(--fw-medium);
  white-space: nowrap;
  vertical-align: middle;
}

.frf-fu-stupser { animation: frf-fu-stups .28s ease-in-out 2; }
@keyframes frf-fu-stups { 50% { transform: translateY(-3px); } }

@media (prefers-reduced-motion: reduce) {
  .frf-fu-ring, .frf-fu-blase { transition: none; }
  .frf-fu-stupser { animation: none; }
}
@media (max-width: 480px) {
  .frf-fu-blase { padding: var(--space-3); }
  .frf-fu-knopf { min-height: 40px; }
}

/* Printing (Userbetreuung handout, any page): the guide never goes on paper. */
@media print {
  .frf-fu { display: none !important; }
}
