/*
Theme Name: Jene Zeitung
Description: Reiseblog der Familie Jene im Zeitungsstil. Ressort-Reihen pro Reise, Aufmacher, lokale Schriften (Newsreader + Inter).
Author: e-sphere GmbH
Version: 1.3.0
Requires at least: 6.4
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: jene-zeitung
*/

:root {
	--jz-ink: #111111;
	--jz-text: #1c1c1c;
	--jz-soft: #2b2b2b;
	--jz-muted: #5c5c5c;
	--jz-rule: #d6d6d6;
	--jz-paper: #ffffff;
	--jz-tint: #f4f2ee;
	--jz-img: #e7e3da;
	--jz-accent: #0b4f8a;
	--jz-serif: "Newsreader", Georgia, "Times New Roman", serif;
	--jz-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--jz-max: 1200px;
	--jz-col: 680px;
	--jz-gap: 32px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--jz-paper);
	color: var(--jz-ink);
	font-family: var(--jz-sans);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	font-optical-sizing: auto;
}

a { color: var(--jz-ink); text-decoration: none; }
a:hover { color: var(--jz-accent); }
a:focus-visible { outline: 2px solid var(--jz-accent); outline-offset: 2px; }

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

.jz-skip {
	position: absolute; left: -9999px; top: 0;
	background: var(--jz-ink); color: #fff; padding: 8px 14px; z-index: 100;
}
.jz-skip:focus { left: 8px; top: 8px; color: #fff; }

.jz-wrap {
	max-width: var(--jz-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
}

/* ---------- Bausteine ---------- */

.jz-kicker {
	display: inline-block;
	font-family: var(--jz-sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--jz-accent);
}
a.jz-kicker:hover { text-decoration: underline; }

.jz-meta { font-size: 12px; color: var(--jz-muted); }
.jz-accent { color: var(--jz-accent); }

.jz-label {
	margin: 0;
	font-family: var(--jz-sans);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* ---------- Kopf Startseite ---------- */

.jz-masthead { padding-top: 20px; }
.jz-masthead__top {
	display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px;
	font-size: 13px; color: var(--jz-muted); padding-bottom: 14px;
}
.jz-masthead__title {
	border-top: 1px solid var(--jz-ink);
	border-bottom: 4px solid var(--jz-ink);
	padding: 22px 0 18px;
	text-align: center;
}
.jz-masthead__title a {
	font-family: var(--jz-serif);
	font-weight: 700;
	font-size: clamp(40px, 7vw, 72px);
	line-height: 1;
	letter-spacing: -0.02em;
}
.jz-masthead__title em, .jz-bar__title em, .jz-footer__title em { font-weight: 400; font-style: italic; }

.jz-nav {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px;
	padding: 14px 0; border-bottom: 1px solid var(--jz-rule);
	font-size: 14px; font-weight: 600;
}

/* ---------- Kopf Unterseiten ---------- */

.jz-bar {
	display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 24px;
	padding-top: 16px; padding-bottom: 12px;
	border-bottom: 4px solid var(--jz-ink);
	max-width: calc(var(--jz-max) - 48px);
	padding-left: 0; padding-right: 0;
}
@media (max-width: 1248px) {
	.jz-bar { margin-left: 24px; margin-right: 24px; }
}
.jz-bar__title {
	font-family: var(--jz-serif); font-weight: 700; font-size: 30px; letter-spacing: -0.01em; line-height: 1.1;
}
.jz-bar__nav { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; font-weight: 600; }
.jz-bar__nav .is-current { color: var(--jz-accent); }

/* ---------- Startseite ---------- */

.jz-front { padding-top: 32px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 56px; }

.jz-lead { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--jz-gap); }
.jz-lead__main { grid-column: span 2; display: flex; flex-direction: column; gap: 18px; }
.jz-lead__img { display: block; aspect-ratio: 16 / 9; background: var(--jz-img); overflow: hidden; }
.jz-lead__img img { width: 100%; height: 100%; object-fit: cover; }
.jz-lead__text { display: flex; flex-direction: column; gap: 10px; }
.jz-lead__title {
	margin: 0; font-family: var(--jz-serif); font-weight: 700;
	font-size: clamp(34px, 4.2vw, 50px); line-height: 1.05; letter-spacing: -0.015em;
}
.jz-lead__intro { margin: 0; font-family: var(--jz-serif); font-size: 21px; line-height: 1.45; color: var(--jz-soft); }

.jz-latest { display: flex; flex-direction: column; border-top: 3px solid var(--jz-ink); }
.jz-latest .jz-label { padding: 12px 0; }
.jz-latest__item { display: flex; flex-direction: column; gap: 6px; padding: 16px 0; border-top: 1px solid var(--jz-rule); }
.jz-latest__title { font-family: var(--jz-serif); font-weight: 600; font-size: 20px; line-height: 1.2; }

.jz-section { display: flex; flex-direction: column; gap: 20px; }
.jz-section__head {
	display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 16px;
	border-top: 3px solid var(--jz-ink); padding-top: 12px;
}
.jz-section__title { margin: 0; font-family: var(--jz-serif); font-weight: 700; font-size: 30px; letter-spacing: -0.01em; line-height: 1.15; }
.jz-section__title--rule { border-top: 3px solid var(--jz-ink); padding-top: 12px; }
.jz-more { font-size: 14px; font-weight: 600; color: var(--jz-accent); }

.jz-grid { display: grid; gap: var(--jz-gap); }
.jz-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.jz-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.jz-teaser { display: flex; flex-direction: column; gap: 10px; }
.jz-teaser__img { display: block; aspect-ratio: 3 / 2; background: var(--jz-img); overflow: hidden; }
.jz-teaser__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.jz-teaser:hover .jz-teaser__img img { transform: scale(1.03); }
.jz-placeholder {
	display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px;
	width: 100%; height: 100%; background: var(--jz-img); color: #8a8478; text-align: center; padding: 12px;
}
.jz-placeholder__year { font-family: var(--jz-serif); font-weight: 700; font-size: 34px; line-height: 1; }
.jz-placeholder__name { font-family: var(--jz-serif); font-style: italic; font-size: 17px; line-height: 1.2; }
.jz-lead__img .jz-placeholder__year { font-size: 64px; }
.jz-lead__img .jz-placeholder__name { font-size: 26px; }
.jz-teaser__title { margin: 0; font-family: var(--jz-serif); font-weight: 600; font-size: 21px; line-height: 1.2; }

.jz-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); border-top: 1px solid var(--jz-rule); }
.jz-index__item { display: flex; flex-direction: column; gap: 6px; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--jz-rule); }
.jz-index__year { font-family: var(--jz-serif); font-weight: 700; font-size: 34px; line-height: 1; color: var(--jz-accent); }
.jz-index__name { font-weight: 600; font-size: 15px; line-height: 1.3; }

/* ---------- Beitrag ---------- */

.jz-single { padding-top: 40px; padding-bottom: 72px; }
.jz-article { display: flex; flex-direction: column; gap: 28px; }
.jz-col { max-width: calc(var(--jz-col) + 48px); width: 100%; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.jz-article__head.jz-col { max-width: calc(760px + 48px); display: flex; flex-direction: column; gap: 14px; }
.jz-article__title {
	margin: 0; font-family: var(--jz-serif); font-weight: 700;
	font-size: clamp(36px, 5vw, 58px); line-height: 1.04; letter-spacing: -0.02em;
}
.jz-article__intro { margin: 0; font-family: var(--jz-serif); font-size: 23px; line-height: 1.45; color: var(--jz-soft); }
.jz-byline {
	display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--jz-muted);
	border-top: 1px solid var(--jz-rule); padding-top: 12px;
}
.jz-byline__author { font-weight: 600; color: var(--jz-ink); }

.jz-article__figure { margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: 8px; }
.jz-article__figure img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; background: var(--jz-img); }
.jz-article__figure figcaption { font-size: 13px; color: var(--jz-muted); }

/* Fliesstext, auch für alte Beiträge mit klassischem Markup */
.jz-content { font-family: var(--jz-serif); font-size: 20px; line-height: 1.65; color: var(--jz-text); }
.jz-content > * { margin-top: 0; margin-bottom: 1.1em; }
.jz-content a { color: var(--jz-accent); text-decoration: underline; text-underline-offset: 3px; }
.jz-content h2, .jz-content h3, .jz-content h4 {
	font-family: var(--jz-sans); font-size: 15px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
	margin-top: 2em; margin-bottom: .6em; line-height: 1.3;
}
.jz-content ul, .jz-content ol { padding-left: 1.2em; }
.jz-content li { margin-bottom: .45em; }
.jz-content blockquote, .jz-content .wp-block-quote {
	margin: 1.4em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--jz-accent);
	font-size: 28px; line-height: 1.3; font-style: italic; color: var(--jz-ink);
}
.jz-content blockquote p { margin: 0; }
.jz-content img { height: auto; }
.jz-content figure, .jz-content .wp-caption { margin: 1.6em 0; max-width: 100%; }
.jz-content figcaption, .jz-content .wp-caption-text, .jz-content .wp-element-caption {
	font-family: var(--jz-sans); font-size: 13px; line-height: 1.4; color: var(--jz-muted); margin-top: 8px;
}
.jz-content .aligncenter { margin-left: auto; margin-right: auto; }

/* Bildgruppen: 2 → Justified, 3–4 → Bento, ab 5 → Bildstrecke.
   Etwas breiter als die Textspalte, wie bei einer Reportage. */
.jz-content .jz-gal {
	display: block; position: relative;
	width: min(860px, calc(100vw - 48px)); left: 50%; transform: translateX(-50%);
	margin: 22px 0;
}
.jz-gal__item { display: block; position: relative; overflow: hidden; background: var(--jz-img); min-width: 0; }
.jz-gal__item > a { display: block; width: 100%; height: 100%; }
.jz-content .jz-gal img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; margin: 0; }

.jz-content .jz-gal--just { display: flex; gap: 8px; }
.jz-gal--just .jz-gal__item { flex-basis: 0; }

.jz-content .jz-gal--bento { display: grid; gap: 8px; grid-template-rows: repeat(2, 210px); }

.jz-content .jz-gal--single { width: 100%; left: 0; transform: none; }
.jz-gal--single .jz-gal__item { background: none; }
.jz-content .jz-gal--single img { height: auto; object-fit: contain; }

/* Reste klassischer Galerien ausblenden, falls doch Markup durchrutscht */
.jz-content .gallery br { display: none; }

.jz-content .jz-gal--strip { display: flex; flex-direction: column; gap: 6px; }
.jz-gal--strip .is-hero { aspect-ratio: 16 / 9; }
.jz-gal__thumbs { display: grid; gap: 6px; }
.jz-gal__item.is-thumb { aspect-ratio: 1; }
.jz-gal__item.is-hidden { display: none; }
.jz-gal__item.is-thumb[data-more]::after {
	content: attr(data-more); position: absolute; inset: 0; pointer-events: none;
	display: flex; align-items: center; justify-content: center;
	background: rgba(17, 17, 17, .72); color: #fff; font-family: var(--jz-sans); font-weight: 700; font-size: 18px;
}
.jz-gal__badge {
	position: absolute; right: 12px; bottom: 12px; pointer-events: none;
	display: flex; align-items: center; gap: 8px;
	background: var(--jz-ink); color: #fff; font-family: var(--jz-sans); font-size: 13px; font-weight: 600; line-height: 1; padding: 9px 12px;
}

@media (max-width: 560px) {
	.jz-content .jz-gal--bento { grid-template-rows: repeat(2, 125px); gap: 6px; }
	.jz-content .jz-gal--just { gap: 6px; }
	.jz-gal__badge { right: 8px; bottom: 8px; font-size: 12px; padding: 7px 9px; }
	.jz-gal__item.is-thumb[data-more]::after { font-size: 15px; }
}
.jz-content img[data-jz-full] { margin-top: 4px; margin-bottom: 4px; }
.jz-zoomable { cursor: zoom-in; transition: opacity .15s ease; }
.jz-zoomable:hover { opacity: .92; }
.jz-zoomable:focus-visible { outline: 3px solid var(--jz-accent); outline-offset: 2px; }

/* Bildansicht */
.jz-lb {
	border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh;
	background: rgba(12, 12, 12, .95); color: #fff;
}
.jz-lb::backdrop { background: rgba(12, 12, 12, .6); }
.jz-lb-open, .jz-lb-open body { overflow: hidden; }
.jz-lb__fig {
	margin: 0; width: 100%; height: 100%; display: flex; flex-direction: column;
	align-items: center; justify-content: center; gap: 12px; padding: 56px 72px; box-sizing: border-box;
}
.jz-lb__img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.jz-lb__cap { font-family: var(--jz-sans); font-size: 14px; color: #d8d8d8; text-align: center; max-width: 720px; }
.jz-lb__cap:empty { display: none; }
.jz-lb__count { position: absolute; top: 18px; left: 22px; font-family: var(--jz-sans); font-size: 13px; color: #cfcfcf; }
.jz-lb__btn {
	position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	background: rgba(255, 255, 255, .12); color: #fff;
}
.jz-lb__btn:hover, .jz-lb__btn:focus-visible { background: rgba(255, 255, 255, .26); outline: none; }
.jz-lb__close { top: 10px; right: 12px; }
.jz-lb__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.jz-lb__next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 560px) {
	.jz-lb__fig { padding: 56px 8px 72px; }
	.jz-lb__prev, .jz-lb__next { top: auto; bottom: 12px; transform: none; }
}
.jz-content .alignwide, .jz-content .alignfull { width: min(100vw - 48px, 1100px); margin-left: 50%; transform: translateX(-50%); }
@media (min-width: 900px) {
	.jz-content .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
	.jz-content .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
}
.jz-content::after { content: ""; display: table; clear: both; }
.jz-content .gallery, .jz-content .wp-block-gallery {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px;
}
.jz-content .gallery-item { margin: 0; }
.jz-content .gallery-item img, .jz-content .wp-block-gallery img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.jz-content iframe, .jz-content video { max-width: 100%; }
.jz-content table { border-collapse: collapse; width: 100%; font-family: var(--jz-sans); font-size: 15px; }
.jz-content td, .jz-content th { border-bottom: 1px solid var(--jz-rule); padding: 8px 6px; text-align: left; }

.jz-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.jz-tags a { display: inline-block; border: 1px solid var(--jz-rule); padding: 4px 10px; font-size: 13px; }
.jz-tags a:hover { border-color: var(--jz-accent); }

.jz-prevnext {
	display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	border-top: 1px solid var(--jz-rule); border-bottom: 1px solid var(--jz-rule);
	padding-top: 16px; padding-bottom: 16px;
}
.jz-prevnext__item { display: flex; flex-direction: column; gap: 4px; max-width: 46%; }
.jz-prevnext__item--next { text-align: right; margin-left: auto; }
.jz-prevnext__title { font-family: var(--jz-serif); font-weight: 600; font-size: 18px; line-height: 1.25; }

.jz-section--more { margin-top: 56px; }

/* Kommentare */
.jz-comments { display: flex; flex-direction: column; gap: 18px; border-top: 3px solid var(--jz-ink); padding-top: 12px; }
.jz-comments__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.jz-comments__list .children { list-style: none; padding-left: 24px; }
.jz-comments__list .comment-body { padding: 16px 0; border-bottom: 1px solid var(--jz-rule); }
.jz-comments__list .comment-meta { font-size: 13px; color: var(--jz-muted); }
.jz-comments__list .comment-author { font-weight: 600; color: var(--jz-ink); }
.jz-comments__list .comment-author .says { display: none; }
.jz-comments__list .comment-metadata a { color: var(--jz-muted); }
.jz-comments__list .comment-content { font-family: var(--jz-serif); font-size: 18px; line-height: 1.55; }
.jz-comments__list .reply { font-size: 13px; }
.comment-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea,
.search-form input[type="search"] {
	width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #8a8a8a; border-radius: 0; background: #fff;
}
.comment-form .submit, .search-form .search-submit {
	font: inherit; font-weight: 600; font-size: 15px; padding: 10px 18px; min-height: 44px;
	background: var(--jz-ink); color: #fff; border: 0; cursor: pointer;
}
.comment-form .submit:hover, .search-form .search-submit:hover { background: var(--jz-accent); }

/* ---------- Archive ---------- */

.jz-archive { padding-top: 40px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 36px; }
.jz-archive__head { display: flex; flex-direction: column; gap: 10px; border-bottom: 4px solid var(--jz-ink); padding-bottom: 20px; }
.jz-archive__year { font-family: var(--jz-serif); font-weight: 700; font-size: 28px; line-height: 1; color: var(--jz-accent); }
.jz-archive__title { margin: 0; font-family: var(--jz-serif); font-weight: 700; font-size: clamp(38px, 5.5vw, 64px); line-height: 1.02; letter-spacing: -0.02em; }
.jz-archive__intro { font-family: var(--jz-serif); font-size: 20px; line-height: 1.5; color: var(--jz-soft); max-width: 760px; }
.jz-archive__intro p { margin: 0; }
.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form label { flex: 1; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

.navigation.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; font-weight: 600; }
.navigation.pagination .page-numbers { padding: 8px 12px; border: 1px solid var(--jz-rule); }
.navigation.pagination .current { background: var(--jz-ink); color: #fff; border-color: var(--jz-ink); }

/* ---------- Fuss ---------- */

.jz-footer { border-top: 4px solid var(--jz-ink); background: var(--jz-tint); }
.jz-footer__inner {
	display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 16px;
	padding-top: 28px; padding-bottom: 28px; font-size: 13px; color: #4a4a4a;
}
.jz-footer__title { font-family: var(--jz-serif); font-weight: 700; font-size: 20px; color: var(--jz-ink); }

/* ---------- Mobil ---------- */

@media (max-width: 900px) {
	.jz-lead { grid-template-columns: minmax(0, 1fr); }
	.jz-lead__main { grid-column: auto; }
	.jz-grid--4, .jz-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.jz-content { font-size: 19px; }
}
@media (max-width: 560px) {
	:root { --jz-gap: 24px; }
	.jz-grid--4, .jz-grid--3 { grid-template-columns: minmax(0, 1fr); }
	.jz-nav { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; }
	.jz-bar__nav { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; width: 100%; padding-bottom: 4px; }
	.jz-prevnext__item { max-width: 100%; }
	.jz-content blockquote { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
	.jz-teaser__img img { transition: none; }
	.jz-teaser:hover .jz-teaser__img img { transform: none; }
}

@media print {
	.jz-nav, .jz-bar__nav, .jz-prevnext, .jz-comments, .jz-section--more, .jz-footer { display: none; }
	.jz-content { font-size: 12pt; }
}
