:root {
  --grund: #faf7f2;
  --flaeche: #ffffff;
  --schrift: #2a2420;
  --leise: #6f665e;
  --akzent: #b5651d;
  --linie: #e6dfd5;
  --radius: 14px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --grund: #1c1916;
    --flaeche: #26221e;
    --schrift: #f1ece5;
    --leise: #a89e93;
    --akzent: #e08a3c;
    --linie: #3a342e;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--grund);
  color: var(--schrift);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.kopf {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  padding-top: max(12px, env(safe-area-inset-top));
  background: var(--grund);
  border-bottom: 1px solid var(--linie);
}

.marke {
  color: var(--schrift);
  font-weight: 700;
  text-decoration: none;
}

.sprachen { display: flex; gap: 4px; }

.sprachen button {
  min-width: 40px;
  min-height: 36px;
  border: 1px solid var(--linie);
  border-radius: 8px;
  background: transparent;
  color: var(--leise);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.sprachen button.aktiv {
  border-color: var(--akzent);
  color: var(--akzent);
  font-weight: 600;
}

.inhalt {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 16px 48px;
}

.einleitung { font-size: 19px; margin: 8px 0 16px; }

.standortleiste { margin-bottom: 8px; min-height: 44px; }

.abschnitt {
  margin: 24px 0 8px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--leise);
}

.liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.karte {
  display: grid;
  gap: 2px;
  padding: 16px;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
}

.karte-titel { font-size: 19px; font-weight: 650; }
.karte-von, .karte-ort { color: var(--leise); font-size: 15px; }
.karte-abstand { color: var(--akzent); font-weight: 600; font-size: 15px; }

.marke-vorschau {
  justify-self: start;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--linie);
  font-size: 13px;
}

.knopf {
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--akzent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.knopf.zweitrangig {
  background: transparent;
  color: var(--akzent);
  border: 1px solid var(--akzent);
}

.zurueck {
  display: inline-block;
  margin: 4px 0 12px;
  color: var(--akzent);
  text-decoration: none;
}

.ansicht {
  width: 100%;
  height: 60vh;
  min-height: 320px;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
}

.ar-knopf {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.titel { margin: 20px 0 4px; font-size: 26px; line-height: 1.2; }
.von, .ort { margin: 0; color: var(--leise); }
.text { margin-top: 16px; }
.hinweis { color: var(--leise); font-size: 15px; }
