/*
Theme Name: Nyeri
Description: Minimales, mobile-first Theme für Hilfe für Nyeri e.V. – angelehnt an das Ghost-Theme „Edition“.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: nyeri
*/

/* ==========================================================================
   Tokens
   ========================================================================== */

/* Mulish (variabel, Gewichte 200–1000) lokal eingebunden, keine Anfrage an Google. Lizenz: assets/fonts/OFL.txt */
@font-face {
	font-family: "Mulish";
	font-style: normal;
	font-weight: 200 1000;
	font-display: swap;
	src: url("assets/fonts/mulish-latin-wght-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Mulish";
	font-style: italic;
	font-weight: 200 1000;
	font-display: swap;
	src: url("assets/fonts/mulish-latin-wght-italic.woff2") format("woff2");
}

:root {
	--color-text: #15171a;
	--color-muted: #6b7076;
	--color-border: #e6e6e6;
	--color-bg: #ffffff;
	--color-bg-alt: #f6f6f4;
	--color-bg-warm: #f8f1ed; /* helles Grau mit leichtem Orange-Stich, passend zu --color-accent */
	--color-accent: #e8441c;
	--color-accent-hover: #c5360f;
	--color-accent-text: #ffffff;
	--color-dark: #2a2522;

	--font-sans: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--space-xs: 0.5rem;
	--space-s: 1rem;
	--space-m: 1.5rem;
	--space-l: 2.5rem;
	--space-xl: 4rem;

	--width-content: 720px;
	--width-wide: 1200px;
	--gutter: 1rem;
	--radius: 6px;
	--header-height: 64px;
}

/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

/* Dunkel wie Header und Footer: Safari färbt damit Statusleiste und Bereich unter der Adressleiste ein */
html {
	background: var(--color-dark);
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: var(--header-height);
}

body {
	margin: 0;
	background: var(--color-dark);
	color: var(--color-text);
	font-family: var(--font-sans);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img,
video,
iframe {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

h1, h2, h3, h4 {
	line-height: 1.2;
	letter-spacing: -0.015em;
	margin: 0 0 var(--space-s);
}

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

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: var(--space-s);
	top: -100px;
	z-index: 100;
	padding: var(--space-xs) var(--space-s);
	background: var(--color-text);
	color: var(--color-bg);
}

.skip-link:focus {
	top: var(--space-s);
}

/* ==========================================================================
   Layout
   ========================================================================== */

/* Footer sitzt auch bei wenig Inhalt (z. B. Kontakt, Impressum) am unteren Browserrand */
body {
	display: flex;
	flex-direction: column;
	min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
}

.site-main {
	flex: 1;
	overflow-x: clip;
	background: var(--color-bg);
}

.container {
	width: min(100% - 2 * var(--gutter), var(--width-content));
	margin-inline: auto;
}

.container--wide {
	width: min(100% - 2 * var(--gutter), var(--width-wide));
}

.section {
	padding-block: var(--space-l);
}

/* ==========================================================================
   Carousel (Startseite, Blog): horizontal wischbar, ohne sichtbare Scrollbar
   ========================================================================== */

.carousel {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 82%;
	gap: var(--space-m);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	/* bis an den Bildschirmrand, damit die nächste Karte angeschnitten sichtbar ist */
	margin-inline: calc(-1 * var(--gutter));
	padding-inline: var(--gutter);
	scroll-padding-inline: var(--gutter);
}

.carousel::-webkit-scrollbar {
	display: none;
}

.carousel > * {
	scroll-snap-align: start;
	min-width: 0;
}

/* Karten im Carousel als hellgraue Fläche, damit sie sich voneinander abheben */
.carousel .card {
	background: var(--color-bg-alt);
}

.carousel .card__media {
	background: var(--color-border);
}

.carousel .card__title {
	font-size: 1.125rem;
	margin: 0;
	padding: 0 var(--space-s) var(--space-m);
}

.section--about {
	background: var(--color-accent);
	color: #fff;
}

.section--about :focus-visible {
	outline-color: #fff;
}

/* Weiß auf der Akzentfarbe hat nur ~3:1 Kontrast – reicht laut WCAG nur für große/fette Schrift, daher 600 + ≥ 1.25rem */
.about {
	text-align: center;
	font-size: clamp(1.25rem, 2.5vw, 1.5rem);
	font-weight: 600;
	line-height: 1.5;
}

.about p {
	margin: 0 0 var(--space-l);
}

/* Zentrierte Überschrift + Text über einer Sektion (Startseite, Blog) */
.section-intro {
	max-width: var(--width-content);
	margin: 0 auto var(--space-l);
	text-align: center;
}

.section-intro__title {
	font-size: clamp(1.25rem, 2.5vw, 1.5rem);
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: normal;
	margin: 0 0 var(--space-xs);
}

.section-intro__text {
	margin: 0;
	color: var(--color-muted);
}

.section__cta {
	margin: var(--space-l) 0 0;
	text-align: center;
}

/* Beitragsübersicht: Titel + Einleitung aus der Seite „Blog“ */
.blog-header {
	max-width: var(--width-content);
	margin-bottom: var(--space-l);
}

.blog-header .page-title {
	margin-bottom: var(--space-s);
}

/* .entry-content-Kombination, damit diese Regeln die allgemeinen .entry-content-Regeln weiter unten überschreiben */
.blog-header__intro.entry-content {
	padding-bottom: 0;
	font-size: 1.125rem;
	color: var(--color-muted);
}

.blog-header__intro.entry-content > :first-child {
	margin-top: 0;
}

/* Beitragsarchiv (Seiten-Template „Post archive“): Jahr-Überschriften, Zeilen ohne Bild */
.archive-year + .archive-year {
	margin-top: var(--space-xl);
}

.archive-year__title {
	font-size: 1.5rem;
	font-weight: 800;
	margin-bottom: var(--space-s);
}

.archive-list {
	border-top: 1px solid var(--color-border);
}

.archive-item {
	position: relative;
	display: grid;
	grid-template-columns: 3rem 1fr;
	gap: var(--space-s);
	align-items: start;
	padding-block: var(--space-m);
	border-bottom: 1px solid var(--color-border);
}

.archive-item__date {
	display: flex;
	flex-direction: column;
	align-items: center;
	line-height: 1.1;
}

.archive-item__day {
	font-size: 1.5rem;
	font-weight: 700;
}

.archive-item__month {
	margin-top: 0.125rem;
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--color-muted);
}

.archive-item__title {
	font-size: 1.125rem;
	margin: 0 0 0.25rem;
}

.archive-item__link {
	text-decoration: none;
}

/* ganze Zeile klickbar */
.archive-item__link::after {
	content: "";
	position: absolute;
	inset: 0;
}

.archive-item:hover .archive-item__title {
	text-decoration: underline;
}

.archive-item__excerpt {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--color-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.archive-item__icon {
	display: none;
}

/* Highlights (Startseite, über „Über uns“) – mobil gestapelt, ab Tablet Bild | Text */
.section--highlights {
	background: var(--color-bg);
}

.highlight {
	display: grid;
	gap: var(--space-s);
}

.highlight + .highlight {
	margin-top: var(--space-xl);
}

.highlight:not(.highlight--with-image) {
	max-width: var(--width-content);
	margin-inline: auto;
	text-align: center;
}

.highlight__media {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--color-bg-alt);
}

.highlight__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Titel und Text wie .section-intro (z. B. „Neues aus Nyeri“) */
.highlight__title {
	font-size: clamp(1.25rem, 2.5vw, 1.5rem);
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: normal;
	margin-bottom: var(--space-xs);
}

.highlight__content {
	color: var(--color-muted);
}

.highlight__content p {
	margin: 0 0 var(--space-m);
}

/* Buttons aus dem Block-Editor im Theme-Stil */
.entry-content .wp-block-buttons {
	gap: var(--space-s);
}

.entry-content .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0.625rem 1.25rem;
	border-radius: var(--radius);
	background: var(--color-dark);
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
}

.entry-content .wp-block-button__link:hover {
	background: var(--color-text);
}

/* Spenden (Startseite, Anker #spenden) */
.section--donate {
	background: var(--color-bg-warm);
}

.bank-details {
	max-width: 26rem;
	margin: 0 auto;
	padding: var(--space-m);
	background: var(--color-bg);
	text-align: center;
}

.bank-details__title {
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--color-muted);
	margin-bottom: var(--space-xs);
}

.bank-details__lines {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.7;
	font-variant-numeric: tabular-nums;
}

/* Bleibt ohne Clipboard-Unterstützung per hidden verborgen, siehe copy-iban.js */
.bank-details__copy {
	margin-top: var(--space-s);
}

.bank-details__copy[hidden] {
	display: none;
}

.bank-details__girocode {
	margin: var(--space-m) 0 0;
}

.bank-details__girocode img {
	display: block;
	width: 10rem;
	height: auto;
	margin: 0 auto var(--space-xs);
}

.bank-details__girocode figcaption {
	font-size: 0.875rem;
	color: var(--color-muted);
}

.donate-note {
	margin: var(--space-m) 0 0;
	text-align: center;
	color: var(--color-muted);
	font-size: 0.9375rem;
}

.about__buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-s);
}

.page-title {
	font-size: 2rem;
	margin-bottom: var(--space-l);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.625rem 1.25rem;
	border-radius: var(--radius);
	background: var(--color-text);
	color: var(--color-bg);
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s ease;
}

.button--donate {
	background: var(--color-accent);
	color: var(--color-accent-text);
}

.button--donate:hover {
	background: var(--color-accent-hover);
}

.button--outline {
	background: transparent;
	color: var(--color-text);
	box-shadow: inset 0 0 0 1px currentColor;
}

.button--outline:hover {
	background: var(--color-bg-alt);
}

.button--light {
	background: #fff;
	color: var(--color-accent);
}

.button--light:hover {
	background: var(--color-bg-alt);
}

.button--small {
	min-height: 38px;
	padding: 0.4rem 0.9rem;
	font-size: 0.9375rem;
}

.button--large {
	min-height: 52px;
	padding: 0.875rem 2rem;
	font-size: 1.0625rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

/* Immer dunkel – außer über dem Titelbild: dort blendet der Hintergrund beim Scrollen schrittweise ein
   (--header-bg-opacity von 0 bis 1, siehe nav.js) */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--color-dark);
	color: #fff;
}

.with-full-cover .site-header {
	background: transparent;
}

.with-full-cover .site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--color-dark);
	opacity: var(--header-bg-opacity, 0);
}

.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 0);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: var(--space-s);
	min-height: var(--header-height);
}

.site-brand {
	flex: 1;
	min-width: 0;
}

.site-brand__name {
	font-weight: 700;
	font-size: 1.125rem;
	text-decoration: none;
}

.site-brand .custom-logo {
	max-height: 40px;
	width: auto;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: var(--space-xs);
}

.nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	/* Buttons erben die Schriftfarbe nicht automatisch – Balken nutzen currentColor */
	color: inherit;
	cursor: pointer;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
	display: block;
	width: 22px;
	height: 2px;
	background: currentColor;
	transition: transform 0.2s ease;
}

.nav-toggle__bar {
	position: relative;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle__bar::before { top: -7px; }
.nav-toggle__bar::after { top: 7px; }

.nav-open .nav-toggle__bar { background: transparent; }
.nav-open .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobil: Menü als Panel unter dem Header */
.site-nav {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--color-bg);
	border-bottom: 1px solid var(--color-border);
	padding: var(--space-xs) var(--gutter) var(--space-m);
	/* Panel bleibt hell, auch wenn der Header weiße Schrift hat */
	color: var(--color-text);
}

.nav-open .site-nav {
	display: block;
}

.site-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav__list a {
	display: block;
	padding: 0.75rem 0;
	font-size: 1.125rem;
	font-weight: 500;
	text-decoration: none;
}

.site-nav__list .current-menu-item > a {
	color: var(--color-accent);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
	padding-block: var(--space-xl) var(--space-l);
	text-align: center;
}

.hero__title {
	font-size: clamp(2.25rem, 9vw, 4.5rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	margin-bottom: var(--space-s);
}

.hero__tagline {
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-muted);
	margin: 0 0 var(--space-s);
}

.hero__description {
	font-size: 1.1875rem;
	color: var(--color-muted);
	max-width: 32em;
	margin: 0 auto var(--space-l);
}

/* Titelbild-Variante (Beitragsbild der Startseite), angelehnt an Edition */

html:has(.with-full-cover) {
	scroll-behavior: smooth;
}

/* Header liegt über dem Titelbild (fixed statt sticky, damit er keinen Platz einnimmt) */
.with-full-cover .site-header {
	position: fixed;
	left: 0;
	right: 0;
}

.hero--cover {
	position: relative;
	display: flex;
	align-items: end;
	min-height: 100vh;
	min-height: 100svh;
	/* unten Platz für den Pfeil */
	padding-block: calc(var(--header-height) + var(--space-l)) calc(var(--space-xl) + var(--space-m));
	overflow: hidden;
	color: #fff;
}

.hero--cover::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: #000;
	opacity: 0.35;
}

.hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__content {
	position: relative;
	z-index: 2;
}

.hero--cover .hero__tagline,
.hero--cover .hero__description {
	color: rgba(255, 255, 255, 0.9);
}

.hero--cover .hero__title {
	text-shadow: 0 1px 24px rgba(0, 0, 0, 0.25);
}

.hero__arrow {
	position: absolute;
	bottom: var(--space-m);
	left: 50%;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-left: -22px;
	color: #fff;
	animation: hero-arrow 2s ease-in-out infinite;
}

@keyframes hero-arrow {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(6px); }
}

/* ==========================================================================
   Cards (Im Fokus)
   ========================================================================== */

.card-grid {
	display: grid;
	gap: var(--space-l);
}

.card__link {
	display: block;
	text-decoration: none;
}

.card__media {
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--color-bg-alt);
	margin-bottom: var(--space-s);
}

.card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.card__link:hover .card__media img {
	transform: scale(1.03);
}

.card__title {
	font-size: 1.25rem;
	margin-bottom: var(--space-xs);
}

.post-meta {
	margin: 0;
	font-size: 0.875rem;
	color: var(--color-muted);
}

/* ==========================================================================
   Liste (Neueste Beiträge / Blog)
   ========================================================================== */

.post-list {
	display: grid;
}

.list-item {
	display: grid;
	gap: var(--space-s);
	padding-block: var(--space-m);
	border-bottom: 1px solid var(--color-border);
}

.list-item:first-child {
	padding-top: 0;
}

.list-item__media {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--color-bg-alt);
}

.list-item__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.list-item__title {
	font-size: 1.375rem;
	margin: var(--space-xs) 0;
}

.list-item__title a {
	text-decoration: none;
}

.list-item__title a:hover {
	text-decoration: underline;
}

.list-item__excerpt {
	margin: 0;
	color: var(--color-muted);
}

/* ==========================================================================
   Feed (Beitragsübersicht), angelehnt an Edition „Latest“
   ========================================================================== */

.feed {
	border-top: 1px solid var(--color-border);
}

/* Mobil: Bild | Titel + Auszug */
.feed-item {
	position: relative;
	display: grid;
	grid-template-columns: 6rem 1fr;
	gap: var(--space-s);
	align-items: start;
	padding-block: var(--space-m);
	border-bottom: 1px solid var(--color-border);
}

.feed-item__media {
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--color-bg-alt);
}

.feed-item__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.feed-item__title {
	font-size: 1.125rem;
	margin: 0 0 0.25rem;
}

.feed-item__link {
	text-decoration: none;
}

/* ganze Zeile klickbar */
.feed-item__link::after {
	content: "";
	position: absolute;
	inset: 0;
}

.feed-item:hover .feed-item__title {
	text-decoration: underline;
}

.feed-item__excerpt {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--color-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.feed-item__icon {
	display: none;
}

.feed-more {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-s);
	margin-top: var(--space-l);
}

.feed-more__button[aria-busy="true"] {
	opacity: 0.6;
	pointer-events: none;
}

/* Pagination */
.pagination {
	margin-top: var(--space-l);
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-xs);
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 0.75rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	text-decoration: none;
}

.pagination .page-numbers.current {
	background: var(--color-text);
	border-color: var(--color-text);
	color: var(--color-bg);
}

/* ==========================================================================
   Artikel & Seiten
   ========================================================================== */

.entry-header {
	padding-top: var(--space-l);
	margin-bottom: var(--space-l);
}

.entry-title {
	font-size: clamp(2rem, 7vw, 3.25rem);
	font-weight: 800;
	letter-spacing: -0.025em;
	margin-top: var(--space-xs);
}

.entry-lead {
	font-size: 1.25rem;
	color: var(--color-muted);
	margin: 0;
}

.entry-media {
	margin-block: 0 var(--space-l);
}

.entry-media img {
	width: 100%;
}

.entry-content {
	font-size: 1.1875rem;
	line-height: 1.7;
	padding-bottom: var(--space-l);
}

.entry-content > * + * {
	margin-top: var(--space-m);
}

/* Liste schließt direkt an den einleitenden Absatz an. Beide Abstände nötig, weil Margins kollabieren */
.entry-content.container > p:has(+ :is(ul, ol)) {
	margin-bottom: 0;
}

.entry-content.container > p + :is(ul, ol) {
	margin-top: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: var(--space-l);
}

.entry-content h2 { font-size: 1.75rem; }
.entry-content h3 { font-size: 1.375rem; }

.entry-content blockquote,
.entry-content .wp-block-quote {
	margin-inline: 0;
	padding-left: var(--space-m);
	border-left: 3px solid var(--color-accent);
	font-style: italic;
}

.entry-content figure {
	margin-inline: 0;
}
.entry-content figcaption,
.entry-content .wp-element-caption {
	font-size: 0.875rem;
	color: var(--color-muted);
	text-align: center;
	margin-top: var(--space-xs);
}

.entry-content .alignwide,
.entry-content .alignfull {
	width: min(100vw - 2 * var(--gutter), var(--width-wide));
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.entry-content .alignfull {
	width: 100vw;
}

.entry-content img {
	border-radius: var(--radius);
}

.entry-content .alignfull img {
	border-radius: 0;
}

/* Vorheriger / nächster Beitrag unter dem Artikel, zentriert untereinander */
.post-navigation {
	margin-bottom: var(--space-l);
}

.post-navigation .nav-links {
	display: grid;
	gap: var(--space-m);
	padding-top: var(--space-m);
	border-top: 1px solid var(--color-border);
	text-align: center;
}

.post-navigation a {
	display: block;
	text-decoration: none;
}

.post-navigation__label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--color-muted);
}

.post-navigation__title {
	display: block;
	font-weight: 700;
	line-height: 1.3;
}

.post-navigation a:hover .post-navigation__title {
	text-decoration: underline;
}

/* Spenden-CTA am Artikelende: volle Breite, gleicher Hintergrund wie die Spenden-Sektion der Startseite */
.donate-cta {
	padding-block: var(--space-xl);
	background: var(--color-bg-warm);
	text-align: center;
}

.donate-cta__title {
	font-size: 1.5rem;
}

.donate-cta__text {
	color: var(--color-muted);
	margin: 0 0 var(--space-m);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	padding-block: var(--space-l);
	font-size: 0.9375rem;
	font-weight: 600;
	background: var(--color-dark);
	color: #fff;
}

.site-footer :focus-visible {
	outline-color: #fff;
}

/* Menü zentriert */
.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: var(--space-xs) var(--space-m);
}

.site-footer__menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-xs) var(--space-m);
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer__menu a {
	text-decoration: none;
}

.site-footer__menu a:hover {
	text-decoration: underline;
}

/* ==========================================================================
   Tablet ≥ 48rem (768px)
   ========================================================================== */

@media (min-width: 48rem) {
	:root {
		--gutter: 2rem;
		--header-height: 72px;
	}

	.nav-toggle {
		display: none;
	}

	.site-nav {
		display: block;
		position: static;
		padding: 0;
		border: 0;
		background: none;
		color: inherit;
	}

	.site-nav__list {
		display: flex;
		gap: var(--space-m);
	}

	.site-nav__list a {
		padding: 0.25rem 0;
		font-size: 0.9375rem;
	}

	.site-nav__list a:hover {
		text-decoration: underline;
	}

	/* Header ist auf Desktop immer dunkel oder liegt über dem Titelbild */
	.site-nav__list .current-menu-item > a {
		color: inherit;
		text-decoration: underline;
	}

	.site-header__actions {
		margin-left: var(--space-s);
	}

	.section {
		padding-block: var(--space-xl);
	}

	.page-title {
		font-size: 2.75rem;
	}

	.card-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.carousel {
		grid-auto-columns: 42%;
	}

	.list-item {
		grid-template-columns: 240px 1fr;
		gap: var(--space-m);
		align-items: start;
	}

	.list-item:not(:has(.list-item__media)) {
		grid-template-columns: 1fr;
	}

	.archive-item {
		grid-template-columns: 3.5rem 1fr auto;
		gap: var(--space-m);
		align-items: center;
	}

	.archive-item__icon {
		display: block;
		color: var(--color-muted);
		transition: transform 0.15s ease;
	}

	.archive-item:hover .archive-item__icon {
		transform: translateX(3px);
	}

	/* Bild so breit wie eine Karte im Blog-Carousel (Tablet: 42 %) */
	/* Bild links über alle Zeilen; Titel + Text rechts, gemeinsam vertikal zentriert */
	.highlight--with-image {
		grid-template-columns: 42% 1fr;
		grid-template-rows: 1fr auto auto 1fr;
		grid-template-areas:
			"media ."
			"media title"
			"media content"
			"media .";
		column-gap: var(--space-l);
		row-gap: 0;
	}

	.highlight--with-image .highlight__media {
		grid-area: media;
		align-self: center;
	}

	.highlight--with-image .highlight__title {
		grid-area: title;
	}

	.highlight--with-image .highlight__content {
		grid-area: content;
	}

	/* Feed: Bild | Titel + Auszug | Pfeil */
	.feed-item {
		grid-template-columns: 160px 1fr auto;
		gap: var(--space-m);
		align-items: center;
	}

	.feed-item__media {
		aspect-ratio: 3 / 2;
	}

	.feed-item__title {
		font-size: 1.25rem;
	}

	.feed-item__icon {
		display: block;
		color: var(--color-muted);
		transition: transform 0.15s ease;
	}

	.feed-item:hover .feed-item__icon {
		transform: translateX(3px);
	}
}

/* ==========================================================================
   Desktop ≥ 64rem (1024px)
   ========================================================================== */

@media (min-width: 64rem) {
	.card-grid {
		grid-template-columns: repeat(4, 1fr);
		gap: var(--space-m);
	}

	/* max. 4 Beiträge: auf Desktop alle nebeneinander, kein Scrollen nötig */
	.carousel {
		grid-auto-columns: calc((100% - 3 * var(--space-m)) / 4);
	}

	/* Highlight-Bild so breit wie eine Carousel-Karte */
	.highlight--with-image {
		grid-template-columns: calc((100% - 3 * var(--space-m)) / 4) 1fr;
	}

	.card__title {
		font-size: 1.125rem;
	}

	.carousel .card__title {
		font-size: 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
		animation: none !important;
	}

	html:has(.with-full-cover),
	.carousel {
		scroll-behavior: auto;
	}
}
