/* ==========================================================================
   Werben & Altmark – Geschichtsportal
   Modern-editorial: viel Weißraum, Serifen für Titel und Lesetext,
   Ziegelrot der Backsteingotik als Akzent.
   ========================================================================== */

:root {
	--ink: #1c1917;
	--ink-2: #44403c;
	--muted: #78716c;
	--line: #e7e2da;
	--line-strong: #d6cfc4;
	--paper: #ffffff;
	--paper-2: #f7f4ef;
	--paper-3: #efe9e0;
	--accent: #9a3b26;
	--accent-2: #b5482f;
	--accent-soft: #f6e9e4;
	--accent-ink: #6e2a1a;
	--slate: #1f2a30;
	--slate-2: #2c3a42;
	--gold: #c99a3b;
	--font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
	--font-serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
	--font-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--wrap: 1180px;
	--radius: 10px;
	--shadow: 0 1px 2px rgba(28, 25, 23, .06), 0 8px 24px -12px rgba(28, 25, 23, .18);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-ui);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--paper);
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-ink); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; }
small { font-size: .85em; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

.eyebrow {
	font-family: var(--font-ui);
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--accent);
	margin: 0 0 .6rem;
}
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.lead { font-family: var(--font-serif); font-size: 1.22rem; line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.more-link { font-weight: 600; text-decoration: none; white-space: nowrap; }
.more-link::after { content: " →"; }
.more-link:hover { text-decoration: underline; }
.section-title { font-size: 1.45rem; margin-bottom: 1rem; }
.empty, .empty-state p { color: var(--muted); }

.badge {
	display: inline-block;
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: .15em .55em;
	border-radius: 999px;
	background: var(--paper-3);
	color: var(--ink-2);
	vertical-align: middle;
}
.badge-book { background: var(--accent-soft); color: var(--accent-ink); }
.badge-brochure { background: #fdf1d6; color: #7a5a12; }
.badge-notext { background: #eceff1; color: #546e7a; text-transform: none; letter-spacing: 0; font-weight: 500; }

.notice { max-width: 68ch; padding: 1.5rem 1.75rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--paper-2); }
.notice h2 { font-size: 1.35rem; }
.notice p:last-child { margin-bottom: 0; }
.work-body-notext { padding-bottom: 3rem; }

.button {
	display: inline-block;
	padding: .8rem 1.4rem;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid var(--line-strong);
	color: var(--ink);
	background: var(--paper);
}
.button-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button-primary:hover { background: var(--accent-ink); color: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
	display: inline-block;
	padding: .35rem .8rem;
	border-radius: 999px;
	border: 1px solid var(--line-strong);
	background: var(--paper);
	color: var(--ink-2);
	font-size: .9rem;
	text-decoration: none;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, .94);
	backdrop-filter: saturate(140%) blur(8px);
	border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.32rem; letter-spacing: -.01em; }
.brand-name em { font-style: italic; color: var(--accent); font-weight: 500; font-size: .85em; margin: 0 .06em; }
.brand-claim { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: .2rem; }
.brand-light { color: #fff; }
.brand-light .brand-claim { color: rgba(255, 255, 255, .6); }

.site-nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.site-nav > a {
	padding: .5rem .75rem;
	border-radius: 6px;
	color: var(--ink-2);
	text-decoration: none;
	font-weight: 500;
	font-size: .96rem;
}
.site-nav > a:hover { background: var(--paper-2); color: var(--ink); }
.site-nav > a[aria-current="page"] { color: var(--accent); font-weight: 600; }

.header-search { display: flex; align-items: center; margin-left: .5rem; border: 1px solid var(--line-strong); border-radius: 999px; padding: .15rem .25rem .15rem .9rem; background: var(--paper); }
.header-search input { border: 0; outline: 0; width: 150px; background: transparent; font-size: .92rem; color: var(--ink); }
.header-search input:focus { width: 210px; }
.header-search button { border: 0; background: var(--accent); color: #fff; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.header-search button:hover { background: var(--accent-ink); }

.nav-toggle { display: none; margin-left: auto; align-items: center; gap: .5rem; background: none; border: 1px solid var(--line-strong); border-radius: 8px; padding: .45rem .75rem; cursor: pointer; color: var(--ink); }
.nav-toggle-bars { position: relative; width: 18px; height: 2px; background: currentColor; display: block; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

/* Breadcrumbs */
.crumbs { padding-top: 1.1rem; font-size: .85rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; }
.crumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   Hero (Startseite)
   -------------------------------------------------------------------------- */
.hero {
	background:
		radial-gradient(1200px 500px at 85% -10%, rgba(154, 59, 38, .10), transparent 60%),
		radial-gradient(800px 400px at 0% 100%, rgba(201, 154, 59, .12), transparent 60%),
		var(--paper-2);
	border-bottom: 1px solid var(--line);
}
.hero-inner { padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); max-width: 860px; }
/* Startseite: Merian-Stich von Werben (um 1650) füllt den Hero ungefiltert; Überschrift, Text und
   Suche liegen auf einer halbtransparenten Papierfläche, die den Stich dahinter leicht weichzeichnet. */
.hero-merian { position: relative; overflow: hidden; }
.hero-merian::before {
	content: ""; position: absolute; inset: 0;
	background: url("/assets/img/werben-merian-1650.jpg?v=3") 22% 58% / cover no-repeat;
	opacity: .96; pointer-events: none;
	/* nach oben weich ausblenden (Übergang zum Seitenkopf) */
	-webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .55) 22%, #000 48%);
	mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .55) 22%, #000 48%);
}
.hero-merian .hero-inner {
	position: relative; z-index: 1;
	margin-block: clamp(2rem, 5vw, 3.5rem);
	margin-inline: max(1.25rem, (100% - var(--wrap)) / 2) auto; /* linksbündig mit dem Seitenraster, rechts bleibt die Stadt frei */
	padding: clamp(1.5rem, 3.5vw, 2.75rem) clamp(1.25rem, 3.5vw, 2.75rem);
	background: rgba(255, 252, 247, .7);
	-webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
	border: 1px solid rgba(255, 255, 255, .75);
	border-radius: 18px;
	box-shadow: 0 14px 44px rgba(60, 40, 20, .16);
}
.hero-merian .hero-search { box-shadow: 0 4px 16px rgba(60, 40, 20, .12); }
/* Zoom-Knopf im Hero (erscheint beim Überfahren, auf Touch-Geräten immer) */
.hero-zoom {
	position: absolute; z-index: 2; top: 1rem; right: 1rem;
	display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .95rem;
	border-radius: 999px; background: rgba(28, 25, 23, .78); color: #fff;
	font: 600 .85rem var(--font-ui); text-decoration: none; letter-spacing: .01em;
	-webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
	box-shadow: 0 6px 20px rgba(28, 25, 23, .25);
	opacity: 0; transform: translateY(-4px);
	transition: opacity .2s, transform .2s, background .15s;
}
.hero-zoom svg { width: 18px; height: 18px; }
.hero-merian:hover .hero-zoom, .hero-zoom:focus-visible { opacity: 1; transform: none; }
.hero-zoom:hover { background: var(--accent); color: #fff; }
@media (hover: none) { .hero-zoom { opacity: 1; transform: none; } }

/* Zoombare Ansicht (Kachelbilder), als Modal auf der Startseite und als eigene Seite /bild/… */
.zoom-view { position: relative; display: flex; flex-direction: column; background: #1c1917; color: #fff; border-radius: var(--radius); overflow: hidden; }
.zoom-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem .6rem .5rem 1rem; background: rgba(0, 0, 0, .35); font-family: var(--font-ui); font-size: .85rem; }
.zoom-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zoom-title strong { font-family: var(--font-display); font-weight: 600; font-size: 1rem; margin-right: .6rem; }
.zoom-title span { color: rgba(255, 255, 255, .68); }
.zoom-buttons { display: flex; gap: .35rem; flex-shrink: 0; }
.zoom-buttons button { width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 8px; background: rgba(255, 255, 255, .08); color: #fff; font: 600 1.15rem/1 var(--font-ui); cursor: pointer; display: grid; place-items: center; }
.zoom-buttons button:hover { background: var(--accent); border-color: var(--accent); }
.zoom-buttons .zoom-close { margin-left: .4rem; }
.zoom-stage { flex: 1; min-height: 0; }
.zoom-error { padding: 2rem; color: #fff; font-family: var(--font-ui); }
.zoom-page .zoom-view { height: min(78vh, 900px); min-height: 420px; margin-top: 1.25rem; box-shadow: var(--shadow); }
.zoom-meta { color: var(--muted); font-family: var(--font-ui); font-size: .9rem; margin: .4rem 0 0; }
.zoom-hint { color: var(--muted); font-family: var(--font-ui); font-size: .85rem; margin: .75rem 0 2.5rem; }
.zoom-modal { position: fixed; inset: 0; z-index: 1000; background: #1c1917; }
.zoom-modal .zoom-view { position: absolute; inset: 0; border-radius: 0; }
body.zoom-open { overflow: hidden; }

.hero-credit {
	position: absolute; z-index: 1; right: 1rem; bottom: .6rem; margin: 0;
	font-size: .72rem; letter-spacing: .04em; color: var(--muted);
	background: rgba(247, 244, 239, .75); padding: .2rem .55rem; border-radius: 999px;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); max-width: 16ch; margin-bottom: 1rem; }
.hero-lead { font-family: var(--font-serif); font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.55; color: var(--ink-2); max-width: 60ch; margin-bottom: 1.8rem; }

.hero-search { display: flex; max-width: 640px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--paper); box-shadow: var(--shadow); overflow: hidden; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 1rem 1.2rem; font-size: 1.05rem; background: transparent; }
.hero-search input:focus { box-shadow: inset 0 0 0 2px var(--accent-soft); }
.hero-search button { border: 0; background: var(--accent); color: #fff; font-weight: 600; padding: 0 1.5rem; cursor: pointer; }
.hero-search button:hover { background: var(--accent-ink); }

.hero-stats { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2.2rem; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; line-height: 1.1; color: var(--ink); }
.hero-stats span { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* --------------------------------------------------------------------------
   Sections & Grids
   -------------------------------------------------------------------------- */
.section { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.section-slim { padding: clamp(1.5rem, 3vw, 2.5rem) 0; }
.section-tint { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.section-head h2 { margin-bottom: 0; }
.section-head .eyebrow { margin-bottom: .35rem; }

.page-head { padding: clamp(1.5rem, 3vw, 2.5rem) 0 1.5rem; }
.page-head h1 { margin-bottom: .6rem; max-width: 24ch; }
.page-head-meta { color: var(--muted); font-size: .95rem; }
.page-head-spacer { height: clamp(1.5rem, 3vw, 2.5rem); }
.page-head .hero-search { margin-top: 1.4rem; }

.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.topic-grid-large { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.topic-card {
	display: flex;
	flex-direction: column;
	gap: .35rem;
	padding: 1.25rem 1.25rem 1.35rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
	text-decoration: none;
	color: var(--ink);
	transition: border-color .15s, transform .15s, box-shadow .15s;
	position: relative;
}
.topic-card::before { content: ""; position: absolute; left: 0; top: 1.1rem; bottom: 1.1rem; width: 3px; background: var(--accent); border-radius: 3px; opacity: .85; }
.topic-card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.topic-card-count { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.topic-card-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
.topic-card-short { font-size: .92rem; color: var(--ink-2); }

/* Werk-Karten */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.work-card { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.work-card-title { font-size: 1.08rem; margin-bottom: .3rem; }
.work-card-title a { color: var(--ink); text-decoration: none; }
.work-card-title a:hover { color: var(--accent); }
.work-card-meta, .work-card-foot { font-size: .82rem; color: var(--muted); margin-bottom: .35rem; }
.work-card-teaser { font-family: var(--font-serif); font-size: .95rem; color: var(--ink-2); margin-bottom: .4rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.work-card-foot { margin-bottom: 0; }

/* Typografisches Cover */
.work-cover {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	aspect-ratio: 3 / 4;
	padding: .7rem .7rem .6rem;
	border-radius: 4px 8px 8px 4px;
	background: linear-gradient(160deg, var(--slate) 0%, var(--slate-2) 100%);
	color: #fff;
	text-decoration: none;
	box-shadow: inset 4px 0 0 rgba(255, 255, 255, .12), 0 6px 14px -8px rgba(0, 0, 0, .5);
	overflow: hidden;
}
.work-cover.type-book, .type-book .work-cover { background: linear-gradient(160deg, #7f2f1d 0%, var(--accent) 100%); }
.work-cover.type-brochure, .type-brochure .work-cover { background: linear-gradient(160deg, #8a6a1f 0%, var(--gold) 100%); }
.work-cover-type { font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.work-cover-title { font-family: var(--font-display); font-size: .78rem; line-height: 1.2; font-weight: 600; overflow: hidden; }
.work-cover-year { font-size: .7rem; opacity: .8; }

/* Lesetipps */
.highlight-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.highlight { display: grid; grid-template-columns: 110px 1fr; gap: 1.2rem; }
.highlight h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.highlight h3 a { color: var(--ink); text-decoration: none; }
.highlight h3 a:hover { color: var(--accent); }
.highlight-meta { font-size: .82rem; color: var(--muted); margin-bottom: .5rem; }
.highlight-body p:last-child { font-family: var(--font-serif); color: var(--ink-2); margin-bottom: 0; }

/* Bücherregal */
.shelf { display: flex; gap: .9rem; overflow-x: auto; padding: .5rem .25rem 1.25rem; scroll-snap-type: x proximity; border-bottom: 6px solid var(--paper-3); }
.shelf-book {
	flex: 0 0 150px;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 210px;
	padding: .9rem .9rem .8rem;
	border-radius: 4px 10px 10px 4px;
	background: linear-gradient(160deg, #7f2f1d 0%, var(--accent) 100%);
	color: #fff;
	text-decoration: none;
	box-shadow: inset 5px 0 0 rgba(255, 255, 255, .14), 0 10px 18px -10px rgba(0, 0, 0, .55);
	transition: transform .15s;
}
.shelf-book:nth-child(3n) { background: linear-gradient(160deg, var(--slate) 0%, var(--slate-2) 100%); }
.shelf-book:nth-child(4n+2) { background: linear-gradient(160deg, #8a6a1f 0%, var(--gold) 100%); }
.shelf-book:hover { transform: translateY(-4px); color: #fff; }
.shelf-year { font-size: .72rem; letter-spacing: .1em; opacity: .8; }
.shelf-title { font-family: var(--font-display); font-weight: 600; font-size: .98rem; line-height: 1.2; margin: .6rem 0; }
.shelf-meta { font-size: .72rem; opacity: .8; }

/* Zwei Spalten */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.panel { padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.panel h2 { font-size: 1.6rem; }
.panel-author { display: grid; grid-template-columns: 150px 1fr; gap: 1.5rem; align-items: start; background: var(--paper-2); }
.author-portrait { width: 150px; height: auto; border-radius: 6px; box-shadow: var(--shadow); object-fit: cover; }

.decade-bars { display: flex; flex-direction: column; gap: .3rem; margin: 1rem 0 1.2rem; }
.decade-bars a { display: grid; grid-template-columns: 62px 1fr 34px; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink-2); font-size: .85rem; }
.decade-bar { height: 10px; background: var(--paper-3); border-radius: 5px; overflow: hidden; }
.decade-bar span { display: block; height: 100%; width: calc(var(--n) * 3%); max-width: 100%; background: var(--accent); border-radius: 5px; }
.decade-bars a:hover .decade-bar span { background: var(--accent-ink); }
.decade-count { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

.series-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.series-chips a { display: inline-flex; align-items: center; gap: .6rem; padding: .5rem .9rem; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--paper); text-decoration: none; color: var(--ink); font-size: .92rem; }
.series-chips a:hover { border-color: var(--accent); color: var(--accent); }
.series-chips small { background: var(--paper-3); border-radius: 999px; padding: .05em .5em; color: var(--muted); font-weight: 600; }

/* --------------------------------------------------------------------------
   Listen
   -------------------------------------------------------------------------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: .25rem; }
.tabs a { padding: .5rem .9rem; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-weight: 500; }
.tabs a small { color: var(--muted); margin-left: .3rem; }
.tabs a[aria-current="page"] { background: var(--ink); color: #fff; }
.tabs a[aria-current="page"] small { color: rgba(255, 255, 255, .7); }
.filter input { width: min(360px, 80vw); padding: .55rem .9rem; border: 1px solid var(--line-strong); border-radius: 8px; }
.filter-empty { color: var(--muted); padding: 1rem 0; }

.list-group { margin-bottom: 2rem; }
.list-group-title { font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-family: var(--font-ui); font-weight: 600; padding-bottom: .5rem; border-bottom: 1px solid var(--line); margin-bottom: .25rem; }
.work-list { display: flex; flex-direction: column; }
.work-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem; align-items: baseline; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.work-row-year { font-family: var(--font-display); font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.work-row-title { font-family: var(--font-serif); font-size: 1.08rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.work-row-title:hover { color: var(--accent); }
.work-row-meta { display: block; font-size: .85rem; color: var(--muted); margin-top: .15rem; }
.work-row-side { font-size: .82rem; color: var(--muted); white-space: nowrap; }

.series-list { display: flex; flex-direction: column; }
.series-item { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.series-item-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.series-item-title:hover { color: var(--accent); }
.series-item-short { grid-column: 1; font-size: .92rem; color: var(--muted); }
.series-item-count { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--muted); font-size: .9rem; white-space: nowrap; }

.chapter-group { margin-bottom: 1.5rem; }
.chapter-group h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.chapter-group h3 a { color: var(--ink); text-decoration: none; }
.chapter-group h3 a:hover { color: var(--accent); }
.chapter-group h3 small { color: var(--muted); font-weight: 400; font-family: var(--font-ui); }
.chapter-hit-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .25rem 1.5rem; }
.chapter-hit-list li { padding: .3rem 0; border-bottom: 1px dotted var(--line-strong); font-size: .95rem; }
.chapter-hit-list a { text-decoration: none; color: var(--ink-2); }
.chapter-hit-list a:hover { color: var(--accent); }
.chapter-hit-list small { color: var(--muted); }

/* --------------------------------------------------------------------------
   Werkseite
   -------------------------------------------------------------------------- */
.work-head { padding: clamp(1.5rem, 3vw, 2.5rem) 0 1.5rem; }
.work-head h1 { max-width: 28ch; }
.work-head .eyebrow span + span { margin-left: .5rem; color: var(--muted); letter-spacing: 0; text-transform: none; font-size: .95rem; }
.work-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, max-content)); gap: .6rem 2.5rem; margin: 1.2rem 0; font-size: .95rem; }
.work-facts dt { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.work-facts dd { margin: 0; color: var(--ink-2); }
.work-topics { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.work-topics-label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.work-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; padding-bottom: 3rem; }
.work-teaser { padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; border-left: 3px solid var(--accent); background: var(--paper-2); border-radius: 0 var(--radius) var(--radius) 0; }
.work-teaser-text { font-family: var(--font-serif); font-size: 1.1rem; line-height: 1.6; color: var(--ink-2); margin: 0; }
.toc { margin-top: 2rem; }
.toc h2 { font-size: 1.4rem; }
.toc-list { counter-reset: toc; border-top: 1px solid var(--line); }
.toc-item { border-bottom: 1px solid var(--line); }
.toc-item a { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem .25rem; text-decoration: none; color: var(--ink); }
.toc-item a:hover { background: var(--paper-2); color: var(--accent); }
.toc-item.depth-0 .toc-title { font-family: var(--font-serif); font-weight: 600; }
.toc-item.depth-1 a, .toc-item.depth-1 > .toc-title { padding-left: 1.75rem; }
.toc-item.toc-heading .toc-title { display: block; padding: .7rem .25rem .3rem; font-family: var(--font-display); font-weight: 600; color: var(--ink-2); }
.toc-item.depth-1.toc-heading .toc-title { padding-left: 1.75rem; }
.toc-meta { font-size: .8rem; color: var(--muted); white-space: nowrap; }

.aside-box { padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); margin-bottom: 1.25rem; }
.aside-box h2 { font-size: 1.05rem; margin-bottom: .6rem; }
.aside-search { display: flex; gap: .4rem; }
.aside-search input { flex: 1; min-width: 0; padding: .5rem .7rem; border: 1px solid var(--line-strong); border-radius: 6px; }
.aside-search button { padding: .5rem .8rem; border: 0; border-radius: 6px; background: var(--accent); color: #fff; font-weight: 600; cursor: pointer; }
.aside-note { font-size: .82rem; color: var(--muted); margin: .6rem 0 0; }

/* --------------------------------------------------------------------------
   Reader (Kapitel und Einzeltexte)
   -------------------------------------------------------------------------- */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: transparent; pointer-events: none; }
.reading-progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .1s linear; }

.reader-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 3.5rem; padding: 1.5rem 0 3rem; align-items: start; }
.reader-toc { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; font-size: .88rem; padding-right: .5rem; }
.reader-toc-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; }
.reader-toc-work { font-family: var(--font-display); font-weight: 600; color: var(--ink); text-decoration: none; line-height: 1.25; }
.reader-toc-work:hover { color: var(--accent); }
.reader-toc-toggle { display: none; }
.reader-toc-list { border-left: 2px solid var(--line); }
.reader-toc-list li a, .reader-toc-list li span { display: block; padding: .3rem .75rem; color: var(--ink-2); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; }
.reader-toc-list li.depth-1 a, .reader-toc-list li.depth-1 span { padding-left: 1.5rem; font-size: .84rem; }
.reader-toc-list li.toc-heading span { font-weight: 600; color: var(--ink); }
.reader-toc-list li a:hover { color: var(--accent); }
.reader-toc-list li.current a { color: var(--accent); font-weight: 600; border-left-color: var(--accent); }

.reader-article { max-width: 72ch; }
.reader-head { margin-bottom: 1.5rem; }
.reader-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.reader-meta { font-size: .88rem; color: var(--muted); }
.reader-single { max-width: 76ch; padding-bottom: 3rem; }
.reader-subtitle { font-size: 1.4rem; margin-bottom: 1.2rem; }

.reader { font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.7; color: var(--ink); }
.reader p { margin: 0 0 1.1em; }
.reader .paragraph.center { text-align: center; }
.reader .paragraph.right { text-align: right; }
.reader .paragraph.justify { text-align: justify; }
.reader h3 { font-family: var(--font-display); font-size: 1.35rem; margin: 2rem 0 .8rem; }
.reader .bold { font-weight: 600; }
.reader .italic { font-style: italic; }
.reader .underline { text-decoration: underline; }
.reader .strike { text-decoration: line-through; }
.reader ol, .reader ul { padding-left: 1.5rem; margin: 0 0 1.1em; }
.reader ol { list-style: decimal; }
.reader ul { list-style: disc; }
.reader li { margin-bottom: .35em; }
.reader blockquote, .reader .markdown-quote { margin: 1.2em 0; padding: .5em 0 .5em 1.2em; border-left: 3px solid var(--line-strong); color: var(--ink-2); font-style: italic; }
.reader .footnote-ref { font-family: var(--font-ui); font-size: .72em; vertical-align: super; line-height: 0; text-decoration: none; padding: 0 .15em; color: var(--accent); font-weight: 600; }
.reader .footnote-ref:hover { background: var(--accent-soft); border-radius: 3px; }
.reader .image-link { display: inline-block; margin: .5em .8em .5em 0; }
.reader .inline-image { max-width: min(100%, 420px) !important; border-radius: 6px; box-shadow: var(--shadow); }
.reader mark { background: #fff1a8; color: inherit; padding: 0 .1em; border-radius: 2px; }

.footnotes { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-family: var(--font-serif); font-size: .95rem; color: var(--ink-2); }
.footnotes h2 { font-size: 1.1rem; margin-bottom: .8rem; }
.footnote { padding: .3rem 0; scroll-margin-top: 90px; }
.footnote:target { background: var(--accent-soft); }
.footnote-number { font-family: var(--font-ui); font-weight: 600; color: var(--accent); margin-right: .4rem; font-size: .85rem; }

.footnote-popover { position: absolute; z-index: 70; max-width: min(420px, calc(100vw - 2rem)); padding: .9rem 1.1rem; background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: 0 12px 32px -12px rgba(0, 0, 0, .35); font-family: var(--font-serif); font-size: .95rem; line-height: 1.5; color: var(--ink-2); }
.footnote-popover strong { display: block; font-family: var(--font-ui); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: .3rem; }

.chapter-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.chapter-nav-link { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--paper); }
.chapter-nav-link:hover { border-color: var(--accent); color: var(--accent); }
.chapter-nav-link small { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.chapter-nav-link span { font-family: var(--font-serif); font-weight: 600; }
.chapter-nav-link.next { text-align: right; align-items: flex-end; }
.chapter-nav-link.next span::after { content: " →"; }
.chapter-nav-link.prev span::before { content: "← "; }
.reader-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }

.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(28, 25, 23, .88); padding: 2rem; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); border-radius: 4px; }

/* --------------------------------------------------------------------------
   Zeitleiste
   -------------------------------------------------------------------------- */
.decade-nav { position: sticky; top: 68px; z-index: 10; display: flex; flex-wrap: wrap; gap: .35rem; padding: .75rem 0; background: rgba(255, 255, 255, .95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.decade-nav a { padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--line-strong); text-decoration: none; color: var(--ink-2); font-size: .85rem; }
.decade-nav a:hover { border-color: var(--accent); color: var(--accent); }
.timeline-decade { margin-bottom: 2.5rem; scroll-margin-top: 130px; }
.timeline-decade h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.timeline-decade h2 small { font-family: var(--font-ui); font-size: .85rem; color: var(--muted); font-weight: 500; margin-left: .5rem; }
.timeline-year { display: grid; grid-template-columns: 90px 1fr; gap: 1.5rem; scroll-margin-top: 130px; }
.timeline-marker { position: relative; padding-right: 1rem; text-align: right; }
.timeline-marker::after { content: ""; position: absolute; right: -6px; top: .55rem; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--paper); }
.timeline-marker span { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.timeline-content { border-left: 2px solid var(--line); padding: 0 0 1.75rem 1.5rem; }
.timeline-event { padding: .9rem 1.1rem; margin-bottom: .75rem; background: var(--accent-soft); border-radius: var(--radius); border-left: 3px solid var(--accent); }
.timeline-event strong { font-family: var(--font-display); font-size: 1.05rem; display: block; margin-bottom: .2rem; }
.timeline-event p { margin: 0; font-size: .95rem; color: var(--ink-2); }
.timeline-works li { padding: .45rem 0; border-bottom: 1px dotted var(--line-strong); }
.timeline-works a { font-family: var(--font-serif); font-weight: 600; text-decoration: none; color: var(--ink); }
.timeline-works a:hover { color: var(--accent); }
.timeline-work-meta { display: block; font-size: .82rem; color: var(--muted); margin-top: .15rem; }

/* --------------------------------------------------------------------------
   Biografie, Prosa-Seiten, Suche
   -------------------------------------------------------------------------- */
.bio-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 3rem; padding-bottom: 3rem; align-items: start; }
.bio-aside { position: sticky; top: 84px; }
.bio-portraits { display: grid; gap: .75rem; margin-bottom: 1.25rem; }
.bio-portraits img { width: 100%; border-radius: 6px; box-shadow: var(--shadow); }
.bio-events li a { display: grid; grid-template-columns: 44px 1fr; gap: .5rem; padding: .3rem 0; text-decoration: none; color: var(--ink-2); font-size: .9rem; border-bottom: 1px dotted var(--line-strong); }
.bio-events li a:hover { color: var(--accent); }
.bio-event-year { font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }

.prose { font-family: var(--font-serif); font-size: 1.12rem; line-height: 1.7; color: var(--ink); max-width: 72ch; }
.prose-narrow { max-width: 68ch; padding-bottom: 3rem; }
.prose h1 { font-size: 2rem !important; color: var(--ink) !important; margin: 0 0 1rem !important; }
.prose h2 { font-size: 1.6rem !important; color: var(--ink) !important; margin: 2rem 0 .6rem !important; }
.prose h3 { font-size: 1.25rem !important; color: var(--ink-2) !important; margin: 1.6rem 0 .5rem !important; }
.prose p { margin: 0 0 1.1em !important; color: inherit !important; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1.1em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose section { margin: 0 0 1.5rem !important; }
.prose a { color: var(--accent) !important; }

.search-results { display: flex; flex-direction: column; gap: 1.5rem; padding-bottom: 3rem; }
.search-result { padding: 1.25rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); }
.search-result h2 { font-size: 1.3rem; margin-bottom: .2rem; }
.search-result h2 a { color: var(--ink); text-decoration: none; }
.search-result h2 a:hover { color: var(--accent); }
.search-result-meta { font-size: .85rem; color: var(--muted); margin-bottom: .8rem; }
.search-chapters li { padding: .6rem 0; border-top: 1px solid var(--line); }
.search-chapter-title { font-weight: 600; text-decoration: none; }
.snippet { font-family: var(--font-serif); font-size: .98rem; color: var(--ink-2); margin: .3rem 0 0; }
.snippet mark { background: #fff1a8; padding: 0 .15em; border-radius: 2px; }
.search-more { font-size: .88rem; margin: .5rem 0 0; }
.empty-state { max-width: 70ch; padding-bottom: 3rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { margin-top: 3rem; background: var(--slate); color: rgba(255, 255, 255, .78); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding: 3rem 0 2rem; }
.footer-about p { margin: 1rem 0 0; max-width: 46ch; }
.footer-stats { font-size: .82rem; color: rgba(255, 255, 255, .55); }
.footer-heading { font-family: var(--font-ui); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); margin-bottom: .8rem; }
.site-footer ul li { margin-bottom: .4rem; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding: 1.25rem 0 2rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .8rem; color: rgba(255, 255, 255, .5); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
	.two-col, .work-body, .bio-layout, .reader-layout { grid-template-columns: 1fr; }
	.reader-layout { gap: 1rem; padding-top: 1rem; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.reader-toc { position: static; max-height: none; margin-bottom: 1.5rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }
	.reader-toc-toggle { display: inline-block; padding: .35rem .8rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--paper); cursor: pointer; font-size: .85rem; }
	.reader-toc-list { display: none; margin-top: .75rem; }
	.reader-toc.open .reader-toc-list { display: block; }
	.bio-aside { position: static; }
	.bio-portraits { grid-template-columns: repeat(3, 1fr); }
	.work-aside { order: -1; }
}

@media (max-width: 720px) {
	body { font-size: 16px; }
	.nav-toggle { display: inline-flex; }
	.brand-name { font-size: 1.08rem; }
	.brand-claim { font-size: .6rem; }
	.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1rem 1rem; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
	.site-nav.open { display: flex; }
	.site-nav > a { padding: .8rem .5rem; border-bottom: 1px solid var(--line); border-radius: 0; }
	.header-search { margin: .75rem 0 0; }
	.header-search input, .header-search input:focus { width: 100%; }
	.header-search { width: 100%; }
	.hero-stats { gap: 1.25rem 1.75rem; }
	/* Kleine Bildschirme: kleineres Bild, Stadt hinter der Papierfläche */
	.hero-merian::before { background-image: url("/assets/img/werben-merian-1650-small.jpg?v=3"); background-position: 60% 50%; }
	.hero-merian .hero-inner { margin-block: 1.25rem 2.25rem; padding: 1.5rem 1.15rem; border-radius: 14px; }
	.hero-merian .hero-search { display: none; } /* Suche steckt mobil im Menü */
	.hero-merian .hero-stats { margin-top: 1.4rem; }
	.hero-credit { right: .6rem; font-size: .66rem; }
	.hero-zoom { top: .6rem; right: .6rem; padding: .45rem .7rem; font-size: .78rem; }
	.zoom-title span { display: none; }
	.zoom-buttons button { width: 34px; height: 34px; }
	.hero-search { flex-direction: column; }
	.hero-search button { padding: .9rem; }
	.section-head { flex-direction: column; align-items: flex-start; }
	.work-card { grid-template-columns: 72px 1fr; }
	.highlight { grid-template-columns: 84px 1fr; }
	.panel-author { grid-template-columns: 1fr; }
	.author-portrait { width: 120px; }
	.work-row { grid-template-columns: 52px 1fr; }
	.work-row-side { display: none; }
	.timeline-year { grid-template-columns: 60px 1fr; gap: 1rem; }
	.timeline-marker span { font-size: .95rem; }
	.chapter-nav { grid-template-columns: 1fr; }
	.chapter-nav-link.next { text-align: left; align-items: flex-start; }
	.footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
	.series-item { grid-template-columns: 1fr; }
	.series-item-count { grid-column: 1; grid-row: auto; }
	.decade-nav { top: 68px; }
	.reader { font-size: 1.08rem; }
}

@media print {
	.site-header, .site-footer, .reader-toc, .chapter-nav, .reading-progress, .crumbs, .header-search { display: none !important; }
	.reader-layout { display: block; }
	body { font-size: 12pt; }
}
