/*
Theme Name: Pixel Dschungel
Description: Reisetagebuch-Design für pixeldschungel.com. Child-Theme von Sonoran.
Author: Zélia und Holger
Template: sonoran
Version: 0.4.6
Requires at least: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pixeldschungel
*/

/* ---------- Schriftlogo ---------- */
.pd-mark {
	display: inline-block;
	color: var(--wp--preset--color--mono-1);
	text-decoration: none;
	font-size: 30px;
	line-height: 1;
}
.pd-mark:hover { color: var(--wp--preset--color--mono-1); }
.pd-wordmark { display: inline-flex; align-items: baseline; gap: .28em; }
.pd-wordmark__px { height: .72em; width: auto; overflow: visible; }
.pd-wordmark__d {
	font: italic 800 1em/1 var(--wp--preset--font-family--fontprimary);
	color: var(--wp--preset--color--teal);
}
.pd-mark small {
	display: block;
	margin-top: 6px;
	font: 500 13px/1.4 var(--wp--preset--font-family--label);
	letter-spacing: .12em;
	color: var(--wp--preset--color--mono-2);
}
@media (max-width: 600px) { .pd-mark { font-size: 24px; } }

/* ---------- Bildlogo ---------- */
.pd-bildlogo { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; font-size: 22px; max-width: 240px; }
.pd-bildlogo .pd-scene { width: 100%; height: auto; }
.pd-bildlogo--dunkel { color: #E9E3D6; }
.pd-bildlogo--dunkel .pd-wordmark__d { color: #5FC4BC; }

/* ---------- Kopfzeile ---------- */
.pd-nav {
	font-family: var(--wp--preset--font-family--label);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: lowercase;
}
.pd-nav a:hover { color: var(--wp--preset--color--primary); }
.pd-head .wp-block-social-links { gap: 12px; }

/* ---------- Kleine Etiketten (Kategorien, Datum) ---------- */
.pd-label,
.wp-block-post-date,
.wp-block-post-terms {
	font-family: var(--wp--preset--font-family--label);
	letter-spacing: .1em;
	text-transform: lowercase;
}

/* ---------- Links im Fließtext ---------- */
.entry-content a,
.wp-block-post-content a {
	text-decoration-color: var(--wp--preset--color--primary);
	text-underline-offset: 3px;
}

/* ---------- Auswahl ---------- */
::selection { background: var(--wp--preset--color--teal); color: var(--wp--preset--color--contrast-light); }

/* =========================================================
   Phase 2 – Artikel
   ========================================================= */
.pd-beitrag { padding-bottom: 40px; }
.pd-a-head { text-align: center; padding: 52px 0 26px; }
.pd-a-head > * { margin-left: auto; margin-right: auto; }
.pd-kicker { color: var(--wp--preset--color--primary); font-size: 15px; margin: 0 0 12px; }
.pd-kicker:empty { display: none; }
.pd-a-title { font-size: clamp(38px, 5.2vw, 60px); line-height: 1.05; margin: 0 0 14px; font-weight: 700; }
.pd-a-sub p { font: italic 22px/1.4 var(--wp--preset--font-family--fontprimary); color: var(--wp--preset--color--mono-2); margin: 0 auto; max-width: 640px; }
.pd-a-meta { gap: 4px 22px; margin-top: 20px; font-size: 14px; color: var(--wp--preset--color--mono-2); }
.pd-a-meta > * { margin: 0; font: inherit; }
.pd-a-meta a { color: inherit; text-decoration: none; }

/* Aufmacherbild als Polaroid */
.pd-a-hero { background: var(--wp--preset--color--contrast-light); padding: 12px 12px 18px; margin: 8px auto 52px !important; box-shadow: 0 1px 2px #0002, 0 18px 40px -22px #0006; transform: rotate(-.4deg); }
.pd-a-hero img { display: block; width: 100%; height: auto; max-height: 78vh; object-fit: cover; }

/* Textspalte mit Rändern für Notizen */
.pd-artikel {
	display: grid;
	grid-template-columns: minmax(0, 1fr) min(660px, 100%) minmax(0, 1fr);
	column-gap: 40px;
	font-size: 20px;
	line-height: 1.65;
}
:is(.pd-artikel, .pd-artikel > .wp-block-group:not(.has-background):not([class*="is-style-"]), .pd-artikel > .wp-block-group:not(.has-background):not([class*="is-style-"]) > .wp-block-group:not(.has-background):not([class*="is-style-"])) > * { grid-column: 2; margin-top: 0 !important; margin-bottom: 1.1em !important; max-width: none; }
:is(.pd-artikel, .pd-artikel > .wp-block-group:not(.has-background):not([class*="is-style-"]), .pd-artikel > .wp-block-group:not(.has-background):not([class*="is-style-"]) > .wp-block-group:not(.has-background):not([class*="is-style-"])) > .alignwide,
:is(.pd-artikel, .pd-artikel > .wp-block-group:not(.has-background):not([class*="is-style-"]), .pd-artikel > .wp-block-group:not(.has-background):not([class*="is-style-"]) > .wp-block-group:not(.has-background):not([class*="is-style-"])) > .alignfull { grid-column: 1 / -1; }
:is(.pd-artikel, .pd-artikel > .wp-block-group:not(.has-background):not([class*="is-style-"]), .pd-artikel > .wp-block-group:not(.has-background):not([class*="is-style-"]) > .wp-block-group:not(.has-background):not([class*="is-style-"])) > h2, :is(.pd-artikel, .pd-artikel > .wp-block-group:not(.has-background):not([class*="is-style-"]), .pd-artikel > .wp-block-group:not(.has-background):not([class*="is-style-"]) > .wp-block-group:not(.has-background):not([class*="is-style-"])) > h3 { margin-top: 1.5em !important; margin-bottom: .5em !important; }
:is(.pd-artikel, .pd-artikel > .wp-block-group:not(.has-background):not([class*="is-style-"]), .pd-artikel > .wp-block-group:not(.has-background):not([class*="is-style-"]) > .wp-block-group:not(.has-background):not([class*="is-style-"])) > h2 { font-size: 34px; }
:is(.pd-artikel, .pd-artikel > .wp-block-group:not(.has-background):not([class*="is-style-"]), .pd-artikel > .wp-block-group:not(.has-background):not([class*="is-style-"]) > .wp-block-group:not(.has-background):not([class*="is-style-"])) > h3 { font-size: 26px; }
.pd-artikel .pd-initiale::first-letter {
	float: left; font: 700 4.1em/.8 var(--wp--preset--font-family--fontprimary);
	padding: .08em .12em 0 0; color: var(--wp--preset--color--primary);
}

/* Gruppen-Blöcke im Beitrag (viele Beiträge sind darin verpackt) reichen das Raster durch,
   damit Randnotizen auch darin an den Rand wandern. */
.pd-artikel > .wp-block-group:not(.has-background):not([class*="is-style-"]),
.pd-artikel > .wp-block-group:not(.has-background):not([class*="is-style-"]) > .wp-block-group:not(.has-background):not([class*="is-style-"]) {
	grid-column: 1 / -1 !important;
	display: grid;
	grid-template-columns: subgrid;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-bottom: 0 !important;
	max-width: none !important;
}
:is(.pd-artikel, .pd-artikel > .wp-block-group:not(.has-background):not([class*="is-style-"]), .pd-artikel > .wp-block-group:not(.has-background):not([class*="is-style-"]) > .wp-block-group:not(.has-background):not([class*="is-style-"])) > :is(.is-style-pd-randnotiz, .is-style-pd-randnotiz-links) { margin-left: 0 !important; margin-right: 0 !important; }
/* Randnotizen */
:is(.pd-artikel, .pd-artikel > .wp-block-group:not(.has-background):not([class*="is-style-"]), .pd-artikel > .wp-block-group:not(.has-background):not([class*="is-style-"]) > .wp-block-group:not(.has-background):not([class*="is-style-"])) > .is-style-pd-randnotiz,
:is(.pd-artikel, .pd-artikel > .wp-block-group:not(.has-background):not([class*="is-style-"]), .pd-artikel > .wp-block-group:not(.has-background):not([class*="is-style-"]) > .wp-block-group:not(.has-background):not([class*="is-style-"])) > .is-style-pd-randnotiz-links {
	grid-column: 3; grid-row: span 2; align-self: start; max-width: 240px;
	font: italic 17px/1.45 var(--wp--preset--font-family--fontprimary);
	color: var(--wp--preset--color--primary);
	border-top: 2px solid var(--wp--preset--color--primary);
	padding-top: 8px; margin-top: 6px !important;
}
:is(.pd-artikel, .pd-artikel > .wp-block-group:not(.has-background):not([class*="is-style-"]), .pd-artikel > .wp-block-group:not(.has-background):not([class*="is-style-"]) > .wp-block-group:not(.has-background):not([class*="is-style-"])) > .is-style-pd-randnotiz-links { grid-column: 1; justify-self: end; }
.is-style-pd-randnotiz, .is-style-pd-randnotiz-links { font-style: italic; color: var(--wp--preset--color--primary); }

/* Steckbrief */
.is-style-pd-steckbrief {
	background: var(--wp--preset--color--mono-4) repeating-linear-gradient(transparent 0 31px, #1E7F7A22 31px 32px);
	border: 1px solid #2A2D2E2b; border-top: 6px solid var(--wp--preset--color--teal);
	padding: 18px 24px 16px; font-size: 18px; line-height: 32px;
}
.is-style-pd-steckbrief :is(h2, h3, h4) { font-size: 22px; margin: 0 0 6px; }

/* Polaroids für alle Bilder im Artikel – auch in alten Beiträgen */
.pd-artikel .wp-block-image img,
.pd-artikel .wp-block-gallery img,
.pd-artikel .wp-block-media-text img,
.pd-artikel img[class*="wp-image-"] {
	border-radius: 0 !important;
	background: var(--wp--preset--color--contrast-light);
	padding: 10px 10px 28px;
	box-sizing: border-box;
	box-shadow: 0 1px 2px #0002, 0 10px 24px -14px #0006;
	transition: rotate .3s ease;
}
.pd-artikel .wp-caption-text,
.pd-artikel .wp-block-image figcaption,
:is(.pd-artikel, .pd-artikel > .wp-block-group:not(.has-background):not([class*="is-style-"]), .pd-artikel > .wp-block-group:not(.has-background):not([class*="is-style-"]) > .wp-block-group:not(.has-background):not([class*="is-style-"])) > .wp-block-gallery > figcaption { font: italic 16px/1.4 var(--wp--preset--font-family--fontprimary); color: var(--wp--preset--color--mono-2); text-align: center; }
.pd-artikel .wp-block-gallery .wp-block-image figcaption { padding-bottom: 30px; }
.pd-artikel .wp-block-gallery figure:nth-child(3n+1) img { rotate: -1deg; }
.pd-artikel .wp-block-gallery figure:nth-child(3n+2) img { rotate: .7deg; }
.pd-artikel .wp-block-gallery figure:nth-child(3n) img { rotate: -.4deg; }
.is-style-pd-schraeg-links img { rotate: -1.6deg; }
.is-style-pd-schraeg-rechts img { rotate: 1.6deg; }
.pd-artikel img.pd-zoom { cursor: zoom-in; }
.pd-artikel img.pd-zoom:hover { rotate: 0deg; }

/* Ende des Artikels */
.pd-a-end { margin-top: 30px; }
.pd-sig { text-align: right; font: italic 22px var(--wp--preset--font-family--fontprimary); color: var(--wp--preset--color--mono-2); }
.pd-sig::before { content: "– "; }
.pd-sig a { color: inherit; text-decoration: none; }
.pd-a-nav { border-top: 1px solid #2A2D2E2b; padding-top: 18px; margin-top: 26px; gap: 24px; }
.pd-a-nav > * { flex: 1 1 0; }
.pd-a-next { text-align: right; }
.pd-a-nav a { text-decoration: none; font: 700 20px/1.3 var(--wp--preset--font-family--fontprimary); }
.pd-a-nav .post-navigation-link__label { display: block; font: 500 14px var(--wp--preset--font-family--label); letter-spacing: .1em; text-transform: lowercase; color: var(--wp--preset--color--primary); }
.pd-a-tags { margin-top: 28px; font-size: 14px; color: var(--wp--preset--color--mono-2); }
.pd-a-tags a { text-decoration: none; }

@media (max-width: 1000px) {
	.pd-artikel { grid-template-columns: minmax(0, 1fr); }
	:is(.pd-artikel, .pd-artikel > .wp-block-group:not(.has-background):not([class*="is-style-"]), .pd-artikel > .wp-block-group:not(.has-background):not([class*="is-style-"]) > .wp-block-group:not(.has-background):not([class*="is-style-"])) > *, :is(.pd-artikel, .pd-artikel > .wp-block-group:not(.has-background):not([class*="is-style-"]), .pd-artikel > .wp-block-group:not(.has-background):not([class*="is-style-"]) > .wp-block-group:not(.has-background):not([class*="is-style-"])) > .is-style-pd-randnotiz, :is(.pd-artikel, .pd-artikel > .wp-block-group:not(.has-background):not([class*="is-style-"]), .pd-artikel > .wp-block-group:not(.has-background):not([class*="is-style-"]) > .wp-block-group:not(.has-background):not([class*="is-style-"])) > .is-style-pd-randnotiz-links { grid-column: 1; grid-row: auto; justify-self: stretch; max-width: none; }
	:is(.pd-artikel, .pd-artikel > .wp-block-group:not(.has-background):not([class*="is-style-"]), .pd-artikel > .wp-block-group:not(.has-background):not([class*="is-style-"]) > .wp-block-group:not(.has-background):not([class*="is-style-"])) > .is-style-pd-randnotiz, :is(.pd-artikel, .pd-artikel > .wp-block-group:not(.has-background):not([class*="is-style-"]), .pd-artikel > .wp-block-group:not(.has-background):not([class*="is-style-"]) > .wp-block-group:not(.has-background):not([class*="is-style-"])) > .is-style-pd-randnotiz-links { border-top: 0; border-left: 3px solid var(--wp--preset--color--primary); padding: 2px 0 2px 14px; }
}
@media (max-width: 600px) {
	.pd-a-head { padding-top: 32px; }
	.pd-a-sub p { font-size: 19px; }
	.pd-artikel { font-size: 18px; }
	.pd-a-hero { padding: 8px 8px 12px; margin-bottom: 32px !important; }
	.pd-artikel .wp-block-image img, .pd-artikel .wp-block-gallery img { padding: 6px 6px 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.pd-artikel img, .pd-a-hero { rotate: 0deg !important; transform: none !important; transition: none !important; }
}

/* =========================================================
   Lightbox
   ========================================================= */
.pd-lb { position: fixed; inset: 0; z-index: 100000; background: #1A1C1Df2; display: flex; align-items: center; justify-content: center; padding: 40px 72px; opacity: 0; pointer-events: none; transition: opacity .25s; }
.pd-lb.open { opacity: 1; pointer-events: auto; }
.pd-lb figure { margin: 0; background: var(--wp--preset--color--contrast-light); padding: 12px 12px 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; transform: rotate(-.6deg) scale(.96); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.pd-lb.open figure { transform: rotate(-.6deg) scale(1); }
.pd-lb img { display: block; max-width: calc(100vw - 168px); max-height: calc(100vh - 150px); width: auto; height: auto; object-fit: contain; }
.pd-lb figcaption { font: italic 17px/1.4 var(--wp--preset--font-family--fontprimary); color: var(--wp--preset--color--mono-2); padding: 10px 2px 14px; display: flex; justify-content: space-between; gap: 20px; }
.pd-lb figcaption .n { font: 500 14px var(--wp--preset--font-family--label); letter-spacing: .1em; white-space: nowrap; }
.pd-lb button { position: absolute; background: none; border: 0; color: #E9E3D6; font: 500 18px var(--wp--preset--font-family--label); letter-spacing: .1em; cursor: pointer; padding: 14px; }
.pd-lb button:focus-visible { outline: 2px solid #5FC4BC; }
.pd-lb .x { top: 10px; right: 14px; }
.pd-lb .prev { left: 10px; top: 50%; transform: translateY(-50%); font-size: 30px; }
.pd-lb .next { right: 10px; top: 50%; transform: translateY(-50%); font-size: 30px; }
@media (max-width: 600px) {
	.pd-lb { padding: 56px 8px 64px; }
	.pd-lb img { max-width: calc(100vw - 40px); max-height: calc(100vh - 200px); }
	.pd-lb .prev, .pd-lb .next { top: auto; bottom: 6px; transform: none; }
}

/* Klassische Bilder aus älteren Beiträgen */
.pd-artikel .wp-caption { max-width: 100%; }
.pd-artikel p > img[class*="wp-image-"], .pd-artikel p > a > img[class*="wp-image-"] { display: block; margin: 0 auto; height: auto; max-width: 100%; }

/* =========================================================
   Phase 3 – Reise-Übersicht
   ========================================================= */
.pd-a-reise { margin-top: 24px; font-size: 15px; color: var(--wp--preset--color--mono-2); }
.pd-a-reise a { color: var(--wp--preset--color--primary); }
.pd-reise .pd-a-meta { justify-content: center; }
.pd-etappen__liste { list-style: none; margin: 10px 0 0; padding: 0; counter-reset: etappe; }
.pd-etappen__liste > li { counter-increment: etappe; border-top: 1px solid #2A2D2E2b; padding: 26px 0; margin: 0; }
.pd-etappe { gap: 28px; }
.pd-etappe__bild { flex: 0 0 220px; margin: 0; background: var(--wp--preset--color--contrast-light); padding: 8px 8px 22px; box-shadow: 0 1px 2px #0002, 0 10px 22px -14px #0006; }
.pd-etappen__liste > li:nth-child(odd) .pd-etappe__bild { rotate: -1.2deg; }
.pd-etappen__liste > li:nth-child(even) .pd-etappe__bild { rotate: .9deg; }
.pd-etappe__bild img { display: block; width: 100%; height: 150px; object-fit: cover; }
.pd-etappe__text { flex: 1 1 auto; min-width: 0; }
.pd-etappe__text .wp-block-post-date { font-size: 14px; color: var(--wp--preset--color--primary); }
.pd-etappe__text .wp-block-post-date::before { content: "etappe " counter(etappe) " · "; }
.pd-etappe__titel { font-size: 28px; margin: 4px 0 6px; }
.pd-etappe__titel a { text-decoration: none; }
.pd-etappe__text .wp-block-post-excerpt__excerpt { margin: 0; font-size: 18px; color: var(--wp--preset--color--mono-2); }
@media (max-width: 600px) {
	.pd-etappe { flex-direction: column; gap: 14px; }
	.pd-etappe__bild { flex-basis: auto; width: 100%; }
	.pd-etappe__bild img { height: 200px; }
}

/* =========================================================
   Phase 4 – Startseite
   ========================================================= */
.pd-snap { background: var(--wp--preset--color--contrast-light); padding: 8px 8px 0; margin: 0; box-shadow: 0 1px 2px #0002, 0 12px 26px -16px #0007; }
.pd-snap img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; height: auto; }
.pd-snap figcaption { font: italic 15px/1.4 var(--wp--preset--font-family--fontprimary); color: var(--wp--preset--color--mono-2); padding: 6px 2px 10px; }
.pd-mehr { font: 500 16px var(--wp--preset--font-family--label); letter-spacing: .1em; text-transform: lowercase; color: var(--wp--preset--color--primary); text-decoration: none; }
.pd-mehr::after { content: " \2192"; }

/* Aufmacher */
.pd-hero { position: relative; overflow: hidden; min-height: clamp(480px, 62vh, 640px); display: flex; flex-direction: column; justify-content: flex-end; margin: 0 !important; }
.pd-hero__bild { position: absolute; inset: 0; overflow: hidden; background: #3d4a33; }
.pd-hero__bild img { width: 100%; height: 100%; object-fit: cover; animation: pd-drift 38s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes pd-drift { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.pd-hero__innen { position: relative; box-sizing: border-box; width: 100%; max-width: 1168px; margin: 0 auto; padding: 72px 24px 60px; display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 40px; align-items: end; }
.pd-hero__karte { background: var(--wp--preset--color--base); padding: 28px 32px 30px; border: 1px solid #2A2D2E2b; rotate: -1.4deg; box-shadow: 0 20px 40px -24px #0008; }
.pd-hero__karte .pd-kicker { margin: 0 0 6px; }
.pd-hero__titel { font-size: clamp(38px, 4.6vw, 56px); line-height: 1.02; margin: 4px 0 12px; }
.pd-hero__titel a { text-decoration: none; }
.pd-hero__text { margin: 0 0 16px; font-size: 18px; }
.pd-hero__stapel { position: relative; height: 360px; }
.pd-hero__stapel .pd-snap { padding-bottom: 26px; }
.pd-hero__stapel .pd-snap:has(figcaption) { padding-bottom: 0; }
.pd-hero__stapel .pd-snap { position: absolute; width: 250px; transform: translateY(var(--y, 0px)) rotate(var(--r, 0deg)); will-change: transform; }
.pd-hero__stapel .pd-snap:nth-child(1) { right: 230px; top: 10px; }
.pd-hero__stapel .pd-snap:nth-child(2) { right: 10px; top: 60px; }
.pd-hero__stapel .pd-snap:nth-child(3) { right: 140px; top: 190px; }
.pd-hero__credit { position: absolute; left: 0; right: 0; bottom: 14px; max-width: 1120px; margin: 0 auto; padding: 0 24px; font-size: 13px; color: #F2EEE6; text-shadow: 0 1px 2px #0009; }
.pd-js .pd-hero__karte { animation: pd-settle .9s cubic-bezier(.2,.8,.2,1) both; }
.pd-js .pd-hero__stapel .pd-snap { animation: pd-drop .9s cubic-bezier(.2,.8,.2,1) both; }
.pd-js .pd-hero__stapel .pd-snap:nth-child(2) { animation-delay: .15s; }
.pd-js .pd-hero__stapel .pd-snap:nth-child(3) { animation-delay: .3s; }
@keyframes pd-settle { from { opacity: 0; transform: translateY(30px) rotate(-3deg); } }
@keyframes pd-drop { from { opacity: 0; transform: translateY(-40px) rotate(calc(var(--r) * 2)); } }

/* Notiz unter dem Aufmacher */
.pd-notiz { background: var(--wp--preset--color--mono-4); border: 1px solid #2A2D2E2b; border-left: 4px solid var(--wp--preset--color--teal); padding: 14px 20px; max-width: 460px; margin: -30px max(0px, calc((100% - 1120px) / 2)) 0 auto !important; position: relative; rotate: 1deg; font-size: 17px; }
.pd-notiz .pd-label { color: var(--wp--preset--color--teal); margin: 0; font-size: 14px; }
.pd-notiz p { margin: 4px 0 0; }

/* Abschnitte */
.pd-abschnitt { padding: 56px 0 !important; border-top: 1px solid #2A2D2E2b; margin-top: 0 !important; margin-bottom: 0 !important; }
.pd-notiz + .pd-abschnitt { border-top: 0; }
.pd-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 28px; }
.pd-abschnitt > .pd-kopf { display: block; }
.pd-kopf .pd-kicker { margin: 0; }
.pd-kopf h2 { font-size: 34px; margin: 4px 0 0; }
.pd-kopf h2 a { text-decoration: none; }
.pd-kopf > .pd-label { margin: 0; font-size: 14px; color: var(--wp--preset--color--mono-2); }

/* Reiseroute */
.pd-trip { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; }
.pd-trip--ohne-karte { grid-template-columns: minmax(0, 1fr); }
.pd-karte { background: var(--wp--preset--color--mono-4); border: 1px solid #2A2D2E2b; padding: 12px; margin: 0; align-self: start; position: sticky; top: 24px; rotate: -.8deg; }
.admin-bar .pd-karte { top: 56px; }
.pd-karte svg { width: 100%; height: auto; display: block; }
.pd-karte figcaption { font: italic 15px/1.4 var(--wp--preset--font-family--fontprimary); color: var(--wp--preset--color--mono-2); margin: 6px 4px 2px; }
.pd-karte__umriss { stroke: var(--wp--preset--color--mono-1); stroke-opacity: .2; }
.pd-karte__plan { stroke: var(--wp--preset--color--mono-1); stroke-opacity: .14; }
.pd-karte__route { stroke: var(--wp--preset--color--primary); }
.pd-karte__text { font: italic 14px var(--wp--preset--font-family--fontprimary); fill: var(--wp--preset--color--mono-1); }
.pd-karte__ort { fill: var(--wp--preset--color--mono-1); }
.pd-stop { fill: var(--wp--preset--color--mono-1); transition: r .3s, fill .3s; }
.pd-stop--offen { fill: var(--wp--preset--color--mono-4); stroke: var(--wp--preset--color--mono-1); stroke-width: 1.5; }
.pd-stop.on { fill: var(--wp--preset--color--primary); r: 7px; }
.pd-stop--offen.on { fill: var(--wp--preset--color--mono-4); stroke: var(--wp--preset--color--primary); }
.pd-route-maske { transition: stroke-dashoffset .8s cubic-bezier(.3,.7,.3,1); }
.pd-log { list-style: none; margin: 0; padding: 0; }
.pd-log li { display: grid; grid-template-columns: 70px 132px minmax(0, 1fr); gap: 20px; padding: 18px 0; margin: 0; border-bottom: 1px dashed #2A2D2E2b; align-items: start; position: relative; }
.pd-log li:first-child { padding-top: 0; }
.pd-log li::before { content: ""; position: absolute; left: -22px; top: 24px; width: 10px; height: 10px; background: var(--wp--preset--color--primary); transform: scale(0); transition: transform .3s; }
.pd-log li:first-child::before { top: 6px; }
.pd-log li.on::before { transform: scale(1); }
.pd-log__tag { font: 500 15px/1.35 var(--wp--preset--font-family--label); letter-spacing: .08em; color: var(--wp--preset--color--primary); padding-top: 4px; }
.pd-log__tag b { display: block; font: 700 30px/1 var(--wp--preset--font-family--fontprimary); color: var(--wp--preset--color--mono-1); letter-spacing: 0; }
.pd-log li.on .pd-log__tag b { color: var(--wp--preset--color--primary); }
.pd-log__bild img { display: block; width: 132px; height: 90px; object-fit: cover; border: 5px solid var(--wp--preset--color--contrast-light); box-shadow: 0 1px 2px #0002, 0 6px 14px -8px #0006; box-sizing: border-box; }
.pd-log h3 { font-size: 22px; line-height: 1.2; margin: 0 0 4px; }
.pd-log h3 a { text-decoration: none; }
.pd-log p { margin: 0; font-size: 17px; color: var(--wp--preset--color--mono-2); }
.pd-log--offen h3, .pd-log--offen .pd-log__tag b { color: var(--wp--preset--color--mono-2); }
.pd-log__platzhalter { width: 132px; height: 90px; border: 1px dashed var(--wp--preset--color--mono-2); display: flex; align-items: center; justify-content: center; font: italic 15px var(--wp--preset--font-family--fontprimary); color: var(--wp--preset--color--mono-2); box-sizing: border-box; }

/* Reise-Archiv */
.pd-buecher { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 28px; }
.pd-buch { display: block; text-decoration: none; color: inherit; }
.pd-buch .pd-snap { transition: transform .25s; }
.pd-buch:nth-child(4n+1) .pd-snap { rotate: -1deg; }
.pd-buch:nth-child(4n+3) .pd-snap { rotate: .8deg; }
.pd-buch:hover .pd-snap { transform: translateY(-4px) rotate(-1deg); }
.pd-buch .pd-snap img { aspect-ratio: 4 / 3; }
.pd-buch .pd-snap { padding-bottom: 8px; }
.pd-buch__leer { display: block; aspect-ratio: 4 / 3; background: var(--wp--preset--color--mono-3); }
.pd-buch .pd-kicker { margin: 14px 0 0; font-size: 13px; }
.pd-buch h3 { font-size: 22px; margin: 2px 0 4px; }
.pd-buch p { margin: 0; font-size: 16px; color: var(--wp--preset--color--mono-2); }

/* Footer: Überschriften hell auf dunklem Grund */
footer .wp-block-heading { color: var(--wp--preset--color--contrast-light); }

/* Länder */
.pd-laender { columns: 4 200px; column-gap: 32px; }
.pd-laender > div { break-inside: avoid; margin-bottom: 22px; }
.pd-laender h3 { font: 500 15px var(--wp--preset--font-family--label); letter-spacing: .12em; color: var(--wp--preset--color--primary); margin: 0 0 6px; border-bottom: 1px solid #2A2D2E2b; padding-bottom: 4px; }
.pd-laender a { display: block; text-decoration: none; font-size: 18px; line-height: 1.55; }
.pd-laender a span { color: var(--wp--preset--color--mono-2); font-size: 15px; }

/* Über uns */
.pd-uns { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 56px; align-items: center; }
.pd-uns__bild { margin: 0 !important; background: var(--wp--preset--color--contrast-light); padding: 10px; rotate: 1.2deg; box-shadow: 0 1px 2px #0002, 0 14px 30px -18px #0007; }
.pd-uns__bild img { display: block; width: 100%; height: auto; }
.pd-uns__bild figcaption { font: italic 16px var(--wp--preset--font-family--fontprimary); color: var(--wp--preset--color--mono-2); margin: 8px 2px 4px; text-align: left; }
.pd-uns__text h2 { font-size: 34px; margin: 4px 0 12px; }
.pd-uns__text p { margin: 0 0 14px; }

/* Archiv, Suche, 404: Polaroid-Raster */
.pd-liste__raster { gap: 44px 32px !important; margin-top: 18px; }
.pd-liste__eintrag { margin: 0; }
.pd-liste__bild { margin: 0 0 14px; background: var(--wp--preset--color--contrast-light); padding: 8px 8px 22px; box-shadow: 0 1px 2px #0002, 0 12px 26px -16px #0007; transition: transform .25s; }
.pd-liste__raster > li:nth-child(3n+1) .pd-liste__bild { rotate: -1deg; }
.pd-liste__raster > li:nth-child(3n+3) .pd-liste__bild { rotate: .8deg; }
.pd-liste__eintrag:hover .pd-liste__bild { transform: translateY(-4px); }
.pd-liste__bild img { display: block; width: 100%; object-fit: cover; }
.pd-liste__eintrag .pd-kicker { margin: 0 0 2px; font-size: 13px; }
.pd-liste__titel { font-size: 24px; line-height: 1.2; margin: 0 0 6px; }
.pd-liste__titel a { text-decoration: none; }
.pd-liste__text p { margin: 0; font-size: 17px; color: var(--wp--preset--color--mono-2); }
.pd-liste__seiten { margin-top: 56px; padding-top: 18px; border-top: 1px dashed #2A2D2E2b; font: 500 15px var(--wp--preset--font-family--label); letter-spacing: .08em; }
.pd-liste__seiten a { text-decoration: none; }
.pd-liste__seiten .current { color: var(--wp--preset--color--primary); }
.pd-liste__leer { text-align: center; font: italic 20px var(--wp--preset--font-family--fontprimary); color: var(--wp--preset--color--mono-2); }
.pd-suche { max-width: 520px; margin: 22px auto 0; }
.pd-suche .wp-block-search__input { background: var(--wp--preset--color--mono-4); border: 1px solid #2A2D2E40; padding: 10px 14px; font-size: 18px; }
.pd-suche .wp-block-search__button { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--contrast-light); border: 0; font: 500 15px var(--wp--preset--font-family--label); letter-spacing: .1em; padding: 10px 18px; }
.pd-suche .wp-block-search__button:hover { background: var(--wp--preset--color--primary-hover); }

/* Über uns: „Wer sind wir?“ */
.pd-uns-abschnitt .pd-uns__text h2 { font-size: clamp(30px, 3.6vw, 42px); }
.pd-uns__zitat { border-left: 3px solid var(--wp--preset--color--teal); padding-left: 18px; font: italic 20px/1.5 var(--wp--preset--font-family--fontprimary); color: var(--wp--preset--color--mono-2); }
.pd-knopf .wp-block-button__link { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--contrast-light); border-radius: 0; font: 500 15px var(--wp--preset--font-family--label); letter-spacing: .1em; padding: 12px 22px; }
.pd-knopf .wp-block-button__link:hover { background: var(--wp--preset--color--primary-hover); }

/* Über uns: Aufmacher, Fakten, Steckbriefe, Panorama */
.pd-ueber-hero { min-height: clamp(420px, 56vh, 560px) !important; align-items: flex-end !important; }
.pd-ueber-hero .wp-block-cover__inner-container { width: 100%; max-width: 1120px; margin: 0 auto; }
.pd-ueber-karte { max-width: 440px; margin-left: 0 !important; margin-right: auto !important; }
.pd-ueber-karte h1 { font-size: clamp(40px, 5vw, 58px); line-height: 1.05; margin: 0 0 8px; color: var(--wp--preset--color--mono-1); }
.pd-ueber-karte__sub { font: italic 21px/1.4 var(--wp--preset--font-family--fontprimary); color: var(--wp--preset--color--mono-2); margin: 0 0 14px; }
.pd-weiter { margin: 0; }
.pd-uns-abschnitt { border-bottom: 1px dashed #2A2D2E2b; }
.pd-fakten__kopf { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: start; }
.pd-fakten__kopf h2 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.15; margin: 4px 0 0; }
.pd-fakten__text { margin: 0; font-size: 19px; color: var(--wp--preset--color--mono-2); }
.pd-steckbriefe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 48px !important; }
.pd-steckbriefe > :first-child { rotate: -.8deg; }
.pd-steckbriefe > :last-child { rotate: .7deg; }
.pd-steckbriefe .pd-label { margin: 0; font-size: 13px; color: var(--wp--preset--color--teal); line-height: 32px; }
.pd-steckbriefe ul { margin: 0; padding-left: 20px; }
.pd-steckbriefe li { margin: 0; }
.pd-panorama { box-sizing: border-box; width: 100%; max-width: 1000px !important; margin: 64px auto 0 !important; background: var(--wp--preset--color--contrast-light); padding: 10px 10px 4px; rotate: -.4deg; box-shadow: 0 1px 2px #0002, 0 16px 34px -20px #0007; }
.pd-panorama img { display: block; width: 100%; height: clamp(240px, 36vw, 420px); object-fit: cover; }
.pd-panorama figcaption { font: italic 16px var(--wp--preset--font-family--fontprimary); color: var(--wp--preset--color--mono-2); margin: 8px 2px 6px; text-align: left; }

/* Einblenden */
.pd-js .pd-reveal, .pd-js .pd-buch { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.pd-js .pd-reveal.in, .pd-js .pd-buch.in { opacity: 1; transform: none; }

@media (max-width: 1000px) {
	.pd-buecher { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	.pd-hero { min-height: 0; display: block; }
	.pd-hero__bild { position: relative; height: 56vh; }
	.pd-hero__innen { display: block; padding: 0 16px 40px; margin-top: -90px; }
	.pd-hero__stapel { display: none; }
	.pd-hero__karte { padding: 22px 22px 24px; }
	.pd-hero__credit { position: static; color: var(--wp--preset--color--mono-2); text-shadow: none; padding: 0 16px; margin: -28px 0 20px; }
	.pd-notiz { margin: 0 0 0 auto !important; }
	.pd-trip { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	/* Karte bleibt beim Lesen oben stehen, damit die Route mitwächst */
	.pd-karte, .admin-bar .pd-karte { position: sticky; top: 0; z-index: 3; rotate: 0deg; margin: 0 -4px; padding: 6px; display: flex; justify-content: center; box-shadow: 0 10px 16px -14px #0007; }
	.pd-karte svg { width: auto; height: 30vh; max-height: 260px; }
	.pd-karte figcaption { display: none; }
	.pd-uns { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.pd-liste__raster { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 32px 18px !important; }
	.pd-fakten__kopf, .pd-steckbriefe { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.pd-ueber-hero { min-height: 380px !important; padding-bottom: 28px !important; }
	.pd-liste__titel { font-size: 20px; }
	.pd-liste__text p { font-size: 15px; }
	.pd-liste__seiten .page-numbers:not(.current) { display: none; }
	.pd-uns__bild { max-width: 360px; }
}
@media (max-width: 560px) {
	.pd-log li { grid-template-columns: 52px minmax(0, 1fr); }
	.pd-log__bild, .pd-log__platzhalter { display: none; }
	.pd-log li::before { display: none; }
	.pd-buecher { gap: 26px 16px; }
	.pd-buch .pd-snap { padding: 6px 6px 4px; }
	.pd-buch .pd-kicker { font-size: 11px; margin-top: 10px; }
	.pd-buch h3 { font-size: 18px; line-height: 1.2; }
	.pd-buch p { font-size: 14px; line-height: 1.4; }
	.pd-beitrag, .pd-start__inhalt, footer .superbthemes-footer-001 { padding-left: 18px !important; padding-right: 18px !important; }
	footer .superbthemes-footer-001 > .alignfull { margin-left: 0 !important; margin-right: 0 !important; }
	.pd-kopf h2, .pd-uns__text h2 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
	.pd-hero__bild img, .pd-js .pd-hero__karte, .pd-js .pd-hero__stapel .pd-snap { animation: none; }
	.pd-js .pd-reveal, .pd-js .pd-buch { opacity: 1; transform: none; transition: none; }
	.pd-route-maske { transition: none; }
}
