/*
Theme Name: Grimoire
Theme URI: https://grimoire.tradebuttons.com
Description: Redaktionelles Magazin-Theme für Grimoire. Warme Creme-, Sand- und Erdtöne mit dezenten Goldakzenten, ruhig und hochwertig. Ohne externe Abhängigkeiten, ohne Tracker, ohne Page Builder.
Version: 2.0.0
Author: Grimoire
Text Domain: grimoire
Requires PHP: 8.1
Requires at least: 6.5
Tested up to: 6.8
Tags: magazine, blog, two-columns, custom-menu, featured-images, translation-ready, accessibility-ready
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* =============================================================================
   1. Design-Tokens
   Die Palette ist auf Lesbarkeit geprüft: Fließtext (#3a322a auf #faf6ef)
   erreicht ca. 10.4:1, Gold-Links (#7c5d26) ca. 5.6:1 — beides über WCAG AA.
   ========================================================================== */

:root {
	/* Flächen */
	--g-cream:        #faf6ef;
	--g-cream-soft:   #f4ecdf;
	--g-sand:         #e9dcc7;
	--g-sand-deep:    #ddcbaf;
	--g-paper:        #fffdf9;

	/* Schrift */
	--g-ink:          #2c251e;
	--g-ink-soft:     #3a322a;
	--g-ink-muted:    #5f5449;
	--g-ink-faint:    #776a5c;

	/* Akzente */
	--g-gold:         #9a7635;
	--g-gold-deep:    #7c5d26;
	--g-gold-light:   #c9a961;
	--g-gold-wash:    rgba(154, 118, 53, 0.10);

	/* Nacht (Footer, Newsletter) */
	--g-night:        #221d18;
	--g-night-soft:   #2f2821;

	/* Linien */
	--g-line:         #e2d7c4;
	--g-line-strong:  #cdbda4;

	/* Typografie — Systemschriften, damit keine externen Requests nötig sind */
	--g-font-head: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
	--g-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--g-font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

	/* Fließende Schriftgrößen */
	--g-fs-xs:   0.8125rem;
	--g-fs-sm:   0.9375rem;
	--g-fs-base: 1.0625rem;
	--g-fs-md:   clamp(1.125rem, 0.4vw + 1.05rem, 1.25rem);
	--g-fs-lg:   clamp(1.35rem, 0.8vw + 1.15rem, 1.65rem);
	--g-fs-xl:   clamp(1.65rem, 1.4vw + 1.3rem, 2.25rem);
	--g-fs-2xl:  clamp(2rem, 2.6vw + 1.4rem, 3rem);
	--g-fs-3xl:  clamp(2.4rem, 4vw + 1.4rem, 3.9rem);

	/* Raster */
	--g-wrap:      1180px;
	--g-wrap-text: 44rem;
	--g-gap:       clamp(1.25rem, 2.5vw, 2.25rem);
	--g-section:   clamp(3rem, 6vw, 5.5rem);

	/* Form */
	--g-radius:    3px;
	--g-radius-lg: 6px;
	--g-shadow:    0 1px 2px rgba(44, 37, 30, .04), 0 8px 24px -12px rgba(44, 37, 30, .16);
	--g-shadow-lg: 0 2px 4px rgba(44, 37, 30, .05), 0 20px 48px -20px rgba(44, 37, 30, .26);

	--g-ease: cubic-bezier(.22, .61, .36, 1);
}

/* =============================================================================
   2. Reset / Grundlagen
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 6rem;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}

body {
	margin: 0;
	background: var(--g-cream);
	color: var(--g-ink-soft);
	font-family: var(--g-font-body);
	font-size: var(--g-fs-base);
	line-height: 1.72;
	font-feature-settings: "kern" 1, "liga" 1;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .6em;
	font-family: var(--g-font-head);
	font-weight: 600;
	line-height: 1.2;
	color: var(--g-ink);
	letter-spacing: -0.01em;
	text-wrap: balance;
}

h1 { font-size: var(--g-fs-2xl); }
h2 { font-size: var(--g-fs-xl); }
h3 { font-size: var(--g-fs-lg); }
h4 { font-size: var(--g-fs-md); }

p { margin: 0 0 1.35em; }
p:last-child { margin-bottom: 0; }

a {
	color: var(--g-gold-deep);
	text-decoration-color: var(--g-gold-light);
	text-underline-offset: .18em;
	text-decoration-thickness: 1px;
	transition: color .18s var(--g-ease), text-decoration-color .18s var(--g-ease);
}
a:hover { color: var(--g-ink); text-decoration-color: var(--g-gold); }

img, svg, video, iframe { max-width: 100%; height: auto; display: block; }

ul, ol { padding-left: 1.35em; margin: 0 0 1.35em; }
li { margin-bottom: .4em; }

blockquote {
	margin: 2rem 0;
	padding: .25rem 0 .25rem 1.6rem;
	border-left: 2px solid var(--g-gold-light);
	font-family: var(--g-font-head);
	font-size: var(--g-fs-md);
	font-style: italic;
	color: var(--g-ink-muted);
}

code, kbd, pre { font-family: var(--g-font-mono); font-size: .9em; }
code { background: var(--g-gold-wash); padding: .15em .4em; border-radius: var(--g-radius); }
pre {
	background: var(--g-night);
	color: #e6dcc8;
	padding: 1.25rem;
	border-radius: var(--g-radius-lg);
	overflow-x: auto;
}
pre code { background: none; padding: 0; }

hr { border: 0; height: 1px; background: var(--g-line); margin: var(--g-section) 0; }

/* Tabellen dürfen die Seite nie horizontal schieben */
.g-tablewrap { overflow-x: auto; margin-bottom: 1.5rem; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: var(--g-fs-sm); }
th, td { padding: .7rem .9rem; border-bottom: 1px solid var(--g-line); text-align: left; }
th { font-weight: 600; color: var(--g-ink); background: var(--g-cream-soft); }

/* Fokus — immer sichtbar */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--g-gold);
	outline-offset: 3px;
	border-radius: var(--g-radius);
}

::selection { background: var(--g-gold-light); color: var(--g-night); }

/* =============================================================================
   3. Hilfsklassen / Layout
   ========================================================================== */

.g-wrap { width: min(100% - 2.5rem, var(--g-wrap)); margin-inline: auto; }
@media (max-width: 480px) { .g-wrap { width: min(100% - 1.75rem, var(--g-wrap)); } }

.g-narrow { width: min(100%, var(--g-wrap-text)); margin-inline: auto; }

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px; width: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	position: absolute !important;
	white-space: nowrap;
}

.g-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	background: var(--g-night);
	color: var(--g-cream);
	padding: .85rem 1.4rem;
	text-decoration: none;
	border-radius: 0 0 var(--g-radius-lg) 0;
}
.g-skip-link:focus { left: 0; color: var(--g-cream); }

.g-eyebrow {
	display: inline-block;
	font-size: var(--g-fs-xs);
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--g-gold-deep);
	margin-bottom: .9rem;
}

.g-rule { display: block; width: 3.5rem; height: 1px; background: var(--g-gold-light); border: 0; margin: 1.1rem 0 0; }
.g-rule--center { margin-inline: auto; }

.g-section { padding-block: var(--g-section); }
.g-section--tint { background: var(--g-cream-soft); }
.g-section--paper { background: var(--g-paper); }

.g-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
	margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
	flex-wrap: wrap;
}
.g-section-head h2 { margin: 0; }
.g-section-head p { margin: .4rem 0 0; color: var(--g-ink-muted); font-size: var(--g-fs-sm); }

.g-link-more {
	font-size: var(--g-fs-sm);
	font-weight: 600;
	letter-spacing: .04em;
	white-space: nowrap;
	text-decoration: none;
	border-bottom: 1px solid var(--g-gold-light);
	padding-bottom: 2px;
}
.g-link-more::after { content: " \2192"; }

/* Buttons */
.g-btn {
	display: inline-block;
	font-size: var(--g-fs-sm);
	font-weight: 600;
	letter-spacing: .05em;
	padding: .85rem 1.9rem;
	border: 1px solid var(--g-gold);
	border-radius: var(--g-radius);
	background: var(--g-gold);
	color: #fffdf9;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s var(--g-ease), border-color .2s var(--g-ease), color .2s var(--g-ease);
}
.g-btn:hover { background: var(--g-gold-deep); border-color: var(--g-gold-deep); color: #fffdf9; }

.g-btn--ghost { background: transparent; color: var(--g-gold-deep); }
.g-btn--ghost:hover { background: var(--g-gold-wash); color: var(--g-gold-deep); }

.g-btn--light { background: transparent; border-color: rgba(233,220,199,.45); color: var(--g-cream); }
.g-btn--light:hover { background: rgba(233,220,199,.12); border-color: var(--g-gold-light); color: #fff; }

/* =============================================================================
   4. Kopfbereich + Navigation
   ========================================================================== */

.g-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(250, 246, 239, .93);
	backdrop-filter: saturate(160%) blur(10px);
	-webkit-backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid var(--g-line);
	transition: box-shadow .25s var(--g-ease);
}
.g-header.is-scrolled { box-shadow: 0 1px 20px -8px rgba(44, 37, 30, .35); }

.g-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 4.75rem;
	padding-block: .75rem;
}

.g-brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.g-brand__mark { flex: none; color: var(--g-gold); }
.g-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.g-brand__name { font-family: var(--g-font-head); font-size: 1.5rem; font-weight: 600; color: var(--g-ink); letter-spacing: .02em; }
.g-brand__tag { font-size: .6875rem; letter-spacing: .17em; text-transform: uppercase; color: var(--g-ink-faint); margin-top: .2rem; }
.g-brand:hover .g-brand__name { color: var(--g-gold-deep); }

.g-nav { display: flex; align-items: center; gap: 1.5rem; }
.g-nav ul { list-style: none; display: flex; align-items: center; gap: 1.6rem; margin: 0; padding: 0; }
.g-nav li { margin: 0; position: relative; }
.g-nav a {
	font-size: var(--g-fs-sm);
	font-weight: 500;
	color: var(--g-ink-soft);
	text-decoration: none;
	padding-block: .4rem;
	position: relative;
	white-space: nowrap;
}
.g-nav a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 1px;
	background: var(--g-gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .24s var(--g-ease);
}
.g-nav a:hover { color: var(--g-ink); }
.g-nav a:hover::after,
.g-nav .current-menu-item > a::after,
.g-nav .current_page_item > a::after,
.g-nav .current-menu-parent > a::after,
.g-nav .current-post-ancestor > a::after { transform: scaleX(1); }
.g-nav .current-menu-item > a,
.g-nav .current_page_item > a { color: var(--g-ink); }

.g-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: -1rem;
	min-width: 12rem;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	background: var(--g-paper);
	border: 1px solid var(--g-line);
	border-radius: var(--g-radius-lg);
	box-shadow: var(--g-shadow);
	padding: .5rem 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .18s var(--g-ease), transform .18s var(--g-ease), visibility .18s;
}
.g-nav li:hover > .sub-menu,
.g-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.g-nav .sub-menu a { display: block; padding: .5rem 1.25rem; }
.g-nav .sub-menu a::after { display: none; }
.g-nav .sub-menu a:hover { background: var(--g-gold-wash); }

.g-header__actions { display: flex; align-items: center; gap: .35rem; }

.g-icon-btn {
	display: inline-grid;
	place-items: center;
	width: 2.5rem; height: 2.5rem;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--g-ink-soft);
	cursor: pointer;
	transition: background .2s var(--g-ease), color .2s var(--g-ease);
}
.g-icon-btn:hover { background: var(--g-gold-wash); color: var(--g-gold-deep); }

.g-nav-toggle { display: none; }

.g-header__search {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows .28s var(--g-ease);
	border-top: 1px solid transparent;
}
.g-header__search.is-open { grid-template-rows: 1fr; border-top-color: var(--g-line); }
.g-header__search > div { overflow: hidden; }
.g-header__search form { padding-block: 1.1rem; }

@media (max-width: 860px) {
	.g-nav-toggle { display: inline-grid; }

	.g-nav {
		position: fixed;
		inset: 4.75rem 0 auto;
		display: block;
		max-height: 0;
		overflow: hidden;
		background: var(--g-paper);
		border-bottom: 1px solid var(--g-line);
		transition: max-height .32s var(--g-ease);
	}
	.g-nav.is-open { max-height: calc(100vh - 4.75rem); max-height: calc(100dvh - 4.75rem); overflow-y: auto; }
	.g-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.5rem; }
	.g-nav li { border-bottom: 1px solid var(--g-line); }
	.g-nav li:last-child { border-bottom: 0; }
	.g-nav a { display: block; padding: .95rem .25rem; font-size: var(--g-fs-md); }
	.g-nav a::after { display: none; }
	.g-nav .sub-menu {
		position: static;
		opacity: 1; visibility: visible; transform: none;
		border: 0; box-shadow: none; background: transparent;
		padding: 0 0 .5rem .9rem;
	}
	.g-nav .sub-menu a { font-size: var(--g-fs-sm); padding: .55rem .25rem; }
}

/* =============================================================================
   5. Startseite — Hero
   ========================================================================== */

.g-hero {
	position: relative;
	background: linear-gradient(168deg, var(--g-cream-soft) 0%, var(--g-sand) 58%, var(--g-sand-deep) 100%);
	overflow: hidden;
	isolation: isolate;
}

/* Sternenmuster: rein dekorativ, aus CSS erzeugt — kein zusätzlicher Request */
.g-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(1.5px 1.5px at 12% 22%, rgba(154,118,53,.35) 50%, transparent 51%),
		radial-gradient(1px 1px at 78% 16%, rgba(154,118,53,.30) 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 62% 68%, rgba(154,118,53,.25) 50%, transparent 51%),
		radial-gradient(1px 1px at 30% 78%, rgba(154,118,53,.30) 50%, transparent 51%),
		radial-gradient(2px 2px at 88% 58%, rgba(154,118,53,.20) 50%, transparent 51%),
		radial-gradient(1px 1px at 46% 34%, rgba(154,118,53,.28) 50%, transparent 51%);
	pointer-events: none;
	z-index: -1;
}
.g-hero::after {
	content: "";
	position: absolute;
	right: -12%;
	top: -22%;
	width: 46rem; height: 46rem;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255,253,249,.55) 0%, rgba(255,253,249,0) 68%);
	pointer-events: none;
	z-index: -1;
}

.g-hero__inner {
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
	padding-block: clamp(3.5rem, 8vw, 7rem);
}

.g-hero__title { font-size: var(--g-fs-3xl); margin-bottom: 1.1rem; }
.g-hero__lead { font-size: var(--g-fs-md); color: var(--g-ink-muted); max-width: 34rem; margin-bottom: 2rem; }
.g-hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.g-hero__feature {
	position: relative;
	border-radius: var(--g-radius-lg);
	overflow: hidden;
	background: var(--g-paper);
	box-shadow: var(--g-shadow-lg);
}
.g-hero__feature .g-card__media { aspect-ratio: 4 / 3; }
.g-hero__feature-body { padding: 1.5rem 1.6rem 1.7rem; }
.g-hero__feature-body h2 { font-size: var(--g-fs-lg); margin-bottom: .5rem; }
.g-hero__feature-body h2 a { text-decoration: none; color: inherit; }
.g-hero__feature-body h2 a:hover { color: var(--g-gold-deep); }
.g-hero__feature-body p { color: var(--g-ink-muted); font-size: var(--g-fs-sm); margin-bottom: .9rem; }

@media (max-width: 860px) {
	.g-hero__inner { grid-template-columns: 1fr; }
	.g-hero__feature { order: -1; }
}

/* =============================================================================
   6. Artikelkarten
   ========================================================================== */

.g-grid {
	display: grid;
	gap: var(--g-gap);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}
.g-grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr)); }

.g-card {
	display: flex;
	flex-direction: column;
	background: var(--g-paper);
	border: 1px solid var(--g-line);
	border-radius: var(--g-radius-lg);
	overflow: hidden;
	transition: transform .28s var(--g-ease), box-shadow .28s var(--g-ease), border-color .28s var(--g-ease);
}
.g-card:hover { transform: translateY(-3px); box-shadow: var(--g-shadow); border-color: var(--g-line-strong); }

.g-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	background: var(--g-sand);
	aspect-ratio: 3 / 2;
}
.g-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--g-ease); }
.g-card:hover .g-card__media img { transform: scale(1.035); }

.g-card__placeholder {
	width: 100%; height: 100%;
	display: grid; place-items: center;
	background: linear-gradient(150deg, var(--g-sand) 0%, var(--g-cream-soft) 100%);
	color: var(--g-gold-light);
}

.g-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.35rem 1.4rem 1.5rem; }
.g-card__title { font-size: var(--g-fs-md); margin-bottom: .55rem; }
.g-card__title a { color: inherit; text-decoration: none; }
.g-card__title a:hover { color: var(--g-gold-deep); }
.g-card__excerpt { font-size: var(--g-fs-sm); color: var(--g-ink-muted); margin-bottom: 1rem; }
.g-card__foot { margin-top: auto; }

.g-cat-badge {
	display: inline-block;
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--g-gold-deep);
	text-decoration: none;
	margin-bottom: .7rem;
}
.g-cat-badge:hover { color: var(--g-ink); }

.g-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: var(--g-fs-xs); color: var(--g-ink-faint); }
.g-meta__sep { opacity: .5; }
.g-meta a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--g-line-strong); }
.g-meta a:hover { color: var(--g-gold-deep); }

.g-card--wide { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
.g-card--wide .g-card__media { flex: 0 0 46%; aspect-ratio: auto; }
.g-card--wide .g-card__body { padding: clamp(1.5rem, 3vw, 2.75rem); justify-content: center; }
.g-card--wide .g-card__title { font-size: var(--g-fs-xl); }
.g-card--wide .g-card__excerpt { font-size: var(--g-fs-base); }

@media (max-width: 720px) {
	.g-card--wide { flex-direction: column; }
	.g-card--wide .g-card__media { flex: none; aspect-ratio: 3 / 2; }
}

/* =============================================================================
   7. Seitenkopf / Breadcrumbs / Archive
   ========================================================================== */

.g-pagehead {
	background: linear-gradient(180deg, var(--g-cream-soft) 0%, var(--g-cream) 100%);
	border-bottom: 1px solid var(--g-line);
	padding-block: clamp(2.25rem, 5vw, 3.75rem);
}
.g-pagehead__title { margin-bottom: .5rem; }
.g-pagehead__desc { color: var(--g-ink-muted); max-width: var(--g-wrap-text); margin: 0; }

.g-breadcrumbs { font-size: var(--g-fs-xs); color: var(--g-ink-faint); margin-bottom: 1rem; }
.g-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; }
.g-breadcrumbs li { margin: 0; display: flex; align-items: center; gap: .45rem; }
.g-breadcrumbs li + li::before { content: "/"; opacity: .45; }
.g-breadcrumbs a { color: var(--g-ink-muted); text-decoration: none; }
.g-breadcrumbs a:hover { color: var(--g-gold-deep); text-decoration: underline; }
.g-breadcrumbs [aria-current="page"] { color: var(--g-ink); }

.g-termbar { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.g-termbar a {
	font-size: var(--g-fs-xs);
	font-weight: 600;
	letter-spacing: .06em;
	padding: .45rem 1rem;
	border: 1px solid var(--g-line-strong);
	border-radius: 999px;
	background: var(--g-paper);
	color: var(--g-ink-muted);
	text-decoration: none;
	transition: background .2s var(--g-ease), border-color .2s var(--g-ease), color .2s var(--g-ease);
}
.g-termbar a:hover,
.g-termbar a[aria-current="page"] { background: var(--g-gold); border-color: var(--g-gold); color: #fffdf9; }

/* =============================================================================
   8. Einzelartikel
   ========================================================================== */

.g-article { padding-block: clamp(2.5rem, 5vw, 4rem); }

.g-article__head { max-width: var(--g-wrap-text); margin: 0 auto clamp(1.75rem, 4vw, 2.5rem); }
.g-article__title { font-size: var(--g-fs-2xl); margin-bottom: 1rem; }
.g-article__lead { font-family: var(--g-font-head); font-size: var(--g-fs-md); color: var(--g-ink-muted); margin-bottom: 1.25rem; }

.g-byline {
	display: flex;
	align-items: center;
	gap: .85rem;
	padding-top: 1.15rem;
	border-top: 1px solid var(--g-line);
	font-size: var(--g-fs-sm);
}
.g-byline img { border-radius: 50%; flex: none; }
.g-byline__name { font-weight: 600; color: var(--g-ink); }
.g-byline__name a { color: inherit; text-decoration: none; }
.g-byline__name a:hover { color: var(--g-gold-deep); }
.g-byline__meta { color: var(--g-ink-faint); font-size: var(--g-fs-xs); }

.g-article__figure {
	margin: 0 0 clamp(2rem, 4vw, 3rem);
	border-radius: var(--g-radius-lg);
	overflow: hidden;
	box-shadow: var(--g-shadow);
}
.g-article__figure img { width: 100%; }
.g-article__figure figcaption {
	font-size: var(--g-fs-xs);
	color: var(--g-ink-faint);
	padding: .75rem 1rem;
	background: var(--g-paper);
	text-align: center;
}

.g-prose { max-width: var(--g-wrap-text); margin-inline: auto; font-size: var(--g-fs-md); }
/* Lange Adressen im Quellenverzeichnis brechen um, statt das Layout aufzuziehen.
   Gemessen am 2026-08-05: rohe Wikipedia-Adressen schoben die Seite auf einem
   375-px-Bildschirm auf 685 px Breite. */
.g-source-host { color: var(--g-ink-faint); font-size: .9em; }
.g-prose a, .g-lex__sources a, .g-lex__links a, .g-further__list a {
	overflow-wrap: anywhere;
	word-break: break-word;
}
.g-prose > * + * { margin-top: 1.35em; }
.g-prose h2 { margin-top: 2.4em; font-size: var(--g-fs-xl); }
.g-prose h3 { margin-top: 1.9em; font-size: var(--g-fs-lg); }
.g-prose h2:first-child, .g-prose h3:first-child { margin-top: 0; }
.g-prose img, .g-prose figure { border-radius: var(--g-radius-lg); }
.g-prose figure { margin-inline: 0; }
.g-prose figcaption { font-size: var(--g-fs-xs); color: var(--g-ink-faint); text-align: center; margin-top: .6rem; }
.g-prose .alignleft { float: left; margin: .35rem 1.75rem 1.25rem 0; max-width: 50%; }
.g-prose .alignright { float: right; margin: .35rem 0 1.25rem 1.75rem; max-width: 50%; }
.g-prose .aligncenter { margin-inline: auto; }

.g-tags { max-width: var(--g-wrap-text); margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; padding-top: 1.75rem; border-top: 1px solid var(--g-line); }
.g-tags__label { font-size: var(--g-fs-xs); letter-spacing: .13em; text-transform: uppercase; color: var(--g-ink-faint); margin-bottom: .8rem; }
.g-tags__list { display: flex; flex-wrap: wrap; gap: .5rem; }
.g-tags__list a {
	font-size: var(--g-fs-xs);
	padding: .35rem .85rem;
	border: 1px solid var(--g-line-strong);
	border-radius: 999px;
	color: var(--g-ink-muted);
	text-decoration: none;
}
.g-tags__list a:hover { border-color: var(--g-gold); color: var(--g-gold-deep); background: var(--g-gold-wash); }

.g-authorbox {
	max-width: var(--g-wrap-text);
	margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
	display: flex;
	gap: 1.4rem;
	padding: 1.75rem;
	background: var(--g-cream-soft);
	border-radius: var(--g-radius-lg);
	border: 1px solid var(--g-line);
}
.g-authorbox img { border-radius: 50%; flex: none; }
.g-authorbox h3 { font-size: var(--g-fs-md); margin-bottom: .35rem; }
.g-authorbox p { font-size: var(--g-fs-sm); color: var(--g-ink-muted); margin: 0; }

.g-postnav {
	max-width: var(--g-wrap-text);
	margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}
.g-postnav a {
	display: block;
	padding: 1.15rem 1.35rem;
	border: 1px solid var(--g-line);
	border-radius: var(--g-radius-lg);
	background: var(--g-paper);
	text-decoration: none;
	transition: border-color .2s var(--g-ease), background .2s var(--g-ease);
}
.g-postnav a:hover { border-color: var(--g-gold-light); background: var(--g-gold-wash); }
.g-postnav__dir { display: block; font-size: var(--g-fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--g-ink-faint); margin-bottom: .4rem; }
.g-postnav__title { font-family: var(--g-font-head); font-size: var(--g-fs-sm); color: var(--g-ink); line-height: 1.35; }
.g-postnav__next { text-align: right; }
@media (max-width: 600px) { .g-postnav { grid-template-columns: 1fr; } }

/* =============================================================================
   9. Newsletter / Shop-Verweis
   ========================================================================== */

.g-newsletter {
	background: linear-gradient(150deg, var(--g-night) 0%, var(--g-night-soft) 100%);
	color: var(--g-cream);
	position: relative;
	overflow: hidden;
}
.g-newsletter::before {
	content: "";
	position: absolute;
	left: 50%; top: -60%;
	width: 40rem; height: 40rem;
	transform: translateX(-50%);
	background: radial-gradient(circle, rgba(201,169,97,.16) 0%, transparent 66%);
	pointer-events: none;
}
.g-newsletter__inner { position: relative; text-align: center; max-width: 40rem; margin-inline: auto; }
.g-newsletter h2 { color: var(--g-cream); }
.g-newsletter p { color: rgba(244,236,223,.80); }
.g-newsletter .g-eyebrow { color: var(--g-gold-light); }

.g-newsletter__form { display: flex; gap: .6rem; margin-top: 1.75rem; flex-wrap: wrap; justify-content: center; }
.g-newsletter__form input[type="email"] {
	flex: 1 1 17rem;
	padding: .85rem 1.15rem;
	font: inherit;
	font-size: var(--g-fs-sm);
	color: var(--g-cream);
	background: rgba(250,246,239,.07);
	border: 1px solid rgba(233,220,199,.28);
	border-radius: var(--g-radius);
}
.g-newsletter__form input::placeholder { color: rgba(244,236,223,.6); }
.g-newsletter__note { font-size: var(--g-fs-xs); color: rgba(244,236,223,.62); margin-top: 1.1rem; }

.g-shopteaser {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: clamp(1.75rem, 4vw, 3.5rem);
	background: var(--g-paper);
	border: 1px solid var(--g-line);
	border-radius: var(--g-radius-lg);
	padding: clamp(1.75rem, 4vw, 3rem);
}
.g-shopteaser__art {
	aspect-ratio: 4 / 3;
	border-radius: var(--g-radius-lg);
	background:
		radial-gradient(circle at 30% 30%, rgba(201,169,97,.3) 0%, transparent 55%),
		linear-gradient(150deg, var(--g-sand) 0%, var(--g-cream-soft) 100%);
	display: grid;
	place-items: center;
	color: var(--g-gold);
}
@media (max-width: 720px) {
	.g-shopteaser { grid-template-columns: 1fr; }
	.g-shopteaser__art { order: -1; }
}

/* =============================================================================
   10. Suche / Formulare
   ========================================================================== */

.g-searchform { display: flex; gap: .5rem; width: 100%; }
.g-searchform input[type="search"] {
	flex: 1;
	padding: .8rem 1.1rem;
	font: inherit;
	font-size: var(--g-fs-sm);
	color: var(--g-ink);
	background: var(--g-paper);
	border: 1px solid var(--g-line-strong);
	border-radius: var(--g-radius);
}
.g-searchform input[type="search"]::placeholder { color: var(--g-ink-faint); }
.g-searchform input[type="search"]:focus { border-color: var(--g-gold); }

input, textarea, select, button { font-family: inherit; }

/* =============================================================================
   11. Seitenumbruch / leere Zustände / 404
   ========================================================================== */

.g-pagination { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: flex; justify-content: center; }
.g-pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.g-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 2.5rem; height: 2.5rem;
	padding-inline: .6rem;
	font-size: var(--g-fs-sm);
	border: 1px solid var(--g-line-strong);
	border-radius: var(--g-radius);
	background: var(--g-paper);
	color: var(--g-ink-muted);
	text-decoration: none;
}
.g-pagination .page-numbers:hover { border-color: var(--g-gold); color: var(--g-gold-deep); }
.g-pagination .page-numbers.current { background: var(--g-gold); border-color: var(--g-gold); color: #fffdf9; }
.g-pagination .page-numbers.dots { border-color: transparent; background: none; }

.g-empty { text-align: center; max-width: 34rem; margin-inline: auto; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.g-empty__icon { color: var(--g-gold-light); margin: 0 auto 1.5rem; }
.g-empty p { color: var(--g-ink-muted); }
.g-empty .g-searchform { max-width: 24rem; margin: 1.75rem auto 0; }

.g-404__code {
	font-family: var(--g-font-head);
	font-size: clamp(5rem, 16vw, 10rem);
	line-height: .9;
	color: var(--g-sand-deep);
	margin-bottom: 1rem;
}
.g-404__links { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.75rem; }

/* =============================================================================
   12. Fußbereich
   ========================================================================== */

.g-footer {
	background: var(--g-night);
	color: rgba(244,236,223,.78);
	padding-block: clamp(3rem, 6vw, 4.5rem) 0;
	font-size: var(--g-fs-sm);
}
.g-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: clamp(1.75rem, 4vw, 3.5rem);
	padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.g-footer h2, .g-footer h3 {
	color: var(--g-cream);
	font-size: var(--g-fs-sm);
	letter-spacing: .11em;
	text-transform: uppercase;
	font-family: var(--g-font-body);
	font-weight: 600;
	margin-bottom: 1.1rem;
}
.g-footer p { color: rgba(244,236,223,.7); }
.g-footer ul { list-style: none; padding: 0; margin: 0; }
.g-footer li { margin-bottom: .6rem; }
.g-footer a { color: rgba(244,236,223,.78); text-decoration: none; }
.g-footer a:hover { color: var(--g-gold-light); text-decoration: underline; }

.g-footer__brand .g-brand__name { color: var(--g-cream); font-size: 1.65rem; }
.g-footer__brand .g-brand__tag { color: rgba(244,236,223,.55); }

.g-footer__bottom {
	border-top: 1px solid rgba(233,220,199,.13);
	padding-block: 1.5rem 2rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	font-size: var(--g-fs-xs);
	color: rgba(244,236,223,.62);
}
.g-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.g-footer__bottom li { margin: 0; }

@media (max-width: 860px) { .g-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .g-footer__grid { grid-template-columns: 1fr; } }

/* =============================================================================
   13. Hinweisstreifen (Platzhalter-Seiten, Testinhalte)
   ========================================================================== */

.g-notice {
	border-left: 3px solid var(--g-gold);
	background: var(--g-gold-wash);
	padding: 1.1rem 1.35rem;
	border-radius: 0 var(--g-radius-lg) var(--g-radius-lg) 0;
	font-size: var(--g-fs-sm);
	color: var(--g-ink-muted);
	margin-bottom: 1.75rem;
}
.g-notice strong { color: var(--g-ink); }

/* WordPress-Standardklassen */
.alignnone { margin: 1.5rem 0; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: var(--g-fs-xs); color: var(--g-ink-faint); text-align: center; }
.sticky .g-card { border-color: var(--g-gold-light); }

/* Druck */
@media print {
	.g-header, .g-footer, .g-newsletter, .g-postnav, .g-breadcrumbs, .g-shopteaser, .g-skip-link { display: none !important; }
	body { background: #fff; color: #000; font-size: 11pt; }
	.g-prose { max-width: none; }
	a { text-decoration: underline; color: #000; }
}

/* =============================================================================
   14. Weiterlesen und vertiefen / Partnerhinweis
   ========================================================================== */

.g-further {
	max-width: var(--g-wrap-text);
	margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
	padding: 1.75rem;
	border: 1px solid var(--g-line);
	border-radius: var(--g-radius-lg);
	background: var(--g-cream-soft);
}
.g-further h2 {
	font-size: var(--g-fs-md);
	margin-bottom: 1rem;
}
.g-further__list { list-style: none; padding: 0; margin: 0; }
.g-further__list li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding: .6rem 0;
	border-bottom: 1px solid var(--g-line);
	margin: 0;
}
.g-further__list li:last-child { border-bottom: 0; }
.g-further__list a { text-decoration: none; font-weight: 500; }
.g-further__list a:hover { text-decoration: underline; }
.g-further__kind {
	flex: none;
	font-size: var(--g-fs-xs);
	color: var(--g-ink-faint);
	letter-spacing: .06em;
	text-transform: uppercase;
}

.g-footer__partner {
	margin: 0 0 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(233, 220, 199, .13);
	font-size: var(--g-fs-sm);
	color: rgba(244, 236, 223, .7);
}
.g-footer__partner a { color: rgba(244, 236, 223, .85); }

/* Sicherheits- und Pflichthinweise in Lexikoneinträgen */
.g-notice--danger {
	border-left-color: var(--g-error);
	background: rgba(140, 58, 43, .07);
}
.g-notice--safety { border-left-color: var(--g-ink-faint); }

/* =============================================================================
   15. Lexika (Glossar, Kraeuter, Kristalle)
   ========================================================================== */

.g-az {
	display: flex;
	flex-wrap: wrap;
	gap: .3rem;
	margin-top: 1.25rem;
	font-size: var(--g-fs-sm);
}
.g-az a, .g-az__off {
	display: inline-grid;
	place-items: center;
	min-width: 2.1rem;
	height: 2.1rem;
	padding-inline: .4rem;
	border: 1px solid var(--g-line-strong);
	border-radius: var(--g-radius);
	background: var(--g-paper);
	color: var(--g-ink-muted);
	text-decoration: none;
	font-weight: 600;
}
.g-az a:hover { border-color: var(--g-gold); color: var(--g-gold-deep); }
.g-az a[aria-current="page"] {
	background: var(--g-gold);
	border-color: var(--g-gold);
	color: #fffdf9;
}
.g-az__off {
	border-color: var(--g-line);
	color: var(--g-ink-faint);
	opacity: .4;
}

.g-lexgrid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}

.g-lexcard {
	background: var(--g-paper);
	border: 1px solid var(--g-line);
	border-radius: var(--g-radius-lg);
	padding: 1.1rem 1.2rem;
	transition: border-color .2s var(--g-ease), transform .2s var(--g-ease);
}
.g-lexcard:hover { border-color: var(--g-gold-light); transform: translateY(-2px); }
.g-lexcard__title { font-size: var(--g-fs-md); margin-bottom: .3rem; }
.g-lexcard__title a { color: inherit; text-decoration: none; }
.g-lexcard__title a:hover { color: var(--g-gold-deep); }
.g-lexcard__sub {
	font-family: var(--g-font-head);
	font-style: italic;
	font-size: var(--g-fs-sm);
	color: var(--g-ink-faint);
	margin-bottom: .5rem;
}
.g-lexcard__text { font-size: var(--g-fs-sm); color: var(--g-ink-muted); margin: 0; }

/* Sachtabelle im Eintrag */
.g-lex__facts { margin-bottom: 2rem; font-size: var(--g-fs-sm); }
.g-lex__facts th {
	width: 38%;
	vertical-align: top;
	font-weight: 600;
	color: var(--g-ink);
	background: var(--g-cream-soft);
}
.g-lex__block { margin-top: 2.2rem; }
.g-lex__block h2 { font-size: var(--g-fs-lg); margin-bottom: .6rem; }
.g-lex__sources, .g-lex__links { margin-top: 2.2rem; }
.g-lex__sources h2, .g-lex__links h2 { font-size: var(--g-fs-md); margin-bottom: .6rem; }
.g-lex__sources ul, .g-lex__links ul { font-size: var(--g-fs-sm); }
.g-lex__sources a { word-break: break-word; }

/* Automatisch gesetzte Glossarlinks bleiben dezent */
.g-glossarlink {
	text-decoration-style: dotted;
	text-decoration-color: var(--g-gold-light);
}

/* =============================================================================
   16. Lesefortschritt und Pinterest-Motive
   ========================================================================== */

.g-progress {
	position: fixed;
	top: 0; left: 0; right: 0;
	height: 3px;
	z-index: 200;
	background: transparent;
	pointer-events: none;
}
.g-progress span {
	display: block;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--g-gold-light), var(--g-gold));
	transition: width .1s linear;
}
@media (prefers-reduced-motion: reduce) { .g-progress span { transition: none; } }

.g-pins {
	max-width: var(--g-wrap-text);
	margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
}
.g-pins h2 { font-size: var(--g-fs-md); margin-bottom: 1rem; }
.g-pins__grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr));
}
.g-pins figure { margin: 0; }
.g-pins img { border-radius: var(--g-radius-lg); width: 100%; }
.g-pins figcaption {
	font-size: var(--g-fs-xs);
	color: var(--g-ink-faint);
	margin-top: .4rem;
	text-align: center;
}

/* Lexika-Einstiege auf der Startseite */
.g-lexteaser {
	display: grid;
	gap: var(--g-gap);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
.g-lexteaser__card {
	display: flex;
	flex-direction: column;
	gap: .5rem;
	padding: 1.6rem 1.5rem;
	background: var(--g-paper);
	border: 1px solid var(--g-line);
	border-radius: var(--g-radius-lg);
	text-decoration: none;
	transition: border-color .2s var(--g-ease), transform .2s var(--g-ease);
}
.g-lexteaser__card:hover { border-color: var(--g-gold-light); transform: translateY(-3px); }
.g-lexteaser__count {
	font-family: var(--g-font-head);
	font-size: 2.2rem;
	line-height: 1;
	color: var(--g-gold);
}
.g-lexteaser__label { font-family: var(--g-font-head); font-size: var(--g-fs-md); color: var(--g-ink); }
.g-lexteaser__text { font-size: var(--g-fs-sm); color: var(--g-ink-muted); }

/* =============================================================================
   17. Transparenzhinweis zur Entstehung
   ========================================================================== */

.g-ki-hinweis {
	margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
	padding: 1.5rem 1.6rem;
	background: var(--g-cream-soft);
	border: 1px solid var(--g-line);
	border-left: 3px solid var(--g-gold-light);
	border-radius: 0 var(--g-radius-lg) var(--g-radius-lg) 0;
	font-size: var(--g-fs-sm);
	color: var(--g-ink-muted);
}
.g-ki-hinweis__titel {
	display: flex;
	align-items: center;
	gap: .55rem;
	font-family: var(--g-font-body);
	font-size: var(--g-fs-sm);
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--g-ink);
	margin-bottom: .9rem;
}
.g-ki-hinweis__titel svg { flex: none; color: var(--g-gold); }
.g-ki-hinweis p { margin-bottom: .8rem; }
.g-ki-hinweis p:last-child { margin-bottom: 0; }

.g-footer__ki {
	margin: 0 0 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(233, 220, 199, .13);
	font-size: var(--g-fs-xs);
	color: rgba(244, 236, 223, .55);
	max-width: 46rem;
}
