/* Info: © by Karl Dattinger - DattiSoft 2026, Projekt: MF Dokument ID: MF-DOC-2026-002236 erstellt 16.11.2026 zuletzt bearbeitet 16.11.2026 13:18 */
body.mf6 .mf-nav-current {
  margin: 0 .55rem .6rem;
  padding: .45rem .6rem;
  min-width: 0;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: .65rem;
}
body.mf6 .mf-nav-current p {
  margin: 0;
  color: #b8c9db;
  font-size: .68rem;
}
body.mf6 .mf-nav-current a {
  padding: .3rem 0;
  min-height: 44px;
  line-height: 1.3;
  font-size: .8rem;
  overflow-wrap: anywhere;
}
body.mf6 .mf-nav-tool-group + .mf-nav-tool-group { margin-top: .75rem; }
body.mf6 .mf-nav-tool-group h2 {
  margin: .2rem 0 .3rem;
  color: #b8c9db;
  font-size: .7rem;
  line-height: 1.4;
  font-weight: 600;
}
body.mf6 .mf-simple-nav-more a { min-height: 44px; overflow-wrap: anywhere; }
body.mf6 .mf-simple-nav > a { line-height: 1.3; }
body.mf6 .mf-simple-nav > a span { min-width: 0; }
body.mf6 .mf-knowledge-overview { padding: 1rem; }
body.mf6 .mf-knowledge-overview > h1 { margin: 0 0 .5rem; font-size: clamp(1.5rem,3vw,2rem); }
body.mf6 .mf-knowledge-shortcuts {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,13rem),1fr));
  gap: .65rem;
}
body.mf6 .mf-knowledge-shortcuts a {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
  min-height: 56px;
  padding: .85rem;
  border: 1px solid var(--mf6-line);
  border-radius: .65rem;
  background: var(--mf6-surface);
  color: var(--mf6-text);
  text-decoration: none;
  overflow-wrap: anywhere;
}
body.mf6 .mf-knowledge-shortcuts a:hover { border-color: var(--mf6-info); }
body.mf6 .mf-knowledge-shortcuts a:focus-visible { outline: 3px solid var(--mf6-info); outline-offset: 2px; }
body.mf6 .mf-knowledge-shortcuts .ui-icon { flex: none; }
body.mf6.mf-sidebar-collapsed :is(.mf-nav-current,.mf-nav-tool-group h2) { display: none; }
/* Keep the same named menu on a tablet. The editor's older compact rules
   otherwise turn it into an unexplained column of icons. */
@media (min-width: 768px) and (max-width: 1180px) {
  body.mf6.mf-route-editor:not(.mf-sidebar-collapsed) { --mf6-sidebar-width: 13rem !important; }
  body.mf6.mf-route-editor:not(.mf-sidebar-collapsed) :is(.mf6-nav span,.mf6-nav-label,.mf6-sidebar-footer span) { display: block !important; }
  body.mf6.mf-route-editor:not(.mf-sidebar-collapsed) .mf6-brand-copy { display: flex !important; }
  body.mf6.mf-route-editor:not(.mf-sidebar-collapsed) .mf6-brand { grid-template-columns: auto minmax(0,1fr) !important; }
  body.mf6.mf-route-editor:not(.mf-sidebar-collapsed) :is(.mf6-nav a,.mf6-sidebar-footer a,.mf6-sidebar-footer .link-button) { justify-content: flex-start; }
}
body.mf6 .mf-nav-submenu { margin: .25rem .55rem; padding: 0; border: 0; min-width: 0; }
body.mf6 .mf-nav-submenu > summary {
  min-height: 44px;
  gap: .55rem;
  padding: .4rem .55rem;
  line-height: 1.3;
}
body.mf6 .mf-nav-submenu > summary span { min-width: 0; overflow-wrap: anywhere; }
body.mf6 .mf-nav-submenu > summary .ui-icon { flex: none; }
body.mf6 .mf-nav-submenu > div { margin: .15rem 0 .35rem .65rem; }
body.mf6 .mf-nav-submenu a { min-height: 44px; }
body.mf6.mf-sidebar-collapsed .mf-simple-nav-more > div { display: none; }
body.mf6.mf-sidebar-collapsed .mf-simple-nav-more > summary { justify-content: center; padding-inline: 0; }
body.mf6.mf-sidebar-collapsed .mf-simple-nav-more > summary::after { display: none; }
@media (max-width: 767px) {
  body.mf6 .mf6-sidebar:not(.is-compact-open) {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: .45rem;
  }
  body.mf6 .mf6-sidebar:not(.is-compact-open) .mf6-brand-panel {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    padding-inline: 0;
    gap: .3rem;
  }
  body.mf6 .mf6-sidebar:not(.is-compact-open) .mf6-brand {
    grid-area: 1 / 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    width: 100%;
    min-width: 0;
    margin-inline: 0;
    padding-inline: 0;
  }
  body.mf6 .mf6-sidebar:not(.is-compact-open) .mf6-brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
  }
  body.mf6 .mf6-sidebar:not(.is-compact-open) .mf6-logo {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
  }
  body.mf6 .mf6-sidebar .mf6-collapse {
    display: inline-flex !important;
    position: static;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-height: 44px;
    max-width: 100%;
    margin: 0;
    transform: none;
  }
  body.mf6 .mf6-sidebar:not(.is-compact-open) .mf6-collapse { grid-area: 2 / 1; }
  body.mf6 .mf6-sidebar .mf6-collapse[aria-expanded="false"] i { transform: rotate(180deg); }
  body.mf6 .mf6-sidebar:not(.is-compact-open) .mf-simple-nav-more > div { display: none; }
  body.mf6 .mf6-sidebar.is-compact-open {
    position: fixed !important;
    inset: 0 auto 0 0;
    z-index: 50;
    width: min(17rem, calc(100% - 2.5rem));
    height: auto;
    box-sizing: border-box;
    box-shadow: .5rem 0 1.5rem rgba(0, 0, 0, .24);
  }
  body.mf6 .mf6-sidebar.is-compact-open :is(.mf6-nav span, .mf6-nav-label, .mf6-sidebar-footer span) {
    display: block !important;
  }
  body.mf6 .mf6-sidebar.is-compact-open .mf6-brand-copy { display: flex !important; }
  body.mf6 .mf6-sidebar.is-compact-open .mf6-brand { grid-template-columns: auto minmax(0, 1fr); }
  body.mf6 .mf6-sidebar.is-compact-open :is(.mf6-nav a, .mf6-sidebar-footer a, .mf6-sidebar-footer .link-button) {
    justify-content: flex-start;
  }
}

body.mf6 .mf-nav-review {
  margin: .2rem 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
body.mf6 .mf-nav-review > summary {
  display: list-item;
  min-height: 44px;
  padding: .65rem .55rem;
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  overflow-wrap: anywhere;
}
body.mf6 .mf-nav-review > div {
  margin-inline-start: .55rem;
  border-inline-start: 1px solid rgba(255, 255, 255, .2);
}
body.mf6 .mf-nav-review > div a { padding-inline-start: .7rem; }
body.mf6 .mf-simple-nav :is(a, summary):focus-visible {
  outline: 2px solid #f8cd79;
  outline-offset: -2px;
}


/* Full translated labels remain readable in the tablet sidebar. */
body.mf6:not(.mf-sidebar-collapsed) .mf6-nav :is(a, summary) { min-width: 0; height: auto; }
body.mf6:not(.mf-sidebar-collapsed) .mf6-nav :is(a, summary) > span { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; overflow-wrap: anywhere; flex-shrink: 1; }
body.mf6 .mf6-nav .ui-icon { flex-shrink: 0; }


body.mf6.mf-authoring-studio .mf6-sidebar .mf6-nav :is(a, summary) { box-sizing: border-box; width: 100%; max-width: 100%; white-space: normal !important; overflow-wrap: anywhere; }
body.mf6.mf-authoring-studio .mf6-sidebar .mf6-nav :is(a, summary) > span { min-width: 0; max-width: 100%; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }


/* Bound every submenu ancestor to the available sidebar content width. */
body.mf6.mf-authoring-studio .mf6-sidebar .mf6-nav { min-width: 0; max-width: 100%; box-sizing: border-box; }
body.mf6.mf-authoring-studio .mf6-sidebar .mf6-nav .mf-nav-submenu { box-sizing: border-box; width: auto; min-width: 0; max-width: calc(100% - 1.1rem); }
body.mf6.mf-authoring-studio .mf6-sidebar .mf6-nav .mf-nav-submenu > div { box-sizing: border-box; width: auto; min-width: 0; max-width: calc(100% - .65rem); padding-left: 0; }


@media (min-width: 768px) {
 body.mf6.mf-authoring-studio .mf6-sidebar { grid-template-columns: minmax(0, 1fr); }
 body.mf6.mf-authoring-studio .mf6-sidebar > * { min-width: 0; max-width: 100%; }
}

/* Info: © by Karl Dattinger - DattiSoft 2026, Projekt: MF Dokument ID: MF-DOC-2026-002236 erstellt 16.11.2026 zuletzt bearbeitet 16.11.2026 13:18 */
