/* firmeneinrichtung.css — Vollbild-Stepper „Firmeneinrichtung" (Entwurf Paket 23,
   PNG 01–22). Haengt im #dashboard (.lp-app) und erbt dessen Tokens fuer hell/dunkel
   (redesign.css: --bg, --ink, --ink-2, --ink-3, --line, --line-2, --field, --hover,
   --solid, --solid-ink). Alle Regeln unter .fe gekapselt. */
.fe {
  position: fixed;
  inset: 0;
  z-index: 1400; /* ueber dem klebenden Topstreifen (1300) */
  display: flex;
  flex-direction: column;
  background: var(--bg, #fff);
  color: var(--ink, #0e0e14);
  font-family: var(--font, "Plus Jakarta Sans", system-ui, sans-serif);
}
.fe[hidden], .fe [hidden] { display: none !important; }
.fe-h:focus { outline: none; }
.fe-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  flex: 0 0 auto;
}
.fe-logo { height: 26px; width: auto; }
.fe-logo-dunkel { display: none; }
.lp-app.theme-dark .fe-logo-hell { display: none; }
.lp-app.theme-dark .fe-logo-dunkel { display: inline; }
.fe-tools { display: flex; gap: 8px; align-items: center; }
.fe-ic {
  width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent;
  color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.fe-ic:hover { background: var(--hover, rgba(14, 14, 20, .05)); }
.fe-help {
  width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--bg);
  font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.fe-scroll { flex: 1 1 auto; overflow-y: auto; padding: 4px 16px 16px; }
.fe-col { max-width: 560px; margin: 0 auto; }
.fe-back {
  width: 32px; height: 32px; margin: 0 0 8px -8px; border: 0; background: transparent; color: var(--ink);
  border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.fe-back:hover { background: var(--hover); }
.fe-back[disabled] { visibility: hidden; }
.fe-h { font-size: 28px; line-height: 1.1; letter-spacing: -.025em; font-weight: 800; margin: 0 0 6px; }
.fe-sub { font-size: 14px; line-height: 1.45; color: var(--ink-2, #5b5b67); margin: 0 0 18px; max-width: 480px; }
.fe-list { border: 1px solid var(--line-2, rgba(14, 14, 20, .16)); border-radius: 14px; overflow: hidden; }
.fe-li {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 0 16px; min-height: 44px;
  border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 15px; font-weight: 600;
  text-align: left; cursor: pointer; position: relative;
}
.fe-li + .fe-li::before {
  content: ""; position: absolute; top: 0; left: 20px; right: 56px; border-top: 1px solid var(--line);
}
/* Lange Listen (ab 7 Einträgen: Rechtsform, Branche) zweispaltig — sonst scrollt der
   Schritt auf Laptop-Höhe (Henrik 22.10.2026: alles ohne Scrollen sichtbar). */
@media (min-width: 641px) {
  .fe-list:has(> .fe-li:nth-child(7)) { display: grid; grid-template-columns: 1fr 1fr; }
  .fe-list:has(> .fe-li:nth-child(7)) > .fe-li:nth-child(2)::before { display: none; }
  .fe-list:has(> .fe-li:nth-child(7)) > .fe-li::before { right: 16px; }
  .fe-list:has(> .fe-li:nth-child(7)) > .fe-li:nth-child(even) { border-left: 1px solid var(--line); }
}
.fe-li:hover, .fe-li:focus-visible { background: var(--hover); outline: none; }
.fe-li span { flex: 1; }
.fe-li.sel span { text-decoration: underline; text-underline-offset: 4px; }
.fe-li-icon { color: var(--ink-2); display: inline-flex; }
.fe-fields { display: flex; flex-direction: column; gap: 14px; }
.fe-f label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.fe-opt { color: var(--ink-3, #9a9aa6); font-weight: 500; }
.fe-help-t { font-size: 12px; color: var(--ink-3); margin-top: 4px; line-height: 1.4; }
.fe-err { font-size: 13px; color: #d4380d; margin-top: 8px; }
.fe-in {
  width: 100%; box-sizing: border-box; height: 44px; border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--field, #fff); color: var(--ink); font: inherit; font-size: 15px; padding: 0 14px;
}
.fe-in:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.fe-in[readonly] { background: var(--hover-2, #f5f5f7); }
.fe-mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.fe-row2 { display: grid; grid-template-columns: 140px 1fr; gap: 16px; }
.fe-actions { display: flex; justify-content: flex-end; align-items: center; gap: 20px; margin-top: 18px; flex-wrap: wrap; }
.fe-btn {
  min-width: 180px; height: 46px; border: 0; border-radius: 10px; padding: 0 24px; cursor: pointer;
  background: var(--solid, #0e0e14); color: var(--solid-ink, #fff); font: inherit; font-size: 15px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.lp-app.theme-light .fe-btn { background: #0e0e14; color: #fff; }
.fe-btn:disabled { opacity: .35; cursor: not-allowed; }
.fe-btn-ghost { background: transparent !important; color: var(--ink) !important; border: 1px solid var(--line-2); }
.fe-link {
  border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 15px; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px 0;
}
.fe-card { border: 1px solid var(--line-2); border-radius: 14px; padding: 16px; margin-bottom: 8px; }
.fe-card + .fe-card { margin-top: 12px; }
.fe-card-h { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; margin-bottom: 10px; }
.fe-card-h:last-child { margin-bottom: 0; }
.fe-card-click { cursor: pointer; text-align: left; width: 100%; background: transparent; color: var(--ink); font: inherit; }
.fe-card-click:hover { background: var(--hover); }
.fe-ok {
  width: 24px; height: 24px; border-radius: 50%; background: #12a150; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.fe-kv { display: grid; grid-template-columns: 170px 1fr; gap: 10px 16px; margin: 0; font-size: 15px; }
.fe-kv dt { color: var(--ink-2); }
.fe-kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.fe-note {
  display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 12px;
  background: var(--hover); font-size: 14px; line-height: 1.5; margin-bottom: 8px;
}
.fe-note.bad { background: rgba(212, 56, 13, .08); color: var(--ink); }
.fe-note a, .fe-note button.fe-link { font-size: 14px; padding: 0; }
.fe-check { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; font-size: 15px; line-height: 1.5; cursor: pointer; }
.fe-check input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--ink); }
.fe-spin {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  animation: fe-spin .7s linear infinite;
}
@keyframes fe-spin { to { transform: rotate(360deg); } }
.fe-done-ic {
  width: 56px; height: 56px; border-radius: 50%; background: #12a150; color: #fff; margin-bottom: 16px;
  display: inline-flex; align-items: center; justify-content: center;
}
.fe-dots { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 8px 0 14px; flex: 0 0 auto; }
.fe-dot { width: 8px; height: 8px; border-radius: 4px; background: var(--line-2); border: 0; padding: 0; cursor: pointer; }
.fe-dot.done { background: var(--ink); }
.fe-dot.cur { width: 26px; background: var(--ink); }
.fe-dot:disabled { cursor: default; }
.fe-scrim {
  position: fixed; inset: 0; background: rgba(14, 14, 20, .38); display: flex; align-items: center;
  justify-content: center; padding: 16px; z-index: 1;
}
.fe-dlg { background: var(--card, #fff); color: var(--ink); border-radius: 16px; padding: 28px; max-width: 440px; width: 100%; box-shadow: var(--shadow-lg); }
.fe-dlg-t { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 10px; line-height: 1.2; }
.fe-dlg-s { font-size: 15px; color: var(--ink-2); line-height: 1.5; margin: 0 0 22px; }
.fe-dlg-a { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fe-dlg-a .fe-btn { min-width: 0; height: 50px; font-size: 15px; }
.fe-tel { margin-top: 4px; }

@media (max-width: 640px) {
  .fe-top { padding: 10px 16px; }
  .fe-scroll { padding: 4px 16px 16px; }
  .fe-h { font-size: 24px; }
  .fe-sub { font-size: 15px; }
  .fe-row2 { grid-template-columns: 1fr; }
  .fe-kv { grid-template-columns: 1fr; gap: 2px; }
  .fe-kv dd { margin-bottom: 10px; }
  .fe-actions { flex-direction: column-reverse; align-items: stretch; }
  .fe-btn { width: 100%; min-width: 0; }
  .fe-dots { gap: 6px; padding-bottom: 12px; }
}
