/* Aufklappmenue unter "Leistungen" (nur Desktop, ab 1024px). */

.mm-trigger { display: inline-flex; align-items: center; gap: 6px; }
.mm-trigger .mm-chev { width: 12px; height: 12px; transition: transform .3s cubic-bezier(.16,1,.3,1); }
.mm-open .mm-trigger .mm-chev { transform: rotate(180deg); }

.mm-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 30px 60px -24px rgba(47,60,77,.28);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s ease, transform .35s cubic-bezier(.16,1,.3,1), visibility 0s linear .25s;
  text-transform: none; letter-spacing: normal; font-weight: 400;
}
.mm-open .mm-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .35s cubic-bezier(.16,1,.3,1); }
@media (max-width: 1023px) { .mm-panel { display: none !important; } }

.mm-inner { max-width: 80rem; margin: 0 auto; padding: 18px 40px; }
.mm-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0 6px; }

.mm-item { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 18px; color: #2f3c4d; transition: background .25s ease; }
.mm-item:hover { background: rgba(244,245,246,.8); }
.mm-ico { flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px; background: #f4f5f6; color: #405167;
  display: flex; align-items: center; justify-content: center; transition: background .3s ease, color .3s ease; }
.mm-ico svg { width: 20px; height: 20px; }
.mm-item:hover .mm-ico { background: #405167; color: #fff; }
.mm-title { display: block; font-weight: 600; font-size: 14.5px; letter-spacing: -0.01em; line-height: 1.3; }
.mm-text { display: block; color: #606062; font-size: 12.5px; line-height: 1.45; margin-top: 2px; }

/* Seitliche Widgets ausblenden, solange das Menue offen ist */
body:has(header.mm-open) .fly-widget,
body:has(header.mm-open) #announce-widget { opacity: 0 !important; pointer-events: none !important; transition: opacity .2s ease; }

/* Schmalere Bildschirme (z. B. Tablet quer): Titel trennen statt ueberlappen, Hintergrund etwas deckender */
.mm-title { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 1279px) {
  .mm-panel { background: rgba(255,255,255,.92); }
  .mm-inner { padding: 16px 24px; }
  .mm-grid { gap: 0 2px; }
  .mm-item { padding: 10px 8px; }
  .mm-title { font-size: 13.5px; }
  .mm-text { font-size: 12px; }
}

/* Schmale Desktop- und iPad-quer-Breiten (1024 bis 1199px): Hauptmenue etwas
   enger setzen, sonst wird der Knopf "Online Anamnese" rechts abgeschnitten. */
@media (min-width: 1024px) and (max-width: 1199.98px) {
  header nav.lg\:flex { gap: 20px; font-size: 15px; letter-spacing: 0.04em; }
  header #anamnese-toggle { padding-left: 18px; padding-right: 14px; font-size: 14px; }
  header #anamnese-toggle > span.lg\:hidden { display: inline; }
  header #anamnese-toggle > span.lg\:inline { display: none; }
}

/* Handy- und Tablet-Menue (unter 1024px), Knopf in der unteren Leiste */
#mnav-btn {
  flex-shrink: 0; width: 48px; height: 48px; padding: 0; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(47,60,77,0.15); background: #fff; color: #2f3c4d;
  font-size: 14px; font-weight: 600; cursor: pointer;
}
#mnav-btn svg { width: 22px; height: 22px; }
#mnav-btn .mnav-ico-close, .mnav-open #mnav-btn .mnav-ico-open { display: none; }
.mnav-open #mnav-btn .mnav-ico-close { display: block; }
#mnav-backdrop {
  position: fixed; inset: 0; z-index: 38; background: rgba(42,52,66,0.45);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
#mnav-sheet {
  position: fixed; left: 0; right: 0; bottom: 72px; z-index: 39;
  background: #fff; border-radius: 24px 24px 0 0; padding: 10px 16px 12px;
  box-shadow: 0 -20px 40px -20px rgba(47,60,77,0.35);
  transform: translateY(16px); opacity: 0; visibility: hidden;
  transition: transform .3s cubic-bezier(.16,1,.3,1), opacity .2s ease, visibility 0s linear .3s;
}
.mnav-open #mnav-backdrop { opacity: 1; pointer-events: auto; }
.mnav-open #mnav-sheet { transform: none; opacity: 1; visibility: visible; transition: transform .3s cubic-bezier(.16,1,.3,1), opacity .2s ease; }
#mnav-sheet ul { list-style: none; margin: 0 auto; padding: 0; max-width: 640px; }
#mnav-sheet li + li { border-top: 1px solid rgba(47,60,77,0.08); }
#mnav-sheet a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 54px; padding: 0 6px; color: #2f3c4d;
  font-size: 17px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
}
#mnav-sheet a svg { width: 18px; height: 18px; color: rgba(47,60,77,0.4); }
#mnav-sheet a[aria-current="page"] { color: #405167; text-decoration: underline; text-underline-offset: 6px; }
@media (min-width: 1024px) { #mnav-btn, #mnav-sheet, #mnav-backdrop { display: none !important; } }
.mnav-open #announce-widget, .mnav-open #totop-btn, .mnav-open .fly-widget { display: none !important; }
