/* Native Navigation – bereinigtes historisches Layout. */

.header {
    position: relative;
    overflow: visible;
}

.header > div[style*="float:right"] {
    position: absolute;
    top: 29px;
    right: 0;
    z-index: 1200;
    float: none !important;
    width: 150px;
    height: 150px;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.header > div[style*="float:right"] .logo,
.header > div[style*="float:right"] .logo a {
    display: block;
    float: none;
    width: 150px;
    height: 150px;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.header > div[style*="float:right"] img[alt="Logo"] {
    position: static;
    display: block;
    width: 150px;
    height: 150px;
    margin: 0;
    padding: 0;
    border: 0;
}

.nab {
    position: relative;
    z-index: 1000;
    box-sizing: border-box;
    width: auto;
    height: 132px;
    min-height: 132px;
    margin: 16px 10px 0 10px;
    padding: 0 170px 0 5px;
    overflow: visible;
    background: #aeb9df;
}

.nab ul,
.nab li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nab .lebenshilfe-main-menu {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    height: 66px;
    margin: 0;
    padding: 0;
}

.nab .lebenshilfe-main-menu > li {
    position: relative;
    display: block;
    flex: 0 0 auto;
}

.nab .lebenshilfe-main-menu > li > a {
    display: block;
    padding: 24px 14px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    font-weight: bold;
    line-height: 18px;
    text-decoration: none;
    white-space: nowrap;
}

.nab .lebenshilfe-main-menu a:hover,
.nab .lebenshilfe-main-menu a:focus,
.nab .lebenshilfe-main-menu .current-menu-item > a,
.nab .lebenshilfe-main-menu .current-menu-ancestor > a {
    color: #ff8500;
    text-decoration: none;
}

.nab .lebenshilfe-main-menu .sub-menu {
    position: absolute;
    top: 66px;
    left: 0;
    z-index: 99999;
    display: none;
    width: 170px;
    min-width: 170px;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    background: #aeb9df;
}

.nab .lebenshilfe-main-menu li:hover > .sub-menu,
.nab .lebenshilfe-main-menu li:focus-within > .sub-menu {
    display: block;
}

.nab .lebenshilfe-main-menu .sub-menu li {
    position: relative;
    display: block;
    width: 100%;
}

.nab .lebenshilfe-main-menu .sub-menu a {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 4px 14px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    font-weight: bold;
    line-height: 18px;
    text-decoration: none;
    white-space: nowrap;
}

.nab .lebenshilfe-main-menu .sub-menu a:hover,
.nab .lebenshilfe-main-menu .sub-menu a:focus {
    color: #ff8500;
}
/* Finale Pixelkorrektur: Logo unten bündig. */
.header > div[style*="float:right"] {
    top: 27px !important;
}
/* Logo exakt innerhalb der blauen Fläche ausrichten. */
.header > div[style*="float:right"] {
    top: 45px !important;
    right: 10px !important;
    width: 142px !important;
    height: 132px !important;
}

.header > div[style*="float:right"] .logo,
.header > div[style*="float:right"] .logo a {
    width: 142px !important;
    height: 132px !important;
}

.header > div[style*="float:right"] img[alt="Logo"] {
    width: 142px !important;
    height: 132px !important;
    object-fit: contain !important;
}
/* Finale Logo-Geometrie wie im historischen Layout. */
.header > div[style*="float:right"] {
    top: 29px !important;
    right: 0 !important;
    width: 150px !important;
    height: 150px !important;
}

.header > div[style*="float:right"] .logo,
.header > div[style*="float:right"] .logo a {
    width: 150px !important;
    height: 150px !important;
}

.header > div[style*="float:right"] img[alt="Logo"] {
    width: 150px !important;
    height: 150px !important;
    max-width: none !important;
    object-fit: fill !important;
}
/* Logo robust an der Unterkante der blauen Fläche ausrichten. */
.header {
    position: relative !important;
}

.header > div[style*="float:right"] {
    top: auto !important;
    bottom: 0 !important;
    right: 0 !important;
    width: 150px !important;
    height: 150px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.header > div[style*="float:right"] .logo,
.header > div[style*="float:right"] .logo a,
.header > div[style*="float:right"] img[alt="Logo"] {
    display: block !important;
    width: 150px !important;
    height: 150px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}
/* Finale Ausrichtung: Navigation und Logo 3 px nach unten. */
.nab {
    transform: translateY(3px) !important;
}

.header > div[style*="float:right"] {
    bottom: -3px !important;
}
/* Menüeinträge vertikal mittig im blauen Feld ausrichten. */
.nab .lebenshilfe-main-menu {
    height: 132px !important;
    align-items: center !important;
}

.nab .lebenshilfe-main-menu > li > a {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 132px !important;
}

.nab .lebenshilfe-main-menu .sub-menu {
    top: 84px !important;
}

.nab .lebenshilfe-main-menu .sub-menu a {
    line-height: 18px !important;
}
/* Dropdown-Breite automatisch an längsten Eintrag anpassen. */
.nab .lebenshilfe-main-menu .sub-menu {
    width: max-content !important;
    min-width: 170px !important;
    max-width: none !important;
}

.nab .lebenshilfe-main-menu .sub-menu li {
    width: 100% !important;
}

.nab .lebenshilfe-main-menu .sub-menu a {
    width: auto !important;
    min-width: 170px !important;
    white-space: nowrap !important;
}
