/* =========================================================
   Heckengäu Unimogs – bereinigtes Zusätzliches CSS
   Stand: 02.09.2026
   ========================================================= */


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

/* Header darf das Logo nicht abschneiden */
.hu-site-header,
.hu-nav-shell,
.hu-nav {
    overflow: visible !important;
}


/* Topbar auf iPhone / iPad Hochformat */
@media (max-width: 899px) {

    .hu-topbar {
        background: #111;
    }

    .hu-topbar-inner {
        max-width: none;
        width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }
}


.hu-topbar {
    padding-top: 6px;
    padding-bottom: 6px;
}


.hu-topbar-inner {
    min-height: 0;
}


/* =========================================================
   BREADCRUMBS AUSBLENDEN
   ========================================================= */

.breadcrumb,
.breadcrumbs,
.entry-breadcrumbs,
.site-breadcrumbs,
.hu-breadcrumb,
.hu-breadcrumbs,
.page-breadcrumb,
.page-breadcrumbs,
.breadcrumb-area,
.breadcrumb-wrapper {
    display: none !important;
}


/* =========================================================
   ALLGEMEINE RESPONSIVE KORREKTUREN
   ========================================================= */

html,
body {
    max-width: 100% !important;
    overflow-x: hidden !important;
}


/* iPhone / iPad Hochformat:
   geöffnetes Menü vollständig über dem Inhalt */
@media (max-width: 899px) {

    .hu-site-header,
    .hu-nav-shell,
    .hu-nav {
        position: relative;
        z-index: 9999 !important;
    }

    .hu-nav {
        overflow: visible !important;
    }
}


/* =========================================================
   EINHEITLICHES LOGO / HOME-BUTTON
   ========================================================= */

.hu-nav {
    position: relative !important;
}


.hu-brand {
    position: absolute !important;
    z-index: 10000 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    background: #fff !important;
}


.hu-brand .custom-logo-link,
.hu-brand .hu-logo-fallback {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    overflow: hidden !important;
}


.hu-brand img,
.hu-brand img.custom-logo {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 50% !important;
    transform: none !important;
}


/* =========================================================
   PC AB 1201 PX
   ========================================================= */

@media (min-width: 1201px) {

    .hu-nav {
        max-width: none !important;
        width: 100% !important;
        padding-left: 24px !important;
        padding-right: 24px !important;
        box-sizing: border-box !important;
    }

    .hu-brand {
        left: 24px !important;
        top: 38% !important;
        width: 100px !important;
        height: 100px !important;
        transform: translateY(-50%) !important;
    }

    .hu-menu {
        padding-left: 0 !important;
    }

    .hu-menu ul {
        margin-left: 0 !important;
    }

    .hu-menu li:first-child {
        margin-left: 130px !important;
    }
}


/* =========================================================
   iPAD QUERFORMAT / KLEINERE DESKTOPBREITEN
   900 BIS 1200 PX

   Logo-Position oben und Menüposition links werden
   über "Heckengäu Unimogs Einstellungen" gesteuert.
   ========================================================= */

@media (min-width: 900px) and (max-width: 1200px) {

    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }


    .hu-site-header,
    .hu-nav-shell,
    .hu-nav,
    .hu-container,
    .site-content,
    .hu-hero,
    .hu-front-page,
    .hu-home-hero {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }


    .hu-site-header,
    .hu-nav-shell,
    .hu-nav {
        overflow: visible !important;
    }


    .hu-nav {
        position: relative !important;
        padding-left: 0 !important;
        padding-right: 12px !important;
    }


    /* Logo:
       Position oben kommt aus dem neuen Eingabefeld */
    .hu-brand {
        position: absolute !important;
        left: 8px !important;
        width: 80px !important;
        height: 80px !important;
        z-index: 10000 !important;
    }


    .hu-menu-toggle {
        display: none !important;
    }


    /* Menü:
       horizontale Position kommt aus dem neuen Eingabefeld */
    .hu-menu {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
    }


    .hu-menu ul,
    .hu-nav ul {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
    }


    .hu-menu li,
    .hu-menu li:first-child {
        position: static !important;
        left: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }


    .hu-menu a,
    .hu-nav a {
        display: block !important;
        padding: 8px 4px !important;
        font-size: 90% !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
    }


    .hu-hero img,
    .hu-home-hero img,
    .site-content img {
        max-width: 100% !important;
        height: auto !important;
    }


    .hu-content {
        padding-left: 30px !important;
        padding-right: 30px !important;
        box-sizing: border-box !important;
    }
}


/* =========================================================
   iPHONE / iPAD HOCHFORMAT
   ========================================================= */

@media (max-width: 899px) {

    .hu-brand {
        left: 50% !important;
        top: 50% !important;
        width: 60px !important;
        height: 60px !important;
        transform: translate(-50%, -50%) !important;
    }
}


/* =========================================================
   MITGLIEDERBEREICH
   ========================================================= */

a.huc-member-tile[href*="/mitgliederbereich/fahrzeuge-mitglieder/"] small {
    font-size: 0 !important;
}


a.huc-member-tile[href*="/mitgliederbereich/fahrzeuge-mitglieder/"] small::after {
    content: "Unimogs unserer Mitglieder";
    font-size: 14px !important;
}


/* =========================================================
   STARTSEITEN-TITELBILD
   ========================================================= */

.hu-title-image-wrap {
    margin: 0 !important;
    text-align: center !important;
}


.hu-title-image {
    display: inline-block !important;
    width: min(950px, 84vw) !important;
    height: auto !important;
    max-width: 100% !important;
}


@media (max-width: 768px) {

    .hu-title-image {
        width: 92vw !important;
    }
}


/* =========================================================
   HERO-BEREICH
   ========================================================= */

.hu-hero {
    min-height: 620px !important;
}


@media (max-width: 768px) {

    .hu-hero {
        min-height: 680px !important;
    }
}


.hu-quick {
    margin-top: 0 !important;
    position: relative !important;
}


/* =========================================================
   FAHRZEUGE-SYMBOL
   ========================================================= */

a[href*="fahrzeuge"]::before {
    content: "";
    display: inline-block;
    width: 72px;
    height: 40px;
    background-image: url("https://heckengaeuunimogs.de/wp-content/uploads/2026/08/unimog-fahrzeuge-icon.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    vertical-align: middle;
    margin-right: 8px;
}


/* Altes Traktor-Symbol ausblenden */
a[href*="fahrzeuge"] img,
a[href*="fahrzeuge"] svg {
    display: none !important;
}


/* =========================================================
   "WEITERLESEN" AUSBLENDEN
   ========================================================= */

.more-link,
.wp-block-post-excerpt__more-link {
    display: none !important;
}


.hu-post-card > a {
    display: none !important;
}


/* =========================================================
   GALERIE – OBEREN LEERRAUM AUF iPHONE UND iPAD VERKLEINERN
   Nur Seite Galerie – Seiten-ID 104
   ========================================================= */

@media (max-width: 1024px) {

    body.page-id-104 .site-content,
    body.page-id-104 .content-area,
    body.page-id-104 .site-main,
    body.page-id-104 main {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }


    body.page-id-104 article,
    body.page-id-104 .hentry {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }


    body.page-id-104 .entry-header,
    body.page-id-104 .entry-content,
    body.page-id-104 .wp-block-post-content {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}
@media (max-width: 1024px) {
    body.page-id-104 .hu-content {
        padding-top: 20px !important;
        margin-top: 0 !important;
    }
}
/* =========================================================
   NORMALE SEITEN – OBEREN LEERRAUM AUF iPHONE UND iPAD
   VERKLEINERN
   ========================================================= */

@media (max-width: 1024px) {

    body.page .site-content,
    body.page .content-area,
    body.page .site-main,
    body.page main {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    body.page article,
    body.page .hentry {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    body.page .entry-header,
    body.page .entry-content,
    body.page .wp-block-post-content {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    body.page .hu-content {
        margin-top: 0 !important;
        padding-top: 20px !important;
    }
}
/* =========================================================
   BEITRÄGE / EINZELANSICHTEN
   Oberen Leerraum auf iPhone und iPad verkleinern
   ========================================================= */

@media (max-width: 1024px) {

    body.single .site-content,
    body.single .content-area,
    body.single .site-main,
    body.single main {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    body.single article,
    body.single .hentry {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    body.single .entry-header,
    body.single .entry-content,
    body.single .wp-block-post-content {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    body.single .hu-content {
        margin-top: 0 !important;
        padding-top: 20px !important;
    }
}
/* =========================================================
   Zurück-Button – nur iPhone etwas höher
   ========================================================= */

@media (max-width: 600px) {

    .hu-back-button {
        bottom: 45px !important;
    }

}
/* =========================================================
   iPHONE QUERFORMAT – mobiles Menü erzwingen
   ========================================================= */

@media (max-width: 899px) and (orientation: landscape) {

    .hu-menu-toggle {
        display: block !important;
    }

    .hu-menu {
        display: none !important;
    }

    .hu-menu.is-open,
    .hu-menu.open,
    .hu-menu.active {
        display: block !important;
    }

    .hu-nav {
        position: relative !important;
    }

    .hu-brand {
        left: 50% !important;
        top: 50% !important;
        width: 60px !important;
        height: 60px !important;
        transform: translate(-50%, -50%) !important;
    }
}
/* =========================================================
   iPHONE QUERFORMAT – geöffnetes Menü untereinander
   ========================================================= */

@media (max-width: 899px) and (orientation: landscape) {

    .hu-menu.is-open,
    .hu-menu.open,
    .hu-menu.active {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 99999 !important;
        background: #222 !important;
    }

    .hu-menu.is-open ul,
    .hu-menu.open ul,
    .hu-menu.active ul {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 10px 0 !important;
    }

    .hu-menu.is-open li,
    .hu-menu.open li,
    .hu-menu.active li {
        width: 100% !important;
        margin: 0 !important;
        text-align: center !important;
    }

    .hu-menu.is-open a,
    .hu-menu.open a,
    .hu-menu.active a {
        display: block !important;
        width: 100% !important;
        padding: 10px 15px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
    }
}
/* =========================================================
   iPAD – mobiles Menü wie beim iPhone
   Hochformat und Querformat
   ========================================================= */

/* iPad Hochformat */
@media (min-width: 601px) and (max-width: 899px) {

    .hu-menu-toggle {
        display: block !important;
    }

    .hu-menu {
        display: none !important;
    }

    .hu-menu.is-open,
    .hu-menu.open,
    .hu-menu.active {
        display: block !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 99999 !important;
        background: #222 !important;
    }

    .hu-menu.is-open ul,
    .hu-menu.open ul,
    .hu-menu.active ul {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 10px 0 !important;
    }

    .hu-menu.is-open li,
    .hu-menu.open li,
    .hu-menu.active li {
        width: 100% !important;
        margin: 0 !important;
        text-align: center !important;
    }

    .hu-menu.is-open a,
    .hu-menu.open a,
    .hu-menu.active a {
        display: block !important;
        width: 100% !important;
        padding: 10px 15px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
    }
}


/* iPad Querformat */
@media (min-width: 900px) and (max-width: 1200px) {

    .hu-menu-toggle {
        display: block !important;
    }

    .hu-menu {
        display: none !important;
    }

    .hu-menu.is-open,
    .hu-menu.open,
    .hu-menu.active {
        display: block !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 99999 !important;
        background: #222 !important;
    }

    .hu-menu.is-open ul,
    .hu-menu.open ul,
    .hu-menu.active ul {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 10px 0 !important;
    }

    .hu-menu.is-open li,
    .hu-menu.open li,
    .hu-menu.active li {
        width: 100% !important;
        margin: 0 !important;
        text-align: center !important;
    }

    .hu-menu.is-open a,
    .hu-menu.open a,
    .hu-menu.active a {
        display: block !important;
        width: 100% !important;
        padding: 10px 15px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
    }
}
/* =========================================================
   iPAD QUERFORMAT – Start/Logo-Button mittig
   ========================================================= */

@media (min-width: 900px) and (max-width: 1200px) {

    .hu-brand {
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
}