/* Independent controls: do not modify existing search, logo or navigation styles. */
.mh24-header-zugang[hidden] { display: none !important; }
.mh24-header-zugang {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    width: max-content;
    max-width: 100%;
    margin: 4px 8px 4px auto;
    padding: 0;
    position: relative;
    z-index: 50;
    font-family: inherit;
}
.mh24-header-zugang .mh24-zugang-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 42px;
    padding: 9px 16px;
    margin: 0;
    border: 2px solid #25552f !important;
    border-radius: 9px;
    background: #ffffff !important;
    color: #25552f !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none !important;
    text-transform: none;
    white-space: nowrap;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.mh24-header-zugang .mh24-zugang-register {
    background: #25552f !important;
    color: #ffffff !important;
}
.mh24-header-zugang .mh24-zugang-login:hover,
.mh24-header-zugang .mh24-zugang-login:focus-visible {
    background: #eef5ed !important;
    color: #173c20 !important;
}
.mh24-header-zugang .mh24-zugang-register:hover,
.mh24-header-zugang .mh24-zugang-register:focus-visible {
    background: #173c20 !important;
    color: #ffffff !important;
}
.mh24-header-zugang .mh24-zugang-link:focus-visible {
    outline: 3px solid #df9a19 !important;
    outline-offset: 3px;
}
/* Secondary full-width row only if the selected header's direct inner area is not flex. */
.mh24-header-zugang.mh24-zugang-row {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 6px 16px 8px;
}
.mh24-header-zugang.mh24-zugang-row .mh24-zugang-link {
    min-height: 40px;
}
@media (max-width: 640px) {
    .mh24-header-zugang { gap: 6px; margin: 6px 8px 6px auto; }
    .mh24-header-zugang .mh24-zugang-link {
        font-size: 13px;
        min-height: 42px;
        padding: 8px 10px;
        border-radius: 8px;
    }
    .mh24-header-zugang.mh24-zugang-row { padding: 6px 10px 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .mh24-header-zugang .mh24-zugang-link { transition: none; }
}
