/* =========================================================================
 * bericht.css  —  Reiseberichte
 *
 * Zwei Ansichten, eine Datei (per is_home() bzw. is_singular('post')
 * enqueuet, §7):
 *   Übersicht   /reiseberichte/   (home.php)    → Kartenraster + Paginierung
 *   Einzeln     /{slug}/          (single.php)  → Artikel, OHNE Kommentare
 *
 * Karten mit EIGENEM Namensraum (.t-bericht-karte), bewusst NICHT .t-karte:
 * andere Felder (Datum/Kategorie statt Preis/Sterne). front-page.css nutzt
 * .t-bericht (Zeilenform) — hier NICHT, kein Konflikt, da beide Dateien nie
 * gleichzeitig laden.
 *
 * Alle Farben, Maße, Radien: Tokens aus root.css.
 * ====================================================================== */


/* =========================================================================
 * 1. Übersicht — Kopf   (analog reisen.css / liste.css)
 * ====================================================================== */

.t-berichte__kopf { padding-block: var(--t-space-8) var(--t-space-4); }

.t-berichte__auge {
	margin: 0 0 var(--t-space-2);
	font-size: var(--t-fs-300);
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--t-tuerkis);
}

.t-berichte__kopf h1 { margin-bottom: var(--t-space-4); }

.t-berichte__intro {
	max-width: var(--t-breite-text);
	font-size: var(--t-fs-600);
	line-height: 1.5;
	color: var(--t-text-mute);
	margin-bottom: 0;
}


/* =========================================================================
 * 2. Übersicht — Kartenraster
 * ====================================================================== */

.t-berichte__liste {
	list-style: none;
	margin: var(--t-space-6) 0 var(--t-space-8);
	padding: 0;
	display: grid;
	gap: var(--t-space-6);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
}

.t-bericht-karte {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--t-weiss);
	border: 1px solid var(--t-linie);
	border-radius: var(--t-radius);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.t-bericht-karte:has(a:hover),
.t-bericht-karte:has(a:focus-visible) {
	transform: translateY(-2px);
	box-shadow: var(--t-schatten);
}

.t-bericht-karte__bild { background: var(--t-sand); }
.t-bericht-karte__bild img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.t-bericht-karte__inhalt {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: var(--t-space-4);
}

.t-bericht-karte__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--t-space-2);
	margin: 0 0 var(--t-space-2);
	font-size: var(--t-fs-300);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--t-text-mute);
}
.t-bericht-karte__meta span + span::before {
	content: "· ";
	color: var(--t-linie);
}

.t-bericht-karte__titel {
	margin: 0 0 var(--t-space-2);
	font-size: var(--t-fs-600);
}
.t-bericht-karte__titel a {
	color: var(--t-blau-900);
	text-decoration: none;
}
/* Ganze Karte klickbar, Link bleibt Fokusziel (wie .t-karte in land.css). */
.t-bericht-karte__titel a::after {
	content: "";
	position: absolute;
	inset: 0;
}
.t-bericht-karte:has(a:hover) .t-bericht-karte__titel a { color: var(--t-blau-600); }

.t-bericht-karte__text {
	margin: 0 0 var(--t-space-4);
	color: var(--t-text-mute);
	font-size: var(--t-fs-300);
}

.t-bericht-karte__mehr {
	margin-top: auto;
	font-weight: 600;
	color: var(--t-blau-600);
}


/* =========================================================================
 * 3. Paginierung
 *
 * Markup von paginate_links( 'type' => 'list' ):
 *   <nav class="t-pagination"><ul class="page-numbers">
 *     <li><a  class="prev page-numbers" …>‹ Zurück</a></li>
 *     <li><a  class="page-numbers" …>1</a></li>
 *     <li><span aria-current="page" class="page-numbers current">2</span></li>
 *     <li><span class="page-numbers dots">…</span></li>
 *     <li><a  class="next page-numbers" …>Weiter ›</a></li>
 *   </ul></nav>
 * ====================================================================== */

.t-pagination { margin-block: var(--t-space-6) var(--t-space-8); }

.t-pagination ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--t-space-2);
	justify-content: center;
}

.t-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;              /* Touch-Ziel */
	padding: 0 var(--t-space-3);
	background: var(--t-weiss);
	border: 1px solid var(--t-linie);
	border-radius: var(--t-radius);
	color: var(--t-blau-900);
	font-weight: 600;
	text-decoration: none;
	font-variant-numeric: tabular-nums;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
a.page-numbers:hover,
a.page-numbers:focus-visible {
	background: var(--t-sand);
	border-color: var(--t-tuerkis);
}
.t-pagination .current {
	background: var(--t-blau-600);
	border-color: var(--t-blau-600);
	color: var(--t-weiss);
}
.t-pagination .dots {
	border-color: transparent;
	background: transparent;
	color: var(--t-text-mute);
}
.t-pagination .prev,
.t-pagination .next { padding-inline: var(--t-space-4); }


/* =========================================================================
 * 4. Einzelbericht
 *
 * Wide-Hero, schmale Textspalte (68ch) — ruhige Lesetypografie.
 * ====================================================================== */

.t-bericht-single { padding-bottom: var(--t-space-8); }

.t-bericht-single__kopf {
	max-width: var(--t-breite-text);
	padding-block: var(--t-space-6) var(--t-space-4);
}

.t-bericht-single__zurueck {
	margin: 0 0 var(--t-space-4);
	font-size: var(--t-fs-300);
}
.t-bericht-single__zurueck a {
	color: var(--t-text-mute);
	text-decoration: none;
}
.t-bericht-single__zurueck a:hover { color: var(--t-blau-600); }

.t-bericht-single__auge {
	margin: 0 0 var(--t-space-2);
	font-size: var(--t-fs-300);
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--t-tuerkis);
}

.t-bericht-single__kopf h1 { margin-bottom: 0; }

.t-bericht-single__bild {
	margin: var(--t-space-6) 0;
	border-radius: var(--t-radius);
	overflow: hidden;
	background: var(--t-sand);
}
.t-bericht-single__bild img {
	width: 100%;
	max-height: 30rem;
	object-fit: cover;
}

.t-bericht-single__prosa { max-width: var(--t-breite-text); }
.t-bericht-single__prosa > :last-child { margin-bottom: 0; }

.t-bericht-single__prosa h2 { margin-top: var(--t-space-8); }
.t-bericht-single__prosa h3 { margin-top: var(--t-space-6); }

.t-bericht-single__prosa figure { margin: var(--t-space-6) 0; }
.t-bericht-single__prosa img { border-radius: var(--t-radius); }
.t-bericht-single__prosa figcaption {
	margin-top: var(--t-space-2);
	font-size: var(--t-fs-300);
	color: var(--t-text-mute);
	text-align: center;
}

.t-bericht-single__prosa blockquote {
	margin: var(--t-space-6) 0;
	padding: var(--t-space-2) var(--t-space-6);
	border-left: 4px solid var(--t-tuerkis);
	color: var(--t-blau-900);
	font-family: var(--t-font-titel);
	font-size: var(--t-fs-600);
	line-height: 1.4;
}

.t-bericht-single__fuss {
	margin-top: var(--t-space-8);
	padding-top: var(--t-space-6);
	border-top: 1px solid var(--t-linie);
}


/* =========================================================================
 * 5. Bewegung reduzieren — WCAG 2.3.3
 * ====================================================================== */
@media (prefers-reduced-motion: reduce) {
	.t-bericht-karte,
	.t-pagination .page-numbers { transition: none; }
	.t-bericht-karte:has(a:hover) { transform: none; }
}
