:root {
  --hg: #ffffff;
  --text: #1c1c1e;
  --leise: #6b6b70;
  --linie: #e3e3e8;
  --akzent: #0a7d5a;
  --akzent-text: #ffffff;
  --schatten: 0 4px 18px rgba(0, 0, 0, .18);
}
@media (prefers-color-scheme: dark) {
  :root {
    --hg: #1c1c1e;
    --text: #f2f2f7;
    --leise: #a1a1a8;
    --linie: #38383c;
    --akzent: #34c08f;
    --akzent-text: #0b0b0c;
    --schatten: 0 4px 18px rgba(0, 0, 0, .5);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--hg); color: var(--text);
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
#karte { position: fixed; inset: 0; }

#kopf { position: fixed; top: calc(env(safe-area-inset-top) + 10px); left: 12px; right: 12px; z-index: 5; }
#suchfeld { width: 100%; padding: 12px 14px; border: 0; border-radius: 12px; background: var(--hg); color: var(--text);
  box-shadow: var(--schatten); font-size: 16px; }
#treffer { list-style: none; margin: 6px 0 0; padding: 0; background: var(--hg); border-radius: 12px; box-shadow: var(--schatten);
  max-height: 50vh; overflow-y: auto; }
#treffer li { padding: 11px 14px; border-bottom: 1px solid var(--linie); cursor: pointer; }
#treffer li:last-child { border-bottom: 0; }
#treffer .klein { display: block; }

#standort { position: fixed; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 64px); z-index: 4; width: 46px; height: 46px;
  border: 0; border-radius: 50%; background: var(--hg); color: var(--akzent); font-size: 22px; box-shadow: var(--schatten); cursor: pointer; }
#laden { position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 66px); transform: translateX(-50%); z-index: 4;
  background: var(--hg); padding: 4px 12px; border-radius: 10px; box-shadow: var(--schatten); color: var(--leise); }
#hinweis { position: fixed; left: 12px; right: 12px; top: 40%; z-index: 9; background: var(--hg); padding: 16px; border-radius: 12px;
  box-shadow: var(--schatten); text-align: center; }

#details { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; max-height: 72vh; overflow-y: auto; background: var(--hg);
  border-radius: 16px 16px 0 0; box-shadow: var(--schatten); padding-bottom: calc(env(safe-area-inset-bottom) + 12px); }
#schliessen { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .45); color: #fff; font-size: 16px; cursor: pointer; z-index: 1; }
#d-bild { width: 100%; max-height: 220px; object-fit: cover; display: block; border-radius: 16px 16px 0 0; }
.d-inhalt { padding: 14px 16px 4px; }
#d-name { font-size: 21px; margin: 2px 0 6px; padding-right: 36px; }
.klein { font-size: 14px; color: var(--leise); margin: 0 0 4px; }
.fett { font-weight: 600; }
#d-text { margin: 10px 0; white-space: pre-line; }
.knoepfe { display: flex; gap: 10px; margin: 12px 0; flex-wrap: wrap; }
.knopf { padding: 10px 16px; border-radius: 10px; border: 1px solid var(--linie); color: var(--text); text-decoration: none; }
.knopf.haupt { background: var(--akzent); color: var(--akzent-text); border-color: var(--akzent); font-weight: 600; }
#d-umgebung-liste { list-style: none; padding: 0; margin: 4px 0 8px; }
#d-umgebung-liste li { padding: 6px 0; border-bottom: 1px solid var(--linie); font-size: 15px; }

/* Unten links liegen Apples Logo und „Rechtliches“ – die müssen sichtbar bleiben, daher Abstand nach unten */
#fuss { position: fixed; left: 0; right: 70px; bottom: calc(env(safe-area-inset-bottom) + 30px); z-index: 3; padding: 6px 12px;
  font-size: 11px; color: var(--leise); display: flex; flex-direction: column; gap: 2px; pointer-events: none; }
#fuss a, #fuss .quellen { pointer-events: auto; }
#fuss .quellen { background: color-mix(in srgb, var(--hg) 80%, transparent); padding: 2px 6px; border-radius: 6px; width: fit-content; }
#fuss a { color: inherit; }
#app-link { background: var(--akzent); color: var(--akzent-text) !important; text-decoration: none; padding: 7px 12px; border-radius: 10px;
  font-size: 13px; width: fit-content; box-shadow: var(--schatten); }
#details:not([hidden]) ~ #fuss { display: none; }

/* Highlights-Leiste (Startansicht) */
#tipps { pointer-events: auto; background: var(--hg); border-radius: 14px; box-shadow: var(--schatten); padding: 8px 0 10px; margin-bottom: 4px; }
.tipps-kopf { display: flex; justify-content: space-between; align-items: center; padding: 0 10px 6px 12px; font-size: 14px; color: var(--text); }
#tipps-zu { border: 0; background: none; color: var(--leise); font-size: 15px; cursor: pointer; padding: 2px 4px; }
#tipps-liste { display: flex; gap: 10px; overflow-x: auto; padding: 0 12px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.tipp { flex: 0 0 132px; scroll-snap-align: start; cursor: pointer; color: var(--text); font-size: 13px; line-height: 1.25; }
.tipp img, .tipp .ohne-bild { width: 132px; height: 80px; object-fit: cover; border-radius: 10px; display: block; background: var(--linie); }
.tipp .ohne-bild { display: flex; align-items: center; justify-content: center; font-size: 28px; }
.tipp b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; font-weight: 600; }
.tipp span { color: var(--leise); font-size: 12px; }
