/*
Theme Name: Handwerker für Darfur
Theme URI: https://www.handwerker-fuer-darfur.org/
Author: Handwerker für Darfur e.V.
Description: Theme für den Verein „Handwerker für Darfur“ e.V. — Berufsausbildung für Jugendliche in Darfur. Übernimmt die Bildmarke und die Farbwelt (Gold #EBB703) des bisherigen Auftritts in einer modernen, responsiven Umsetzung.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hfd
Tags: nonprofit, charity, custom-menu, featured-images, translation-ready, accessibility-ready
*/

/* =========================================================================
   1. Design-Token
   ========================================================================= */
:root {
	--hfd-gold: #ebb703;          /* Logo-Ring, Fußzeile des alten Auftritts */
	--hfd-gold-dark: #b88f00;
	--hfd-gold-soft: #fdf4d4;
	--hfd-ink: #1a1a18;
	--hfd-ink-soft: #55534c;
	--hfd-line: #e3e0d8;
	--hfd-paper: #ffffff;
	--hfd-sand: #f7f5f0;          /* moderne Fassung des alten grauen Inhaltsbands */
	--hfd-slate: #2b2b28;

	--hfd-measure: 68ch;
	--hfd-wrap: 1160px;
	--hfd-wrap-narrow: 820px;
	--hfd-radius: 3px;

	--hfd-sans: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
		Roboto, "Noto Sans", Arial, sans-serif;

	--hfd-shadow: 0 1px 2px rgba(26, 26, 24, .06), 0 8px 24px -12px rgba(26, 26, 24, .18);
	--hfd-step: clamp(2.5rem, 5vw, 4.5rem);
}

/* =========================================================================
   2. Reset / Grundlagen
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
	margin: 0;
	background: var(--hfd-paper);
	color: var(--hfd-ink);
	font-family: var(--hfd-sans);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }

a { color: var(--hfd-ink); text-decoration-color: var(--hfd-gold); text-underline-offset: .18em; }
a:hover, a:focus { color: var(--hfd-gold-dark); }

:focus-visible {
	outline: 3px solid var(--hfd-gold);
	outline-offset: 2px;
	border-radius: 2px;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -.012em;
	margin: 0 0 .5em;
	color: var(--hfd-ink);
	text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h4 { font-size: 1.125rem; }

p, ul, ol, dl, blockquote, table, figure, pre { margin: 0 0 1.15em; }
ul, ol { padding-left: 1.35em; }
li { margin-bottom: .35em; }
li::marker { color: var(--hfd-gold-dark); }

strong, b { font-weight: 700; }
small { font-size: .875em; }
hr {
	border: 0;
	height: 1px;
	background: var(--hfd-line);
	margin: var(--hfd-step) 0;
}

/* =========================================================================
   3. Layout-Hilfen
   ========================================================================= */
.hfd-wrap {
	width: min(100% - 2.5rem, var(--hfd-wrap));
	margin-inline: auto;
}
.hfd-wrap--narrow { width: min(100% - 2.5rem, var(--hfd-wrap-narrow)); }

.hfd-section { padding-block: var(--hfd-step); }
.hfd-section--sand { background: var(--hfd-sand); }
.hfd-section--tight { padding-block: clamp(1.75rem, 3vw, 2.75rem); }

.hfd-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	background: var(--hfd-gold);
	color: var(--hfd-ink);
	padding: .75rem 1.25rem;
	font-weight: 700;
}
.hfd-skip-link:focus { left: .5rem; top: .5rem; }

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px; width: 1px;
	margin: -1px; overflow: hidden;
	padding: 0; position: absolute;
	white-space: nowrap;
}

/* Goldene Haarlinie – Leitmotiv, übernommen vom Logo-Ring */
.hfd-rule {
	width: 56px;
	height: 3px;
	background: var(--hfd-gold);
	border: 0;
	margin: 0 0 1.4rem;
}
.hfd-rule--center { margin-inline: auto; }

/* =========================================================================
   4. Kopfbereich
   ========================================================================= */
.hfd-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: saturate(140%) blur(8px);
	border-bottom: 1px solid var(--hfd-line);
}
.admin-bar .hfd-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .hfd-header { top: 46px; } }

.hfd-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 82px;
	padding-block: .6rem;
}

.hfd-brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; flex: 0 0 auto; }
.hfd-brand img { height: 52px; width: auto; }
/* Die Bildmarke enthält den Vereinsnamen bereits — der Text daneben dient
   nur Screenreadern und tritt ein, falls ein reines Signet hochgeladen wird. */
.hfd-brand__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* --- Navigation --- */
.hfd-nav { margin-left: auto; }
.hfd-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.hfd-nav li { margin: 0; position: relative; }

.hfd-nav a {
	display: block;
	padding: .55rem .7rem;
	font-size: .935rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--hfd-ink);
	border-bottom: 3px solid transparent;
	white-space: nowrap;
}
.hfd-nav a:hover,
.hfd-nav a:focus-visible { border-bottom-color: var(--hfd-gold); color: var(--hfd-ink); }
.hfd-nav .current-menu-item > a,
.hfd-nav .current-menu-ancestor > a,
.hfd-nav .current_page_item > a,
.hfd-nav .current_page_parent > a,
.hfd-nav .current_page_ancestor > a { border-bottom-color: var(--hfd-gold); }

/* Untermenüs */
.hfd-nav .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: .38em; height: .38em;
	margin-left: .45em;
	vertical-align: .12em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	opacity: .55;
}
.hfd-nav ul ul {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 245px;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	background: var(--hfd-paper);
	border: 1px solid var(--hfd-line);
	border-top: 3px solid var(--hfd-gold);
	box-shadow: var(--hfd-shadow);
	padding: .35rem;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.hfd-nav li:hover > ul,
.hfd-nav li:focus-within > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.hfd-nav ul ul a { border-bottom: 0; padding: .5rem .7rem; white-space: normal; }
.hfd-nav ul ul a:hover, .hfd-nav ul ul a:focus-visible { background: var(--hfd-gold-soft); }

/* Spenden-Knopf im Kopfbereich */
.hfd-header__cta { flex: 0 0 auto; }
/* Derselbe Knopf im aufgeklappten Menü — nur auf schmalen Bildschirmen. */
.hfd-nav__mobile-cta { display: none; }

/* Hamburger */
.hfd-burger {
	display: none;
	align-items: center;
	gap: .5rem;
	background: none;
	border: 1px solid var(--hfd-line);
	border-radius: var(--hfd-radius);
	padding: .55rem .7rem;
	font: inherit;
	font-size: .9rem;
	font-weight: 600;
	cursor: pointer;
	color: var(--hfd-ink);
}
.hfd-burger__bars { display: grid; gap: 4px; }
.hfd-burger__bars span { display: block; width: 20px; height: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.hfd-burger[aria-expanded="true"] .hfd-burger__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hfd-burger[aria-expanded="true"] .hfd-burger__bars span:nth-child(2) { opacity: 0; }
.hfd-burger[aria-expanded="true"] .hfd-burger__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1024px) {
	.hfd-burger { display: inline-flex; }
	.hfd-header__cta { display: none; }
	.hfd-nav {
		position: absolute;
		left: 0; right: 0; top: 100%;
		background: var(--hfd-paper);
		border-bottom: 3px solid var(--hfd-gold);
		box-shadow: var(--hfd-shadow);
		max-height: calc(100vh - 82px);
		overflow-y: auto;
		display: none;
	}
	.hfd-nav.is-open { display: block; }
	.hfd-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.5rem; }
	.hfd-nav a { padding: .8rem .25rem; border-bottom: 1px solid var(--hfd-line); font-size: 1rem; }
	.hfd-nav a:hover, .hfd-nav a:focus-visible { border-bottom-color: var(--hfd-gold); }
	.hfd-nav ul ul {
		position: static;
		opacity: 1; visibility: visible; transform: none;
		border: 0; box-shadow: none; padding: 0 0 .35rem 1rem;
		min-width: 0;
	}
	.hfd-nav ul ul a { font-size: .95rem; color: var(--hfd-ink-soft); }
	.hfd-nav .menu-item-has-children > a::after { float: right; margin-top: .55em; }
	.hfd-nav__mobile-cta { display: block; padding: 1rem .25rem 0; }
}

/* =========================================================================
   5. Knöpfe
   ========================================================================= */
.hfd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: .78rem 1.5rem;
	font-size: .95rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	border: 2px solid var(--hfd-gold);
	border-radius: var(--hfd-radius);
	background: var(--hfd-gold);
	color: var(--hfd-ink);
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.hfd-btn:hover, .hfd-btn:focus-visible {
	background: var(--hfd-gold-dark);
	border-color: var(--hfd-gold-dark);
	color: #fff;
	transform: translateY(-1px);
}
.hfd-btn--ghost { background: transparent; border-color: var(--hfd-ink); color: var(--hfd-ink); }
.hfd-btn--ghost:hover, .hfd-btn--ghost:focus-visible { background: var(--hfd-ink); border-color: var(--hfd-ink); color: #fff; }
.hfd-btn--light { background: transparent; border-color: #fff; color: #fff; }
.hfd-btn--light:hover, .hfd-btn--light:focus-visible { background: #fff; color: var(--hfd-ink); }
.hfd-btn--sm { padding: .5rem 1rem; font-size: .875rem; }

/* =========================================================================
   6. Aufmacher (Startseite)
   ========================================================================= */
.hfd-hero { position: relative; background: var(--hfd-slate); color: #fff; overflow: hidden; }
.hfd-hero__media { position: absolute; inset: 0; }
.hfd-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .42; filter: grayscale(15%); }
.hfd-hero__media::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(105deg, rgba(26,26,24,.88) 0%, rgba(26,26,24,.6) 55%, rgba(26,26,24,.3) 100%);
}
.hfd-hero__inner { position: relative; padding-block: clamp(3.5rem, 9vw, 7rem); }
.hfd-hero__eyebrow {
	display: inline-block;
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--hfd-gold);
	margin-bottom: 1rem;
}
.hfd-hero h1 { color: #fff; max-width: 18ch; margin-bottom: 1rem; }
.hfd-hero__lead {
	font-size: clamp(1.05rem, 1.7vw, 1.3rem);
	color: rgba(255,255,255,.9);
	max-width: 48ch;
	margin-bottom: 2rem;
}
.hfd-hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }

/* Motto-Band */
.hfd-motto {
	background: var(--hfd-gold);
	text-align: center;
	padding-block: 1.4rem;
}
.hfd-motto__text {
	margin: 0;
	font-size: clamp(1.15rem, 2.4vw, 1.75rem);
	font-weight: 700;
	letter-spacing: .06em;
	color: var(--hfd-ink);
}

/* =========================================================================
   7. Seitenkopf (Unterseiten)
   ========================================================================= */
.hfd-pagehead {
	background: var(--hfd-sand);
	border-bottom: 1px solid var(--hfd-line);
	padding-block: clamp(2rem, 4.5vw, 3.25rem);
}
.hfd-pagehead h1 { margin-bottom: .35rem; }
.hfd-pagehead__lead { color: var(--hfd-ink-soft); max-width: var(--hfd-measure); margin: .75rem 0 0; font-size: 1.1rem; }

.hfd-breadcrumb { font-size: .85rem; color: var(--hfd-ink-soft); margin-bottom: .85rem; }
.hfd-breadcrumb a { color: var(--hfd-ink-soft); text-decoration: none; }
.hfd-breadcrumb a:hover { color: var(--hfd-gold-dark); text-decoration: underline; }
.hfd-breadcrumb__sep { padding-inline: .45em; opacity: .5; }

/* =========================================================================
   8. Inhaltstypografie
   ========================================================================= */
.hfd-prose { max-width: var(--hfd-measure); }
.hfd-prose--wide { max-width: 100%; }
.hfd-prose > * + * { margin-top: 1.15em; }
.hfd-prose h2 { margin-top: 2em; padding-top: .2em; }
.hfd-prose h2:first-child { margin-top: 0; }
.hfd-prose h3 { margin-top: 1.7em; color: var(--hfd-ink); }
.hfd-prose h2 + h3 { margin-top: 1em; }
.hfd-prose ul, .hfd-prose ol { padding-left: 1.3em; }
.hfd-prose img { border-radius: var(--hfd-radius); }
.hfd-prose figcaption,
.wp-element-caption,
.wp-block-image figcaption {
	font-size: .875rem;
	color: var(--hfd-ink-soft);
	margin-top: .5rem;
	line-height: 1.45;
}
.hfd-prose blockquote {
	margin-inline: 0;
	padding: .3rem 0 .3rem 1.4rem;
	border-left: 3px solid var(--hfd-gold);
	color: var(--hfd-ink-soft);
	font-size: 1.08rem;
}
.hfd-prose a { font-weight: 600; }

.hfd-lead { font-size: 1.15rem; color: var(--hfd-ink-soft); }

/* Hervorgehobener Kasten */
.hfd-callout {
	background: var(--hfd-gold-soft);
	border-left: 4px solid var(--hfd-gold);
	padding: 1.25rem 1.5rem;
	border-radius: 0 var(--hfd-radius) var(--hfd-radius) 0;
}
.hfd-callout > :last-child { margin-bottom: 0; }
.hfd-callout--quiet { background: var(--hfd-sand); border-left-color: var(--hfd-line); }

/* Datenblock (Laufzeit, Budget …) */
.hfd-factlist {
	list-style: none;
	padding: 0;
	margin: 0 0 2rem;
	display: grid;
	gap: 1px;
	background: var(--hfd-line);
	border: 1px solid var(--hfd-line);
	border-radius: var(--hfd-radius);
	overflow: hidden;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.hfd-factlist li { margin: 0; background: var(--hfd-paper); padding: 1rem 1.15rem; }
.hfd-factlist dt, .hfd-factlist .hfd-factlist__label {
	display: block;
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--hfd-ink-soft);
	margin-bottom: .3rem;
}
.hfd-factlist .hfd-factlist__value { font-weight: 700; font-size: 1.02rem; }

/* Kennzahlen */
.hfd-stats {
	list-style: none; padding: 0; margin: 0;
	display: grid; gap: 1.5rem;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	text-align: center;
}
.hfd-stats li { margin: 0; }
.hfd-stats__num { display: block; font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; line-height: 1; color: var(--hfd-gold-dark); }
.hfd-stats__label { display: block; margin-top: .5rem; font-size: .95rem; color: var(--hfd-ink-soft); }

/* =========================================================================
   9. Karten
   ========================================================================= */
.hfd-grid { display: grid; gap: 1.75rem; }
.hfd-grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.hfd-grid--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.hfd-grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.hfd-card {
	display: flex;
	flex-direction: column;
	background: var(--hfd-paper);
	border: 1px solid var(--hfd-line);
	border-radius: var(--hfd-radius);
	overflow: hidden;
	transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.hfd-card:hover { box-shadow: var(--hfd-shadow); transform: translateY(-2px); border-color: #d3cfc2; }
.hfd-card__media { aspect-ratio: 16 / 10; background: var(--hfd-sand); overflow: hidden; }
.hfd-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hfd-card:hover .hfd-card__media img { transform: scale(1.04); }
.hfd-card__body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.hfd-card__eyebrow {
	font-size: .74rem; font-weight: 700; letter-spacing: .12em;
	text-transform: uppercase; color: var(--hfd-gold-dark); margin-bottom: .5rem;
}
.hfd-card__title { font-size: 1.2rem; margin-bottom: .5rem; }
.hfd-card__title a { text-decoration: none; }
.hfd-card__title a::after { content: ""; position: absolute; inset: 0; }
.hfd-card { position: relative; }
.hfd-card__text { color: var(--hfd-ink-soft); font-size: .965rem; margin: 0 0 1rem; }
.hfd-card__more {
	margin-top: auto;
	font-weight: 700; font-size: .9rem;
	color: var(--hfd-gold-dark);
	display: inline-flex; align-items: center; gap: .4rem;
}
.hfd-card__more::after { content: "→"; transition: transform .18s ease; }
.hfd-card:hover .hfd-card__more::after { transform: translateX(3px); }

/* =========================================================================
   10. Beiträge / Nachrichten
   ========================================================================= */
.hfd-postmeta {
	display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem;
	font-size: .875rem; color: var(--hfd-ink-soft); margin-bottom: 1.25rem;
}
.hfd-postmeta time { font-variant-numeric: tabular-nums; }
.hfd-cat {
	display: inline-block;
	font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
	background: var(--hfd-gold-soft);
	border: 1px solid #f0e0a5;
	color: #7a5f00;
	padding: .22rem .6rem;
	border-radius: 999px;
	text-decoration: none;
}
.hfd-cat:hover { background: var(--hfd-gold); color: var(--hfd-ink); }

/* Quellenangabe für kuratierte Sudan-Meldungen */
.hfd-source {
	display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
	margin-top: 2rem; padding: .9rem 1.15rem;
	background: var(--hfd-sand);
	border-left: 4px solid var(--hfd-gold);
	font-size: .92rem;
}
.hfd-source__label { font-weight: 700; }
.hfd-source a { word-break: break-word; }

/* Filterleiste der Nachrichten */
.hfd-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.hfd-filter a {
	display: inline-block;
	padding: .45rem 1rem;
	font-size: .9rem; font-weight: 600;
	text-decoration: none;
	border: 1px solid var(--hfd-line);
	border-radius: 999px;
	background: var(--hfd-paper);
	color: var(--hfd-ink-soft);
}
.hfd-filter a:hover { border-color: var(--hfd-gold); color: var(--hfd-ink); }
.hfd-filter a.is-active { background: var(--hfd-ink); border-color: var(--hfd-ink); color: #fff; }

/* Beitragsnavigation */
.hfd-pagination { margin-top: var(--hfd-step); }
.hfd-pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.hfd-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 2.6rem; height: 2.6rem; padding: 0 .7rem;
	border: 1px solid var(--hfd-line); border-radius: var(--hfd-radius);
	text-decoration: none; font-weight: 600; font-size: .95rem;
}
.hfd-pagination .page-numbers:hover { border-color: var(--hfd-gold); }
.hfd-pagination .page-numbers.current { background: var(--hfd-gold); border-color: var(--hfd-gold); }

.hfd-postnav { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: var(--hfd-step); }
.hfd-postnav a {
	display: block; padding: 1.1rem 1.25rem;
	border: 1px solid var(--hfd-line); border-radius: var(--hfd-radius);
	text-decoration: none;
}
.hfd-postnav a:hover { border-color: var(--hfd-gold); background: var(--hfd-sand); }
.hfd-postnav__label { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--hfd-ink-soft); margin-bottom: .3rem; }
.hfd-postnav__title { font-weight: 700; }
.hfd-postnav__next { text-align: right; }

/* =========================================================================
   11. Galerien + Leuchtkasten
   ========================================================================= */
.hfd-gallery {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	margin: 2rem 0;
	padding: 0;
	list-style: none;
}
.hfd-gallery--lg { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.hfd-gallery li { margin: 0; }
.hfd-gallery__item {
	display: block;
	position: relative;
	width: 100%;
	padding: 0;
	border: 0;
	background: var(--hfd-sand);
	border-radius: var(--hfd-radius);
	overflow: hidden;
	cursor: zoom-in;
	aspect-ratio: 4 / 3;
}
.hfd-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, filter .25s ease; }
.hfd-gallery__item:hover img { transform: scale(1.05); }
.hfd-gallery__caption {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: 2rem .8rem .6rem;
	font-size: .82rem; line-height: 1.35; color: #fff; text-align: left;
	background: linear-gradient(transparent, rgba(20,20,18,.85));
	opacity: 0; transition: opacity .2s ease;
}
.hfd-gallery__item:hover .hfd-gallery__caption,
.hfd-gallery__item:focus-visible .hfd-gallery__caption { opacity: 1; }

/* Dokumentseiten (Scans) etwas größer und vollständig sichtbar */
.hfd-docgrid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); margin: 1.75rem 0; }
.hfd-docgrid .hfd-gallery__item { aspect-ratio: 3 / 4; background: #fff; border: 1px solid var(--hfd-line); }
.hfd-docgrid .hfd-gallery__item img { object-fit: contain; }

.hfd-lightbox {
	position: fixed; inset: 0; z-index: 9999;
	display: none;
	align-items: center; justify-content: center;
	background: rgba(16, 16, 14, .94);
	padding: 2.5rem 1rem 4.5rem;
}
.hfd-lightbox.is-open { display: flex; }
.hfd-lightbox__img { max-width: min(1200px, 96vw); max-height: 82vh; width: auto; object-fit: contain; border-radius: 2px; }
.hfd-lightbox__caption {
	position: absolute; left: 50%; bottom: 1.75rem; transform: translateX(-50%);
	width: min(760px, 92vw); text-align: center;
	color: #f2f0ea; font-size: .95rem; line-height: 1.45;
}
.hfd-lightbox__count { display: block; margin-top: .3rem; font-size: .8rem; color: rgba(255,255,255,.55); font-variant-numeric: tabular-nums; }
.hfd-lightbox__btn {
	position: absolute;
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.25);
	color: #fff;
	width: 46px; height: 46px;
	border-radius: 50%;
	font-size: 1.35rem; line-height: 1;
	cursor: pointer;
	display: flex; align-items: center; justify-content: center;
}
.hfd-lightbox__btn:hover { background: var(--hfd-gold); border-color: var(--hfd-gold); color: var(--hfd-ink); }
.hfd-lightbox__prev { left: max(1rem, 3vw); top: 50%; transform: translateY(-50%); }
.hfd-lightbox__next { right: max(1rem, 3vw); top: 50%; transform: translateY(-50%); }
.hfd-lightbox__close { top: 1rem; right: max(1rem, 3vw); font-size: 1.6rem; }

/* =========================================================================
   12. Formulare
   ========================================================================= */
.hfd-form { max-width: 640px; }
.hfd-form__row { margin-bottom: 1.15rem; }
.hfd-form label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: .35rem; }
.hfd-form .hfd-req { color: #b3261e; }
.hfd-form input[type="text"],
.hfd-form input[type="email"],
.hfd-form input[type="tel"],
.hfd-form input[type="search"],
.hfd-form textarea,
.hfd-form select,
.search-field {
	width: 100%;
	padding: .7rem .85rem;
	font: inherit;
	font-size: 1rem;
	color: var(--hfd-ink);
	background: var(--hfd-paper);
	border: 1px solid #c9c5b8;
	border-radius: var(--hfd-radius);
}
.hfd-form textarea { min-height: 170px; resize: vertical; }
.hfd-form input:focus, .hfd-form textarea:focus, .hfd-form select:focus {
	border-color: var(--hfd-gold); outline: 2px solid var(--hfd-gold-soft); outline-offset: 0;
}
.hfd-form__consent { display: flex; gap: .65rem; align-items: flex-start; font-size: .9rem; line-height: 1.5; }
.hfd-form__consent input { margin-top: .25rem; flex: 0 0 auto; }
.hfd-form__consent label { font-weight: 400; margin: 0; }
.hfd-form__hp { position: absolute; left: -9999px; }
.hfd-form__note { font-size: .85rem; color: var(--hfd-ink-soft); }

.hfd-notice { padding: 1rem 1.25rem; border-radius: var(--hfd-radius); margin-bottom: 1.5rem; font-size: .95rem; }
.hfd-notice--ok { background: #eaf6e9; border-left: 4px solid #3f8f36; }
.hfd-notice--err { background: #fdeceb; border-left: 4px solid #b3261e; }
.hfd-notice > :last-child { margin-bottom: 0; }

/* Suche */
.hfd-searchform { display: flex; gap: .5rem; max-width: 520px; }
.hfd-searchform .search-field { flex: 1; }

/* =========================================================================
   13. Kontakt-/Spendenblöcke
   ========================================================================= */
.hfd-contactcard {
	border: 1px solid var(--hfd-line);
	border-top: 3px solid var(--hfd-gold);
	border-radius: var(--hfd-radius);
	padding: 1.5rem;
	background: var(--hfd-paper);
}
.hfd-contactcard h3 { margin-bottom: .75rem; font-size: 1.1rem; }
.hfd-contactcard p { margin-bottom: .5rem; }
.hfd-contactcard address { font-style: normal; line-height: 1.7; }

.hfd-bank {
	background: var(--hfd-ink);
	color: #fff;
	border-radius: var(--hfd-radius);
	padding: 1.6rem 1.75rem;
}
.hfd-bank h3 { color: #fff; margin-bottom: 1rem; }
.hfd-bank dl { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.25rem; margin: 0; }
.hfd-bank dt { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); align-self: center; }
.hfd-bank dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.hfd-bank .hfd-bank__iban { font-size: 1.05rem; }

.hfd-downloads { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.hfd-downloads li { margin: 0; }
.hfd-downloads a {
	display: flex; align-items: center; gap: .8rem;
	padding: .85rem 1.1rem;
	border: 1px solid var(--hfd-line); border-radius: var(--hfd-radius);
	text-decoration: none; font-weight: 600;
	background: var(--hfd-paper);
}
.hfd-downloads a:hover { border-color: var(--hfd-gold); background: var(--hfd-sand); }
.hfd-downloads__ext { margin-left: auto; font-size: .75rem; letter-spacing: .1em; color: var(--hfd-ink-soft); }

/* =========================================================================
   14. Fußbereich
   ========================================================================= */
.hfd-cta-band {
	background: var(--hfd-sand);
	border-top: 1px solid var(--hfd-line);
	text-align: center;
	padding-block: var(--hfd-step);
}
.hfd-cta-band h2 { max-width: 22ch; margin-inline: auto; }
.hfd-cta-band p { max-width: 56ch; margin-inline: auto; color: var(--hfd-ink-soft); }
.hfd-cta-band__actions { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; margin-top: 1.75rem; }

.hfd-footer { background: var(--hfd-gold); color: var(--hfd-ink); padding-block: clamp(2.5rem, 4vw, 3.5rem); }
.hfd-footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.hfd-footer h2, .hfd-footer h3 {
	font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
	margin-bottom: .9rem; color: rgba(26,26,24,.72);
}
.hfd-footer a { color: var(--hfd-ink); text-decoration: none; }
.hfd-footer a:hover, .hfd-footer a:focus-visible { text-decoration: underline; text-decoration-thickness: 2px; color: var(--hfd-ink); }
.hfd-footer ul { list-style: none; padding: 0; margin: 0; }
.hfd-footer li { margin-bottom: .45rem; }
.hfd-footer address { font-style: normal; line-height: 1.7; }
/* Rundes Signet — dieselbe Form wie das Website-Icon — auf dem goldenen Grund. */
.hfd-footer__logo img {
	width: 132px; height: 132px;
	border-radius: 50%;
	background: #fff;
	margin-bottom: 1rem;
	box-shadow: 0 0 0 1px rgba(26,26,24,.12);
}
.hfd-footer__tagline { font-weight: 700; letter-spacing: .04em; }
.hfd-footer__iban { font-variant-numeric: tabular-nums; font-weight: 700; }

.hfd-colophon {
	background: var(--hfd-slate);
	color: rgba(255,255,255,.72);
	font-size: .86rem;
	padding-block: 1.1rem;
}
.hfd-colophon__inner { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; justify-content: space-between; }
.hfd-colophon a { color: rgba(255,255,255,.9); text-decoration: none; }
.hfd-colophon a:hover { color: var(--hfd-gold); text-decoration: underline; }
.hfd-colophon ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0; padding: 0; }
.hfd-colophon li { margin: 0; }

/* =========================================================================
   15. WordPress-Standardklassen
   ========================================================================= */
.alignleft { float: left; margin: .35rem 1.75rem 1.25rem 0; max-width: 45%; }
.alignright { float: right; margin: .35rem 0 1.25rem 1.75rem; max-width: 45%; }
.aligncenter { margin-inline: auto; }
.alignwide { width: min(100%, 1160px); margin-inline: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .875rem; color: var(--hfd-ink-soft); margin-top: .5rem; }
.sticky .hfd-card { border-color: var(--hfd-gold); }
.wp-block-image { margin-bottom: 1.5rem; }
.wp-block-table table { width: 100%; border-collapse: collapse; }
.wp-block-table th, .wp-block-table td { border: 1px solid var(--hfd-line); padding: .6rem .8rem; text-align: left; }
.wp-block-table th { background: var(--hfd-sand); }

@media (max-width: 640px) {
	.alignleft, .alignright { float: none; margin: 1rem 0; max-width: 100%; }
}

/* =========================================================================
   16. Druckausgabe
   ========================================================================= */
@media print {
	.hfd-header, .hfd-footer, .hfd-colophon, .hfd-cta-band,
	.hfd-burger, .hfd-lightbox, .hfd-pagination, .hfd-postnav, .hfd-filter { display: none !important; }
	body { font-size: 11pt; color: #000; }
	.hfd-hero { background: none; color: #000; }
	.hfd-hero__media { display: none; }
	.hfd-hero h1, .hfd-hero__lead { color: #000; }
	a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
	.hfd-wrap { width: 100%; }
}
