/* =========================================================
   LAYOUT.CSS - Header, Navbar, Footer, Grid-Struktur
   Heinz Autocenter GmbH & Co. KG - MODX 3 Theme
   ========================================================= */

/* ---- HEADER ---- */
header {
    background-color: #ffffff;
}

#navbar-5 {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Logo-Bereich */
.header-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}
.header-logo-wrap img {
    max-height: 8rem;
    max-width: 20rem;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Partner-Logos oben rechts */
.header-brand-logos {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 1.25rem 0;
}
.header-brand-logos img {
    max-height: 4.5rem;
    max-width: 7.5rem;
    object-fit: contain;
    width: auto;
    height: auto;
}

/* ---- TOPBAR / ALERTBANNER ---- */
.topbar {
    background-color: var(--topbar-background-colour);
    color: var(--topbar-text-colour);
    padding: 0.5rem 1rem;
    text-align: center;
    font-size: 0.875rem;
}

/* ---- HAUPTNAVIGATION ---- */
.main-nav {
    position: sticky;
    top: 0;
    z-index: 90;
    width: 100%;
    background-color: var(--secondary-colour);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-nav-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0.5rem 0;
    flex-wrap: wrap;
}

/* Nav-Items */
.nav-item {
    position: relative;
}
.nav-item > button,
.nav-item > a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e5e7eb;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s;
}
.nav-item > button:hover,
.nav-item > a:hover {
    color: var(--primary-colour);
}

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 14rem;
    background-color: var(--secondary-colour);
    border-radius: 0 0 0.75rem 0.75rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    z-index: 80;
    display: none;
    flex-direction: column;
    padding: 0.5rem 0;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
    display: flex;
}
.nav-dropdown a {
    display: block;
    color: #e5e7eb;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    transition: color 0.15s;
}
.nav-dropdown a:hover {
    color: var(--primary-colour);
}

/* Mobile Hamburger */
.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #e5e7eb;
}
.hamburger-line {
    display: block;
    margin: auto;
    height: 2px;
    width: 50%;
    background-color: #e5e7eb;
    transition: all 0.25s ease-in-out;
}

@media (min-width: 1024px) {
    .mobile-menu-toggle { display: none; }
}

/* ---- MAIN CONTENT ---- */
main {
    min-height: 60vh;
}

/* ---- FOOTER ---- */
.site-footer {
    background-color: var(--footer-background-colour);
    color: var(--footer-text-colour);
    padding: 2rem 0 2rem;
}
@media (min-width: 1024px) {
    .site-footer { padding: 4rem 0; }
}

.site-footer a {
    color: var(--footer-text-colour);
    transition: opacity 0.15s;
}
.site-footer a:hover { opacity: 0.75; }

.footer-address {
    font-size: 0.75rem;
    text-align: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
.footer-address strong { color: var(--footer-text-colour); }

.footer-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    align-items: center;
    padding: 1rem 0;
}
.footer-links a {
    font-size: 0.875rem;
    font-weight: 600;
}

.footer-legal {
    font-size: 0.75rem;
    line-height: 1.6;
    margin-top: 1rem;
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-social svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: var(--footer-text-colour);
}

/* ---- SECTION SPACINGS ---- */
.section { padding: 3rem 0; }
.section-lg { padding: 4rem 0; }
@media (min-width: 1024px) {
    .section { padding: 4rem 0; }
    .section-lg { padding: 6rem 0; }
}
