/* Ortsrundgang und Weinrast. Palette und Schriftmaß kommen
   aus dem Tailwind-Theme, die übrigen Innenseiten behalten ihre Bausteine. */
.motivauftakt {
  display: grid;
  background: var(--color-sandstein);
  margin-block-start: var(--innen-modul);
}
.motivauftakt-text {
  padding: var(--innen-modul);
  align-self: center;
}
.motivauftakt h1 {
  font-size: var(--text-gross-titel);
  line-height: var(--text-gross-titel--line-height);
}
.motivauftakt-text > p {
  max-width: 40ch;
  margin-block-start: var(--a3);
  font-size: var(--text-gross);
  line-height: var(--text-gross--line-height);
}
.motivauftakt nav {
  max-width: 28rem;
  margin-block-start: var(--a4);
}
.motivauftakt nav .anliegen-wege { margin: 0; }
.motivauftakt nav a {
  display: flex;
  justify-content: space-between;
  gap: var(--a3);
  align-items: center;
  min-height: calc(var(--spacing) * 11);
}
.motivauftakt-foto .band-bild {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.motivauftakt-foto .band-bild img {
  flex: 1 1 auto;
  height: 100%;
}
.motivauftakt-foto .band-bild:not(.beispielbild) .bildzeile {
  margin: 0;
  padding: var(--a2) var(--a3);
  background: var(--color-sandstein);
}
.motivauftakt-foto .bildzeile a { text-decoration-color: currentColor; }
.motivauftakt--blau {
  --fokus: var(--color-papier);
  background: var(--color-blau);
  color: var(--color-papier);
}
.motivauftakt--blau .anliegen-wege { border-color: var(--linie-dunkel); }
.motivauftakt--blau .anliegen-wege a { color: var(--color-papier); }
.motivauftakt--blau .anliegen-wege li { border-color: var(--linie-dunkel); }
.motivauftakt--blau .anliegen-wege a::before {
  background: color-mix(in oklab, var(--color-papier) 12%, transparent);
}
.motivauftakt--blau .beispielbild figcaption {
  color: var(--color-tinte);
}

.ortsgang-raster {
  display: grid;
  align-items: start;
  gap: var(--innen-modul);
}
.ortsgang-karte {
  width: 100%;
  max-width: 36rem;
  background: var(--color-service);
  padding: var(--innen-modul);
}
.ortsgang-legende {
  padding-block-end: var(--a3);
  font-size: var(--text-titel);
  line-height: var(--text-titel--line-height);
}
.ortsgang-kartenbild {
  position: relative;
  outline: 1px solid var(--linie);
}
.ortsgang-kartenbild img { width: 100%; }
.ortsgang-karte ol { position: absolute; inset: 0; }
/* Koordinaten im sichtbaren QGIS-Ausschnitt in EPSG:3857, vom Rand gemessen. */
.ortspunkt--schlossplatz { --ortspunkt-x: 61.08%; --ortspunkt-y: 10.45%; }
.ortspunkt--zweikirche { --ortspunkt-x: 64.32%; --ortspunkt-y: 74.09%; }
.ortspunkt--spitalhof { --ortspunkt-x: 40%; --ortspunkt-y: 76.82%; }
.ortspunkt {
  position: absolute;
  inset: var(--ortspunkt-y) auto auto var(--ortspunkt-x);
  translate: -50% calc(var(--spacing) * -5.5);
}
.ortspunkt a {
  display: grid;
  place-items: center;
  position: relative;
  min-width: calc(var(--spacing) * 11);
  min-height: calc(var(--spacing) * 11);
  font-size: var(--text-klein);
  line-height: var(--text-klein--line-height);
}
.ortspunkt-marke {
  display: grid;
  place-items: center;
  width: calc(var(--spacing) * 11);
  height: calc(var(--spacing) * 11);
  padding: var(--a2);
  border: 1px solid currentColor;
  font-weight: var(--font-weight-halbfett);
  background: var(--color-papier);
}
.ortspunkt-name {
  position: absolute;
  inset: calc(100% + var(--a1)) auto auto 50%;
  translate: -50%;
  padding-inline: var(--a1);
  background: var(--color-papier);
}
.ortspunkt--spitalhof .ortspunkt-name { inset-inline-start: auto; inset-inline-end: 50%; translate: 0; }
.ortsgang-quelle { margin-block: var(--a2) 0; }
.ortsgang-quelle a { text-decoration-color: currentColor; }
.ortspunkt a[aria-current] {
  font-weight: var(--font-weight-halbfett);
  text-decoration-color: currentColor;
}
.ortspunkt a[aria-current] .ortspunkt-marke {
  color: var(--color-papier);
  background: var(--color-blau);
  border-color: var(--color-blau);
}
.ortsgang-kartenlink { margin: 0; }
.ortsgang-kartenlink a {
  display: inline-flex;
  align-items: center;
  gap: var(--a1);
  min-height: calc(var(--spacing) * 11);
  font-size: var(--text-klein);
  line-height: var(--text-klein--line-height);
}
.ortsstation {
  display: grid;
  align-items: start;
  gap: var(--a3) var(--innen-modul);
  padding-block: var(--innen-modul);
  border-top: 1px solid var(--linie);
}
.ortsstation:last-child { padding-bottom: 0; }
.ortsstation img { aspect-ratio: 3 / 2; }
.ortsstation .bildzeile { margin-block-start: var(--a2); }
.ortsstation .bildzeile a { text-decoration-color: currentColor; }
.ortsstation-text h2 {
  display: flex;
  align-items: baseline;
  gap: var(--a2);
  margin-block-end: var(--a2);
  font-size: var(--text-titel);
  line-height: var(--text-titel--line-height);
}
.ortsstation-nummer {
  display: inline-grid;
  place-items: center;
  align-self: center;
  min-width: var(--a4);
  min-height: var(--a4);
  background: var(--color-service);
  color: var(--color-blau);
  font: var(--font-weight-halbfett) var(--text-klein)/1 var(--font-werk);
}
.ortsstation-text > p, .rundgang-hintergrund p { max-width: 55ch; }
.ortsstation-text .abschnitt-weg {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--a4);
  margin-block-start: var(--a2);
}
.ortsstation-text .abschnitt-weg a, .rundgang-verweise .abschnitt-weg a {
  min-height: calc(var(--spacing) * 11);
}
.ortsstation-text a[href="#rundgang-karte"] { font-size: var(--text-klein); }
.rundgang-hintergrund {
  display: grid;
  align-items: start;
  gap: var(--innen-modul);
  margin-block-start: var(--innen-kapitel);
  padding-block-start: var(--innen-modul);
  border-top: 1px solid var(--linie);
}
.rundgang-hintergrund h2 {
  margin-block-end: var(--a3);
  font-size: var(--text-titel);
  line-height: var(--text-titel--line-height);
}
.rundgang-hintergrund .band-bild { max-width: 34rem; }
.rundgang-hintergrund .band-bild img { aspect-ratio: auto; }
.rundgang-hintergrund .bildzeile a { text-decoration-color: currentColor; }
.rundgang-verweise {
  margin-block-start: var(--innen-modul);
  padding-block-start: var(--a2);
  border-top: 1px solid var(--linie);
  font-size: var(--text-klein);
}
.rundgang-verweise p { margin: 0; }
.altziel-grusswort:not(:target) { display: none; }

@media (min-width: 36rem) {
  .ortsstation { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}

@media (min-width: 56.25rem) {
  .motivauftakt { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .motivauftakt-text { padding: var(--innen-kapitel); }
  .motivauftakt h1 {
    font-size: var(--text-seite);
    line-height: var(--text-seite--line-height);
  }
  .motivauftakt-foto .band-bild img { min-height: 0; }
  .ortsgang-raster, .rundgang-hintergrund { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .ortsgang-karte {
    position: sticky;
    top: var(--a4);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .ortspunkt-marke {
    transition: background-color var(--dauer-kurz) var(--kurve), color var(--dauer-kurz) var(--kurve);
  }
}

@media (max-width: 56.24rem) {
  .motivauftakt { grid-template-columns: minmax(0, 1fr); }
  .motivauftakt-text { display: contents; }
  .motivauftakt h1, .motivauftakt-text > p, .motivauftakt nav { padding-inline: var(--innen-modul); }
  .motivauftakt h1 { padding-block-start: var(--innen-modul); }
  .motivauftakt-text > p { padding-block-end: var(--innen-modul); }
  .motivauftakt-foto { grid-row: 3; }
  .motivauftakt nav {
    grid-row: 4;
    max-width: none;
    margin: 0;
    padding-block: var(--a3) var(--innen-modul);
  }
}

/* Runde 18 — Ortsrundgang im Raster 2 zu 3: Karte 528, Stationen 792; die
   Stationsfotos über die ganze breite Spalte (792, 3:2). Darunter Gemälde
   (Originalformat) 792 und Hospitalstiftung 528. Keine Linien über Überschriften. */
main .ortsgang-raster, main .rundgang-hintergrund { gap: var(--a6); }
main .ortsgang-karte { max-width: none; }
main .ortsstation { grid-template-columns: minmax(0, 1fr); gap: var(--a4); padding-block: 0; border-top: 0; }
main .ortsstation + .ortsstation { margin-top: var(--a12); }
main .ortsstation-text h2 { font-size: var(--innen-titel); line-height: var(--innen-titel-zeile); }
main .ortsstation .band-bild img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
main .rundgang-hintergrund { margin-block-start: var(--a12); padding-block-start: 0; border-top: 0; }
main .rundgang-hintergrund .band-bild { max-width: none; }
main .rundgang-hintergrund .band-bild img { display: block; width: 100%; height: auto; }
@media (min-width: 56.25rem) {
  main .ortsgang-raster { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  main .rundgang-hintergrund { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
}

main .ortsstation-nummer { padding: var(--a1) var(--a2); }

/* Runde 18b */
.rundgang-verweise { margin-block-start: var(--a12); }
.rundgang-hintergrund .band-bild img { aspect-ratio: 1026 / 666; }
.ortsgang-quelle a { display: inline-flex; align-items: center; min-height: 1.5rem; }
