/*=== LOGO ===*/
#bapHome {
    height: 40px;
}

img#bapHome {
    /* position: absolute; */
    cursor: pointer;
    left: 20px;
    width: 150px;
    margin-left: 2rem;
}

img#bapHome:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Hintergrundbild Header */
body.index .header-container {
    width: 100%;
    padding: 2rem 4rem;
    height: 400px;
    position: relative;
    margin-bottom: 2rem;
    background-image: url('../img/header_background.jpg');
    background-size: cover;
    background-position: center;
    image-rendering: pixelated;
    width: 100%;
    top: 32px;
}

body:not(.index) .header-container {
    height: 100px;
    /* background-image: url('../img/header_background4.jpg'); */
}

#header-background {
    width: 100%;
    display: block;
}

/*=== BAP CLAIM ===*/
body:not(.index) .bapclaim {
    display: none;
}

body.index .bapclaim {
    display: block;
    font-size: 48px;
    color: var(--color-accent);
    margin-bottom: 1rem;
    max-width: 600px;
}

.special-offer-teaser {
    position: absolute;
    right: 3.5rem;
    top: 2.5rem;
    width: 240px;
    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    text-decoration: none;
    color: var(--color-surface);
    background: linear-gradient(135deg, rgba(15, 47, 32, 0.9), rgba(39, 90, 70, 0.85));
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.28);
}

.special-offer-teaser:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.special-offer-eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.7);
}

.special-offer-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.special-offer-cta {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent);
}

.claim-title {
    font-size: 32px;
    color: var(--color-accent);
}

.claim-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    padding-top: 1.2rem;
    max-width: 590px;
    font-size: 18px;
    line-height: 24px;
    color: var(--color-surface-muted);
}

/*=== Vereinssuche ===*/
#vereinsuche-form {
    display: flex;
    gap: 1rem;
}

body.index #vereinsuche-form {
    flex-direction: column;
    align-items: flex-start;
    max-width: 42rem;
    background: var(--black);
}

body.index #vereinsuche-form .search-copy {
    padding-top: 0;
    margin: 0;
}

.search-copy {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: var(--color-surface-muted);
    padding-top: 1rem;
}

body.index .index-search-row {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    width: 100%;
}

body.index .index-search-row-club {
    margin-bottom: 0;
}

body.index .index-search-row-location {
    align-items: flex-end;
}

body.index .index-search-field {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
}

body.index .index-search-field-radius {
    flex: 0 0 120px;
}

body.index .index-search-actions {
    display: flex;
    justify-content: flex-end;
    width: auto;
    flex: 0 0 auto;
}

body.index .index-search-submit {
    display: flex;
}

#locationSearchCircle {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--color-surface-muted);
    border-radius: var(--bradius);
    background-color: var(--color-primary);
    text-align: center;
}

.clubsearch-header #locationSearchCircle {
    background-color: var(--color-surface);
    color: var(--color-text-default);
    border-color: var(--color-primary);
    outline: none;
}

input.vereinsuche {
    padding: 8px;
    width: 227px;
    border: 1px solid var(--color-surface-muted);
    border-radius: var(--bradius);
    background-color: var(--color-primary);
    color: var(--color-surface);
}

input.vereinsuche.button {
    width: 100px;
    background-color: var(--color-primary);
    border: none
}

body.index input.vereinsuche.button {
    width: 140px;
    cursor: pointer;
}

body.index .index-search-field .vereinsuche {
    width: 100%;
}

input.vereinsuche::placeholder {
    color: var(--color-surface-muted);
}

/* === MODAL DLG === */

#busyDiv {
    display: none;
    /* per JS auf flex setzen */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.0);
    /* oder leicht transparent */
    transition: opacity 0.3s ease;
}

/* Variante: Spinner zentriert unterhalb des fixen Headers (Headerhöhe 92px) */
#busyDiv.under-header {
    top: 92px;
    height: calc(100vh - 92px);
}

#busyDiv img,
#busyDiv .spinner {
    max-width: 160px;
    max-height: 160px;
    width: auto;
    height: auto;
    display: block;
}

#successDiv {
    z-index: 12;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

#hinweisBox {
    z-index: 12;
    position: absolute;
    width: 400px;
    height: auto;
    padding: 20px;
    border: 10px inset red;
    border-radius: var(--bradius);
    background-color: var(--color-surface);
    top: 50%;
    left: 50%;
    box-shadow: 0px 0px 50px var(--color-text-default);
    transform: translate(-50%, -50%);
}

#hinweisTitel {
    border-bottom: 1px var(--color-danger) solid;
    margin-bottom: 10px;
}

#hinweisDiv {
    display: none;
    background-color: rgba(0, 0, 0, 0.07);
    position: absolute;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(2px);
    z-index: 100;
}

#hinweisText {
    overflow-wrap: normal;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.5;
    overflow: auto;
    max-height: 20rem;
}

#hinweisText p {
    margin: 0;
    padding: 0;
}

#hinweisText p+p {
    margin-top: 1rem;
}

#hinweisBox#data {
    display: none;
    width: 100%;
}

#okBtn {
    float: right;
    width: 100px;
}

#cancelBtn {
    /* display: none; */
    float: left;
    width: 100%;
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: none;
    background: rgba(0, 0, 0, 0.8);
    color: var(--color-surface);
    padding: 1rem;
    z-index: 12000;
}

.cookie-banner__content {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.cookie-banner__actions {
    display: flex;
    gap: 0.5rem;
}

.cookie-banner__actions .bapBtn {
    min-width: 120px;
}

@media (max-width: 1000px) {
    body.index .index-search-field-radius {
        flex: 0 0 0px;
    }

    .cookie-banner__content {
        flex-direction: column;
        align-items: flex-start;
    }

    #cookie-banner {
        padding: 1rem 0.75rem;
    }

    #vereinsuche-form {
        flex-direction: column;
        padding: 1rem !important;
        padding: 0;
        opacity: .8;
        gap: 1rem;
    }

    input.vereinsuche {
        position: relative;
        width: 100%;
        padding: 8px;
        border-radius: var(--bradius);
        background-color: var(--color-primary);
        color: var(--color-surface);
    }

    /* Wenn der Nutzer hineinklickt */
    input.vereinsuche:focus {
        background-color: var(--color-surface);
        /* fast opak */
        color: var(--color-text-default);
        /* gut lesbar */
        border-color: var(--color-primary);
        /* dezenter Rahmen */
        outline: none;
        /* Standard-Kontur ausblenden */
    }

    img#bapHome {
        margin-left: 0;
    }

    body {
        width: 100%;
        max-width: 1300px;
        /* Nimmt die gesamte Breite des Bildschirms ein */
        margin: 0;
        padding: 0;
        /* overflow-x: hidden; */
        /* overflow-y: auto; */
        /* Verhindert horizontales Scrollen */
    }

    .baplogo {
        justify-content: flex-start;
        /* Logo bleibt links */
    }

    .hundemenu {
        padding-left: 0 !important;
    }

    body.index .header-container {
        height: auto !important;
        margin-top: 0;
        top: 0;
    }

    body.index .index-search-row {
        flex-direction: column;
    }

    body.index .index-search-row-location {
        align-items: stretch;
    }

    body.index .index-search-field {
        width: 100%;
    }

    body.index .index-search-actions {
        justify-content: flex-end;
        width: 100%;
    }

    .special-offer-teaser {
        position: static;
        width: 100%;
        margin-top: 1.25rem;
    }

    .claim-text {
        line-height: 24px;
        color: var(--white);
    }

    .vereinsuche-umkreis {
        display: flex;
        justify-content: space-between;
    }

    body.index .index-search-row,
    body.index .index-search-field,
    body.index .index-search-submit {
        width: 100%;
    }
}