/*
Theme Name: H&K Automobile Child
Template: Divi
Version: 1.1.7
Description: Minimaler Divi-Child-Theme-Aufbau für H&K Automobile.
*/

/* =========================================================
   Tablet / Mobile Off-Canvas Navigation
   Einzige projektspezifische CSS-Funktion im Child Theme.
   ========================================================= */

#hk-mobile-menu-final {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(2, 15, 38, 0);
    visibility: hidden;
    pointer-events: none;
    transition: background-color .25s ease, visibility 0s linear .32s;
}

#hk-mobile-menu-final.is-open {
    background: rgba(2, 15, 38, 0.42);
    visibility: visible;
    pointer-events: auto;
    transition: background-color .25s ease;
}

#hk-mobile-menu-final .hk-menu-panel-final {
    position: absolute;
    top: 0;
    right: 0;
    width: min(430px, 100%);
    height: 100%;
    overflow-y: auto;
    background: #fff;
    opacity: 1;
    isolation: isolate;
    padding: 24px 30px 28px;
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.22, .61, .36, 1);
    box-shadow: -18px 0 45px rgba(2, 15, 38, .18);
}

#hk-mobile-menu-final.is-open .hk-menu-panel-final {
    transform: translateX(0);
}

.hk-menu-head-final {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
}

.hk-menu-head-final img {
    width: 178px;
    max-width: 68%;
    height: auto;
}

.hk-menu-close-final {
    appearance: none;
    border: 0;
    background: transparent;
    color: #07111a;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
}

.hk-nav-final {
    display: flex;
    flex-direction: column;
    padding-top: 4px;
}

.hk-nav-final a {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 10px 0;
    border-bottom: 1px solid #edf0f4;
    color: #07111a !important;
    text-decoration: none !important;
    font-family: Manrope, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 600;
}

.hk-nav-final a:hover {
    color: #1e5eff !important;
}

.hk-contact-final {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 0 16px;
    border-bottom: 1px solid #e5e7eb;
    color: #07111a;
}

.hk-contact-row-final,
.hk-address-final {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 9px;
    align-items: start;
    color: #07111a !important;
    text-decoration: none !important;
    font-size: 14px;
    line-height: 1.45;
}

.hk-contact-icon-final,
.hk-hours-icon-final {
    width: 20px;
    text-align: center;
    color: #1e5eff;
}

.hk-phone-final {
    font-size: 17px;
}

.hk-hours-final {
    display: grid;
    grid-template-columns: 20px 1fr;
    column-gap: 9px;
    row-gap: 3px;
    margin-top: 2px;
}

.hk-hours-final .hk-hours-icon-final {
    grid-column: 1;
    grid-row: 1 / span 3;
}

.hk-hours-final strong,
.hk-hours-final > span:not(.hk-hours-icon-final) {
    grid-column: 2;
}

.hk-hours-final strong {
    font-size: 15px;
    color: #07111a;
}

.hk-hours-final > span:not(.hk-hours-icon-final) {
    font-size: 14px;
    color: #667085;
}

.hk-cta-final,
.hk-route-final {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 16px;
    border-radius: 7px;
    text-decoration: none !important;
    font-family: Manrope, Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
}

.hk-cta-final {
    background: #1e5eff;
    color: #fff !important;
}

.hk-route-final {
    margin-top: 9px;
    border: 1px solid #1e5eff;
    color: #1e5eff !important;
    background: #fff;
}

body.hk-menu-lock-final {
    overflow: hidden !important;
}

@media (max-width: 767px) {
    #hk-mobile-menu-final .hk-menu-panel-final {
        width: 100%;
        padding: 20px 20px 24px;
    }

    .hk-menu-head-final img {
        width: 155px;
    }

    .hk-nav-final a {
        min-height: 50px;
        font-size: 17px;
        padding: 9px 0;
    }
}


/* =========================================================
   H&K Sticky Header 1.1.4
   Fixed-Fallback fuer den Divi Theme Builder.
   Bestehende Divi-Klassen bleiben unveraendert.
   ========================================================= */

.hk-sticky-header {
    width: 100%;
    z-index: 99990;
}

/* Erst JavaScript setzt den Header nach Erreichen seiner Position fixed. */
.hk-sticky-header.hk-fixed {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 99990 !important;
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

.hk-sticky-header .et_pb_row {
    transition: min-height .25s ease, padding .25s ease;
}

.hk-sticky-header img {
    transition: max-height .25s ease, width .25s ease;
}

.hk-sticky-header.hk-scrolled .et_pb_row {
    min-height: 72px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

.hk-sticky-header.hk-scrolled img {
    max-height: 52px !important;
    width: auto !important;
}

.hk-sticky-header.hk-scrolled .et_pb_menu__menu > nav > ul > li {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.hk-sticky-header.hk-scrolled .hk-header-cta {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Platzhalter verhindert, dass der Hero beim Fixieren nach oben springt. */
.hk-sticky-spacer {
    display: none;
    width: 100%;
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.hk-sticky-spacer.is-active {
    display: block;
}

/* =========================================================
   H&K Header 1.1.5 – Navigation vertikal zentrieren
   Nur Ausrichtung; Sticky-/Scroll-Logik bleibt unveraendert.
   ========================================================= */

/* Die drei Header-Spalten (Logo / Navigation / CTA) teilen sich
   dieselbe vertikale Mitte. */
.hk-sticky-header .et_pb_row {
    align-items: center !important;
}

/* Das Menu-Modul selbst bekommt keine zusaetzliche vertikale
   Verschiebung durch Divi-Margins. */
.hk-sticky-header .et_pb_menu {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.hk-sticky-header .et_pb_menu_inner_container,
.hk-sticky-header .et_pb_menu__wrap {
    display: flex !important;
    align-items: center !important;
}

.hk-sticky-header .et_pb_menu__menu > nav > ul {
    align-items: center !important;
}



/* =========================================================
   H&K Header 1.1.7 – Navigation normal + sticky optisch zentrieren
   Divi positioniert das Menu-Modul in dieser Header-Zeile
   oberhalb der optischen Mitte. Nur Desktop korrigieren.
   ========================================================= */
@media (min-width: 981px) {
    .hk-sticky-header .et_pb_menu {
        position: relative !important;
        top: 16px !important;
    }

    /* Im kompakten Sticky-Zustand optisch mittig ausrichten. */
    .hk-sticky-header.hk-scrolled .et_pb_menu {
        top: 8px !important;
    }
}
