@charset "UTF-8";
/* =====================================================================
   mobile-nav.css - mobiler Seitenkopf + Off-Canvas-Hamburger-Menue
   inotec-ap.14x.

   Ersetzt den Desktop-Seitenkopf (#top Banner + #nav1bg Menue-Leisten)
   unterhalb 992px durch eine sticky Leiste (Logo links / Hamburger rechts)
   und ein Menue, das beim Klick von links einblendet (slide + fade).

   Als LETZTE CSS-Datei gebunden (includeCSS.71) -> gewinnt gegen
   responsive.css und die fixen Navigations-Regeln.
   ===================================================================== */

/* Standard (Desktop): Mobilkopf + Drawer ausgeblendet */
#mobileHeader,
#mobileNav {
    display: none;
}

/* -------------------------------------------------------------------
   < 992px: Desktop-Kopf durch Mobilkopf ersetzen, Drawer aktivieren
   ------------------------------------------------------------------- */
@media (max-width: 992px) {

    /* Browser-Default body-margin (8px rundum) entfernen: fallt sonst bei
       <992px mit device-width-Viewport als Kante um den ganzen Inhalt auf. */
    html,
    body {
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Desktop-Seitenkopf (Banner + Nav-Leisten) ausblenden */
    #top,
    #linie1,
    #nav1bg,
    #nav1full,
    #nav2full {
        display: none !important;
    }

    /* --- Sticky Mobilkopf-Leiste: Logo links, Hamburger rechts --- */
    #mobileHeader {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: sticky;
        top: 0;
        z-index: 902;
        height: 64px;
        /* TYPO3 setzt vor dem ersten body-Objekt eine Leerzeile; die wird als
           ~17-18px hohe Zeilenbox gerendert und wuerde den Header vom oberen
           Rand abheben. Negatives margin-top zieht ihn bündig auf 0. */
        margin-top: -18px;
        padding: 0 14px;
        /* hg800jpg.jpg als rechter Hintergrund (leichte Schatten-Schicht),
           darunter der helle Creme-Gradient als Fallback/Basis. */
        background:
            url('../img/hg800jpg.jpg') right center / cover no-repeat,
            linear-gradient(135deg, #ffffff 0%, #f7f2e3 55%, #efe6cf 100%);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
        box-sizing: border-box;
    }
    .mh-logo {
        display: inline-flex;
        align-items: center;
        text-decoration: none;
    }
    .mh-logo img {
        display: block;
        height: 46px;
        width: auto;
    }

    /* --- Hamburger-Button: 3 Striche, rechts --- */
    .mh-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: space-between;
        width: 40px;
        height: 30px;
        padding: 5px;
        margin: 0;
        background: none;
        border: 0;
        cursor: pointer;
        box-sizing: border-box;
    }
    .mh-toggle:focus {
        outline: 2px solid #F7B500;
        outline-offset: 2px;
    }
    .mh-bar {
        display: block;
        height: 3px;
        width: 100%;
        background: #404040;
        border-radius: 2px;
        transition: transform 0.28s ease, opacity 0.22s ease;
    }
    /* offen: 3 Striche zu X animieren */
    #mobileHeader.is-open .mh-toggle .mh-bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    #mobileHeader.is-open .mh-toggle .mh-bar:nth-child(2) {
        opacity: 0;
    }
    #mobileHeader.is-open .mh-toggle .mh-bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* --- Drawer (Off-Canvas von links, mit Fade) --- */
    #mobileNav {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 901;
        pointer-events: none;
    }
    .mh-nav-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        pointer-events: auto;
    }
    .mh-nav-panel {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(320px, 82vw);
        background: #404040;
        box-shadow: 3px 0 16px rgba(0, 0, 0, 0.22);
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.32s ease, opacity 0.3s ease, visibility 0.3s ease;
        display: flex;
        flex-direction: column;
        pointer-events: auto;
        box-sizing: border-box;
    }
    #mobileNav.is-open .mh-nav-backdrop {
        opacity: 1;
        visibility: visible;
    }
    #mobileNav.is-open .mh-nav-panel {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .mh-nav-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        border-bottom: 1px solid #ffffff;
    }
    .mh-nav-head img {
        display: block;
        height: 42px;
        width: auto;
    }
    .mh-close {
        font-size: 30px;
        line-height: 1;
        color: #ffffff;
        background: none;
        border: 0;
        cursor: pointer;
        padding: 0 4px;
    }
    .mh-close:hover {
        color: #F7B500;
    }
    .mh-close:focus {
        outline: 2px solid #F7B500;
        outline-offset: 2px;
    }

    /* --- Menue-Inhalt (aus nav1 + nav2 per JS hineinkopiert) --- */
    .mh-nav-list {
        flex: 1 1 auto;
        overflow-y: auto;
        padding: 6px 0 20px;
    }
    .mh-nav-group ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .mh-nav-group + .mh-nav-group {
        border-top: 0;
        margin-top: 0;
        padding-top: 0;
    }
    .mh-nav-group > ul > li {
        position: relative;
        display: flex;
        align-items: center;
        gap: 12px;
        border-bottom: 1px solid #ffffff;
    }
    .mh-nav-group > ul > li::before {
        content: '';
        width: 8px;
        height: 8px;
        flex: 0 0 8px;
        margin-left: 22px;
        background: #F4B500;
    }
    .mh-nav-group > ul > li > a {
        display: block;
        padding: 11px 22px 11px 0;
        color: #ffffff;
        text-decoration: none;
        font: 300 15px/1.2 'Lato', Arial, sans-serif;
    }
    .mh-nav-group > ul > li > a:hover {
        background: #F4B500;
        color: #404040;
    }
    .mh-nav-group > ul > li.active > a {
        color: #F4B500;
    }
    /* Unterebene (2. Ebene) eingerueckt */
    .mh-nav-group ul ul {
        padding: 0 0 4px 20px;
        background: transparent;
    }
    .mh-nav-group ul ul li {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .mh-nav-group ul ul li::before {
        content: '';
        width: 8px;
        height: 8px;
        flex: 0 0 8px;
        background: #F4B500;
    }
    .mh-nav-group ul ul li a {
        display: block;
        padding: 11px 22px 11px 0;
        color: #ffffff;
        text-decoration: none;
        font: 16px/1.2 'PT Sans', Arial, sans-serif;
    }
    .mh-nav-group ul ul li a:hover {
        color: #F4B500;
    }

    /*--- Kontaktleiste (Telefon + E-Mail) unter dem Menue --- */
    .mh-nav-contact {
        border-top: 1px solid #ffffff;
        padding: 10px 16px 14px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 8px 20px;
        background: #404040;
    }
    .mh-nav-contact a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: #ffffff;
        text-decoration: none;
        font: 300 15px/1.2 'Lato', Arial, sans-serif;
    }
    .mh-nav-contact a:hover {
        color: #F4B500;
    }
    .mh-nav-contact svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: #F4B500;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
        flex: 0 0 auto;
    }
}