/*
Theme Name: Zahnzeitung
Description: Theme für zahnzeitung.ch (Zahn-Zeitung Schweiz). Braucht das Plugin «Zahnzeitung Kern».
Author: Quintessenz Verlags-GmbH
Version: 1.0.3
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: zahnzeitung
*/

@font-face { font-family: Lato; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/lato-latin-ext-400-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: Lato; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/lato-latin-400-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: Lato; font-style: normal; font-display: swap; font-weight: 700; src: url(fonts/lato-latin-ext-700-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: Lato; font-style: normal; font-display: swap; font-weight: 700; src: url(fonts/lato-latin-700-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: 'Source Serif 4'; font-style: normal; font-display: swap; font-weight: 600; src: url(fonts/source-serif-4-latin-ext-600-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: 'Source Serif 4'; font-style: normal; font-display: swap; font-weight: 600; src: url(fonts/source-serif-4-latin-600-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: 'Source Serif 4'; font-style: normal; font-display: swap; font-weight: 700; src: url(fonts/source-serif-4-latin-ext-700-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: 'Source Serif 4'; font-style: normal; font-display: swap; font-weight: 700; src: url(fonts/source-serif-4-latin-700-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; }

:root {
  --brand: #09adc0;
  --brand-ink: #06707d;
  --brand-soft: #e3f5f7;
  --sand: #aa8b78;
  --sand-soft: #f4ede8;
  --ink: #302a2a;
  --muted: #625c5c;
  --line: #e9e2e2;
  --grey1: #f9f8f8;
  --grey2: #f3eded;
  --paper: #ffffff;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: Lato, 'Helvetica Neue', Arial, sans-serif;
  --radius: 14px;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.18; letter-spacing: -0.01em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.muted { color: var(--muted); }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-ink); margin: 0 0 0.6rem; }
.lede { font-size: 1.2rem; line-height: 1.5; color: var(--muted); max-width: 62ch; }
.h-small { font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 2.2rem; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0.65rem 1.4rem; border-radius: 999px; border: 2px solid var(--brand-ink); background: var(--brand-ink); color: #fff; font: 700 0.82rem/1.2 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background 0.15s, color 0.15s; }
.button:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.button--ghost { background: transparent; color: var(--brand-ink); }
.button[disabled] { opacity: 0.55; cursor: not-allowed; }
.badge { display: inline-block; font: 700 0.68rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 8px; border-radius: 4px; background: var(--ink); color: #fff; margin-right: 8px; vertical-align: middle; }
.badge--soft { background: var(--brand-soft); color: var(--brand-ink); margin: 0; }
.badge--warn { background: #b45309; }
.chip { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--grey2); color: var(--ink); font-size: 0.85rem; text-decoration: none; white-space: nowrap; }
.chip:hover { background: var(--brand-soft); }
.chip--active { background: var(--ink); color: #fff; }
.chip--strong { background: var(--sand-soft); font-weight: 700; }

/* Kopf */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header__top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 18px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand__logo { height: 46px; width: auto; }
.brand__mark { font: 700 2.3rem/1 var(--serif); color: var(--brand); letter-spacing: -0.04em; }
.brand__text { display: flex; flex-direction: column; border-left: 1px solid var(--line); padding-left: 14px; min-width: 0; }
.brand__name { font: 700 1.05rem/1.2 var(--serif); }
.brand__claim { font-size: 0.8rem; color: var(--muted); }
.site-header__tools { display: flex; align-items: center; gap: 14px; }
form.search { display: flex; align-items: center; background: var(--grey1); border: 1px solid var(--line); border-radius: 999px; padding: 2px 6px 2px 16px; }
form.search input { border: 0; background: transparent; font: inherit; font-size: 0.92rem; width: 210px; padding: 7px 0; color: var(--ink); }
form.search input:focus { outline: none; }
form.search:focus-within { border-color: var(--brand); }
form.search button:not(.button) { border: 0; background: none; padding: 6px; color: var(--muted); cursor: pointer; display: flex; }
form.search--large { max-width: 560px; padding: 4px 4px 4px 20px; margin-top: 1rem; }
form.search--large input { flex: 1; width: auto; font-size: 1rem; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: 0.78rem; font-weight: 700; }
.lang-switch a { padding: 6px 11px; text-decoration: none; color: var(--muted); }
.lang-switch a.is-active { background: var(--ink); color: #fff; }
.main-nav { border-top: 1px solid var(--line); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.main-nav a { display: block; padding: 13px 14px; font-size: 0.9rem; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
.main-nav li:first-child a { padding-left: 0; }
.main-nav a:hover { border-bottom-color: var(--brand); }

/* Aufklappmenüs in der Hauptnavigation */
.main-nav li { position: relative; }
.main-nav .menu-item-has-children > a { padding-right: 4px; }
.main-nav .sub-toggle { appearance: none; border: 0; background: none; margin: 0; padding: 13px 10px 13px 2px; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; border-bottom: 3px solid transparent; }
.main-nav .sub-toggle svg { width: 12px; height: 12px; transition: transform 0.15s; }
.main-nav .sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.main-nav .menu-item-has-children { display: flex; align-items: stretch; flex-wrap: wrap; }
.main-nav .sub-menu { list-style: none; margin: 0; padding: 8px 0; display: none; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; min-width: 240px; z-index: 60; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 16px 40px rgba(48, 42, 42, 0.15); }
.main-nav .sub-menu li a, .main-nav .sub-menu li:first-child a { padding: 10px 20px; font-weight: 400; white-space: normal; border-bottom: 0; }
.main-nav .sub-menu a:hover, .main-nav .sub-menu a:focus-visible { background: var(--brand-soft); color: var(--brand-ink); }
.main-nav .sub-menu .current-menu-item > a { font-weight: 700; }
.main-nav .menu-item-has-children:hover > .sub-menu,
.main-nav .menu-item-has-children:focus-within > .sub-menu,
.main-nav .menu-item-has-children.is-open > .sub-menu { display: flex; }
.main-nav .menu-item-has-children:hover > .sub-toggle svg,
.main-nav .menu-item-has-children.is-open > .sub-toggle svg { transform: rotate(180deg); }
/* Einzelner Menüpunkt als Burger-Symbol: im Menüeditor die CSS-Klasse "menu-burger" vergeben */
.main-nav .menu-burger > a { font-size: 0; line-height: 0; padding-right: 14px; }
.main-nav .menu-burger > a::before { content: ''; display: block; width: 24px; height: 24px; background-color: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 6h18M3 12h18M3 18h18' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 6h18M3 12h18M3 18h18' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.main-nav .menu-burger > .sub-toggle { display: none; }
.main-nav .current-menu-ancestor > a, .main-nav .current-menu-parent > a { border-bottom-color: var(--brand); }

main { padding: 28px 0 72px; min-height: 55vh; }
.page-head { margin: 8px 0 32px; }
.page-head--with-photo { display: flex; gap: 22px; align-items: center; }
.avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.page--narrow { max-width: 820px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; font-size: 0.82rem; color: var(--muted); }
.breadcrumb li + li::before { content: '›'; margin-right: 8px; color: var(--line); }
.breadcrumb li:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 48ch; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-ink); }

/* Karten */
.card { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card__media { display: block; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: var(--grey2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--brand-soft), var(--sand-soft)); }
.card__kicker { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-ink); margin: 0 0 6px; }
.card__title { font-size: 1.22rem; margin: 0 0 8px; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--brand-ink); }
.card__teaser { font-size: 0.95rem; color: var(--muted); margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__date { font-size: 0.8rem; color: var(--muted); }
.card--lead { display: grid; grid-template-columns: 1.35fr 1fr; gap: 32px; align-items: center; margin-bottom: 40px; }
.card--lead .card__title { font-size: clamp(1.6rem, 3vw, 2.5rem); }
.card--lead .card__teaser { font-size: 1.08rem; -webkit-line-clamp: 5; }
.card--row { flex-direction: row; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.card--row .card__media { flex: 0 0 168px; align-self: flex-start; }
.card--row .card__title { font-size: 1.12rem; }
.card--row .card__teaser { -webkit-line-clamp: 2; }
.grid { display: grid; gap: 32px 28px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 .card__teaser { display: none; }
.grid--4 .card__title { font-size: 1.08rem; }

.top-stories { display: grid; grid-template-columns: 2.1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.top-stories .card--lead { grid-template-columns: 1fr; gap: 18px; margin: 0; }
.top-stories__side { display: flex; flex-direction: column; gap: 28px; }
.top-stories__side .card__teaser { display: none; }
.home-split { display: grid; grid-template-columns: 2.1fr 1fr; gap: 36px; margin-bottom: 48px; }
.home-events { background: var(--grey1); border-radius: var(--radius); padding: 24px; align-self: start; }
.home-events .button { margin-top: 18px; width: 100%; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 3px solid var(--ink); padding-top: 12px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head a { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.home-section { margin: 56px 0 0; }
.row-list .card--row:first-child { padding-top: 0; }

/* Events */
.event-list { list-style: none; margin: 0; padding: 0; }
.event-row a { display: flex; align-items: center; gap: 20px; padding: 16px 12px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); border-radius: 8px; }
.event-row a:hover { background: var(--grey1); }
.event-row.is-featured a { background: var(--brand-soft); }
.event-row__date { flex: 0 0 74px; text-align: center; display: flex; flex-direction: column; line-height: 1.15; }
.event-row__date b { font: 700 1.7rem/1 var(--serif); color: var(--brand-ink); }
.event-row__date span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.event-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.event-row__title { font-weight: 700; }
.event-row__meta { font-size: 0.86rem; color: var(--muted); }
.event-list--compact .event-row a { padding: 12px 0; gap: 14px; }
.event-list--compact .event-row__date { flex-basis: 56px; }
.event-list--compact .event-row__date b { font-size: 1.35rem; }
.event-list--compact .event-row__title { font-size: 0.95rem; line-height: 1.35; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 20px; }
.filter-bar__spacer { flex: 1; }
.event__layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 48px; align-items: start; }
.event__image { border-radius: var(--radius); margin-bottom: 24px; }
.facts { background: var(--grey1); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 20px; }
.facts dl { margin: 0 0 8px; }
.facts dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }

/* Artikel */
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(220px, 300px); gap: 64px; justify-content: space-between; }
.article__meta { font-size: 0.85rem; color: var(--muted); margin: 0 0 10px; }
.article__kicker { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-ink); margin: 0 0 10px; }
.article__head .lede { color: var(--ink); font-weight: 700; font-size: 1.22rem; }
.article__authors { font-size: 0.92rem; color: var(--muted); }
.article__foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.article-aside { display: flex; flex-direction: column; gap: 28px; }
.toc { position: sticky; top: 20px; border-top: 3px solid var(--ink); padding-top: 12px; }
.toc h2 { font: 700 0.74rem/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; line-height: 1.35; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--brand-ink); }
.prose { font-size: 1.08rem; line-height: 1.72; overflow-wrap: break-word; }
.prose h2 { margin-top: 1.9em; scroll-margin-top: 20px; }
.prose h3, .prose h4 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--brand-ink); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--brand); font: 600 1.25rem/1.45 var(--serif); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.94rem; margin: 1.5em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th, .prose thead td { background: var(--grey1); }
.html-block { overflow-x: auto; }
.figure { margin: 1.8em 0; }
.figure img { border-radius: var(--radius); width: 100%; }
.figure--small { max-width: 52%; }
.figure--wide { margin: 0 0 1.8em; }
figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.credit { white-space: nowrap; }
.box { border-radius: var(--radius); padding: 24px 28px; margin: 1.8em 0; background: var(--brand-soft); }
.box--sand { background: var(--sand-soft); }
.box--grey { background: var(--grey2); }
.box > :first-child { margin-top: 0; }
.box > :last-child { margin-bottom: 0; }
.embed { margin: 1.8em 0; }
.embed__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--grey2); }
.embed__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gallery { margin: 2.4em 0 0; }
.gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.gallery__item { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--grey2); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__cap { position: absolute; inset: auto 0 0 0; padding: 18px 10px 8px; font-size: 0.72rem; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)); opacity: 0; transition: opacity 0.2s; }
.gallery__item:hover .gallery__cap, .gallery__item:focus .gallery__cap { opacity: 1; }

/* Werbung */
.ad { margin: 0 auto 28px; text-align: center; }
.ad__label { display: block; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ad img { margin: 0 auto; border-radius: 6px; }
.ad--article-inline, .ad--article-bottom, .ad--home-middle { margin: 2em auto; }
.ad--sidebar { margin: 0; }

/* E-Paper */
.issue-year { margin-bottom: 44px; }
.issue-year h2 { border-top: 3px solid var(--ink); padding-top: 12px; }
.issue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 26px 22px; }
.issue { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px; font-weight: 700; font-size: 0.92rem; }
.issue img, .issue__blank { width: 100%; aspect-ratio: 210 / 297; object-fit: cover; border-radius: 6px; box-shadow: 0 6px 18px rgba(48, 42, 42, 0.16); transition: transform 0.2s, box-shadow 0.2s; }
.issue__blank { display: flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand-ink); font: 700 1.6rem var(--serif); }
a.issue:hover img, a.issue:hover .issue__blank { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(48, 42, 42, 0.22); }

/* Newsletter, Formular */
.newsletter-box { margin-top: 64px; padding: 36px 40px; border-radius: var(--radius); background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.newsletter-box h2 { margin-bottom: 6px; }
.newsletter-box p { margin: 0; color: #d9d2d2; max-width: 56ch; }
.newsletter-box .button { background: var(--brand); border-color: var(--brand); color: var(--ink); }
.newsletter-box .button:hover { background: #fff; border-color: #fff; color: var(--ink); }
.newsletter-frame { width: 100%; min-height: 720px; border: 1px solid var(--line); border-radius: var(--radius); }
.form { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; font-weight: 700; flex: 1; min-width: 0; }
.form input:not([type='checkbox']), .form select, .form textarea { font: inherit; font-weight: 400; font-size: 1rem; padding: 11px 13px; border: 1px solid #cfc6c6; border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.form__row { display: flex; gap: 16px; flex-wrap: wrap; }
.form__row > label { flex: 1 1 200px; }
.form__hint, .form__count { font-weight: 400; font-size: 0.82rem; color: var(--muted); margin: 0; }
.form__check { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; }
.form__check input { margin-top: 5px; }
.form__trap { position: absolute !important; left: -9999px; }
.form__error { color: #b42318; font-weight: 700; margin: 0; }
.form .button { align-self: flex-start; }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 44px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.pagination a { background: var(--grey2); }
.pagination a:hover { background: var(--brand-soft); }
.pagination .is-current { background: var(--ink); color: #fff; }

/* Fuss */
.site-footer { background: var(--grey1); border-top: 1px solid var(--line); padding: 48px 0 24px; font-size: 0.92rem; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
.site-footer h2 { font: 700 0.74rem/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--brand-ink); text-decoration: underline; }
.site-footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; }

.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(48, 42, 42, 0.2); padding: 18px 22px; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; z-index: 50; font-size: 0.92rem; }
.consent p { margin: 0; flex: 1 1 280px; }
.consent div { display: flex; gap: 10px; }

@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top-stories, .home-split, .article-layout, .event__layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .top-stories__side { flex-direction: row; }
  .top-stories__side > * { flex: 1; }
  .toc, .facts { position: static; }
  .article-aside { order: -1; }
  .article-aside .ad { display: none; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  main { padding-top: 20px; }
  .wrap { padding: 0 16px; }
  .site-header__top { flex-wrap: wrap; padding-top: 12px; gap: 12px; }
  .brand__logo { height: 36px; }
  .brand__claim { display: none; }
  .site-header__tools { width: 100%; }
  .main-nav ul { gap: 0; }
  .main-nav .menu-item-has-children { flex-wrap: wrap; }
  .main-nav .menu-item-has-children:hover > .sub-menu, .main-nav .menu-item-has-children:focus-within > .sub-menu { display: none; }
  .main-nav .menu-item-has-children.is-open > .sub-menu { display: flex; }
  .main-nav .sub-menu { position: static; width: 100%; min-width: 0; border: 0; border-left: 3px solid var(--brand); border-radius: 0; box-shadow: none; padding: 0; margin: 0 0 8px 8px; }
  form.search { flex: 1; }
  form.search input { width: 100%; }
  .card--lead { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .grid--4, .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .top-stories__side { flex-direction: column; }
  .card--row .card__media { flex-basis: 108px; }
  .card--row .card__teaser { display: none; }
  .figure--small { max-width: 100%; }
  .event-row a { gap: 12px; padding: 14px 4px; }
  .event-row__date { flex-basis: 56px; }
  .filter-bar__spacer { display: none; }
  .newsletter-box { padding: 28px 22px; }
  .box { padding: 20px; }
  .page-head--with-photo { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .ad, .article-aside, .newsletter-box, .consent { display: none !important; } }

/* ---------- WordPress: Inhalte aus dem Block-Editor ---------- */
.prose > * { max-width: 100%; }
.prose .wp-block-image { margin: 1.8em 0; }
.prose .wp-block-image img { border-radius: var(--radius); height: auto; }
.prose .wp-block-image.size-small, .prose .wp-block-image.is-style-small { max-width: 52%; }
.prose .wp-element-caption, .prose figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 8px; line-height: 1.45; text-align: left; }
.prose .wp-block-group.is-style-zzs-box, .prose .wp-block-group.is-style-zzs-box-sand, .box { border-radius: var(--radius); padding: 24px 28px; margin: 1.8em 0; background: var(--brand-soft); }
.prose .wp-block-group.is-style-zzs-box-sand { background: var(--sand-soft); }
.prose .wp-block-group.is-style-zzs-box > :first-child, .prose .wp-block-group.is-style-zzs-box-sand > :first-child { margin-top: 0; }
.prose .wp-block-group.is-style-zzs-box > :last-child, .prose .wp-block-group.is-style-zzs-box-sand > :last-child { margin-bottom: 0; }
.prose .wp-block-table { margin: 1.5em 0; overflow-x: auto; }
.prose .wp-block-table table { margin: 0; }
.prose .wp-block-gallery { margin: 2em 0; }
.prose .wp-block-gallery img { border-radius: 10px; }
.prose .wp-block-embed { margin: 1.8em 0; }
.prose .wp-block-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); }
.prose iframe { max-width: 100%; }
.prose img { height: auto; }
.prose .alignleft { float: left; margin: 0.4em 1.4em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: 0.4em 0 1em 1.4em; max-width: 50%; }
.prose .aligncenter { margin-left: auto; margin-right: auto; }
.prose::after { content: ''; display: table; clear: both; }
.main-nav .current-menu-item > a { border-bottom-color: var(--brand); }
.form__check span { font-weight: 400; }
.newsletter-consent { background: var(--grey1); border-radius: var(--radius); padding: 28px; }
.gallery__cap { opacity: 1; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pagination .page-numbers { min-width: 40px; height: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 0.9rem; color: var(--ink); background: var(--grey2); }
.pagination .page-numbers.current { background: var(--ink); color: #fff; }
.pagination .page-numbers.dots { background: none; }
@media (max-width: 680px) { .prose .wp-block-image.size-small, .prose .alignleft, .prose .alignright { max-width: 100%; float: none; margin-left: 0; margin-right: 0; } }
.consent[hidden] { display: none; }

/* Bildergalerie zum Blättern (assets/gallery.js). Ohne JavaScript bleibt das Raster. */
.zzs-gal-source[hidden] { display: none !important; }
.zzs-gal { margin: 2em 0; outline: none; }
.zzs-gal:focus-visible .zzs-gal__stage { box-shadow: 0 0 0 3px var(--brand); }
.zzs-gal__stage { position: relative; background: #14181c; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; }
.zzs-gal__img { width: 100%; height: 100%; object-fit: contain; display: block; cursor: zoom-in; border-radius: 0 !important; }
.zzs-gal__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: #14181c; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); }
.zzs-gal__nav:hover, .zzs-gal__nav:focus-visible { background: #fff; outline: 3px solid var(--brand); outline-offset: 2px; }
.zzs-gal__nav--prev { left: 12px; }
.zzs-gal__nav--next { right: 12px; }
.zzs-gal__nav--next svg { transform: rotate(180deg); }
.zzs-gal__count { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.65); color: #fff; font-size: 0.8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.zzs-gal__zoom { position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border: 0; border-radius: 999px; background: rgba(0, 0, 0, 0.65); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.zzs-gal__zoom:hover, .zzs-gal__zoom:focus-visible { background: #000; outline: 3px solid var(--brand); outline-offset: 2px; }
.zzs-gal__cap { margin: 10px 2px 0; font-size: 0.86rem; line-height: 1.45; color: var(--muted, #5b6470); min-height: 1.3em; }
.zzs-gal__strip { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding: 3px 3px 8px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.zzs-gal__thumb { flex: 0 0 auto; width: 92px; height: 62px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--grey2); opacity: 0.6; scroll-snap-align: center; }
.zzs-gal__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0 !important; }
.zzs-gal__thumb:hover, .zzs-gal__thumb:focus-visible { opacity: 1; }
.zzs-gal__thumb:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.zzs-gal__thumb.is-current { opacity: 1; box-shadow: 0 0 0 3px var(--brand); }
html.zzs-light-open { overflow: hidden; }
.zzs-light { position: fixed; inset: 0; z-index: 9999; background: #0b0d0f; display: flex; align-items: center; justify-content: center; padding: 16px; }
.zzs-light__close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 46px; height: 46px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: #14181c; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.zzs-light__close:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.zzs-gal--light { width: min(1500px, 100%); margin: 0; display: flex; flex-direction: column; max-height: 100%; }
.zzs-gal--light .zzs-gal__stage { aspect-ratio: auto; flex: 1 1 auto; min-height: 0; height: calc(100vh - 190px); background: transparent; }
.zzs-gal--light .zzs-gal__img { cursor: default; }
.zzs-gal--light .zzs-gal__cap { color: #e6e9ec; text-align: center; }
.zzs-gal--light .zzs-gal__strip { justify-content: safe center; }
@media (max-width: 640px) {
  .zzs-gal__nav { width: 40px; height: 40px; }
  .zzs-gal__nav--prev { left: 6px; }
  .zzs-gal__nav--next { right: 6px; }
  .zzs-gal__thumb { width: 72px; height: 50px; }
  .zzs-gal--light .zzs-gal__stage { height: calc(100vh - 170px); }
}
@media (prefers-reduced-motion: reduce) { .zzs-gal__strip { scroll-behavior: auto; } }
