/* ==========================================================================
   Querverlag: main stylesheet
   Source: HTML designs "Alle Seiten" and "pagina" (book page). This file
   currently holds the global base, the header, the footer, the book page,
   the author page, the author overview, the event list, the
   Neuerscheinungen page, the Programm (book overview), the press pages,
   the normal pages and news posts with their chosen books, authors and
   events (page.php, single.php), the home page
   (front-page.php), the contact page (page-templates/kontakt.php) and the
   search results (search.php).

   Design refresh (Sergio, 20 Nov 2026): headings in Outfit (a serif was
   tried and rejected), text in DM Sans; warm paper background; one darker
   orange everywhere (--accent); outline buttons turn blue, filled buttons
   orange and lift; book covers lift instead of zooming; radius and shadow
   tokens.

   Breakpoints (mobile first):
   640px  small tablets
   768px  tablets
   1024px desktop
   1280px wide screens (home page news title only)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts (Outfit and DM Sans, hosted locally, SIL Open Font License)
   -------------------------------------------------------------------------- */
@font-face {
	font-family: "Outfit";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/outfit-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

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

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

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

@font-face {
	font-family: "DM Sans";
	font-style: italic;
	font-weight: 100 1000;
	font-display: swap;
	src: url("../fonts/dm-sans-latin-ext-opsz-italic.woff2") format("woff2");
	unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
	font-family: "DM Sans";
	font-style: italic;
	font-weight: 100 1000;
	font-display: swap;
	src: url("../fonts/dm-sans-latin-opsz-italic.woff2") format("woff2");
	unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */
:root {
	/* Warm paper tone (was neutral grey hsl(0, 0%, 96%)). */
	--background: hsl(40, 33%, 96%);
	--foreground: hsl(0, 0%, 11%);
	--card: hsl(0, 0%, 100%);
	--card-foreground: hsl(0, 0%, 11%);
	--primary: hsl(205, 72%, 21%);
	--primary-foreground: hsl(0, 0%, 96%);
	--secondary: hsl(216, 38%, 47%);
	--secondary-foreground: hsl(0, 0%, 96%);
	--muted: hsl(40, 18%, 91%);
	--muted-foreground: hsl(0, 0%, 40%);
	/* Orange (darker since 20 Nov, used everywhere): 5.1:1 on white,
	   4.6:1 on the page background, white text on it 5.1:1. */
	--accent: hsl(28, 90%, 36%);
	--accent-foreground: hsl(0, 0%, 100%);
	--border: hsl(205, 30%, 80%);
	--input: hsl(205, 30%, 80%);
	--ring: hsl(205, 72%, 21%);
	/* Corners: covers almost square like real books, controls small,
	   boxes and photos medium. */
	--radius-cover: 0.1875rem;
	--radius-sm: 0.5rem;
	--radius: 0.75rem;

	/* Shadows, tinted with the dark blue. */
	--shadow-sm: 0 1px 2px hsla(205, 60%, 12%, 0.08), 0 1px 3px hsla(205, 60%, 12%, 0.1);
	--shadow-cover: 0 1px 2px hsla(205, 60%, 12%, 0.12), 0 8px 18px -6px hsla(205, 60%, 12%, 0.28);
	--shadow-hover: 0 2px 4px hsla(205, 60%, 12%, 0.1), 0 16px 30px -10px hsla(205, 60%, 12%, 0.38);
	--shadow-lg: 0 2px 4px hsla(205, 60%, 12%, 0.08), 0 28px 50px -18px hsla(205, 60%, 12%, 0.42);

	/* Fonts */
	--font-heading: "Outfit", system-ui, sans-serif;
	--font-ui: "DM Sans", system-ui, sans-serif;

	/* Running text (paragraphs in pages, posts, book and author texts):
	   darker than --muted-foreground for easier reading (contrast 10.4:1 on
	   white). The size grows from 1024px (Sergio, 19 Nov). */
	--body-text: hsl(0, 0%, 25%);
	--body-text-size: 1.0625rem;

	/* Book cover format: width / height of the cover files (1400 x 2296 px). */
	--cover-ratio: 1400 / 2296;

	/* Design update (Sergio, 24 Nov 2026) */
	/* Footer: the same blue as the header (Sergio, 24 Nov 2026; was black,
	   then briefly a darker blue). */
	--footer-background: var(--primary);
	/* One size for all section titles (Über das Buch, Bücher von ...,
	   Nächste Veranstaltungen, press sections): 24px on phones up to 32px. */
	--section-title-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
	/* Smallest running text: at least 14px (was 13px). */
	--text-small: 0.875rem;
}

/* --------------------------------------------------------------------------
   Reset and base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-ui);
	background-color: var(--background);
	color: var(--foreground);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-heading);
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.2;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	text-decoration: none;
	color: inherit;
}

/* Text links (names, titles, small links): besides the orange colour a thin
   line appears under the text on hover, so the change is easy to see
   (Sergio, 24 Nov 2026). Links in running text are underlined anyway. */
.book-hero-author a:hover,
.meta-value a:hover,
.pressestimme-quelle a:hover,
.buch-titelliste a:hover,
.book-card:hover .book-card-title,
.autoren-namen a:hover,
.termin-buch:hover,
.programm-buecher a:hover .programm-titel,
.presse-zurueck:hover,
.presse-einleitung a:hover,
.presse-buch-titel a:hover,
.presse-programm:hover .presse-programm-titel,
.presse-kontakt-daten a:hover,
.seite-zur-liste-link:hover,
.zweitmeldung:hover .zweitmeldung-titel,
.start-alle:hover,
.kurztermin-buch:hover,
.autor-karte:hover .autor-karte-name,
.kontakt-wege a:hover,
.neuigkeiten-einleitung a:hover,
.neuigkeit:hover .neuigkeit-titel,
.suchtreffer-titel a:hover {
	text-decoration-line: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

button {
	font-family: inherit;
	cursor: pointer;
	border: none;
	background: none;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* On the dark header, footer and home page news box the orange ring would be
   too faint (2.3:1 on the blue): there the ring is light. */
.header :focus-visible,
.footer :focus-visible,
.aufmacher :focus-visible {
	outline-color: var(--primary-foreground);
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.editorial-container {
	max-width: 80rem;
	margin-inline: auto;
	padding-inline: 1rem;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: -100%;
	left: 1rem;
	z-index: 100;
	padding: 0.75rem 1.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	background-color: var(--card);
	color: var(--primary);
	border-radius: var(--radius-sm);
}

.skip-link:focus {
	top: 1rem;
}

.menu-list {
	list-style: none;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	border-radius: var(--radius-sm);
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	background-color: var(--card);
	color: var(--primary);
	border: 2px solid var(--primary);
}

.btn:hover {
	background-color: var(--primary);
	border-color: var(--primary);
	color: var(--primary-foreground);
}

.btn-primary {
	background-color: var(--primary);
	color: var(--primary-foreground);
	border-color: var(--primary);
}

.btn-primary:hover {
	background-color: var(--accent);
	border-color: var(--accent);
	color: var(--accent-foreground);
	transform: translateY(-2px);
	box-shadow: var(--shadow-hover);
}

/* Pressed */
.btn-primary:active {
	transform: translateY(0);
	box-shadow: none;
}

/* On the dark header and footer a blue hover would not be seen: there the
   buttons turn orange. */
.header .btn:hover,
.footer .btn:hover {
	background-color: var(--accent);
	border-color: var(--accent);
	color: var(--accent-foreground);
}

/* Newsletter button on the blue footer: white with blue text (11.5:1),
   like "Weiterlesen" on the home page; orange on hover (.footer .btn:hover). */
.footer .btn-primary {
	background-color: var(--card);
	border-color: var(--card);
	color: var(--primary);
}

.btn-outline {
	background-color: transparent;
	color: var(--foreground);
	border: 1px solid var(--border);
}

/* Hover like the other light buttons: blue fill with light text and icon.
   (Before, only the background turned light grey while .btn:hover made the
   text light too, so "Probekapitel" became unreadable; Sergio, 20 Nov.) */
.btn-outline:hover {
	color: var(--primary-foreground);
	background-color: var(--primary);
	border-color: var(--primary);
}

.btn-lg {
	padding: 1rem 2rem;
	font-size: 1rem;
}

/* Badge "Neuerscheinung" on the book page: the chip itself is the link
   (about 29px high, easy to tap; 21 Nov). Since 24 Nov 2026 in the style
   of the badge "Aktuell" on the home page: orange, white capitals. */
.badge {
	display: inline-block;
	padding: 0.375rem 0.75rem;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--accent-foreground);
	background-color: var(--accent);
	border: 1px solid var(--accent);
	border-radius: 9999px;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.badge:hover {
	color: var(--primary-foreground);
	background-color: var(--primary);
	border-color: var(--primary);
}

.separator {
	height: 1px;
	margin: 2rem 0;
	background-color: var(--border);
}

/* --------------------------------------------------------------------------
   Header (stays at the top while the page scrolls underneath)
   -------------------------------------------------------------------------- */
.header {
	position: sticky;
	top: 0;
	z-index: 50;
	background-color: var(--primary);
	border-bottom: 1px solid rgba(245, 245, 245, 0.1);
}

/* Logged-in users: keep the header below the WordPress admin bar. */
.admin-bar .header {
	top: 46px;
}

/* Keyboard focus never ends up under the header (WCAG 2.4.11, Sergio,
   21 Nov): the browser scrolls a focused element into view with this space
   above it (header 65px on phones, 81px on desktop). Only on focus, so
   jumps to anchors keep their own scroll-margin-top. Admin bar: see the
   breakpoints 783px and 600px. */
:focus {
	scroll-margin-top: 6rem;
}

.admin-bar :focus {
	scroll-margin-top: calc(6rem + 46px);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 4rem;
}

.logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.logo img {
	width: auto;
	height: 2.25rem;
}

.nav {
	display: none;
}

.nav a {
	position: relative;
	font-size: 0.875rem;
	font-weight: 700;
	color: rgba(245, 245, 245, 0.8);
	transition: color 0.2s ease;
}

.nav a:hover {
	color: var(--primary-foreground);
}

.nav a::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--primary-foreground);
	transition: width 0.2s ease;
}

.nav a:hover::after {
	width: 100%;
}

/* Current page or section: white text and the full white line, like the hover.
   The line was orange until 24 Nov 2026 (only 2.3:1 on the blue). */
.nav .current-menu-item > a,
.nav .current-page-ancestor > a,
.nav .menu-bereich-aktiv > a {
	color: var(--primary-foreground);
}

.nav .current-menu-item > a::after,
.nav .current-page-ancestor > a::after,
.nav .menu-bereich-aktiv > a::after {
	width: 100%;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.search-btn,
.menu-btn {
	padding: 0.625rem;
	border-radius: var(--radius-sm);
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.search-btn {
	color: rgba(245, 245, 245, 0.8);
}

.menu-btn {
	display: block;
	color: var(--primary-foreground);
}

.search-btn:hover,
.menu-btn:hover {
	color: var(--primary-foreground);
	background-color: rgba(245, 245, 245, 0.1);
}

/* Search panel (opens below the header bar) */
.header-search {
	display: none;
	padding: 1rem 0;
	border-top: 1px solid rgba(245, 245, 245, 0.2);
}

.header-search.active {
	display: block;
}

.header-search-form {
	display: flex;
	gap: 0.5rem;
}

.header-search-input {
	flex: 1;
	min-width: 0;
	padding: 0.625rem 1rem;
	font-family: inherit;
	font-size: 0.875rem;
	color: var(--primary-foreground);
	background-color: rgba(245, 245, 245, 0.1);
	border: 1px solid rgba(245, 245, 245, 0.2);
	border-radius: var(--radius-sm);
}

.header-search-input::placeholder {
	color: rgba(245, 245, 245, 0.6);
}

.header-search-input:focus {
	outline: none;
	border-color: var(--primary-foreground);
}

/* Mobile menu */
.mobile-nav {
	display: none;
	max-height: calc(100vh - 4rem);
	padding: 1.5rem 0;
	overflow-y: auto;
	border-top: 1px solid rgba(245, 245, 245, 0.2);
}

.mobile-nav.active {
	display: block;
}

/* Same hover as the desktop menu: white text and a white line that grows under the text. */
.mobile-nav a {
	position: relative;
	display: inline-block;
	padding: 0.75rem 0;
	font-size: 1rem;
	font-weight: 700;
	color: rgba(245, 245, 245, 0.8);
	transition: color 0.2s ease;
}

.mobile-nav a:hover {
	color: var(--primary-foreground);
}

.mobile-nav a::after {
	content: "";
	position: absolute;
	bottom: 0.75rem;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--primary-foreground);
	transition: width 0.2s ease;
}

.mobile-nav a:hover::after {
	width: 100%;
}

.mobile-nav .current-menu-item > a,
.mobile-nav .current-page-ancestor > a,
.mobile-nav .menu-bereich-aktiv > a {
	color: var(--primary-foreground);
}

.mobile-nav .current-menu-item > a::after,
.mobile-nav .current-page-ancestor > a::after,
.mobile-nav .menu-bereich-aktiv > a::after {
	width: 100%;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
	background-color: var(--footer-background);
	color: var(--background);
}

.footer-container {
	padding-block: 2.5rem;
}

/* Newsletter */
.footer-newsletter {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid rgba(245, 245, 245, 0.1);
	scroll-margin-top: 6rem;
}

.newsletter-text {
	max-width: 28rem;
}

.newsletter-text h3 {
	margin-bottom: 0.25rem;
	font-size: 1.25rem;
	font-weight: 700;
}

.newsletter-text p {
	font-size: 0.875rem;
	color: rgba(245, 245, 245, 0.6);
}

.newsletter-anmeldung {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	width: 100%;
}

.newsletter-form {
	display: flex;
	gap: 0.5rem;
	width: 100%;
}

/* Trap field for bots: off screen, not reachable with the keyboard. */
/* Trap field for bots (inc/formulare.php): off screen, never seen by people. */
.newsletter-falle,
.formular-falle {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.newsletter-hinweis {
	font-size: var(--text-small);
	color: rgba(245, 245, 245, 0.6);
}

.newsletter-hinweis a {
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color 0.2s ease;
}

.newsletter-hinweis a:hover {
	color: var(--background);
}

.newsletter-meldung {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--primary-foreground);
}

/* Error: light text with an orange bar (orange text would be too faint on
   the dark footer), like the contact form. */
.newsletter-meldung--fehler {
	padding-left: 0.75rem;
	border-left: 3px solid var(--accent);
}

.newsletter-input {
	flex: 1;
	min-width: 0;
	padding: 0.625rem 1rem;
	font-family: inherit;
	font-size: 0.875rem;
	color: var(--background);
	background-color: rgba(245, 245, 245, 0.1);
	border: 1px solid rgba(245, 245, 245, 0.2);
	border-radius: var(--radius-sm);
}

.newsletter-input::placeholder {
	color: rgba(245, 245, 245, 0.6);
}

.newsletter-input:focus {
	outline: none;
	border-color: var(--primary-foreground);
}

/* Logo, social links and footer menu */
.footer-main {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	padding: 2rem 0;
}

.footer-brand {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: 1.5rem;
}

.footer-logo {
	flex-shrink: 0;
}

.footer-logo img {
	width: auto;
	height: 2rem;
}

.social-icons {
	display: none;
}

.social-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	color: rgba(245, 245, 245, 0.6);
	background-color: rgba(245, 245, 245, 0.05);
	border-radius: var(--radius-sm);
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.social-icon:hover {
	color: var(--background);
	background-color: rgba(245, 245, 245, 0.1);
}

.social-icon svg {
	width: 0.875rem;
	height: 0.875rem;
}

.footer-links .menu-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.5rem;
}

.footer-links a {
	font-size: 0.875rem;
	font-weight: 700;
	color: rgba(245, 245, 245, 0.6);
	transition: color 0.2s ease;
}

.footer-links a:hover {
	color: var(--background);
}

/* Legal menu */
.footer-bottom {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(245, 245, 245, 0.1);
}

.footer-legal .menu-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
}

.footer-legal a {
	font-size: var(--text-small);
	font-weight: 700;
	color: rgba(245, 245, 245, 0.6);
	transition: color 0.2s ease;
}

.footer-legal a:hover {
	color: var(--background);
}

/* Footer menus behave like the header menu (Sergio, 24 Nov 2026): on hover
   a white line grows under the text; the current page keeps the full line. */
.footer-links a,
.footer-legal a {
	position: relative;
	display: inline-block;
	padding-bottom: 0.125rem;
}

.footer-links a::after,
.footer-legal a::after {
	content: "";
	position: absolute;
	bottom: -0.125rem;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--primary-foreground);
	transition: width 0.2s ease;
}

.footer-links a:hover::after,
.footer-legal a:hover::after {
	width: 100%;
}

/* Current page or section in the footer menus: light text, full white line. */
.footer-links .current-menu-item > a,
.footer-links .current-page-ancestor > a,
.footer-links .menu-bereich-aktiv > a,
.footer-legal .current-menu-item > a,
.footer-legal .current-page-ancestor > a,
.footer-legal .menu-bereich-aktiv > a {
	color: var(--background);
}

.footer-links .current-menu-item > a::after,
.footer-links .current-page-ancestor > a::after,
.footer-links .menu-bereich-aktiv > a::after,
.footer-legal .current-menu-item > a::after,
.footer-legal .current-page-ancestor > a::after,
.footer-legal .menu-bereich-aktiv > a::after {
	width: 100%;
}

/* --------------------------------------------------------------------------
   Book page (single-buch.php)
   -------------------------------------------------------------------------- */
/* "Zurück": blue and semi-bold so it is not overlooked (24 Nov 2026),
   underlined on hover. */
.back-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 1.5rem 0;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--primary);
	text-decoration-color: var(--accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.3em;
	transition: color 0.2s ease;
}

.back-link:hover {
	text-decoration-line: underline;
}

.book-hero {
	padding-bottom: 4rem;
}

/* Light tint of the cover colour (inc/coverfarbe.php sets --cover-ton on
   the article; the review boxes below use it too). */
.book-hero--farbe {
	background-color: var(--cover-ton);
}

.book-hero-grid {
	display: grid;
	gap: 2rem;
}

/* Phones and tablets (one column): smaller cover, so title, price and order
   buttons come into view sooner; aligned left with the text below (Sergio,
   21 Nov). From 1024px the cover fills its column (40 % of the width). */
.book-hero-cover {
	position: relative;
	width: min(62%, 18rem);
}

.book-cover-image {
	position: relative;
	aspect-ratio: var(--cover-ratio);
	overflow: hidden;
	background-color: var(--secondary);
	border-radius: var(--radius-cover);
	box-shadow: var(--shadow-lg);
}

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

/* Softcover look on every book cover (Sergio, 20 Nov 2026): a gentle
   shade at the spine, the scored fold of a paperback a little inside the
   left edge and a faint light along it. Semi-transparent, so it works on
   light and dark covers; the cover file itself is not changed. Percentages,
   so it scales from the large cover down to the small list covers. */
.book-cover-image::after,
.book-card-cover::after,
.termin-cover::after,
.presse-buch-cover::after,
.programm-cover::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(
		to right,
		rgba(0, 0, 0, 0.14) 0%,
		rgba(0, 0, 0, 0.04) 1.2%,
		rgba(255, 255, 255, 0.1) 2.2%,
		rgba(255, 255, 255, 0) 3.2%,
		rgba(0, 0, 0, 0.09) 3.8%,
		rgba(0, 0, 0, 0) 4.6%,
		rgba(255, 255, 255, 0.07) 5.2%,
		rgba(255, 255, 255, 0) 7.5%
	);
}

.book-info {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	min-width: 0;
}

.badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.book-title {
	margin-bottom: 0.25rem;
	/* Grows with the screen: 36px on phones, 56px on wide screens. */
	font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem);
	line-height: 1.1;
	font-weight: 700;
	/* No hyphenation in titles (Sergio, 21 Nov; soft hyphens typed in the
	   title still work). A word wider than the line breaks at the edge so it
	   cannot run off small screens. */
	overflow-wrap: break-word;
	hyphens: manual;
}

.book-hero-author {
	margin-bottom: 0.75rem;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.4;
	color: var(--foreground);
}

.book-hero-author a {
	transition: color 0.2s ease;
}

.book-hero-author a:hover {
	color: var(--accent);
}

.book-hero-description {
	margin-bottom: 0;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.4;
	color: var(--foreground);
}

/* Line below the subtitle, e.g. "Mit einem Vorwort von …" (field untertitel_zusatz). */
.book-hero-zusatz {
	margin-top: 0.5rem;
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1.4;
	color: var(--muted-foreground);
}

/* Price and order buttons (smaller than in the HTML design, as requested) */
.price-section {
	margin-top: 1rem;
	margin-bottom: 2rem;
}

.price-value {
	margin-bottom: 0.75rem;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--accent);
}

.order-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

/* Order buttons and "Probekapitel": a bit less padding than the normal
   buttons (Sergio, 21 Nov). Narrow padding on phones, so "Buch bestellen"
   and "eBook bestellen" stay side by side down to 360px; wider from 640px.
   Same line height for <a> and <button>; the outline button has a 1px
   border instead of 2px, so 1px more padding keeps all three at the same
   height. */
.price-section .btn {
	padding: 0.5625rem 0.75rem;
	line-height: 1.6;
}

.price-section .btn-outline {
	padding-block: 0.625rem;
}

.sample-btn {
	margin-top: 0.5rem;
}

/* More space between the order buttons and "Probekapitel" (margins collapse: 1.75rem in total). */
.order-buttons + .sample-btn {
	margin-top: 1.75rem;
}

/* Book data: one below the other on phones (Sergio, 21 Nov), two columns
   from 640px. */
.book-meta {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
}

.meta-item {
	min-width: 0;
	font-size: 0.875rem;
}

.meta-label {
	color: var(--muted-foreground);
}

.meta-value {
	font-weight: 500;
	color: var(--foreground);
	overflow-wrap: anywhere;
}

.meta-value a:hover {
	color: var(--accent);
}

/* Text: "Über das Buch" and the additional text */
.about-section {
	padding: 4rem 0;
	background-color: var(--card);
}

.about-section h2,
.related-section h2 {
	margin-bottom: 2rem;
	/* Same size as all section titles (--section-title-size, 24 Nov 2026). */
	font-size: var(--section-title-size);
	font-weight: 700;
}

.about-content {
	font-size: var(--body-text-size);
	line-height: 1.875;
	color: var(--body-text);
}

/* Book page: lines of about 70 characters instead of the full page width
   (about 140), easier to read (Sergio, 21 Nov). */
.about-section .about-content {
	max-width: 40rem;
}

.about-content > * {
	margin-bottom: 1.5rem;
}

.about-content > *:last-child {
	margin-bottom: 0;
}

.about-content ul,
.about-content ol {
	padding-left: 1.5rem;
}

.about-content a {
	color: var(--primary);
	text-decoration: underline;
}

.about-content--zusatz {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid var(--border);
}

.about-content--zusatz:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

/* Book page: "Pressestimmen", review excerpts from the tab "Rezensionen"
   (Sergio, 21 Nov 2026). In the white section of "Über das Buch", heading
   in the same style: beside the text from 1024px (see there), below it on
   narrow screens, separated by a thin line. Each excerpt in quotation marks
   in a box with the background of the top of the page (cover colour, or
   the page background without one), in the font of the book text; the
   source below it (a link if the review address is filled in)
   (Sergio, 21 Nov). One column on phones, two from 768px (one again beside the
   text); a single excerpt keeps the width of the book text. */
.about-haupt + .pressestimmen {
	margin-top: 2.5rem;
	padding-top: 2.5rem;
	border-top: 1px solid var(--border);
}

.pressestimmen-liste {
	display: grid;
	gap: 1rem;
}

.pressestimmen-liste--eine {
	max-width: 40rem;
}

.pressestimme {
	display: flex;
	flex-direction: column;
	padding: 1.25rem 1.5rem;
	background-color: var(--cover-ton, var(--background));
	border-radius: var(--radius);
}

/* German quotation marks around the excerpt, set by the page (the field
   says to enter the excerpt without them). The large orange mark above the
   excerpt was removed at Sergio's request (21 Nov). */
.pressestimme-zitat p::before {
	content: "\201E";
}

.pressestimme-zitat p::after {
	content: "\201C";
}

/* Same as the text "Über das Buch" (.about-content). */
.pressestimme-zitat p {
	font-size: var(--body-text-size);
	line-height: 1.875;
	color: var(--body-text);
}

.pressestimme-quelle {
	margin-top: auto;
	padding-top: 0.75rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--muted-foreground);
}

.pressestimme-quelle a {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	color: var(--primary);
	transition: color 0.2s ease;
}

.pressestimme-quelle a:hover {
	color: var(--accent);
}

.pressestimme-quelle svg {
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.pressestimme-quelle a:hover svg {
	transform: translateX(3px);
}

/* Other books by the same author(s). Also used by the Neuerscheinungen page.
   2 / 3 / 4 cards per row, each card 80 % of an equal share of the row;
   the free space goes into the gaps, so the rows still fill the full width. */
.related-section {
	padding: 4rem 0;
}

.related-section .books-grid {
	display: grid;
	grid-template-columns: repeat(2, calc((100% - 1.5rem) / 2 * 0.8));
	justify-content: space-between;
	gap: 1.5rem;
}

/* Titles-only list below the text of a book (field weitere_buecher_titel).
   The list with covers directly after it needs no extra space above. */
.related-section--titel + .related-section {
	padding-top: 0;
}

.buch-titelliste {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	column-gap: 2rem;
	list-style: none;
	border-top: 1px solid var(--border);
}

.buch-titelliste li {
	border-bottom: 1px solid var(--border);
}

.buch-titelliste a {
	display: block;
	padding: 0.625rem 0;
	font-family: var(--font-heading);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	overflow-wrap: break-word;
	hyphens: manual;
	transition: color 0.2s ease;
}

.buch-titelliste a:hover {
	color: var(--accent);
}

/* Book card (template-parts/buch-karte.php) */
.book-card a {
	display: block;
}

/* Covers in their own format (Sergio, 24 Nov 2026): only the width is
   fixed, the height comes from the picture, so a cover with another format
   is neither cut nor distorted. The box keeps the classic book format
   (--cover-ratio) only while it has no picture (blue placeholder).
   Browsers without :has() keep the classic format and cut the picture. */
.book-cover-image:has(img),
.book-card-cover:has(img),
.termin-cover:has(img),
.presse-buch-cover:has(img),
.programm-cover:has(img) {
	aspect-ratio: auto;
}

.book-cover-image:has(img) img,
.book-card-cover:has(img) img,
.termin-cover:has(img) img,
.presse-buch-cover:has(img) img,
.programm-cover:has(img) img {
	height: auto;
}

.book-card-cover {
	position: relative;
	aspect-ratio: var(--cover-ratio);
	margin-bottom: 1rem;
	overflow: hidden;
	background-color: var(--secondary);
	border-radius: var(--radius-cover);
	box-shadow: var(--shadow-cover);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-card-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.book-card:hover .book-card-cover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-hover);
}

.book-card-title {
	margin-top: 0.25rem;
	font-size: 1rem;
	font-weight: 600;
	transition: color 0.2s ease;
}

.book-card:hover .book-card-title {
	color: var(--accent);
}

.book-card-author {
	margin-top: 0.125rem;
	font-size: 0.875rem;
	color: var(--muted-foreground);
}

/* Card with details (Neuerscheinungen page): below the author the price,
   pages and ISBN, three lines of text. */
.book-card-price {
	margin-top: 0.375rem;
	font-size: 1rem;
	font-weight: 700;
	color: var(--accent);
}

/* Phones: hidden, the cards stay short (the data is on the book page);
   shown from 640px (24 Nov 2026). */
.book-card-meta {
	display: none;
	margin-top: 0.5rem;
	font-size: var(--text-small);
	color: var(--muted-foreground);
}

/* One line each: "Broschur, 320 Seiten", then the ISBN alone.
   The ISBN number never breaks inside (it would at its hyphens). */
.book-card-meta > span {
	display: block;
}

.book-card-isbn {
	white-space: nowrap;
}

/* Very small phones (under 360px): the card is narrower than the number,
   so it may break at its hyphens instead of running out of the card. */
@media (max-width: 359px) {
	.book-card-isbn {
		white-space: normal;
	}
}

.book-card-text {
	display: -webkit-box;
	margin-top: 0.5rem;
	overflow: hidden;
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--muted-foreground);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}

/* --------------------------------------------------------------------------
   Author page (single-autor.php)
   Same fonts and sizes as the book page: name = .book-title,
   biography = .about-content, book list = .related-section + .book-card.
   -------------------------------------------------------------------------- */
.autor-hero {
	padding-bottom: 4rem;
}

.autor-hero-grid {
	display: grid;
	gap: 2rem;
	align-items: start;
}

.autor-foto {
	width: 10rem;
	margin: 0;
}

.autor-foto img {
	width: 100%;
	height: auto;
	background-color: var(--secondary);
	border-radius: var(--radius);
	box-shadow: var(--shadow-cover);
}

.autor-foto-copyright {
	margin-top: 0.5rem;
	font-size: var(--text-small);
	line-height: 1.4;
	color: var(--muted-foreground);
	overflow-wrap: anywhere;
}

.autor-info {
	min-width: 0;
}

.autor-bio {
	margin-top: 1.5rem;
}

/* Books of the author, one group per Programm (season).
   White like "Über das Buch" on the book page; photo and text above stay on the grey page background. */
.related-section.autor-buecher {
	background-color: var(--card);
}

.related-section.autor-buecher h2 {
	margin-bottom: 1.5rem;
}

.autor-buecher-gruppe + .autor-buecher-gruppe {
	margin-top: 3rem;
}

.related-section .autor-buecher-rolle {
	margin-bottom: 1rem;
	font-size: 1rem;
	font-weight: 700;
}

/* Smaller book cards than on the book page: fixed card width, as many per row as fit. */
.related-section.autor-buecher .books-grid {
	grid-template-columns: repeat(auto-fill, 6.25rem);
	gap: 1.5rem 1rem;
}

.autor-buecher .book-card-title {
	font-size: 0.875rem;
	overflow-wrap: break-word;
	hyphens: manual;
}

.autor-buecher .book-card-author {
	font-size: var(--text-small);
}

/* --------------------------------------------------------------------------
   Author overview (archive-autor.php, /autorinnen/)
   Title and letter navigation on the grey page background, list on white
   (same split as the author page). Names in body size (16px since 21 Nov;
   before 14px like the old site).
   -------------------------------------------------------------------------- */
.autoren-kopf {
	padding: 2rem 0;
}

.autoren-kopf .book-title {
	margin-bottom: 1.5rem;
}

.autoren-alphabet ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	list-style: none;
}

.autoren-alphabet a,
.autoren-alphabet span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	font-family: var(--font-heading);
	font-size: 0.9375rem;
	font-weight: 600;
	border-radius: var(--radius-sm);
}

.autoren-alphabet a {
	color: var(--primary);
	background-color: var(--card);
	border: 1px solid var(--border);
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.autoren-alphabet a:hover {
	color: var(--primary-foreground);
	background-color: var(--primary);
	border-color: var(--primary);
}

/* Letters without authors: no box, grey; readable but clearly inactive
   (opacity 0.45 -> 0.7 on 21 Nov, about 3:1 on the page background). */
.autoren-alphabet span {
	color: var(--muted-foreground);
	opacity: 0.7;
}

.autoren-liste {
	padding: 1rem 0 4rem;
	background-color: var(--card);
}

/* One letter: letter above the names on phones, beside them from 640px. */
.autoren-gruppe {
	display: grid;
	gap: 0.75rem;
	padding: 2rem 0;
	/* Jump target below the sticky header (4rem high, 5rem from 1024px). */
	scroll-margin-top: 5rem;
}

.autoren-gruppe + .autoren-gruppe {
	border-top: 1px solid var(--border);
}

.autoren-buchstabe {
	font-size: 1.875rem;
	font-weight: 700;
	line-height: 1;
	color: var(--primary);
}

/* Names: one column on phones, two columns from 640px. */
.autoren-namen {
	list-style: none;
}

.autoren-namen li {
	padding: 0.25rem 0;
	line-height: 1.5;
	break-inside: avoid;
}

.autoren-namen a {
	font-size: 1rem;
	font-weight: 500;
	color: var(--foreground);
	transition: color 0.2s ease;
}

.autoren-namen a:hover {
	color: var(--accent);
}

.autoren-leer {
	padding: 2rem 0;
	color: var(--muted-foreground);
}

/* Logged-in users: the WordPress admin bar sits above the sticky header. */
.admin-bar .autoren-gruppe {
	scroll-margin-top: calc(5rem + 46px);
}

/* --------------------------------------------------------------------------
   Events (archive-termin.php, /veranstaltungen/)
   Built like the author overview: title and month navigation on the grey
   page background, one section per month on white. Small type as in the
   Programm list. Only the book (cover and title) is a link.
   -------------------------------------------------------------------------- */
.termine-kopf {
	padding: 2rem 0;
}

.termine-kopf .book-title {
	margin-bottom: 0;
}

/* Month navigation: same buttons as the bar of the Programm page. */
.termine-monate {
	margin-top: 1.5rem;
}

.termine-monate ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
}

.termine-monate a {
	display: inline-flex;
	align-items: center;
	min-height: 2.25rem;
	padding: 0.375rem 0.875rem;
	font-family: var(--font-heading);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--primary);
	background-color: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.termine-monate a:hover {
	color: var(--primary-foreground);
	background-color: var(--primary);
	border-color: var(--primary);
}

.termine-liste {
	padding: 1rem 0 4rem;
	background-color: var(--card);
}

/* One month: month above the events on phones and tablets, beside them from 1024px. */
.termine-gruppe {
	display: grid;
	gap: 0.5rem;
	padding: 2rem 0;
	/* Jump target below the sticky header (4rem high, 5rem from 1024px). */
	scroll-margin-top: 5rem;
}

.termine-gruppe + .termine-gruppe {
	border-top: 1px solid var(--border);
}

.termine-monat {
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--primary);
}

.termine-jahr {
	font-weight: 500;
	color: var(--muted-foreground);
}

.termine {
	list-style: none;
}

/* One event: date | book cover(s) | text. A line between the events.
   The cover column stays reserved when an event has no book, so the
   texts of all events start at the same line. */
.termin {
	display: grid;
	grid-template-columns: 3.5rem 3rem minmax(0, 1fr);
	gap: 0.75rem;
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--border);
	scroll-margin-top: 5rem;
}

.termin:last-child {
	border-bottom: 0;
}

.termin-datum {
	display: flex;
	flex-direction: column;
	align-items: center;
	align-self: start;
	padding: 0.375rem 0;
	line-height: 1;
	background-color: var(--background);
	border-radius: var(--radius-sm);
}

.termin-tag {
	font-family: var(--font-heading);
	font-size: 1.625rem;
	font-weight: 700;
	color: var(--primary);
}

.termin-wochentag {
	margin-top: 0.25rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	color: var(--secondary);
	text-transform: uppercase;
}

.termin-inhalt {
	min-width: 0;
}

/* Kind of event (field "art", e.g. Buchpremiere): blue, at the top, not a heading
   (a heading only for events without a book). */
.termin-art {
	font-family: var(--font-heading);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.4;
	color: var(--primary);
	overflow-wrap: break-word;
}

/* Title of the event = book title(s): same size and weight, one book per line. */
.termin-titel {
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: normal;
	line-height: 1.4;
	overflow-wrap: break-word;
	hyphens: manual;
}

.termin-art + .termin-titel,
.termin-buch + .termin-buch {
	margin-top: 0.125rem;
}

.termin-buch {
	display: block;
	color: var(--foreground);
	transition: color 0.2s ease;
}

.termin-buch:hover {
	color: var(--accent);
}

.termin-autoren {
	margin-top: 0.125rem;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.5;
}

.termin-zeit,
.termin-ort,
.termin-hinweis {
	font-size: var(--text-small);
	line-height: 1.5;
	color: var(--muted-foreground);
	overflow-wrap: break-word;
}

/* "Berlin · Mittwoch, 20:00 Uhr": city first and bold (24 Nov 2026). */
.termin-zeit {
	margin-top: 0.375rem;
	font-weight: 500;
	color: var(--foreground);
}

.termin-stadt {
	font-weight: 700;
}

.termin-trenner {
	/* Space before the dot; the space after it comes from the markup. */
	margin-left: 0.3em;
	color: var(--muted-foreground);
}

/* Same size as the kind of event above it (1rem), regular; bold only where
   set in the text (Sergio, 28 Nov 2026). */
.termin-text {
	margin-top: 0.5rem;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.6;
	color: var(--muted-foreground);
}

.termin-text > * + * {
	margin-top: 0.5rem;
}

/* The text sits between the kind of event and the book title (28 Nov 2026). */
.termin-art + .termin-text {
	margin-top: 0.25rem;
}

.termin-inhalt > .termin-text:first-child {
	margin-top: 0;
}

.termin-text + .termin-titel {
	margin-top: 0.5rem;
}

.termin-hinweis {
	margin-top: 0.5rem;
}

/* Book cover(s): small, like the Programm list. */
.termin-cover-spalte {
	display: grid;
	gap: 0.5rem;
	align-content: start;
}

.termin-cover {
	position: relative;
	display: block;
	aspect-ratio: var(--cover-ratio);
	overflow: hidden;
	background-color: var(--secondary);
	border-radius: var(--radius-cover);
	box-shadow: var(--shadow-cover);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.termin-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.termin-cover:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-hover);
}

.termine-leer {
	padding: 2rem 0;
	color: var(--muted-foreground);
}

/* Logged-in users: the WordPress admin bar sits above the sticky header. */
.admin-bar .termine-gruppe,
.admin-bar .termin {
	scroll-margin-top: calc(5rem + 46px);
}

/* --------------------------------------------------------------------------
   Neuerscheinungen (page-templates/neuerscheinungen.php)
   Title and intro on the grey page background, then the book grid of the
   book page (.related-section .books-grid) with detail cards on white
   (same split as the author overview).
   -------------------------------------------------------------------------- */
.neuerscheinungen-kopf {
	padding: 2rem 0;
}

.related-section.neuerscheinungen-liste {
	background-color: var(--card);
}

.neuerscheinungen-kopf .book-title {
	margin-bottom: 0;
}

.neuerscheinungen-intro {
	max-width: 48rem;
	margin-top: 1.5rem;
}

.neuerscheinungen-leer {
	color: var(--muted-foreground);
}

/* --------------------------------------------------------------------------
   Programm (archive-buch.php: /programm/ and the lists of Buchart, Reihe,
   Programm). Title, description and list bar on the grey page background,
   books on white. Font sizes as in the author overview.
   -------------------------------------------------------------------------- */
.programm-kopf {
	padding: 2rem 0;
}

.programm-kopf .book-title {
	margin-bottom: 0;
}

.programm-intro {
	max-width: 48rem;
	margin-top: 1rem;
}

/* List bar: menu "Programm-Leiste" */
.programm-leiste {
	margin-top: 1.5rem;
}

.programm-leiste .menu-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.programm-leiste a {
	display: inline-flex;
	align-items: center;
	min-height: 2.25rem;
	padding: 0.375rem 0.875rem;
	font-family: var(--font-heading);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--primary);
	background-color: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.programm-leiste a:hover {
	color: var(--primary-foreground);
	background-color: var(--primary);
	border-color: var(--primary);
}

/* The list that is open */
.programm-leiste .current-menu-item > a {
	color: var(--primary-foreground);
	background-color: var(--primary);
	border-color: var(--primary);
}

.programm-liste {
	padding: 3rem 0 4rem;
	background-color: var(--card);
}

/* Books: one column on phones, two columns from 640px (row by row, so the
   lines between the books run straight across both columns). */
.programm-buecher {
	display: grid;
	column-gap: 2rem;
	list-style: none;
}

.programm-buecher li {
	padding: 0.875rem 0;
	border-bottom: 1px solid var(--border);
}

.programm-buecher a {
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

/* Small cover, same format as the cover files (--cover-ratio).
   60px on phones, 72px from 640px (was 48px; 24 Nov 2026). */
.programm-cover {
	position: relative;
	flex: 0 0 3.75rem;
	aspect-ratio: var(--cover-ratio);
	overflow: hidden;
	background-color: var(--secondary);
	border-radius: var(--radius-cover);
	box-shadow: var(--shadow-cover);
}

.programm-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.programm-text {
	min-width: 0;
}

.programm-titel {
	display: block;
	margin-bottom: 0.125rem;
	font-family: var(--font-heading);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: -0.0125em;
	line-height: 1.35;
	color: var(--foreground);
	transition: color 0.2s ease;
}

.programm-buecher a:hover .programm-titel {
	color: var(--accent);
}

.programm-info {
	display: block;
	font-size: var(--text-small);
	line-height: 1.5;
	color: var(--muted-foreground);
}

.programm-leer {
	color: var(--muted-foreground);
}

/* Page numbers (paginate_links, type list), also on the search page and
   the page "Neuigkeiten" */
.programm-seiten,
.suche-seiten,
.neuigkeiten-seiten {
	margin-top: 3rem;
}

.programm-seiten ul.page-numbers,
.suche-seiten ul.page-numbers,
.neuigkeiten-seiten ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.375rem;
	list-style: none;
}

.programm-seiten li > .page-numbers,
.suche-seiten li > .page-numbers,
.neuigkeiten-seiten li > .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	padding: 0 0.5rem;
	font-family: var(--font-heading);
	font-size: 0.9375rem;
	font-weight: 600;
	border-radius: var(--radius-sm);
}

.programm-seiten li > a.page-numbers,
.suche-seiten li > a.page-numbers,
.neuigkeiten-seiten li > a.page-numbers {
	color: var(--primary);
	background-color: var(--card);
	border: 1px solid var(--border);
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.programm-seiten li > a.page-numbers:hover,
.suche-seiten li > a.page-numbers:hover,
.neuigkeiten-seiten li > a.page-numbers:hover {
	color: var(--primary-foreground);
	background-color: var(--primary);
	border-color: var(--primary);
}

.programm-seiten li > .page-numbers.current,
.suche-seiten li > .page-numbers.current,
.neuigkeiten-seiten li > .page-numbers.current {
	color: var(--primary-foreground);
	background-color: var(--primary);
}

.programm-seiten li > .page-numbers.dots,
.suche-seiten li > .page-numbers.dots,
.neuigkeiten-seiten li > .page-numbers.dots {
	color: var(--muted-foreground);
}

/* --------------------------------------------------------------------------
   Press: overview (page-templates/presse-uebersicht.php) and press page of a
   season (single-presse.php). Built like the HTML example "Presse": title
   and intro on the grey page background, content on white (like the normal
   pages) in cards with border; press contact in a grey box.
   Parts: template-parts/presse-*.php.
   -------------------------------------------------------------------------- */
.presse-kopf {
	padding: 2rem 0 1.5rem;
}

.presse-kopf .book-title {
	margin-bottom: 0;
}

.presse-zurueck {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	margin-bottom: 1rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--primary);
	transition: color 0.2s ease;
}

.presse-zurueck:hover {
	color: var(--accent);
}

.presse-einleitung {
	max-width: 42rem;
	margin-top: 1rem;
	font-size: var(--body-text-size);
	color: var(--body-text);
}

.presse-einleitung > * + * {
	margin-top: 1rem;
}

.presse-einleitung a {
	color: var(--primary);
	text-decoration: underline;
}

.presse-einleitung a:hover {
	color: var(--accent);
}

/* Content on white below the grey title area, like the normal pages. */
.presse-inhalt {
	padding: 3rem 0 4rem;
	background-color: var(--card);
}

.presse-abschnitt + .presse-abschnitt {
	margin-top: 4rem;
}

.presse-abschnitt-titel {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
	font-size: var(--section-title-size);
}

.presse-abschnitt-titel svg {
	flex-shrink: 0;
	color: var(--accent);
}

.presse-leer {
	color: var(--muted-foreground);
}

/* Preview of the season: picture left, text and buttons right (from 768px). */
.presse-vorschau {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background-color: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}

.presse-vorschau-bild {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem 1.5rem;
	background-color: var(--muted);
}

.presse-vorschau-bild .presse-mockup,
.presse-vorschau-bild .presse-vorschau-foto {
	width: 100%;
	max-width: 500px;
	border-radius: var(--radius-cover);
	box-shadow: var(--shadow-lg);
}

/* An uploaded picture keeps its own proportions. */
.presse-vorschau-bild .presse-vorschau-foto {
	width: auto;
	max-height: 22rem;
}

.presse-vorschau-info {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 2rem 1.5rem;
}

.presse-vorschau-info h3 {
	margin-bottom: 0.5rem;
	font-size: 1.25rem;
	line-height: 1.3;
}

.presse-vorschau-info > p {
	margin-bottom: 1.5rem;
	font-size: 0.875rem;
	color: var(--muted-foreground);
}

.presse-vorschau-knoepfe {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.presse-datei-info {
	margin-top: 0.75rem;
	font-size: var(--text-small);
	color: var(--muted-foreground);
}

/* Surface in the publisher's colours when the preview has no picture. */
.presse-mockup {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.375rem;
	aspect-ratio: 297 / 210;
	padding: 1.5rem;
	overflow: hidden;
	text-align: center;
	color: var(--primary-foreground);
	background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.presse-mockup-logo {
	width: 55%;
	max-width: 11rem;
	height: auto;
	margin-bottom: 0.75rem;
}

.presse-mockup-label {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	opacity: 0.75;
}

.presse-mockup-saison {
	font-family: var(--font-heading);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
}

/* Books of the season: 1 / 2 / 3 cards per row. */
.presse-buecher {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem;
	list-style: none;
}

.presse-buch {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background-color: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}

/* Cover at 70 % of the card width, centred (Sergio: 30 % smaller). */
.presse-buch-cover {
	position: relative;
	display: block;
	width: 70%;
	aspect-ratio: var(--cover-ratio);
	margin: 1.25rem auto 0;
	overflow: hidden;
	background-color: var(--secondary);
	border-radius: var(--radius-cover);
	box-shadow: var(--shadow-cover);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.presse-buch-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* The card stays still; on hover only the cover lifts, like the book cards
   (Neuerscheinungen). */
.presse-buch:hover .presse-buch-cover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-hover);
}

.presse-buch-info {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.25rem;
}

.presse-buch-titel {
	font-size: 1.125rem;
	line-height: 1.3;
	overflow-wrap: break-word;
	hyphens: manual;
}

.presse-buch-titel a {
	transition: color 0.2s ease;
}

.presse-buch-titel a:hover {
	color: var(--accent);
}

.presse-buch-autoren {
	margin-top: 0.25rem;
	font-size: 0.875rem;
	color: var(--muted-foreground);
}

/* Download buttons at the bottom of the card, so they line up in a row. */
.presse-downloads {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: auto;
	padding-top: 1rem;
	list-style: none;
}

.presse-download {
	justify-content: flex-start;
	width: 100%;
	padding: 0.5rem 1rem;
	font-size: var(--text-small);
}

.presse-download svg {
	flex-shrink: 0;
}

.presse-download-format {
	margin-left: auto;
	font-size: var(--text-small);
	font-weight: 400;
	color: var(--muted-foreground);
	white-space: nowrap;
}

/* Overview: one tile per press page, 2 / 3 / 4 per row. */
.presse-programme {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem 1rem;
	list-style: none;
}

.presse-programm {
	display: flex;
	flex-direction: column;
}

.presse-programm-bild {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 297 / 210;
	overflow: hidden;
	background-color: var(--muted);
	border-radius: var(--radius-cover);
	box-shadow: var(--shadow-cover);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.presse-programm:hover .presse-programm-bild {
	transform: translateY(-4px);
	box-shadow: var(--shadow-hover);
}

.presse-programm-bild .presse-mockup {
	width: 100%;
	height: 100%;
	padding: 0.75rem;
}

.presse-programm-bild .presse-mockup-logo {
	width: 60%;
	margin-bottom: 0.25rem;
}

.presse-programm-bild .presse-mockup-label {
	font-size: 0.6875rem;
}

.presse-programm-bild .presse-mockup-saison {
	font-size: 1rem;
}

.presse-programm-bild .presse-vorschau-foto {
	width: 100%;
	height: 100%;
	padding: 0.5rem;
	object-fit: contain;
}

.presse-programm-titel {
	margin-top: 0.75rem;
	font-family: var(--font-heading);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.3;
	overflow-wrap: break-word;
	hyphens: manual;
	transition: color 0.2s ease;
}

.presse-programm:hover .presse-programm-titel {
	color: var(--accent);
}

.presse-programm-mehr {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	margin-top: 0.25rem;
	font-size: var(--text-small);
	font-weight: 600;
	color: var(--primary);
}

/* Press contact (template-parts/presse-kontakt.php) */
.presse-kontakt {
	margin-top: 4rem;
	padding: 2rem 1.5rem;
	background-color: var(--muted);
	border-radius: var(--radius);
}

.presse-kontakt h2 {
	margin-bottom: 0.75rem;
	font-size: 1.5rem;
}

.presse-kontakt-text {
	max-width: 42rem;
	margin-bottom: 1rem;
	font-size: var(--body-text-size);
	color: var(--body-text);
}

.presse-kontakt-daten {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	font-size: 0.875rem;
	list-style: none;
}

.presse-kontakt-daten li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.presse-kontakt-daten svg {
	flex-shrink: 0;
	color: var(--accent);
}

.presse-kontakt-daten a {
	font-weight: 500;
	color: var(--primary);
	overflow-wrap: anywhere;
	transition: color 0.2s ease;
}

.presse-kontakt-daten a:hover {
	color: var(--accent);
}

/* --------------------------------------------------------------------------
   Normal pages (page.php): Der Querverlag, Manuskripte, Buchhandlungen,
   Impressum, Datenschutz ... Title on the grey page background, image and
   text on white in one reading column (left aligned like all titles).
   .seite-text styles everything the block editor can produce in a page:
   headings H1 to H6, paragraphs, lists, quotes, tables, images, separators.
   -------------------------------------------------------------------------- */
.seite-kopf {
	padding: 2rem 0 1.5rem;
}

.seite-kopf .book-title {
	margin-bottom: 0;
}

/* News post (single.php): text link "Weitere Neuigkeiten" above the title
   at the right edge of the page, leads to the page "Neuigkeiten"; looks
   like the links "Alle …" on the home page (Sergio, 21 Nov: a link, not a
   button, with little space to the title). */
.seite-zur-liste {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 0.5rem;
}

.seite-zur-liste-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--primary);
	transition: color 0.2s ease;
}

.seite-zur-liste-link:hover {
	color: var(--accent);
}

.seite-zur-liste-link svg {
	transition: transform 0.2s ease;
}

.seite-zur-liste-link:hover svg {
	transform: translateX(4px);
}

/* Date below the title of a news post (single.php). */
.seite-datum {
	margin-top: 0.75rem;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--muted-foreground);
}

.seite-inhalt {
	padding: 3rem 0 4rem;
	background-color: var(--card);
}

/* Text pages: about 70 characters per line (measured on Datenschutz), a
   bit narrower than before (48rem) but wider than the book text (40rem)
   (Sergio, 21 Nov). */
.seite-spalte {
	max-width: 44rem;
}

/* Featured image directly below the title. */
.seite-bild {
	margin-bottom: 2.5rem;
}

.seite-bild img {
	width: 100%;
	border-radius: var(--radius);
}

.seite-bild figcaption,
.seite-text figcaption {
	margin-top: 0.5rem;
	font-size: var(--text-small);
	line-height: 1.5;
	color: var(--muted-foreground);
}

/* Text */
.seite-text {
	font-size: var(--body-text-size);
	line-height: 1.8;
	color: var(--body-text);
	overflow-wrap: break-word;
}

/* Floating images are cleared at the end of the text. */
.seite-text::after {
	content: "";
	display: table;
	clear: both;
}

.seite-text > * + * {
	margin-top: 1.25rem;
}

.seite-text h1,
.seite-text h2,
.seite-text h3,
.seite-text h4,
.seite-text h5,
.seite-text h6 {
	line-height: 1.25;
	color: var(--foreground);
	hyphens: manual;
}

/* More space above a heading, less between a heading and its text. */
.seite-text > h1,
.seite-text > h2,
.seite-text > h3,
.seite-text > h4,
.seite-text > h5,
.seite-text > h6 {
	margin-top: 2.5rem;
}

.seite-text > h1 + *,
.seite-text > h2 + *,
.seite-text > h3 + *,
.seite-text > h4 + *,
.seite-text > h5 + *,
.seite-text > h6 + * {
	margin-top: 0.75rem;
}

.seite-text > :first-child {
	margin-top: 0;
}

.seite-text h1 {
	font-size: 1.875rem;
	font-weight: 700;
}

.seite-text h2 {
	font-size: 1.5rem;
	font-weight: 700;
}

.seite-text h3 {
	font-size: 1.25rem;
}

.seite-text h4 {
	font-size: 1.1875rem;
}

/* Same size as the text; bold and dark set it apart. */
.seite-text h5 {
	font-size: var(--body-text-size);
}

.seite-text h6 {
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--primary);
}

.seite-text strong,
.seite-text b {
	font-weight: 600;
	color: var(--foreground);
}

.seite-text a {
	color: var(--primary);
	text-decoration: underline;
	text-underline-offset: 0.15em;
	transition: color 0.2s ease;
}

.seite-text a:hover {
	color: var(--accent);
}

.seite-text ul,
.seite-text ol {
	padding-left: 1.5rem;
}

.seite-text li + li,
.seite-text li > ul,
.seite-text li > ol {
	margin-top: 0.375rem;
}

.seite-text li::marker {
	color: var(--primary);
}

.seite-text ol > li::marker {
	font-weight: 600;
}

.seite-text blockquote {
	padding-left: 1.25rem;
	font-size: 1.125rem;
	line-height: 1.6;
	color: var(--foreground);
	border-left: 3px solid var(--accent);
}

.seite-text blockquote > * + * {
	margin-top: 0.75rem;
}

.seite-text blockquote cite {
	display: block;
	font-size: 0.875rem;
	font-style: normal;
	color: var(--muted-foreground);
}

.seite-text hr {
	height: 0;
	margin-block: 2.5rem;
	border: 0;
	border-top: 1px solid var(--border);
}

/* Tables (e.g. Datenschutz): scroll sideways on small screens instead of overflowing. */
.seite-text .wp-block-table {
	overflow-x: auto;
}

.seite-text table {
	width: 100%;
	font-size: 0.875rem;
	line-height: 1.5;
	border-collapse: collapse;
}

/* Two element selectors: stronger than the core table block styles (border on every cell). */
.seite-text table th,
.seite-text table td {
	padding: 0.625rem 0.75rem;
	text-align: left;
	vertical-align: top;
	border: 0;
	border-bottom: 1px solid var(--border);
}

.seite-text table th {
	font-weight: 600;
	color: var(--foreground);
}

/* The core table block draws a thick black line under the header row; a
   slightly stronger line in the border colour instead. */
.seite-text .wp-block-table thead {
	border-bottom: 0;
}

.seite-text table thead th {
	border-bottom-width: 2px;
}

/* Address table (page Buchhandlungen): no header row, the name in the first
   column larger and blue. Class "adressliste" on the table block
   (Block > Advanced > Additional CSS class) (Sergio, 29 Nov). */
/* Same column widths in every table of the page. */
.seite-text .adressliste table {
	table-layout: fixed;
}

.seite-text .adressliste td {
	vertical-align: baseline;
}

.seite-text .adressliste td:first-child {
	width: 50%;
}

.seite-text .adressliste td:first-child,
.seite-text .adressliste td:first-child strong {
	font-size: 1rem;
	font-weight: 600;
	color: var(--primary);
}

.seite-text img {
	border-radius: var(--radius);
}

.seite-text .alignleft,
.seite-text .alignright {
	max-width: 50%;
	margin-bottom: 1rem;
}

.seite-text .alignleft {
	float: left;
	margin-right: 1.5rem;
}

.seite-text .alignright {
	float: right;
	margin-left: 1.5rem;
}

.seite-text .aligncenter {
	margin-inline: auto;
	text-align: center;
}

.seite-text .aligncenter img {
	margin-inline: auto;
}

/* Page break block ("Seitenumbruch"): page numbers below the text. */
.seite-blaettern {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 2.5rem;
	font-weight: 600;
	color: var(--primary);
}

/* --------------------------------------------------------------------------
   Home page (front-page.php)
   1. News: picture with title, text and button; the whole box links to the
      news post. Phones and tablets: text below the picture. From 1024px:
      text on a dark gradient over the left two thirds; the right third
      stays free for the book in the photo (best photo format 21:9). The box
      grows with its text, nothing is cut off.
   2. Next events on white: short list, two lines per event.
   3. New books on the grey page background: detail cards as on the
      Neuerscheinungen page, six in a row on the desktop.
   -------------------------------------------------------------------------- */
.start-aufmacher {
	padding: 1.5rem 0;
}

.aufmacher {
	position: relative;
	/* The picture (z-index -1 from 1024px) stays above the background colour, below the text. */
	isolation: isolate;
	display: flex;
	flex-direction: column;
	background-color: var(--primary);
	border-radius: var(--radius);
}

/* Phones and tablets: picture on top, text below it on dark blue, so the
   book in the right third of the photo is never covered. From 1024px the
   text lies on the left two thirds of the photo. The photo is cut from the
   left if needed: its right side (with the book) always stays visible. */
.aufmacher-bild {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--radius) var(--radius) 0 0;
}

.aufmacher-bild img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: right center;
	transform-origin: right center;
	transition: transform 0.7s ease;
}

.aufmacher:hover .aufmacher-bild img {
	transform: scale(1.03);
}

.aufmacher-inhalt {
	max-width: 42rem;
	padding: 1.5rem;
}

.aufmacher-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
	padding: 0.375rem 0.75rem;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--accent-foreground);
	background-color: var(--accent);
	border-radius: 9999px;
}

.aufmacher-punkt {
	width: 0.375rem;
	height: 0.375rem;
	background-color: currentColor;
	border-radius: 50%;
}

.aufmacher-titel {
	margin-bottom: 1rem;
	font-size: 1.5rem;
	color: var(--card);
	/* No hyphenation (Sergio, 19 Nov); only a word wider than the whole line
	   is broken, so it cannot run out of the box. */
	overflow-wrap: break-word;
	hyphens: manual;
}

.aufmacher-link {
	color: inherit;
}

/* The link of the title covers the whole picture. */
.aufmacher-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: var(--radius);
}

.aufmacher-link:focus-visible {
	outline: none;
}

.aufmacher-link:focus-visible::after {
	outline: 3px solid var(--accent);
	outline-offset: 3px;
}

.aufmacher-text {
	display: -webkit-box;
	margin-bottom: 1.5rem;
	overflow: hidden;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.8);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}

.aufmacher-fuss {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
}

.aufmacher:hover .aufmacher-knopf {
	color: var(--accent-foreground);
	background-color: var(--accent);
	border-color: var(--accent);
}

/* Small white button (Sergio, 19 Nov: the large one was too big); it stands
   out on the dark blue below the picture and on the dark gradient. */
.aufmacher-knopf {
	gap: 0.375rem;
	padding: 0.5rem 1rem;
	font-size: var(--text-small);
	border-color: var(--card);
}

/* Pointer on "Alle Neuigkeiten" (its own link): "Weiterlesen" stays white
   and the photo does not zoom (Sergio, 24 Nov 2026). Browsers without :has()
   keep the old behaviour. */
.aufmacher:has(.aufmacher-alle-knopf:hover) .aufmacher-knopf {
	color: var(--primary);
	background-color: var(--card);
	border-color: var(--card);
}

.aufmacher:has(.aufmacher-alle-knopf:hover) .aufmacher-bild img {
	transform: none;
}

/* Second news (Sergio, 20 Nov 2026): optional, smaller and quieter than the
   large news above it. White box with a small picture, title, two lines of
   text and an arrow (no label, Sergio 20 Nov); the whole box links to the post. Without a
   picture the text uses the full width. */
.zweitmeldung {
	position: relative;
	display: grid;
	grid-template-columns: 5.5rem minmax(0, 1fr);
	align-items: center;
	gap: 1rem;
	margin-top: 1rem;
	padding: 0.75rem;
	background-color: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.zweitmeldung--ohne-bild {
	grid-template-columns: minmax(0, 1fr);
	padding: 1rem 1.25rem;
}

.zweitmeldung:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-hover);
}

.zweitmeldung-bild {
	aspect-ratio: 1;
	overflow: hidden;
	background-color: var(--muted);
	border-radius: var(--radius-sm);
}

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

.zweitmeldung-inhalt {
	min-width: 0;
}

.zweitmeldung-titel {
	font-size: 1.125rem;
	line-height: 1.3;
	/* No hyphenation, like the large news; only a word wider than the line
	   is broken. */
	overflow-wrap: break-word;
	hyphens: manual;
	transition: color 0.2s ease;
}

.zweitmeldung:hover .zweitmeldung-titel {
	color: var(--accent);
}

/* The link of the title covers the whole box. */
.zweitmeldung-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: var(--radius);
}

.zweitmeldung-link:focus-visible {
	outline: none;
}

.zweitmeldung-link:focus-visible::after {
	outline: 3px solid var(--accent);
	outline-offset: 3px;
}

/* Phones: picture and title only; text and arrow from 640px. */
.zweitmeldung-text,
.zweitmeldung-pfeil {
	display: none;
}

.zweitmeldung-text {
	margin-top: 0.375rem;
	overflow: hidden;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--muted-foreground);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.zweitmeldung-pfeil {
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	color: var(--primary);
	border: 1px solid var(--border);
	border-radius: 9999px;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.zweitmeldung-pfeil svg {
	width: 1.125rem;
	height: 1.125rem;
	transition: transform 0.2s ease;
}

.zweitmeldung:hover .zweitmeldung-pfeil {
	color: var(--accent-foreground);
	background-color: var(--accent);
	border-color: var(--accent);
}

.zweitmeldung:hover .zweitmeldung-pfeil svg {
	transform: translateX(2px);
}

/* Colour of the second news (field "Farbe der Box", Sergio 24 Nov 2026):
   four pastels with dark text (text 4.6:1 or more; the title turns blue on
   hover, orange would be only about 4.2:1) and two strong colours with
   white text. White stays the default. */
.zweitmeldung--pfirsich {
	--zweitmeldung-farbe: hsl(30, 80%, 92%);
}

.zweitmeldung--himmelblau {
	--zweitmeldung-farbe: hsl(205, 60%, 92%);
}

.zweitmeldung--salbei {
	--zweitmeldung-farbe: hsl(140, 28%, 89%);
}

.zweitmeldung--flieder {
	--zweitmeldung-farbe: hsl(275, 40%, 93%);
}

.zweitmeldung--pfirsich,
.zweitmeldung--himmelblau,
.zweitmeldung--salbei,
.zweitmeldung--flieder {
	background-color: var(--zweitmeldung-farbe);
	border-color: hsla(205, 40%, 20%, 0.12);
}

.zweitmeldung--pfirsich .zweitmeldung-text,
.zweitmeldung--himmelblau .zweitmeldung-text,
.zweitmeldung--salbei .zweitmeldung-text,
.zweitmeldung--flieder .zweitmeldung-text {
	color: var(--body-text);
}

.zweitmeldung--pfirsich .zweitmeldung-pfeil,
.zweitmeldung--himmelblau .zweitmeldung-pfeil,
.zweitmeldung--salbei .zweitmeldung-pfeil,
.zweitmeldung--flieder .zweitmeldung-pfeil {
	border-color: hsla(205, 40%, 20%, 0.25);
}

.zweitmeldung--pfirsich:hover .zweitmeldung-titel,
.zweitmeldung--himmelblau:hover .zweitmeldung-titel,
.zweitmeldung--salbei:hover .zweitmeldung-titel,
.zweitmeldung--flieder:hover .zweitmeldung-titel {
	color: var(--primary);
}

/* Strong colours: blue (white text 11.5:1) and orange (5.1:1). */
.zweitmeldung--blau {
	--zweitmeldung-farbe: var(--primary);
}

.zweitmeldung--orange {
	--zweitmeldung-farbe: var(--accent);
}

.zweitmeldung--blau,
.zweitmeldung--orange {
	color: var(--primary-foreground);
	background-color: var(--zweitmeldung-farbe);
	border-color: var(--zweitmeldung-farbe);
}

.zweitmeldung--blau .zweitmeldung-text,
.zweitmeldung--orange .zweitmeldung-text {
	color: rgba(255, 255, 255, 0.88);
}

.zweitmeldung--blau .zweitmeldung-pfeil,
.zweitmeldung--orange .zweitmeldung-pfeil {
	color: var(--primary-foreground);
	border-color: rgba(255, 255, 255, 0.5);
}

.zweitmeldung--blau:hover .zweitmeldung-titel,
.zweitmeldung--orange:hover .zweitmeldung-titel {
	color: var(--primary-foreground);
}

.zweitmeldung--blau:hover .zweitmeldung-pfeil,
.zweitmeldung--orange:hover .zweitmeldung-pfeil {
	color: var(--zweitmeldung-farbe);
	background-color: var(--card);
	border-color: var(--card);
}

/* On the strong colours the orange focus ring would not be seen. */
.zweitmeldung--blau .zweitmeldung-link:focus-visible::after,
.zweitmeldung--orange .zweitmeldung-link:focus-visible::after {
	outline-color: var(--primary);
	outline-offset: 3px;
}

/* "Alle Neuigkeiten" (Sergio, 21 Nov 2026): a small white button in the top
   right corner of the large news, above the link that covers the box; it
   turns orange only when the pointer is on the button itself. Without a
   large news a link above the second news, on the right, with the same
   space above (to the header) and below (to the box) on all screen sizes;
   the double class wins over the larger padding from 1024px. */
.aufmacher-alle-knopf {
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 2;
	gap: 0.375rem;
	padding: 0.5rem 1rem;
	font-size: var(--text-small);
	border-color: var(--card);
	box-shadow: var(--shadow-sm);
}

.aufmacher-alle-knopf:hover {
	color: var(--accent-foreground);
	background-color: var(--accent);
	border-color: var(--accent);
}

.aufmacher-alle-knopf:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 3px;
}

.start-aufmacher.start-aufmacher--mit-link {
	padding-top: 1rem;
}

.aufmacher-alle {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 1rem;
}

/* Heading of a section with the link to the full list on the right. */
.start-kopf {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	margin-bottom: 2rem;
}

.start-kopf h2 {
	margin-bottom: 0;
	font-size: var(--section-title-size);
	font-weight: 700;
}

.start-alle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--primary);
	transition: color 0.2s ease;
}

.start-alle:hover {
	color: var(--accent);
}

.start-alle svg {
	transition: transform 0.2s ease;
}

.start-alle:hover svg {
	transform: translateX(4px);
}

/* Next events: short list, two lines per event (template-parts/termin-kurz.php). */
.start-termine {
	padding: 2rem 0 3rem;
	background-color: var(--card);
}

.start-termine .start-kopf {
	margin-bottom: 1rem;
}

.kurztermine {
	list-style: none;
}

.kurztermin {
	display: grid;
	grid-template-columns: 3rem minmax(0, 1fr);
	align-items: center;
	gap: 1rem;
	padding: 1.125rem 0;
	/* Thin line between the events, a little darker than var(--border)
	   (browsers without color-mix() keep the first line). */
	border-bottom: 1px solid var(--border);
	border-bottom: 1px solid color-mix(in srgb, var(--border), var(--foreground) 20%);
}

.kurztermin:last-child {
	border-bottom: 0;
}

.kurztermin-datum {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0.375rem 0;
	line-height: 1;
	background-color: var(--background);
	border-radius: var(--radius-sm);
}

.kurztermin-tag {
	font-family: var(--font-heading);
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--primary);
}

.kurztermin-monat {
	margin-top: 0.25rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	color: var(--secondary);
	text-transform: uppercase;
}

.kurztermin-titel {
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: normal;
	line-height: 1.5;
	overflow-wrap: break-word;
	hyphens: manual;
}

.kurztermin-art {
	color: var(--primary);
}

/* Thin bar between the kind of event and the book title (Sergio, 19 Nov);
   only when a book follows. Not read out by screen readers. */
.kurztermin-art:not(:last-child)::after {
	content: "|";
	content: "|" / "";
	/* Less on the right: the space before the book title adds to it. */
	margin: 0 0.25rem 0 0.5rem;
	font-weight: 400;
	color: var(--muted-foreground);
}

.kurztermin-buch {
	color: var(--foreground);
	transition: color 0.2s ease;
}

.kurztermin-buch:hover {
	color: var(--accent);
}

.kurztermin-details {
	display: flex;
	flex-wrap: wrap;
	gap: 0 1.25rem;
	margin-top: 0.25rem;
	font-size: var(--text-small);
	line-height: 1.7;
	color: var(--muted-foreground);
	overflow-wrap: break-word;
}

.kurztermin-details > span {
	min-width: 0;
}

/* Text of the event under the kind of event and the title (28 Nov 2026), like .termin-text. */
.kurztermin-text {
	margin-top: 0.25rem;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.6;
	color: var(--muted-foreground);
	overflow-wrap: break-word;
}

.kurztermin-text > * + * {
	margin-top: 0.5rem;
}

/* New books (up to 12): the detail cards and the grid of the Neuerscheinungen
   page (.related-section .books-grid: 2 / 3 / 4 per row, two rows of four on
   the desktop; more books start further rows). */
.related-section.start-neuerscheinungen {
	padding: 3rem 0 4rem;
}

/* Fade-in while scrolling (assets/js/einblenden.js adds the classes only to
   elements below the visible area). */
.einblenden {
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.einblenden-wartet {
	opacity: 0;
	transform: translateY(1.25rem);
}

@media (prefers-reduced-motion: reduce) {
	.aufmacher-bild img,
	.neuigkeit-bild img,
	.neuigkeit-mehr svg,
	.pressestimme-quelle svg,
	.start-alle svg,
	.seite-zur-liste-link svg {
		transition: none;
	}

	.aufmacher:hover .aufmacher-bild img,
	.neuigkeit:hover .neuigkeit-bild img,
	.neuigkeit:hover .neuigkeit-mehr svg,
	.pressestimme-quelle a:hover svg,
	.start-alle:hover svg,
	.seite-zur-liste-link:hover svg {
		transform: none;
	}

	.btn,
	.zweitmeldung,
	.book-card-cover,
	.termin-cover,
	.presse-buch-cover,
	.presse-programm-bild,
	.autor-karte-foto img {
		transition: none;
	}

	.btn-primary:hover,
	.zweitmeldung:hover,
	.book-card:hover .book-card-cover,
	.termin-cover:hover,
	.presse-buch:hover .presse-buch-cover,
	.presse-programm:hover .presse-programm-bild,
	.autor-karte:hover .autor-karte-foto img {
		transform: none;
	}
}

/* --------------------------------------------------------------------------
   Below a news post (template-parts/beitrag-verweise.php): chosen books,
   authors and events on the grey page background, each with a heading like
   the home page sections, separated by a thin line. From 1024px books and
   authors stand side by side.
   -------------------------------------------------------------------------- */
.beitrag-verweise .related-section {
	padding-bottom: 3rem;
}

.beitrag-verweise .related-section:last-child {
	padding-bottom: 4rem;
}

.beitrag-verweise .related-section + .related-section {
	padding-top: 0;
}

/* Thin line between the groups (Sergio, 19 Nov), same colour as between
   the events, as wide as the content. */
.beitrag-verweise .related-section + .related-section > .editorial-container::before {
	content: "";
	display: block;
	height: 1px;
	margin-bottom: 3rem;
	background-color: var(--border);
	background-color: color-mix(in srgb, var(--border), var(--foreground) 20%);
}

/* Events: same distance below the heading as on the home page. */
.beitrag-termine .start-kopf {
	margin-bottom: 1rem;
}

/* The date badge is grey; on the grey background it needs white. */
.beitrag-termine .kurztermin-datum {
	background-color: var(--card);
}

/* Books and authors (.beitrag-spalten): one below the other with a line
   between; from 1024px side by side with a vertical line when both are
   chosen. Both use the same card grid: 2 / 3 / 6 columns, 3 side by side. */
.beitrag-spalten {
	display: grid;
	gap: 3rem;
}

.beitrag-gruppe {
	min-width: 0;
}

.beitrag-gruppe + .beitrag-gruppe::before {
	content: "";
	display: block;
	height: 1px;
	margin-bottom: 3rem;
	background-color: var(--border);
	background-color: color-mix(in srgb, var(--border), var(--foreground) 20%);
}

.beitrag-verweise .beitrag-gruppe .books-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	justify-content: normal;
	gap: 1.5rem 1rem;
}

/* Author cards (template-parts/autor-karte.php): photo 4:5 and name. */
.autoren-karten {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem 1rem;
}

.autor-karte a {
	display: block;
}

.autor-karte-foto {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 5;
	margin-bottom: 0.75rem;
	overflow: hidden;
	background-color: var(--secondary);
	border-radius: var(--radius);
}

.autor-karte-foto img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.autor-karte:hover .autor-karte-foto img {
	transform: scale(1.03);
}

.autor-karte-buchstabe {
	font-family: var(--font-heading);
	font-size: 2.5rem;
	font-weight: 600;
	color: var(--secondary-foreground);
}

.autor-karte-name {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	overflow-wrap: break-word;
	transition: color 0.2s ease;
}

.autor-karte:hover .autor-karte-name {
	color: var(--accent);
}

/* --------------------------------------------------------------------------
   Contact page (page-templates/kontakt.php)
   Title on the grey page background, then on white: contact details (and the
   optional page text) and the form; side by side from 1024px.
   -------------------------------------------------------------------------- */
.kontakt-raster {
	display: grid;
	gap: 3rem;
}

.kontakt-adresse {
	font-size: 1.0625rem;
	font-style: normal;
	line-height: 1.7;
}

.kontakt-adresse strong {
	font-family: var(--font-heading);
	font-weight: 600;
}

.kontakt-wege {
	display: grid;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.kontakt-wege dt {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	color: var(--secondary);
	text-transform: uppercase;
}

.kontakt-wege dd {
	font-size: 1.0625rem;
}

.kontakt-wege a {
	color: var(--primary);
	transition: color 0.2s ease;
}

.kontakt-wege a:hover {
	color: var(--accent);
}

.kontakt-text {
	margin-top: 2rem;
}

.kontakt-formular-bereich {
	max-width: 40rem;
	/* Jump target below the sticky header and the admin bar. */
	scroll-margin-top: 8rem;
}

.kontakt-titel {
	margin-bottom: 0.75rem;
	font-size: 1.5rem;
	font-weight: 700;
}

.kontakt-intro {
	margin-bottom: 1.5rem;
	font-size: var(--body-text-size);
	line-height: 1.7;
	color: var(--body-text);
}

.kontakt-formular {
	display: grid;
	gap: 1.25rem;
}

.kontakt-feld {
	display: grid;
	gap: 0.375rem;
}

.kontakt-feld label {
	font-size: 0.875rem;
	font-weight: 600;
}

.kontakt-feld-hinweis {
	font-size: var(--text-small);
	line-height: 1.5;
	color: var(--muted-foreground);
}

.kontakt-feld input,
.kontakt-feld textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	font: inherit;
	font-size: 1rem;
	color: var(--foreground);
	background-color: var(--card);
	border: 1px solid var(--input);
	border-radius: var(--radius-sm);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.kontakt-feld textarea {
	min-height: 10rem;
	line-height: 1.6;
	resize: vertical;
}

.kontakt-feld input:focus,
.kontakt-feld textarea:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(15, 60, 92, 0.15);
}

.kontakt-feld--fehler input,
.kontakt-feld--fehler textarea {
	border-color: var(--accent);
	box-shadow: 0 0 0 1px var(--accent);
}

/* Error below a field: dark text with an orange mark (orange text alone is too pale on white). */
.kontakt-fehler {
	padding-left: 0.625rem;
	font-size: var(--text-small);
	font-weight: 600;
	line-height: 1.5;
	border-left: 3px solid var(--accent);
}

.kontakt-formular .btn {
	justify-self: start;
}

.kontakt-hinweis {
	font-size: var(--text-small);
	color: var(--muted-foreground);
}

.kontakt-hinweis a,
.kontakt-meldung a {
	color: var(--primary);
	text-decoration: underline;
}

.kontakt-meldung {
	margin-bottom: 1.5rem;
	padding: 1rem 1.25rem;
	font-size: 0.9375rem;
	line-height: 1.6;
	background-color: var(--background);
	border-left: 4px solid var(--primary);
	border-radius: var(--radius-sm);
}

.kontakt-meldung--fehler {
	border-left-color: var(--accent);
}

.kontakt-meldung p + p {
	margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   Confirmation popup after the contact form or the newsletter
   (template-parts/bestaetigung.php, native <dialog>, 21 Nov).
   -------------------------------------------------------------------------- */
.bestaetigung {
	width: min(28rem, calc(100% - 2rem));
	margin: auto;
	padding: 2rem 1.75rem 1.75rem;
	color: var(--foreground);
	text-align: center;
	background-color: var(--card);
	border: 0;
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
}

.bestaetigung::backdrop {
	background-color: hsla(205, 60%, 12%, 0.55);
}

.bestaetigung-symbol {
	display: inline-flex;
	margin-bottom: 0.75rem;
	color: var(--accent);
}

.bestaetigung-titel {
	margin-bottom: 0.5rem;
	font-size: 1.5rem;
	line-height: 1.25;
}

.bestaetigung-text {
	font-size: var(--body-text-size);
	line-height: 1.6;
	color: var(--body-text);
}

.bestaetigung-aktion {
	margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   News overview (page-templates/neuigkeiten.php), Sergio 21 Nov 2026:
   title and intro on the grey page background, then on white the news one
   below the other, separated by a thin line (like the search results).
   Phones: picture 16:9 above the text; from 768px picture 3:2 on the left,
   text on the right. The whole entry links to the post; on hover the
   picture zooms a little and the title turns orange.
   Page numbers: see the Programm block (.neuigkeiten-seiten).
   -------------------------------------------------------------------------- */
.neuigkeiten-einleitung {
	margin-top: 1rem;
	font-size: var(--body-text-size);
	color: var(--body-text);
}

.neuigkeiten-einleitung > * + * {
	margin-top: 1rem;
}

.neuigkeiten-einleitung a {
	color: var(--primary);
	text-decoration: underline;
}

.neuigkeiten-einleitung a:hover {
	color: var(--accent);
}

.neuigkeiten-inhalt {
	padding: 1rem 0 4rem;
	background-color: var(--card);
}

.neuigkeiten-spalte {
	max-width: 56rem;
}

.neuigkeit {
	position: relative;
	display: grid;
	gap: 1.25rem;
	padding: 2rem 0;
}

.neuigkeit + .neuigkeit {
	border-top: 1px solid var(--border);
}

.neuigkeit-bild {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background-color: var(--muted);
	border-radius: var(--radius);
}

.neuigkeit-bild img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s ease;
}

.neuigkeit:hover .neuigkeit-bild img {
	transform: scale(1.03);
}

.neuigkeit-inhalt {
	min-width: 0;
}

.neuigkeit-datum {
	margin-bottom: 0.375rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--muted-foreground);
}

.neuigkeit-titel {
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--primary);
	/* No hyphenation, like the news on the home page. */
	overflow-wrap: break-word;
	hyphens: manual;
	transition: color 0.2s ease;
}

.neuigkeit:hover .neuigkeit-titel {
	color: var(--accent);
}

/* The link of the title covers the whole entry. */
.neuigkeit-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.neuigkeit-link:focus-visible {
	outline: none;
}

.neuigkeit-link:focus-visible::after {
	outline: 3px solid var(--accent);
	outline-offset: 4px;
	border-radius: var(--radius);
}

.neuigkeit-text {
	margin-top: 0.625rem;
	font-size: var(--body-text-size);
	line-height: 1.7;
	color: var(--body-text);
}

.neuigkeit-mehr {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1rem;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--primary);
	transition: color 0.2s ease;
}

.neuigkeit-mehr svg {
	transition: transform 0.2s ease;
}

.neuigkeit:hover .neuigkeit-mehr {
	color: var(--accent);
}

.neuigkeit:hover .neuigkeit-mehr svg {
	transform: translateX(4px);
}

.neuigkeiten-leer {
	padding: 2rem 0;
	font-size: var(--body-text-size);
	color: var(--body-text);
}

/* --------------------------------------------------------------------------
   Search results (search.php)
   Title, search field and number of results on the grey page background,
   then on white the results in one reading column, separated by a thin line.
   Page numbers: see the Programm block (.suche-seiten).
   -------------------------------------------------------------------------- */
.suche-kopf {
	padding: 2rem 0 1.5rem;
}

.suche-spalte {
	max-width: 48rem;
}

.suche-kopf .book-title {
	margin-bottom: 1.5rem;
}

.suche-formular {
	display: flex;
	gap: 0.5rem;
}

.suche-eingabe {
	flex: 1;
	min-width: 0;
	padding: 0.75rem 1rem;
	font-family: inherit;
	font-size: 1rem;
	color: var(--foreground);
	background-color: var(--card);
	border: 1px solid var(--input);
	border-radius: var(--radius-sm);
}

.suche-eingabe::placeholder {
	color: var(--muted-foreground);
}

.suche-eingabe:focus {
	outline: none;
	border-color: var(--ring);
	box-shadow: 0 0 0 1px var(--ring);
}

.suche-anzahl {
	margin-top: 1.25rem;
	font-size: 0.9375rem;
	color: var(--muted-foreground);
}

.suche-anzahl strong {
	font-weight: 600;
	color: var(--foreground);
}

.suche-ergebnisse {
	padding: 1rem 0 4rem;
	background-color: var(--card);
}

.suche-liste {
	list-style: none;
}

/* One result; the thin line separates it from the next one. */
.suchtreffer {
	padding: 1.75rem 0;
}

.suchtreffer + .suchtreffer {
	border-top: 1px solid var(--border);
}

.suchtreffer-art {
	margin-bottom: 0.375rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--secondary);
}

.suchtreffer-titel {
	font-size: 1.375rem;
	font-weight: 700;
	overflow-wrap: break-word;
}

.suchtreffer-titel a {
	color: var(--primary);
	transition: color 0.2s ease;
}

.suchtreffer-titel a:hover {
	color: var(--accent);
}

/* Short details (authors, date, place), separated by space like on the home page. */
.suchtreffer-info {
	display: flex;
	flex-wrap: wrap;
	gap: 0 1.25rem;
	margin-top: 0.375rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--muted-foreground);
}

.suchtreffer-text {
	margin-top: 0.625rem;
	font-size: var(--body-text-size);
	line-height: 1.7;
	color: var(--body-text);
}

.suche-leer {
	padding: 2rem 0;
	font-size: var(--body-text-size);
	color: var(--body-text);
}

/* --------------------------------------------------------------------------
   Page not found (404.php), Sergio 20 Nov 2026: like the head of the search
   page (same column, search field), then links to the main parts as
   outline buttons.
   -------------------------------------------------------------------------- */
.fehler-seite {
	padding: 3rem 0 5rem;
}

.fehler-seite .book-title {
	margin-bottom: 1rem;
}

.fehler-text {
	margin-bottom: 1.5rem;
	font-size: var(--body-text-size);
	line-height: 1.7;
	color: var(--body-text);
}

.fehler-ziele {
	margin-top: 2.5rem;
}

.fehler-ziele-titel {
	margin-bottom: 0.875rem;
	font-family: var(--font-ui);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: normal;
	color: var(--muted-foreground);
}

.fehler-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	list-style: none;
}

/* --------------------------------------------------------------------------
   Breakpoint 640px: small tablets
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
	/* Book page: order buttons and "Probekapitel" with more padding. */
	.price-section .btn {
		padding-inline: 1.125rem;
	}

	.order-buttons {
		gap: 0.75rem;
	}

	/* Book page: book data in two columns. */
	.book-meta {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Second news: picture, text, arrow side by side. */
	.zweitmeldung {
		grid-template-columns: 8rem minmax(0, 1fr) auto;
		gap: 1.25rem;
		padding-right: 1.25rem;
	}

	.zweitmeldung--ohne-bild {
		grid-template-columns: minmax(0, 1fr) auto;
		padding: 1.25rem 1.5rem;
	}

	.zweitmeldung-bild {
		aspect-ratio: 4 / 3;
	}

	.zweitmeldung-text {
		display: -webkit-box;
	}

	.zweitmeldung-pfeil {
		display: inline-flex;
	}

	.related-section.autor-buecher .books-grid {
		grid-template-columns: repeat(auto-fill, 8rem);
		gap: 2rem 1.5rem;
	}

	.autor-hero-grid--foto {
		grid-template-columns: 11rem minmax(0, 1fr);
		gap: 2.5rem;
	}

	.autor-foto {
		width: auto;
	}

	.autoren-gruppe {
		grid-template-columns: 4rem minmax(0, 1fr);
		gap: 1.5rem;
	}

	.autoren-namen {
		columns: 2;
		column-gap: 2rem;
	}

	.programm-buecher {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.programm-cover {
		flex-basis: 4.5rem;
	}

	.book-card-meta {
		display: block;
	}

	/* Page heads: the phone values are more compact (24 Nov 2026). */
	.programm-kopf,
	.autoren-kopf,
	.termine-kopf,
	.neuerscheinungen-kopf {
		padding-block: 3rem;
	}

	.presse-kopf,
	.seite-kopf,
	.suche-kopf {
		padding: 3rem 0 2rem;
	}

	.presse-buecher {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.buch-titelliste {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.presse-programme {
		gap: 2rem 1.5rem;
	}

	.presse-kontakt {
		padding: 2rem;
	}

	.editorial-container {
		padding-inline: 1.5rem;
	}

	.footer-bottom {
		flex-direction: row;
		align-items: center;
		justify-content: flex-end;
	}

	.aufmacher-inhalt {
		padding: 2rem;
	}

	.aufmacher-titel {
		font-size: 1.875rem;
	}

	.aufmacher-text {
		font-size: 1rem;
		-webkit-line-clamp: 2;
		line-clamp: 2;
	}

	.autoren-karten {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.beitrag-verweise .beitrag-gruppe .books-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* --------------------------------------------------------------------------
   Breakpoint 768px: tablets
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
	.footer-main {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.social-icons {
		display: flex;
		align-items: center;
		gap: 0.5rem;
	}

	.related-section .books-grid {
		grid-template-columns: repeat(3, calc((100% - 3rem) / 3 * 0.8));
	}

	.termin {
		grid-template-columns: 3.5rem 3.5rem minmax(0, 1fr);
		column-gap: 1.25rem;
	}

	.presse-vorschau {
		flex-direction: row;
	}

	.presse-vorschau-bild {
		width: 55%;
		padding: 2rem;
	}

	.presse-vorschau-info {
		width: 45%;
		padding: 2rem;
	}

	.presse-programme {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.presse-programm-bild .presse-mockup-saison {
		font-size: 1.125rem;
	}

	/* News overview: picture on the left, text on the right. */
	.neuigkeit {
		grid-template-columns: 16rem minmax(0, 1fr);
		align-items: start;
		gap: 2rem;
	}

	.neuigkeit--ohne-bild {
		grid-template-columns: minmax(0, 1fr);
	}

	.neuigkeit-bild {
		aspect-ratio: 3 / 2;
	}

	.neuigkeit-titel {
		font-size: 1.5rem;
	}

	/* Book page: review excerpts in two columns. */
	.pressestimmen-liste {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pressestimmen-liste--eine {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* The WordPress admin bar shrinks from 46px to 32px at 783px. */
@media (min-width: 783px) {
	.admin-bar .header {
		top: 32px;
	}

	.admin-bar .autoren-gruppe,
	.admin-bar .termine-gruppe,
	.admin-bar .termin {
		scroll-margin-top: calc(5rem + 32px);
	}

	.admin-bar :focus {
		scroll-margin-top: calc(6rem + 32px);
	}
}

/* Up to 600px the admin bar scrolls away with the page. */
@media (max-width: 600px) {
	.admin-bar .header {
		top: 0;
	}

	.admin-bar .autoren-gruppe,
	.admin-bar .termine-gruppe,
	.admin-bar .termin {
		scroll-margin-top: 5rem;
	}

	.admin-bar :focus {
		scroll-margin-top: 6rem;
	}
}

/* --------------------------------------------------------------------------
   Breakpoint 1024px: desktop
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
	:root {
		--body-text-size: 1.125rem;
	}

	.fehler-seite {
		padding: 4rem 0 7rem;
	}

	/* More air between the parts of a page (20 Nov). */
	.book-hero {
		padding-bottom: 5rem;
	}

	.about-section,
	.related-section {
		padding-block: 5.5rem;
	}

	.autoren-kopf,
	.termine-kopf,
	.neuerscheinungen-kopf,
	.programm-kopf {
		padding-block: 4rem;
	}

	/* Author overview: three columns (24 Nov 2026). */
	.autoren-namen {
		columns: 3;
	}

	.presse-kopf,
	.seite-kopf,
	.suche-kopf {
		padding: 4rem 0 2.5rem;
	}

	.suchtreffer-titel {
		font-size: 1.5rem;
	}

	.editorial-container {
		padding-inline: 2rem;
	}

	.presse-vorschau-bild {
		width: 66.666%;
	}

	.presse-vorschau-info {
		width: 33.333%;
	}

	.presse-mockup-saison {
		font-size: 1.875rem;
	}

	.presse-buecher {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.buch-titelliste {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.presse-programme {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.presse-programm-bild .presse-mockup-saison {
		font-size: 1.25rem;
	}

	.header-inner {
		height: 5rem;
	}

	.nav {
		display: block;
	}

	.nav .menu-list {
		display: flex;
		align-items: center;
		gap: 2rem;
	}

	.menu-btn,
	.mobile-nav,
	.mobile-nav.active {
		display: none;
	}

	.footer-newsletter {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.newsletter-text h3 {
		font-size: 1.5rem;
	}

	.newsletter-anmeldung {
		width: auto;
		max-width: 28rem;
	}

	.newsletter-input {
		width: 16rem;
	}

	/* Desktop: the cover column is 40 % of the width (2fr), so the cover
	   keeps its size of 21 Nov (80 % of a half column) and the title block
	   starts 4rem after it, not about 11rem (Sergio, 21 Nov). */
	.book-hero-grid {
		grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
		gap: 4rem;
	}

	.book-hero-cover {
		width: auto;
	}

	/* Book page: "Pressestimmen" beside "Über das Buch", in the right half
	   (the text keeps its reading width), the excerpts one below the other
	   (Sergio, 21 Nov). */
	.about-section--mit-presse .about-spalten {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 4rem;
		align-items: start;
	}

	.about-section--mit-presse .about-haupt + .pressestimmen {
		margin-top: 0;
		padding-top: 0;
		border-top: 0;
	}

	.about-section--mit-presse .pressestimmen-liste {
		grid-template-columns: minmax(0, 1fr);
	}

	.autor-hero-grid--foto {
		grid-template-columns: 14rem minmax(0, 1fr);
		gap: 4rem;
	}

	.related-section.autor-buecher .books-grid {
		grid-template-columns: repeat(auto-fill, 10rem);
	}

	.autoren-gruppe {
		grid-template-columns: 5rem minmax(0, 1fr);
		scroll-margin-top: 6rem;
	}

	.admin-bar .autoren-gruppe {
		scroll-margin-top: calc(6rem + 32px);
	}

	.termine-gruppe {
		grid-template-columns: 9rem minmax(0, 1fr);
		gap: 1.5rem;
		scroll-margin-top: 6rem;
	}

	.termine-monat {
		padding-top: 1.25rem;
	}

	.termine-jahr {
		display: block;
		font-size: 1rem;
	}

	.termin {
		scroll-margin-top: 6rem;
	}

	.admin-bar .termine-gruppe,
	.admin-bar .termin {
		scroll-margin-top: calc(6rem + 32px);
	}

	.autoren-buchstabe {
		font-size: 2.25rem;
	}

	.seite-text h1 {
		font-size: 2.25rem;
	}

	.seite-text h2 {
		font-size: 1.875rem;
	}

	.seite-text h3 {
		font-size: 1.375rem;
	}

	.related-section .books-grid {
		grid-template-columns: repeat(4, calc((100% - 4.5rem) / 4 * 0.8));
	}

	.start-aufmacher {
		padding: 2.5rem 0;
	}

	.aufmacher {
		justify-content: flex-end;
		aspect-ratio: 21 / 9;
	}

	.aufmacher--ohne-bild {
		aspect-ratio: auto;
	}

	.aufmacher-bild {
		position: absolute;
		inset: 0;
		z-index: -1;
		aspect-ratio: auto;
		border-radius: inherit;
	}

	/* Dark on the left behind the text, clear over the right third. */
	.aufmacher-bild::after {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(to right, rgba(28, 28, 28, 0.9), rgba(28, 28, 28, 0.65) 40%, rgba(28, 28, 28, 0) 66.6667%);
	}

	.aufmacher-inhalt {
		max-width: min(42rem, 200% / 3);
		padding: 3rem;
	}

	.aufmacher-alle-knopf {
		top: 1.5rem;
		right: 1.5rem;
	}

	.aufmacher-titel {
		font-size: 2.5rem;
	}

	.aufmacher-text {
		font-size: 1.125rem;
	}

	.zweitmeldung {
		grid-template-columns: 11rem minmax(0, 1fr) auto;
		gap: 1.75rem;
		margin-top: 1.25rem;
		padding: 1rem 1.75rem 1rem 1rem;
	}

	.zweitmeldung--ohne-bild {
		grid-template-columns: minmax(0, 1fr) auto;
		padding: 1.5rem 1.75rem;
	}

	.zweitmeldung-titel {
		font-size: 1.375rem;
	}

	.kontakt-raster {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
		gap: 4rem;
	}

	.kontakt-titel {
		font-size: 1.875rem;
	}

	.autoren-karten {
		grid-template-columns: repeat(6, minmax(0, 1fr));
		gap: 1.5rem;
	}

	.beitrag-verweise .beitrag-gruppe .books-grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
		gap: 1.5rem;
	}

	.beitrag-spalten--zwei {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0;
	}

	.beitrag-spalten--zwei .beitrag-gruppe:first-child {
		padding-right: 2rem;
	}

	.beitrag-spalten--zwei .beitrag-gruppe + .beitrag-gruppe {
		padding-left: 2rem;
		border-left: 1px solid var(--border);
		border-left: 1px solid color-mix(in srgb, var(--border), var(--foreground) 20%);
	}

	.beitrag-spalten--zwei .beitrag-gruppe + .beitrag-gruppe::before {
		display: none;
	}

	.beitrag-verweise .beitrag-spalten--zwei .books-grid,
	.beitrag-spalten--zwei .autoren-karten {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* --------------------------------------------------------------------------
   Breakpoint 1280px: wide screens
   -------------------------------------------------------------------------- */
@media (min-width: 1280px) {
	.aufmacher-titel {
		font-size: 3rem;
	}

	/* Author overview: four columns (24 Nov 2026). */
	.autoren-namen {
		columns: 4;
	}
}
