/* IRHT Mobile Menu 1.2.0 */
:root {
    --irht-mm-blue: #173f57;
    --irht-mm-accent: #87b5df;
    --irht-mm-light: #f4f9fc;
    --irht-mm-line: rgba(23, 63, 87, .13);
    --irht-mm-gutter: 18px;
    --irht-mm-header-height: 84px;
}

.irht-mm-header,
.irht-mm-overlay {
    display: none;
}

.irht-mm-header,
.irht-mm-header *,
.irht-mm-overlay,
.irht-mm-overlay * {
    box-sizing: border-box;
}

/* =========================================================
   MOBILER HEADER
========================================================= */

.irht-mm-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 999998;

    height: var(--irht-mm-header-height);

    align-items: center;
    justify-content: space-between;

    padding: 0 var(--irht-mm-gutter) !important;

    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid rgba(23, 63, 87, .11);
    box-shadow: 0 8px 28px rgba(23, 63, 87, .08);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Logo deutlich größer; linker Abstand entspricht exakt dem rechten Abstand. */
.irht-mm-logo {
    display: flex;
    align-items: center;

    width: min(238px, 58vw);
    height: 66px;

    margin: 0;
    padding: 0;

    text-decoration: none;
}

.irht-mm-logo img {
    display: block;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    object-fit: contain;
    object-position: left center;
}

/* Markanter, klar erkennbarer Hamburger. */
.irht-mm-trigger {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 58px;
    width: 58px;
    min-width: 58px;
    height: 58px;

    margin: 0;
    padding: 0;

    border: 2px solid var(--irht-mm-blue);
    border-radius: 50%;

    background: var(--irht-mm-blue);
    color: #fff;

    cursor: pointer;

    box-shadow: 0 10px 26px rgba(23, 63, 87, .24);

    transition:
        transform .2s ease,
        background-color .2s ease,
        box-shadow .2s ease;
}

.irht-mm-trigger:hover,
.irht-mm-trigger:focus-visible {
    background: #245a78;
    box-shadow: 0 12px 30px rgba(23, 63, 87, .3);
    transform: translateY(-1px);
}

.irht-mm-trigger__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.irht-mm-trigger__icon {
    position: relative;
    display: block;

    width: 26px;
    height: 20px;
}

.irht-mm-trigger__icon i {
    position: absolute;
    left: 0;

    width: 26px;
    height: 3px;

    border-radius: 3px;
    background: currentColor;

    transition:
        transform .25s ease,
        top .25s ease,
        opacity .2s ease;
}

.irht-mm-trigger__icon i:nth-child(1) { top: 1px; }
.irht-mm-trigger__icon i:nth-child(2) { top: 9px; }
.irht-mm-trigger__icon i:nth-child(3) { top: 17px; }

body.irht-mm-open .irht-mm-trigger__icon i:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}

body.irht-mm-open .irht-mm-trigger__icon i:nth-child(2) {
    opacity: 0;
    transform: scaleX(.3);
}

body.irht-mm-open .irht-mm-trigger__icon i:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
}

/* =========================================================
   OVERLAY UND PANEL
========================================================= */

.irht-mm-overlay {
    position: fixed;
    inset: 0;
    z-index: 999997;

    pointer-events: none;
    visibility: hidden;
}

.irht-mm-overlay.is-open {
    pointer-events: auto;
    visibility: visible;
}

.irht-mm-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(8, 30, 44, .42);
    opacity: 0;

    transition: opacity .3s ease;
}

.irht-mm-overlay.is-open .irht-mm-backdrop {
    opacity: 1;
}

.irht-mm-panel {
    position: absolute;
    inset: var(--irht-mm-header-height) 0 0 auto;

    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;

    width: min(100%, 540px);
    height: calc(100dvh - var(--irht-mm-header-height));

    overflow: hidden;

    background:
        radial-gradient(circle at 100% 0, rgba(167, 213, 243, .42), transparent 38%),
        #fff;

    color: var(--irht-mm-blue);

    transform: translateX(102%);

    transition: transform .36s cubic-bezier(.2,.8,.2,1);

    box-shadow: -28px 0 70px rgba(23, 63, 87, .16);
    outline: none;
}

.irht-mm-overlay.is-open .irht-mm-panel {
    transform: translateX(0);
}

/* Der frühere, platzraubende Bereich „Navigation“ wurde entfernt. */
.irht-mm-panel__top,
.irht-mm-eyebrow,
.irht-mm-close {
    display: none !important;
}

/* =========================================================
   NAVIGATION
========================================================= */

.irht-mm-panel__body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;

    padding: 10px 20px 10px;

    scrollbar-width: thin;
}

.irht-mm-list,
.irht-mm-submenu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.irht-mm-item__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;

    border-bottom: 1px solid var(--irht-mm-line);
}

.irht-mm-link {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;

    gap: 10px;

    min-height: 52px;
    padding: 7px 0;

    color: var(--irht-mm-blue);
    text-decoration: none;
}

.irht-mm-link__index {
    font: 700 10px/1 "Inter", sans-serif;
    letter-spacing: .08em;
    color: #87a9bd;
}

.irht-mm-link__title {
    font: 650 clamp(20px, 5.5vw, 27px)/1.08 "Inter", sans-serif;
    letter-spacing: -.025em;
}

.irht-mm-item.is-current > .irht-mm-item__row .irht-mm-link__title {
    color: #2e7ba7;
}

/* Dropdowns für spätere Untermenüs. */
.irht-mm-submenu-toggle {
    position: relative;

    width: 42px;
    height: 42px;

    padding: 0;

    border: 1px solid var(--irht-mm-line);
    border-radius: 50%;

    background: #f7fbfd;
    color: var(--irht-mm-blue);

    cursor: pointer;
}

.irht-mm-submenu-toggle span {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 14px;
    height: 2px;

    border-radius: 2px;
    background: currentColor;

    transform: translate(-50%, -50%);
    transition: transform .22s ease;
}

.irht-mm-submenu-toggle span:last-child {
    transform: translate(-50%, -50%) rotate(90deg);
}

.irht-mm-submenu-toggle[aria-expanded="true"] span:last-child {
    transform: translate(-50%, -50%) rotate(0);
}

.irht-mm-submenu {
    padding: 3px 0 8px 38px;
    border-bottom: 1px solid var(--irht-mm-line);
}

.irht-mm-submenu .irht-mm-item__row {
    border-bottom: 0;
}

.irht-mm-submenu .irht-mm-link {
    grid-template-columns: 1fr;
    min-height: 37px;
    padding: 5px 0;
}

.irht-mm-submenu .irht-mm-link__index {
    display: none;
}

.irht-mm-submenu .irht-mm-link__title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
}

/* =========================================================
   SUCHE
========================================================= */

.irht-mm-search {
    position: relative;
    margin: 10px 0 0;
}

.irht-mm-search input {
    width: 100%;
    height: 44px;

    padding: 0 46px 0 14px;

    border: 1px solid #d5e4ec;
    border-radius: 10px;

    background: #f7fafc;
    color: var(--irht-mm-blue);

    font: 500 14px/1 "Inter", sans-serif;

    outline: none;
}

.irht-mm-search button {
    position: absolute;
    inset: 0 0 0 auto;

    width: 44px;

    border: 0;
    background: transparent;
    color: var(--irht-mm-blue);
}

.irht-mm-search svg,
.irht-mm-contact svg,
.irht-mm-cta svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================================
   KOMPAKTE KONTAKTLEISTE
========================================================= */

.irht-mm-panel__footer {
    display: flex;
    align-items: center;

    gap: 8px;

    padding: 9px 20px calc(9px + env(safe-area-inset-bottom));

    border-top: 1px solid var(--irht-mm-line);
    background: rgba(244, 249, 252, .96);
}

.irht-mm-contact {
    display: flex;
    align-items: center;

    gap: 7px;

    min-width: 0;
}

.irht-mm-contact a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    border: 1px solid rgba(23, 63, 87, .14);
    border-radius: 50%;

    background: #fff;
    color: var(--irht-mm-blue);

    text-decoration: none;

    box-shadow: 0 4px 14px rgba(23, 63, 87, .06);
}

.irht-mm-contact a span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.irht-mm-contact svg {
    width: 17px;
    height: 17px;
}

.irht-mm-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    min-width: 0;
    min-height: 42px;

    margin-left: auto;
    padding: 0 15px;

    border-radius: 999px;

    background: var(--irht-mm-blue);
    color: #fff;

    font: 700 12px/1 "Inter", sans-serif;
    text-decoration: none;
    white-space: nowrap;
}

body.irht-mm-open {
    overflow: hidden !important;
}

/* =========================================================
   KLEINE SMARTPHONES
========================================================= */

@media (max-width: 430px) {
    :root {
        --irht-mm-gutter: 16px;
        --irht-mm-header-height: 82px;
    }

    .irht-mm-logo {
        width: min(214px, 57vw);
        height: 64px;
    }

    .irht-mm-trigger {
        flex-basis: 56px;
        width: 56px;
        min-width: 56px;
        height: 56px;
    }

    .irht-mm-panel__body {
        padding-right: 16px;
        padding-left: 16px;
    }

    .irht-mm-panel__footer {
        padding-right: 16px;
        padding-left: 16px;
    }

    .irht-mm-cta {
        padding: 0 13px;
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    :root {
        --irht-mm-gutter: 14px;
    }

    .irht-mm-logo {
        width: min(190px, 55vw);
    }

    .irht-mm-trigger {
        flex-basis: 52px;
        width: 52px;
        min-width: 52px;
        height: 52px;
    }

    .irht-mm-contact a {
        width: 39px;
        height: 39px;
    }

    .irht-mm-cta {
        min-height: 39px;
        padding: 0 11px;
    }
}

@media (max-height: 690px) {
    .irht-mm-link {
        min-height: 46px;
    }

    .irht-mm-link__title {
        font-size: 20px;
    }

    .irht-mm-search {
        margin-top: 7px;
    }

    .irht-mm-panel__footer {
        padding-top: 7px;
        padding-bottom: calc(7px + env(safe-area-inset-bottom));
    }
}

@media (prefers-reduced-motion: reduce) {
    .irht-mm-panel,
    .irht-mm-backdrop,
    .irht-mm-trigger,
    .irht-mm-trigger__icon i,
    .irht-mm-submenu-toggle span {
        transition: none !important;
    }
}

/* =========================================================
   IRHT MOBILE MENU 1.4.0 – KOMPAKTER MOBILE-HEADER
========================================================= */

:root {
    --irht-mm-gutter: 18px;
    --irht-mm-header-height: 64px;
}

.irht-mm-header {
    height: 64px !important;
    padding: 0 18px !important;
    background: #fff !important;
    border-bottom: 1px solid rgba(23, 63, 87, .11) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.irht-mm-logo {
    flex: 0 1 auto !important;
    width: min(162px, calc(100vw - 92px)) !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.irht-mm-logo img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: left center !important;
}

.irht-mm-trigger,
.irht-mm-trigger:hover,
.irht-mm-trigger:focus,
.irht-mm-trigger:focus-visible,
body.irht-mm-open .irht-mm-trigger {
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: #173f57 !important;
    color: #fff !important;
    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
}

.irht-mm-trigger__icon {
    width: 23px !important;
    height: 18px !important;
}

.irht-mm-trigger__icon i {
    width: 23px !important;
    height: 3px !important;
}

.irht-mm-trigger__icon i:nth-child(1) { top: 0 !important; }
.irht-mm-trigger__icon i:nth-child(2) { top: 8px !important; }
.irht-mm-trigger__icon i:nth-child(3) { top: 16px !important; }

body.irht-mm-open .irht-mm-trigger__icon i:nth-child(1),
body.irht-mm-open .irht-mm-trigger__icon i:nth-child(3) {
    top: 8px !important;
}

.irht-mm-panel {
    inset: 64px 0 0 auto !important;
    height: calc(100dvh - 64px) !important;
}

@media only screen and (max-width: 420px) {
    :root {
        --irht-mm-gutter: 16px;
        --irht-mm-header-height: 62px;
    }

    .irht-mm-header {
        height: 62px !important;
        padding: 0 16px !important;
    }

    .irht-mm-logo {
        width: min(150px, calc(100vw - 86px)) !important;
        height: 43px !important;
    }

    .irht-mm-trigger,
    .irht-mm-trigger:hover,
    .irht-mm-trigger:focus,
    .irht-mm-trigger:focus-visible,
    body.irht-mm-open .irht-mm-trigger {
        flex-basis: 42px !important;
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;
        border-radius: 11px !important;
    }

    .irht-mm-panel {
        inset: 62px 0 0 auto !important;
        height: calc(100dvh - 62px) !important;
    }
}
