/*
 Theme Name:   GeneratePress Child
 Description:  RunnersGate Design Anpassung (T3 Style)
 Author:       Dein Name
 Template:     generatepress
 Version:      1.0.0
*/

/* =========================================================
   Basis
========================================================= */

body {
    background: #ffffff;
}

/* GeneratePress Grau komplett entfernen */
.site,
.site-content,
.content-area,
.inside-article,
.separate-containers,
.one-container,
.container {
    background-color: #ffffff !important;
}

/* GeneratePress Standard-Header / Navigation / Footer ausblenden */
.site-header,
#site-navigation,
#colophon {
    display: none;
}

/* =========================================================
   Top Header
========================================================= */

.rg-top-header {
    background:
        linear-gradient(rgba(255,255,255,0.22), rgba(255,255,255,0.22)),
        url('https://wp.runnersgate.de/wp-content/themes/generatepress-child/images/body-bg.webp');
    background-repeat: repeat;
    background-position: center;
    background-size: auto;
    border-bottom: 3px solid #43c7f4;
    padding: 18px 0;
}

.rg-top-header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 30px;
    position: relative;
}

.rg-logo-wrap {
    justify-self: start;
}

.rg-logo-link {
    display: inline-block;
    line-height: 0;
    text-decoration: none;
}

.rg-logo {
    display: block;
    max-height: 105px;
    width: auto;
}

/* Suche mittig */
.rg-search-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    grid-column: 2;
}

.rg-search-form {
    display: flex;
    width: 100%;
    max-width: 390px;
}

.rg-search-field {
    flex: 1 1 auto;
    height: 42px;
    padding: 0 16px;
    border: 1px solid #cfcfcf;
    border-right: 0;
    background: #ffffff;
    font-size: 15px;
    color: #333333;
    box-sizing: border-box;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
}

.rg-search-field:focus {
    outline: none;
    border-color: #43c7f4;
    box-shadow: 0 0 0 2px rgba(67,199,244,0.15);
}

.rg-search-button {
    width: 56px;
    height: 42px;
    border: 0;
    background: #43c7f4;
    color: #ffffff;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 -2px 0 rgba(0,0,0,0.15);
}

.rg-search-button:hover {
    opacity: 0.92;
}

/* rechter Spacer fuer optische Zentrierung */
.rg-top-header-inner::after {
    content: "";
    display: block;
    width: 1px;
    height: 1px;
}

/* =========================================================
   Hauptnavigation
========================================================= */

.rg-main-nav {
    background:
        linear-gradient(rgba(12,12,12,0.94), rgba(12,12,12,0.94)),
        url('https://wp.runnersgate.de/wp-content/themes/generatepress-child/images/footer-bg.webp');
    background-repeat: repeat-x;
    background-position: center top;
    background-size: auto 66px;
    border-top: 0;
    border-bottom: 0;
}

.rg-main-nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.rg-menu-toggle {
    display: none;
    width: 54px;
    height: 54px;
    padding: 0;
    border: 0;
    background: #000000;
    cursor: pointer;
}

.rg-menu-toggle span {
    display: block;
    width: 28px;
    height: 4px;
    margin: 5px auto;
    background: #ffffff;
}

.rg-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.rg-menu > li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rg-menu > li > a {
    display: block;
    padding: 18px 20px;
    color: #ffffff;
    text-decoration: none;
    text-transform: none;
    font-size: 17px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.2px;
}

.rg-menu > li > a:hover,
.rg-menu > li.current-menu-item > a,
.rg-menu > li.current_page_item > a,
.rg-menu > li.current-menu-ancestor > a {
    color: #43c7f4;
}

/* Haus-Icon */
.rg-menu > li:first-child > a {
    width: 52px;
    padding-left: 0;
    padding-right: 0;
    text-indent: -9999px;
    position: relative;
}

.rg-menu > li:first-child > a::before {
    content: "⌂";
    text-indent: 0;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -56%);
    color: #43c7f4;
    font-size: 28px;
    font-weight: 700;
}

.rg-menu > li:first-child > a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    width: 18px;
    height: 2px;
    background: #43c7f4;
}

/* Dropdowns */
.rg-menu li {
    position: relative;
}

.rg-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #1a1a1a;
    z-index: 9999;
}

.rg-menu li:hover > .sub-menu {
    display: block;
}

.rg-menu .sub-menu li a {
    display: block;
    padding: 12px 16px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.3;
    white-space: nowrap;
}

.rg-menu .sub-menu li a:hover {
    background: #262626;
    color: #43c7f4;
}

/* =========================================================
   Content
========================================================= */

.site-content {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 25px;
}

.inside-article {
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* =========================================================
   Custom Footer
========================================================= */

.rg-footer {
    margin-top: 40px;
    background-color: #0f0f0f;
    background-image:
        linear-gradient(rgba(10,10,10,0.30), rgba(10,10,10,0.30)),
        url('https://wp.runnersgate.de/wp-content/themes/generatepress-child/images/footer-bg.webp');
    background-repeat: repeat-x;
    background-position: center top;
    background-size: auto 140px;
    color: #ffffff;
    min-height: 140px;
    display: flex;
    align-items: center;
}

.rg-footer-inner {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.rg-footer-left,
.rg-footer-right {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.rg-footer a {
    color: #ffffff;
    text-decoration: none;
}

.rg-footer a:hover {
    color: #43c7f4;
}

.rg-footer-sep {
    display: inline-block;
    margin: 0 8px;
    opacity: 0.75;
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 1024px) {
    .rg-top-header-inner {
        grid-template-columns: 1fr;
        gap: 20px;
        justify-items: center;
    }

    .rg-logo-wrap {
        justify-self: center;
    }

    .rg-search-wrap {
        grid-column: auto;
        justify-content: center;
        width: 100%;
        max-width: 100%;
    }

    .rg-search-form {
        max-width: 100%;
    }

    .rg-top-header-inner::after {
        display: none;
    }

    .rg-logo {
        max-height: 85px;
    }

    .rg-menu-toggle {
        display: block;
        position: absolute;
        top: 0;
        right: 20px;
        z-index: 10001;
    }

    .rg-main-nav-inner {
        padding: 0;
    }

    .rg-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        background: #0f0f0f;
        position: relative;
        z-index: 10000;
    }

    .rg-menu.is-open {
        display: flex;
    }

    .rg-menu > li {
        width: 100%;
    }

    .rg-menu > li > a {
        padding: 14px 18px;
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    .rg-menu > li:first-child > a {
        width: 100%;
        padding-left: 18px;
        padding-right: 18px;
        text-indent: 0;
    }

    .rg-menu > li:first-child > a::before,
    .rg-menu > li:first-child > a::after {
        display: none;
    }

    .rg-menu .sub-menu {
        position: static;
        display: block;
        min-width: 100%;
    }

    .rg-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .rg-footer {
        min-height: auto;
        padding: 24px 0;
    }

    .rg-footer-left,
    .rg-footer-right {
        font-size: 12px;
    }
}