/*
 * gorodki.de — site identity styles.
 * Palette (locked): paper #FEF8EC, paper-deep #FBF1D8, ink #171717,
 * accent #0B9FDB, timber #C0863C (Figuren diagrams only).
 * Type: Rubik (display, 600/800) + Inter (body, 400/600), self-hosted.
 */

:root {
	--g-paper: #FEF8EC;
	--g-paper-deep: #FBF1D8;
	--g-ink: #171717;
	--g-accent: #0B9FDB;
	--g-accent-deep: #087FB0;
	--g-timber: #C0863C;
	--g-timber-deep: #916129;

	/* Re-tint Kadence's global palette so links, buttons and defaults follow. */
	--global-palette1: #0B9FDB;
	--global-palette2: #087FB0;
	--global-palette3: #171717;
	--global-palette4: #2B2B2B;
	--global-palette5: #4A4A45;
	--global-palette6: #7A7468;
	--global-palette7: #FBF1D8;
	--global-palette8: #FBF1D8;
	--global-palette9: #FEF8EC;
}

/* ---------- Base ---------- */

html body {
	background-color: var(--g-paper);
	color: var(--g-ink);
	font-family: 'Inter', system-ui, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.site-title,
.wp-block-button__link {
	font-family: 'Rubik', system-ui, sans-serif;
	font-weight: 600;
	color: var(--g-ink);
}

a {
	color: var(--g-accent);
}

a:hover {
	color: var(--g-accent-deep);
}

:focus-visible {
	outline: 2px solid var(--g-accent);
	outline-offset: 2px;
}

/* Defensive copy of the WP utility (Kadence ships it too). */
.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

@media (prefers-reduced-motion: reduce) {
	.figur, .figur *, .wp-block-button__link, .site-header a, .site-footer a,
	.galerie-card, .galerie-card *, .doc-list a, .doc-list li,
	.page-id-6 .wp-block-gallery a, .page-id-6 .wp-block-gallery img {
		transition: none !important;
		transform: none !important;
	}
}

/* ---------- Header: paper-deep bar, ink links, accent hover/current ---------- */

#masthead,
#masthead .site-header-row-container-inner,
#masthead .site-main-header-wrap,
#masthead .site-top-header-wrap {
	background: var(--g-paper-deep);
}

#masthead .site-branding .site-title {
	color: var(--g-ink);
	font-weight: 800;
}

/* Branding lockup: the GORODKI wordmark (timber, very wide 2361x308 source)
   capped to text height, the full org name beside it behind a quiet rule.
   Balanced against nav + search on the right (logo added in Package A). */
#masthead .site-branding a.brand {
	display: flex;
	align-items: center;
	gap: 0.85rem;
}

#masthead .site-branding .custom-logo {
	width: auto;
	height: 26px;
	max-width: none;
}

#masthead .site-branding .site-title-wrap {
	border-left: 2px solid rgba(23, 23, 23, 0.18);
	padding-left: 0.85rem;
}

#masthead .site-branding .site-title {
	font-size: 0.92rem;
	line-height: 1.25;
	max-width: 11ch;
	margin: 0;
}

@media (max-width: 1024px) {
	#masthead .site-branding .custom-logo {
		height: 22px;
	}
}

@media (max-width: 479px) {
	/* Very narrow screens: the wordmark alone identifies the site. */
	#masthead .site-branding .site-title-wrap {
		display: none;
	}
}

#masthead .main-navigation .primary-menu-container > ul > li > a,
#mobile-drawer .mobile-navigation ul li a {
	color: var(--g-ink);
	font-family: 'Rubik', system-ui, sans-serif;
	font-weight: 600;
	transition: color 0.15s ease;
}

#masthead .main-navigation .primary-menu-container > ul > li > a:hover,
#masthead .main-navigation .primary-menu-container > ul > li.current-menu-item > a,
#masthead .main-navigation .primary-menu-container > ul > li.current-menu-ancestor > a,
#mobile-drawer .mobile-navigation ul li.current-menu-item > a {
	color: var(--g-accent);
}

/* Mobile drawer: paper surface so the ink nav stays readable (Kadence defaults to a near-black panel). */
#mobile-drawer .drawer-inner,
#mobile-drawer .drawer-content {
	background: var(--g-paper);
	color: var(--g-ink);
}

#mobile-drawer .drawer-header .drawer-toggle,
#mobile-drawer .mobile-navigation ul li .drawer-sub-toggle {
	color: var(--g-ink);
}

#mobile-drawer .mobile-navigation ul li {
	border-bottom: 1px solid rgba(23, 23, 23, 0.12);
}

/* Sticky header keeps the paper-deep tint when fixed (Kadence sets white). */
body #masthead .kadence-sticky-header.item-is-fixed:not(.item-at-start) > .site-header-row-container-inner {
	background: var(--g-paper-deep);
}

/* Dropdowns stay readable on paper-deep. */
#masthead .main-navigation ul ul {
	background: var(--g-paper);
}

#masthead .main-navigation ul ul li a {
	color: var(--g-ink);
}

#masthead .main-navigation ul ul li a:hover {
	color: var(--g-accent);
}

/* ---------- Page-title band (Kadence entry-hero): paper-deep, ink ---------- */

/* Kadence paints the band with --global-palette7 (pale blue-gray) from its own
   inline CSS, which loads after this file — win on specificity, not order. */
.entry-hero .entry-hero-container-inner {
	background: var(--g-paper-deep);
}

.entry-hero .entry-title {
	color: var(--g-ink);
}

/* ---------- Footer: ink ground, paper text ---------- */

#colophon,
#colophon .site-footer-row-container-inner {
	background: var(--g-ink);
	color: var(--g-paper);
}

#colophon .site-footer-wrap {
	padding-top: 1.25rem;
	padding-bottom: 1.25rem;
}

#colophon,
#colophon p {
	color: var(--g-paper);
}

#colophon a {
	color: var(--g-paper);
	text-decoration: none;
}

#colophon a:hover {
	color: var(--g-accent);
}

#colophon .footer-navigation .footer-menu-container > ul > li > a {
	color: var(--g-paper);
}

#colophon .footer-navigation .footer-menu-container > ul > li > a:hover {
	color: var(--g-accent);
}

#colophon .footer-social-wrap .social-button {
	color: var(--g-paper);
	border-color: var(--g-paper);
}

#colophon .footer-social-wrap .social-button:hover {
	color: var(--g-accent);
	border-color: var(--g-accent);
}

/* ---------- Shared section styles (Startseite) ---------- */

/* Front page: paper everywhere behind the sections — no white bands where
   Gutenberg's block-gap margins would expose the default content background. */
body.home .site,
body.home .site-content,
body.home .content-bg,
body.home .content-wrap {
	background: var(--g-paper);
}

body.home .entry-content > .wp-block-group.alignfull {
	margin-top: 0;
	margin-bottom: 0;
}

/* One vertical rhythm for every front-page band (Links & Partner and
   Sponsoren joined the list with the Package B elevation pass). */
.gorodki-hero,
.home-figuren,
.home-video,
.home-aktuelles,
.home-termine,
.home-links-partner,
.home-sponsoren {
	padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 3rem);
}

.section-title {
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	font-weight: 800;
	margin-bottom: 1.5rem;
}

/* Quiet signature underline: a short timber rule below every section title. */
.section-title::after {
	content: "";
	display: block;
	width: 2.5rem;
	height: 3px;
	margin-top: 0.55rem;
	border-radius: 2px;
	background: var(--g-timber);
}

.section-more a {
	font-weight: 600;
	text-decoration: none;
}

.section-more a:hover {
	text-decoration: underline;
}

/* ---------- Hero ---------- */

.gorodki-hero {
	background: var(--g-paper);
}

/* Kadence's own content CSS loads after this file and sets
   `.entry-content .alignfull { padding-left:0; padding-right:0; }` (2-class
   selector, later source order) — it beats this file's `.gorodki-hero`
   padding on every viewport, so on narrow screens the hero title/intro sit
   flush against the edge (first glyph of the H1 visually clipped by the
   viewport edge). Win on specificity (3 classes) rather than order; scoped
   to mobile since desktop already has enough visual margin from the
   two-column layout. Matches the ~1rem/24px inset the other alignfull home
   sections (.home-figuren/.home-aktuelles/.home-termine) are meant to have
   from the same shared rule at line ~200 — they lose it to Kadence too, but
   it reads less jarring there than a clipped headline. */
@media (max-width: 781px) {
	.entry-content.single-content .gorodki-hero {
		padding-left: 1rem;
		padding-right: 1rem;
	}
}

.hero-title {
	font-size: clamp(2.1rem, 5vw, 3.4rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.015em;
	margin-bottom: 1rem;
}

.hero-intro {
	font-size: clamp(1rem, 1.6vw, 1.15rem);
	line-height: 1.6;
	max-width: 34em;
	margin-bottom: 1.5rem;
}

.hero-cta .wp-block-button__link {
	border-radius: 6px;
	font-weight: 600;
	padding: 0.7em 1.5em;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.hero-btn-primary .wp-block-button__link {
	background-color: var(--g-accent);
	color: #fff;
	border: 2px solid var(--g-accent);
}

.hero-btn-primary .wp-block-button__link:hover {
	background-color: var(--g-accent-deep);
	border-color: var(--g-accent-deep);
	color: #fff;
}

.hero-btn-outline .wp-block-button__link {
	background: transparent;
	color: var(--g-ink);
	border: 2px solid var(--g-ink);
}

.hero-btn-outline .wp-block-button__link:hover {
	color: var(--g-accent);
	border-color: var(--g-accent);
	background: transparent;
}

.hero-photo img {
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(23, 23, 23, 0.18);
	max-width: 100%;
	height: auto;
}

/* ---------- Die 16 Figuren (Signatur-Element) ----------
   The 16 official figures of the Eurogorodki competition rules, rendered by
   [gorodki_figuren] (inc/figuren.php) as inline SVG construction diagrams:
   timber pins, dark end-on pins, ghost projection boxes, marking lines,
   trapezoid city outline for Fax/Brief. */

.home-figuren {
	background: var(--g-paper-deep);
}

.figuren-strip {
	/* Mobile: the strip scrolls inside itself; the page never scrolls sideways. */
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: var(--g-timber) transparent;
	padding-bottom: 0.5rem;
}

.figuren-list {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.figuren-item {
	flex: 0 0 auto;
	width: 128px;
	margin: 0;
}

/* Tablet: 4x4 grid; desktop: 8x2. 16 figures always fill even rows. */
@media (min-width: 782px) {
	.figuren-strip {
		overflow-x: visible;
		padding-bottom: 0;
	}

	.figuren-list {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 0.9rem;
	}

	.figuren-item {
		width: auto;
	}
}

@media (min-width: 1120px) {
	.figuren-list {
		grid-template-columns: repeat(8, minmax(0, 1fr));
		gap: 0.75rem;
	}
}

.figur {
	display: block;
	height: 100%;
	background: var(--g-paper);
	border: 1px solid rgba(23, 23, 23, 0.1);
	border-radius: 10px;
	padding: 0.5rem 0.5rem 0.65rem;
	text-decoration: none;
	color: var(--g-ink);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.figur:hover,
.figur:focus-visible {
	border-color: var(--g-accent);
	box-shadow: 0 0 0 1px var(--g-accent);
}

.figur-svg {
	display: block;
	width: 100%;
	height: auto;
}

.figur-svg .g-pin {
	fill: var(--g-timber);
	stroke: var(--g-ink);
	stroke-width: 1.75;
	stroke-linejoin: round;
}

.figur-svg .g-pin-end {
	fill: var(--g-timber-deep);
	stroke: var(--g-ink);
	stroke-width: 1.75;
	stroke-linejoin: round;
}

.figur-svg .g-ghost {
	fill: none;
	stroke: var(--g-ink);
	stroke-opacity: 0.35;
	stroke-width: 1.25;
}

.figur-svg .g-mark {
	stroke: var(--g-ink);
	stroke-opacity: 0.3;
	stroke-width: 1.25;
}

.figur-svg .g-ground {
	stroke: var(--g-ink);
	stroke-opacity: 0.4;
	stroke-width: 1.5;
	stroke-linecap: round;
}

.figur-svg .g-city {
	fill: none;
	stroke: var(--g-ink);
	stroke-opacity: 0.85;
	stroke-width: 2.5;
	stroke-linejoin: round;
}

.figur-name {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.2;
	min-height: 2em;
	transition: color 0.15s ease;
	-webkit-hyphens: auto;
	hyphens: auto;
	overflow-wrap: break-word;
}

.figur-num {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.6em;
	height: 1.6em;
	border: 1.5px solid var(--g-ink);
	border-radius: 6px;
	font-family: 'Rubik', system-ui, sans-serif;
	font-size: 0.85em;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.figur:hover .figur-name,
.figur:focus-visible .figur-name {
	color: var(--g-accent);
}

.figur:hover .figur-num,
.figur:focus-visible .figur-num {
	border-color: var(--g-accent);
}

.figuren-caption {
	margin-top: 1rem;
	font-size: 0.95rem;
	color: var(--g-ink);
	opacity: 0.75;
}

/* ---------- So wird Gorodki gespielt ----------
   Sits right after the figuren band (paper-deep) and right before Aktuelles
   (paper): paper here keeps the figuren/video boundary visually distinct;
   video and Aktuelles share a tone but are already separated by very
   different content (embeds vs. a post grid + heading). */

.home-video {
	background: var(--g-paper);
}

.video-cols {
	gap: clamp(1.25rem, 3vw, 2rem);
}

.video-embed {
	margin: 0;
}

.video-embed iframe {
	border-radius: 10px;
}

.video-embed figcaption {
	margin-top: 0.6rem;
	font-size: 0.95rem;
	opacity: 0.8;
}

.video-cta {
	margin-top: clamp(1.5rem, 3vw, 2rem);
}

.video-btn-outline .wp-block-button__link {
	background: transparent;
	color: var(--g-ink);
	border: 2px solid var(--g-ink);
	border-radius: 6px;
	font-weight: 600;
	padding: 0.7em 1.5em;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.video-btn-outline .wp-block-button__link:hover {
	color: var(--g-accent);
	border-color: var(--g-accent);
	background: transparent;
}

@media (max-width: 781px) {
	.video-cols.wp-block-columns {
		flex-wrap: wrap;
	}
}

/* ---------- Aktuelles ---------- */

.home-aktuelles {
	background: var(--g-paper);
}

/* Fallback grid in case core's layout styles are unavailable. */
.aktuelles-query .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	list-style: none;
	padding: 0;
}

@media (max-width: 781px) {
	.aktuelles-query .wp-block-post-template {
		grid-template-columns: 1fr;
	}
}

.aktuelles-query .wp-block-post-featured-image img {
	border-radius: 8px;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.aktuelles-query .wp-block-post-title {
	font-size: 1.1rem;
	margin: 0.6rem 0 0.15rem;
}

.aktuelles-query .wp-block-post-title a {
	color: var(--g-ink);
	text-decoration: none;
}

.aktuelles-query .wp-block-post-title a:hover {
	color: var(--g-accent);
}

.aktuelles-query .wp-block-post-date {
	font-size: 0.85rem;
	opacity: 0.7;
}

/* ---------- Nächste Termine ---------- */

.home-termine {
	background: var(--g-paper-deep);
}

.termine-liste {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	max-width: 40em;
}

.termin {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 1.25rem;
	padding: 0.8rem 0;
	border-bottom: 1px solid rgba(23, 23, 23, 0.12);
}

.termin:first-child {
	border-top: 1px solid rgba(23, 23, 23, 0.12);
}

.termin-datum {
	flex: 0 0 auto;
	min-width: 9.5em;
	font-family: 'Rubik', system-ui, sans-serif;
	font-weight: 600;
	font-size: 0.95rem;
}

.termin-titel {
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--g-ink);
	text-decoration: none;
}

.termin-titel:hover {
	color: var(--g-accent);
}

/* ---------- Termine (The Events Calendar, /kalender/) ---------- */

/* Kadence's unboxed content style paints the whole .site white on TEC pages
   (body.content-style-unboxed .site { background: palette9 }) — repaint with
   paper so the calendar sits on the site's cream ground. TEC's own view
   background is already transparent (--tec-color-background-events); event
   rows keep their default styling for contrast. */
body.content-style-unboxed.post-type-archive-tribe_events .site,
body.content-style-unboxed.single-tribe_events .site {
	background: var(--g-paper);
}

/* Visible page heading injected via tribe_events_before_html (functions.php) —
   TEC suppresses Kadence's title band and hides its own H1 for screen readers
   only. Sized like the band titles on other pages. */
.gorodki-events-title {
	font-size: 32px;
	line-height: 1.5;
	margin: 0 0 1rem;
}

/* ---------- Links & Partner (completeness-audit fix #2) ---------- */

.home-links-partner {
	background: var(--g-paper);
}

.links-group-title {
	font-size: 1.05rem;
	font-weight: 700;
	margin-bottom: 0.75rem;
}

.links-list {
	margin: 0;
	padding-left: 1.1em;
}

.links-list li {
	margin-bottom: 0.4rem;
}

.links-list a {
	font-weight: 600;
}

/* ---------- Sponsoren DM 2025 (completeness-audit fix #3) ---------- */

.home-sponsoren {
	background: var(--g-paper-deep);
}

/* Compact white card, logos centered and sized to actually read as logos
   (not a huge mostly-empty box with two tiny marks floating in it). */
.sponsoren-logos {
	align-items: center;
	justify-content: center;
	gap: clamp(2.5rem, 7vw, 5rem);
	margin-bottom: 1.25rem;
	background: #fff;
	border: 1px solid rgba(23, 23, 23, 0.08);
	border-radius: 12px;
	padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 3rem);
}

.sponsoren-logos .sponsor-logo {
	margin: 0;
}

.sponsor-logo a {
	display: block;
}

.sponsor-logo img {
	display: block;
	max-height: clamp(90px, 9vw, 110px);
	max-width: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* Mobile: stack the two logos with a divider of whitespace instead of the
   flex-wrap default cramming them edge to edge. */
@media (max-width: 599px) {
	.sponsoren-logos {
		flex-direction: column;
		gap: 1.75rem;
	}
}

.sponsoren-credit {
	font-size: 0.95rem;
	margin: 0;
	opacity: 0.85;
}

/* ---------- Galerie-Uebersicht: Foto-Archiv-Karten (Package B) ----------
   /galerie/ renders a card grid (markup from scripts/redesign-galerie.php):
   real cover photo in a fixed 3:2 frame, title, year + photo count, plus a
   distinct ink "Videos" card with a play glyph. */

.galerie-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
	margin: 1.5rem 0 2.5rem;
}

@media (max-width: 1024px) {
	.galerie-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

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

.galerie-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid rgba(23, 23, 23, 0.1);
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	color: var(--g-ink);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.galerie-card:hover,
.galerie-card:focus-visible {
	border-color: var(--g-accent);
	box-shadow: 0 0 0 1px var(--g-accent), 0 6px 18px rgba(23, 23, 23, 0.12);
}

.galerie-card-media {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--g-paper-deep);
}

.galerie-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.25s ease;
}

.galerie-card:hover .galerie-card-media img,
.galerie-card:focus-visible .galerie-card-media img {
	transform: scale(1.045);
}

.galerie-card-body {
	display: block;
	padding: 0.85rem 1rem 1rem;
}

.galerie-card-title {
	display: block;
	font-family: 'Rubik', system-ui, sans-serif;
	font-weight: 600;
	font-size: 1.05rem;
	line-height: 1.3;
	transition: color 0.15s ease;
}

.galerie-card:hover .galerie-card-title,
.galerie-card:focus-visible .galerie-card-title {
	color: var(--g-accent);
}

.galerie-card-meta {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.85rem;
	color: rgba(23, 23, 23, 0.65);
}

/* Videos card: ink ground + play glyph instead of a photo. */
.galerie-card-media-videos {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--g-ink);
}

.galerie-card-media-videos svg {
	width: 64px;
	height: 64px;
}

.galerie-play-ring {
	fill: none;
	stroke: var(--g-paper);
	stroke-width: 3;
}

.galerie-play-tri {
	fill: var(--g-paper);
}

.galerie-card:hover .galerie-play-ring,
.galerie-card:focus-visible .galerie-play-ring {
	stroke: var(--g-accent);
}

.galerie-card:hover .galerie-play-tri,
.galerie-card:focus-visible .galerie-play-tri {
	fill: var(--g-accent);
}

/* ---------- Inhaltsseiten: Mass, Rhythmus, Karten-Container (Package B) ----------
   Static pages + single posts: cap the content container so long texts sit in
   a comfortable measure instead of spanning Kadence's full 1290px, and give
   headings/images a consistent vertical rhythm. The homepage (full-bleed
   bands) and The Events Calendar keep their own layouts. */

body.page:not(.home) .content-container.site-container,
body.single-post .content-container.site-container,
body.page:not(.home) .entry-hero .site-container,
body.single-post .entry-hero .site-container {
	max-width: 1080px;
}

/* Text blocks hold a readable measure; media may use the full container. */
body:not(.home) .single-content > p,
body:not(.home) .single-content > ul,
body:not(.home) .single-content > ol,
body:not(.home) .single-content > h2,
body:not(.home) .single-content > h3,
body:not(.home) .single-content > h4,
body:not(.home) .single-content > blockquote {
	max-width: 72ch;
}

/* Heading rhythm: clear steps, more air above than below. */
.single-content h2 {
	font-size: clamp(1.35rem, 2.2vw, 1.6rem);
	margin-top: 2.2em;
	margin-bottom: 0.6em;
}

.single-content h3 {
	font-size: clamp(1.15rem, 1.8vw, 1.3rem);
	margin-top: 1.8em;
	margin-bottom: 0.5em;
}

.single-content > h2:first-child,
.single-content > h3:first-child {
	margin-top: 0;
}

.single-content p,
.single-content li {
	line-height: 1.65;
}

.single-content > figure,
.single-content > .wp-block-image,
.single-content > .wp-block-gallery,
.single-content > .wp-block-embed {
	margin-top: 1.75em;
	margin-bottom: 1.75em;
}

.single-content .wp-block-image img {
	border-radius: 8px;
}

/* Image captions: quiet, clearly attached to their image. */
.single-content figcaption,
.single-content .wp-element-caption {
	font-size: 0.85rem;
	color: rgba(23, 23, 23, 0.65);
	margin-top: 0.5rem;
	line-height: 1.4;
}

/* ---------- Beitraege: Typografie + Meta-Zeile (Package B) ---------- */

/* Lead: the opening paragraph of a post reads slightly larger. */
body.single-post .single-content > p:first-child {
	font-size: 1.1rem;
	line-height: 1.65;
}

/* Meta line (author / date) under the post title: small, Rubik, quiet. */
body.single-post .entry-header .entry-meta {
	font-family: 'Rubik', system-ui, sans-serif;
	font-size: 0.85rem;
	letter-spacing: 0.01em;
	color: rgba(23, 23, 23, 0.65);
}

body.single-post .entry-header .entry-meta a {
	color: rgba(23, 23, 23, 0.65);
	text-decoration: none;
}

body.single-post .entry-header .entry-meta a:hover {
	color: var(--g-accent);
}

/* ---------- Downloads + Rangliste: Dokument-Zeilen (Package B) ----------
   The bare link lists become document rows: file glyph, title, PDF chip.
   The `doc-list` class is added by scripts/add-doc-list-classes.php. */

ul.doc-list {
	list-style: none;
	padding: 0;
	margin: 0 0 2rem;
	max-width: 46rem;
}

ul.doc-list li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	background: var(--g-paper-deep);
	border: 1px solid rgba(23, 23, 23, 0.08);
	border-radius: 8px;
	padding: 0.7rem 1rem;
	margin: 0 0 0.5rem;
	transition: border-color 0.15s ease;
}

ul.doc-list li:hover {
	border-color: var(--g-accent);
}

/* File glyph: a small ink document outline (folded corner). */
ul.doc-list li::before {
	content: "";
	flex: 0 0 auto;
	width: 18px;
	height: 22px;
	background-color: rgba(23, 23, 23, 0.55);
	-webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 22"><path d="M3 1h8l5 5v14a1.5 1.5 0 0 1-1.5 1.5h-11A1.5 1.5 0 0 1 2 20V2.5A1.5 1.5 0 0 1 3.5 1z" fill="none" stroke="black" stroke-width="1.8"/><path d="M11 1v5h5" fill="none" stroke="black" stroke-width="1.8"/></svg>') no-repeat center / contain;
	mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 22"><path d="M3 1h8l5 5v14a1.5 1.5 0 0 1-1.5 1.5h-11A1.5 1.5 0 0 1 2 20V2.5A1.5 1.5 0 0 1 3.5 1z" fill="none" stroke="black" stroke-width="1.8"/><path d="M11 1v5h5" fill="none" stroke="black" stroke-width="1.8"/></svg>') no-repeat center / contain;
}

ul.doc-list li a {
	font-weight: 600;
	color: var(--g-ink);
	text-decoration: none;
	flex: 1 1 auto;
}

ul.doc-list li a:hover {
	color: var(--g-accent);
}

/* PDF chip on rows whose link points at a .pdf file. */
ul.doc-list li a[href$=".pdf" i]::after {
	content: "PDF";
	float: right;
	font-family: 'Rubik', system-ui, sans-serif;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: rgba(23, 23, 23, 0.6);
	border: 1.5px solid rgba(23, 23, 23, 0.3);
	border-radius: 5px;
	padding: 0.1em 0.45em;
	margin-left: 0.75rem;
}

/* ---------- Standorte-Uebersicht: Orts-Karten (Package B) ----------
   The location galleries (page-id-6) become uniform 4:3 cards with the place
   name overlaid on an ink gradient; linked cards zoom gently on hover. */

.page-id-6 .wp-block-gallery .wp-block-image {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
}

.page-id-6 .wp-block-gallery .wp-block-image img {
	aspect-ratio: 4 / 3;
	width: 100%;
	object-fit: cover;
	border-radius: 10px;
	transition: transform 0.25s ease;
}

.page-id-6 .wp-block-gallery .wp-block-image:hover img {
	transform: scale(1.045);
}

.page-id-6 .wp-block-gallery .wp-block-image figcaption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0;
	padding: 1.6rem 0.9rem 0.6rem;
	background: linear-gradient(to top, rgba(23, 23, 23, 0.72), transparent);
	color: var(--g-paper);
	font-family: 'Rubik', system-ui, sans-serif;
	font-weight: 600;
	font-size: 0.95rem;
	text-align: left;
	border-radius: 0 0 10px 10px;
}

.page-id-6 .wp-block-gallery .wp-block-image a:focus-visible img {
	outline: 2px solid var(--g-accent);
	outline-offset: -2px;
}

/* ---------- Footer: 3-teilige Komposition (Package B) ---------- */

#colophon .site-footer-wrap {
	padding-top: 1.75rem;
	padding-bottom: 1.75rem;
}

#colophon .footer-html p {
	margin: 0;
	font-size: 0.9rem;
	opacity: 0.85;
}

#colophon .footer-navigation .footer-menu-container > ul {
	display: flex;
	gap: 1.5rem;
	justify-content: center;
}

#colophon .footer-navigation .footer-menu-container > ul > li > a {
	font-size: 0.9rem;
	padding: 0.25rem 0;
}

#colophon .footer-social-wrap .social-button {
	border-radius: 8px;
	transition: color 0.15s ease, border-color 0.15s ease;
}

/* Mobile: stack the three parts centered with breathing room. */
@media (max-width: 781px) {
	#colophon .site-footer-row {
		row-gap: 0.9rem;
	}

	#colophon .site-info,
	#colophon .footer-navigation-wrap,
	#colophon .footer-social {
		text-align: center;
		justify-content: center;
	}
}
