/**
 * Leserseite /faltplan/ — [ua_faltplan teil="plan|auslage"] (0.26.0).
 *
 * Nur auf Seiten mit dem Shortcode geladen (ua_orte_faltplan_assets()).
 * Keine externen Schriften. Farben aus ua-farben.css, dazu ohne
 * Paletteneintrag: #fff und das Grau #6b6b6b der Hinweiszeile
 * (4,8:1 auf Cream) — bei der Farbrunde mitziehen.
 *
 * Doppelte Klassen am Bild (.ua-faltplan-plan__bild.ua-faltplan-plan__bild)
 * aus demselben Grund wie bei den Kartenbildern: Themes setzen
 * `height: auto` auf Bilder mit derselben Spezifität und gewinnen als
 * spätere Datei.
 */

.ua-faltplan-plan {
	margin: 24px 0 28px;
}

.ua-faltplan-plan__link {
	position: relative;
	display: block;
	overflow: hidden;
	border: 1px solid var(--ua-sand);
	border-radius: 18px;
	background: #fff;
	color: inherit;
	text-decoration: none;
}

.ua-faltplan-plan__bild.ua-faltplan-plan__bild {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
}

.ua-faltplan-plan__pille {
	position: absolute;
	right: 14px;
	bottom: 14px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 16px;
	border-radius: 999px;
	background: var(--ua-navy);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
}

.ua-faltplan-plan__pille svg {
	flex: none;
	color: var(--ua-amber);
}

/* Navy, nicht Amber: Der Rahmen liegt mit Abstand auf Cream, Amber
   erreichte dort nur rund 2:1 (Gegenlesung 0.26.0, C7). */
.ua-faltplan-plan__link:focus-visible {
	outline: 3px solid var(--ua-navy);
	outline-offset: 3px;
}

.ua-faltplan-plan__zeile {
	margin: 8px 2px 0;
	font-size: 14px;
	line-height: 1.4;
	color: #6b6b6b;
}

/* Auslagestellen — KEINE Links (Entscheidung Alex 25.09.); seit 0.70.2 eine
   Textzeile statt Pillen (Auftrag „Klickbar“: was wie ein Knopf aussieht,
   muss etwas tun). */
.ua-faltplan-auslage {
	margin: 12px 0 28px;
}

/* Doppelte Klasse wie bisher gegen `.entry-content p` des Themes. Fließtext
   17 px Navy, kein Rahmen, keine Fläche; bricht um. */
.ua-faltplan-auslage__zeile.ua-faltplan-auslage__zeile {
	margin: 0 0 12px;
	padding: 0;
	color: var(--ua-navy, #184058);
	font-size: var(--ua-t-fliess, 17px);
	line-height: 1.5;
	overflow-wrap: break-word;
}

.ua-faltplan-auslage__satz {
	margin: 0;
	font-weight: 700;
	color: var(--ua-navy);
}

/* =========================================================================
   V2 (0.30.0) — Kopfbereich [ua_faltplan teil="kopf"], Plan-Karte und
   Auslage als Band [ua_faltplan teil="auslage" stil="band"].
   Vorlage: Design-Fläche „Faltplan · Entwürfe“, Board „Desktop V2“.

   FARBEN aus ua-farben.css (neu: --ua-sand-band, --ua-sand-karte,
   --ua-rahmen-hell, --ua-text-weich, --ua-pink). Mit RÜCKFALLWERT: Die
   Farbdatei lädt WordPress nur einmal, aus dem Plugin, das sie zuerst
   anmeldet. Wird nur ua-orte deployt und gewinnt auf der Seite eine
   ältere Kopie, fehlten die neuen Töne — der Rückfall hält die Seite.
   Bei der Farbrunde mitziehen.

   Die Drehung der Karte ist statisch (keine Animation), am Handy entfällt
   sie. Mobil zuerst, die zwei Spalten ab 900 px.
   ========================================================================= */

.ua-faltplan-kopf {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 8px 0 36px;
}

/* Am Handy zählen die Kinder des Textblocks wie eigene Zeilen — so lässt
   sich die Karte zwischen Punkte und Hinweis schieben, ohne das Markup
   doppelt zu führen. */
.ua-faltplan-kopf__text {
	display: contents;
}

.ua-faltplan-kopf__intro.ua-faltplan-kopf__intro {
	order: 1;
	margin: 0;
	font-size: 19px;
	line-height: 1.55;
	color: var(--ua-text-weich, #3d4753);
}

/* Doppelte Klasse gegen `.entry-content ul/li` von Kadence. */
.ua-faltplan-kopf__punkte.ua-faltplan-kopf__punkte {
	order: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ua-faltplan-kopf__punkte.ua-faltplan-kopf__punkte li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--ua-navy);
}

/* Der Punkt ist Schmuck — der Text trägt die Aussage. */
.ua-faltplan-kopf__punkte li::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ua-amber);
}

.ua-faltplan-karte {
	order: 3;
}

.ua-faltplan-kopf__hinweis.ua-faltplan-kopf__hinweis {
	order: 4;
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 560px;
	margin: 0;
	padding: 12px 16px;
	border: 1px solid var(--ua-rahmen-hell, #e4dccc);
	border-radius: 14px;
	background: #fff;
	font-size: 16px;
	line-height: 1.45;
	color: var(--ua-text-weich, #3d4753);
}

.ua-faltplan-kopf__hinweis strong {
	color: var(--ua-navy);
}

.ua-faltplan-kopf__qr {
	flex: none;
	display: inline-flex;
	color: var(--ua-pink, #c2456b);
}

.ua-faltplan-kopf__aktion.ua-faltplan-kopf__aktion {
	order: 5;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin: 0;
}

/* Doppelte Klasse gegen `.entry-content a` (Farbe und Unterstreichung). */
.ua-faltplan-kopf__knopf.ua-faltplan-kopf__knopf {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 52px;
	padding: 12px 22px;
	border-radius: 14px;
	background: var(--ua-navy);
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	text-decoration: none;
}

.ua-faltplan-kopf__knopf svg {
	color: var(--ua-amber);
}

.ua-faltplan-kopf__knopf.ua-faltplan-kopf__knopf:hover,
.ua-faltplan-kopf__knopf.ua-faltplan-kopf__knopf:focus-visible {
	background: var(--ua-navy-tief);
	color: #fff;
	text-decoration: none;
}

/* Fokusring Navy, nicht Amber: Amber auf Cream hat 2:1, WCAG verlangt
   3:1 (dieselbe Entscheidung wie am Plan-Link, 0.26.0 C7). */
.ua-faltplan-kopf__knopf:focus-visible,
.ua-faltplan-karte:focus-visible {
	outline: 3px solid var(--ua-navy);
	outline-offset: 3px;
}

.ua-faltplan-kopf__meta {
	font-size: 14px;
	line-height: 1.35;
	color: #6b6b6b;
}

/* Die Plan-Karte — Link aufs PDF. Am Handy volle Breite, ohne Drehung. */
.ua-faltplan-karte.ua-faltplan-karte {
	position: relative;
	display: block;
	margin: 6px 0 14px;
	color: inherit;
	text-decoration: none;
}

.ua-faltplan-karte__flaeche {
	display: none;
}

.ua-faltplan-karte__rahmen {
	position: relative;
	display: block;
	padding: 9px;
	border: 1px solid var(--ua-rahmen-hell, #e4dccc);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(18, 49, 67, .12); /* Navy tief, = #123143 */
}

/* Doppelte Klasse gegen `.entry-content img { height: auto }`. */
.ua-faltplan-karte__bild.ua-faltplan-karte__bild {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 482 / 346;
	object-fit: cover;
	border-radius: 8px;
}

.ua-faltplan-karte__pille {
	position: absolute;
	right: 10px;
	bottom: -14px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 9px 16px;
	border-radius: 999px;
	background: var(--ua-amber);
	color: var(--ua-navy-tief);
	font-size: 15px;
	font-weight: 700;
	box-shadow: 0 4px 12px rgba(18, 49, 67, .18);
}

@media (min-width: 900px) {
	.ua-faltplan-kopf {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 540px;
		align-items: center;
		gap: 56px;
		margin-top: 16px;
	}

	.ua-faltplan-kopf__text {
		display: flex;
		flex-direction: column;
		gap: 18px;
	}

	.ua-faltplan-kopf__knopf.ua-faltplan-kopf__knopf {
		width: auto;
	}

	.ua-faltplan-karte.ua-faltplan-karte {
		margin: 18px 20px 26px;
	}

	/* Sandfläche dahinter, +3,2°; der weiße Rahmen davor, −1,6°. */
	.ua-faltplan-karte__flaeche {
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		display: block;
		border-radius: 14px;
		background: var(--ua-sand-karte, #e9dcc4);
		transform: rotate(3.2deg);
	}

	.ua-faltplan-karte__rahmen {
		transform: rotate(-1.6deg);
		transition: transform .2s ease, box-shadow .2s ease;
	}

	.ua-faltplan-karte:hover .ua-faltplan-karte__rahmen {
		transform: rotate(-1.6deg) translateY(-3px);
		box-shadow: 0 14px 32px rgba(18, 49, 67, .16);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ua-faltplan-karte__rahmen {
		transition: none;
	}
}

/* Auslage als Sandband — [ua_faltplan teil="auslage" stil="band"] */
.ua-faltplan-band {
	margin: 0 0 36px;
	padding: 30px 34px;
	border-radius: 20px;
	background: var(--ua-sand-band, #efe5d3);
}

/* Doppelte Klasse: Kadence färbt und setzt `.entry-content h2`. */
.ua-faltplan-band__titel.ua-faltplan-band__titel {
	margin: 0 0 8px;
	font-family: "Playfair Display", Georgia, serif;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--ua-navy);
}

.ua-faltplan-band__einleitung.ua-faltplan-band__einleitung {
	margin: 0 0 16px;
	font-size: 16px;
	line-height: 1.5;
	color: var(--ua-text-weich, #3d4753);
}

.ua-faltplan-auslage.ua-faltplan-band__inhalt {
	margin: 0;
}

@media (min-width: 900px) {
	/* Ohne Überschrift und Einleitung gibt es keine linke Spalte. */
	.ua-faltplan-band:has(.ua-faltplan-band__kopf) {
		display: grid;
		grid-template-columns: 300px minmax(0, 1fr);
		align-items: center;
		gap: 36px;
	}

	.ua-faltplan-band__einleitung.ua-faltplan-band__einleitung {
		margin-bottom: 0;
	}
}

@media (max-width: 600px) {
	.ua-faltplan-band {
		padding: 22px 18px;
	}
}
