/* Stadt-Seiten („3 Tage London zu zweit“): Tagesplan als Zeitleiste, Kennzeichen für Fixpunkte,
   die vier Fakten je Tag. Nur auf den Plan-Seiten geladen – styles.css bleibt die Basis. */

/* Stadtbild im Hochformat (Cover aus dem Katalog, 800×1100) statt des breiten Hero-Bilds. */
.visual--portrait {
  aspect-ratio: 8 / 11;
  max-width: 380px;
  width: 100%;
  justify-self: center;
}
.visual__credit {
  position: absolute;
  inset-inline-end: var(--az-sp-2);
  inset-block-start: var(--az-sp-2);
  margin: 0;
  padding: 2px var(--az-sp-2);
  border-radius: var(--az-radius-full);
  background: rgb(27 34 48 / 0.6);
  color: #fff;
  font-size: var(--az-fs-xs);
}

/* Legende: ein Kennzeichen je Art. */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--az-sp-2) var(--az-sp-4);
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--az-text-muted);
  font-size: var(--az-fs-sm);
}
.legend li {
  display: inline-flex;
  align-items: center;
  gap: var(--az-sp-2);
}

/* Kennzeichen (Fixpunkt, optional, Essen …) – dieselbe Pille wie im Produkt. */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 1px var(--az-sp-2);
  border-radius: var(--az-radius-full);
  background: var(--az-surface-2);
  color: var(--az-text-muted);
  font-size: var(--az-fs-xs);
  font-weight: 600;
  white-space: nowrap;
}
.tag--fix {
  background: var(--az-accent-soft);
  color: var(--az-accent-text);
}
.tag--optional {
  background: transparent;
  border: 1px dashed var(--az-border-strong);
}
.tag--food {
  background: var(--az-ok-soft);
  color: var(--az-ok);
}

/* Die vier Fakten je Tag: Fixpunkte, Puffer, bei Regen, wenn es eng wird. */
.day-facts {
  display: grid;
  gap: var(--az-sp-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  margin: var(--az-sp-5) 0 var(--az-sp-6);
  padding: 0;
  list-style: none;
}
.day-facts li {
  padding: var(--az-sp-4);
  border: 1px solid var(--az-border);
  border-radius: var(--az-radius-md);
  background: var(--az-surface);
  font-size: var(--az-fs-sm);
}
.day-facts strong {
  display: block;
  margin-bottom: var(--az-sp-1);
  color: var(--az-text-muted);
  font-size: var(--az-fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.day-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--az-sp-2) var(--az-sp-4);
  margin: var(--az-sp-2) 0 0;
  color: var(--az-text-muted);
  font-size: var(--az-fs-sm);
}

/* Zeitleiste: Uhrzeit links, Punkt auf der Linie, Inhalt rechts. */
.plan {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--az-sp-3);
}
.plan::before {
  content: '';
  position: absolute;
  inset-block: 10px;
  inset-inline-start: calc(5.5ch + var(--az-sp-3) + 5px);
  border-left: 2px solid var(--az-border);
}
.plan__item {
  position: relative;
  display: grid;
  grid-template-columns: 5.5ch 12px minmax(0, 1fr);
  gap: 0 var(--az-sp-3);
  align-items: start;
}
.plan__time {
  padding-top: 2px;
  font-family: var(--az-font-mono);
  font-size: var(--az-fs-xs);
  color: var(--az-text-muted);
  white-space: nowrap;
}
.plan__dot {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: var(--az-radius-full);
  border: 2px solid var(--az-border-strong);
  background: var(--az-surface);
}
.plan__item--fix .plan__dot {
  border-color: var(--az-accent);
  background: var(--az-accent);
}
.plan__item--optional .plan__dot {
  border-style: dashed;
}
.plan__body {
  padding: var(--az-sp-3) var(--az-sp-4);
  border: 1px solid var(--az-border);
  border-radius: var(--az-radius-md);
  background: var(--az-surface);
}
.plan__item--fix .plan__body {
  border-color: var(--az-accent);
  box-shadow: inset 4px 0 0 var(--az-accent);
}
.plan__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--az-sp-2);
}
.plan__title {
  margin: 0;
  font-family: var(--az-font-title);
  font-size: var(--az-fs-md);
  font-weight: 600;
}
.plan__note {
  margin: var(--az-sp-1) 0 0;
  color: var(--az-text-muted);
  font-size: var(--az-fs-sm);
}
@media (max-width: 480px) {
  .plan__body {
    padding: var(--az-sp-2) var(--az-sp-3);
  }
}

/* Erzeugte Stadt-Seiten (KG-7): Weg zum Punkt, Essens-Punkte, schematische Karte, Katalog-Hinweis. */
.plan__leg {
  margin: 0 0 var(--az-sp-2);
  color: var(--az-text-muted);
  font-size: var(--az-fs-xs);
}
.plan__item--food .plan__dot {
  border-color: var(--az-ok);
}
.catalog-note {
  margin: var(--az-sp-6) 0 0;
  font-size: var(--az-fs-sm);
}
.plan-map {
  margin: 0;
}
.plan-map svg {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--az-border);
  border-radius: var(--az-radius-lg);
  background: var(--az-surface);
}
/* Die Tagesfarbe hängt als color am Element; Linie, Punkt und Legende greifen sie über currentColor ab –
   so bekommt die Linie nie eine Füllung und der Punkt nie einen fremden Rand. */
.map__day-1 {
  color: var(--az-accent);
}
.map__day-2 {
  color: var(--az-teal-text);
}
.map__day-3 {
  color: var(--az-ok);
}
.map__line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-dasharray: 4 4;
}
.map__mark circle {
  fill: currentColor;
  stroke: var(--az-surface);
  stroke-width: 2;
}
.map__mark text {
  fill: #fff;
  font-family: var(--az-font-mono);
  font-size: 11px;
  font-weight: 700;
}
.map__legend {
  margin: var(--az-sp-4) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--az-sp-2);
  color: var(--az-text-muted);
  font-size: var(--az-fs-sm);
}
.map__swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: var(--az-sp-2);
  border-radius: var(--az-radius-full);
  background: currentColor;
  vertical-align: middle;
}
