/* NAVO – Funktionen ein-/ausblenden, „Mehr …“ in Menüs und Reiterleisten, Startseite schlicht (funktionen.js, heute.js) */

/* ---------- „Mehr …“ im Aufklappmenü oben und in der Seitenleiste ---------- */
.fk-more > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 10px 6px 6px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 550;
  cursor: pointer;
  list-style: none;
  min-height: 40px;
}
.fk-more > summary::-webkit-details-marker {
  display: none;
}
.fk-more > summary svg {
  width: 18px;
  height: 18px;
  margin: 0 7px;
}
.fk-more > summary:hover {
  background: var(--panel-2);
  color: var(--text);
}
.fk-more.side > summary {
  padding: 8px 12px;
  min-height: 0;
}
.fk-n {
  margin-left: auto;
  min-width: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  font-size: 12px;
  text-align: center;
  color: var(--muted);
}
.fk-more[open] > summary .fk-n {
  visibility: hidden;
}
.tn-menu.cols2:has(.fk-more) {
  min-width: 290px;
}
.tn-menu.cols2 .tn-mi:has(> .fk-more) {
  display: block;
}
.fk-fav .tn-ic,
.fk-fav svg {
  color: var(--accent);
}

/* ---------- Reiterleiste: „Mehr …“ als Aufklappliste ---------- */
.subnav .sn-more {
  position: relative;
}
.subnav .sn-more > summary {
  padding: 9px 14px;
  color: var(--muted);
  font-weight: 550;
  font-size: 14px;
  cursor: pointer;
  list-style: none;
  border-bottom: 2px solid transparent;
}
.subnav .sn-more > summary::-webkit-details-marker {
  display: none;
}
.subnav .sn-more > summary:hover,
.subnav .sn-more[open] > summary {
  color: var(--text);
}
.subnav .sn-more:has(a.active) > summary {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.subnav .sn-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 40;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  padding: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(16, 16, 24, 0.14);
}
.subnav .sn-menu a {
  border-bottom: 0;
  border-radius: 8px;
  padding: 10px 12px;
  white-space: nowrap;
}
.subnav .sn-menu a:hover,
.subnav .sn-menu a.active {
  background: var(--panel-2);
}
@media (max-width: 720px) {
  .subnav .sn-menu {
    position: fixed;
    left: 16px;
    right: 16px;
    top: auto;
    margin-top: 4px;
  }
}

/* ---------- Einstellungen → Funktionen ---------- */
.fk-page {
  display: grid;
  gap: 14px;
  max-width: 920px;
}
.fk-grp + .fk-grp {
  margin-top: 18px;
}
.fk-grp h3 {
  margin: 0 0 8px;
  font-size: 15px;
}
.fk-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.fk-sw {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  cursor: pointer;
}
.fk-sw.on {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.fk-sw.grund {
  cursor: default;
  background: var(--panel-2);
  border-color: var(--line);
}
.fk-sw input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.fk-knob {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 14px;
  background: var(--line-2);
  margin-top: 2px;
}
.fk-knob::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.fk-sw input:checked + .fk-knob {
  background: var(--accent);
}
.fk-sw input:checked + .fk-knob::after {
  left: 23px;
}
.fk-sw input:focus-visible + .fk-knob {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.fk-sw input:disabled + .fk-knob {
  opacity: 0.55;
}
.fk-t {
  display: grid;
  gap: 2px;
}
.fk-meta {
  font-size: 12px;
  color: var(--faint);
}
.fk-views,
.fk-tpl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.fk-tpl {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.fk-view,
.fk-tplb {
  display: grid;
  gap: 4px;
  justify-items: start;
  text-align: left;
  padding: 14px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.fk-view svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}
.fk-view.on {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.fk-view:hover,
.fk-tplb:hover {
  border-color: var(--accent);
}
.fk-favs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}
.fk-sugg {
  border-left: 3px solid var(--warn);
}
.fk-profi-link {
  margin-top: 10px;
  background: none;
  border: 0;
  color: var(--accent);
  font: inherit;
  font-size: 13px;
  text-align: left;
  padding: 6px 10px;
  cursor: pointer;
}
@media (max-width: 720px) {
  .fk-list,
  .fk-views,
  .fk-favs {
    grid-template-columns: 1fr;
  }
}

/* ---------- Hinweis „Was nutzen Sie?“ ---------- */
.fk-tip {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
  border-left: 3px solid var(--accent);
}
.fk-tip > div:nth-child(2) {
  flex: 1 1 260px;
}
.fk-tip-ic svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

/* ---------- Startseite schlicht ---------- */
.hz-heute {
  margin-bottom: 16px;
}
.hz-heute .hz-h {
  font-size: 15px;
  font-weight: 650;
  margin-bottom: 6px;
}
.hz-rest > summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  padding: 6px 0 2px;
}
.hz-quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}
.hz-q {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.hz-q:hover,
.hz-q:focus-visible {
  border-color: var(--accent);
}
.hz-qi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  flex: none;
}
.hz-qi svg {
  width: 20px;
  height: 20px;
}
/* Schnellaktionen ersetzen die Knöpfe im Kopf, „Heute zu tun“ die Freigabe-Knöpfe */
.hz-on:has(.hz-quick) .page-head > [data-new],
.hz-on:has(.hz-heute) .page-head > a.btn[href^='#/freigabe'] {
  display: none;
}
.dash-schlicht [data-w]:not([data-w='todo']):not([data-w='start']):not([data-w='kpi']):not([data-w='schnell']),
.dash-schlicht #liqFc,
.dash-schlicht > .grid.g2 {
  display: none !important;
}
.hz-allbar {
  display: flex;
  justify-content: center;
  margin: 18px 0 4px;
}
.fk-install {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(16, 16, 24, 0.18);
}
.fk-install > span {
  flex: 1 1 180px;
}

/* ---------- Handy: „+“-Blatt mit den häufigsten Aktionen, Rest aufklappbar ---------- */
.ap-sh-more > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.ap-sh-more > summary::-webkit-details-marker {
  display: none;
}
.ap-sh-more > summary::after {
  content: '▾';
  margin-left: auto;
  color: var(--muted);
}
.ap-sh-more[open] > summary::after {
  content: '▴';
}
.ap-sh-more > summary .fk-n {
  margin-left: 4px;
}
.einf-weitere {
  margin-top: 12px;
}
.einf-weitere > summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
  padding: 10px 2px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
/* Tippflächen am Handy mindestens 44 px (Apple/Google-Empfehlung) */
.ap-hbtn {
  width: 44px;
  height: 44px;
}
.ap-gh-a {
  min-height: 44px;
  min-width: 44px;
  margin: -10px 0;
  padding: 0 4px;
}

/* Favoriten oben im Menü „Start“: eigene Überschrift und Trennlinie zu den Einträgen des Bereichs */
.fk-fh {
  padding: 6px 10px 2px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.fk-fsep {
  height: 1px;
  margin: 6px 6px;
  background: var(--line);
}
.tn-menu.cols2 .fk-fh,
.tn-menu.cols2 .fk-fsep {
  grid-column: 1 / -1;
}
