/* Sorvida – Handy-Ansicht übersichtlicher (v100, handy.js). Zuletzt geladen. Am PC (ab 960 px) ändert sich nichts. */

/* ---------- Menü (unten rechts) wie die Seitenleiste am PC ---------- */
#sheet-root .sheet.menue-blatt{max-height:94vh;padding-bottom:max(24px,env(safe-area-inset-bottom))}
.menue-blatt .more-search{margin-bottom:12px}
.mn-achtung{margin:4px 0 14px;padding:12px;border-radius:16px;background:#fdf1ef;border:1px solid #f1cfc9}
.mn-achtung > b{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--bad);margin-bottom:8px}
.mn-achtung > b svg.i{width:18px;height:18px}
.mn-achtung-l{display:flex;flex-wrap:wrap;gap:8px}
.mn-achtung .mchip{min-height:40px}
.mn-grp{border:1px solid var(--line);border-radius:16px;background:var(--card);margin-bottom:10px;overflow:hidden}
.mn-grp-knopf{display:grid;grid-template-columns:1fr auto;grid-template-areas:"n p" "s p";align-items:center;column-gap:10px;width:100%;min-height:58px;padding:10px 14px;border:0;background:none;font:inherit;color:var(--ink);text-align:left;cursor:pointer}
.mn-grp-knopf > span{grid-area:n;font-size:16px;font-weight:600}
.mn-grp-knopf > small{grid-area:s;font-size:12.5px;color:var(--ink-soft);display:flex;align-items:center;gap:5px}
.mn-grp-knopf .pfeil{grid-area:p;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
.mn-grp:not(.auf):not(.suche) .mn-grp-knopf .pfeil{transform:rotate(-90deg)}
.mn-grp:not(.auf):not(.suche) .mn-grp-inhalt{display:none}
.mn-grp-inhalt{border-top:1px solid var(--line)}
.mn-eintrag + .mn-eintrag{border-top:1px solid var(--line)}
.mn-zeile{display:flex;align-items:center;gap:2px;padding-right:6px}
.mn-zeile.cur{background:var(--paper-2)}
.mn-link{flex:1;min-width:0;display:flex;align-items:center;gap:12px;min-height:58px;padding:8px 6px 8px 14px;color:var(--ink);text-decoration:none}
.mn-link > svg.i{width:22px;height:22px;flex:none;color:var(--ink-soft)}
.mn-tx{display:grid;gap:1px;min-width:0}
.mn-tx b{font-size:15.5px;font-weight:600}
.mn-tx small{font-size:12.5px;color:var(--ink-soft);display:flex;align-items:center;gap:5px}
.mn-zeile.mn-alarm .mn-tx small{color:var(--bad);font-weight:600}
.mn-zeile.cur .mn-tx b::after{content:" · hier";font-weight:500;color:var(--ink-soft);font-size:12.5px}
.mn-unter-knopf{flex:none;width:48px;height:48px;display:grid;place-items:center;border:0;border-radius:50%;background:none;color:var(--ink-soft);cursor:pointer}
.mn-unter-knopf .pfeil{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
.mn-unter-knopf[aria-expanded="false"] .pfeil{transform:rotate(-90deg)}
.mn-zeile .mstar{position:static;transform:none;flex:none;width:48px;height:48px}
.mn-unter{display:none;padding:0 6px 8px 48px}
.mn-unter.auf{display:block}
.mn-unter-zeile{display:flex;align-items:center;border-left:2px solid var(--line)}
.mn-unter-zeile > a{flex:1;min-height:48px;display:flex;align-items:center;padding:6px 12px;color:var(--ink);text-decoration:none;font-size:15px}
.mn-leer{text-align:center;padding:16px 0}
@media (prefers-reduced-motion:reduce){.mn-grp-knopf .pfeil,.mn-unter-knopf .pfeil{transition:none}}

@media (min-width:960px){.hd-mehr{display:none}}
/* v102: lange Namen (Favorit unten) kürzen statt umbrechen */
.bottom a > span,.bottom button > span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* ---------- Handy und kleines Tablet ---------- */
@media (max-width:959px){
  /* v103: Menü offen → untere Leiste bleibt sichtbar und bedienbar, „Menü“ markiert */
  body.mn-offen .bottom{z-index:52}
  body.mn-offen #sheet-root .sheet.menue-blatt{bottom:var(--mn-unten,64px);max-height:calc(94vh - var(--mn-unten,64px));padding-bottom:18px;box-shadow:0 -6px 24px rgba(31,61,20,.18)}
  body.mn-offen .bottom [data-a="more"]{color:#fff}body.mn-offen .bottom [data-a="more"]::after{content:"";position:absolute;top:0;width:22px;height:3px;border-radius:3px;background:var(--accent)}
  body.mn-offen .bottom .on:not([data-a="more"]){color:#cfe0b8}body.mn-offen .bottom .on:not([data-a="more"])::after{display:none}
  /* Filter (Wohnbereich, Zeitraum) in einer Zeile zum Wischen statt drei Zeilen */
  .slicers{display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .slicers::-webkit-scrollbar{display:none}
  .slicers .seg{flex:none;flex-wrap:nowrap}
  .slicers .tab{white-space:nowrap}
  /* Favoriten-Tipp nur im Menü, nicht als eigene Karte auf jeder Startseite */
  .fav-leiste:not(:has(.fav-chip:not(.fav-tipp))){display:none}
  /* Auswertungs-Karten im Dashboard zum Aufklappen */
  .klapp > h3,.klapp > .vh h3{margin:0}
  .klapp-knopf{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:48px;padding:0;border:0;background:none;font:inherit;color:inherit;text-align:left;cursor:pointer}
  .klapp-knopf .pfeil{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
  .klapp.zu .klapp-knopf .pfeil{transform:rotate(-90deg)}
  .klapp.zu > h3 ~ *,.klapp.zu > .vh ~ *{display:none}
  .klapp.zu .vh .vt{display:none}
  .klapp.zu .vh{margin-bottom:0}
  .klapp.zu{padding-top:8px;padding-bottom:8px}
  .klapp .vh{align-items:flex-start}
  .klapp .vh > div{flex:1;min-width:0}
  .klapp.zu .vsub{display:none}
  /* „Braucht Aufmerksamkeit“ steht am Handy vor den Auswertungen (am PC unten rechts) */
  .dgrid > #att{order:-1}
  /* mobile.css blendet am Handy den Drucken-Knopf im Kopf aus; Knöpfe in Karten im Kopf (z. B. „Vertretung festlegen“) bleiben sichtbar */
  .dash-head .card .btn{display:inline-flex}
  .hd-weg{display:none!important}
  /* Kopfzeile: „‹ Start“ statt Logo auf allen anderen Seiten */
  .kopf-zurueck{display:inline-flex;align-items:center;gap:6px;min-height:48px;padding:4px 12px 4px 6px;margin-left:-6px;border-radius:14px;color:var(--ink);text-decoration:none}
  .kopf-zurueck:active{background:var(--paper-2)}
  .kopf-zurueck svg.i{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;flex:none}
  .top .house-wrap{min-width:0;flex:1 1 auto}
  .kopf-zurueck{max-width:100%}
  .kopf-zurueck span{display:grid;line-height:1.15;min-width:0}
  .kopf-zurueck b,.kopf-zurueck small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .kopf-zurueck b{font-size:17px;font-weight:600}
  .kopf-zurueck small{font-size:11.5px;color:var(--ink-soft)}
  .hd-mehr{width:100%;margin:10px 0 4px}
}

/* Drucken zeigt immer alle Einträge, auch die am Handy eingeklappten */
@media print{.hd-weg{display:revert!important}.hd-mehr{display:none!important}.klapp.zu > h3 ~ *,.klapp.zu > .vh ~ *{display:revert!important}}
