@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../vendor/fraunces/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../vendor/fraunces/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
  src: url('../vendor/fraunces/fraunces-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
  src: url('../vendor/fraunces/fraunces-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Design-Tokens identisch zu index.html */
  --accent:        #ae4e26;
  --accent-soft:   #e07a4a;
  --accent-dk:     #1f3a2c;
  --primary:       #1f3a2c;
  --primary-soft:  #2c4a3a;
  --text:          #1c2620;
  --text2:         #4a544c;
  --muted:         #636b63;
  --surface:       #faf6ee;
  --bg:            #f4efe6;
  --bg-elev:       #ebe4d4;
  --border:        #d8d0bd;
  --border-soft:   #e3dccb;
  --header-h:      72px;
  --sidebar-w:     380px;
  --footer-h:      0px;
  --panel-radius:  20px;
  --safe-bottom:   env(safe-area-inset-bottom, 0px);
  --safe-top:      env(safe-area-inset-top, 0px);
  --font-display:  'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:     -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:     'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* WCAG: Skip-Link, Focus */
.skip-link { position: absolute; top: -48px; left: 16px; z-index: 9999; background: var(--primary); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 8px; font-size: 14px; font-weight: 500; text-decoration: none; transition: top .2s; white-space: nowrap; }
.skip-link:focus { top: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 2px; }

/* ── Map ── */
#map {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  z-index: 0;
}

.leaflet-bottom.leaflet-right { bottom: 32px; }

/* ── Legal bar (fixed overlay at bottom of map) ── */
.map-legal-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 28px;
  z-index: 100;
  background: rgba(244, 239, 230, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(216, 208, 189, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.map-legal-bar a {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}
.map-legal-bar a:hover { color: var(--text); }

/* ── App title (mobile, hidden — header replaces it) ── */
#app-title {
  display: none;
  position: fixed;
  top: calc(var(--safe-top) + 12px);
  left: 12px;
  z-index: 500;
  background: var(--surface);
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(28,38,32,0.15);
  pointer-events: auto;
  line-height: 1;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}
#app-title .amp { color: var(--accent); font-style: normal; margin: 0 -1px 0 -2px; }

/* ── Loading overlay ── */
#loading-overlay {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  z-index: 600;
  background: rgba(250,246,238,0.75);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 14px;
  color: var(--text2);
}
#loading-overlay.hidden { display: none; }

.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Error banner ── */
#error-banner {
  position: fixed;
  top: calc(var(--safe-top) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 700;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  max-width: calc(100vw - 24px);
}
#error-banner.hidden { display: none; }
#error-banner svg { flex-shrink: 0; color: #e67e00; }
#retry-btn {
  margin-left: 8px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #e67e00;
  background: transparent;
  color: #e67e00;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* ── Custom Leaflet marker ── */
.pd-marker {
  width: 36px; height: 36px;
  background: var(--accent);
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 3px 10px rgba(174,78,38,0.5);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.pd-marker:hover { box-shadow: 0 5px 18px rgba(174,78,38,0.7); }
.pd-marker.active {
  background: var(--primary);
  box-shadow: 0 5px 18px rgba(31,58,44,0.7);
  transform: rotate(-45deg) scale(1.15);
}
.pd-marker-inner {
  transform: rotate(45deg);
  font-size: 16px;
  line-height: 1;
}

/* ── Detail Panel ── */
#detail-panel {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 400;
  background: var(--surface);
  border-radius: var(--panel-radius) var(--panel-radius) 0 0;
  box-shadow: 0 -4px 32px rgba(28,38,32,0.18);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 72vh;
  display: flex;
  flex-direction: column;
}
#detail-panel.open { transform: translateY(0); }

#panel-drag-handle {
  flex-shrink: 0;
  padding: 10px 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
}
.handle-bar {
  width: 40px; height: 4px;
  background: var(--border);
  border-radius: 2px;
}

#panel-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 20px 20px;
  position: relative;
}
#panel-scroll::-webkit-scrollbar { display: none; }

#panel-close {
  position: absolute;
  top: 0; right: 20px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text2);
  transition: background 0.15s;
}
#panel-close:hover { background: var(--border); }

/* ── Panel Content ── */
.detail-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 2px;
}
.detail-img {
  width: 100px; height: 100px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-elev);
}
.detail-header-info { flex: 1; min-width: 0; }
.detail-header-info .detail-name { padding-right: 44px; }
.detail-header-info .detail-address,
.detail-header-info .detail-phone { margin-bottom: 6px; }

.detail-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  line-height: 1.2;
  color: var(--text);
}
.detail-address {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 14px;
  line-height: 1.4;
}
.detail-address svg { vertical-align: -3px; margin-right: 4px; }

.detail-phone {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.detail-phone a { color: var(--accent); text-decoration: none; font-weight: 500; }
.detail-phone a:hover { text-decoration: underline; }

.detail-hours {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.badge-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 7px;
}
.badge--parking { background: rgba(174,78,38,0.08); color: var(--accent); border: 1px solid rgba(174,78,38,0.25); }
.badge--veg     { background: rgba(74,222,128,0.1);  color: #16a34a;       border: 1px solid rgba(74,222,128,0.3); }
.badge--vegan   { background: rgba(34,197,94,0.1);   color: #15803d;       border: 1px solid rgba(34,197,94,0.3); }
.badge--power   { background: rgba(250,204,21,0.12); color: #a16207;       border: 1px solid rgba(250,204,21,0.4); }

.detail-loading { display: flex; justify-content: center; padding: 10px 0 4px; }
.spinner--sm { width: 22px; height: 22px; border-width: 2px; }

.detail-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text2);
  margin-bottom: 18px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.detail-actions { display: flex; gap: 10px; margin-bottom: 4px; }

.btn-route {
  flex: 1; padding: 13px; border-radius: 10px;
  background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 600; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  text-decoration: none; transition: background 0.15s;
}
.btn-route:hover { background: var(--accent-soft); }

.btn-website {
  flex: 1; padding: 13px; border-radius: 10px;
  background: transparent; color: var(--primary);
  font-size: 14px; font-weight: 600; border: 2px solid var(--primary); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  text-decoration: none; transition: background 0.15s;
}
.btn-website:hover { background: rgba(31,58,44,0.06); }

/* ── Site Footer (Vollseiten-Footer, scrollbar) ── */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 64px 0 36px;
  color: var(--text2);
  font-size: 14px;
}
.ft-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.ft-grid h4 {
  font-family: var(--font-body);
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--muted);
  margin-bottom: 16px;
}
.ft-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ft-grid a { color: var(--text2); text-decoration: none; transition: color .15s; }
.ft-grid a:hover { color: var(--text); }
.ft-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border-soft);
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted);
}
.ft-social { display: flex; gap: 16px; }
.ft-social a { color: inherit; text-decoration: none; transition: color .15s; }
.ft-social a:hover { color: var(--text); }
@media (max-width: 900px) { .ft-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .ft-grid { grid-template-columns: 1fr; } .ft-bottom { flex-direction: column; gap: 12px; } }

/* ── Modal overlay ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 800;
  background: rgba(28,38,32,0.45);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: opacity 0.25s;
}
.modal-overlay.hidden { display: none; }

.modal-sheet {
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  width: 100%; max-width: 600px; max-height: 85vh;
  display: flex; flex-direction: column; overflow: hidden;
  padding-bottom: var(--safe-bottom);
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-header h2 { font-family: var(--font-display); font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }

.modal-close {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-elev); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text2); transition: background 0.15s;
}
.modal-close:hover { background: var(--border); }

.modal-body {
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 20px; display: flex; flex-direction: column;
  gap: 12px; font-size: 14px; line-height: 1.65; color: var(--text2);
}
.modal-body::-webkit-scrollbar { display: none; }
.modal-body h3 { font-family: var(--font-display); font-size: 15px; font-weight: 500; color: var(--text); margin-top: 4px; }
.modal-body p strong { color: var(--text); display: block; margin-bottom: 2px; }
.modal-body a { color: var(--accent); text-decoration: none; }
.modal-body a:hover { text-decoration: underline; }

/* ── Toast ── */
#toast {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  padding: 11px 18px; border-radius: 99px;
  font-size: 13px; font-weight: 500;
  box-shadow: 0 4px 20px rgba(28,38,32,0.25);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
  max-width: calc(100vw - 40px);
  overflow: hidden; text-overflow: ellipsis;
  z-index: 600;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Locate-Button ── */
.pd-locate-btn {
  width: 34px; height: 34px;
  background: var(--surface);
  border: 2px solid rgba(28,38,32,0.2);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text2);
  box-shadow: 0 1px 5px rgba(0,0,0,0.2);
  transition: background 0.15s, color 0.15s;
  padding: 0; margin-top: 0;
}
.pd-locate-btn:hover { background: var(--bg-elev); }
.pd-locate-btn.locating { color: var(--accent); animation: pulse-btn 1s ease-in-out infinite; }
.pd-locate-btn.located  { color: #1a73e8; }
.pd-locate-btn.error    { color: #e53935; }
@keyframes pulse-btn { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ── Nutzer-Standort-Marker ── */
.user-location-dot {
  width: 18px; height: 18px;
  background: #1a73e8; border: 3px solid #fff;
  border-radius: 50%; box-shadow: 0 2px 8px rgba(26,115,232,0.5); position: relative;
}
.user-location-dot::after {
  content: ''; position: absolute; inset: -8px; border-radius: 50%;
  background: rgba(26,115,232,0.18); animation: location-pulse 2s ease-out infinite;
}
@keyframes location-pulse { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(2); opacity: 0; } }

/* ── Sidebar (mobile: versteckt) ── */
#sidebar { display: none; }

/* ══════════════════════════════════════════
   Desktop-Layout  (≥ 768 px)
══════════════════════════════════════════ */
@media (min-width: 768px) {

  #map { left: var(--sidebar-w); }
  #loading-overlay { left: var(--sidebar-w); }
  #detail-panel { display: none !important; }

  /* ── Sidebar ── */
  #sidebar {
    display: flex; flex-direction: column;
    position: fixed; left: 0; top: var(--header-h);
    bottom: 0; width: var(--sidebar-w);
    background: var(--surface);
    border-right: 1px solid var(--border);
    box-shadow: 2px 0 16px rgba(28,38,32,0.07);
    z-index: 200; overflow: hidden;
  }

  /* Header */
  .sb-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--surface);
  }

  /* Logo */
  .sb-logo {
    display: inline-flex; align-items: baseline; gap: 0;
    font-family: var(--font-display);
    font-size: 22px; font-weight: 500; letter-spacing: -0.02em;
    color: var(--primary); text-decoration: none;
  }
  .sb-logo .amp { color: var(--accent); font-style: normal; margin: 0 -1px 0 -2px; }

  .sb-count {
    font-size: 12px; font-weight: 500;
    color: var(--text2); background: var(--bg-elev);
    padding: 3px 10px; border-radius: 99px;
    white-space: nowrap; border: 1px solid var(--border-soft);
  }

  /* Suche */
  .sb-search-wrap {
    position: relative; padding: 12px 16px;
    border-bottom: 1px solid var(--border); flex-shrink: 0;
    background: var(--surface);
  }
  .sb-search-icon {
    position: absolute; left: 29px; top: 50%;
    transform: translateY(-50%); color: var(--muted); pointer-events: none;
  }
  #sb-search {
    width: 100%; padding: 9px 12px 9px 36px;
    border: 1px solid var(--border); border-radius: 8px;
    font-size: 13px; font-family: inherit;
    color: var(--text); background: var(--bg-elev); outline: none;
    transition: border-color 0.15s, background 0.15s;
  }
  #sb-search:focus { border-color: var(--primary); background: var(--surface); }
  #sb-search::placeholder { color: var(--muted); }

  /* Listen-View */
  #sb-list-view {
    flex: 1; overflow-y: auto;
    scrollbar-width: thin; scrollbar-color: var(--border) transparent;
  }
  #sb-list-view::-webkit-scrollbar { width: 5px; }
  #sb-list-view::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

  .sb-item {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 20px; cursor: pointer;
    border-bottom: 1px solid var(--border-soft);
    transition: background 0.12s;
    border-left: 3px solid transparent;
  }
  .sb-item:hover { background: var(--bg-elev); }
  .sb-item.active {
    background: rgba(31,58,44,0.06);
    border-left-color: var(--primary);
  }
  .sb-item-icon {
    width: 42px; height: 42px; border-radius: 10px;
    background: var(--bg-elev);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0; overflow: hidden;
  }
  .sb-item-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
  .sb-item-info { flex: 1; min-width: 0; }
  .sb-item-name {
    font-size: 14px; font-weight: 600; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px;
  }
  .sb-item-addr {
    font-size: 12px; color: var(--text2);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .sb-item-arrow { color: var(--border); flex-shrink: 0; transition: color 0.12s; }
  .sb-item:hover .sb-item-arrow  { color: var(--accent); }
  .sb-item.active .sb-item-arrow { color: var(--primary); }

  .sb-empty { padding: 40px 20px; text-align: center; color: var(--muted); font-size: 14px; }

  /* Detail-View */
  #sb-detail-view { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
  #sb-detail-view.sb-hidden { display: none; }
  #sb-list-view.sb-hidden   { display: none; }

  #sb-back {
    display: flex; align-items: center; gap: 6px;
    padding: 12px 20px;
    border: none; border-bottom: 1px solid var(--border);
    background: var(--bg-elev);
    color: var(--primary); font-size: 13px; font-weight: 600;
    cursor: pointer; font-family: inherit; flex-shrink: 0;
    transition: background 0.12s;
  }
  #sb-back:hover { background: var(--border-soft); }

  #sb-detail-content {
    flex: 1; overflow-y: auto; padding: 20px;
    scrollbar-width: thin; scrollbar-color: var(--border) transparent;
  }
  #sb-detail-content::-webkit-scrollbar { width: 5px; }
  #sb-detail-content::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

  #sb-detail-content .detail-name    { font-size: 18px; padding-right: 0; }
  #sb-detail-content .detail-top     { margin-bottom: 12px; }
  #sb-detail-content .detail-img     { width: 90px; height: 90px; }
  #sb-detail-content .detail-actions { margin-top: 14px; }
  #sb-detail-content .btn-route,
  #sb-detail-content .btn-website    { padding: 11px; font-size: 13px; }
}

/* ══════════════════════════════════════════
   Navigation-Header (geteilt mit index.html)
══════════════════════════════════════════ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.row { display: flex; align-items: center; justify-content: space-between; }

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 600;
  height: var(--header-h);
  background: rgba(250,246,238,0.95);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .row { height: var(--header-h); }

.logo {
  display: inline-flex; align-items: baseline; gap: 0;
  font-family: var(--font-display); font-size: 26px; font-weight: 500;
  letter-spacing: -0.02em; color: var(--primary); text-decoration: none;
}
.logo .amp { color: var(--accent); font-style: normal; margin: 0 -1px 0 -2px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 14px; color: var(--text2); transition: color .15s; text-decoration: none; }
.nav a:hover { color: var(--text); }
.nav .divider { width: 1px; height: 18px; background: var(--border); flex-shrink: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px;
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s, background .2s, color .2s;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; font-weight: 600; }
.btn-primary:hover { background: var(--primary-soft); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-elev); }

/* ── Burger menu ── */
.nav-burger {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: none; background: transparent; cursor: pointer;
  color: var(--text); border-radius: 8px; flex-shrink: 0;
}
.nav-burger:hover { background: var(--bg-elev); }
.mobile-nav {
  display: none;
  position: fixed; inset: 0; z-index: 999;
  background: rgba(28,38,32,0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.mobile-nav.open { display: flex; align-items: flex-start; justify-content: flex-end; }
.mobile-nav-inner {
  background: var(--surface);
  width: 280px; max-width: 88vw; height: 100%;
  padding: 24px 20px;
  display: flex; flex-direction: column;
  box-shadow: -4px 0 28px rgba(28,38,32,0.2);
  overflow-y: auto;
}
.mobile-nav-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 28px;
}
.mobile-nav-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-elev); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text2);
}
.mobile-nav-links { display: flex; flex-direction: column; }
.mobile-nav-links a {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 16px; color: var(--text2);
  text-decoration: none; display: block;
}
.mobile-nav-links a:hover { color: var(--text); }
.mobile-nav-links .mobile-nav-divider { height: 1px; background: var(--border-soft); margin: 0 0 20px; }
.mobile-nav-links .btn {
  border-bottom: none; margin-top: 10px;
  justify-content: center; width: 100%; text-align: center;
  display: flex;
}
.mobile-nav-links .btn + .btn { margin-top: 10px; }

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .nav { display: none; }
  .nav-burger { display: flex; }
}

/* ── Screen-reader only ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Filter-Chips (gemeinsam Desktop-Sidebar + Mobile-Leiste) ── */
.filter-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 11px; border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--bg-elev); color: var(--text2);
  font-size: 12px; font-weight: 500; font-family: inherit;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  line-height: 1.4;
}
.filter-chip:hover:not(:disabled) {
  background: var(--bg); border-color: var(--primary); color: var(--primary);
}
.filter-chip.active {
  background: var(--primary); border-color: var(--primary); color: #fff;
}
.filter-chip:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Desktop Sidebar: Filter-Wrap ── */
.sb-filter-wrap {
  padding: 10px 16px 8px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0; background: var(--surface);
}
.sb-filter-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-loading-hint {
  font-size: 11px; color: var(--muted);
  margin-top: 6px; font-style: italic;
}

/* ── Mobile Filter-Leiste ── */
#mobile-filter-bar {
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  height: 44px; z-index: 300;
  background: rgba(250,246,238,0.96);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: center;
  gap: 8px; padding: 0 12px;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
#mobile-filter-bar::-webkit-scrollbar { display: none; }

/* Karte + Overlay auf Mobile tiefer setzen (unter Filter-Leiste) */
@media (max-width: 767px) {
  #map            { top: calc(var(--header-h) + 44px); }
  #loading-overlay { top: calc(var(--header-h) + 44px); }
}
/* Auf Desktop: Mobile-Leiste verstecken */
@media (min-width: 768px) {
  #mobile-filter-bar { display: none; }
}

/* ── Detail: Fehlerzustand ── */
.detail-error {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #b45309;
  background: #fef3c7; border: 1px solid #fbbf24;
  border-radius: 8px; padding: 10px 14px; margin-bottom: 14px;
  flex-wrap: wrap;
}
.detail-error svg { flex-shrink: 0; }
.detail-error-retry {
  margin-left: auto; padding: 4px 10px;
  border-radius: 6px; border: 1px solid #d97706;
  background: transparent; color: #d97706;
  font-size: 12px; font-weight: 600; cursor: pointer;
  white-space: nowrap; font-family: inherit;
}

/* ── Filter-zurücksetzen-Button ── */
.filter-clear-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px; border-radius: 99px; flex-shrink: 0;
  border: 1px solid var(--accent); color: var(--accent);
  background: transparent; font-size: 12px; font-weight: 600;
  cursor: pointer; white-space: nowrap; font-family: inherit;
  transition: background 0.15s, color 0.15s;
  line-height: 1.4;
}
.filter-clear-btn:hover { background: var(--accent); color: #fff; }

/* ── Marker-Cluster ── */
.pd-cluster {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  border: 3px solid rgba(255,255,255,0.8);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ── Leerer Zustand (Karte ohne Treffer) ── */
#map-empty-state {
  position: fixed; z-index: 250;
  left: 0; right: 0;
  top: calc(var(--header-h) + 44px);
  bottom: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
#map-empty-state[hidden] { display: none; }
@media (min-width: 768px) {
  #map-empty-state { left: var(--sidebar-w); top: var(--header-h); }
}
.map-empty-inner {
  background: var(--surface); border-radius: 16px;
  padding: 28px 32px; text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  pointer-events: all;
}
.map-empty-icon { font-size: 36px; display: block; margin-bottom: 10px; }
.map-empty-title { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.map-empty-sub { font-size: 13px; color: var(--text2); margin-bottom: 16px; }
.map-empty-reset {
  padding: 8px 20px; border-radius: 99px;
  background: var(--primary); color: #fff;
  border: none; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: background 0.15s;
}
.map-empty-reset:hover { background: var(--primary-soft); }
.detail-error-retry:hover { background: #fffbeb; }
