/*
Theme Name: Zeitkatzen
Theme URI: https://www.zeitkatzen.de/
Author: Zeitkatzen
Description: Geheimarchiv der Zeitkatzen – Theme für zeitkatzen.de und timekeepercats.com (Polylang DE/EN). Rubriken aus Kategorien, Akten-Karten, Verschlusssachen für Agenten der Stufe 1. Ersetzt Flash + Flash Toolkit.
Version: 2.0.0
Requires at least: 6.4
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: zeitkatzen
*/

/* ------------------------------------------------------------------ Schriften (OFL, selbst gehostet) */
@font-face { font-family: "Cinzel"; src: url("assets/fonts/Cinzel.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "IM Fell English"; src: url("assets/fonts/IMFellEnglish-Regular.woff2") format("woff2"); font-style: normal; font-display: swap; }
@font-face { font-family: "IM Fell English"; src: url("assets/fonts/IMFellEnglish-Italic.woff2") format("woff2"); font-style: italic; font-display: swap; }

/* ------------------------------------------------------------------ Farben und Maße */
:root {
    --zk-night: #0b1a1f;
    --zk-night-2: #10262c;
    --zk-forest: #183730;
    --zk-portal: #6fe6f2;
    --zk-portal-dim: rgba(111, 230, 242, .16);
    --zk-paper: #f5eedc;
    --zk-paper-2: #ece0c4;
    --zk-paper-edge: #d9c69b;
    --zk-ink: #2b1d12;
    --zk-ink-soft: #5a4631;
    --zk-brass: #c9a24a;
    --zk-brass-dark: #8a6a24;
    --zk-seal: #a3261b;
    --zk-moss: #3f6b4f;
    --zk-line: rgba(43, 29, 18, .16);

    --zk-font-display: "Cinzel", "Trajan Pro", Georgia, serif;
    --zk-font-fell: "IM Fell English", Georgia, serif;
    --zk-font-body: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    --zk-font-ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --zk-wrap: 1180px;
    --zk-text: 720px;
    --zk-radius: 10px;
    --zk-gap: clamp(16px, 2.4vw, 28px);
    --zk-band-pad: clamp(48px, 8vw, 96px);
    --zk-shadow: 0 1px 2px rgba(43, 29, 18, .08), 0 8px 24px -12px rgba(43, 29, 18, .35);
}

/* ------------------------------------------------------------------ Grundlagen */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
    margin: 0;
    background: var(--zk-paper);
    color: var(--zk-ink);
    font: 400 1.0625rem/1.7 var(--zk-font-body);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--zk-brass-dark); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--zk-seal); }
:focus-visible { outline: 2px solid var(--zk-portal); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--zk-font-display); font-weight: 600; line-height: 1.2; letter-spacing: .02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
hr { border: 0; height: 1px; background: var(--zk-line); margin: 2em 0; }
::selection { background: var(--zk-portal); color: var(--zk-night); }

.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;
}
.zk-skip { position: absolute; left: 12px; top: -48px; z-index: 1000; padding: 8px 14px; background: var(--zk-portal); color: var(--zk-night); border-radius: 6px; font: 600 .9rem var(--zk-font-ui); }
.zk-skip:focus { top: 12px; }
.zk-main:focus { outline: none; }

.zk-wrap { width: min(100% - 2 * var(--zk-gap), var(--zk-wrap)); margin-inline: auto; }
.zk-wrap--text { width: min(100% - 2 * var(--zk-gap), var(--zk-text)); }

.zk-icon { flex: none; vertical-align: middle; }
.zk-eyebrow { font: 600 .78rem/1.4 var(--zk-font-display); letter-spacing: .22em; text-transform: uppercase; color: var(--zk-brass); margin-bottom: .9em; }

/* ------------------------------------------------------------------ Knöpfe */
.zk-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.zk-btn {
    display: inline-flex; align-items: center; gap: .5em; padding: .8em 1.5em; border-radius: 999px;
    font: 600 .85rem/1 var(--zk-font-display); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
    border: 1px solid transparent; transition: background .2s, color .2s, box-shadow .2s, transform .2s; cursor: pointer;
}
.zk-btn:hover { transform: translateY(-1px); }
.zk-btn--glow { background: var(--zk-portal); color: var(--zk-night); box-shadow: 0 0 0 0 rgba(111, 230, 242, .5), 0 0 28px rgba(111, 230, 242, .45); }
.zk-btn--glow:hover { color: var(--zk-night); box-shadow: 0 0 0 4px rgba(111, 230, 242, .25), 0 0 40px rgba(111, 230, 242, .6); }
.zk-btn--ghost { color: #f3f7f6; border-color: rgba(243, 247, 246, .45); background: rgba(11, 26, 31, .35); backdrop-filter: blur(4px); }
.zk-btn--ghost:hover { color: var(--zk-night); background: #f3f7f6; }
.zk-btn--ink { background: var(--zk-ink); color: var(--zk-paper); }
.zk-btn--ink:hover { background: var(--zk-seal); color: #fff; }

.zk-link-more { display: inline-flex; align-items: center; gap: .4em; font: 600 .8rem/1 var(--zk-font-display); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }

/* ------------------------------------------------------------------ Kopfzeile */
.zk-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(11, 26, 31, .92); backdrop-filter: saturate(1.2) blur(10px);
    border-bottom: 1px solid rgba(111, 230, 242, .18);
    color: #e9efee;
}
.admin-bar .zk-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .zk-header { top: 46px; } }
.zk-header__inner { display: flex; align-items: center; gap: 20px; width: min(100% - 2 * var(--zk-gap), 1320px); margin-inline: auto; min-height: 72px; }
.zk-brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.zk-brand:hover { color: var(--zk-portal); }
.zk-logo-img { border-radius: 50%; box-shadow: 0 0 18px rgba(111, 230, 242, .45); }
.zk-brand__name { font: 700 1.2rem/1 var(--zk-font-display); letter-spacing: .08em; }

.zk-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.zk-menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; }
.zk-menu a {
    display: block; padding: 10px 9px; border-radius: 6px; color: #dfe8e6; text-decoration: none; white-space: nowrap;
    font: 500 .74rem/1.2 var(--zk-font-display); letter-spacing: .1em; text-transform: uppercase;
}
.zk-menu a:hover, .zk-menu .current-menu-item > a, .zk-menu .current_page_item > a { color: var(--zk-portal); background: rgba(111, 230, 242, .08); }
.zk-menu .sub-menu { display: none; }
.zk-menu .lang-item { display: none; } /* Polylang-Menüeintrag: Sprache wechselt der Umschalter daneben */
.zk-header__tools { display: flex; align-items: center; gap: 14px; }

.zk-lang ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 2px; border: 1px solid rgba(233, 239, 238, .25); border-radius: 999px; }
.zk-lang a { display: block; padding: 5px 9px; border-radius: 999px; color: #dfe8e6; text-decoration: none; font: 600 .72rem/1 var(--zk-font-ui); letter-spacing: .08em; }
.zk-lang a[aria-current] { background: var(--zk-brass); color: var(--zk-night); }

.zk-search { display: flex; align-items: center; border: 1px solid rgba(233, 239, 238, .25); border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .04); }
.zk-search input { width: 120px; padding: 7px 4px 7px 14px; border: 0; background: transparent; color: inherit; font: .85rem var(--zk-font-ui); }
.zk-search input::placeholder { color: rgba(223, 232, 230, .6); }
.zk-search input:focus { outline: none; }
.zk-search button { display: grid; place-items: center; width: 34px; height: 32px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.zk-search:focus-within { border-color: var(--zk-portal); }
.zk-search-toggle { position: relative; }
.zk-search-toggle > summary { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(233, 239, 238, .25); cursor: pointer; list-style: none; }
.zk-search-toggle > summary::-webkit-details-marker { display: none; }
.zk-search-toggle[open] > summary, .zk-search-toggle > summary:hover { border-color: var(--zk-portal); color: var(--zk-portal); }
.zk-search-toggle > .zk-search { position: absolute; right: 0; top: calc(100% + 12px); background: var(--zk-night); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6); }
.zk-search-toggle > .zk-search input { width: 260px; }
.zk-footer .widget:has(> h2:only-child:empty) { display: none; }
.zk-search--block { max-width: 460px; margin: 16px 0; color: var(--zk-ink); border-color: var(--zk-line); background: #fffaf0; }
.zk-search--block input { width: 100%; color: var(--zk-ink); }
.zk-search--block input::placeholder { color: var(--zk-ink-soft); }
.zk-hero .zk-search--block { color: #e9efee; border-color: rgba(233, 239, 238, .35); background: rgba(11, 26, 31, .5); }
.zk-hero .zk-search--block input { color: #fff; }

.zk-nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid rgba(233, 239, 238, .3); border-radius: 10px; background: transparent; color: inherit; cursor: pointer; }
.zk-nav-toggle__close { display: none; }
.zk-nav-toggle[aria-expanded="true"] .zk-nav-toggle__open { display: none; }
.zk-nav-toggle[aria-expanded="true"] .zk-nav-toggle__close { display: inline; }

@media (max-width: 1260px) {
    .zk-nav-toggle { display: grid; place-items: center; }
    .zk-nav {
        position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 18px;
        padding: 18px var(--zk-gap) 28px; background: var(--zk-night); border-bottom: 1px solid rgba(111, 230, 242, .2);
        max-height: calc(100vh - 72px); overflow: auto;
    }
    .zk-nav.is-open { display: flex; }
    .zk-menu ul { flex-direction: column; }
    .zk-menu a { padding: 14px 8px; font-size: .9rem; border-bottom: 1px solid rgba(233, 239, 238, .08); border-radius: 0; }
    .zk-header__tools { justify-content: space-between; flex-wrap: wrap; }
    .zk-search-toggle { flex: 1; }
    .zk-search-toggle > summary { display: none; }
    .zk-search-toggle > .zk-search { position: static; display: flex; box-shadow: none; background: transparent; }
    .zk-search-toggle > .zk-search input { width: 100%; }
}

/* ------------------------------------------------------------------ Kopf der Startseite */
.zk-hero {
    position: relative; isolation: isolate; overflow: hidden;
    min-height: min(88vh, 760px); display: grid; align-items: end;
    background: radial-gradient(120% 90% at 80% 40%, #17414a 0%, var(--zk-night) 60%);
    color: #eef4f3;
}
.zk-hero--small { min-height: 64vh; align-items: center; }
.zk-hero__img { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.zk-hero__veil {
    position: absolute; inset: 0; z-index: -2;
    background:
        linear-gradient(180deg, rgba(11, 26, 31, .35) 0%, rgba(11, 26, 31, .1) 35%, rgba(11, 26, 31, .82) 78%, var(--zk-night) 100%),
        linear-gradient(90deg, rgba(11, 26, 31, .75) 0%, rgba(11, 26, 31, 0) 60%);
}
/* Runenring des Portals: reine CSS-Grafik, dreht sich langsam */
.zk-hero__portal {
    position: absolute; z-index: -1; right: -12vmin; top: 46%; width: min(78vmin, 720px); aspect-ratio: 1; transform: translateY(-50%);
    border-radius: 50%; mix-blend-mode: screen; opacity: .6; pointer-events: none;
    background:
        radial-gradient(circle, rgba(111, 230, 242, .28) 0 34%, rgba(111, 230, 242, .06) 52%, transparent 53%),
        repeating-conic-gradient(from 0deg, rgba(160, 244, 250, .85) 0 .6deg, transparent .6deg 6deg),
        conic-gradient(from 90deg, rgba(111, 230, 242, .2), rgba(111, 230, 242, .6), rgba(111, 230, 242, .2), rgba(111, 230, 242, .6), rgba(111, 230, 242, .2));
    -webkit-mask: radial-gradient(circle, #000 0 34%, transparent 34.5% 56%, #000 56.5% 63%, transparent 63.5% 67%, #000 67.5% 69%, transparent 69.5%);
    mask: radial-gradient(circle, #000 0 34%, transparent 34.5% 56%, #000 56.5% 63%, transparent 63.5% 67%, #000 67.5% 69%, transparent 69.5%);
    filter: drop-shadow(0 0 22px rgba(111, 230, 242, .7));
    animation: zk-spin 160s linear infinite;
}
@keyframes zk-spin { to { transform: translateY(-50%) rotate(1turn); } }
.zk-hero__content { padding: 140px 0 clamp(56px, 9vw, 110px); }
.zk-hero .zk-eyebrow { color: #f0d48c; text-shadow: 0 1px 2px rgba(0, 0, 0, .8), 0 0 18px rgba(11, 26, 31, .9); }
.zk-hero__lead { text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.zk-hero__title {
    font: 700 clamp(2.8rem, 9vw, 6.4rem)/1 var(--zk-font-display); letter-spacing: .05em; margin: 0 0 .25em;
    text-shadow: 0 0 40px rgba(111, 230, 242, .35), 0 2px 0 rgba(0, 0, 0, .3);
}
.zk-hero__title--small { font-size: clamp(1.9rem, 5vw, 3.2rem); }
.zk-hero__lead { max-width: 40rem; font: 400 clamp(1.1rem, 1.6vw, 1.35rem)/1.55 var(--zk-font-fell); color: #dbe7e5; }

/* ------------------------------------------------------------------ Bänder (Abschnitte) */
.zk-band { padding-block: var(--zk-band-pad); }
.zk-band--paper { background: var(--zk-paper); }
.zk-band--paper-dark {
    background: var(--zk-paper-2);
    background-image: radial-gradient(rgba(43, 29, 18, .05) 1px, transparent 1px);
    background-size: 22px 22px;
}
.zk-band--night { background: var(--zk-night); color: #e6eeec; }
.zk-band--night .zk-band__intro { color: #b9cac7; }
.zk-band__head { display: flex; align-items: end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 32px; }
.zk-band__title { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-bottom: .2em; }
.zk-band__title::after { content: ""; display: block; width: 56px; height: 2px; margin-top: .45em; background: linear-gradient(90deg, var(--zk-brass), transparent); }
.zk-band__intro { max-width: 46rem; margin: 0; color: var(--zk-ink-soft); font-family: var(--zk-font-fell); font-size: 1.15rem; }

/* Rubrik-Kacheln */
.zk-sections { padding-block: 0 48px; margin-top: -1px; }
.zk-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.zk-tile {
    display: grid; gap: 6px; justify-items: start; height: 100%; padding: 22px 20px; border-radius: var(--zk-radius);
    background: linear-gradient(160deg, rgba(111, 230, 242, .09), rgba(111, 230, 242, .02));
    border: 1px solid rgba(111, 230, 242, .2); color: #e6eeec; text-decoration: none;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.zk-tile .zk-icon { color: var(--zk-portal); margin-bottom: 6px; }
.zk-tile:hover { color: #fff; border-color: var(--zk-portal); transform: translateY(-2px); box-shadow: 0 0 30px -8px rgba(111, 230, 242, .5); }
.zk-tile__label { font: 600 clamp(.82rem, 3.4vw, 1rem)/1.2 var(--zk-font-display); letter-spacing: .04em; overflow-wrap: anywhere; hyphens: auto; }
.zk-tile__count { font: .8rem var(--zk-font-ui); color: #9fb5b1; }

/* ------------------------------------------------------------------ Karten */
.zk-grid { display: grid; gap: var(--zk-gap); }
.zk-grid--file { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.zk-grid--portrait { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.zk-grid--compact { grid-template-columns: 1fr; gap: 12px; }

.zk-card { position: relative; }
.zk-card__link {
    display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none;
    background: #fffaf0; border: 1px solid var(--zk-paper-edge); border-radius: var(--zk-radius); overflow: hidden;
    box-shadow: var(--zk-shadow); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.zk-card__link:hover { color: inherit; transform: translateY(-3px); border-color: var(--zk-brass); box-shadow: 0 2px 4px rgba(43, 29, 18, .08), 0 18px 36px -16px rgba(43, 29, 18, .45); }
.zk-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--zk-night-2); }
.zk-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.zk-card__link:hover .zk-card__media img { transform: scale(1.04); }
.zk-card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--zk-portal); opacity: .6; }
.zk-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 18px 20px 20px; }
.zk-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; min-height: 1.4em; }
.zk-card__file { font: 600 .72rem/1 var(--zk-font-ui); letter-spacing: .12em; color: var(--zk-ink-soft); }
.zk-card__title { font-size: 1.15rem; margin: 0; line-height: 1.3; }
.zk-card__excerpt { margin: 0; color: var(--zk-ink-soft); font-size: .98rem; line-height: 1.55; }
.zk-card__more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: .4em; color: var(--zk-brass-dark); font: 600 .74rem/1 var(--zk-font-display); letter-spacing: .14em; text-transform: uppercase; }

/* Akte: Reiter oben links */
.zk-card--file .zk-card__link { border-top-left-radius: 0; }
.zk-card--file::before {
    content: ""; position: absolute; left: 0; top: -9px; width: 38%; height: 10px; border-radius: 8px 8px 0 0;
    background: #fffaf0; border: 1px solid var(--zk-paper-edge); border-bottom: 0;
}

/* Agentenfoto: rund mit Messingring */
.zk-card--portrait .zk-card__link { align-items: center; text-align: center; padding-top: 22px; }
.zk-card--portrait .zk-card__media { width: 72%; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 3px var(--zk-paper), 0 0 0 5px var(--zk-brass), 0 10px 24px -10px rgba(43, 29, 18, .6); }
.zk-card--portrait .zk-card__body { align-items: center; padding-top: 16px; }
.zk-card--portrait .zk-card__meta { justify-content: center; }
.zk-card--portrait .zk-card__more { margin-top: auto; }

/* Kompakt: Textzeile */
.zk-card--compact .zk-card__link { flex-direction: row; }
.zk-card--compact .zk-card__body { padding: 14px 18px; gap: 4px; }
.zk-card--compact .zk-card__title { font-size: 1.02rem; }
.zk-card--compact .zk-card__more { display: none; }
.zk-card--compact .zk-card__meta { min-height: 0; }
.zk-card--compact .zk-card__meta:empty { display: none; }

/* Verschlusssache */
.zk-card.is-locked .zk-card__media img { filter: blur(10px) grayscale(.6) brightness(.7); transform: scale(1.1); }
.zk-card.is-locked .zk-card__link:hover .zk-card__media img { transform: scale(1.12); }
.zk-card__lock { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.zk-card__lock .zk-icon { padding: 14px; border-radius: 50%; background: rgba(163, 38, 27, .85); box-sizing: content-box; box-shadow: 0 0 0 6px rgba(163, 38, 27, .25); }
.zk-card.is-locked .zk-card__title { filter: blur(.4px); }

/* Stempel */
.zk-stamp {
    display: inline-block; padding: 3px 8px 2px; border: 1.5px solid currentColor; border-radius: 3px;
    font: 700 .66rem/1.3 var(--zk-font-ui); letter-spacing: .14em; text-transform: uppercase; transform: rotate(-2deg);
}
.zk-stamp--public { color: var(--zk-moss); }
.zk-stamp--secret { color: var(--zk-seal); }
.zk-stamp--redacted { color: var(--zk-ink); background: repeating-linear-gradient(-45deg, transparent 0 4px, rgba(43, 29, 18, .1) 4px 8px); }

.zk-empty { color: var(--zk-ink-soft); font-style: italic; }

/* ------------------------------------------------------------------ Seitenkopf, Pergament, Fließtext */
.zk-page-head {
    position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 clamp(36px, 5vw, 56px);
    background: radial-gradient(90% 140% at 85% 0%, #17414a 0%, var(--zk-night) 62%); color: #eef4f3;
}
.zk-page-head::after {
    content: ""; position: absolute; right: -120px; top: -120px; width: 380px; aspect-ratio: 1; border-radius: 50%; opacity: .35; pointer-events: none;
    background: repeating-conic-gradient(rgba(160, 244, 250, .8) 0 .6deg, transparent .6deg 6deg);
    -webkit-mask: radial-gradient(circle, transparent 0 60%, #000 60.5% 66%, transparent 66.5%);
    mask: radial-gradient(circle, transparent 0 60%, #000 60.5% 66%, transparent 66.5%);
}
.zk-page-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; font: 600 .78rem/1.4 var(--zk-font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--zk-brass); }
.zk-page-head__meta a { color: var(--zk-portal); text-decoration: none; }
.zk-page-head__meta .zk-card__file { color: #9fb5b1; }
.zk-page-head__meta .zk-stamp--public { color: #8fd1a6; }
.zk-page-head__meta .zk-stamp--secret { color: #ff8a7d; }
.zk-page-head__meta .zk-stamp--redacted { color: #e6eeec; background: none; }
.zk-page-head__title { font-size: clamp(2rem, 5vw, 3.4rem); margin: 0; max-width: 22em; }
.zk-page-head__intro { max-width: 44rem; margin: 14px 0 0; color: #c4d4d1; font: 1.2rem/1.55 var(--zk-font-fell); }

.zk-paper { padding-block: clamp(36px, 6vw, 72px) var(--zk-band-pad); background: var(--zk-paper); }
.zk-prose { font-size: 1.1rem; }
.zk-prose > * + * { margin-top: 1em; }
.zk-prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.zk-prose h3 { font-size: 1.25rem; margin-top: 1.6em; }
.zk-prose h2:first-child, .zk-prose h3:first-child { margin-top: 0; }
.zk-prose blockquote { margin: 1.6em 0; padding: .4em 0 .4em 1.2em; border-left: 3px solid var(--zk-brass); font: italic 1.25rem/1.5 var(--zk-font-fell); color: var(--zk-ink-soft); }
.zk-prose ul, .zk-prose ol { padding-left: 1.3em; }
.zk-prose li + li { margin-top: .35em; }
.zk-prose figure { margin: 1.6em 0; }
.zk-prose figcaption { font: italic .95rem var(--zk-font-fell); color: var(--zk-ink-soft); text-align: center; margin-top: .5em; }
.zk-prose img { border-radius: 6px; }
.zk-prose table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.zk-prose th, .zk-prose td { padding: 8px 10px; border-bottom: 1px solid var(--zk-line); text-align: left; }
.zk-prose code { font-size: .9em; background: var(--zk-paper-2); padding: .1em .35em; border-radius: 4px; }
.zk-prose--wide { max-width: none; }
.zk-prose .alignwide { width: min(100vw - 2 * var(--zk-gap), var(--zk-wrap)); margin-inline: calc(50% - min(100vw - 2 * var(--zk-gap), var(--zk-wrap)) / 2); }

.zk-photo { margin: 0 0 2em; padding: 10px 10px 34px; background: #fff; border-radius: 3px; box-shadow: var(--zk-shadow); transform: rotate(-.6deg); }
.zk-photo img { display: block; width: 100%; border-radius: 1px; }
.zk-photo--portrait { width: min(70%, 300px); margin: 0 auto 2.2em; transform: rotate(1.2deg); }
/* Steckbriefe nutzen Block-Spalten: auf Textbreite ab mittlerer Größe zweispaltig, sonst untereinander */
.zk-prose .wp-block-columns { gap: 1.2em 2em; }
@media (max-width: 680px) { .zk-prose .wp-block-columns { flex-direction: column; } }

.zk-locked-note { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 2em; padding: 18px 20px; border: 1.5px dashed var(--zk-seal); border-radius: var(--zk-radius); color: var(--zk-seal); background: rgba(163, 38, 27, .05); }
.zk-locked-note .zk-btn { margin-left: auto; }

.zk-page-links { margin-top: 2em; font-family: var(--zk-font-ui); }

/* ------------------------------------------------------------------ Startseite: Mitmachen, Buch, Zweispalter, Newsletter */
.zk-join__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px 40px; }
.zk-join .zk-actions { margin: 0; }
.zk-join__seal { display: grid; place-items: center; width: 108px; aspect-ratio: 1; border-radius: 50%; color: #fff6e0; background: radial-gradient(circle at 35% 30%, #c8473a, var(--zk-seal) 55%, #6d140d); box-shadow: 0 0 0 6px rgba(163, 38, 27, .25), inset 0 -6px 12px rgba(0, 0, 0, .3); }
@media (max-width: 860px) { .zk-join__inner { grid-template-columns: 1fr; } }

.zk-book__inner { display: grid; grid-template-columns: minmax(180px, 300px) 1fr; align-items: center; gap: clamp(28px, 6vw, 72px); }
.zk-book__cover img { display: block; border-radius: 4px 10px 10px 4px; box-shadow: -6px 0 0 -2px #233, 0 24px 48px -18px rgba(11, 26, 31, .7); transform: perspective(900px) rotateY(8deg); transition: transform .4s; }
.zk-book__cover:hover img { transform: perspective(900px) rotateY(0); }
.zk-book .zk-btn { margin-top: 20px; }
@media (max-width: 720px) { .zk-book__inner { grid-template-columns: 1fr; } .zk-book__cover { max-width: 240px; } }

.zk-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); }
@media (max-width: 860px) { .zk-split { grid-template-columns: 1fr; } }

.zk-newsletter__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 28px 56px; }
@media (max-width: 860px) { .zk-newsletter__inner { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ Formulare (Newsletter, WPForms, Kommentare, Quiz) */
/* Newsletter "minimal": E-Mail + Knopf in einer Zeile, darunter Turnstile und Datenschutz */
.tnp.tnp-subscription-minimal { max-width: 560px; margin: 0; }
.tnp.tnp-subscription-minimal form { display: grid !important; grid-template-columns: 1fr auto; gap: 10px; text-align: left !important; }
.tnp.tnp-subscription-minimal .tnp-email { grid-column: 1; grid-row: 1; width: 100% !important; margin: 0 !important; }
.tnp.tnp-subscription-minimal .tnp-submit { grid-column: 2; grid-row: 1; width: auto !important; margin: 0 !important; }
.tnp.tnp-subscription-minimal .zkts-box, .tnp.tnp-subscription-minimal .tnp-privacy-field { grid-column: 1 / -1; margin: 0 !important; }
.tnp-privacy-field label { display: flex; gap: 8px; align-items: flex-start; font: .85rem/1.4 var(--zk-font-ui); }
.zk-band--night .tnp-privacy-field a { color: #b9cac7; }
@media (max-width: 520px) { .tnp.tnp-subscription-minimal form { grid-template-columns: 1fr; } .tnp.tnp-subscription-minimal .tnp-submit { grid-column: 1; grid-row: auto; } }
/* Newsletter-Seite (Standardformular) */
.tnp-subscription { max-width: 560px; }
.tnp-subscription form { display: flex; flex-wrap: wrap; gap: 10px; }
.tnp-field { margin: 0 0 10px; flex: 1 1 220px; }
.tnp-field label { display: block; font: 600 .78rem var(--zk-font-ui); letter-spacing: .06em; margin-bottom: 4px; }
.tnp-field-privacy, .tnp-field-button, .zkts-box { flex-basis: 100%; }
input[type="text"], input[type="email"], input[type="search"], input[type="password"], input[type="url"], input[type="number"], input[type="tel"], select, textarea,
.tnp-email, .tnp-name, .tnp input[type="email"] {
    width: 100%; padding: 11px 14px; border: 1px solid var(--zk-paper-edge); border-radius: 8px; background: #fffdf7; color: var(--zk-ink);
    font: 1rem var(--zk-font-ui);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--zk-portal); outline-offset: 1px; border-color: transparent; }
.zk-band--night input[type="email"], .zk-band--night input[type="text"], .zk-band--night .tnp-email {
    background: rgba(255, 255, 255, .06); border-color: rgba(111, 230, 242, .35); color: #fff;
}
.zk-search input, .zk-search input:focus { outline: none; border: 0; background: transparent; padding: 7px 4px 7px 14px; border-radius: 0; }
input[type="submit"], button[type="submit"]:not(.zk-search button), .tnp-submit, .wpforms-submit, .wp-block-button__link {
    display: inline-flex; align-items: center; justify-content: center; padding: .85em 1.6em; border: 0; border-radius: 999px;
    background: var(--zk-ink); color: var(--zk-paper) !important; cursor: pointer;
    font: 600 .82rem/1 var(--zk-font-display) !important; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
}
.zk-band--night .tnp-submit, .zk-band--night input[type="submit"] { background: var(--zk-portal) !important; color: var(--zk-night) !important; box-shadow: 0 0 24px rgba(111, 230, 242, .35); }
.zk-band--night .tnp-submit:hover, .zk-band--night input[type="submit"]:hover { background: #fff !important; color: var(--zk-night) !important; }
.zk-band--night .tnp .tnp-email { background: rgba(255, 255, 255, .06) !important; border: 1px solid rgba(111, 230, 242, .35) !important; color: #fff !important; padding: 11px 14px !important; border-radius: 8px !important; }
input[type="submit"]:hover, .tnp-submit:hover, .wpforms-submit:hover { background: var(--zk-seal); color: #fff !important; }
div.wpforms-container-full .wpforms-form .wpforms-field-label { font-family: var(--zk-font-ui); }

.zk-comments { margin-top: 3em; padding-top: 2em; border-top: 1px solid var(--zk-line); font-size: 1rem; }
.zk-comments__list { list-style: none; padding: 0; }
.zk-comments .comment-body { padding: 16px 0; border-bottom: 1px solid var(--zk-line); }
.zk-comments .avatar { border-radius: 50%; float: left; margin-right: 12px; }

/* ------------------------------------------------------------------ Seitennavigation */
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 40px; font-family: var(--zk-font-ui); }
.nav-links a, .nav-links span { padding: 8px 14px; border-radius: 6px; border: 1px solid var(--zk-paper-edge); text-decoration: none; }
.nav-links .current { background: var(--zk-ink); color: var(--zk-paper); border-color: var(--zk-ink); }

/* ------------------------------------------------------------------ Fußzeile */
.zk-footer { position: relative; background: var(--zk-night); color: #c6d4d1; padding-top: 64px; }
.zk-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--zk-portal), transparent); box-shadow: 0 0 18px var(--zk-portal); }
.zk-footer a { color: #e2ecea; text-decoration: none; }
.zk-footer a:hover { color: var(--zk-portal); }
.zk-footer__inner { width: min(100% - 2 * var(--zk-gap), var(--zk-wrap)); margin-inline: auto; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; padding-bottom: 48px; }
@media (max-width: 900px) { .zk-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .zk-footer__inner { grid-template-columns: 1fr; } }
.zk-footer__claim { margin: 14px 0 18px; font: italic 1.05rem/1.5 var(--zk-font-fell); max-width: 24rem; }
.zk-footer .widget-title, .zk-footer h2 { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--zk-brass); margin-bottom: 14px; }
.zk-footer h2:empty { display: none; }
.zk-footer ul { list-style: none; margin: 0; padding: 0; }
.zk-footer .widget li { padding: 4px 0; }
.zk-footer .widget + .widget { margin-top: 24px; }
.zk-social { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.zk-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(111, 230, 242, .3); }
.zk-social a:hover { border-color: var(--zk-portal); box-shadow: 0 0 16px -2px rgba(111, 230, 242, .6); }
.zk-footer__bottom { width: min(100% - 2 * var(--zk-gap), var(--zk-wrap)); margin-inline: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 20px 0 28px; border-top: 1px solid rgba(233, 239, 238, .1); font: .85rem var(--zk-font-ui); color: #8ea4a0; }
.zk-footer__bottom p { margin: 0; }
.zk-footer__menu ul { display: flex; flex-wrap: wrap; gap: 18px; }

/* ------------------------------------------------------------------ Verträglichkeit: SiteOrigin, Flash Toolkit, Plugins */
.panel-grid .panel-grid-cell .so-panel { margin-bottom: 24px; }
.siteorigin-panels-stretch { margin-inline: calc(50% - 50vw) !important; }
.tg-blog-widget-layout-1 .row, .tg-blog-widget .row { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
/* QuizMaster: Prüfungsfragen als Karteikarten */
.quiz-question { border: 1px solid var(--zk-paper-edge) !important; border-left: 4px solid var(--zk-brass) !important; border-radius: var(--zk-radius) !important; background: #fffaf0 !important; padding: 18px 20px !important; margin: 0 0 16px !important; box-shadow: var(--zk-shadow); }
.quiz-question h3 { font-size: 1.1rem; margin-bottom: .7em; }
.quiz-question label { display: flex; gap: 10px; align-items: center; padding: 6px 0; font-weight: 400 !important; cursor: pointer; }
.quiz-question input[type="radio"] { accent-color: var(--zk-seal); width: 18px; height: 18px; margin: 0; }
.quiz-submit { background: var(--zk-ink) !important; color: var(--zk-paper) !important; border-radius: 999px !important; padding: .9em 1.8em !important; font: 600 .85rem/1 var(--zk-font-display) !important; letter-spacing: .12em; text-transform: uppercase; }
.quiz-submit:hover { background: var(--zk-seal) !important; }
.wp-block-image img { height: auto; }

/* ------------------------------------------------------------------ Barrierearm & Druck */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
    .zk-header, .zk-footer, .zk-hero__portal, .zk-nav-toggle, .zk-band--night { display: none !important; }
    body { background: #fff; }
}
