/*
Theme Name: WikiFitness (Kadence Child)
Theme URI: https://wikifitness.de
Description: Kadence-Child-Theme fuer WikiFitness – Umsetzung der WikiFitness Corporate Identity 1.0 (Anthrazit/Weiss/Tuerkis).
Author: Brand2Fit
Template: kadence
Version: 3.6.0+05318be
Text Domain: wikifitness-child
*/

/* ==========================================================================
   1. Design Tokens (WikiFitness CI 1.0)
   ========================================================================== */

:root {
	--wf-anthracite: #23282C;
	--wf-bg: #FFFFFF;
	--wf-bg-subtle: #F3F5F6;
	--wf-text: #23282C;
	--wf-text-muted: #6B747B;
	--wf-border: #DCE1E4;
	--wf-accent: #00A995;
	--wf-accent-hover: #008B7A;
	/* CI-Vorgabe: Text auf tuerkisfarbenen Flaechen IMMER in Anthrazit, nicht Weiss. */
	--wf-on-accent: #23282C;
	--wf-content-width: 720px;
	--wf-radius: 14px;
	--wf-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	/* Einzige Stellschraube fuer die einheitliche Bildsprache der Kategorie-
	   kacheln: 0 = kein Anthrazit-Schleier (nur das Originalfoto), 1 = volle
	   Deckung. Zusammen mit der Entsaettigung in .wf-category-tile img sorgt
	   das dafuer, dass alle sechs Kacheln trotz unterschiedlicher Pexels-
	   Fotos wie eine zusammengehoerige Bildserie wirken. */
	--wf-tile-tint-strength: 0.45;
}

/* ==========================================================================
   2. Selbst gehostete Schrift (Inter) – bewusst kein Google-Fonts-CDN,
      um keine IP-Adressen der Besucher an Google zu uebertragen (DSGVO).
      Variable Font, Gewichte 400–800 in einer Datei je Zeichensatz.
   ========================================================================== */

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url('assets/fonts/inter-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
		U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url('assets/fonts/inter-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
		U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   3. Basistypografie
      CI: Fliesstext Inter Regular 400 / 17px / Zeilenhoehe 1,6.
      Ueberschriften (Seiten-/Abschnittstitel) Bold 700, Zwischenueber-
      schriften und Navigation SemiBold 600.
   ========================================================================== */

body {
	background-color: var(--wf-bg) !important;
	color: var(--wf-text) !important;
	font-family: var(--wf-font) !important;
	font-size: 17px;
	line-height: 1.6;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
}

h1, h2 {
	font-family: var(--wf-font) !important;
	font-weight: 700 !important;
	letter-spacing: -0.01em;
	color: var(--wf-text);
}

h3, h4, h5, h6 {
	font-family: var(--wf-font) !important;
	font-weight: 600 !important;
	letter-spacing: -0.01em;
	color: var(--wf-text);
}

a {
	color: var(--wf-accent);
	transition: color 0.15s ease;
}

a:hover,
a:focus {
	color: var(--wf-accent-hover);
}

::selection {
	background-color: var(--wf-accent);
	color: var(--wf-on-accent);
}

/* Buttons durchgaengig in Akzentfarbe; Text laut CI in Anthrazit statt Weiss */
.button,
button:not(.wf-footer-bar__social a),
input[type='submit'],
input[type='button'],
.wp-block-button__link {
	background-color: var(--wf-accent) !important;
	border-color: var(--wf-accent) !important;
	color: var(--wf-on-accent) !important;
	border-radius: 8px !important;
	font-weight: 600 !important;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.button:hover,
button:hover,
input[type='submit']:hover,
input[type='button']:hover,
.wp-block-button__link:hover {
	background-color: var(--wf-accent-hover) !important;
	border-color: var(--wf-accent-hover) !important;
}

/* ==========================================================================
   4. Header & natives Footer – Anthrazit
   ========================================================================== */

.site-header,
header.site-header,
#masthead {
	background-color: var(--wf-anthracite) !important;
	border-color: rgba(255, 255, 255, 0.08) !important;
}

.site-header a,
.main-navigation a,
.site-header .site-description {
	color: #ffffff !important;
}

/* Der Text-Schriftzug (Site-Title) soll im Header NICHT sichtbar sein,
   sobald dort ein Logo steht - unabhaengig von Kadences eigener
   Titelanzeige-Einstellung im Customizer, die dafuer offenbar nicht greift.
   Per Diagnose (dump-header-branding.yml) bestaetigtes tatsaechliches Markup:
     <a class="brand has-logo-image" rel="home">
       <img class="custom-logo" ...>
       <div class="site-title-wrap"><p class="site-title">WikiFitness</p></div>
     </a>
   Rein visuelles CSS-display:none, KEIN Umschreiben des HTML - der Titel
   bleibt fuer SEO/Screenreader/<title>-Tag unangetastet, das steuert
   WordPress unabhaengig vom Header-Markup. Bewusst ungescopt (nicht nur
   ".site-header .site-title") und zusaetzlich ueber Kadences eigenen
   Selektor ".site-branding .site-title", damit die Regel unabhaengig von
   der genauen Verschachtelungstiefe/dem genauen Wrapper sicher greift. */
.site-title-wrap,
.site-title,
.site-branding .site-title,
.brand .site-title-wrap {
	display: none !important;
}

.main-navigation a {
	font-weight: 600 !important;
	transition: color 0.15s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
	color: var(--wf-accent) !important;
}

/* Logo-Groessenregel vorerst entfernt: die Output-Filter-Loesung, die das
   Text-Markup im Header durch das SVG ersetzt hat, wurde zurueckgenommen
   (siehe functions.php). Naechster Anlauf ueber Custom-Logo oder einen
   sauberen Template-Hook. */

/* Natives Kadence-Footer (Theme-Credit/"Powered by") komplett ausgeblendet -
   zusaetzlich zur Entfernung auf Inhaltsebene (siehe functions.php). Die
   eigene wf-footer-bar (siehe Abschnitt 8, ausgegeben ueber wp_footer) ist
   der alleinige, vollstaendig selbst kontrollierte Footer mit Impressum/
   Datenschutz/Kontakt und Copyright-Zeile. */
.site-footer,
footer.site-footer,
#colophon {
	display: none !important;
}

/* ==========================================================================
   5. Startseite – Hero, Kategorie-Kacheln, Ueber-Bloecke
   ========================================================================== */

.wf-front {
	overflow-x: hidden;
}

.wf-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: clamp(22rem, 55vh, 36rem);
	padding: 2rem 1.5rem;
	overflow: hidden;
	text-align: center;
	/* Ruhiger Anthrazit-Grund mit einem weichen, HELLGRAUEN Lichtkreis (kein
	   Tuerkis) - Tuerkis ist die Akzentfarbe und soll als Button heraus-
	   stechen, nicht die Flaeche fuellen. Der Glanzpunkt wandert sehr
	   langsam (26s) und bleibt dezent (0.3 Deckkraft), er soll die Flaeche
	   beleben, nicht vom Suchfeld ablenken. */
	background-color: var(--wf-anthracite);
	background-image: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, transparent 62%);
	background-size: 180% 180%;
	animation: wf-hero-glow 26s ease-in-out infinite alternate;
}

@keyframes wf-hero-glow {
	0% {
		background-position: 15% 25%;
	}
	100% {
		background-position: 85% 75%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wf-hero {
		animation: none;
		background-position: 35% 40%;
	}
}

.wf-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 720px;
	margin: 0 auto;
}

.wf-hero__title {
	color: #fff !important;
	font-size: clamp(1.6rem, 3.6vw, 2.25rem);
	font-weight: 800 !important;
	line-height: 1.2;
	margin: 0 0 0.75rem;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.wf-hero__tagline {
	color: rgba(255, 255, 255, 0.9);
	font-size: 1.05rem;
	line-height: 1.5;
	max-width: 560px;
	margin: 0 auto 1.5rem;
}

.wf-hero__search {
	display: flex;
	gap: 0.6rem;
	max-width: 480px;
	margin: 0 auto;
}

.wf-hero__search input[type='search'] {
	flex: 1;
	padding: 0.85rem 1.1rem;
	border: 1px solid var(--wf-border);
	border-radius: 999px;
	font-size: 1rem;
	font-family: var(--wf-font);
	background-color: var(--wf-bg);
	color: var(--wf-text);
	transition: border-color 0.15s ease;
}

.wf-hero__search input[type='search']:focus {
	outline: none;
	border-color: var(--wf-accent);
}

.wf-hero__search button {
	border-radius: 999px !important;
	padding: 0 1.6rem !important;
	white-space: nowrap;
	/* Seit der Glanzpunkt grau statt tuerkis ist (kein Farbton mehr, nur
	   Helligkeit), steht der site-weite tuerkise Button wieder klar vom
	   Hintergrund ab, unabhaengig von der Animationsposition - siehe
	   Kontrast-Test (Playwright-Screenshot) in der Commit-Beschreibung.
	   Erbt daher wieder background-color/color von der globalen
	   .button-Regel statt eines eigenen Weiss-Overrides. */
}

.wf-section {
	padding: 3rem 1.5rem;
}

/* Erste Sektion direkt nach dem Hero bekommt weniger Abstand nach oben,
   damit die Kategorie-Kacheln beim Laden schon angeschnitten sichtbar
   sind, statt komplett unterhalb des ersten Bildschirms zu liegen. */
.wf-hero + .wf-section {
	padding-top: 1.25rem;
}

/* Zwei direkt aufeinanderfolgende Sektionen sollen sich NICHT ihre volle
   Innenabstaende addieren (sonst bis zu 6-7rem toter Raum dazwischen,
   wirkt leer) - die jeweils zweite Sektion bekommt einen deutlich
   reduzierten oberen Abstand. Gilt einheitlich fuer alle Sektions-
   uebergaenge der Startseite (Kategorien -> hervorgehobener Artikel ->
   "Neu auf WikiFitness" -> "So entstehen unsere Inhalte"). */
.wf-section + .wf-section {
	padding-top: 1.5rem;
}

.wf-section--subtle {
	background-color: var(--wf-bg-subtle);
}

.wf-section__header {
	max-width: 720px;
	margin: 0 auto 1.5rem;
	text-align: center;
}

.wf-section__header h2 {
	font-size: clamp(1.5rem, 3.2vw, 2rem);
	margin: 0;
}

.wf-section__hint {
	color: var(--wf-text-muted);
	font-size: 0.85rem;
	margin: 0.6rem 0 0;
}

.wf-category-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
	max-width: 1200px;
	margin: 0 auto;
}

.wf-category-tile {
	position: relative;
	display: flex;
	align-items: flex-end;
	aspect-ratio: 4 / 3;
	border-radius: var(--wf-radius);
	overflow: hidden;
	background-color: var(--wf-anthracite);
	text-decoration: none !important;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.wf-category-tile:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(35, 40, 44, 0.18);
}

.wf-category-tile img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Leichte Entsaettigung, damit unterschiedliche Licht-/Farbstimmungen der
	   einzelnen Pexels-Fotos nicht mehr als Stockfoto-Sammelsurium wirken. */
	filter: saturate(0.55) contrast(1.03);
}

.wf-category-tile::after {
	content: '';
	position: absolute;
	inset: 0;
	/* Bodennaher Verlauf fuer die Textlesbarkeit plus ein durchgehender,
	   halbtransparenter Anthrazit-Schleier ueber der gesamten Kachel (Staerke
	   ueber --wf-tile-tint-strength in :root einstellbar) - erst das erzeugt
	   die einheitliche Bildsprache ueber alle sechs Kacheln hinweg. */
	background:
		linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 55%),
		rgba(35, 40, 44, var(--wf-tile-tint-strength));
}

.wf-category-tile__title {
	position: relative;
	z-index: 1;
	color: #fff !important;
	font-weight: 700;
	font-size: 1.05rem;
	padding: 1.1rem 1.2rem;
	transition: color 0.15s ease;
}

.wf-category-tile:hover .wf-category-tile__title {
	color: var(--wf-accent) !important;
}

/* Hervorgehobener Vollbreite-Artikel zwischen Kategorie-Kacheln und "Neu
   auf WikiFitness" - grossflaechiger als eine normale Card, damit die
   Startseite weniger listenartig wirkt (Nutzer-Vorgabe). Der obere
   Abstand kommt von der allgemeinen .wf-section + .wf-section-Regel. */
.wf-highlight {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 0;
	max-width: 1200px;
	margin: 0 auto;
	background-color: var(--wf-bg-subtle);
	border-radius: var(--wf-radius);
	overflow: hidden;
}

.wf-highlight--no-image {
	grid-template-columns: 1fr;
}

/* Wichtig: .wf-highlight/.wf-card setzen selbst "display", das wuerde ohne
   diese Regel das native hidden-Attribut ueberstimmen (gleiche Spezifitaet,
   aber Autoren- vor User-Agent-Herkunft in der Kaskade) - betrifft sowohl
   die Server-seitige No-JS-Vorauswahl als auch hero-rotate.js. */
.wf-highlight[hidden],
.wf-card[hidden] {
	display: none;
}

.wf-highlight__image {
	display: block;
	position: relative;
	min-height: 320px;
}

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

.wf-highlight__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: 2.5rem;
}

.wf-highlight__title {
	font-size: clamp(1.4rem, 2.6vw, 1.85rem);
	line-height: 1.25;
	margin: 0.6rem 0 0.75rem;
}

.wf-highlight__title a {
	color: var(--wf-text) !important;
}

.wf-highlight__title a:hover {
	color: var(--wf-accent) !important;
}

.wf-highlight__excerpt {
	color: var(--wf-text-muted);
	font-size: 1rem;
	line-height: 1.6;
	margin: 0 0 1.5rem;
}

.wf-highlight__link {
	display: inline-flex;
	align-items: center;
	color: var(--wf-on-accent) !important;
	background-color: var(--wf-accent);
	font-weight: 600;
	padding: 0.7rem 1.4rem;
	border-radius: 999px;
	text-decoration: none !important;
	transition: background-color 0.15s ease;
}

.wf-highlight__link:hover {
	background-color: var(--wf-accent-hover);
}

.wf-about-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2.5rem;
	max-width: 1200px;
	margin: 0 auto;
	text-align: center;
}

.wf-about-item h3 {
	font-size: 1.15rem;
	margin: 0.6rem 0 0.6rem;
}

.wf-about-item p {
	color: var(--wf-text-muted);
	line-height: 1.6;
	margin: 0;
}

.wf-about-item__number {
	display: inline-block;
	font-size: 0.85rem;
	font-weight: 800;
	color: var(--wf-accent);
	letter-spacing: 0.04em;
}

/* ==========================================================================
   6. Artikel-Uebersicht: Card-Layout (Archiv, Kategorie, Startseite)
   ========================================================================== */

.wf-archive {
	padding: 0 1.5rem;
}

.wf-archive__header {
	max-width: 1200px;
	margin: 3.5rem auto 2.5rem;
	text-align: center;
}

.wf-archive__title {
	font-size: clamp(1.8rem, 4vw, 2.4rem);
	font-weight: 800 !important;
	margin: 0 0 0.75rem;
}

.wf-archive__description {
	color: var(--wf-text-muted);
	max-width: 65ch;
	margin-left: auto;
	margin-right: auto;
}

/* Kurzes "Anzeige"-Label unmittelbar unter dem Beitragstitel, siehe
   wikifitness_child_sponsor_notice(). Bewusst in der Akzentfarbe (Tuerkis)
   statt der dezenten Flaechenfarbe, damit das Label "gut sichtbar" ist
   (CI-Vorgabe); Text auf tuerkisfarbener Flaeche IMMER in Anthrazit statt
   Weiss (siehe --wf-on-accent). font-size: inherit haelt die Schrift auf
   Hoehe des Fliesstexts (17px bzw. 16px mobil, siehe body/.wf-article__content). */
.wf-anzeige-label {
	display: inline-block;
	background-color: var(--wf-accent);
	color: var(--wf-on-accent);
	border-radius: 8px;
	padding: 0.4rem 1rem;
	margin: 0 0 1.5rem;
	font-family: var(--wf-font);
	font-size: inherit;
	font-weight: 700;
	line-height: 1.3;
}

/* Transparenzhinweis am Ende eines Anzeige-Beitrags (nach dem letzten
   Abschnitt, vor dem Footer), siehe wikifitness_child_transparenzhinweis()
   und single.php. Dezent gestaltet (CI-Vorgabe: Hintergrund #F3F5F6,
   Text #6B747B, Inter) - bewusst als eigene, von .wf-anzeige-label
   unterschiedene Komponente, da an anderer Position/mit anderem Zweck. */
.wf-transparenzhinweis {
	background: var(--wf-bg-subtle);
	border-radius: var(--wf-radius);
	padding: 1rem 1.25rem;
	margin: 2.5rem 0 0;
	font-family: var(--wf-font);
	font-size: 0.85rem;
	font-weight: 500;
	line-height: 1.5;
	color: var(--wf-text-muted);
}

/* "Das koennte dich auch interessieren" (SEO-Umsetzung Teil D) - am Ende
   jedes Einzelartikels, nach Inhalt/Hinweistext und ggf. Transparenzhinweis
   (siehe single.php). Nutzt bewusst dieselbe .wf-card-grid-Komponente wie
   die Startseite fuer ein einheitliches Erscheinungsbild; wird aber
   innerhalb der schmaleren .wf-article-Spalte (siehe --wf-content-width)
   dargestellt, deshalb auf 2 statt 3 Spalten begrenzt. */
.wf-related-posts {
	max-width: var(--wf-content-width);
	margin: 3rem auto 0;
	padding-top: 2.5rem;
	border-top: 1px solid var(--wf-border);
}

.wf-related-posts__heading {
	font-size: 1.4rem;
	margin: 0 0 1.5rem;
}

.wf-related-posts .wf-card-grid {
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
	max-width: none;
	margin: 0;
}

/* "Anzeige"-Label in Teasern/Karten - dezent, klar unterscheidbar vom
   bunten Kategorie-Badge (siehe wikifitness_child_anzeige_badge()). */
.wf-card__badges {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.wf-badge--anzeige {
	background-color: var(--wf-bg-subtle) !important;
	color: var(--wf-text-muted) !important;
	border: 1px solid var(--wf-border);
}

.wf-badge--anzeige:hover {
	background-color: var(--wf-bg-subtle) !important;
}

/* Uebersichtsseite "Alle Themen" (Shortcode [wf_alle_themen]). */
.wf-topics-overview {
	max-width: var(--wf-content-width);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

.wf-topics-group h2 {
	font-size: 1.3rem;
	font-weight: 800;
	margin: 0 0 0.75rem;
	display: flex;
	align-items: baseline;
	gap: 0.6rem;
	flex-wrap: wrap;
}

.wf-topics-group h2 a {
	color: var(--wf-text);
	text-decoration: none;
}

.wf-topics-group h2 a:hover {
	color: var(--wf-accent);
}

.wf-topics-count {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--wf-text-muted);
}

.wf-topics-sublist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.wf-topics-sublist li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.75rem;
	padding: 0.5rem 0.85rem;
	background: var(--wf-bg-subtle);
	border: 1px solid var(--wf-border);
	border-radius: 8px;
}

.wf-topics-sublist a {
	color: var(--wf-text);
	text-decoration: none;
	font-weight: 600;
}

.wf-topics-sublist a:hover {
	color: var(--wf-accent);
}

.wf-archive__empty {
	max-width: 1200px;
	margin: 2rem auto 4rem;
	color: var(--wf-text-muted);
}

/* Seite "Partner & Experten" (Shortcode [wf_partner_uebersicht], siehe
   wp-content/mu-plugins/wf-partners.php). */
.wf-partners {
	max-width: 1000px;
	margin: 2rem auto 4rem;
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

.wf-partners__group-title {
	font-size: 1.3rem;
	font-weight: 800;
	margin: 0 0 1.25rem;
}

.wf-partner-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.75rem;
}

.wf-partner-tile {
	display: flex;
	flex-direction: column;
	background-color: var(--wf-bg);
	border: 1px solid var(--wf-border);
	border-radius: var(--wf-radius);
	overflow: hidden;
}

.wf-partner-tile__image {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 10;
	background-color: var(--wf-bg-subtle);
}

.wf-partner-tile__image img {
	max-width: 70%;
	max-height: 70%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.wf-partner-tile__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
	padding: 1.25rem;
}

.wf-partner-tile__name {
	font-size: 1.05rem;
	margin: 0;
}

.wf-partner-tile__excerpt {
	color: var(--wf-text-muted);
	font-size: 0.92rem;
	line-height: 1.55;
	margin: 0;
}

.wf-partner-tile__link {
	margin-top: 0.25rem;
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--wf-accent-hover) !important;
	text-decoration: none !important;
}

.wf-partner-tile__link:hover {
	color: var(--wf-accent) !important;
	text-decoration: underline !important;
}

.wf-card-grid {
	display: grid;
	/* Feste statt fluider (auto-fill) Spaltenzahl: front-page.php begrenzt
	   die Anzahl gezeigter Artikel auf ein Vielfaches von 3 (siehe dort),
	   das ergibt nur mit einer festen Spaltenzahl zuverlaessig volle
	   Reihen statt einer angebrochenen letzten Reihe. */
	grid-template-columns: repeat(3, 1fr);
	gap: 2.25rem;
	max-width: 1200px;
	margin: 0 auto 3rem;
}

.wf-card {
	background-color: var(--wf-bg);
	border: 1px solid var(--wf-border);
	border-radius: var(--wf-radius);
	overflow: hidden;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
	display: flex;
	flex-direction: column;
}

.wf-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(35, 40, 44, 0.1);
}

.wf-card__image {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background-color: var(--wf-bg-subtle);
}

.wf-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.wf-card__body {
	padding: 1.25rem 1.4rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	flex: 1;
}

.wf-badge {
	align-self: flex-start;
	background-color: var(--wf-accent) !important;
	color: var(--wf-on-accent) !important;
	font-size: 0.72rem;
	font-weight: 700 !important;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 0.3rem 0.7rem;
	border-radius: 999px;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.wf-badge:hover {
	background-color: var(--wf-accent-hover) !important;
}

.wf-card__title {
	font-size: 1.15rem;
	font-weight: 700 !important;
	line-height: 1.3;
	margin: 0;
}

.wf-card__title a {
	color: var(--wf-text) !important;
	text-decoration: none;
}

.wf-card__title a:hover {
	color: var(--wf-accent) !important;
}

.wf-card__excerpt {
	color: var(--wf-text-muted);
	font-size: 0.95rem;
	line-height: 1.55;
	margin: 0;
}

/* Core-Pagination (the_posts_pagination) */
.pagination {
	max-width: 1200px;
	margin: 1rem auto 4rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.4rem;
	height: 2.4rem;
	padding: 0 0.6rem;
	border-radius: 8px;
	background-color: var(--wf-bg);
	border: 1px solid var(--wf-border);
	color: var(--wf-text);
	text-decoration: none;
	font-weight: 600;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
	background-color: var(--wf-accent);
	border-color: var(--wf-accent);
	color: var(--wf-on-accent);
}

/* ==========================================================================
   7. Einzelartikel
   ========================================================================== */

.wf-article {
	max-width: var(--wf-content-width);
	margin: 0 auto;
	padding: 3rem 1.5rem 5rem;
}

.wf-article__category {
	margin-bottom: 1rem;
}

.wf-article__title {
	font-size: clamp(1.9rem, 4vw, 2.6rem);
	font-weight: 800 !important;
	line-height: 1.15;
	margin: 0 0 1.25rem;
}

.wf-article__meta {
	color: var(--wf-text-muted);
	font-size: 0.9rem;
	margin-bottom: 2rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid var(--wf-border);
}

.wf-article__thumb {
	margin: 0 0 2.5rem;
	border-radius: var(--wf-radius);
	overflow: hidden;
}

.wf-article__thumb img {
	width: 100%;
	height: auto;
	display: block;
}

.wf-article__content {
	font-size: 17px;
	line-height: 1.6;
	color: var(--wf-text);
}

.wf-article__content h2 {
	font-size: 1.6rem;
	font-weight: 600 !important;
	margin: 2.75rem 0 1.1rem;
}

.wf-article__content h3 {
	font-size: 1.3rem;
	font-weight: 600 !important;
	margin: 2.25rem 0 1rem;
}

.wf-article__content p {
	margin: 0 0 1.5rem;
}

.wf-article__content img {
	border-radius: 10px;
	height: auto;
	max-width: 100%;
}

.wf-article__content a {
	text-decoration: underline;
}

.wf-article__content blockquote {
	border-left: 4px solid var(--wf-accent);
	margin: 2rem 0;
	padding: 0.5rem 0 0.5rem 1.5rem;
	font-style: italic;
	color: var(--wf-text-muted);
}

/* Ideen-Kachelraster (z. B. "So vielseitig kannst du Zero Sirup
   einsetzen") - 2 Spalten Desktop, 1 Spalte mobil, siehe
   create_vast_zero_syrup_post.py build_tile_grid(). Kachelhintergrund in
   Flaechengrau, Icon in Tuerkis, kein externes Bildmaterial (Inline-SVG). */
.wf-idea-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.25rem;
	margin: 1.5rem 0 2rem;
}

.wf-idea-tile {
	background: var(--wf-bg-subtle);
	border-radius: var(--wf-radius);
	padding: 1.5rem 1.5rem 1.75rem;
}

.wf-idea-tile__icon {
	display: inline-flex;
	width: 32px;
	height: 32px;
	max-width: 32px;
	max-height: 32px;
	flex-shrink: 0;
	color: var(--wf-accent);
	margin-bottom: 0.75rem;
}

/* Groesse zusaetzlich direkt am svg begrenzen (nicht nur am Wrapper-Span) -
   so bleibt das Icon auch dann klein, wenn aus irgendeinem Grund kein CSS
   zur Verfuegung steht (z. B. Seiten-Cache liefert eine alte style.css
   ohne diese Regeln aus); width/height-Attribute direkt am <svg> in
   create_vast_zero_syrup_post.py sind das eigentliche Fallback dafuer. */
.wf-idea-tile__icon svg {
	display: block;
	width: 32px;
	height: 32px;
	max-width: 100%;
	max-height: 100%;
}

.wf-idea-tile h4 {
	font-size: 1.05rem;
	font-weight: 700 !important;
	margin: 0 0 0.5rem;
}

.wf-idea-tile p {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.55;
}

/* Gut sichtbarer CTA-Button innerhalb der "Fuer Studios ..."-Kaesten
   (z. B. "Informationen anfordern") - Tuerkis-Flaeche, Text in Anthrazit
   (CI-Vorgabe: Text auf tuerkisfarbener Flaeche IMMER in Anthrazit statt
   Weiss, siehe --wf-on-accent). */
.wf-cta-button {
	display: inline-block;
	background-color: var(--wf-accent);
	color: var(--wf-on-accent) !important;
	font-weight: 700;
	text-decoration: none !important;
	padding: 0.75rem 1.5rem;
	border-radius: 8px;
	margin: 1rem 0;
}

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

@media (max-width: 640px) {
	.wf-idea-grid {
		grid-template-columns: 1fr;
	}
}

/* Bildnachweise-Liste ([wf_bildnachweise], siehe mu-plugins/wf-content-agent.php)
   - bewusst ohne Bindung an .wf-article__content, da Seiten (im Unterschied
   zu Artikeln) ueber Kadences eigenes Seiten-Template laufen. */
.wf-credits-list {
	list-style: none;
	margin: 1.5rem 0 0;
	padding: 0;
	font-size: 0.95rem;
	color: var(--wf-text-muted);
}

.wf-credits-list li {
	padding: 0.6rem 0;
	border-bottom: 1px solid var(--wf-border);
}

.wf-credits-list li:last-child {
	border-bottom: none;
}

.wf-credits-list a {
	color: var(--wf-text);
	text-decoration: underline;
}

/* ==========================================================================
   8. Zusaetzliche Footer-Leiste (Copyright + Social-Links + Rechtliches)
   ========================================================================== */

.wf-footer-bar {
	background-color: var(--wf-anthracite);
	color: #9AA0AC;
	padding: 1.75rem 1.5rem;
	text-align: center;
	font-size: 0.85rem;
}

.wf-footer-bar__social {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	justify-content: center;
	margin: 0 0 0.9rem;
	padding: 0;
}

.wf-footer-bar__social a {
	color: #C9CBD1 !important;
	text-decoration: none;
	font-weight: 600;
	transition: color 0.15s ease;
}

.wf-footer-bar__social a:hover {
	color: var(--wf-accent) !important;
}

.wf-footer-bar__legal {
	margin: 0 0 0.9rem;
}

.wf-footer-bar__legal a {
	color: #C9CBD1;
	text-decoration: none;
	transition: color 0.15s ease;
}

.wf-footer-bar__legal a:hover {
	color: var(--wf-accent);
}

.wf-footer-bar__copy {
	margin: 0;
}

/* ==========================================================================
   9. Responsive / Mobile-first Feinschliff
   ========================================================================== */

/* Basis (< 600px, Handy) ist bereits durch die obigen Regeln abgedeckt:
   Hero und Sektionen mit ausreichend Innenabstand. Ab hier folgen
   Erweiterungen fuer groessere Breiten statt Sonderregeln fuers Handy. */

@media (min-width: 600px) {
	.wf-hero {
		padding: 2.25rem 1.5rem 1.75rem;
	}

	.wf-section {
		padding: 3.5rem 1.5rem;
	}

	.wf-hero + .wf-section {
		padding-top: 1.5rem;
	}

	.wf-section + .wf-section {
		padding-top: 1.75rem;
	}
}

@media (max-width: 860px) {
	.wf-category-grid {
		grid-template-columns: repeat(2, 1fr);
	}

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

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

	.wf-highlight {
		grid-template-columns: 1fr;
	}

	.wf-highlight__image {
		min-height: 0;
		aspect-ratio: 16 / 9;
	}

	.wf-highlight__body {
		padding: 1.75rem;
	}
}

@media (max-width: 640px) {
	.wf-about-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.wf-hero__search {
		flex-direction: column;
	}

	.wf-hero__search button {
		padding: 0.85rem 1.6rem !important;
	}

	/* Aufmacher darf auf dem Handy deutlich weniger Hoehe einnehmen als auf
	   Desktop (dort ca. 50-60vh) - sonst braucht es dort mehrere Scrolls,
	   bevor ueberhaupt Inhalt kommt. */
	.wf-hero {
		min-height: 36vh;
		padding: 2.25rem 1.25rem;
	}
}

@media (max-width: 480px) {
	.wf-card-grid {
		grid-template-columns: 1fr;
	}

	.wf-related-posts .wf-card-grid {
		grid-template-columns: 1fr;
	}

	.wf-category-grid {
		grid-template-columns: 1fr;
	}

	.wf-partner-grid {
		grid-template-columns: 1fr;
	}

	.wf-article {
		padding: 2rem 1.25rem 3.5rem;
	}

	.wf-article__content {
		font-size: 16px;
	}
}

/* ==========================================================================
   10. Bewegungsreduktion (prefers-reduced-motion)
       Alle Uebergaenge/Transitions oben sind bewusst dezent (Farbwechsel,
       leichtes Anheben von Karten/Kacheln) - keine Scroll- oder
       Einblendeffekte. Wer reduzierte Bewegung eingestellt hat, bekommt sie
       hier zusaetzlich praktisch abgeschaltet.
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}
