/*
Theme Name: Schönburger Chronik
Theme URI: https://www.freimaurer-hot.de
Description: Edles Lese-Theme für die Geschichte der Freimaurerei im Schönburger Land. Kapitel-Navigation aus dem Hauptmenü, Inhaltsverzeichnis, Lesefortschritt, automatischer Dark Mode. Schriften (EB Garamond, Cormorant Garamond, SIL OFL) liegen lokal – keine Google Fonts, keine externen Anfragen.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Author: Enrico Schüppel
License: GPL-2.0-or-later
Text Domain: schoenburger-chronik
*/

/* ---------- Schriften (lokal) ---------- */
@font-face {
	font-family: "EB Garamond";
	src: url("assets/fonts/EBGaramond-latin.woff") format("woff");
	font-weight: 400 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "EB Garamond";
	src: url("assets/fonts/EBGaramond-Italic-latin.woff") format("woff");
	font-weight: 400 800;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Cormorant Garamond";
	src: url("assets/fonts/CormorantGaramond-SemiBold-latin.woff") format("woff");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Cormorant Garamond";
	src: url("assets/fonts/CormorantGaramond-SemiBoldItalic-latin.woff") format("woff");
	font-weight: 600;
	font-style: italic;
	font-display: swap;
}

/* ---------- Farben ---------- */
:root {
	--bg: #f3ede1;
	--paper: #fbf8f1;
	--ink: #24211c;
	--muted: #6c6457;
	--line: #e0d5bf;
	--blue: #15213b;
	--blue-2: #22335a;
	--on-blue: #f1ebdd;
	--gold: #9c7a2b;
	--gold-hi: #c9a75a;
	--gold-soft: rgba(201, 167, 90, .16);
	--shadow: 0 1px 2px rgba(36, 33, 28, .05), 0 14px 40px rgba(36, 33, 28, .08);
	--body: "EB Garamond", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
	--display: "Cormorant Garamond", "EB Garamond", Palatino, Georgia, serif;
	--radius: 4px;
}
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0c111d;
		--paper: #131a29;
		--ink: #ebe4d4;
		--muted: #a59e8e;
		--line: #273149;
		--blue: #080c16;
		--blue-2: #121b30;
		--on-blue: #ece5d5;
		--gold: #d4b46c;
		--gold-hi: #d4b46c;
		--gold-soft: rgba(212, 180, 108, .12);
		--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 40px rgba(0, 0, 0, .3);
	}
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 1.25rem/1.7 var(--body);
	font-feature-settings: "kern", "liga", "onum";
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.15; color: inherit; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--paper); color: var(--ink); padding: 8px 14px; }
.skip:focus { left: 16px; }

/* Lesefortschritt */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 150; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-hi), #e8d39a); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Kopfbereich ---------- */
.masthead { background: var(--blue); color: var(--on-blue); position: relative; z-index: 50; }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; min-width: 0; }
.brand__mark { width: 38px; height: 38px; flex: none; color: var(--gold-hi); }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font-family: var(--display); font-weight: 600; font-size: clamp(1.05rem, 2.4vw, 1.4rem); line-height: 1.2; }
.brand__tagline { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-hi); opacity: .9; }

.nav-toggle {
	display: none; align-items: center; gap: 10px; flex: none;
	font: inherit; font-size: .95rem; color: var(--on-blue);
	background: transparent; border: 1px solid rgba(201, 167, 90, .45); border-radius: 999px; padding: 6px 14px; cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .2s; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.mainnav { border-top: 1px solid rgba(201, 167, 90, .22); }
.mainnav ul { list-style: none; margin: 0; padding: 0; }
.mainnav .menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 4px; }
.mainnav li { position: relative; }
.mainnav a {
	display: block; padding: 12px 14px; color: var(--on-blue); text-decoration: none;
	font-size: .9rem; letter-spacing: .12em; text-transform: uppercase;
}
.mainnav a:hover, .mainnav .current-menu-item > a, .mainnav .current_page_item > a,
.mainnav .current-menu-ancestor > a, .mainnav .current_page_ancestor > a { color: var(--gold-hi); }
.mainnav .menu-item-has-children > a::after, .mainnav .page_item_has_children > a::after { content: " ▾"; font-size: .8em; opacity: .7; }
.mainnav .sub-menu, .mainnav .children {
	position: absolute; left: 50%; top: 100%; min-width: 260px; transform: translate(-50%, 6px);
	background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--gold-hi);
	box-shadow: var(--shadow); padding: 8px 0; opacity: 0; visibility: hidden; transition: opacity .15s, transform .15s;
}
.mainnav li:hover > .sub-menu, .mainnav li:focus-within > .sub-menu,
.mainnav li:hover > .children, .mainnav li:focus-within > .children { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mainnav .sub-menu a, .mainnav .children a { color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 1.05rem; padding: 7px 20px; }
.mainnav .sub-menu a:hover, .mainnav .children a:hover { background: var(--gold-soft); color: var(--ink); }
.mainnav .sub-menu .current-menu-item > a, .mainnav .children .current_page_item > a { color: var(--gold); }

@media (max-width: 999px) {
	.nav-toggle { display: inline-flex; }
	.mainnav { display: none; }
	.mainnav.is-open { display: block; }
	.mainnav .menu { display: block; padding: 8px 0 16px; }
	.mainnav a { padding: 10px 4px; border-bottom: 1px solid rgba(201, 167, 90, .14); }
	.mainnav .sub-menu, .mainnav .children {
		position: static; transform: none; opacity: 1; visibility: visible; min-width: 0;
		background: transparent; border: 0; box-shadow: none; padding: 0 0 0 18px;
	}
	.mainnav .sub-menu a, .mainnav .children a { color: var(--on-blue); font-size: 1.05rem; padding: 8px 4px; }
	.mainnav .sub-menu a:hover, .mainnav .children a:hover { background: transparent; color: var(--gold-hi); }
	.mainnav .menu-item-has-children > a::after, .mainnav .page_item_has_children > a::after { content: ""; }
	.brand__tagline { font-size: .7rem; }
}
@media (max-width: 600px) {
	.brand__tagline { display: none; }
	.brand__name { font-size: 1rem; }
	.brand__mark { width: 32px; height: 32px; }
	.nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.nav-toggle { padding: 10px 12px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--blue-2); color: var(--on-blue); text-align: center; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-hi), transparent); opacity: .6; }
.hero__inner { position: relative; z-index: 1; max-width: 900px; }
.hero--front { padding: clamp(72px, 14vw, 170px) 0 clamp(80px, 14vw, 170px); background: var(--blue) var(--hero-img, none) center / cover no-repeat; }
.hero--front .hero__veil {
	position: absolute; inset: 0;
	background:
		radial-gradient(ellipse at 50% 40%, rgba(12, 17, 29, .35), rgba(12, 17, 29, .82) 75%),
		linear-gradient(180deg, rgba(21, 33, 59, .55), rgba(12, 17, 29, .85));
}
.hero--page {
	padding: clamp(44px, 7vw, 76px) 0 clamp(48px, 7vw, 80px);
	background:
		radial-gradient(ellipse at 50% -40%, rgba(201, 167, 90, .2), transparent 60%),
		linear-gradient(180deg, var(--blue), var(--blue-2));
}
.hero__mark { width: 64px; height: 64px; color: var(--gold-hi); margin-bottom: 20px; }
.hero__title { margin: 0; font-size: clamp(2.1rem, 5.6vw, 3.9rem); letter-spacing: .005em; text-wrap: balance; }
.hero--front .hero__title { font-size: clamp(2.2rem, 6vw, 4.4rem); text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.eyebrow { margin: 0 0 14px; font-size: .85rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-hi); }
.eyebrow a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(201, 167, 90, .5); }
.eyebrow--dark { color: var(--gold); }

/* ---------- Ornament ---------- */
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); margin: 28px auto; max-width: 320px; }
.ornament span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament__mark { width: 26px; height: 26px; flex: none; }

/* ---------- Blatt (Inhaltsfläche) ---------- */
.sheet {
	position: relative; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow);
	padding: clamp(28px, 6vw, 72px) clamp(20px, 6vw, 80px); border-radius: var(--radius); min-width: 0;
}
.sheet::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--gold-soft); pointer-events: none; }
.sheet--front { width: min(880px, 100% - 32px); margin: -64px auto 0; z-index: 2; }
.sheet__head { text-align: center; }
.sheet__title { margin: 0; font-size: clamp(2rem, 4.5vw, 2.8rem); }
.sheet__lead { margin: 0 0 32px; }
.sheet__lead img { display: block; width: 100%; }
.meta { color: var(--muted); font-style: italic; margin-top: 0; }

/* Leser-Layout */
.reader { display: grid; gap: 32px; padding: 48px 0 80px; }
.reader > .sheet:only-child { width: min(880px, 100%); margin-inline: auto; }
.reader--toc { grid-template-columns: 1fr; }
@media (min-width: 1000px) {
	.reader--toc { grid-template-columns: 270px minmax(0, 1fr); align-items: start; }
	.reader__aside { position: sticky; top: 24px; }
}

/* Inhaltsverzeichnis */
.toc-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.toc-box > summary {
	cursor: pointer; list-style: none; padding: 14px 18px;
	font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
	display: flex; justify-content: space-between; align-items: center;
}
.toc-box > summary::-webkit-details-marker { display: none; }
.toc-box > summary::after { content: "+"; font-size: 1.2rem; line-height: 1; }
.toc-box[open] > summary::after { content: "–"; }
.toc { padding: 0 8px 12px; }
.toc__title { margin: 0 10px 8px; font-family: var(--display); font-size: 1.35rem; font-weight: 600; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.toc__list { list-style: none; margin: 0; padding: 0; }
.toc__list a { display: flex; gap: 10px; padding: 6px 10px; color: var(--ink); text-decoration: none; font-size: 1.04rem; line-height: 1.35; border-left: 2px solid transparent; }
.toc__list a:hover { background: var(--gold-soft); }
.toc__list .is-current a { border-left-color: var(--gold); background: var(--gold-soft); color: var(--gold); }
.toc__num { flex: none; width: 2.4em; font-family: var(--display); font-weight: 600; color: var(--gold); text-align: right; }

/* ---------- Fließtext ---------- */
.prose { max-width: 68ch; margin-inline: auto; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.prose > * { margin-block: 0 1.1em; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: 2rem; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 1.55rem; margin: 1.4em 0 .4em; }
.prose h4 { font-size: 1.25rem; margin: 1.2em 0 .4em; }
.prose strong, .prose b { font-weight: 600; }
.prose sup { font-size: .7em; line-height: 0; }
.prose hr, .prose .wp-block-separator { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 2.4em auto; max-width: 320px; opacity: 1; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li::marker { color: var(--gold); }

/* Initiale im ersten Absatz eines Kapitels */
.sheet--chapter .prose > p:first-of-type::first-letter {
	float: left; font-family: var(--display); font-weight: 600; color: var(--gold);
	font-size: 4.3em; line-height: .82; padding: .06em .1em 0 0;
}

/* Zitate */
.prose blockquote, .prose .wp-block-quote {
	margin: 1.8em 0; padding: .4em 0 .4em 1.4em; border-left: 2px solid var(--gold);
	font-style: italic; font-size: 1.1em; color: var(--ink);
}
.prose blockquote cite, .prose .wp-block-quote cite { display: block; margin-top: .6em; font-style: normal; font-size: .82em; color: var(--muted); letter-spacing: .04em; }
.prose .wp-block-pullquote { border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); padding: 1.6em 0; text-align: center; }
.prose .wp-block-pullquote blockquote { border: 0; padding: 0; margin: 0; font-family: var(--display); font-size: 1.6em; }
.prose .wp-block-verse, .prose pre.wp-block-verse { font-family: var(--body); font-style: italic; white-space: pre-wrap; background: transparent; padding: 0 0 0 1.4em; border-left: 2px solid var(--gold); }

/* Bilder */
.prose figure, .prose .wp-block-image { margin: 2em auto; }
.prose .wp-block-image img, .prose figure img { display: block; height: auto; border: 1px solid var(--line); padding: 6px; background: var(--paper); box-shadow: 0 6px 24px rgba(36, 33, 28, .1); }
.prose figcaption, .prose .wp-element-caption, .prose .wp-caption-text {
	margin-top: .7em; text-align: center; font-style: italic; font-size: .92rem; line-height: 1.45; color: var(--muted);
}
.prose .alignleft { float: left; margin: .3em 1.6em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.6em; max-width: 50%; }
.prose .aligncenter { margin-inline: auto; text-align: center; }
.prose .aligncenter img { margin-inline: auto; }
.prose .alignwide { max-width: min(1000px, 100%); }
.prose .wp-block-gallery { gap: 12px; }
@media (max-width: 600px) { .prose .alignleft, .prose .alignright { float: none; margin: 1.6em auto; max-width: 100%; } }
.prose::after { content: ""; display: table; clear: both; }

/* Tabellen */
.prose table { width: 100%; border-collapse: collapse; font-size: .95em; font-feature-settings: "lnum", "tnum"; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .5em .7em; text-align: left; vertical-align: top; }
.prose th { font-family: var(--display); font-size: 1.1em; border-bottom: 2px solid var(--gold); }
.prose .wp-block-table { overflow-x: auto; }

/* Buttons (z. B. „weiter →“) */
.wp-block-button__link, .wp-element-button, .prose .button, button[type="submit"], input[type="submit"] {
	display: inline-block; font-family: var(--body); font-size: 1rem; letter-spacing: .14em; text-transform: uppercase;
	color: var(--gold) !important; background: transparent !important; border: 1px solid var(--gold) !important;
	border-radius: 2px !important; padding: .6em 1.6em !important; text-decoration: none; cursor: pointer; transition: background .15s, color .15s;
}
.wp-block-button__link:hover, .wp-element-button:hover, button[type="submit"]:hover, input[type="submit"]:hover {
	background: var(--gold) !important; color: var(--paper) !important;
}

/* Formulare (Kontaktformular, Suche) */
input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="search"], input[type="number"], textarea, select {
	width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--bg);
	border: 1px solid var(--line); border-radius: 2px; padding: .55em .75em;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
input[type="file"] { font: inherit; font-size: 1rem; color: var(--muted); max-width: 100%; }
label, .grunion-field-label { font-size: 1rem; color: var(--muted); }
.searchform { display: flex; gap: 10px; margin-top: 1em; }
.searchform button { flex: none; }

/* ---------- Kontaktformular [kontaktformular] ---------- */
.cf { margin-top: 2em; scroll-margin-top: 24px; }
.cf > * { margin-block: 0 1.3em; }
.cf-row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 600px) { .cf-row--2 { grid-template-columns: 1fr; } }
.cf-field { margin: 0 0 1.2em; }
.cf-field label, .cf-files legend { display: block; margin-bottom: .3em; font-size: 1rem; color: var(--ink); letter-spacing: .02em; }
.cf-req { color: var(--gold); }
.cf-opt { color: var(--muted); font-size: .92em; font-style: italic; }
.cf select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2em; }
.cf textarea { min-height: 9em; resize: vertical; line-height: 1.5; }
.cf [aria-invalid="true"] { border-color: #b4452f; box-shadow: 0 0 0 3px rgba(180, 69, 47, .12); }
.cf-error { margin: .35em 0 0; color: #b4452f; font-size: .95rem; }
@media (prefers-color-scheme: dark) { .cf-error { color: #f08f78; } .cf [aria-invalid="true"] { border-color: #f08f78; } }
.cf-alert { padding: .8em 1em; border-left: 3px solid #b4452f; background: rgba(180, 69, 47, .08); font-size: 1.02rem; }
.cf-alert:focus { outline: none; }
.cf-files { border: 1px solid var(--line); padding: 1em 1.2em 1.1em; margin: 0 0 1.3em; }
.cf-files legend { padding: 0 .4em; margin-left: -.4em; }
.cf-hint { margin: 0 0 .7em; font-size: .95rem; color: var(--muted); }
.cf input[type="file"] { width: 100%; padding: .7em; border: 1px dashed var(--gold); background: var(--bg); cursor: pointer; }
.cf input[type="file"]::file-selector-button { font: inherit; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); background: transparent; border: 1px solid var(--gold); padding: .35em 1em; margin-right: 1em; cursor: pointer; }
.cf-filelist { list-style: none; margin: .5em 0 0; padding: 0; font-size: .95rem; color: var(--muted); }
.cf-filelist li::before { content: "▸ "; color: var(--gold); }
.cf-filelist .is-bad, .cf-filelist .is-msg { color: #b4452f; }
.cf-filelist .is-msg::before { content: "⚠ "; }
.cf-rights { margin-top: 1em; padding-top: .9em; border-top: 1px dashed var(--line); opacity: .65; transition: opacity .2s; }
.cf-rights.is-needed { opacity: 1; }
.cf-check { display: flex; gap: .7em; align-items: flex-start; margin: 0 0 .6em; }
.cf-check input { flex: none; width: 1.15em; height: 1.15em; margin-top: .3em; accent-color: var(--gold); }
.cf-check label { font-size: 1rem; line-height: 1.45; color: var(--ink); }
.cf-captcha input { max-width: 12em; }
.cf-captcha strong { font-weight: 600; color: var(--gold); }
.cf-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-submit { margin: 1.6em 0 .8em; }
.cf button[disabled] { opacity: .6; cursor: wait; }
.cf-privacy { font-size: .92rem; line-height: 1.5; color: var(--muted); }
.cf-success { text-align: center; padding: 2em 1em; border: 1px solid var(--gold); background: var(--gold-soft); scroll-margin-top: 24px; }
.cf-success:focus { outline: none; }
.cf-success__mark { width: 44px; height: 44px; color: var(--gold); }
.cf-success__title { font-family: var(--display); font-weight: 600; font-size: 1.6rem; margin: .3em 0 .2em; }

/* Blätter-Navigation */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 68ch; margin: 0 auto; }
.pager__link { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, background .15s; }
.pager__link:hover { border-color: var(--gold); background: var(--gold-soft); }
.pager__link--next { text-align: right; grid-column: 2; }
.pager__dir { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.pager__title { font-family: var(--display); font-weight: 600; font-size: 1.3rem; line-height: 1.25; }
@media (max-width: 600px) { .pager { grid-template-columns: 1fr; } .pager__link--next { grid-column: 1; } .pager > span:empty { display: none; } }

/* ---------- Startseite: Kapitelübersicht ---------- */
.chapters { padding: 72px 0 88px; text-align: center; }
.chapters__title { margin: 0 0 36px; font-size: clamp(2rem, 4.5vw, 2.8rem); }
.chapters__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; text-align: left; }
.chapter-card {
	display: flex; align-items: baseline; gap: 14px; height: 100%; padding: 18px 20px;
	background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
	transition: border-color .15s, transform .15s, box-shadow .15s;
}
.chapter-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); }
.chapter-card__num { flex: none; min-width: 2.2em; font-family: var(--display); font-weight: 600; font-size: 1.25rem; color: var(--gold); }
.chapter-card__title { font-family: var(--display); font-weight: 600; font-size: 1.35rem; line-height: 1.25; }

/* Suchergebnisse */
.results { list-style: none; margin: 0; padding: 0; }
.results li { padding: 1em 0; border-bottom: 1px solid var(--line); }
.results__title { font-family: var(--display); font-weight: 600; font-size: 1.5rem; text-decoration: none; }
.results p { margin: .3em 0 0; color: var(--muted); }
.nav-links { display: flex; gap: 10px; margin-top: 1.4em; }

/* ---------- Fußbereich ---------- */
.colophon { background: var(--blue); color: rgba(241, 235, 221, .78); text-align: center; border-top: 1px solid rgba(201, 167, 90, .35); }
.colophon__inner { padding: 44px 0 40px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.colophon__mark { width: 34px; height: 34px; color: var(--gold-hi); margin-bottom: 6px; }
.colophon__name { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: var(--on-blue); }
.footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; margin: 8px 0 0; padding: 0; }
.footer-nav a { color: var(--gold-hi); font-size: 1rem; }
.colophon__copy { margin: 10px 0 0; font-size: .9rem; opacity: .75; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; }
}
@media print {
	.masthead, .colophon, .progress, .reader__aside, .pager, .hero__mark { display: none !important; }
	body { background: #fff; color: #000; font-size: 12pt; }
	.hero { background: none !important; color: #000; padding: 0 0 12pt; }
	.sheet { box-shadow: none; border: 0; padding: 0; }
	.sheet::before { display: none; }
}
