/* Modern gruppiert Diagramme und Auswertungen nach Aufgabe. Historische Themes
 * behalten ihre vier ursprünglichen Hauptpunkte und die Reiter in den Ansichten. */
html[data-appearance="modern"] .nav-legacy-only,
html[data-appearance="modern"] .nav-label-legacy,
html[data-appearance="modern"] #s_nav { display: none !important; }
html:not([data-appearance="modern"]) .nav-modern-only,
html:not([data-appearance="modern"]) .nav-label-modern { display: none !important; }

/* Auf dem Telefon sind nur drei Hauptbereiche sichtbar. Die Unterseiten werden
 * erst nach dem Antippen im vorhandenen Fanout gezeigt. */
@media (max-width: 780px) {
    html[data-appearance="modern"] #navigation {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    html[data-appearance="modern"] .mobile-subnav[data-open="heating"] {
        width: min(290px, calc(100vw - 26px));
        right: max(13px, calc((100vw - 290px) / 2));
    }
    html[data-appearance="modern"] .mobile-subnav[data-open="statistics"] {
        width: min(290px, calc(100vw - 26px));
        right: 13px;
    }
    html[data-appearance="modern"] .mobile-subnav[data-open="heating"] [data-submenu="heating"] {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    html[data-appearance="modern"] .mobile-subnav[data-open="statistics"] [data-submenu="statistics"] {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    html[data-appearance="modern"] .mobile-subnav a {
        min-width: 0;
        align-content: center;
    }
}
