/* Grundlegender Schutz fuer schmale Viewports. Diese Regeln stehen bewusst
   ganz am Anfang, damit intrinsische Bild- und Videobreiten auf keinem
   Mobilbrowser das Dokument verbreitern koennen. */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
video,
svg {
    max-width: 100%;
}

/* =========================================================
   KapaMatch – Hauptnavigation
   ========================================================= */

:root {
    --bau-charcoal: #202529;
    --bau-charcoal-light: #2c3237;
    --bau-yellow: #ffbd0a;
    --bau-yellow-light: #ffd45c;
    --bau-red: #dc3545;
    --bau-white-soft: #f4f6f7;
}

.bau-cookie-consent {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1080;
    padding: 1.25rem 0;
    color: #212529;
    background: #fff;
    border-top: 1px solid #adb5bd;
}

.bau-cookie-consent[hidden] {
    display: none;
}

.bau-footer-link-button {
    padding: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    vertical-align: baseline;
}

/* =========================================================
   Zugriffsverweigerung
   ========================================================= */

.bau-access-denied {
    display: grid;
    min-height: clamp(430px, 64vh, 650px);
    place-items: center;
    padding: clamp(2rem, 6vw, 5rem) 1rem;
}

.bau-access-denied-card {
    display: grid;
    width: min(100%, 860px);
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
    padding: clamp(1.5rem, 5vw, 3.5rem);
    border: 1px solid rgba(32, 37, 41, 0.14);
    border-top: 5px solid var(--bau-yellow);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 18px 50px rgba(32, 37, 41, 0.12);
}

.bau-access-denied-icon {
    position: relative;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(255, 189, 10, 0.18);
}

.bau-access-denied-icon::before {
    position: absolute;
    top: 17px;
    left: 25px;
    width: 27px;
    height: 23px;
    border: 5px solid var(--bau-charcoal);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    content: "";
}

.bau-access-denied-icon span {
    position: absolute;
    top: 35px;
    left: 20px;
    width: 37px;
    height: 27px;
    border-radius: 6px;
    background: var(--bau-charcoal);
}

.bau-access-denied-icon span::after {
    position: absolute;
    top: 8px;
    left: 16px;
    width: 5px;
    height: 11px;
    border-radius: 4px;
    background: var(--bau-yellow);
    content: "";
}

.bau-access-denied-kicker {
    display: inline-block;
    margin-bottom: 0.65rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: var(--bau-yellow);
    color: var(--bau-charcoal);
    font-size: 0.78rem;
    font-weight: 800;
}

.bau-access-denied-content h1 {
    margin-bottom: 1rem;
    color: var(--bau-charcoal);
    font-weight: 800;
}

.bau-access-denied-content .lead {
    color: var(--bau-charcoal);
    font-weight: 600;
}

.bau-access-denied-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

@media (max-width: 575.98px) {
    .bau-access-denied-card {
        grid-template-columns: 1fr;
    }

    .bau-access-denied-icon {
        width: 64px;
        height: 64px;
        transform: scale(0.84);
        transform-origin: top left;
    }

    .bau-access-denied-actions {
        display: grid;
    }
}

/* CSP-sichere Layout-Hilfsklassen */

.bau-min-width-0 { min-width: 0; }
.bau-min-width-180 { min-width: 180px; }
.bau-min-width-210 { min-width: 210px; }
.bau-min-width-260 { min-width: 260px; }
.bau-min-width-280 { min-width: 280px; }
.bau-max-width-720 { max-width: 720px; }
.bau-max-width-900 { max-width: 900px; }
.bau-pre-line { white-space: pre-line; }
.validation-summary-valid { display: none; }

html {
    scroll-behavior: smooth;
}

#cancel-subscription {
    scroll-margin-top: 7rem;
}

.site-header {
    z-index: 1030;
}

.bau-navbar {
    min-height: 76px;
    padding: 0.65rem 0;
    background: linear-gradient( 135deg, var(--bau-charcoal) 0%, #171b1e 100%);
    border-bottom: 3px solid var(--bau-yellow);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.18);
}

.bau-navbar-container {
    width: 100%;
    max-width: 1800px;
    padding-right: clamp(1rem, 2vw, 2rem);
    padding-left: clamp(1rem, 2vw, 2rem);
}

/* Deutlich sichtbarer Bereich für angemeldete Firmen */

.bau-workspace-indicator {
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    font-size: 0.84rem;
}

.bau-workspace-indicator-container {
    display: flex;
    width: 100%;
    max-width: 1800px;
    min-height: 36px;
    align-items: center;
    gap: 0.55rem;
    padding-right: clamp(1rem, 2vw, 2rem);
    padding-left: clamp(1rem, 2vw, 2rem);
}

.bau-workspace-role-mark {
    display: inline-flex;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 900;
}

.bau-workspace-description {
    opacity: 0.78;
}

.bau-workspace-indicator-client {
    background: #eaf3ff;
    color: #123d70;
}

    .bau-workspace-indicator-client .bau-workspace-role-mark {
        background: #0d6efd;
        color: white;
    }

.bau-workspace-indicator-contractor {
    background: #fff4cf;
    color: #5b4300;
}

    .bau-workspace-indicator-contractor .bau-workspace-role-mark {
        background: var(--bau-yellow);
        color: var(--bau-charcoal);
    }

/* Logo */

.bau-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-right: 1.75rem;
    color: white !important;
    text-decoration: none;
}

.bau-brand-mark {
    width: 42px;
    height: 42px;
    display: block;
    flex-shrink: 0;
    border-radius: 9px;
    object-fit: contain;
    box-shadow: 0 4px 12px rgba(255, 189, 10, 0.25);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.bau-brand:hover .bau-brand-mark {
    transform: rotate(-4deg) scale(1.07);
    box-shadow: 0 7px 18px rgba(255, 189, 10, 0.38);
}

.bau-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.bau-brand-name {
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.bau-brand-highlight {
    color: var(--bau-yellow);
}

.bau-brand-subtitle {
    margin-top: 0.25rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* Normale Menüpunkte mit Mouseover */

.bau-main-navigation {
    gap: 0.15rem;
}

.bau-navbar .bau-nav-link {
    position: relative;
    margin: 0 0.05rem;
    padding: 0.72rem 0.7rem !important;
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 0.91rem;
    font-weight: 600;
    white-space: nowrap;
    transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

    .bau-navbar .bau-nav-link::after {
        position: absolute;
        right: 50%;
        bottom: 4px;
        left: 50%;
        height: 3px;
        border-radius: 3px;
        background: var(--bau-yellow);
        content: "";
        transition: right 180ms ease, left 180ms ease;
    }

    .bau-navbar .bau-nav-link:hover,
    .bau-navbar .bau-nav-link:focus,
    .bau-navbar .dropdown.show > .bau-nav-link,
    .bau-navbar .bau-nav-link.active {
        color: white !important;
        background: rgba(255, 255, 255, 0.08);
    }

    .bau-navbar .bau-nav-link:hover,
    .bau-navbar .bau-nav-link:focus,
    .bau-navbar .dropdown.show > .bau-nav-link {
        transform: translateY(-2px);
    }

        .bau-navbar .bau-nav-link:hover::after,
        .bau-navbar .bau-nav-link:focus::after,
        .bau-navbar .dropdown.show > .bau-nav-link::after,
        .bau-navbar .bau-nav-link.active::after {
            right: 12px;
            left: 12px;
        }

/* Wichtigste Aktion */

.bau-navbar .bau-primary-action {
    margin-right: 0.35rem;
    padding-right: 1rem !important;
    padding-left: 1rem !important;
    border: 1px solid rgba(255, 189, 10, 0.72);
    background: rgba(255, 189, 10, 0.08);
    color: var(--bau-yellow-light) !important;
    box-shadow: none;
}

    .bau-navbar .bau-primary-action::after {
        display: none;
    }

    .bau-navbar .bau-primary-action:hover,
    .bau-navbar .bau-primary-action:focus {
        background: rgba(255, 189, 10, 0.18);
        color: var(--bau-yellow-light) !important;
        transform: translateY(-2px);
        box-shadow: 0 5px 14px rgba(255, 189, 10, 0.18);
    }

    .bau-navbar .bau-primary-action.active {
        border-color: var(--bau-yellow);
        background: var(--bau-yellow);
        color: var(--bau-charcoal) !important;
        box-shadow: 0 4px 12px rgba(255, 189, 10, 0.24);
    }

/* Sichtbarer Einstieg in die Suchabo-Konfiguration */

.bau-navbar .bau-subscription-link {
    display: inline-flex !important;
    align-items: center;
    gap: 0.38rem;
    border: 1px solid rgba(255, 189, 10, 0.48);
    background: rgba(255, 189, 10, 0.12);
    color: var(--bau-yellow-light) !important;
}

    .bau-navbar .bau-subscription-link::after {
        display: none;
    }

    .bau-navbar .bau-subscription-link:hover,
    .bau-navbar .bau-subscription-link:focus {
        border-color: var(--bau-yellow);
        background: rgba(255, 189, 10, 0.22);
        color: white !important;
        box-shadow: 0 5px 14px rgba(255, 189, 10, 0.15);
    }

    .bau-navbar .bau-subscription-link.active {
        border-color: var(--bau-yellow);
        background: var(--bau-yellow);
        color: var(--bau-charcoal) !important;
    }

.bau-subscription-icon {
    font-size: 0.9rem;
    line-height: 1;
}

/* Benachrichtigungszähler */

.bau-notification-link {
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
}

.bau-count-badge {
    min-width: 22px;
    padding: 0.28rem 0.42rem;
    background: var(--bau-red);
    color: white;
    box-shadow: 0 0 0 2px var(--bau-charcoal);
}

/* Administration */

.bau-navbar .bau-admin-link {
    color: #ff9ca5 !important;
    background: rgba(220, 53, 69, 0.1);
}

    .bau-navbar .bau-admin-link::after {
        background: #ff6372;
    }

    .bau-navbar .bau-admin-link:hover,
    .bau-navbar .bau-admin-link:focus {
        color: white !important;
        background: rgba(220, 53, 69, 0.22);
    }

.bau-admin-dropdown {
    border-top-color: var(--bau-red) !important;
}

/* Dropdown-Menüs */

.bau-dropdown {
    min-width: 235px;
    margin-top: 0.55rem !important;
    padding: 0.55rem;
    overflow: hidden;
    border: 0;
    border-top: 4px solid var(--bau-yellow);
    border-radius: 8px;
    background: white;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.2);
}

    .bau-dropdown .dropdown-header {
        padding: 0.5rem 0.75rem;
        color: #757b80;
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .bau-dropdown .dropdown-item {
        padding: 0.65rem 0.75rem;
        border-radius: 6px;
        color: #292e32;
        font-size: 0.92rem;
        font-weight: 550;
        transition: color 150ms ease, background-color 150ms ease, padding-left 150ms ease;
    }

        .bau-dropdown .dropdown-item:hover,
        .bau-dropdown .dropdown-item:focus {
            padding-left: 1rem;
            background: #fff3c4;
            color: #16191b;
        }

    .bau-dropdown .dropdown-divider {
        margin: 0.45rem 0;
    }

/* Benutzerkonto */

.bau-account-navigation {
    margin-left: 0.5rem;
}

.bau-account-link {
    display: flex !important;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.6rem !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9px;
    color: white !important;
    text-decoration: none;
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

    .bau-account-link:hover,
    .bau-account-link:focus,
    .bau-account-navigation .dropdown.show .bau-account-link {
        border-color: rgba(255, 189, 10, 0.7);
        background: rgba(255, 255, 255, 0.08);
        color: white !important;
        transform: translateY(-2px);
    }

.bau-account-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--bau-yellow);
    color: var(--bau-charcoal);
    font-weight: 900;
}

.bau-account-information {
    display: flex;
    max-width: 145px;
    flex-direction: column;
    line-height: 1.1;
}

.bau-account-label {
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.63rem;
    text-transform: uppercase;
}

.bau-account-role {
    overflow: hidden;
    color: var(--bau-yellow);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bau-account-name {
    overflow: hidden;
    margin-top: 0.16rem;
    color: white;
    font-size: 0.78rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bau-logout-button {
    color: #b42332 !important;
    font-weight: 650 !important;
}

/* Anmeldung und Registrierung */

.bau-navbar .bau-register-link {
    color: white !important;
}

.bau-login-button {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.65rem 1rem !important;
    border-radius: 7px;
    background: var(--bau-yellow);
    color: var(--bau-charcoal) !important;
    font-weight: 750;
    text-decoration: none;
    transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

    .bau-login-button:hover,
    .bau-login-button:focus {
        background: var(--bau-yellow-light);
        color: #111 !important;
        transform: translateY(-2px);
        box-shadow: 0 7px 17px rgba(255, 189, 10, 0.3);
    }

/* Seiteninhalt und Footer */

.bau-page-container {
    position: relative;
    padding-top: 1.25rem;
    isolation: isolate;
}

.bau-page-container > main {
    position: relative;
    z-index: 1;
}

/* Technische Fahrzeugzeichnungen */

.bau-home-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 189, 10, 0.22);
    background: linear-gradient(125deg, #171b1e 0%, var(--bau-charcoal) 64%, #2b3034 100%) !important;
}

.bau-home-hero::before {
    position: absolute;
    width: 540px;
    height: 260px;
    right: -55px;
    bottom: -56px;
    background: url("../images/equipment-dump-truck.svg") center / contain no-repeat;
    content: "";
    opacity: 0.18;
    transform: rotate(-1deg);
}

.bau-home-hero::after {
    position: absolute;
    width: 360px;
    height: 360px;
    top: -250px;
    left: 38%;
    border: 2px dashed rgba(255, 189, 10, 0.16);
    border-radius: 50%;
    content: "";
}

.bau-home-hero-content {
    position: relative;
    z-index: 1;
}

.bau-home-pricing-note {
    display: flex;
    max-width: 760px;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.75rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255, 189, 10, 0.52);
    border-left: 5px solid var(--bau-yellow);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.bau-home-pricing-note strong {
    color: var(--bau-yellow-light);
    font-size: 1.05rem;
}

.bau-home-pricing-note span {
    color: rgba(255, 255, 255, 0.88);
}

.bau-home-equipment-list {
    border: 1px solid rgba(255, 255, 255, 0.36);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.22);
}

/* Warme Inhaltsfläche der Startseite. Sie verbindet Vertrauenssignale,
   Fahrzeugauswahl, Erklärung, Zielgruppen und Handlungsaufforderung zu
   einer modernen Sandfläche, ohne ein Hintergrundbild zu laden. */

.bau-home-warm-zone {
    position: relative;
    width: 100%;
    margin-left: 0;
    overflow: hidden;
    padding: 2.5rem 0.75rem 3.25rem;
    background: #fff;
}

.bau-home-warm-zone-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1296px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .bau-home-warm-zone {
        padding: 3.25rem 1rem 4rem;
        background: #fff;
    }

    .bau-home-warm-zone-inner {
        width: 936px;
        max-width: 100%;
        margin: 0 auto;
    }

    .bau-home-warm-zone .card {
        border-color: rgba(174, 126, 25, 0.28);
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 14px 34px rgba(93, 67, 21, 0.1) !important;
    }

    .bau-home-warm-zone .bg-light {
        border: 1px solid rgba(174, 126, 25, 0.17);
        background: rgba(255, 252, 245, 0.88) !important;
        box-shadow: 0 14px 32px rgba(93, 67, 21, 0.08);
    }
}

@media (min-width: 1200px) {
    .bau-home-warm-zone-inner {
        width: 1116px;
    }
}

@media (min-width: 1400px) {
    .bau-home-warm-zone-inner {
        width: 1296px;
    }
}

/* Kompakte Vertrauenssignale direkt nach dem Startbereich */

.bau-trust-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #dce0e2;
    border-radius: 14px;
    background: white;
    box-shadow: 0 8px 22px rgba(32, 37, 41, 0.08);
}

.bau-trust-item {
    display: flex;
    min-height: 66px;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-right: 1px solid #e7eaec;
    border-bottom: 1px solid #e7eaec;
    color: var(--bau-charcoal);
}

.bau-trust-item:nth-child(3n) {
    border-right: 0;
}

.bau-trust-item:nth-last-child(-n + 3) {
    border-bottom: 0;
}

.bau-trust-item > span {
    display: inline-grid;
    width: 1.65rem;
    height: 1.65rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: var(--bau-yellow);
    color: var(--bau-charcoal);
    font-weight: 900;
}

@media (max-width: 767.98px) {
    .bau-trust-strip {
        grid-template-columns: 1fr;
    }

    .bau-trust-item,
    .bau-trust-item:nth-child(3n),
    .bau-trust-item:nth-last-child(-n + 3) {
        border-right: 0;
        border-bottom: 1px solid #e7eaec;
    }

    .bau-trust-item:last-child {
        border-bottom: 0;
    }
}

.bau-equipment-trail {
    display: grid;
    grid-template-columns: repeat(10, minmax(84px, 1fr));
    align-items: stretch;
    gap: clamp(0.3rem, 0.8vw, 0.75rem);
    max-width: 1160px;
    margin: -1.75rem auto 2.5rem;
    padding: 0 0.25rem;
}

.bau-equipment-trail-item {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 0.45rem 0.25rem 0.55rem;
    border-bottom: 2px solid var(--bau-yellow);
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(244, 246, 247, 0.72));
    color: var(--bau-charcoal);
    text-decoration: none;
    text-align: center;
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.bau-equipment-trail-primary {
    border-bottom-color: var(--bau-yellow);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 189, 10, 0.11));
}

.bau-equipment-trail-link:hover {
    border-bottom-color: var(--bau-yellow);
    background-color: rgba(255, 189, 10, 0.07);
    color: var(--bau-charcoal);
    transform: translateY(-3px);
}

.bau-equipment-trail-link:focus-visible {
    outline: 3px solid var(--bau-yellow);
    outline-offset: 3px;
}

.bau-equipment-trail-item img {
    display: block;
    width: 100%;
    height: 82px;
    border: 1px solid rgba(32, 37, 41, 0.08);
    border-radius: 7px;
    background: #eeecea;
    object-fit: cover;
    object-position: center;
}

.bau-equipment-trail-item span {
    min-height: 2.25em;
    margin-top: 0.25rem;
    font-size: 0.72rem;
    font-weight: 750;
    line-height: 1.15;
}

.bau-equipment-trail-link span::after {
    color: var(--bau-yellow);
    content: " ›";
    font-size: 1.05em;
}

.bau-equipment-context {
    position: sticky;
    z-index: 20;
    top: 90px;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 0.8rem 1rem;
    border: 2px solid var(--bau-yellow);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 9px 24px rgba(32, 37, 41, 0.14);
    backdrop-filter: blur(7px);
}

.bau-equipment-context-image {
    width: 138px;
    height: 74px;
    flex: 0 0 auto;
    object-fit: contain;
}

.bau-equipment-context-label,
.bau-equipment-context-name,
.bau-equipment-context small {
    display: block;
}

.bau-equipment-context-label {
    color: #6d7378;
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bau-equipment-context-name {
    margin: 0.08rem 0;
    color: var(--bau-charcoal);
    font-size: 1.25rem;
}

.bau-equipment-context small {
    color: #656b70;
}

.bau-job-equipment-icon {
    width: 82px;
    height: 52px;
    flex: 0 0 auto;
    object-fit: contain;
}

.bau-page-market .bau-page-container::before,
.bau-page-faq .bau-page-container::before,
.bau-page-auth .bau-page-container::before,
.bau-page-market .bau-page-container::after,
.bau-page-faq .bau-page-container::after {
    position: absolute;
    z-index: 0;
    display: block;
    width: 255px;
    height: 155px;
    pointer-events: none;
    content: "";
    opacity: 0.075;
    filter: grayscale(0.15);
}

.bau-page-market .bau-page-container::before,
.bau-page-faq .bau-page-container::before {
    top: 38px;
    right: -110px;
    background: url("../images/equipment-excavator.svg") center / contain no-repeat;
}

.bau-page-market .bau-page-container::after,
.bau-page-faq .bau-page-container::after {
    bottom: 80px;
    left: -120px;
    background: url("../images/equipment-crane-truck.svg") center / contain no-repeat;
}

.bau-page-auth .bau-page-container::before {
    right: 0;
    bottom: 55px;
    width: 315px;
    height: 180px;
    background: url("../images/equipment-dump-truck.svg") center / contain no-repeat;
}

body.bau-page-auth {
    overflow-x: clip;
}

.bau-footer {
    background: white;
}

.bau-footer-link {
    color: inherit;
    font-size: inherit;
    text-decoration: underline;
}

/* FAQ */

.bau-faq-header {
    background: var(--bau-charcoal);
    color: white;
}

.bau-faq-section {
    max-width: 920px;
    margin: 0 auto 2.5rem;
}

.bau-faq-item {
    margin-bottom: 0.75rem;
    overflow: hidden;
    border: 1px solid #d8dde1;
    border-radius: 10px;
    background: white;
    box-shadow: 0 3px 12px rgba(32, 37, 41, 0.06);
}

    .bau-faq-item summary {
        position: relative;
        padding: 1rem 3rem 1rem 1.15rem;
        cursor: pointer;
        color: var(--bau-charcoal);
        font-size: 1.05rem;
        font-weight: 750;
        list-style: none;
    }

        .bau-faq-item summary::-webkit-details-marker {
            display: none;
        }

        .bau-faq-item summary::after {
            position: absolute;
            top: 50%;
            right: 1.1rem;
            content: "+";
            color: #8c6500;
            font-size: 1.6rem;
            line-height: 1;
            transform: translateY(-50%);
        }

    .bau-faq-item[open] summary {
        border-bottom: 1px solid #e4e7ea;
        background: #fff9e8;
    }

        .bau-faq-item[open] summary::after {
            content: "−";
        }

.bau-faq-answer {
    padding: 1rem 1.15rem 1.15rem;
    line-height: 1.65;
}

/* Allgemeine Geschäftsbedingungen */

.bau-terms-section {
    margin-bottom: 2.25rem;
}

    .bau-terms-section h2 {
        padding-bottom: 0.55rem;
        border-bottom: 2px solid var(--bau-yellow);
        color: var(--bau-charcoal);
        font-size: 1.35rem;
    }

    .bau-terms-section p,
    .bau-terms-section li {
        line-height: 1.7;
    }

/* Mobile Darstellung */

@media (min-width: 1400px) and (max-width: 1599.98px) {
    .bau-brand {
        gap: 0.45rem;
        margin-right: 0.75rem;
    }

    .bau-brand-subtitle,
    .bau-account-information {
        display: none;
    }

    .bau-main-navigation {
        gap: 0;
    }

    .bau-navbar .bau-nav-link {
        margin-right: 0;
        margin-left: 0;
        padding-right: 0.42rem !important;
        padding-left: 0.42rem !important;
        font-size: 0.82rem;
    }

    .bau-navbar .bau-primary-action {
        margin-right: 0.15rem;
        padding-right: 0.65rem !important;
        padding-left: 0.65rem !important;
    }

    .bau-account-navigation {
        margin-left: 0.25rem;
    }

    .bau-account-link {
        padding: 0.35rem !important;
    }
}

@media (max-width: 1399.98px) {
    .bau-page-market .bau-page-container::before,
    .bau-page-faq .bau-page-container::before {
        right: -45px;
    }

    .bau-page-market .bau-page-container::after,
    .bau-page-faq .bau-page-container::after {
        left: -55px;
    }

    .bau-navbar {
        padding: 0.55rem 0;
    }

        .bau-navbar .navbar-collapse {
            margin-top: 0.75rem;
            padding: 0.85rem;
            border-radius: 10px;
            background: var(--bau-charcoal-light);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
        }

    .bau-main-navigation {
        align-items: stretch !important;
    }

    .bau-navbar .bau-nav-link {
        margin: 0.1rem 0;
        padding: 0.72rem 0.8rem !important;
    }

        .bau-navbar .bau-nav-link::after {
            display: none;
        }

    .bau-account-navigation {
        margin-top: 0.55rem;
        margin-left: 0;
        padding-top: 0.65rem;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .bau-account-information {
        max-width: 230px;
    }

    .bau-dropdown {
        margin-top: 0.15rem !important;
        border-top-width: 3px;
        box-shadow: none;
    }

    .bau-login-button {
        margin-top: 0.35rem;
        margin-left: 0;
        text-align: center;
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .bau-navbar-public {
        padding: 0.65rem 0;
    }

    .bau-navbar-public .bau-brand {
        gap: 0.45rem;
        margin-right: 0.8rem;
    }

    .bau-navbar-public .bau-brand-subtitle {
        display: none;
    }

    .bau-navbar-public .navbar-collapse {
        margin-top: 0;
        padding: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .bau-navbar-public .bau-main-navigation {
        align-items: center !important;
    }

    .bau-navbar-public .bau-nav-link {
        margin: 0 0.05rem;
        padding: 0.72rem 0.55rem !important;
        font-size: 0.86rem;
    }

    .bau-navbar-public .bau-nav-link::after {
        display: block;
    }

    .bau-navbar-public .bau-account-navigation {
        margin-top: 0;
        margin-left: 0.3rem;
        padding-top: 0;
        border-top: 0;
    }

    .bau-navbar-public .bau-login-button {
        margin-top: 0;
        margin-left: 0.2rem;
        text-align: left;
    }
}

@media (max-width: 991.98px) {
    .bau-equipment-trail {
        grid-template-columns: none;
        grid-auto-columns: 132px;
        grid-auto-flow: column;
        justify-content: start;
        overflow-x: auto;
        margin-top: -2rem;
        margin-bottom: 1.75rem;
        padding: 0 0.75rem 0.7rem;
        scroll-snap-type: x proximity;
        scrollbar-color: var(--bau-yellow) #edf0f1;
    }

    .bau-equipment-trail-item {
        scroll-snap-align: start;
    }
}

@media (max-width: 575.98px) {
    .bau-brand-text {
        display: none;
    }

    .bau-brand {
        margin-right: 0.5rem;
    }

    .bau-workspace-indicator {
        font-size: 0.79rem;
    }

    .bau-workspace-indicator-container {
        min-height: 34px;
        gap: 0.45rem;
    }

    .bau-workspace-description {
        display: none;
    }

    .bau-equipment-context {
        position: relative;
        top: auto;
        gap: 0.65rem;
        padding: 0.65rem 0.75rem;
    }

    .bau-equipment-context-image {
        width: 100px;
        height: 58px;
    }

    .bau-equipment-context-name {
        font-size: 1.05rem;
    }

    .bau-equipment-context small {
        display: none;
    }

    .bau-job-equipment-icon {
        width: 62px;
        height: 42px;
    }

    .bau-home-hero::before {
        width: 330px;
        height: 160px;
        right: -100px;
        bottom: -25px;
        opacity: 0.1;
    }

    .bau-page-market .bau-page-container::before,
    .bau-page-faq .bau-page-container::before,
    .bau-page-auth .bau-page-container::before,
    .bau-page-market .bau-page-container::after,
    .bau-page-faq .bau-page-container::after {
        display: none;
    }

    .bau-brand-subtitle {
        display: none;
    }

    .bau-brand-name {
        font-size: 1rem;
    }

    .bau-brand-mark {
        width: 38px;
        height: 38px;
    }
}

/* Bewegungen bei entsprechender Systemeinstellung reduzieren */

@media (prefers-reduced-motion: reduce) {
    .bau-navbar *,
    .bau-navbar *::before,
    .bau-navbar *::after,
    .bau-equipment-trail img {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* Anklickbares Erklärvideo auf der Startseite */

.bau-explainer-section {
    position: relative;
    z-index: 0;
    isolation: isolate;
    padding: clamp(2.25rem, 4vw, 3.75rem) 0;
}

.bau-explainer-section::before {
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    background: #fff;
    content: "";
    pointer-events: none;
    transform: translateX(-50%);
}

.bau-explainer-card {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1.42fr) minmax(310px, 0.88fr);
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(133, 101, 35, 0.24);
    border-radius: 18px;
    background: #fffdf8;
    color: var(--bau-charcoal);
    box-shadow: 0 16px 42px rgba(32, 37, 41, 0.14), 0 2px 8px rgba(150, 110, 28, 0.08);
}

.bau-explainer-visual {
    position: relative;
    display: block;
    min-height: 330px;
    overflow: hidden;
    background: var(--bau-charcoal);
}

.bau-explainer-content {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding: 2.25rem;
    border-left: 1px solid rgba(154, 116, 37, 0.16);
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.99), rgba(255, 248, 231, 0.96));
}

.bau-explainer-video {
    display: block;
    width: 100%;
    border-radius: 10px;
    background: #111;
    aspect-ratio: 16 / 9;
}

.bau-explainer-inline-video {
    height: 100%;
    min-height: 330px;
    border-radius: 0;
    object-fit: contain;
}

.bau-explainer-video::cue {
    background: rgba(0, 0, 0, 0.78);
    color: white;
    font-size: 20px;
}

@media (max-width: 991.98px) {
    .bau-explainer-card {
        grid-template-columns: 1fr;
    }

    .bau-explainer-content {
        border-top: 1px solid rgba(154, 116, 37, 0.16);
        border-left: 0;
    }

    .bau-explainer-visual {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .bau-explainer-inline-video {
        min-height: 0;
    }
}

@media (max-width: 575.98px) {
    .bau-explainer-content {
        padding: 1.5rem;
    }

}
