/*
Theme Name: Anlassreich
Theme URI: https://anlassreich.de/
Author: Anlassreich Redaktion
Description: Schnelles, eigenständiges Magazin-Theme für Glückwünsche, Sprüche und Ideen zu jedem Anlass. Anlass-Kalender mit Countdown, Spruch des Tages, Sprüche mit „Kopieren“- und WhatsApp-Knopf, Inhaltsverzeichnis, FAQ-Schema, helles und dunkles Design, Schriften lokal (keine externen Anfragen).
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: anlassreich
Tags: blog, news, two-columns, custom-menu, custom-logo, featured-images, translation-ready
*/

/* Fonts: Alegreya (Juan Pablo del Peral) and Hanken Grotesk (Alfredo Marco Pradil), SIL Open Font License 1.1 – loaded locally, see inc/fonts.php */

/* ---------- Tokens ---------- */
:root {
	--paper: #f6f7fb;
	--surface: #ffffff;
	--surface-2: #eef0f8;
	--ink: #1a2038;
	--ink-2: #3a405a;
	--muted: #5d6380;
	--line: #e1e4ef;
	--line-2: #cfd3e3;
	--blue: #2d45b8;
	--blue-ink: #24399a;
	--blue-tint: #e8ecfb;
	--berry: #b4386a;
	--berry-tint: #f9e7ef;
	--on-berry: #ffffff;
	--foot: #161b34;
	--foot-ink: #d9dcef;
	--foot-muted: #9aa0c2;
	--shadow: 0 1px 2px rgba(26, 32, 56, .06), 0 8px 24px -12px rgba(26, 32, 56, .18);
	--shadow-lift: 0 2px 4px rgba(26, 32, 56, .06), 0 18px 36px -18px rgba(26, 32, 56, .32);

	--serif: "Alegreya", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
	--sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--wrap: 1180px;
	--prose: 690px;
	--gutter: 16px;
	--r-s: 8px;
	--r-m: 14px;
	--r-l: 22px;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--paper: #11142a; --surface: #191d37; --surface-2: #20254a; --ink: #e9ebf7; --ink-2: #c9cce2; --muted: #a2a7c4;
		--line: #2a3052; --line-2: #3a4170; --blue: #93a5ff; --blue-ink: #b3c0ff; --blue-tint: #222a55; --berry: #ee8ab2;
		--berry-tint: #3a2140; --on-berry: #2a0f1d; --foot: #0b0e1f; --foot-ink: #d9dcef; --foot-muted: #8f95b8;
		--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 26px -14px rgba(0, 0, 0, .7);
		--shadow-lift: 0 2px 4px rgba(0, 0, 0, .3), 0 20px 40px -18px rgba(0, 0, 0, .8);
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--paper: #11142a; --surface: #191d37; --surface-2: #20254a; --ink: #e9ebf7; --ink-2: #c9cce2; --muted: #a2a7c4;
	--line: #2a3052; --line-2: #3a4170; --blue: #93a5ff; --blue-ink: #b3c0ff; --blue-tint: #222a55; --berry: #ee8ab2;
	--berry-tint: #3a2140; --on-berry: #2a0f1d; --foot: #0b0e1f; --foot-ink: #d9dcef; --foot-muted: #8f95b8;
	--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 26px -14px rgba(0, 0, 0, .7);
	--shadow-lift: 0 2px 4px rgba(0, 0, 0, .3), 0 20px 40px -18px rgba(0, 0, 0, .8);
	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
	margin: 0; background: var(--paper); color: var(--ink);
	font: 400 1.0625rem/1.65 var(--sans);
	-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--blue-ink); }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -.005em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
.ico { width: 1.25em; height: 1.25em; flex: none; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: calc(760px + 2 * var(--gutter)); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--r-s); }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

/* ---------- Header ---------- */
.masthead { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo .mark { flex: none; transform: rotate(-4deg); transition: transform .3s ease; }
.logo:hover .mark { transform: rotate(0deg); }
.custom-mark { width: 34px; height: 34px; object-fit: contain; }
.wordmark { font: 800 1.5rem/1 var(--serif); letter-spacing: -.01em; }
.masthead-tools { display: flex; gap: 6px; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn .ico { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
	:root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
.search-panel { border-top: 1px solid var(--line); padding: 14px 0; background: var(--surface); }
.occnav { border-top: 1px solid var(--line); }
.occnav ul { list-style: none; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 6px 0; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); -webkit-overflow-scrolling: touch; }
.occnav ul::-webkit-scrollbar { display: none; }
.occnav a { display: block; white-space: nowrap; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .9375rem; }
.occnav a:hover { background: var(--surface-2); color: var(--ink); }
.occnav a[aria-current="page"], .occnav .current-menu-item > a, .occnav .current-post-ancestor > a, .occnav .current-category-ancestor > a { background: var(--blue-tint); color: var(--blue-ink); }

/* ---------- Search form ---------- */
.searchform { position: relative; display: flex; align-items: center; background: var(--surface); border: 1.5px solid var(--line-2); border-radius: 999px; padding: 5px 5px 5px 16px; gap: 8px; max-width: 620px; }
.searchform:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-tint); }
.searchform > .ico { color: var(--muted); width: 20px; height: 20px; }
.searchform input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 500 1rem/1.4 var(--sans); padding: 9px 0; outline: none; }
.searchform input::placeholder { color: var(--muted); opacity: 1; }
.searchform button { border: 0; background: var(--blue); color: #fff; font-weight: 700; padding: 10px 18px; border-radius: 999px; }
:root[data-theme="dark"] .searchform button { color: #10142c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .searchform button { color: #10142c; } }
.searchform button:hover { filter: brightness(1.08); }

/* ---------- Chips ---------- */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .9375rem; }
.chips a:hover { border-color: var(--blue); color: var(--blue-ink); }
.chips-big a { padding: 10px 16px; }
.chips .ico { width: 18px; height: 18px; color: var(--berry); }

/* ---------- Sections ---------- */
.section { padding: 48px 0; }
.section-tint { background: var(--surface-2); }
.wrap.section { padding-left: var(--gutter); padding-right: var(--gutter); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); font-weight: 800; display: flex; align-items: center; gap: 10px; }
.section-head p { color: var(--muted); flex: 1 0 100%; }
.section-head > a { font-weight: 700; text-decoration: none; white-space: nowrap; }
.section-head > a:hover { text-decoration: underline; }
.h-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--berry-tint); color: var(--berry); }
.h-ico .ico { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero { padding: 36px 0 44px; background:
	radial-gradient(900px 380px at 100% 0%, var(--berry-tint), transparent 70%),
	radial-gradient(700px 360px at 0% 100%, var(--blue-tint), transparent 70%),
	var(--paper); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero h1 { font-size: clamp(2.25rem, 7vw, 3.75rem); font-weight: 800; line-height: 1.04; letter-spacing: -.02em; max-width: 14ch; }
.hero-dek { margin: 16px 0 22px; color: var(--ink-2); font-size: 1.125rem; max-width: 52ch; }
.hero .chips { margin-top: 16px; }

/* Spruch des Tages: a written card */
.daily { margin: 0; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 26px 24px 20px; box-shadow: var(--shadow-lift); }
.daily::after { content: ""; position: absolute; top: -14px; right: 22px; width: 54px; height: 54px; transform: rotate(8deg); background: var(--berry);
	-webkit-mask: radial-gradient(circle at 50% 0, transparent 2.6px, #000 3px) 0 0 / 7.6px 50% repeat-x, radial-gradient(circle at 50% 100%, transparent 2.6px, #000 3px) 0 100% / 7.6px 50% repeat-x;
	mask: radial-gradient(circle at 50% 0, transparent 2.6px, #000 3px) 0 0 / 7.6px 50% repeat-x, radial-gradient(circle at 50% 100%, transparent 2.6px, #000 3px) 0 100% / 7.6px 50% repeat-x;
	box-shadow: none; opacity: .92; }
.daily-label { display: inline-flex; align-items: center; gap: 8px; color: var(--berry); font-weight: 700; font-size: .9375rem; }
.daily-label .ico { width: 18px; height: 18px; }
.daily-text { margin: 14px 0 18px; padding: 0; }
.daily-text p { font: italic 500 clamp(1.375rem, 3.4vw, 1.75rem)/1.35 var(--serif); color: var(--ink); text-wrap: pretty; }
.daily-text p::before { content: "„"; color: var(--berry); }
.daily-text p::after { content: "“"; color: var(--berry); }
.daily figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px dashed var(--line-2); padding-top: 14px; }
.daily-tag a, .daily-tag { color: var(--muted); font-weight: 600; font-size: .9375rem; text-decoration: none; }

/* Spruch tools (shared) */
.sp-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-weight: 650; font-size: .875rem; line-height: 1.2; text-decoration: none; }
.sp-btn:hover { border-color: var(--blue); color: var(--blue-ink); }
.sp-btn .ico { width: 17px; height: 17px; }
.sp-copy { background: var(--blue); border-color: var(--blue); color: #fff; }
.sp-copy:hover { color: #fff; filter: brightness(1.08); }
:root[data-theme="dark"] .sp-copy, :root[data-theme="dark"] .sp-copy:hover { color: #10142c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sp-copy, :root:not([data-theme="light"]) .sp-copy:hover { color: #10142c; } }
.sp-copy.is-done { background: #1f8a5b; border-color: #1f8a5b; color: #fff; }
.no-js .sp-copy { display: none; }

/* ---------- Calendar sheets (the signature element) ---------- */
.band { padding: 40px 0 44px; }
.band-calendar { background: var(--surface); border-bottom: 1px solid var(--line); }
.sheets { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 12px var(--gutter) 10px; margin: 0 calc(-1 * var(--gutter)); scrollbar-width: thin; }
.sheets li { scroll-snap-align: start; }
.sheet { position: relative; display: grid; justify-items: center; text-align: center; gap: 2px; height: 100%; padding: 30px 12px 16px; border-radius: var(--r-m); background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.sheet::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 18px; background: var(--berry); }
.sheet::after { content: ""; position: absolute; top: 5px; left: 50%; width: 46px; height: 8px; transform: translateX(-50%);
	background: radial-gradient(circle, var(--paper) 3px, transparent 3.5px) 0 0 / 23px 8px repeat-x; }
a.sheet:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); color: var(--ink); }
.sheet-month { font-weight: 700; font-size: .875rem; color: var(--berry); margin-top: 2px; }
.sheet-day { font: 800 3.25rem/1 var(--serif); letter-spacing: -.03em; font-variant-numeric: lining-nums; }
.sheet-name { font: 700 1.125rem/1.2 var(--serif); margin-top: 6px; }
.sheet-line { font-size: .875rem; color: var(--muted); }
.sheet-count { margin-top: 10px; padding: 4px 10px; border-radius: 999px; background: var(--blue-tint); color: var(--blue-ink); font-weight: 700; font-size: .8125rem; }
.is-soon .sheet-count { background: var(--berry); color: var(--on-berry); }
.sheets-mini { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; padding: 0; margin: 0; gap: 8px; }
.sheets-mini .sheet { grid-template-columns: 54px 1fr; grid-template-rows: auto auto; justify-items: start; text-align: left; align-items: center; column-gap: 12px; row-gap: 0; padding: 10px 12px 10px 0; }
.sheets-mini .sheet::before { inset: 0 auto 0 0; width: 54px; height: auto; background: var(--berry-tint); }
.sheets-mini .sheet::after { display: none; }
.sheets-mini .sheet-month { grid-column: 1; grid-row: 2; justify-self: center; position: relative; margin: 0; font-size: .75rem; }
.sheets-mini .sheet-day { grid-column: 1; grid-row: 1; justify-self: center; position: relative; font-size: 1.6rem; }
.sheets-mini .sheet-name { grid-column: 2; grid-row: 1; margin: 0; font-size: 1rem; }
.sheets-mini .sheet-line { display: none; }
.sheets-mini .sheet-count { grid-column: 2; grid-row: 2; margin: 2px 0 0; padding: 0; background: none; color: var(--muted); font-weight: 600; }
.sheets-mini .is-soon .sheet-count { background: none; color: var(--berry); }

/* ---------- Occasion tiles ---------- */
.tiles { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { display: grid; align-content: start; gap: 4px; height: 100%; padding: 18px 16px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.tile:hover { border-color: var(--blue); color: var(--ink); transform: translateY(-2px); }
.tile-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--berry-tint); color: var(--berry); margin-bottom: 8px; }
.tile-ico .ico { width: 24px; height: 24px; }
.tile-name { font: 700 1.1875rem/1.2 var(--serif); }
.tile-desc { color: var(--muted); font-size: .875rem; line-height: 1.45; }
.tile-count { margin-top: 6px; font-size: .8125rem; font-weight: 700; color: var(--blue); }

/* ---------- Latest ---------- */
.latest { display: grid; gap: 24px; }
.lead { display: grid; background: var(--surface); border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.lead-media { display: block; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.lead-media img { width: 100%; height: 100%; object-fit: cover; }
.lead-body { padding: 20px 22px 24px; display: grid; gap: 8px; }
.lead-body h3 { font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 800; }
.lead-body h3 a, .card-title a, .row-title a { color: var(--ink); text-decoration: none; }
.lead-body h3 a:hover, .card-title a:hover, .row-title a:hover { color: var(--blue-ink); text-decoration: underline; text-decoration-thickness: 1.5px; }
.lead-body p { color: var(--ink-2); }
.rows { list-style: none; display: grid; gap: 4px; align-content: start; }
.row-item { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; padding: 10px; border-radius: var(--r-m); }
.row-item:hover { background: var(--surface); }
.row-media { display: block; aspect-ratio: 1; border-radius: var(--r-s); overflow: hidden; background: var(--surface-2); }
.row-media img { width: 100%; height: 100%; object-fit: cover; }
.row-title { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; margin-top: 2px; }
.rows-search .row-item { grid-template-columns: 96px 1fr; background: var(--surface); border: 1px solid var(--line); }
.rows-search { gap: 10px; }

.kicker { display: inline-block; font-size: .8125rem; font-weight: 700; color: var(--berry); text-decoration: none; letter-spacing: .01em; }
.kicker:hover { color: var(--berry); text-decoration: underline; }

/* Placeholder when a post has no image: calm tint + category icon */
.ph { display: grid; place-items: center; width: 100%; height: 100%; min-height: 100%; background:
	radial-gradient(circle at 30% 30%, var(--berry-tint), transparent 60%), var(--surface-2); color: var(--berry); }
.ph .ico { width: 34%; height: 34%; max-width: 64px; max-height: 64px; opacity: .8; }
.row-media .ph .ico { width: 30px; height: 30px; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; height: 100%; transition: box-shadow .2s ease, transform .2s ease; }
.card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.card-media { display: block; aspect-ratio: 3 / 2; background: var(--surface-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.card-body { display: grid; gap: 6px; padding: 16px 18px 20px; align-content: start; }
.card-title { font-size: 1.25rem; font-weight: 700; line-height: 1.25; }
.card-ex { color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.ad-label { display: inline-block; justify-self: start; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line-2); font-size: .75rem; font-weight: 700; }

/* ---------- Approach ---------- */
.approach-grid { display: grid; gap: 14px; }
.approach-item { padding: 22px; border-radius: var(--r-m); border: 1px dashed var(--line-2); background: var(--surface); }
.approach-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--blue-tint); color: var(--blue-ink); margin-bottom: 12px; }
.approach-ico .ico { width: 22px; height: 22px; }
.approach-item h3 { font-size: 1.25rem; margin-bottom: 6px; }
.approach-item p { color: var(--ink-2); font-size: .9375rem; }

/* ---------- Breadcrumbs ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .875rem; color: var(--muted); padding: 18px 0 0; }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: ""; width: 6px; height: 6px; margin: 0 10px; border-right: 1.5px solid var(--line-2); border-top: 1.5px solid var(--line-2); transform: rotate(45deg); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.crumbs li[aria-current] span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; display: inline-block; vertical-align: bottom; }

/* ---------- Article ---------- */
.article-head { max-width: 860px; padding: 22px 0 8px; display: grid; gap: 14px; }
.article-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.article-head h1 { font-size: clamp(2rem, 6vw, 3.25rem); font-weight: 800; line-height: 1.06; letter-spacing: -.02em; }
.dek { font-size: 1.1875rem; color: var(--ink-2); max-width: 62ch; line-height: 1.55; }
.byline { display: flex; align-items: center; gap: 12px; padding-top: 4px; }
.byline-text { display: grid; gap: 1px; line-height: 1.35; }
.byline-name { font-weight: 700; }
.byline-name a { color: var(--ink); text-decoration: none; }
.byline-name a:hover { color: var(--blue); text-decoration: underline; }
.byline-meta { display: flex; flex-wrap: wrap; gap: 0 14px; color: var(--muted); font-size: .875rem; }
.avatar { display: inline-grid; place-items: center; width: var(--s, 40px); height: var(--s, 40px); border-radius: 50%; background: var(--berry); color: var(--on-berry); font: 800 calc(var(--s, 40px) * .42)/1 var(--serif); object-fit: cover; flex: none; }
img.avatar { background: var(--surface-2); }
.article-hero { margin: 22px 0 0; }
.article-hero img { width: 100%; border-radius: var(--r-l); aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-2); }
.article-hero figcaption, .prose figcaption { font-size: .8125rem; color: var(--muted); margin-top: 8px; }
.article-layout { display: grid; gap: 40px; padding: 28px 0 56px; }
.rail { display: none; }

/* Prose */
.prose { max-width: var(--prose); min-width: 0; font-size: 1.125rem; line-height: 1.75; color: var(--ink); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: clamp(1.625rem, 3.6vw, 2.125rem); font-weight: 800; margin-top: 2.1em; scroll-margin-top: 20px; padding-top: .6em; border-top: 1px solid var(--line); }
.prose h3 { font-size: 1.375rem; font-weight: 700; margin-top: 1.7em; }
.prose h4 { font-size: 1.125rem; font-weight: 700; margin-top: 1.4em; font-family: var(--sans); }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--berry); }
.prose strong { font-weight: 700; }
.prose img { border-radius: var(--r-m); }
.prose figure { margin-left: 0; margin-right: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.prose blockquote:not(.spruch-text) { margin-left: 0; margin-right: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--blue); font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--ink-2); }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.prose .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--surface-2); font-weight: 700; }
.prose .tipp, .prose .note { padding: 16px 18px; border-radius: var(--r-m); background: var(--blue-tint); color: var(--ink); font-size: 1rem; }
.prose .tipp::before { content: "Tipp: "; font-weight: 800; color: var(--blue-ink); }
.note-ad { background: var(--surface-2); border: 1px solid var(--line-2); }
.note-ad strong { display: block; margin-bottom: 4px; }

/* Sprüche */
.prose ul.sprueche { list-style: none; padding: 0; display: grid; gap: 12px; }
.prose ul.sprueche li + li { margin-top: 0; }
.spruch { position: relative; margin: 0; padding: 20px 20px 16px 52px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow); }
.spruch::before { content: "„"; position: absolute; left: 16px; top: 2px; font: 800 3.25rem/1 var(--serif); color: var(--berry); opacity: .9; }
.spruch-text, .prose .spruch-text { margin: 0; padding: 0; border: 0; font: italic 500 1.25rem/1.5 var(--serif); color: var(--ink); text-wrap: pretty; }
.spruch-text p + p { margin-top: .5em; }
.spruch .sp-tools { margin-top: 12px; justify-content: flex-end; }
.spruch:hover { border-color: var(--line-2); }
.prose > * + .spruch { margin-top: 1em; }
.prose > .spruch + .spruch { margin-top: 12px; }
@media (min-width: 640px) {
	.spruch { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 18px; align-items: center; padding: 16px 16px 16px 52px; }
	.spruch::before { top: 4px; }
	.spruch .sp-tools { margin-top: 0; flex-wrap: nowrap; }
}

/* FAQ */
.faq { display: grid; gap: 10px; margin-top: 1em; }
.faq h3 { margin: 0; padding: 16px 18px 0; font-size: 1.1875rem; background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r-m) var(--r-m) 0 0; }
.faq h3 + * { margin: 0; padding: 6px 18px 16px; background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-m) var(--r-m); font-size: 1rem; color: var(--ink-2); }
.faq h3 + p + h3 { margin-top: 0; }
.faq > * + * { margin-top: 0; }

/* TOC */
.toc ol { list-style: none; padding: 0; counter-reset: toc; display: grid; gap: 2px; }
.toc li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 26px 1fr; gap: 6px; padding: 7px 10px; border-radius: var(--r-s); color: var(--ink-2); text-decoration: none; font-size: .9375rem; line-height: 1.4; }
.toc a::before { content: counter(toc); color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.toc a:hover { background: var(--surface-2); color: var(--ink); }
.toc a[aria-current] { background: var(--blue-tint); color: var(--blue-ink); font-weight: 650; }
.toc-inline { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.toc-inline summary { display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; font-weight: 700; list-style: none; }
.toc-inline summary::-webkit-details-marker { display: none; }
.toc-inline summary small { margin-left: auto; color: var(--muted); font-weight: 600; }
.toc-inline summary .ico { color: var(--berry); }
.toc-inline ol { padding: 0 8px 12px; }
.rail-title { font: 700 1.0625rem/1.2 var(--serif); margin-bottom: 10px; padding: 0 10px; }
.rail-box { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.rail-box .rail-title { padding: 0; }

/* Author box */
.authorbox { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; margin-top: 2.6em !important; padding: 22px; border-radius: var(--r-m); background: var(--surface-2); }
.authorbox p { font-size: .9375rem; line-height: 1.55; color: var(--ink-2); }
.authorbox-label { color: var(--muted) !important; font-size: .8125rem !important; font-weight: 700; }
.authorbox .authorbox-name { font: 800 1.375rem/1.2 var(--serif); margin: 2px 0 6px; color: var(--ink); }
.authorbox-name a { color: var(--ink); text-decoration: none; }

/* ---------- Archive ---------- */
.archive-head { background: var(--surface); border-bottom: 1px solid var(--line); padding-bottom: 28px; }
.archive-title { display: flex; align-items: center; gap: 16px; padding-top: 18px; }
.archive-ico { display: grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--berry-tint); color: var(--berry); }
.archive-ico .ico { width: 32px; height: 32px; }
.archive-title h1 { font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; letter-spacing: -.02em; }
.archive-title h1 small { font: 600 1rem/1 var(--sans); color: var(--muted); }
.archive-count { color: var(--muted); font-weight: 600; font-size: .9375rem; margin-top: 4px; display: flex; flex-wrap: wrap; gap: 0 14px; }
.archive-desc { max-width: 70ch; margin-top: 16px; color: var(--ink-2); font-size: 1.0625rem; }
.archive-desc p + p { margin-top: .8em; }
.chips-sub { margin-top: 18px; }
.search-again { margin-top: 18px; }
.profile { display: flex; gap: 20px; align-items: center; padding-top: 18px; }
.profile h1 { font-size: clamp(2rem, 6vw, 2.75rem); font-weight: 800; }
.profile-bio { margin-top: 8px; max-width: 62ch; color: var(--ink-2); }
.empty { padding: 32px; border-radius: var(--r-l); border: 1px dashed var(--line-2); background: var(--surface); display: grid; gap: 14px; justify-items: start; }
.empty-title { font: 700 1.375rem/1.25 var(--serif); }

/* Pagination */
.pager ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 36px; }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); text-decoration: none; font-weight: 700; }
.pager .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pager a:hover { border-color: var(--blue); color: var(--blue-ink); }

/* Pages */
.page-head { padding: 24px 0 22px; display: grid; gap: 12px; }
.page-head h1 { font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; letter-spacing: -.02em; }
.page .prose { padding-bottom: 64px; }
.page-404 .searchform { margin: 6px 0 22px; }
.page-404 { padding-bottom: 64px; }
.big-404 { font: 800 clamp(4.5rem, 16vw, 8rem)/.9 var(--serif); color: var(--berry); letter-spacing: -.04em; }

/* ---------- Footer ---------- */
.footer { --berry: #ee8ab2; --on-berry: #2a0f1d; background: var(--foot); color: var(--foot-ink); padding: 48px 0 24px; margin-top: 0; }
.footer a { color: var(--foot-ink); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .logo { color: #fff; }
.footer .wordmark { color: #fff; }
.footer-grid { display: grid; gap: 32px; }
.footer-about p { color: var(--foot-muted); margin-top: 14px; max-width: 46ch; font-size: .9375rem; }
.footer-mail { display: flex; align-items: center; gap: 8px; }
.footer-mail .ico { width: 18px; height: 18px; }
.footer-col h2 { font: 700 1.125rem/1.2 var(--serif); color: #fff; margin-bottom: 12px; }
.footer-col ul { list-style: none; display: grid; gap: 8px; font-size: .9375rem; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); color: var(--foot-muted); font-size: .875rem; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 60; transform: translate(-50%, 16px); opacity: 0; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 650; font-size: .9375rem; box-shadow: var(--shadow-lift); transition: opacity .2s ease, transform .2s ease; max-width: calc(100vw - 32px); text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* WordPress core classes */
.alignleft { float: left; margin: .3em 1.2em .8em 0; }
.alignright { float: right; margin: .3em 0 .8em 1.2em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption, .wp-block-image { max-width: 100%; }
.wp-block-image figcaption { text-align: left; }
.sticky, .bypostauthor, .gallery-caption { outline: 0; }

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
	:root { --gutter: 24px; }
	.tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.approach-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
	.footer-about { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
	.masthead-row { min-height: 72px; }
	.hero { padding: 64px 0 72px; }
	.hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; }
	.daily { padding: 34px 32px 24px; transform: rotate(.6deg); }
	.sheets { grid-auto-flow: initial; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; padding: 12px 0 0; margin: 0; }
	.sheets-mini { grid-template-columns: 1fr; }
	.tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.latest { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
	.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.cards-archive .card-feature { grid-column: 1 / -1; }
	.cards-archive .card-feature .card { flex-direction: row; }
	.cards-archive .card-feature .card-media { flex: 0 0 56%; aspect-ratio: 16 / 9; }
	.cards-archive .card-feature .card-body { padding: 28px 30px; align-content: center; }
	.cards-archive .card-feature .card-title { font-size: 1.875rem; font-weight: 800; }
	.cards-archive .card-feature .card-ex { font-size: 1.0625rem; }
	.article-layout { grid-template-columns: minmax(0, var(--prose)) minmax(240px, 300px); justify-content: space-between; gap: 56px; }
	.rail { display: block; }
	.rail-sticky { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; scrollbar-width: thin; }
	.toc-inline { display: none; }
	.footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
	.footer-about { grid-column: auto; }
	.section { padding: 64px 0; }
}
@media (max-width: 380px) {
	.wordmark { font-size: 1.3rem; }
	.searchform button { padding: 10px 14px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
	.daily { transform: none !important; }
}
@media print {
	.masthead, .footer, .rail, .sp-tools, .toc, .band-calendar { display: none !important; }
	body { background: #fff; color: #000; }
}
