/* Stadtstücke. Prag – Tokens aus dem Figma-Entwurf */
:root {
  --paper: #f7f3ea;
  --sand: #eee9de;
  --map: #eae6da;
  --white: #fffcf6;
  --ink: #282d28;
  --muted: #75766c;
  --rule: #d8d4c8;
  --accent: #a44834;
  --accent-ink: #8a3a29;
  --forest: #303b34;
  --sage: #d3d9c4;
  --blush: #f0ded2;

  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(24px, 5.6vw, 80px);
  --max: 1440px;
  --radius: 3px;

  /* Motion – Kurven nach Emil Kowalski */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------------------------------------------------------------- Navigation */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav__inner { height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 25px; white-space: nowrap; }
.nav__links { display: flex; gap: 28px; font-size: 13px; margin-left: auto; }
.nav__links a { position: relative; padding: 6px 0; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 200ms var(--ease-out);
}
.nav__tools { display: flex; align-items: center; gap: 16px; }
.lang { display: flex; border: 1px solid var(--rule); border-radius: 100px; padding: 2px; }
.lang button {
  border: 0; background: transparent; cursor: pointer; font-size: 11px; font-weight: 500; letter-spacing: 0.04em;
  padding: 5px 10px; border-radius: 100px; color: var(--muted);
  transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.lang button:active { transform: scale(0.97); }
.nav__menu { display: none; border: 0; background: none; padding: 8px; margin-right: -8px; cursor: pointer; transition: transform 160ms var(--ease-out); }
.nav__menu:active { transform: scale(0.95); }

/* Drawer (mobil) */
.drawer { position: fixed; inset: 0; z-index: 40; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(40, 45, 40, 0.32); opacity: 0; transition: opacity 250ms var(--ease-out); }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 86vw);
  background: var(--paper); padding: 32px 24px; display: flex; flex-direction: column; gap: 20px;
  transform: translateX(100%); transition: transform 400ms var(--ease-drawer);
  box-shadow: -12px 0 40px rgba(40, 45, 40, 0.12);
}
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__links { display: flex; flex-direction: column; }
.drawer__links a { font-family: var(--serif); font-size: 26px; padding: 12px 0; border-bottom: 1px solid var(--rule); }

/* ---------------------------------------------------------------- Typo-Bausteine */
.kicker { font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.02em; }
.chapter { display: flex; align-items: center; gap: 14px; }
.chapter__num { font-size: 12px; color: var(--accent); text-transform: uppercase; }
.chapter__line { width: 38px; height: 1px; background: var(--accent); }
.chapter__label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.02em; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1.12; }
.h3 { font-family: var(--serif); font-weight: 400; font-size: 31px; line-height: 1.2; }
.lead { font-size: 15px; line-height: 1.65; color: var(--muted); max-width: 700px; }
.small { font-size: 11px; line-height: 1.6; color: var(--muted); }
.dist { font-size: 10px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- Hero */
.hero { padding-top: 44px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 34px; }
.hero__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hero__kicker { font-size: 11px; font-weight: 600; color: var(--accent); text-transform: uppercase; margin-bottom: 8px; }
.hero__title { font-family: var(--serif); font-weight: 400; font-size: 118px; line-height: 1.08; }
.hero__claim { font-family: var(--serif); font-size: 31px; line-height: 1.25; width: 470px; max-width: 100%; }
.hero__row { display: grid; grid-template-columns: 340fr 572fr 320fr; gap: 24px; }
.hero__img a { display: block; overflow: hidden; border-radius: var(--radius); }
.hero__img img { width: 100%; height: 290px; object-fit: cover; transition: transform 300ms var(--ease-out); }
.hero__img figcaption { font-size: 10px; color: var(--muted); margin-top: 8px; }

.card { background: var(--sand); padding: 24px; }
.card__title { font-family: var(--serif); font-size: 25px; }
.facts { display: flex; flex-direction: column; gap: 18px; min-height: 290px; }
.facts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.facts__grid dt { font-size: 9px; color: var(--muted); text-transform: uppercase; margin-bottom: 6px; letter-spacing: 0.02em; }
.facts__grid dd { font-size: 13px; line-height: 1.4; }
.facts__note { font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------------- Abschnitte */
.section { padding: 64px 0; }
.section--sand { background: var(--sand); }
.section--white { background: var(--white); }
#karte { padding: 56px 0; }
.section__head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
#karte .section__head { margin-bottom: 20px; }

/* Filter */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  border: 1px solid var(--rule); background: var(--white); border-radius: 100px; padding: 6px 14px;
  font-size: 12px; cursor: pointer; color: var(--ink);
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.chip:active { transform: scale(0.97); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Übersichtskarte */
.overview { display: grid; grid-template-columns: minmax(0, 856fr) minmax(300px, 392fr); gap: 32px; align-items: start; margin-bottom: 28px; }
.mapbox { position: relative; background: var(--map); overflow: hidden; }
.mapbox--overview { height: 490px; }
.map { position: absolute; inset: 0; }
.legend {
  position: absolute; left: 16px; bottom: 16px; z-index: 2; background: var(--white); padding: 8px 10px;
  display: flex; gap: 14px; font-size: 10px; pointer-events: none;
}
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; border-radius: 50%; }
.legend__num { width: 10px; height: 10px; background: var(--accent); box-shadow: 0 0 0 1.5px var(--paper), 0 0 0 2.5px var(--accent); }
.legend__dot { width: 7px; height: 7px; background: var(--accent); opacity: 0.55; }
.legend__self { width: 9px; height: 9px; background: #3c6e8f; box-shadow: 0 0 0 2px #fff; }

.places__title { font-family: var(--serif); font-weight: 400; font-size: 27px; }
.places__list { margin-bottom: 18px; }
.place-row {
  display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rule);
}
.place-row__num { font-size: 12px; color: var(--accent); width: 22px; flex: none; padding-top: 1px; }
.place-row__body { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.place-row__name { font-size: 14px; }
.place-row__sub { font-size: 11px; color: var(--muted); }
.place-row .dist { padding-top: 3px; }
.place-row__arrow { color: var(--accent); font-size: 16px; line-height: 1; transition: transform 200ms var(--ease-out); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px;
  padding: 10px 16px; border-radius: 100px; font-size: 13px; cursor: pointer; border: 1px solid transparent;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { cursor: progress; opacity: 0.75; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--rule); color: var(--ink); }
.locate-btn__icon {
  width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; position: relative; flex: none;
}
.locate-btn__icon::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: currentColor; }
.locate-btn.is-located .locate-btn__icon { color: #3c6e8f; }
.locate-msg { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* Split-Layouts */
.split { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: start; }
.split--reverse { grid-template-columns: minmax(0, 1fr) 360px; }
.notes { display: flex; flex-direction: column; gap: 8px; }
.notes .kicker { margin-bottom: 0; }
.note { display: flex; flex-direction: column; gap: 6px; padding: 16px 0; border-top: 1px solid var(--rule); }
.note__title { font-family: var(--serif); font-size: 22px; line-height: 1.2; display: flex; justify-content: space-between; gap: 12px; }
.note__arrow { font-family: var(--sans); font-size: 15px; color: var(--accent); transition: transform 200ms var(--ease-out); }
.note__text { font-size: 13px; line-height: 1.6; color: var(--muted); }

/* Kachel-Raster */
.grid { display: grid; gap: 22px 26px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 26px; }
.grid--wide { gap: 24px; }

.tile, .near { display: flex; flex-direction: column; gap: 10px; }
.tile__img { overflow: hidden; border-radius: var(--radius); background: var(--rule); }
.tile__img img { width: 100%; height: 140px; object-fit: cover; transition: transform 300ms var(--ease-out); }
.tile--l .tile__img img { height: 210px; }
.tile--dish { gap: 8px; }
.tile--dish .tile__img img { height: 164px; }
.tile__img--empty { height: 140px; display: flex; align-items: flex-end; padding: 12px; background: var(--sand); }
.tile__img--empty span { font-size: 10px; color: var(--muted); text-transform: uppercase; }
.tile__kicker { font-size: 10px; color: var(--accent); text-transform: uppercase; display: flex; justify-content: space-between; gap: 8px; letter-spacing: 0.02em; }
.tile__title { font-family: var(--serif); font-size: 19px; line-height: 1.18; }
.tile--l .tile__title { font-size: 25px; }
.tile__text { font-size: 13px; line-height: 1.55; color: var(--muted); }
.tile__caption { font-size: 12px; }

.artnote { display: flex; flex-direction: column; gap: 16px; }
.artnote__title { font-family: var(--serif); font-size: 31px; line-height: 1.2; }
.artnote__text { font-size: 14px; line-height: 1.75; color: var(--muted); }
.artnote__sub { border-top: 1px solid var(--rule); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }

/* Essen */
.food { display: grid; grid-template-columns: 300px 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.dishes { display: flex; flex-direction: column; gap: 12px; }
.dish { display: flex; flex-direction: column; gap: 5px; padding: 14px 0; border-top: 1px solid var(--rule); }
.dish__name { font-family: var(--serif); font-size: 23px; }
.dish__sub { font-size: 13px; color: var(--muted); }
.food .notes { gap: 12px; }

/* Aussichtspunkt */
.viewpoint { margin-top: 32px; background: var(--sand); padding: 24px; display: flex; align-items: center; gap: 18px; }
.viewpoint__body { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.viewpoint__title { font-family: var(--serif); font-size: 23px; }
.viewpoint__text { font-size: 13px; color: var(--muted); line-height: 1.6; }
.viewpoint img { transition: transform 200ms var(--ease-out); }

/* ---------------------------------------------------------------- Footer */
.footer { background: var(--forest); color: var(--paper); padding: 48px 0; }
.footer__top { display: grid; grid-template-columns: 570fr 650fr; gap: 60px; margin-bottom: 32px; }
.footer__claim { font-family: var(--serif); font-size: 44px; line-height: 1.2; }
.footer__tips { display: flex; flex-direction: column; gap: 16px; }
.footer__kicker { font-size: 11px; color: var(--blush); text-transform: uppercase; }
.footer__text { font-size: 14px; line-height: 1.8; }
.footer__note { font-size: 12px; line-height: 1.7; color: var(--sage); }
.footer__bar { border-top: 1px solid var(--muted); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer__brand { font-family: var(--serif); font-size: 23px; }
.footer__place { font-size: 10px; color: var(--sage); margin-top: 6px; }
.footer__legal { display: flex; gap: 20px; font-size: 12px; margin-left: auto; margin-right: 32px; }
.footer__legal a { color: var(--sage); transition: color 160ms ease; }
.footer__up { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; }
.footer__up img { transition: transform 200ms var(--ease-out); }

/* ---------------------------------------------------------------- Karten-Pins */
.pin { cursor: pointer; border: 0; padding: 0; }
.pin--num {
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff;
  border: 2px solid var(--paper); font: 600 11px/1 var(--sans);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 3px rgba(40, 45, 40, 0.25);
}
.pin--num::before, .pin--num::after { content: none; }
.pin--dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--paper); opacity: 0.85; }
.pin--quiet { width: 10px; height: 10px; opacity: 0.55; }
.pin.is-hidden { opacity: 0 !important; pointer-events: none; }
.pin--num, .pin--dot { transition: opacity 200ms var(--ease-out), background-color 160ms ease; }
.pin--num > *, .pin--dot > * { pointer-events: none; }
.pin.is-hot { background: var(--ink); }
.pin--target { width: 34px; height: 44px; cursor: default; }
.pin--target span {
  position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50% 50% 50% 0;
  background: var(--accent); transform: rotate(-45deg); transform-origin: center;
  border: 2px solid var(--paper); box-shadow: 0 2px 6px rgba(40, 45, 40, 0.3);
}
.pin--target span::after { content: ''; position: absolute; inset: 10px; border-radius: 50%; background: var(--paper); }
.pin--stop {
  width: 18px; height: 18px; border-radius: 4px; background: var(--forest); color: var(--paper);
  font: 600 10px/18px var(--sans); text-align: center; border: 1.5px solid var(--paper); cursor: default;
}

/* Eigener Standort */
.me { width: 18px; height: 18px; position: relative; }
.me__dot { position: absolute; inset: 2px; border-radius: 50%; background: #3c6e8f; border: 2.5px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
.me__pulse { position: absolute; inset: -8px; border-radius: 50%; background: rgba(60, 110, 143, 0.25); animation: pulse 2.4s linear infinite; }
@keyframes pulse { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

/* Popup */
.maplibregl-popup.pop .maplibregl-popup-content { padding: 0; border-radius: var(--radius); background: var(--white); box-shadow: 0 8px 28px rgba(40, 45, 40, 0.18); overflow: hidden; }
.maplibregl-popup.pop .maplibregl-popup-tip { border-top-color: var(--white); border-bottom-color: var(--white); }
.pop__card {
  display: flex; flex-direction: column; gap: 4px; padding-bottom: 12px; width: 220px;
  transform-origin: bottom center; animation: pop-in 200ms var(--ease-out);
}
.pop__card img { width: 100%; height: 96px; object-fit: cover; margin-bottom: 6px; }
.pop__card > span { padding: 0 12px; }
.pop__card > span:first-child, .pop__card > img + span { padding-top: 0; }
.pop__card > span:first-child { padding-top: 12px; }
.pop__kicker { font-size: 9px; color: var(--accent); text-transform: uppercase; }
.pop__title { font-family: var(--serif); font-size: 17px; line-height: 1.2; }
.pop__link { font-size: 12px; color: var(--accent); margin-top: 4px; }
@keyframes pop-in { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

/* MapLibre-Steuerelemente an das Design anpassen */
.maplibregl-ctrl-group { border-radius: var(--radius) !important; box-shadow: none !important; border: 1px solid var(--rule); background: var(--white) !important; }
.maplibregl-ctrl-group button + button { border-top-color: var(--rule) !important; }
.maplibregl-ctrl-attrib { font-family: var(--sans); font-size: 10px; background: rgba(255, 252, 246, 0.85) !important; }
.maplibregl-ctrl-attrib a { color: var(--muted); }
.maplibregl-cooperative-gesture-screen { font-family: var(--sans); background: rgba(40, 45, 40, 0.55); }

/* ---------------------------------------------------------------- Detailseite */
.detail { padding-top: 36px; padding-bottom: 64px; }
.back { display: inline-flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 28px; padding: 6px 0; transition: color 160ms ease; }
.back span { transition: transform 200ms var(--ease-out); }
.detail__head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.detail__title { font-family: var(--serif); font-weight: 400; font-size: 72px; line-height: 1.05; }
.detail__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: 48px; align-items: start; }
.detail__img img { width: 100%; height: 440px; object-fit: cover; border-radius: var(--radius); }
.detail__main { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.prose { display: flex; flex-direction: column; gap: 16px; max-width: 680px; }
.prose p { font-size: 17px; line-height: 1.75; color: var(--ink); }
.prose p:first-child { font-family: var(--serif); font-size: 22px; line-height: 1.5; }
.about { display: flex; flex-direction: column; gap: 18px; max-width: 680px; }
.about .facts__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.about__tip { font-size: 14px; line-height: 1.6; border-top: 1px solid var(--rule); padding-top: 16px; display: flex; gap: 12px; }
.about__tip span { font-size: 9px; color: var(--accent); text-transform: uppercase; padding-top: 4px; flex: none; }

.detail__side { position: sticky; top: 116px; display: flex; flex-direction: column; gap: 24px; }
.mapbox--detail { height: 380px; border-radius: var(--radius); }
.way, .stops { display: flex; flex-direction: column; gap: 14px; }
.way__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.way__stats > div { display: flex; flex-direction: column; gap: 4px; }
.way__label { font-size: 9px; color: var(--muted); text-transform: uppercase; }
.way__value { font-family: var(--serif); font-size: 28px; font-variant-numeric: tabular-nums; }
.way__msg { font-size: 13px; color: var(--muted); line-height: 1.6; }
.way__links { display: flex; flex-wrap: wrap; gap: 8px; }
.way__links .btn { font-size: 12px; min-height: 36px; padding: 8px 14px; }
.way .places__list { margin-bottom: 4px; }

.stops__list { border-top: 1px solid var(--rule); }
.stop { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
.stop__types { display: flex; gap: 4px; }
.stop__dist { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.stops__msg { font-size: 13px; color: var(--muted); padding: 10px 0; }
.badge { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; padding: 3px 6px; border-radius: 2px; background: var(--sand); color: var(--ink); }
.badge--metro { background: var(--forest); color: var(--paper); }
.badge--tram { background: var(--accent); color: #fff; }
.badge--funicular { background: var(--sage); }

.nearby { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 24px; }
.pager { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pager__link { display: flex; flex-direction: column; gap: 6px; padding: 20px 0; border-top: 1px solid var(--ink); }
.pager__link--next { text-align: right; align-items: flex-end; }
.pager__dir { font-size: 11px; color: var(--accent); text-transform: uppercase; }
.pager__name { font-family: var(--serif); font-size: 25px; }

/* ---------------------------------------------------------------- Rechtliches */
.detail__title { overflow-wrap: break-word; hyphens: auto; }
.legal .detail__title { font-size: 56px; }
.legal__body { max-width: 720px; display: flex; flex-direction: column; gap: 14px; }
.legal__body h2 { font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.25; margin-top: 18px; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body p { font-size: 15px; line-height: 1.7; }
.legal__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; word-break: break-word; }
.legal__hint { font-size: 13px !important; color: var(--muted); background: var(--sand); padding: 12px 16px; }
.legal__date { font-size: 12px !important; color: var(--muted); margin-top: 18px; }

/* ---------------------------------------------------------------- Bewegung */
/* Ansichtswechsel – gelegentlich, daher eine kurze, dezente Einblendung */
.view-enter { animation: view-in 280ms var(--ease-out); }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.view-enter .detail__head, .view-enter .detail__grid, .view-enter .nearby { animation: view-in 320ms var(--ease-out) both; }
.view-enter .detail__grid { animation-delay: 50ms; }
.view-enter .nearby { animation-delay: 100ms; }

/* Hover nur mit echter Maus – Touch löst sonst falsche Hover aus */
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover::after { transform: scaleX(1); }
  .lang button:not([aria-pressed="true"]):hover { color: var(--ink); }
  .tile:hover .tile__img img, .near:hover .tile__img img, .hero__img a:hover img { transform: scale(1.02); }
  .tile:hover .tile__title, .near:hover .tile__title { color: var(--accent-ink); }
  .place-row:hover .place-row__arrow, .note:hover .note__arrow { transform: translate(2px, -2px); }
  .place-row:hover .place-row__name { color: var(--accent-ink); }
  .note:hover .note__title, .dish:hover .dish__name, .pager__link:hover .pager__name { color: var(--accent-ink); }
  .viewpoint:hover img, .footer__up:hover img { transform: translate(2px, -2px); }
  .back:hover { color: var(--ink); }
  .footer__legal a:hover { color: var(--paper); }
  .back:hover span { transform: translateX(-3px); }
  .chip:not(.is-active):hover { border-color: var(--muted); }
  .btn--ghost:hover { border-color: var(--muted); }
  .btn--primary:hover { background: var(--accent-ink); }
  .pin--num:hover, .pin--dot:hover { background: var(--ink); }
  .pop__card:hover .pop__title { color: var(--accent-ink); }
}

@media (prefers-reduced-motion: reduce) {
  /* weniger und sanfter: nur Deckkraft, keine Bewegung */
  .view-enter, .view-enter .detail__head, .view-enter .detail__grid, .view-enter .nearby { animation: fade 200ms ease both; }
  .pop__card { animation: fade 150ms ease; }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  .me__pulse { animation: none; opacity: 0.4; }
  .drawer__panel { transition: none; }
  .tile__img img, .hero__img img { transition: none; }
}

/* ---------------------------------------------------------------- Responsiv */
@media (max-height: 860px) { .detail__side { position: static; } }

@media (max-width: 1180px) {
  .nav__links { gap: 20px; }
  .hero__title { font-size: 96px; }
  .hero__row { grid-template-columns: 1fr 1fr; }
  .hero__row .facts { grid-column: 1 / -1; min-height: 0; }
  .overview { grid-template-columns: 1fr; }
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse .artnote { order: -1; }
  .food { grid-template-columns: 1fr 1fr; }
  .food .dish-photos { grid-column: 1 / -1; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail__grid { grid-template-columns: 1fr; }
  .detail__side { position: static; }
  .mapbox--detail { height: 420px; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 900px) {
  .nav__inner { height: 76px; }
  html { scroll-padding-top: 76px; }
  .nav__links { display: none; }
  .nav__menu { display: block; }
  .hero__top { flex-direction: column; align-items: flex-start; gap: 28px; }
  .about .facts__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 14px; }
  .brand { font-size: 23px; }
  .hero { padding-top: 36px; padding-bottom: 40px; gap: 28px; }
  .hero__title { font-size: 88px; }
  .hero__claim { font-size: 27px; line-height: 1.2; width: auto; }
  .hero__row { grid-template-columns: 1fr; gap: 22px; }
  .hero__img--wide img { height: 230px; }
  .hero__img--narrow img { height: 200px; }
  .facts__grid { gap: 18px 20px; }
  .section, #karte { padding: 44px 0; }
  .h2 { font-size: 34px; }
  .lead { font-size: 15px; }
  .mapbox--overview { height: 440px; margin: 0 calc(var(--gutter) * -1); }
  .legend { gap: 10px; flex-wrap: wrap; right: 16px; }
  .overview { gap: 28px; }
  .places__title { font-size: 27px; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .grid--wide { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .tile__img img { height: 140px; }
  .tile--l .tile__img img { height: 200px; }
  .grid--4 .tile--l .tile__img img { height: 160px; }
  .tile--l .tile__title { font-size: 21px; }
  .food { grid-template-columns: 1fr; gap: 32px; }
  .dish-photos { grid-template-columns: 1fr 1fr; gap: 16px; }
  .tile--dish .tile__img img { height: 120px; }
  .artnote__title { font-size: 27px; }
  .viewpoint { padding: 20px; align-items: flex-start; }
  .footer__claim { font-size: 34px; }
  .footer__bar { flex-direction: column; align-items: flex-start; }
  .footer__legal { margin: 0; }
  .legal .detail__title { font-size: 36px; }
  .detail { padding-top: 24px; }
  .detail__title { font-size: 48px; }
  .detail__img img { height: 260px; }
  .detail__head { margin-bottom: 28px; }
  .prose p:first-child { font-size: 19px; }
  .prose p { font-size: 15px; }
  .mapbox--detail { height: 320px; margin: 0 calc(var(--gutter) * -1); border-radius: 0; }
  .way__value { font-size: 24px; }
  .nearby { margin-top: 48px; }
  .pager { grid-template-columns: 1fr; gap: 0; }
  .pager__link--next { text-align: left; align-items: flex-start; }
  .pager__name { font-size: 21px; }
}

@media (max-width: 380px) {
  .hero__title { font-size: 72px; }
  .lang button { padding: 5px 8px; }
}
