/* ==========================================================================
FILE: css/custom.css

STRUKTUR
01 BASE
02 HEADER SYSTEM
03 DESKTOP >1250px
04 TABLET 769px–1250px
05 MOBILE <=768px
06 RESPONSIVE STATES
07 BURGER ICON
08 TYPOGRAFIE
========================================================================== */


/* ==========================================================================
01 BASE
    Contentbreite
    Sticky Footer 
========================================================================== */

/* =========================================
   CONTENT  Containerbreite 1300
    - ohne Definion Layout zentriert
    - mit Sidebars Breite begrenzt
   ========================================= */

/* GeneratePress kompletter Layout-Stack */
.site.grid-container.container,
.site-content,
.inside-article,
.entry-content {
    max-width: 1300px !important;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   sticky footer
   ========================================= */

/* Browserhöhe vollständig nutzen */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Body als vertikales Flex-Layout */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hauptwrapper wächst */
/* GeneratePress Container nicht zerstören */
#page {
    flex: 1 0 auto;
}

/* Inhaltsbereich wächst */
.site-content {
    flex: 1 0 auto;
}

/* Footer wird nach unten gedrückt */
.site-footer {
    margin-top: auto;
}


/* ==========================================================================
02 HEADER SYSTEM
Custom Header Grundstruktur

Breakpoints:
Desktop   >1250px
Tablet    769px–1250px
Mobile    <=768px
========================================================================== */

/* Gesamter Headerbereich */
.gb-custom-header {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Innerer Headercontainer */
.gb-header-inner {
    position: relative;
    margin: 0 auto;
}

/* Logo-Grundverhalten */
.gb-header-logo {
    line-height: 0;
}

/* Logo-Bild allgemein */
.gb-header-logo img {
    display: block;
    width: auto;
    height: auto;
}

/* Navigationen standardisieren */
.gb-menu,
.gb-mobile-menu-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Listenpunkte entfernen */
.gb-menu li,
.gb-mobile-menu-list li {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Links Grundstil */
.gb-menu a,
.gb-mobile-menu-list a {
    text-decoration: none;
    white-space: nowrap;
}

/* Mobiles Menü standardmäßig geschlossen */
.gb-mobile-menu {
    display: none;
}


/* ==========================================================================
03 DESKTOP >1250px
Menü links | Logo mittig | Menü rechts
Großes Logo 420px
========================================================================== */

@media (min-width: 1251px) {

    /* Headerhöhe wie bisher */
    .gb-custom-header {
        padding-top: 2px;
    }

    .gb-header-inner {
        min-height: 120px;
    }

    /* Logo exakt mittig */
    .gb-header-logo {
        position: absolute;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
        z-index: 5;
    }

    /* Desktop Logo */
    .gb-header-logo img {
        width: 420px;
        max-width: none;
    }

    /* Linke und rechte Navigationsspalte */
    .gb-header-left,
    .gb-header-right {
        position: absolute;
        top: 0;
        bottom: 0;
        width: 40%;
        display: flex;

        /* Navigation optisch höher setzen */
        align-items: flex-start;
        padding-top: 42px;

        z-index: 20;
    }

    /* Linkes Menü */
    .gb-header-left {
        left: 0;
        justify-content: flex-end;
        padding-right: 180px;
    }

    /* Rechtes Menü */
    .gb-header-right {
        right: 0;
        justify-content: flex-start;
        padding-left: 180px;
    }

    /* Desktop Menü horizontal */
    .gb-header-left .gb-menu,
    .gb-header-right .gb-menu {
        display: flex;
        gap: 28px;
        align-items: center;
    }

    /* Burger und mobiles Menü aus */
    .gb-menu-toggle,
    .gb-mobile-menu {
        display: none;
    }
}

/* ==========================================================================
MOBILE UND TABLET MENÜ
========================================================================== */
/* Mobile / Tablet Menü vertikal + zentriert */
.gb-mobile-menu-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* ==========================================================================
04 TABLET 769px–1250px
Logo mittig | Burger rechts
Desktop-Menüs ausgeblendet
========================================================================== */

@media (min-width: 769px) and (max-width: 1250px) {

    /* Headerhöhe reduziert */
    .gb-custom-header {
        padding-top: 2px;
    }

    .gb-header-inner {
        min-height: 92px;
    }

    /* Desktop-Menüs aus */
    .gb-header-left,
    .gb-header-right {
        display: none;
    }

    /* Logo mittig */
    .gb-header-logo {
        position: absolute;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
        z-index: 5;
    }

    /* Tablet Logo */
    .gb-header-logo img {
        width: 420px;
        max-width: none;
    }

    /* Burger rechts */
    .gb-menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 28px;
        z-index: 50;
    }

    /* Menü klappt unter Header auf */
    .gb-mobile-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        padding: 28px 30px;
        background: var(--base-2);
        text-align: center;
        z-index: 40;
    }

    /* Geöffnet */
    .gb-mobile-menu.is-open {
        display: block;
    }
}


/* ==========================================================================
05 MOBILE <=768px
Kleineres Logo links | Burger rechts | Menü darunter
========================================================================== */

@media (max-width: 768px) {

    /* Kompakter mobiler Header */
    .gb-custom-header {
        padding: 0;
        margin: 0;
    }

    .gb-header-inner {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: space-between;

        /* gleicher Innenabstand links/rechts */
        padding: 2px 30px 0 30px;

        min-height: 92px;
    }

    /* Desktop Menüs aus */
    .gb-header-left,
    .gb-header-right {
        display: none;
    }

    /* Logo links */
    .gb-header-logo {
        order: 1;
        position: static;
        transform: none;
    }

    /* Desktop Logo ausblenden */
    .gb-header-logo img {
        display: none;
    }

    /* Eigenes Mobile Logo */
    .gb-header-logo::before {
        content: "";
        display: block;

        width: 160px;
        height: 48px;

        background-image: url("/wp-content/uploads/2026/04/logo-mobile.svg");
        background-repeat: no-repeat;
        background-position: left center;
        background-size: contain;
    }

    /* Burger rechts */
    .gb-menu-toggle {
        display: block;
        order: 2;
        position: absolute;
        top: 14px;
        right: 30px;
        z-index: 50;
    }

    /* Menü klappt unter Header auf */
    .gb-mobile-menu {
        display: none;
        order: 3;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        margin: 0;
        padding: 28px 30px;
        background: var(--base-2);
        text-align: center;
        z-index: 40;
    }

    /* Geöffnet */
    .gb-mobile-menu.is-open {
        display: block;
    }
}


/* ==========================================================================
06 RESPONSIVE STATES
Zusätzliche Sicherheitsregeln
========================================================================== */

/* Desktop: Burger nie sichtbar */
@media (min-width: 1251px) {
    .gb-menu-toggle {
        display: none;
    }
}


/* ==========================================================================
07 BURGER ICON
3 Linien sauber zentriert
========================================================================== */

/* Buttonfläche transparent */
.gb-menu-toggle {
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent !important;
    box-shadow: none;
    outline: none;
    cursor: pointer;
}

/* Auch in allen Zuständen transparent */
.gb-menu-toggle:hover,
.gb-menu-toggle:focus,
.gb-menu-toggle:active,
.gb-menu-toggle.is-active {
    background: transparent !important;
    box-shadow: none;
    outline: none;
}

/* Mittlere + obere + untere Linie */
.gb-menu-toggle span,
.gb-menu-toggle span::before,
.gb-menu-toggle span::after {
    position: absolute;
    left: 50%;
    width: 24px;
    height: 2px;
    content: "";
    border-radius: 2px;
    background: var(--contrast2);
    transform: translateX(-50%);
    transition:
        transform 0.25s ease,
        top 0.25s ease,
        background 0.20s ease,
        opacity 0.20s ease;
}

/* Mittlere Linie */
.gb-menu-toggle span {
    top: 16px;
}

/* Obere Linie */
.gb-menu-toggle span::before {
    top: -6px;
}

/* Untere Linie */
.gb-menu-toggle span::after {
    top: 6px;
}

/* Burger aktiv = X */
.gb-menu-toggle.is-active span {
    background: transparent;
}

/* obere Linie diagonal */
.gb-menu-toggle.is-active span::before {
    top: 0;
    transform: translateX(-50%) rotate(45deg);
}

/* untere Linie diagonal */
.gb-menu-toggle.is-active span::after {
    top: 0;
    transform: translateX(-50%) rotate(-45deg);
}


/* ==========================================================================
08 TYPOGRAFIE
Navigation Schrift
========================================================================== */

/* Navigation Desktop + Mobile */
.gb-menu a,
.gb-mobile-menu-list a {
    font-family: "Open Sans", sans-serif;
    font-size: 14px;

    /* Kein Umbruch */
    white-space: nowrap;

    /* Standardfarbe */
    color: var(--contrast);

    text-decoration: none;
}

/* Hover */
.gb-menu a:hover,
.gb-menu a:focus,
.gb-mobile-menu-list a:hover,
.gb-mobile-menu-list a:focus {
    color: var(--accent);
}



