/* ---------- Tourkopf: volle Breite, über der Sidebar ---------- */

/* Steht im Template vor der zweispaltigen Sektion, damit Karte und Profil
   nicht mit der Anzeigenspalte um Platz ringen. */
.wl-tourkopf {
	background: #F2F4F1;
	border-top: 1px solid var(--wl-linie);
	border-bottom: 1px solid var(--wl-linie);
	padding: 26px 0 28px;
	margin: 0 0 4px;
}

.wl-tourkopf__innen {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 20px;
}

.wl-tourkopf__gitter {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	align-items: stretch;
}

.wl-feld {
	margin: 0;
	background: #fff;
	border: 1px solid var(--wl-linie);
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(23, 26, 25, .05);
	display: flex;
	flex-direction: column;
}

.wl-feld > figcaption {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 11px 15px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--wl-grau);
	border-bottom: 1px solid var(--wl-linie);
}

.wl-feld--karte .wl-karte { flex: 1; min-height: 340px; }
.wl-feld--profil svg { height: 190px; flex: 1; }

@media (max-width: 900px) {
	.wl-tourkopf__gitter { grid-template-columns: 1fr; }
	.wl-feld--karte .wl-karte { min-height: 280px; }
}

/* ---------- Kennzahlen ---------- */

.wl-kennzahlen {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	border-top: 1px solid var(--wl-linie);
}

.wl-kz {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	padding: 13px 4px 14px;
	text-align: center;
	border-left: 1px solid #EEEDE8;
}

.wl-kz:first-child { border-left: 0; }
.wl-kz--offen { background: #FDFCF7; }

.wl-kz svg {
	width: 20px;
	height: 20px;
	color: var(--wl-gruen);
	margin-bottom: 2px;
}

.wl-kz__wert {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -.01em;
	color: var(--wl-tinte);
	font-variant-numeric: tabular-nums;
}

.wl-kz__einheit {
	font-size: 9.5px;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--wl-grau);
}

@media (max-width: 560px) {
	.wl-kennzahlen { grid-template-columns: repeat(3, 1fr); }
	.wl-kz:nth-child(4) { border-left: 0; }
	.wl-kz:nth-child(n+4) { border-top: 1px solid #EEEDE8; }
}

/* ---------- Herkunftszeile und GPX ---------- */

.wl-quelle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin: 13px 2px 0;
	font-size: 11.5px;
	line-height: 1.5;
	color: var(--wl-grau);
}

.wl-quelle .wl-gpx__knopf {
	padding: 7px 15px;
	font-size: 13px;
	white-space: nowrap;
}

.wl-quelle a:not(.wl-gpx__knopf) { color: var(--wl-gruen); }

/* ---------- Wegpunkte ---------- */

/* Dieselben Ziffern stehen in Karte und Profil. Drei Darstellungen, eine Aussage. */
.wl-wegpunkte {
	margin: 18px 0 0;
	padding: 17px 19px 19px;
	background: #fff;
	border: 1px solid var(--wl-linie);
	border-radius: 6px;
	box-shadow: 0 1px 3px rgba(23, 26, 25, .05);
}

.wl-wegpunkte h3 {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 600;
	color: var(--wl-tinte);
}

.wl-wegpunkte ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.wl-wegpunkte li {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	margin: 0;
}

.wl-wegpunkte__nr {
	flex: 0 0 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--wl-rot);
	color: #fff;
	font-size: 11.5px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 1px;
}

.wl-wegpunkte__text {
	font-size: 14px;
	line-height: 1.5;
	color: #2E322F;
}

/* Marker auf der Karte */
.wl-wp-marker {
	background: var(--wl-rot);
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 1px 5px rgba(0, 0, 0, .35);
	color: #fff;
	font-size: 11.5px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
}

/* Ziffern auf der Profilkurve */
.wl-profil__nr {
	fill: #fff;
	font-size: 9px;
	font-weight: 700;
	font-family: inherit;
}

/* ---------- Beschreibung und ihre Abwesenheit ---------- */

/* Der einzige Fließtext der Seite. Von einem Menschen geschrieben. */
.wl-beschreibung {
	margin: 28px 0 6px;
	max-width: 68ch;
}

.wl-beschreibung p {
	font-size: 17px;
	line-height: 1.62;
	color: #2E322F;
}

.wl-beschreibung__quelle {
	font-size: 11.5px !important;
	line-height: 1.5 !important;
	color: var(--wl-grau) !important;
	margin-top: 10px;
}

/* Fehlt die Beschreibung, wird das gesagt. Kein erzeugter Ersatz.
   Zurückhaltend gesetzt: eine Auskunft, keine Entschuldigung. */
.wl-ohne-text {
	margin: 28px 0 6px;
	padding: 13px 16px;
	border-left: 2px solid var(--wl-linie);
	font-size: 14px;
	line-height: 1.55;
	color: var(--wl-grau);
	max-width: 66ch;
}

/* ---------- Fakten: Balken und Listen ---------- */

.wl-fakten {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 26px 34px;
	margin: 6px 0 8px;
}

.wl-fakten__block h3 {
	margin: 0 0 10px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--wl-grau);
}

.wl-fakten__fussnote {
	font-size: 11.5px;
	line-height: 1.5;
	color: var(--wl-grau);
	margin: 8px 0 0;
}

.wl-fakten .wl-liste { grid-column: 1 / -1; }

@media (max-width: 700px) {
	.wl-fakten { grid-template-columns: 1fr; gap: 22px; }
}

.wl-balken {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.wl-balken li {
	display: grid;
	grid-template-columns: 96px 1fr 42px;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.wl-balken__name {
	font-size: 13px;
	color: #2E322F;
}

.wl-balken__spur {
	height: 7px;
	background: #EAE8E1;
	border-radius: 4px;
	overflow: hidden;
}

.wl-balken__fuell {
	display: block;
	height: 100%;
	background: var(--wl-gruen);
	border-radius: 4px;
}

.wl-balken__wert {
	font-size: 12px;
	text-align: right;
	color: var(--wl-grau);
	font-variant-numeric: tabular-nums;
}

/* ---------- Definitionsliste ---------- */

.wl-liste {
	margin: 0;
	display: flex;
	flex-direction: column;
}

.wl-liste > div {
	display: grid;
	grid-template-columns: 150px 1fr;
	gap: 14px;
	padding: 9px 0;
	border-bottom: 1px solid #EEEDE8;
}

.wl-liste > div:last-child { border-bottom: 0; }

.wl-liste dt {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--wl-grau);
	padding-top: 3px;
}

.wl-liste dd {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: #2E322F;
}

.wl-liste dd small {
	display: block;
	font-size: 11.5px;
	color: var(--wl-grau);
	margin-top: 2px;
}

/* Eine nicht erfasste Angabe wird benannt, nicht geschätzt. */
.wl-leer {
	color: var(--wl-grau);
	font-style: italic;
}

.wl-liste--kasten {
	background: var(--wl-papier);
	border: 1px solid var(--wl-linie);
	border-radius: 6px;
	padding: 6px 18px;
	margin: 6px 0 4px;
}

@media (max-width: 560px) {
	.wl-liste > div { grid-template-columns: 1fr; gap: 3px; }
}

/**
 * WL-TOUR
 * -----------------------------------------------------------------------------
 * Steckbrief, Karte, Höhenprofil, GPX-Knopf.
 * Dazu die Auszeichnung von Lücken und Herkunfts-Flags im Fließtext.
 */

:root {
	--wl-gruen: #2D6A4F;
	--wl-gruen-tief: #1D4735;
	--wl-gold: #F4A620;
	--wl-rot: #C1272D;
	--wl-tinte: #171A19;
	--wl-linie: #D6D4CC;
	--wl-grau: #6F726E;
	--wl-papier: #FBFBF9;
}

/* ---------- Karte ---------- */

.wl-karte-block { margin: 0 0 30px; }

.wl-karte {
	height: 420px;
	background: #DCDBD5;
	border: 1px solid var(--wl-linie);
	position: relative;
}

.wl-karte__laden {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--wl-grau);
	font-size: 14px;
}

.wl-karte .leaflet-container {
	font-family: inherit;
	height: 100%;
}

@media (max-width: 640px) {
	.wl-karte { height: 300px; }
}

/* ---------- Höhenprofil ---------- */

.wl-profil {
	margin: 0;
	border: 1px solid var(--wl-linie);
	border-top: 0;
	background: #fff;
	padding: 12px 14px 6px;
}

.wl-profil__kopf {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: 10px;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--wl-grau);
	font-weight: 600;
	margin-bottom: 6px;
}

.wl-profil__wert {
	font-size: 12px;
	letter-spacing: 0;
	text-transform: none;
	font-weight: 500;
	color: var(--wl-gruen-tief);
	font-variant-numeric: tabular-nums;
	min-height: 16px;
}

.wl-profil svg {
	display: block;
	width: 100%;
	height: 150px;
	cursor: crosshair;
	touch-action: pan-y;
}

.wl-profil svg text {
	font-size: 9px;
	fill: var(--wl-grau);
	font-family: inherit;
}

/* ---------- GPX ---------- */

.wl-gpx {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin: 14px 0 0;
}

.wl-gpx__knopf {
	display: inline-block;
	padding: 10px 18px;
	border: 1px solid var(--wl-gruen);
	border-radius: 3px;
	background: #fff;
	color: var(--wl-gruen);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: background .12s, color .12s;
}

.wl-gpx__knopf:hover,
.wl-gpx__knopf:focus {
	background: var(--wl-gruen);
	color: #fff;
}

.wl-gpx__knopf:focus-visible {
	outline: 2px solid var(--wl-gold);
	outline-offset: 2px;
}

.wl-gpx__hinweis {
	font-size: 12.5px;
	color: var(--wl-grau);
	max-width: 44ch;
	line-height: 1.45;
}

/* ---------- Lücken und Herkunft ---------- */

/* Eine Lücke wird benannt, nicht gefüllt. Sie soll auch so aussehen. */
.wl-luecke {
	color: var(--wl-grau);
	font-style: italic;
}

.wl-offen {
	color: var(--wl-grau);
	font-style: italic;
}

.wl-herkunft {
	margin: 40px 0 0;
	padding: 16px 18px;
	background: var(--wl-papier);
	border: 1px solid var(--wl-linie);
	font-size: 12px;
	line-height: 1.6;
	color: var(--wl-grau);
}

.wl-herkunft p { margin: 0 0 4px; }
.wl-herkunft p:last-child { margin-bottom: 0; }
.wl-herkunft a { color: var(--wl-gruen); }

.wl-fahne {
	display: inline-block;
	min-width: 58px;
	text-align: center;
	font-size: 9px;
	letter-spacing: .07em;
	text-transform: uppercase;
	font-weight: 600;
	padding: 1px 6px;
	border-radius: 2px;
	margin-right: 8px;
	vertical-align: 1px;
}

.wl-fahne.wl-osm { background: #E4EDE7; color: var(--wl-gruen-tief); }
.wl-fahne.wl-dem { background: #FBEDD3; color: #8A5B04; }
.wl-fahne.wl-rechnung { background: #EDEBE4; color: var(--wl-grau); }
.wl-fahne.wl-eigen { background: #F7DDDE; color: #8E1B20; }

/* ---------- Unterkunft ---------- */

.wl-unterkunft {
	margin: 30px 0;
	padding: 17px 19px;
	border: 1px solid var(--wl-gruen);
	background: #F4F8F5;
}

.wl-unterkunft strong {
	display: block;
	font-size: 17px;
	font-weight: 600;
	margin-bottom: 4px;
	color: var(--wl-gruen-tief);
}

.wl-unterkunft p {
	margin: 0;
	font-size: 14px;
	max-width: 66ch;
}

/* ---------- Punkte am Weg ---------- */

.wl-poi {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	margin: 6px 0 0;
}

.wl-poi td {
	padding: 7px 0;
	border-bottom: 1px solid #EEEDE8;
	vertical-align: top;
}

.wl-poi tr:last-child td { border-bottom: 0; }

.wl-poi td:first-child {
	width: 72px;
	color: var(--wl-grau);
	font-variant-numeric: tabular-nums;
	font-size: 13px;
}

.wl-poi td:nth-child(2) {
	width: 118px;
	color: var(--wl-gruen);
	font-weight: 500;
	font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
	.wl-gpx__knopf { transition: none; }
}

/* ---------- Galerie ---------- */

/* Eigene Fotos. Der einzige Teil der Seite, den kein Datensatz liefern kann. */
.wl-galerie {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 12px;
	margin: 8px 0 30px;
}

.wl-galerie__bild {
	margin: 0;
	background: #fff;
	border: 1px solid var(--wl-linie);
}

.wl-galerie__bild a { display: block; line-height: 0; cursor: zoom-in; }

.wl-galerie__bild img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	display: block;
	transition: opacity .15s;
}

.wl-galerie__bild a:hover img { opacity: .88; }
.wl-galerie__bild a:focus-visible { outline: 2px solid var(--wl-gold); outline-offset: 2px; }

.wl-galerie__bild figcaption {
	padding: 8px 11px 9px;
	font-size: 12.5px;
	line-height: 1.45;
	color: var(--wl-grau);
	border-top: 1px solid #EEEDE8;
}

/* ---------- Lightbox ---------- */

.wl-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(12, 14, 13, .93);
	padding: 40px 60px 64px;
}

.wl-lightbox--offen { display: flex; }

.wl-lightbox__buehne {
	margin: 0;
	max-width: 100%;
	max-height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	cursor: default;
}

.wl-lightbox__bild {
	max-width: 100%;
	max-height: calc(100vh - 150px);
	object-fit: contain;
	display: block;
	box-shadow: 0 6px 40px rgba(0, 0, 0, .5);
}

.wl-lightbox__text {
	color: #E7E5DF;
	font-size: 13.5px;
	line-height: 1.5;
	text-align: center;
	max-width: 68ch;
}

.wl-lightbox__zu,
.wl-lightbox__pfeil {
	position: absolute;
	background: none;
	border: 0;
	color: #fff;
	cursor: pointer;
	line-height: 1;
	padding: 8px 14px;
	opacity: .72;
	transition: opacity .12s;
}

.wl-lightbox__zu:hover,
.wl-lightbox__pfeil:hover { opacity: 1; }

.wl-lightbox__zu:focus-visible,
.wl-lightbox__pfeil:focus-visible {
	outline: 2px solid var(--wl-gold);
	outline-offset: 2px;
	opacity: 1;
}

.wl-lightbox__zu { top: 12px; right: 16px; font-size: 40px; }

.wl-lightbox__pfeil { font-size: 58px; top: 50%; transform: translateY(-50%); }
.wl-lightbox__pfeil--links  { left: 6px; }
.wl-lightbox__pfeil--rechts { right: 6px; }

.wl-lightbox__zaehler {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	color: #A7ADA9;
	font-size: 12px;
	letter-spacing: .08em;
	font-variant-numeric: tabular-nums;
}

/* Auf dem Handy stören seitliche Pfeile. Dort wird gewischt. */
@media (max-width: 640px) {
	.wl-lightbox { padding: 52px 8px 56px; }
	.wl-lightbox__pfeil { display: none; }
	.wl-lightbox__bild { max-height: calc(100vh - 130px); }
}

@media (max-width: 480px) {
	.wl-galerie { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.wl-galerie__bild img,
	.wl-lightbox__zu,
	.wl-lightbox__pfeil { transition: none; }
}
