/* Gemeinsame Basis aller Entwürfe: Rücksetzung, Fokus, Platzhalter, Vergrößerungsansicht. Farben kommen aus tokens.css. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--grund); color: var(--text); font-family: var(--text-schrift); font-size: 1.0625rem; line-height: 1.65; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul { margin-top: 0; }
a { color: inherit; }
ul.galerie, ul.fakten-liste, ul.vorschau-liste, ul.navi, ul.farben, ul.anker, ul.ziele-liste, ul.punkte { list-style: none; margin: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.huelle { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.nur-lesegeraet { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.offen { background: var(--hell); padding: 0 0.25em; border-radius: 3px; }
.platzhalter { display: flex; align-items: center; justify-content: center; min-height: 200px; padding: 1rem; border: 2px dashed var(--linie); background: var(--hell); text-align: center; font-weight: 600; }
button { font: inherit; color: inherit; }

/* Vergrößerung der Fotos */
dialog.lightbox { width: 100%; height: 100%; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; }
dialog.lightbox[open] { display: flex; align-items: center; justify-content: center; }
dialog.lightbox::backdrop { background: rgba(24, 21, 18, 0.9); }
dialog.lightbox figure { margin: 0; text-align: center; }
dialog.lightbox img { max-height: 82vh; max-width: 92vw; width: auto; margin: 0 auto; border-radius: 4px; }
dialog.lightbox figcaption { margin-top: 0.75rem; font-size: 0.95rem; }
dialog.lightbox button { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
dialog.lightbox button:hover { background: rgba(255, 255, 255, 0.3); }
dialog.lightbox .lb-zu { top: 16px; right: 16px; }
dialog.lightbox .lb-zurueck { left: 12px; top: 50%; transform: translateY(-50%); }
dialog.lightbox .lb-weiter { right: 12px; top: 50%; transform: translateY(-50%); }
dialog.lightbox button:focus-visible { outline-color: #fff; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Ausstattung, Umgebung, Adresse: gemeinsame Struktur, Gestaltung je Entwurf */
.ausstattung-liste { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.6rem; padding: 0; list-style: none; }
.ausstattung-liste li { display: flex; flex-direction: column; gap: 0.3rem; }
.ausstattung-liste .symbol { width: 2.25rem; height: 2.25rem; margin-bottom: 0.4rem; color: var(--akzent); }
.ausstattung-liste strong { font-family: var(--titel-schrift); font-size: 1.25rem; line-height: 1.2; }
.ausstattung-liste span { font-size: 0.97rem; line-height: 1.45; color: var(--gedaempft); }
.umgebung-liste { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.umgebung-liste h3 { margin-bottom: 0.3em; }
.umgebung-liste p { margin-bottom: 0; color: var(--gedaempft); }
address.adresse { margin-bottom: 0.6rem; font-style: normal; font-weight: 700; }
@media (max-width: 479px) {
	.ausstattung-liste { grid-template-columns: 1fr; }
}
@media (min-width: 720px) {
	.ausstattung-liste { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
	.umgebung-liste { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
	.ausstattung-liste { grid-template-columns: repeat(5, 1fr); }
}

/* Seite Umgebung: gemeinsame Struktur, Gestaltung je Entwurf */
.umgebung-link { margin: 1.6rem 0 0; }
.anker { display: flex; flex-wrap: wrap; gap: 0.5rem 0.6rem; margin-top: 1.8rem; }
.anker a { display: inline-block; padding: 0.45rem 0.95rem; border: 1px solid var(--linie); font-size: 0.95rem; text-decoration: none; }
.anker a:hover { border-color: var(--akzent); color: var(--akzent); }
.ziele-liste { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1.2rem; margin-top: 1.6rem; }
.ziele-liste strong { display: block; font-variant-numeric: lining-nums; font-family: var(--titel-schrift); font-size: clamp(1.7rem, 4.4vw, 2.4rem); font-weight: var(--titel-gewicht); line-height: 1.08; color: var(--akzent); }
.ziele-liste span { display: block; margin-top: 0.35rem; font-size: 0.95rem; line-height: 1.4; color: var(--gedaempft); }
.thema { scroll-margin-top: 1rem; }
.thema-raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.thema-text .lead { max-width: 40rem; }
.punkte { display: grid; gap: 1.2rem; margin-top: 1.6rem; }
.punkte h3 { margin-bottom: 0.25em; font-size: 1.2rem; }
.punkte p { margin-bottom: 0; }
.thema-bild .platzhalter { min-height: 240px; }
.thema-bild img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
/* Mehrere Fotos zu einem Thema: zwei untereinander in ihrem Seitenverhältnis, drei als Gruppe mit einem breiten Foto oben und zwei hohen darunter */
.thema-bild--mehrere { display: grid; gap: 0.6rem; }
.thema-bild--mehrere img { aspect-ratio: auto; }
.thema-bild--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.thema-bild--3 img:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; object-position: 50% 45%; }
.thema-bild--3 img:not(:first-child) { aspect-ratio: 4 / 5; }
/* Thema mit Karte (Entwurf A2, Monteure): eine Spalte, damit die Karte über die ganze Breite lesbar bleibt, die Punkte laufen in zwei Spalten von oben nach unten */
.thema-raster--karte .thema-karte { margin-top: 2.4rem; }
@media (min-width: 720px) {
	.ziele-liste { grid-template-columns: repeat(3, 1fr); }
	.thema-raster--karte .punkte { display: block; column-count: 2; column-gap: 3rem; }
	.thema-raster--karte .punkte li { break-inside: avoid; margin-bottom: 1.4rem; }
}
@media (min-width: 960px) {
	.thema-raster { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 4.5rem; align-items: start; }
	.thema-raster--karte { grid-template-columns: minmax(0, 1fr); }
	.thema--gerade .thema-bild { order: -1; }
	.thema-bild { position: sticky; top: calc(var(--admin-hoehe, 0px) + var(--kopf-hoehe, 0px) + 1.5rem); }
	.thema-bild .platzhalter { aspect-ratio: 4 / 3; min-height: 0; }
}
