/* =========================================================
   veranstaltungsauskunft.css
   Veranstaltungsauskunft – GESAMTER CSS CODE
   Stand: 2026-03-21

   Enthält u. a.:
   - Shell-sicher (menü.css wird nicht kaputt gemacht)
   - Rail mobil sicher ausgeblendet
   - Toolbar / Filter / Chips / Cards / Details / Meldungen
   - Responsive Optimierungen
   - Fix: Rollstuhl-Icon bleibt inline beim Ort
   - Fix: Aktionsmenü / Badge / Legende / Empty-State
   - Design-Upgrade für Toolbar und Filter
   ========================================================= */

/* ---------- Basis ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; }

:root{
  color-scheme: light;

  --bg-page:#f4f6f8;
  --bg-surface:#ffffff;
  --text:#222222;
  --muted:#5b6775;
  --border:#e0e0e0;
  --brand:#6a9d39;
  --brand-700:#57812a;
  --accent:#699f3e;
  --warn:#b96014;
  --danger:#d32f2f;
  --icon-dim:#c2c7cf;
  --icon-filled:#4b5563;
  --alert-bg:#fff5f5;
  --alert-border:#f2c7c7;
  --alert-text:#b51a1a;

  --detail-bg:#ffffff;
  --detail-border:#e7ebf0;
  --detail-title:#1f2a37;

  --chip-bg:#ffffff;
  --chip-border:#d5ddd1;
  --chip-text:#2b313a;

  --aud-bg:#eef4eb;
  --aud-border:#cfe1c2;
  --aud-text:#2b3a2b;

  --star-bg:#fff4d6;
  --star-border:#f2d27c;
  --star-text:#8a6a14;

  --addr-icon:#444;
  --addr-icon-hover:#000;
}

@media (prefers-color-scheme: dark){
  :root{
    --bg-page:#1c1f23;
    --bg-surface:#ffffff;
    --text:#222222;
    --border:#d7d7d7;
  }
  body{ background:var(--bg-page); }
}

body{
  font-family:'Inter',system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  margin:0;
  background:var(--bg-page);
  color:var(--text);
  font-size:18px;
  overflow-x:hidden;
}

:focus-visible{
  outline:3px solid var(--brand);
  outline-offset:2px;
}

.visually-hidden{
  position:absolute !important;
  clip:rect(1px,1px,1px,1px) !important;
  clip-path:inset(50%) !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
  white-space:nowrap !important;
  padding:0 !important;
  border:0 !important;
  margin:-1px !important;
}

/* ---------- Ladescreen ---------- */
#ladescreen{
  position:fixed;
  inset:0;
  background:#fff;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:1;
  visibility:visible;
  transition:opacity .25s ease, visibility .25s ease;
}
#ladescreen.is-hidden{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}
#ladescreen .spinner{
  width:50px;
  height:50px;
  border:6px solid #ddd;
  border-top:6px solid var(--brand);
  border-radius:50%;
  animation:spin 1s linear infinite;
}
@keyframes spin{
  to{ transform:rotate(360deg); }
}

/* ---------- Fehlerbox ---------- */
#fehlerbox{
  max-width:700px;
  margin:100px auto;
  padding:25px;
  background:#ffe6e6;
  border:1px solid #f3b9b9;
  border-radius:0;
  text-align:center;
  font-size:18px;
}
#fehlerbox button,
#reloadBtn{
  margin-top:20px;
  padding:12px 24px;
  background:var(--brand);
  color:#fff;
  border:1px solid var(--brand);
  cursor:pointer;
  font-size:17px;
  border-radius:0;
  touch-action:manipulation;
}

/* ---------- Layout ---------- */
main{
  max-width:1180px;
  margin:40px auto;
  padding:0 20px;
}
main h1{
  text-align:center;
  margin-bottom:18px;
  font-size:32px;
  color:#1e2a37;
}
.va-app{ width:100%; }

/* ---------- Infopunkt ---------- */
.infopunkt{
  max-width:1040px;
  margin:0 auto 12px;
  padding:10px 12px;
  display:flex;
  gap:10px;
  align-items:flex-start;
  border:1px solid #dfe2e6;
  background:#f8f9fb;
  border-radius:0;
}
.infopunkt-icon{
  flex:0 0 auto;
  font-size:18px;
  color:#2b3a4a;
  margin-top:2px;
}
.infopunkt .infotext{
  color:#2a2f35;
  font-size:15.5px;
}
.infopunkt .infotext p{ margin:0; }

/* =========================================================
   Toolbar
   ========================================================= */
.toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:12px auto 12px;
  max-width:1040px;
  background:transparent;
}
.toolbar-left,
.toolbar-right{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.btn-primary,
.action-btn,
.icon-btn,
#filterResetBtn,
#mehrLadenBtn,
#scrollTopBtn,
.card-menu-btn,
.meldung-btn,
.chip{
  transition:
    background-color .16s ease,
    border-color .16s ease,
    color .16s ease,
    opacity .16s ease;
}

.btn-primary,
.action-btn,
.icon-btn{
  min-height:42px;
  font-size:16px;
  line-height:1;
}

.btn-primary{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:0 16px;
  font-weight:700;
  background:var(--brand);
  color:#fff;
  border:1px solid var(--brand);
  cursor:pointer;
  border-radius:0;
  touch-action:manipulation;
}
.btn-primary i.fas{
  transition:transform .2s ease;
}
#toggleFilterBtn[aria-expanded="true"] .fa-chevron-down{
  transform:rotate(180deg);
}

.action-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:0 16px;
  border:1px solid var(--border);
  background:#fff;
  color:#2b313a;
  cursor:pointer;
  border-radius:0;
  font-weight:600;
}

.icon-btn{
  display:inline-grid;
  place-items:center;
  width:42px;
  height:42px;
  border:1px solid var(--border);
  background:#fff;
  color:#2b313a;
  cursor:pointer;
  border-radius:0;
}
.icon-btn:hover,
.action-btn:hover{
  background:#f4f6f8;
}
.icon-btn i,
.action-btn i,
.btn-primary i{
  font-size:17px;
}

/* Filter-Badge am Button */
#toggleFilterBtn .filter-count{
  display:none;
  min-width:22px;
  height:22px;
  align-items:center;
  justify-content:center;
  margin-left:8px;
  padding:0 6px;
  font-size:12px;
  line-height:1;
  background:#fff;
  color:#2b313a;
  border:1px solid rgba(0,0,0,.15);
}

/* ---------- Quick Chips ---------- */
.quick-chips{
  max-width:1040px;
  margin:0 auto 12px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.chip{
  min-height:36px;
  padding:0 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:15px;
  font-weight:500;
  background:var(--chip-bg);
  border:1px solid var(--chip-border);
  cursor:pointer;
  border-radius:0;
  color:var(--chip-text);
}
.chip.is-active{
  background:#e8f2e0;
  border-color:#bfd6a9;
  color:#2b3a2b;
}
.chip:focus-visible{
  outline:3px solid var(--brand);
  outline-offset:2px;
}

/* =========================================================
   Filter
   ========================================================= */
.filterbereich{
  width:100%;
  max-width:1040px;
  margin:0 auto 18px;
  background:#f7f9f4;
  border:1px solid #cfd8cb;
  padding:14px;
  border-radius:0;
}
.filterbereich.collapsed,
.filterbereich[hidden]{
  display:none !important;
}

.filterbereich fieldset{
  margin:0;
  padding:14px;
  border:1px solid #cfd8cb;
  background:#fff;
}

.filter-gruppe{
  display:grid;
  grid-template-columns:minmax(180px,1.15fr) 112px 112px auto auto auto;
  grid-auto-rows:minmax(44px, auto);
  gap:12px;
  align-items:center;
}
.filter-gruppe > *{ min-width:0; }

@media (max-width:980px){
  .filter-gruppe{ grid-template-columns:1fr 1fr 1fr; }
}
@media (max-width:720px){
  .filter-gruppe{ grid-template-columns:1fr; }
}

#suchfeld{
  display:block;
  width:100%;
  height:48px;
  margin:0 0 12px;
  padding:0 14px;
  font-size:18px;
  border:1px solid #d5dbd3;
  background:#fff;
}
#suchfeld::placeholder{
  color:#7d9d5e;
}

.filterbereich input:not([type="checkbox"]),
.filterbereich select{
  width:100%;
  padding:0 14px;
  font-size:17px;
  height:46px;
  border:1px solid #d5dbd3;
  background:#fff;
  color:#222;
  border-radius:0;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.filterbereich input:not([type="checkbox"]):focus,
.filterbereich select:focus{
  border-color:var(--brand);
  box-shadow:0 0 0 3px rgba(106,157,57,.15);
}

.filterbereich select{
  -webkit-appearance:none;
  -moz-appearance:none;
  appearance:none;
  padding-right:40px;
  background-repeat:no-repeat;
  background-position:right 12px center;
  background-size:16px 16px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

.filter-gruppe label{
  min-height:46px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 2px;
  font-size:16px;
  color:#232b37;
  white-space:nowrap;
}
#hideCancelled,
#showPast{
  width:18px;
  height:18px;
  flex:0 0 auto;
  margin:0;
  accent-color:var(--brand);
  cursor:pointer;
}

#filterResetBtn{
  display:flex;
  align-items:center;
  gap:6px;
  padding:0 14px;
  height:46px;
  background:#e0e0e0;
  color:#000;
  border:1px solid #bbb;
  cursor:pointer;
  font-size:16px;
  font-weight:600;
  border-radius:0;
  touch-action:manipulation;
}
#filterResetBtn[hidden]{ display:none; }

#suggestion{
  display:none;
  margin-top:8px;
  font-size:16px;
  color:#6a9d39;
  cursor:pointer;
}
#suggestion[hidden]{ display:none; }
#suggestion:hover{ text-decoration:underline; }

/* =========================================================
   Karten
   ========================================================= */
.events-list{
  margin-top:16px;
}

.veranstaltung{
  max-width:1040px;
  background:var(--bg-surface);
  border:1px solid var(--border);
  border-radius:0;
  padding:18px 18px 14px;
  margin:12px auto 18px;
  position:relative;
}
.veranstaltung.cancelled{
  border-color:#e6caca;
}

/* Kopfbereich */
.card-head{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-bottom:12px;
  flex-wrap:wrap;
}
.card-title{
  margin:0;
  font-size:21px;
  font-weight:700;
  color:#111;
  display:flex;
  align-items:center;
  gap:10px;
  flex:1 1 auto;
  min-width:200px;
  overflow-wrap:anywhere;
  word-break:break-word;
  line-height:1.25;
}
.fällt-aus{
  color:var(--danger);
  font-weight:700;
}

/* Empfohlen */
.badge-empf{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:24px;
  padding:4px 9px;
  font-size:12.5px;
  font-weight:700;
  line-height:1;
  background:var(--star-bg);
  color:var(--star-text);
  border:1px solid var(--star-border);
  border-radius:0;
}
.badge-empf i{ font-size:12px; }

/* rechts oben */
.card-head-right{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

/* Auslastung */
.auslastung-inline{
  display:flex;
  align-items:center;
  gap:10px;
  color:#2b313a;
  font-weight:400;
  line-height:1.25;
  white-space:normal;
  max-width:100%;
  min-width:0;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.auslastung-inline .label{
  font-size:15px;
}
.auslastung-inline .people{
  display:inline-flex;
  gap:4px;
  position:relative;
}
.auslastung-inline .people i{
  font-size:14px;
  color:var(--icon-dim);
}
.auslastung-inline .people i.filled{
  color:var(--icon-filled);
}
.auslastung-inline.is-unknown .people::after{
  content:"";
  position:absolute;
  left:-4px;
  right:-4px;
  top:50%;
  height:2px;
  background:#b0b6c0;
  transform:rotate(-14deg);
  border-radius:2px;
  pointer-events:none;
}

/* Aktionsmenü */
.card-actions{ position:relative; }
.card-menu-btn{
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  padding:0;
  border:1px solid #d0d0d0;
  background:#fff;
  color:#4a5568;
  cursor:pointer;
  border-radius:0;
  touch-action:manipulation;
}
.card-menu-btn:hover{
  background:#f4f6f8;
  color:#2d3748;
}
.card-menu-btn:focus-visible{
  outline:3px solid var(--brand);
  outline-offset:2px;
}

.card-menu-panel{
  position:absolute;
  top:calc(100% + 4px);
  right:0;
  min-width:280px;
  max-width:96vw;
  background:#fff;
  border:1px solid #d7dbe1;
  z-index:1000;
  border-radius:0;
}
.card-menu-panel[hidden]{ display:none; }
.card-menu-panel[data-drop="up"]{
  top:auto;
  bottom:calc(100% + 4px);
}
.card-menu-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:100%;
  padding:12px 14px;
  background:transparent;
  border:none;
  text-align:left;
  cursor:pointer;
  font-size:16px;
  color:#1e2a34;
}
.card-menu-left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.card-menu-label{
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:break-word;
  color:#1e2a34;
}
.card-menu-icon{
  color:var(--accent);
  font-size:18px;
  flex:0 0 auto;
}
.card-menu-item:hover{
  background:var(--brand);
}
.card-menu-item:hover .card-menu-icon,
.card-menu-item:hover .card-menu-label{
  color:#fff;
}

/* Meta */
.meta-row{
  display:flex;
  align-items:center;
  gap:8px;
  margin:4px 0;
}
.meta-value{
  flex:1 1 auto;
  color:var(--text);
  font-size:18px;
  overflow-wrap:anywhere;
  word-break:break-word;
  min-width:0;
  line-height:1.4;
}

/* Rollstuhl-Icon Inline-Fix */
.wc-badge,
.wc-badge-alert{
  display:inline-block !important;
  width:18px;
  height:18px;
  margin-left:6px;
  vertical-align:text-bottom;
  object-fit:contain;
  image-rendering:auto;
  line-height:1;
}

.meta-value .wc-badge,
.meta-value .wc-badge-alert,
.old-ort .wc-badge,
.old-ort .wc-badge-alert{
  display:inline-block !important;
  position:relative;
  top:-1px;
}

.wc-badge-alert{
  filter:drop-shadow(0 0 0.5px rgba(0,0,0,.25));
}

.veranstaltung.cancelled .wc-badge,
.veranstaltung.cancelled .wc-badge-alert{
  opacity:.7;
}

.ort-inline{
  display:inline-flex;
  align-items:center;
  gap:6px;
  flex-wrap:nowrap;
  max-width:100%;
}
.ort-inline .wc-badge,
.ort-inline .wc-badge-alert{
  margin-left:0;
}

/* Hinweise */
.icon-info-blue{ color:#2b3a4a; }
.icon-cancel-red{ color:var(--danger); }

.meldungen-hinweis{
  color:#5c6b78;
  margin-top:8px;
  display:flex;
  align-items:center;
  gap:8px;
  font-size:15.5px;
}
.meldungen-hinweis i{ color:#b96014; }

/* =========================================================
   Details
   ========================================================= */
.card-details{
  margin-top:12px;
  border-top:1px solid #e8e8e8;
  padding-top:10px;
}
.card-details > summary{
  list-style:none;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  cursor:pointer;
  font-weight:700;
  color:#1f2a37;
  user-select:none;
  padding:2px 10px 0;
  font-size:18px;
}
.card-details > summary::-webkit-details-marker{
  display:none;
}
.card-details .chev{
  transition:transform .2s ease;
  color:#6c7785;
}
.card-details[open] .chev{
  transform:rotate(180deg);
}

.details-panel{
  margin-top:10px;
  padding:12px;
  background:var(--detail-bg);
  border:1px solid var(--detail-border);
}

/* Info-Icons */
.info-icons{
  display:flex;
  gap:12px;
  margin:8px 0 2px;
  flex-wrap:wrap;
}
.info-icon{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border:1px solid var(--border);
  background:#fff;
  border-radius:0;
}
.info-icon i{
  font-size:18px;
  color:#2b313a;
}

/* Detailgruppen */
.detail-group{
  margin-bottom:10px;
  padding:10px;
  background:#fff;
  border:1px dashed var(--detail-border);
}
.detail-title{
  margin:0 0 6px 0;
  font-weight:700;
  color:#1f2a37;
  font-size:18px;
}
.detail-text{
  margin:0 0 4px 0;
  color:#31363c;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.detail-muted{
  color:#6c7785;
}
.detail-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
@media (max-width:720px){
  .detail-grid{ grid-template-columns:1fr; }
}

/* Adresse */
.dg-address{
  display:grid;
  grid-template-columns:1fr 360px;
  grid-template-areas:
    "title title"
    "addr  map";
  align-items:start;
  column-gap:12px;
  row-gap:6px;
  margin-top:8px;
}
.dg-address .detail-title{
  grid-area:title;
  margin-top:2px;
}
.addr-row{
  grid-area:addr;
  display:flex;
  align-items:flex-start;
  gap:10px;
  justify-content:space-between;
  margin:0;
}
.addr-text{
  color:#2a2f35;
  line-height:1.35;
  text-decoration:none;
}
.addr-open{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border:1px solid var(--border);
  background:#fff;
  text-decoration:none;
  color:var(--addr-icon);
  flex:0 0 auto;
}
.addr-open i{
  font-size:16px;
  line-height:1;
}
.addr-open:hover{
  color:var(--addr-icon-hover);
  background:#f8f8f8;
}
.addr-open:focus-visible{
  outline:3px solid var(--brand);
  outline-offset:2px;
}

.map-mini{
  grid-area:map;
  position:relative;
  border:1px solid var(--border);
  background:#fff;
  overflow:hidden;
  height:140px;
}
.map-mini iframe{
  width:100%;
  height:100%;
  border:0;
  display:block;
  filter:saturate(.9) contrast(1.05);
}
.map-overlay{
  position:absolute;
  right:8px;
  bottom:8px;
  padding:6px 10px;
  background:#ffffffd9;
  color:#1f2a37;
  border:1px solid var(--border);
  text-decoration:none;
  font-size:13px;
}
.map-overlay:hover{
  background:#fff;
}

/* Unterteilungen */
.card-details .details-panel > details{
  margin-top:14px;
}
.card-details .details-panel > details + details{
  margin-top:18px;
  padding-top:12px;
  border-top:1px dashed var(--border);
}

/* Meldungen */
.meldungen-sub{
  margin-top:6px;
  border-top:1px dashed var(--border);
  padding-top:8px;
}
.meldungen-sub > summary{
  list-style:none;
  display:flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
  color:#b96014;
  padding:6px 2px;
}
.meldungen-sub > summary::-webkit-details-marker{
  display:none;
}
.meldungen-sub .chev{
  transition:transform .2s ease;
  margin-left:auto;
  color:#6c7785;
}
.meldungen-sub[open] .chev{
  transform:rotate(180deg);
}
.count-pill{
  display:inline-grid;
  place-items:center;
  min-width:20px;
  height:20px;
  padding:0 6px;
  font-size:12px;
  border:1px solid #f1c7a8;
  color:#8a4b15;
  background:#fff8f5;
}
.meldungs-panel{
  margin-top:8px;
  display:grid;
  gap:12px;
}
.meldung-alert{
  display:flex;
  gap:10px;
  align-items:flex-start;
  background:#fff8f5;
  border:1px solid #f1c7a8;
  color:#8a4b15;
  padding:12px 14px;
  border-radius:0;
  width:100%;
}
.meldung-alert i{
  color:#b96014;
  margin-top:2px;
}
.meldung-body{
  line-height:1.5;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.meldung-body p{
  margin:0 0 6px 0;
}
.meldung-body p:last-child{
  margin-bottom:0;
}
.meldung-link{ margin-top:8px; }
.meldung-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  font-size:14px;
  line-height:1;
  background:#fff;
  color:var(--brand-700);
  border:1px solid var(--brand-700);
  border-radius:0;
  text-decoration:none;
  cursor:pointer;
}
.meldung-btn:hover{
  background:#f1f7ea;
}
.meldung-btn i{
  font-size:14px;
  line-height:1;
}

/* Zielgruppen */
.dg-audience .aud-row{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.aud-chip{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  background:var(--aud-bg);
  border:1px solid var(--aud-border);
  color:var(--aud-text);
  font-size:14px;
  line-height:1;
  border-radius:0;
}

/* Royal Rangers */
.dg-rangers .rr-chips{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}
.rr-chips--images-only .rr-img{
  height:28px;
  width:auto;
  object-fit:contain;
  image-rendering:auto;
  background:#fff;
  border:1px solid var(--border);
  padding:2px;
}

/* =========================================================
   Paging
   ========================================================= */
#mehr-laden-container{
  text-align:center;
  margin:20px 0 24px;
}
#mehrLadenBtn{
  padding:12px 24px;
  font-size:16px;
  background:var(--brand);
  color:#fff;
  border:1px solid var(--brand);
  cursor:pointer;
  border-radius:0;
  touch-action:manipulation;
}
#mehrLadenBtn[disabled]{
  opacity:.7;
  cursor:progress;
}
#scrollTopBtn{
  display:inline-block;
  margin:12px auto 0;
  padding:12px 24px;
  font-size:16px;
  background:#f4f4f4;
  color:#222;
  border:1px solid #bbb;
  cursor:pointer;
  border-radius:0;
  touch-action:manipulation;
}

/* =========================================================
   Legende
   ========================================================= */
.legende-auslastung{
  max-width:1040px;
  margin:24px auto 60px;
  padding:14px;
  background:#fff;
  border:1px dashed var(--border);
  border-radius:0;
}
.legende-auslastung .legende-title{
  margin:0 0 8px 0;
  display:flex;
  align-items:center;
  gap:8px;
  font-size:18px;
}
.legende-auslastung .legende-hint{
  margin:0 0 10px 0;
  color:#6c7785;
  font-size:15px;
}
.legende-auslastung .legende-grid{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px 16px;
}
@media (max-width:720px){
  .legende-auslastung .legende-grid{ grid-template-columns:1fr; }
}
.legende-auslastung .legende-item{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:28px;
}
.legende-auslastung .people{
  display:inline-flex;
  gap:4px;
  position:relative;
}
.legende-auslastung .people i{
  font-size:16px;
  color:var(--icon-dim);
}
.legende-auslastung .people i.filled{
  color:var(--icon-filled);
}
.legende-auslastung .people.people-unknown::after{
  content:"";
  position:absolute;
  left:-4px;
  right:-4px;
  top:50%;
  height:2px;
  background:#b0b6c0;
  transform:rotate(-14deg);
  border-radius:2px;
  pointer-events:none;
}

/* =========================================================
   Empty State
   ========================================================= */
.empty-state{
  max-width:1040px;
  border:1px dashed var(--border);
  background:#fff;
  padding:18px;
  text-align:center;
  color:#2b313a;
  margin:18px auto;
  border-radius:0;
}
.empty-state strong{
  display:block;
  margin-bottom:6px;
  font-size:18px;
}
.empty-active{
  color:#6c7785;
  margin:0 0 14px 0;
}
.empty-actions{
  display:flex;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
}
.empty-actions .btn{
  padding:10px 14px;
  border:1px solid var(--border);
  background:#fff;
  cursor:pointer;
  border-radius:0;
}
.empty-actions .btn-primary{
  background:var(--brand);
  color:#fff;
  border-color:var(--brand);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width:880px){
  .toolbar{ gap:8px; }
  .toolbar-left,
  .toolbar-right{ flex-wrap:wrap; }
}

@media (max-width:720px){
  main{ padding:0 10px; }

  .toolbar{
    position:static;
    flex-direction:column;
    align-items:stretch;
    gap:8px;
    background:var(--bg-page);
    padding-top:6px;
    margin:10px auto 10px;
  }

  .toolbar-left{
    width:100%;
    display:grid;
    grid-template-columns:1fr 42px;
    gap:8px;
  }

  .toolbar-right{
    width:100%;
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
  }

  .toolbar .btn-primary,
  .toolbar .action-btn{
    width:100%;
    justify-content:center;
  }

  .quick-chips{
    flex-wrap:nowrap;
    overflow-x:auto;
    padding-bottom:4px;
    scrollbar-width:none;
  }
  .quick-chips::-webkit-scrollbar{
    display:none;
  }

  .filterbereich{
    padding:10px;
    background:transparent;
    border:0;
    margin:10px auto 14px;
  }

  .filterbereich fieldset{
    padding:10px;
  }

  .filter-gruppe{
    grid-template-columns:1fr;
    gap:10px;
  }

  #suchfeld{
    height:46px;
    font-size:17px;
    margin-bottom:10px;
  }

  .filterbereich input:not([type="checkbox"]),
  .filterbereich select,
  #filterResetBtn{
    height:52px;
    font-size:16px;
  }

  .filter-gruppe label{
    min-height:auto;
    padding:2px 0;
  }

  .veranstaltung{
    padding:14px 12px 12px;
    margin:10px auto 16px;
  }

  .veranstaltung .card-head{
    display:grid;
    grid-template-columns:1fr auto;
    grid-template-areas:
      "title menu"
      "auslastung auslastung";
    align-items:start;
    row-gap:6px;
  }

  .veranstaltung .card-title{
    grid-area:title;
    font-size:19px;
    line-height:1.2;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }

  .veranstaltung .card-actions{
    grid-area:menu;
    justify-self:end;
  }

  .veranstaltung .card-head-right{
    grid-area:auslastung;
    display:flex;
    justify-content:flex-start;
    gap:8px;
  }

  .veranstaltung .card-head-right .auslastung-inline .label{
    display:none !important;
  }

  .auslastung-inline .people i{
    font-size:16px;
  }

  .meta-value{ font-size:16px; }
  .detail-title{ font-size:17px; }

  .card-menu-btn{
    width:44px;
    height:44px;
  }
  .card-menu-panel{
    min-width:240px;
    right:0;
    left:auto;
  }

  .card-details > summary{
    font-size:17px;
  }

  .details-panel{ padding:10px 12px; }
  .detail-group{ padding:10px; }

  .dg-address{
    grid-template-columns:1fr;
    grid-template-areas:
      "title"
      "addr"
      "map";
  }
  .map-mini{ height:160px; }

  #mehrLadenBtn,
  #scrollTopBtn{
    width:100%;
  }

  .dg-audience .aud-row{ gap:6px; }
}

@media (max-width:360px){
  .card-title{ font-size:17px; }
  .auslastung-inline .people i{ font-size:14px; }
}

/* =========================================================
   Kleine Helfer
   ========================================================= */
#refreshBtn.spinning i{
  animation:spin 1s linear infinite;
}
.old-ort s{
  color:#8d99a7;
}

/* Optional alter Badge-Wrapper */
.wheelchair-ico{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:20px;
  height:20px;
  margin-left:6px;
  border-radius:6px;
  background:#8A92A0;
  color:#fff;
  line-height:1;
  vertical-align:middle;
}
.wheelchair-ico i{
  font-size:12px;
  line-height:1;
}
.wheelchair-ico--red{
  background:#c00;
  color:#fff;
}
@media (prefers-color-scheme: dark){
  .wheelchair-ico{ background:#6E7582; }
}
.old-ort s .wheelchair-ico{
  position:relative;
  opacity:.7;
}
.old-ort s .wheelchair-ico::after{
  content:"";
  position:absolute;
  left:-2px;
  right:-2px;
  top:50%;
  height:2px;
  transform:translateY(-50%);
  background:currentColor;
  opacity:.6;
  pointer-events:none;
}
.ort-ersatz-rot{ color:#c00; }

/* Hash Focus */
.veranstaltung.hash-focus{
  outline:3px solid rgba(106,157,57,.45);
  outline-offset:4px;
}

/* =========================================================
   SHELL-SICHERHEIT
   ========================================================= */
@media (max-width:1024px){
  #topbar-container nav.rail{
    display:none !important;
  }
}