        :root { --primary: #004b9c; --primary-dark: #003a7a; }

        /* Page wrap */
        #page-wrap { width: 80%; margin: 0 auto; overflow: hidden; padding-top: 1.5rem; }
        @media (max-width:768px) { #page-wrap { width:100%; padding-top:.75rem; } }

        /* Map section */
        #map-section {
            position: relative;
            height: 48vh;
            min-height: 260px;
            border-radius: 16px;
            overflow: hidden;
        }
        #map {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
        }

        /* Floating search card */
        #search-bar {
            position: absolute;
            bottom: 18px;
            left: 50%;
            transform: translateX(-50%);
            width: min(520px, 88%);
            z-index: 1000;
            background: #fff;
            border-radius: 12px;
            border: 1px solid rgba(0,0,0,.08);
            box-shadow: 0 4px 16px rgba(0,0,0,.1);
            padding: .5rem .85rem .6rem;
        }
        .sb-tabs { display:flex; gap:.25rem; margin-bottom:.45rem; border-bottom:1px solid #eee; padding-bottom:.35rem; }
        .sb-tab { flex:1; background:none; border:none; border-radius:6px; padding:.25rem .4rem; font-size:.78rem; font-weight:600; color:#999; cursor:pointer; transition:background .15s,color .15s; text-decoration:none; text-align:center; }
        .sb-tab:hover { background:#f5f5f5; color:#555; }
        .sb-tab.active { background:#e8f0fe; color:var(--primary); }
        [data-bs-theme="dark"] .sb-tabs { border-bottom-color:#333; }
        [data-bs-theme="dark"] .sb-tab { color:#777; }
        [data-bs-theme="dark"] .sb-tab:hover { background:#2a2a2a; color:#aaa; }
        [data-bs-theme="dark"] .sb-tab.active { background:#0d2d5e; color:#7ab0f5; }
        #search-bar .sb-input-wrap {
            display: flex; align-items: center;
            border: 1px solid #e0e0e0; border-radius: 6px; overflow: hidden; background: #fff;
        }
        #search-bar .sb-input-wrap .sb-icon { padding: 0 .55rem; color: #bbb; font-size: .95rem; flex-shrink: 0; }
        #search-bar .sb-input-wrap input {
            flex: 1; border: none; outline: none;
            font-size: 1rem; padding: .42rem .4rem; background: transparent;
            -webkit-appearance: none; line-height: normal;
        }
        #search-bar .sb-input-wrap button {
            border: none; background: var(--primary); color: #fff;
            width: 34px; height: 34px; flex-shrink: 0; border-radius: 5px; margin: 2px;
            display: flex; align-items: center; justify-content: center;
            font-size: .9rem; transition: background .2s; cursor: pointer;
        }
        #search-bar .sb-input-wrap button:hover { background: var(--primary-dark); }

        /* Search-Results-Dropdown */
        #search-results {
            position: absolute;
            bottom: calc(100% + 8px);
            left: 0; right: 0;
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 4px 28px rgba(0,0,0,.18);
            overflow: hidden; max-height: 320px; overflow-y: auto;
            z-index: 1001; display: none;
        }
        .sr-item { display:flex; align-items:flex-start; gap:.6rem; padding:.5rem .9rem; cursor:pointer; text-decoration:none; color:inherit; border-bottom:1px solid #f0f0f0; transition:background .12s; }
        .sr-item:last-child { border-bottom:none; }
        .sr-item:hover { background:#f0f4ff; }
        .sr-ico { font-size:1rem; flex-shrink:0; margin-top:.15rem; }
        .sr-text { line-height:1.4; font-size:.88rem; overflow:hidden; }
        .sr-text strong { display:block; font-size:.9rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
        .sr-text small { color:#777; }
        .sr-empty { color:#888; font-size:.85rem; padding:.6rem .9rem; }
        .sr-section-head { font-size:.7rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:#999; padding:.4rem .9rem .15rem; pointer-events:none; }
        [data-bs-theme="dark"] #search-results { background:#1e1e1e; border:1px solid #333; }
        [data-bs-theme="dark"] .sr-item { border-bottom-color:#2a2a2a; color:#e0e0e0; }
        [data-bs-theme="dark"] .sr-item:hover { background:#252535; }
        [data-bs-theme="dark"] .sr-text small { color:#999; }
        [data-bs-theme="dark"] .sr-section-head { color:#666; }

        /* Stat badges */

        /* Competition cards */
        /* Umkreissuche (2026-11-15, wie Vereins-/Standortseite) */
        #radius-bar { display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; padding:.6rem .9rem; background:#f8f9fa; border-radius:.6rem; margin-bottom:1rem; }
        #radius-bar label { font-size:.84rem; font-weight:600; color:#555; white-space:nowrap; }
        #plzInput { width:160px; }
        #radiusStatus { font-size:.82rem; }
        [data-bs-theme="dark"] #radius-bar { background:#252525; }
        [data-bs-theme="dark"] #radius-bar label { color:#aaa; }
        .vc-dist { font-size:.78rem; color:var(--primary); font-weight:600; margin-top:.2rem; }
        @media (max-width:576px) {
            #radius-bar { display:grid; grid-template-columns:1fr auto; gap:.45rem; padding:.6rem; }
            #radius-bar label, #radiusStatus { grid-column:1 / -1; }
            #plzInput { width:100%; font-size:16px; }
            #radiusSelect, #quickFilter, #filterVerband, #sortDatum { font-size:16px; }
            #radiusBtn, #radiusClear { grid-column:1 / -1; padding:.55rem; }
            #quickFilter, #filterVerband, #sortDatum { max-width:none !important; flex:1 1 100%; }
        }
        .comp-card { display:flex; gap:.75rem; align-items:stretch; padding:.7rem .85rem; border:1px solid #dee2e6; border-radius:.5rem; background:#fff; margin-bottom:.5rem; transition:box-shadow .15s; }
        .comp-card:last-child { margin-bottom:0; }
        .comp-card:hover { box-shadow:0 2px 10px rgba(0,0,0,.07); }
        .cc-date-badge { display:flex; flex-direction:column; align-items:center; justify-content:center; min-width:48px; width:48px; flex-shrink:0; background:var(--primary,#004b9c); color:#fff; border-radius:.4rem; padding:.35rem .2rem; }
        .cc-date-badge.cc-date-expired { background:#dc3545; }
        .cc-day { font-size:1.4rem; font-weight:700; line-height:1; }
        .cc-mon { font-size:.62rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em; margin-top:.15rem; opacity:.9; }
        .cc-inner { display:flex !important; flex-direction:column; gap:.35rem; flex:1; min-width:0; }
        .cc-inner > div:last-child { display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; }
        [data-bs-theme="dark"] .cc-date-badge { background:#1a4a8a; }
        [data-bs-theme="dark"] .cc-date-badge.cc-date-expired { background:#842029; }

        /* Action boxes */
        .action-box { display:inline-flex;align-items:center;justify-content:center;padding:.38rem .7rem;border:1px solid #dee2e6;border-radius:.5rem;text-decoration:none;font-weight:600;font-size:.82rem;background:#fff;color:#212529;transition:background .15s;white-space:nowrap; }
        .action-box-primary { border-color:#aac4e8;color:#004b9c;background:#e6eef8; }
        .action-box-primary:hover { border-color:#004b9c;background:#dbe9f8;color:#003a7a; }
        .action-box-secondary { border-color:#ced4da;color:#6c757d;background:#f8f9fa; }
        .action-box-secondary:hover { background:#eff0f1; }

        /* Map legend */
        .map-legend {
            position:absolute; bottom:28px; left:10px; z-index:500;
            background:rgba(255,255,255,.92); border-radius:6px;
            padding:.35rem .6rem; font-size:.76rem;
            box-shadow:0 2px 8px rgba(0,0,0,.15); pointer-events:none; line-height:1.8;
        }

        [data-bs-theme="dark"] .map-legend { background:rgba(30,30,30,.9); color:#ddd; }

        /* Dark mode */
        [data-bs-theme="dark"] .comp-card,
        [data-bs-theme="dark"] .bg-white.rounded-3,
        [data-bs-theme="dark"] #search-bar { background:#1e1e1e !important; color:#e8e8e8; border-color:#333 !important; }
        [data-bs-theme="dark"] #search-bar .sb-input-wrap { background:#252525; border-color:#555; }
        [data-bs-theme="dark"] #search-bar .sb-input-wrap input { background:#252525; color:#f0f0f0; }
        [data-bs-theme="dark"] #search-bar .sb-input-wrap input::placeholder { color:#777; }
        [data-bs-theme="dark"] .text-muted { color:#999 !important; }
        [data-bs-theme="dark"] .action-box { background:#2a2a2a; color:#ccc; border-color:#444; }
        [data-bs-theme="dark"] .action-box-primary { background:#0d2d5e; color:#7ab0f5; border-color:#1a4a8a; }
        [data-bs-theme="dark"] .action-box-secondary { background:#2a2a2a; color:#999; border-color:#444; }
        [data-bs-theme="dark"] .border { border-color:#333 !important; }
        [data-bs-theme="dark"] .badge.bg-secondary { background:#444 !important; }
    

/* Suchreiter: Symbol und Wort nie umbrechen (iPhone, 2026-11-29) */
.sb-tab { flex:1 1 auto; white-space:nowrap; display:inline-flex; align-items:center; justify-content:center; }
.sb-tabs .sb-tab { min-width:0; }
@media (max-width:430px) { .sb-tabs { gap:.15rem; } .sb-tab { padding:.3rem .15rem; font-size:.72rem; } .sb-tab i { margin-right:.15rem !important; } }   /* 4 Reiter inkl. Schützenfeste (2026-11-30) */

/* „In meiner Nähe“ + Fadenkreuz im Suchfeld (2026-11-29) */
#search-bar .sb-input-wrap .sb-near-btn { border:0; background:transparent; color:var(--primary, #004b9c); font-size:1.1rem; width:2.5rem; height:2.4rem;
    display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; padding:0; }
#search-bar .sb-input-wrap .sb-near-btn:hover { background:rgba(0,75,156,.08); }
[data-bs-theme="dark"] #search-bar .sb-input-wrap .sb-near-btn { color:#8ab4f8; }
@media (max-width:576px) { #nearBtn { grid-column:1 / -1; padding:.6rem; font-weight:600; } }
#nearBtn.near-pulse { background:var(--bs-primary); color:#fff; border-color:var(--bs-primary); }
