        :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 */
        #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; }
        .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;
        }

        /* Floating search bar */
        #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:.88rem; padding:.42rem .4rem; background:transparent; }
        #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 { 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:340px; overflow-y:auto; z-index:1001; display:none; }
        .sr-item { display:flex; align-items:flex-start; gap:.6rem; padding:.55rem .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:.65rem .9rem; }
        [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"] #search-bar { background:#1e1e1e !important; 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; }
        /* Radius filter bar */
        #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; }

        /* Verein cards */
        .verein-card {
            background: #fff;
            border: 1px solid #dee2e6;
            border-radius: .75rem;
            padding: 1rem 1.1rem;
            transition: box-shadow .15s, border-color .15s;
            height: 100%;
            cursor: pointer;
        }
        .verein-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); border-color: var(--primary); }
        .verein-card-title {
            font-weight: 700; font-size: 1rem; margin-bottom: .15rem; line-height: 1.35;
        }
        .verein-card-city {
            font-size: .82rem; color: #6c757d;
        }
        .verein-card-hint {
            font-size: .75rem; color: var(--primary); margin-top: .5rem; opacity: .7;
        }
        /* ── Liste: Kopfzeile, Paging (2026-11-15) ── */
        #listMeta { display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; font-size:.85rem; color:#6c757d; margin-bottom:.75rem; }
        #listMeta .lm-count { font-weight:700; color:var(--primary); }
        /* Seitenweise Liste (2026-11-29): 25/50/100 je Seite */
        #listMeta .lm-per { display:flex; align-items:center; gap:.35rem; margin:0; }
        #listMeta #lmAll:not([style*="none"]) + .lm-per { margin-left:.75rem; }
        #listMeta #lmAll[style*="none"] + .lm-per { margin-left:auto; }
        #listMeta .lm-per select { width:auto; padding-top:.15rem; padding-bottom:.15rem; }
        .lm-pager { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:.3rem; margin-top:1.25rem; }
        .lm-pager .btn { min-width:2.4rem; }
        .lm-pager .lm-gap { padding:0 .2rem; color:#6c757d; }
        .lm-pager .lm-info { width:100%; text-align:center; font-size:.8rem; color:#6c757d; margin-top:.25rem; }
        .verein-item.pg-hidden { display:none !important; }
        .vc-main { min-width:0; }
        .vc-dist { font-size:.78rem; color:var(--primary); font-weight:600; margin-top:.15rem; }
        .map-touch-hint {
            position:absolute; inset:0; z-index:600; display:flex; align-items:flex-end; justify-content:center;
            padding-bottom:.6rem; background:transparent; border:0; cursor:pointer;
        }
        .map-touch-hint span { background:rgba(0,0,0,.6); color:#fff; font-size:.8rem; padding:.3rem .7rem; border-radius:999px; }

        /* ── Handy-Ansicht (2026-11-15) ── */
        @media (max-width:576px) {
            #map-section { height:auto; min-height:0; overflow:visible; border-radius:0; }
            #map { position:relative; height:36vh; min-height:220px; }
            .map-touch-hint { bottom:auto; height:36vh; min-height:220px; }
            #search-bar { position:relative; left:auto; bottom:auto; transform:none; width:auto; margin:.6rem .75rem 0; box-shadow:0 2px 8px rgba(0,0,0,.08); }
            #search-results { top:calc(100% + 6px); bottom:auto; max-height:60vh; }
            #search-bar .sb-input-wrap input, #plzInput, #radiusSelect { font-size:16px; }   /* verhindert Auto-Zoom auf iOS */
            #search-bar .sb-input-wrap button { width:42px; height:42px; }
            .sr-item { padding:.75rem .9rem; }
            #page-wrap > .container { padding-left:.75rem; padding-right:.75rem; }
            #page-wrap > .container > .bg-white { padding:.75rem !important; }
            #radius-bar { display:grid; grid-template-columns:1fr auto; gap:.45rem; padding:.6rem; }
            #radius-bar label, #radiusStatus { grid-column:1 / -1; }
            #nearBtn { grid-column:1 / -1; padding:.6rem; font-weight:600; }
            #plzInput { width:100%; }
            #radiusBtn, #radiusClear { grid-column:1 / -1; padding:.55rem; }
            #vereinGrid { --bs-gutter-y:.5rem; }
            .verein-card { display:flex; align-items:center; gap:.5rem; padding:.7rem .85rem; min-height:56px; }
            .verein-card-title { font-size:.95rem; }
            .verein-card-hint { display:none; }
            .verein-card::after { content:"\F285"; font-family:"bootstrap-icons"; margin-left:auto; color:#adb5bd; flex-shrink:0; }
            #moreBtn { width:100%; padding:.65rem; }
            #vereinModal .modal-footer .btn { flex:1 1 calc(50% - .5rem); padding:.6rem; white-space:nowrap; }   /* 2 Spalten (Route, 2026-11-29) */
            #vereinModal .modal-footer .btn:first-child { flex-basis:100%; }
            /* Bottom-Sheet statt leerem Vollbild (2026-11-15) */
            #vereinModal .modal-dialog { margin:0; position:fixed; left:0; right:0; bottom:0; min-height:0; max-width:none; align-items:flex-end; transform:translateY(100%); transition:transform .25s ease-out; }
            #vereinModal.show .modal-dialog { transform:none; }
            #vereinModal .modal-content { border-radius:1rem 1rem 0 0; max-height:85vh; border:0; padding-bottom:env(safe-area-inset-bottom,0px); }
            #vereinModal .modal-content::before { content:""; display:block; width:40px; height:4px; border-radius:2px; background:#ced4da; margin:.5rem auto 0; }
            #vereinModal .modal-body { overflow-y:auto; }
            #vereinModal .modal-footer .btn-close-sheet { display:none; }
        }
        @media (min-width:577px) { .map-touch-hint { display:none !important; } }

        /* Modal detail styles */
        .vc-row {
            display: flex; gap: .45rem; font-size: .9rem; margin-bottom: .3rem;
            align-items: flex-start;
        }
        .vc-row .icon { flex-shrink: 0; width: 1.2rem; text-align: center; opacity: .75; }
        .vc-row a { color: inherit; word-break: break-all; }
        .vc-row a:hover { color: var(--primary); }
        .vc-badge {
            display: inline-block; font-size: .75rem;
            background: #e8f0fe; color: #1a4a9c;
            border-radius: .35rem; padding: .12rem .45rem; cursor: pointer;
        }
        .vc-notes {
            font-size: .85rem; color: #6c757d; border-top: 1px solid #f0f0f0;
            margin-top: .75rem; padding-top: .6rem; white-space: pre-line;
        }
        .map-btn {
            font-size: .82rem; border: 1px solid #dee2e6; border-radius: .4rem;
            padding: .25rem .6rem; background: transparent; cursor: pointer;
            color: var(--primary); transition: background .12s; white-space: nowrap;
        }
        .map-btn:hover { background: #e8f0fe; }
        .comp-link {
            display: inline-block; font-size: .82rem;
            background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0;
            border-radius: .35rem; padding: .12rem .45rem; margin: .1rem .1rem 0 0;
            text-decoration: none; transition: background .12s;
        }
        .comp-link:hover { background: #dcfce7; color: #14532d; }

        /* Empty state */
        .loc-empty { color: #888; font-size: .9rem; font-style: italic; padding: 2.5rem 0; text-align: center; }

        /* No-results row */
        #noResults { display: none; }

        /* Dark mode */
        [data-bs-theme="dark"] .verein-card { background: #1e1e1e; border-color: #333; color: #e0e0e0; }
        [data-bs-theme="dark"] .verein-card:hover { border-color: #7ab0f5; }
        [data-bs-theme="dark"] .verein-card-city { color: #999; }
        [data-bs-theme="dark"] .verein-card-hint { color: #7ab0f5; }
        [data-bs-theme="dark"] .vc-badge { background: #1a2d5a; color: #7ab0f5; }
        [data-bs-theme="dark"] .vc-notes { border-top-color: #2a2a2a; color: #999; }
        [data-bs-theme="dark"] .map-btn { border-color: #444; color: #7ab0f5; }
        [data-bs-theme="dark"] .map-btn:hover { background: #1a2d5a; }
        [data-bs-theme="dark"] .comp-link { background: #0f2a1a; color: #6ee7b7; border-color: #166534; }
        [data-bs-theme="dark"] .comp-link:hover { background: #143d26; }
        [data-bs-theme="dark"] .bg-white { background: #1e1e1e !important; }
        [data-bs-theme="dark"] .border { border-color: #333 !important; }
        [data-bs-theme="dark"] .map-legend { background: rgba(30,30,30,.9); color: #ddd; }
        [data-bs-theme="dark"] .badge.bg-secondary { background: #444 !important; }
        [data-bs-theme="dark"] .text-muted { color: #888 !important; }
    

/* 2026-11-26: Kacheln sind Links (Strg+Klick = Vereinsseite), Kartengruppen mit Anzahl */
a.verein-card { display:block; color:inherit; text-decoration:none; }
@media (max-width:576px) { a.verein-card { display:flex; } }   /* Handy: Zeile mit Pfeil wie vorher */
.vc-cluster { background:rgba(0,75,156,.22); border-radius:50%; display:flex !important; align-items:center; justify-content:center; }
.vc-cluster span { display:flex; align-items:center; justify-content:center; width:calc(100% - 8px); height:calc(100% - 8px);
  border-radius:50%; background:#004b9c; color:#fff; font:600 .8rem/1 system-ui, sans-serif; border:2px solid #fff; box-shadow:0 1px 4px rgba(0,0,0,.3); }
.vc-pin-n { position:absolute; top:-6px; right:-8px; min-width:18px; height:18px; padding:0 4px; border-radius:9px; background:#dc3545;
  color:#fff; font:700 .68rem/18px system-ui, sans-serif; text-align:center; border:1.5px solid #fff; }

/* 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“ nach ?nah=1 hervorheben (2026-11-29) */
@keyframes nearPulse { 0%,100% { box-shadow:0 0 0 0 rgba(13,110,253,.45); } 50% { box-shadow:0 0 0 .45rem rgba(13,110,253,0); } }
#nearBtn.near-pulse { background:var(--bs-primary); color:#fff; border-color:var(--bs-primary); animation:nearPulse 1.4s ease-in-out infinite; }
#nearHelpModal .near-help-steps { padding-left:1.25rem; }
#nearHelpModal .near-help-steps li { margin-bottom:.55rem; line-height:1.45; }
@media (max-width:576px) { #nearHelpModal .modal-footer .btn { flex:1 1 100%; padding:.6rem; } }
/* Gastschießen-Abzeichen und Filter (2026-11-29) */
.vc-gast { font-size:.78rem; font-weight:600; color:var(--bs-success-text-emphasis); margin-top:.15rem; }
@media (max-width:576px) { #gastToggle { grid-column:1 / -1; padding:.55rem; } }

/* Feature 2 (2026-11-29): Kurzangaben, Reisezeitraum, Gastschießen im Detailfenster */
.vc-facts { font-size:.74rem; color:#64748b; margin-top:.2rem; line-height:1.35; }
.vc-oh { font-size:.74rem; color:#64748b; margin-top:.15rem; line-height:1.35; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.vc-zr { font-size:.76rem; font-weight:600; color:var(--bs-success-text-emphasis); margin-top:.15rem; }
.vc-zr-anfrage { color:#64748b; font-weight:500; }
.zr-wrap { display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; padding:.6rem .9rem; margin:-.5rem 0 1rem; background:var(--bs-success-bg-subtle); border-radius:.6rem; }
.zr-wrap[hidden] { display:none; }
.zr-wrap label { font-size:.84rem; font-weight:600; white-space:nowrap; }
.zr-wrap input[type=date] { width:auto; }
.zr-hint { font-size:.78rem; flex-basis:100%; }
.vm-gast { margin-top:1rem; padding-top:.75rem; border-top:1px solid var(--bs-border-color); }
.vm-gast-h { font-weight:600; color:var(--bs-success-text-emphasis); margin-bottom:.35rem; }
@media (max-width:576px) {
  #zrToggle, #discSelect { grid-column:1 / -1; width:100% !important; }
  .zr-wrap { display:grid; grid-template-columns:1fr; gap:.4rem; padding:.6rem; }
  .zr-wrap[hidden] { display:none; }
  .zr-wrap input[type=date] { width:100%; font-size:16px; }
  .zr-bis { display:none; }
}

/* Fadenkreuz links 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; }
.vc-premium { font-size:.78rem; font-weight:700; color:#92400e; margin-top:.15rem; } /* Premium Verein (2026-11-29) */
.verein-card:has(.vc-premium), .loc-card:has(.vc-premium) { border-color:#fcd34d; box-shadow:0 0 0 1px #fcd34d inset; }
.vc-bw { font-size:.8rem; font-weight:600; color:#b45309; margin-top:.15rem; } /* Bewertungen (2026-11-30) */
