/* NAVO – Einfache Ansicht (public/einfach.js): Startkacheln, Nächster Schritt, geführte Abläufe, leere Seiten */

/* ---------- Startseite „Was möchten Sie tun?“ ---------- */
.einf-home {
  margin: 0 0 18px;
}
.einf-h {
  margin: 0 0 12px;
  font-size: 20px;
}
.einf-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.einf-tile {
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  text-align: left;
  padding: 18px 18px;
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
  font: inherit;
  transition:
    border-color 0.12s,
    transform 0.12s;
}
.einf-tile:hover,
.einf-tile:focus-visible {
  border-color: var(--accent);
  outline: none;
}
.einf-tile:active {
  transform: scale(0.985);
}
.einf-ti {
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}
.einf-ti svg {
  width: 26px;
  height: 26px;
}
.einf-tl {
  font-size: 17px;
  font-weight: 650;
  line-height: 1.2;
}
.einf-ts {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}
.einf-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.einf-kpi {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: inherit;
  text-decoration: none;
  padding: 14px 16px;
}
.einf-kpi b {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}
.einf-kpi.bad b {
  color: var(--bad);
}
.einf-kl {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.einf-ks {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* nur das Wichtigste: Kacheln, „Erste Schritte“ und „Zu tun“ */
.dash-einfach [data-w]:not([data-w='einfach']):not([data-w='todo']):not([data-w='start']),
.dash-einfach #liqFc,
.dash-einfach > .grid.g2 {
  display: none !important;
}
.einf-allbar {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}
.einf-tip {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
  border-color: var(--accent);
}
.einf-tip .einf-ti {
  flex: none;
  width: 42px;
  height: 42px;
}
.einf-tip > div:nth-child(2) {
  flex: 1;
}

/* ---------- Menü ---------- */
.einf-more {
  width: min(720px, calc(100vw - 32px));
}
/* Gruppen nebeneinander in Spalten, eine Gruppe wird nie umbrochen */
.einf-mgroups {
  column-count: 3;
  column-gap: 12px;
}
.einf-mg {
  break-inside: avoid;
  padding-bottom: 6px;
}
.einf-mg .tn-mh {
  border-top: 0 !important;
  margin-top: 0 !important;
  padding-top: 6px !important;
}
.einf-sh {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 12px 4px;
}
.einf-mfoot {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding: 10px 8px 2px;
}
.einf-side a {
  font-weight: 550;
}

/* ---------- Suche: Funktionen ---------- */
.gs-item.gs-func > span:first-child {
  color: var(--accent);
  font-weight: 600;
}
.gs-item.gs-func svg {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
}

/* ---------- Formulare: Weitere Angaben ---------- */
details.f-more {
  margin-top: 12px;
  border-top: 1px dashed var(--line-2);
  padding-top: 8px;
}
details.f-more > summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
  padding: 4px 0;
  list-style-position: inside;
}
details.f-more[open] > summary {
  margin-bottom: 8px;
}
.einf-note {
  background: var(--info-soft);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin: 12px 0 0;
  font-size: 14px;
}
.einf-ul {
  margin: 4px 0 0;
  padding-left: 20px;
}

/* ---------- Nächster Schritt am Beleg ---------- */
.next-step {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
  border-left: 4px solid var(--info);
}
.next-step.ok {
  border-left-color: var(--ok);
}
.next-step.bad {
  border-left-color: var(--bad);
}
.next-step .ns-ic {
  color: var(--info);
  display: inline-flex;
}
.next-step.ok .ns-ic {
  color: var(--ok);
}
.next-step.bad .ns-ic {
  color: var(--bad);
}
.next-step .ns-ic svg {
  width: 26px;
  height: 26px;
}
.next-step .ns-t {
  flex: 1 1 280px;
}
.next-step .ns-t b {
  font-size: 16px;
}

/* ---------- Leere Seiten ---------- */
.einf-empty {
  text-align: center;
  padding: 36px 20px 40px;
}
.einf-empty .einf-ti {
  margin: 0 auto 10px;
}
.einf-empty h2 {
  margin: 0 0 6px;
}
.einf-empty p {
  max-width: 520px;
  margin: 0 auto 16px;
}
.einf-empty .btn {
  font-size: 16px;
  padding: 10px 18px;
}

/* ---------- Geführt: Angebot / Rechnung in 3 Schritten ---------- */
.wz {
  max-width: 920px;
}
.wz-steps {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  flex-wrap: wrap;
}
.wz-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}
.wz-steps li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--line);
  color: var(--text);
  font-size: 13px;
}
.wz-steps li span svg {
  width: 14px;
  height: 14px;
}
.wz-steps li.on {
  color: var(--text);
  border-color: var(--accent);
}
.wz-steps li.on span {
  background: var(--accent);
  color: var(--on-accent);
}
.wz-steps li.done span {
  background: var(--ok);
  color: #fff;
}
.wz-card h2 {
  margin-top: 0;
}
.wz-big {
  font-size: 17px;
  padding: 12px 14px;
  width: 100%;
}
.wz-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin: 10px 0 12px;
}
.wz-cust {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}
.wz-cust:hover,
.wz-cust:focus-visible {
  border-color: var(--accent);
  outline: none;
}
.wz-sel {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--ok);
  background: var(--ok-soft);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}
.wz-sel > div {
  flex: 1;
}
.wz-sel svg {
  width: 22px;
  height: 22px;
}
.wz-subj {
  display: block;
  margin-top: 14px;
}
.wz-subj input {
  width: 100%;
}
.wz-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 90px 100px 130px 110px 34px;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.wz-no {
  padding-top: 32px;
  color: var(--muted);
  font-weight: 600;
}
.wz-item textarea,
.wz-item input,
.wz-item select {
  width: 100%;
}
.wz-line {
  text-align: right;
  font-variant-numeric: tabular-nums;
  padding-top: 32px;
  font-weight: 600;
}
.wz-del {
  margin-top: 26px;
}
.wz-sum {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 12px;
  font-variant-numeric: tabular-nums;
}
.wz-total b {
  font-size: 18px;
}
.wz-review {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.wz-review > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wz-tab td {
  vertical-align: top;
}
.wz-foot {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 14px;
}
.wz-foot .btn.primary {
  font-size: 16px;
  padding: 10px 20px;
  margin-left: auto;
}

/* ---------- Handy / schmale Fenster ---------- */
@media (max-width: 900px) {
  .einf-tiles,
  .einf-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .einf-mgroups {
    column-count: 2;
  }
}
@media (max-width: 600px) {
  .einf-tile {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    row-gap: 8px;
    padding: 14px 12px;
    min-height: 0;
  }
  .einf-ti {
    grid-row: auto;
    width: 44px;
    height: 44px;
  }
  .einf-tl {
    font-size: 15px;
  }
  .einf-ts {
    display: none;
  }
  .einf-kpis {
    grid-template-columns: 1fr;
  }
  .wz-item {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .wz-no {
    display: none;
  }
  .wz-desc {
    grid-column: 1 / -1;
  }
  .wz-line {
    padding-top: 0;
    align-self: center;
  }
  .wz-del {
    justify-self: end;
    margin-top: 0;
  }
  .wz-foot .spacer {
    display: none;
  }
  .wz-foot .btn.primary {
    flex: 1 1 100%;
    order: -1;
  }
  .einf-tip {
    flex-wrap: wrap;
  }
}
/* App-Ansicht (appmode.js): sechs Aufgaben in zwei Reihen */
.ap-einf-h {
  font-weight: 700;
  font-size: 17px;
  margin: 4px 2px 8px;
}
.appmode .ap-act.ap-act-einf {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
/* Eingeklappter Bereich (z. B. Fahrzeug-Einsatz auf der Zeiterfassung): innere Karte ohne eigenen Rahmen */
.einf-fold > summary {
  cursor: pointer;
  font-weight: 600;
}
.einf-fold > div > .card {
  margin: 12px 0 0 !important;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}
/* Formatierungsleiste in Textfeldern (Einleitung, Schlusstext, E-Mail) erst beim Hineinklicken zeigen – weniger Knöpfe */
html.einfach .rt:not(:focus-within) .rt-bar {
  display: none;
}

/* Assistent: Vorschläge aus dem Leistungskatalog beim Tippen */
.wz-desc { position: relative; }
.wz-sug {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 30;
  margin-top: 4px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 28px rgba(16, 16, 24, 0.14);
  padding: 4px;
  display: flex;
  flex-direction: column;
}
.wz-sug button {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  color: var(--text);
  text-align: left;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
}
.wz-sug button:hover, .wz-sug button.on { background: var(--accent-soft); }
.wz-sug button b { font-weight: 600; white-space: nowrap; color: var(--muted); }
