/*
Theme Name: Dokdoc
Theme URI: https://dokdoc.eu/
Author: Labworks
Description: Leichtes, redaktionelles WordPress-Theme für dokdoc.eu.
Version: 0.1.49
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: dokdoc
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--dokdoc-navy: #292f67;
	--dokdoc-navy-dark: #171c46;
	--dokdoc-red: #a52b2f;
	--dokdoc-blue: #3154c8;
	--dokdoc-ink: #202231;
	--dokdoc-muted: #666976;
	--dokdoc-line: #dfe1e8;
	--dokdoc-soft: #f4f5f8;
	--dokdoc-white: #fff;
	--dokdoc-max: 1180px;
	--dokdoc-reading: 740px;
	--dokdoc-radius: 4px;
	--dokdoc-shadow: 0 12px 32px rgb(26 30 62 / 10%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--dokdoc-white);
	color: var(--dokdoc-ink);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--dokdoc-navy); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--dokdoc-red); }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #f0c52e; outline-offset: 3px; }
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
	top: 8px; left: 8px; z-index: 100000; width: auto; height: auto;
	clip: auto; padding: .75rem 1rem; background: #fff; color: #000;
}
.site-shell { width: min(calc(100% - 32px), var(--dokdoc-max)); margin-inline: auto; }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgb(255 255 255 / 96%);
	border-bottom: 1px solid var(--dokdoc-line);
	backdrop-filter: blur(12px);
}
.admin-bar .site-header { top: 32px; }
.header-row { min-height: 88px; display: flex; align-items: center; gap: 24px; }
.site-branding { flex: 0 1 280px; min-width: 0; }
.custom-logo-link { display: block; }
.header-logo { display: block; width: 280px; height: auto; max-width: 100%; object-fit: contain; }
.custom-logo { width: auto; max-width: 155px; max-height: 58px; object-fit: contain; }
.site-title { margin: 0; font-size: 1.65rem; letter-spacing: .08em; line-height: 1; }
.site-title a { color: var(--dokdoc-navy); text-decoration: none; }
.primary-navigation { margin-left: auto; }
.primary-navigation ul { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.primary-navigation li { position: relative; }
.primary-navigation a { color: var(--dokdoc-ink); font-size: .94rem; font-weight: 700; text-decoration: none; }
.primary-navigation a:hover, .primary-navigation .current-menu-item > a { color: var(--dokdoc-red); }
.primary-navigation .sub-menu {
	position: absolute; top: calc(100% + 16px); left: -18px; display: none;
	min-width: 210px; padding: 10px 0; background: #fff; border: 1px solid var(--dokdoc-line); box-shadow: var(--dokdoc-shadow);
}
.primary-navigation li:hover > .sub-menu, .primary-navigation li:focus-within > .sub-menu { display: block; }
.primary-navigation .sub-menu a { display: block; padding: 8px 18px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.language-switcher { display: flex; gap: 10px; }
.language-switcher a {
	display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; overflow: hidden;
	border-radius: 50%; color: var(--dokdoc-muted); font-size: .72rem; font-weight: 800; text-decoration: none;
}
.language-switcher .language-flag { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.language-switcher .is-active { background: var(--dokdoc-navy); color: #fff; outline: 2px solid var(--dokdoc-navy); outline-offset: 2px; }
.language-switcher a:focus-visible { outline: 2px solid var(--dokdoc-red); outline-offset: 2px; }
.header-actions { flex-shrink: 0; }
.icon-button {
	display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0;
	border: 0; border-radius: 50%; background: transparent; color: var(--dokdoc-navy); cursor: pointer;
}
.icon-button:hover { background: var(--dokdoc-soft); }
.icon-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.menu-toggle { display: none; }
.search-panel { display: none; padding: 18px 0; border-top: 1px solid var(--dokdoc-line); }
.search-panel.is-open { display: block; }
.search-form { display: flex; width: min(100%, 680px); margin-inline: auto; }
.search-field { min-width: 0; flex: 1; padding: 12px 15px; border: 1px solid var(--dokdoc-line); border-radius: var(--dokdoc-radius) 0 0 var(--dokdoc-radius); }
.search-submit { padding: 12px 20px; border: 0; border-radius: 0 var(--dokdoc-radius) var(--dokdoc-radius) 0; background: var(--dokdoc-navy); color: #fff; font-weight: 700; cursor: pointer; }

/* Editorial layouts */
.site-main { padding-block: clamp(30px, 5vw, 72px); }
.home-main { padding-top: clamp(22px, 4vw, 52px); }
.section-kicker, .entry-category {
	display: inline-block; color: var(--dokdoc-red); font-size: .76rem; font-weight: 800;
	letter-spacing: .08em; line-height: 1.2; text-decoration: none; text-transform: uppercase;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(270px, .8fr); align-items: start; gap: clamp(24px, 4vw, 56px); }
.lead-story .post-thumbnail { aspect-ratio: 16 / 9; margin-bottom: 22px; overflow: hidden; background: var(--dokdoc-soft); }
.post-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-thumbnail { display: block; }
.post-thumbnail:hover img { transform: scale(1.015); }
.entry-title { margin: .35rem 0 .55rem; color: var(--dokdoc-navy); font-family: Georgia, 'Times New Roman', serif; line-height: 1.12; text-wrap: balance; }
.entry-title a { color: inherit; text-decoration: none; }
.entry-title a:hover { color: var(--dokdoc-red); }
.lead-story .entry-title { font-size: clamp(2rem, 4vw, 3.65rem); }
.entry-meta { display: flex; flex-wrap: wrap; gap: .35rem .8rem; color: var(--dokdoc-muted); font-size: .84rem; }
.entry-summary { margin-top: .75rem; color: #50525d; }
.lead-story .entry-summary { max-width: 62ch; font-size: 1.05rem; }
.latest-list { border-top: 4px solid var(--dokdoc-navy); }
.section-heading { margin: 0; color: var(--dokdoc-navy); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.55rem, 3vw, 2.2rem); line-height: 1.15; }
.latest-list > .section-heading { padding: 18px 0 6px; }
.compact-story { padding: 15px 0; border-bottom: 1px solid var(--dokdoc-line); }
.compact-story .entry-title { font-size: clamp(1.12rem, 1.65vw, 1.4rem); }
.compact-story .entry-summary { display: none; }
.editorial-section { margin-top: clamp(58px, 9vw, 108px); }
.section-header { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 3px solid var(--dokdoc-navy); }
.section-link { flex: 0 0 auto; font-size: .86rem; font-weight: 800; text-decoration: none; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.story-card { min-width: 0; }
.story-card-content { min-width: 0; }
.story-card .post-thumbnail { display: block; width: 100%; aspect-ratio: 4 / 3; margin-bottom: 16px; overflow: hidden; background: var(--dokdoc-soft); }
.story-card .entry-title { font-size: clamp(1.25rem, 2.2vw, 1.65rem); }
.story-card .entry-summary { font-size: .94rem; }
.institutions.editorial-section { margin-top: clamp(36px, 5vw, 60px); }
.institutions .section-header { margin-bottom: 16px; }
.institution-grid { display: flex; gap: 24px; padding: 20px 24px; background: var(--dokdoc-soft); }
.institution-group { display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.institution-group > .institution-logos { align-content: center; }
.institution-operator { flex: 0 0 250px; --institution-logo-width: 230px; --institution-logo-height: 120px; }
.institution-partners { flex: 1 1 0; }
.institution-funders { flex: 0 1 220px; --institution-logo-width: 190px; --institution-logo-height: 88px; }
.institution-group + .institution-group { padding-left: 24px; border-left: 1px solid var(--dokdoc-line); }
.institution-grid .footer-heading { margin-bottom: 12px; color: var(--dokdoc-navy); }
.institution-logos, .institution-grid .partner-widget, .institution-grid .wp-block-gallery,
.institution-grid .wp-block-group__inner-container { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.institution-grid .widget, .institution-grid .wp-block-gallery, .institution-grid .wp-block-image { margin: 0; }
.institution-grid .wp-block-gallery .wp-block-image { flex: 0 1 auto !important; width: auto !important; }
.institution-grid a:has(img) { display: flex; align-items: center; width: var(--institution-logo-width, 140px); max-width: 100%; }
/* Explicit dimensions prevent SVGs with only a viewBox from collapsing in flex items.
 * Override the inline responsive dimensions emitted by WordPress image widgets. */
.institution-grid img { flex: none; width: var(--institution-logo-width, 140px) !important; height: var(--institution-logo-height, 64px) !important; max-width: 100% !important; object-fit: contain; }
.engagement-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.engagement-card { min-width: 0; padding: clamp(24px, 4vw, 44px); background: var(--dokdoc-soft); }
.engagement-card .widget, .engagement-card form { margin: 0; }
.engagement-card h2, .engagement-card h3 { margin-top: 0; color: var(--dokdoc-navy); font-family: Georgia, 'Times New Roman', serif; }
.support-card { display: grid; place-items: center; text-align: center; }
.support-card img { width: min(100%, 280px); margin-inline: auto; }
/* Flag colours run left to right: German above, French below. */
.dokdoc-donate { display: grid; place-items: center; padding: 12px; text-align: center; }
/* Also hide the brand in older donation markup saved in a widget. */
.dokdoc-donate-button .dokdoc-donate-brand { display: none; }
.dokdoc-donate-button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 240px; max-width: 100%; aspect-ratio: 1; padding: 24px; border: 10px solid transparent; border-radius: 50%; background: linear-gradient(var(--dokdoc-navy), var(--dokdoc-navy)) padding-box, conic-gradient(from 270deg, #161616 0deg 60deg, #d51e28 60deg 120deg, #ffcf00 120deg 180deg, #ef394c 180deg 240deg, #fff 240deg 300deg, #234382 300deg 360deg) border-box; color: #fff; text-decoration: none; box-shadow: inset 0 0 0 8px #dce6f3, 0 0 0 1px rgb(35 67 130 / 10%), 0 8px 24px rgb(35 67 130 / 12%); }
.dokdoc-donate-label { max-width: 100%; font-size: clamp(1.75rem, 4vw, 2.125rem); font-weight: 700; line-height: 1.2; text-align: center; text-wrap: balance; overflow-wrap: anywhere; }
.dokdoc-donate-button:hover { color: #fff; box-shadow: inset 0 0 0 8px #dce6f3, 0 0 0 1px rgb(35 67 130 / 20%), 0 10px 28px rgb(35 67 130 / 20%); }
.dokdoc-donate-button:focus-visible { outline: 3px solid #234382; outline-offset: 5px; }
.engagement-card input:not([type='checkbox']):not([type='radio']), .engagement-card select, .engagement-card textarea {
	width: 100%; padding: 11px 12px; border: 1px solid var(--dokdoc-line); background: #fff;
}
.engagement-card input[type='submit'], .engagement-card button[type='submit'] {
	min-height: 46px; padding: 10px 22px; border: 0; background: var(--dokdoc-navy); color: #fff; font-weight: 800; cursor: pointer;
}
.engagement-card input[type='submit']:hover, .engagement-card button[type='submit']:hover { background: var(--dokdoc-red); }
.newsletter-card .newsletter-heading { margin: 0 0 24px; font-size: clamp(1.5rem, 2.5vw, 1.9rem); line-height: 1.2; }
.engagement-card.newsletter-card input[type='submit'], .engagement-card.newsletter-card button[type='submit'] { width: 100%; min-height: 46px; padding: 12px 22px; border: 1px solid var(--dokdoc-navy); border-radius: 0; background: var(--dokdoc-navy); color: #fff; font-family: inherit; font-size: 1rem; font-weight: 700; }
.engagement-card.newsletter-card input[type='submit']:hover, .engagement-card.newsletter-card button[type='submit']:hover { background: var(--dokdoc-navy-dark); border-color: var(--dokdoc-navy-dark); }
.engagement-card.newsletter-card input[type='submit']:focus-visible, .engagement-card.newsletter-card button[type='submit']:focus-visible { outline: 3px solid var(--dokdoc-navy); outline-offset: 4px; }
.archive-header { max-width: var(--dokdoc-reading); margin-bottom: 40px; }
.archive-title { margin: 0; color: var(--dokdoc-navy); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1.1; }
.archive-description { margin-top: 18px; color: var(--dokdoc-muted); }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 30px; }
.pagination { margin-top: 56px; }
.pagination[hidden] { display: none; }
.archive-load-status { margin: 40px 0; color: var(--dokdoc-muted); text-align: center; font-size: .94rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: grid; place-items: center; min-width: 42px; min-height: 42px; padding: 4px 10px; border: 1px solid var(--dokdoc-line); text-decoration: none; }
.page-numbers.current { background: var(--dokdoc-navy); color: #fff; border-color: var(--dokdoc-navy); }

/* Article and page */
.article-header, .article-content, .page-content { width: min(calc(100% - 32px), var(--dokdoc-reading)); margin-inline: auto; }
.article-header { margin-bottom: 32px; }
.single-title, .page-title { margin: .4rem 0 1rem; color: var(--dokdoc-navy); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.2rem, 6vw, 4.5rem); line-height: 1.05; text-wrap: balance; }
.single-title { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; }
/* Imported title prefixes carry an inline colour; use the navigation red. */
.single-title span[style*="color"] { color: var(--dokdoc-red) !important; }
.article-hero { display: grid; place-items: center; width: min(100%, 1060px); margin: 0 auto 42px; background: var(--dokdoc-soft); overflow: hidden; }
.article-hero img { width: auto; max-width: 100%; max-height: min(76vh, 900px); object-fit: contain; }
.article-content, .page-content { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.08rem, 2vw, 1.22rem); }
.article-content > * + *, .page-content > * + * { margin-top: 1.4em; }
.article-content h2, .page-content h2 { margin-top: 1.4em; color: var(--dokdoc-navy); font-size: 1.75em; line-height: 1.15; }
.article-content h3, .page-content h3 { margin-top: 1.3em; color: var(--dokdoc-navy); line-height: 1.2; }
.article-content blockquote, .page-content blockquote { margin: 2em 0; padding-left: 24px; border-left: 5px solid var(--dokdoc-red); color: var(--dokdoc-navy); font-size: 1.2em; }
.article-content figcaption, .page-content figcaption { color: var(--dokdoc-muted); font-family: Arial, sans-serif; font-size: .78rem; }
.article-content > :is(figure, .wp-caption) { margin-block: 1.4em; }
.article-content > :is(figure, .wp-caption):first-child { margin-top: 0; }
.dokdoc-featured-figure { margin: 0 0 1.4em; }
.dokdoc-featured-figure img { display: block; width: 100%; height: auto; }
/* Imported cooperation logos, including linked images and former table layouts. */
.dokdoc-cooperation-logos {
	display: flex;
	align-items: center;
	gap: 16px;
}
.dokdoc-cooperation-logos > :is(img, a) { flex: 0 1 300px; min-width: 0; max-width: 300px; margin: 0; }
.dokdoc-cooperation-logos img { float: none; width: 100%; height: auto; margin: 0; }
.post-navigation { width: min(calc(100% - 32px), var(--dokdoc-reading)); margin: 60px auto 0; padding-top: 24px; border-top: 1px solid var(--dokdoc-line); }
.post-navigation .nav-links { justify-content: space-between; }
.post-navigation a { font-weight: 700; text-decoration: none; }
.dokdoc-author-bio { margin-block: 32px 24px; padding-top: 20px; border-top: 1px solid var(--dokdoc-line); }
.article-content .dokdoc-author-bio > :is(h2, h3, h4) { margin: 0 0 16px; font-size: 1.25rem; line-height: 1.3; }
.dokdoc-author-bio-layout { display: grid; grid-template-columns: 160px minmax(0, 1fr); align-items: start; gap: 20px; }
.dokdoc-author-portrait :is(figure, .wp-caption, p) { float: none; width: 100% !important; max-width: 100%; margin: 0; }
.dokdoc-author-portrait img { display: block; width: 100% !important; max-width: 100%; height: auto !important; }
.article-content .dokdoc-author-portrait :is(figcaption, .wp-caption-text) { margin-top: 6px; font-size: .7rem; line-height: 1.4; }
.dokdoc-author-vita { min-width: 0; font-family: inherit; font-size: .94rem; line-height: 1.6; overflow-wrap: anywhere; }
.dokdoc-author-vita :is(p, span, em, i, strong, a) { font-size: inherit !important; line-height: inherit !important; }
.dokdoc-author-vita > :first-child { margin-top: 0; }
.dokdoc-author-vita > :last-child { margin-bottom: 0; }
.not-found { width: min(100%, 700px); margin-inline: auto; text-align: center; }

/* Footer */
.site-footer { position: relative; margin-top: clamp(60px, 10vw, 120px); background: var(--dokdoc-soft); color: var(--dokdoc-ink); box-shadow: 0 -6px 18px rgb(20 24 60 / 10%); }
/* Equal halves echo Germany and France in the coloured logo. */
.site-footer::before { content: ''; display: block; height: 6px; background: linear-gradient(to right, #161616 0% 16.666%, #d51e28 16.666% 33.333%, #ffcf00 33.333% 50%, #234382 50% 66.666%, #fff 66.666% 83.333%, #ef394c 83.333% 100%); }
.footer-main { display: grid; grid-template-columns: 1.2fr .75fr .85fr 1.2fr; gap: clamp(24px, 4vw, 48px); padding-block: 48px; }
.footer-main > * { min-width: 0; }
.footer-logo-link { display: block; width: 220px; max-width: 100%; }
.footer-logo { width: 100%; height: auto; }
.footer-description { max-width: 34ch; margin-block: 20px 40px; color: var(--dokdoc-navy); font: inherit; font-size: .78rem; font-weight: 700; }
.footer-heading { margin: 0 0 16px; color: #fff; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.site-footer .footer-heading { color: var(--dokdoc-navy); line-height: 1.55; }
.site-footer .footer-heading::after { content: ''; display: block; width: 32px; height: 3px; margin-top: 12px; background: var(--dokdoc-red); }
.site-footer nav + nav .footer-heading::after { background: var(--dokdoc-blue); }
.footer-menu, .footer-utility-menu { margin: 0; padding: 0; list-style: none; }
.footer-menu li + li, .footer-utility-menu li + li { margin-top: 8px; }
.site-footer a { color: var(--dokdoc-navy); text-decoration: none; }
.site-footer a:hover { color: var(--dokdoc-red); }
.footer-social { display: flex; gap: 12px; padding: 0; margin: 0; list-style: none; }
.site-footer .footer-social-link { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; background: var(--dokdoc-navy); }
.footer-social-link img { width: 44px; height: 44px; object-fit: contain; }
.site-footer .footer-social-link:hover { background: var(--dokdoc-red); }
.site-footer .footer-social-link:focus-visible { outline-color: var(--dokdoc-blue); }
.podcast-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px; border-top: 3px solid #ffcf00; background: var(--dokdoc-navy); color: #fff; }
.site-footer .podcast-card a { color: #fff; }
.site-footer .podcast-card a:hover { color: #ffdf70; }
.podcast-media { display: flex; align-items: center; gap: 12px; min-width: 0; }
.podcast-qr { flex: 0 0 64px; width: 64px; height: 64px; object-fit: contain; background: #fff; }
.podcast-logo { min-width: 0; width: 180px; max-width: 100%; max-height: 64px; height: auto; padding: 6px; background: #fff; object-fit: contain; }
.podcast-card.has-qr .podcast-logo { max-width: calc(100% - 76px); }
.podcast-copy { min-width: 0; }
.podcast-card p { margin: 0 0 8px; color: #d3d5df; font-size: .84rem; line-height: 1.45; }
.podcast-card a { font-size: .86rem; font-weight: 800; text-decoration: underline; }
.footer-bottom { padding-block: 18px; background: var(--dokdoc-navy-dark); color: #e8e9f0; font-size: .78rem; }
.wpml-ls-statics-footer { display: none !important; }

@media (max-width: 920px) {
	.admin-bar .site-header { top: 46px; }
	.header-row { min-height: 76px; gap: 8px; }
	.header-actions { margin-left: auto; }
	.header-logo { width: 250px; }
	.custom-logo { max-width: 120px; max-height: 50px; }
	.menu-toggle { display: inline-grid; }
	.primary-navigation {
		position: absolute; top: 100%; right: 0; bottom: auto; z-index: 110;
		width: min(88vw, 390px); height: calc(100vh - 76px); max-height: calc(100dvh - 76px); margin: 0;
		padding: 28px; overflow-y: auto; background: #fff; box-shadow: -18px 20px 42px rgb(20 24 60 / 18%);
		display: none;
	}
	.admin-bar .primary-navigation { height: calc(100vh - 122px); max-height: calc(100dvh - 122px); }
	.primary-navigation.is-open { display: block; }
	.primary-navigation ul { align-items: stretch; flex-direction: column; gap: 0; }
	.primary-navigation a { display: block; padding: 13px 0; border-bottom: 1px solid var(--dokdoc-line); font-size: 1.08rem; }
	.primary-navigation .sub-menu { position: static; display: block; min-width: 0; padding: 0 0 0 16px; border: 0; box-shadow: none; }
	.hero-grid { grid-template-columns: 1fr; }
	.latest-list { margin-top: 10px; }
	.story-grid, .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-main { grid-template-columns: 1fr 1fr; }
	.engagement-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
	.dokdoc-author-bio-layout { grid-template-columns: minmax(80px, 28%) minmax(0, 1fr); gap: 14px; }
	body { font-size: 16px; }
	.site-shell { width: min(calc(100% - 28px), var(--dokdoc-max)); }
	.header-row { min-height: 68px; }
	.header-logo { width: 210px; }
	.custom-logo { max-width: 105px; max-height: 46px; }
	.header-actions { gap: 1px; }
	.icon-button { width: 38px; height: 38px; }
	.language-switcher a { width: 32px; height: 32px; }
	.primary-navigation { top: 100%; height: calc(100vh - 68px); max-height: calc(100dvh - 68px); }
	.admin-bar .primary-navigation { top: 100%; height: calc(100vh - 114px); max-height: calc(100dvh - 114px); }
	.home-main { padding-top: 18px; }
	.lead-story .post-thumbnail { margin-inline: -14px; }
	.lead-story .entry-title { font-size: clamp(1.9rem, 9.5vw, 2.7rem); }
	.story-grid, .archive-grid { grid-template-columns: 1fr; gap: 38px; }
	.story-card { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; }
	.story-card .post-thumbnail { margin: 0; }
	.story-card .entry-title { margin-top: .2rem; font-size: 1.22rem; }
	.story-card .entry-summary { display: none; }
	.story-card .entry-meta { font-size: .74rem; }
	.editorial-section { margin-top: 64px; }
	.institution-grid { flex-direction: column; gap: 18px; padding: 18px; }
	.institution-operator, .institution-partners, .institution-funders { flex: 0 1 auto; }
	.institution-group + .institution-group { padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--dokdoc-line); }
	.institution-logos, .institution-grid .partner-widget, .institution-grid .wp-block-gallery,
	.institution-grid .wp-block-group__inner-container { gap: 14px 18px; }
	.footer-main { grid-template-columns: 1fr; padding-block: 46px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Zeitzeugen: the same editorial typography with a quiet portrait treatment. */
.single-post .category-zeitzeugen .article-header,
.single-post .category-zeitzeugen .article-content { width: min(calc(100% - 32px), var(--dokdoc-reading)); }
.zeitzeugen-portrait {
	display: grid; align-items: start; gap: 24px;
	width: min(calc(100% - 32px), var(--dokdoc-reading)); margin: 0 auto 36px;
	padding: clamp(20px, 3vw, 30px); border: 1px solid #e8e3dc;
	border-left: 4px solid var(--dokdoc-red); border-radius: 0 8px 8px 0;
	background: #f7f5f1;
}
.zeitzeugen-portrait.has-portrait { grid-template-columns: 160px minmax(0, 1fr); }
.zeitzeugen-portrait-image { width: 120px; height: auto; border-radius: 6px; }
.zeitzeugen-person { min-width: 0; overflow-wrap: anywhere; }
.zeitzeugen-person .section-kicker { margin-bottom: 12px; font-size: .68rem; }
.zeitzeugen-person h2 { margin: 0 0 10px; color: var(--dokdoc-navy); font: 700 clamp(1.35rem, 3vw, 1.75rem)/1.2 Georgia, serif; }
.zeitzeugen-bio { margin: 0; font-size: .94rem; line-height: 1.6; white-space: pre-line; }
.zeitzeugen-caption { color: var(--dokdoc-muted); font-size: .8rem; line-height: 1.6; }
.zeitzeugen-bio + .zeitzeugen-caption { margin-top: 16px; padding-top: 12px; border-top: 1px solid #e0dbd3; }
.story-card.category-zeitzeugen { padding: 20px; border-top: 3px solid var(--dokdoc-red); background: #f7f5f1; }
.story-card.category-zeitzeugen .post-thumbnail { width: 96px; aspect-ratio: auto; }
.story-card.category-zeitzeugen .post-thumbnail img { height: auto; }
.lead-story.category-zeitzeugen { padding: 24px; border-top: 3px solid var(--dokdoc-red); background: #f7f5f1; }
.lead-story.category-zeitzeugen .post-thumbnail { width: 120px; aspect-ratio: auto; margin-inline: 0; }
.lead-story.category-zeitzeugen .post-thumbnail img { height: auto; }
.category-zeitzeugen .archive-header { padding: 24px; }
@media (max-width: 600px) {
	.zeitzeugen-portrait { padding: 20px; gap: 18px; }
	.zeitzeugen-portrait.has-portrait { grid-template-columns: minmax(0, 1fr); }
	.story-card.category-zeitzeugen { grid-template-columns: minmax(0, 1fr); }
}

/* Keep legacy article media inside the reading column on small screens. */
.article-content, .page-content { min-width: 0; overflow-wrap: anywhere; }
.article-content :where(figure, .wp-caption),
.page-content :where(figure, .wp-caption) { max-width: 100%; }
.article-content :where(iframe, video),
.page-content :where(iframe, video) { max-width: 100%; }
@media (max-width: 780px) {
	.article-content :where(figure, .wp-caption),
	.page-content :where(figure, .wp-caption) { margin-inline: 0; }
	.article-content :where(.alignleft, .alignright),
	.page-content :where(.alignleft, .alignright) { float: none; margin-inline: 0; max-width: 100%; }
}
