/* Handymenü (Vorgabe Thomas, wie bibliothek.info/friseur.org/kindergarten.info): hell statt dunkler UIkit-Fläche, Logo, Suche, Kacheln, Aufklapp-Bereiche, Handlungsknopf. */
.uk-offcanvas-bar.mm { width: min(88vw, 360px); padding: 0 0 1.5rem; background: #f4f6fb; color: #1f2933; box-shadow: -12px 0 40px rgba(22, 65, 118, .18); }
.uk-offcanvas-overlay::before { background: rgba(15, 47, 87, .35) !important; backdrop-filter: blur(2px); }
.mm-kopf { display: flex; align-items: center; justify-content: space-between; padding: .7rem 1rem .7rem 1.1rem; background: #fff; border-bottom: 1px solid #d5dae6; position: sticky; top: 0; z-index: 2; }
.mm-logo img { height: 32px; width: auto; display: block; }
.uk-offcanvas-bar.mm .mm-zu { position: static; width: 42px; height: 42px; padding: 0; border-radius: 50%; background: #eceef6; color: #164176; display: inline-flex; align-items: center; justify-content: center; }
.mm-suche { display: flex; align-items: center; gap: .55rem; margin: 1rem 1.1rem .9rem; padding: 0 .95rem; height: 50px; background: #fff; border: 1.5px solid #c9cfdf; border-radius: 14px; color: #164176; }
.mm-suche:focus-within { border-color: #164176; box-shadow: 0 0 0 3px #dbe3f0; }
.uk-offcanvas-bar.mm .mm-suche input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1rem; color: #1f2933; }
.uk-offcanvas-bar.mm .mm-suche input::placeholder { color: #5c5e61; }
.mm-kacheln { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .6rem; margin: 0 1.1rem 1.1rem; }
.uk-offcanvas-bar.mm .mm-kacheln a { display: flex; align-items: center; gap: .55rem; padding: .7rem; background: #fff; border-radius: 16px; box-shadow: 0 3px 12px rgba(22, 65, 118, .07); color: #164176; font-weight: 700; font-size: .84rem; line-height: 1.2; text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
.mm-kacheln span { flex: 0 0 30px; height: 30px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: #dbe3f0; color: #164176; }
.mm-kacheln a:nth-child(2) span, .mm-kacheln a:nth-child(3) span { background: #e4f3cf; color: #3f7400; }
.mm-kacheln svg, .mm-zeichen svg { width: 22px; height: 22px; }
.uk-offcanvas-bar.mm .mm-nav { margin: 0 1.1rem; background: #fff; border-radius: 20px; padding: .3rem .4rem; box-shadow: 0 3px 14px rgba(22, 65, 118, .06); }
.uk-offcanvas-bar.mm .mm-nav > li > a { display: flex; align-items: center; gap: .7rem; padding: .75rem .55rem; color: #1f2933; font-weight: 700; font-size: 1.02rem; }
.uk-offcanvas-bar.mm .mm-nav > li + li { border-top: 1px solid #eceef6; }
.mm-zeichen { flex: 0 0 36px; height: 36px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #dbe3f0; color: #164176; }
.mm-pfeil { margin-left: auto; width: 9px; height: 9px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); opacity: .55; transition: transform .2s; }
.mm-nav > li.uk-open .mm-pfeil { transform: rotate(-135deg); }
.uk-offcanvas-bar.mm .mm-nav .uk-nav-sub { padding: 0 0 .6rem 3.05rem; }
.uk-offcanvas-bar.mm .mm-nav .uk-nav-sub a { display: block; padding: .42rem .4rem; color: #3b4956; font-size: .97rem; border-radius: 10px; }
.uk-offcanvas-bar.mm .mm-nav .uk-nav-sub a:hover, .uk-offcanvas-bar.mm .mm-nav .uk-nav-sub .uk-active a { background: #eceef6; color: #164176; text-decoration: none; font-weight: 700; }
.mm-fuss { margin: 1.1rem 1.1rem 0; text-align: center; }
.uk-offcanvas-bar.mm .mm-knopf { display: block; padding: .8rem 1rem; border-radius: 16px; background: #164176; color: #fff; font-weight: 800; text-decoration: none; }
.uk-offcanvas-bar.mm .mm-knopf:hover { background: #0f2f57; }
.mm-fuss p { margin: .9rem 0 0; font-size: .9rem; }
.uk-offcanvas-bar.mm .mm-fuss p a { color: #3b4956; }
.ms-lupe-link { color: #164176; }
.uk-button.ms-melden-knopf { align-self: center; margin-left: 12px; background: #164176; color: #fff; border-radius: 4px; white-space: nowrap; }
.uk-button.ms-melden-knopf:hover { background: #0f2f57; color: #fff; }
/* Schmale Rechner: Menü rückt zusammen, damit der Melde-Knopf in der Zeile bleibt */
@media (min-width: 960px) and (max-width: 1199px) {
    .uk-navbar-right { flex-wrap: nowrap; }
    .uk-navbar-right > .uk-navbar-nav { gap: 14px; }
    .uk-button.ms-melden-knopf { margin-left: 4px; padding-left: 12px; padding-right: 12px; }
}
@media (min-width: 960px) and (max-width: 1099px) {
    .uk-navbar-right > .uk-navbar-nav { gap: 2px; }
    .ms-melden-wort { display: none; }
    .uk-button.ms-melden-knopf { text-transform: capitalize; }
}
@media (min-width: 960px) and (max-width: 1023px) {
    .uk-navbar-right > .uk-navbar-nav > li:first-child { display: none; }   /* Startseite bleibt über das Logo erreichbar */
}
