/*
Theme Name: Alles was bewegt – Zeitung
Theme URI: https://alleswasbewegt.ch/
Author: Ben der Schweizer
Description: Eigenständiges, schnelles Zeitungstheme für alleswasbewegt.ch mit Leitartikel, aktuellen Beiträgen, Ressorts und Tages-Ticker.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: alleswasbewegt-zeitung
*/

:root {
	--ben-zb-accent: #bd2d2d;
	--ben-zb-ink: #171717;
	--ben-zb-muted: #686868;
	--ben-zb-paper: #fbfaf7;
	--ben-zb-line: #d9d5ce;
}

.ben-zb-template-main,
.ben-zb-paper {
	background: var(--ben-zb-paper);
	color: var(--ben-zb-ink);
}

.ben-zb-template-main {
	width: 100%;
	max-width: none !important;
	margin: 0;
	padding: 0;
}

.ben-zb-paper {
	width: min(100% - 32px, 1240px);
	margin: 0 auto;
	padding: 34px clamp(18px, 4vw, 58px) 70px;
	box-sizing: border-box;
	font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.55;
}

.ben-zb-paper *,
.ben-zb-paper *::before,
.ben-zb-paper *::after {
	box-sizing: border-box;
}

.ben-zb-paper a {
	color: inherit;
	text-decoration: none;
}

.ben-zb-paper a:hover {
	color: var(--ben-zb-accent);
}

.ben-zb-masthead {
	position: relative;
	border-top: 5px solid var(--ben-zb-ink);
	border-bottom: 1px solid var(--ben-zb-ink);
	padding: 18px 0 20px;
	text-align: center;
}

.ben-zb-masthead h1 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2.5rem, 7vw, 5.6rem);
	font-weight: 700;
	letter-spacing: -0.055em;
	line-height: .92;
	margin: 10px 0 9px;
}

.ben-zb-masthead p,
.ben-zb-date {
	color: var(--ben-zb-muted);
	font-size: .78rem;
	letter-spacing: .09em;
	margin: 0;
	text-transform: uppercase;
}

.ben-zb-front,
.ben-zb-focus,
.ben-zb-sections {
	padding: clamp(30px, 5vw, 62px) 0;
	border-bottom: 1px solid var(--ben-zb-ink);
}

.ben-zb-lead {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(280px, .85fr);
	gap: clamp(24px, 4vw, 56px);
	align-items: center;
}

.ben-zb-image {
	display: block;
	overflow: hidden;
	background: #e9e5de;
}

.ben-zb-image img,
.ben-zb-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.ben-zb-image:hover img,
.ben-zb-thumb:hover img {
	transform: scale(1.018);
}

.ben-zb-lead .ben-zb-image {
	aspect-ratio: 16 / 10;
}

.ben-zb-lead-copy h2 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2rem, 4vw, 4.1rem);
	letter-spacing: -.038em;
	line-height: .98;
	margin: 12px 0 20px;
}

.ben-zb-summary {
	color: #393939;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.08rem;
	line-height: 1.65;
	margin-bottom: 20px;
}

.ben-zb-kicker {
	display: inline-flex;
	color: var(--ben-zb-accent) !important;
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.ben-zb-byline {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	color: var(--ben-zb-muted);
	font-size: .72rem;
	letter-spacing: .025em;
}

.ben-zb-latest-three {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	margin-top: clamp(34px, 5vw, 62px);
	border-top: 1px solid var(--ben-zb-line);
}

.ben-zb-card {
	padding: 24px;
	border-right: 1px solid var(--ben-zb-line);
}

.ben-zb-card:first-child { padding-left: 0; }
.ben-zb-card:last-child { padding-right: 0; border-right: 0; }
.ben-zb-card .ben-zb-image { aspect-ratio: 16 / 10; margin-bottom: 20px; }

.ben-zb-card h3,
.ben-zb-section-card h3,
.ben-zb-focus-stories > h3 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.25rem, 2vw, 1.75rem);
	line-height: 1.13;
	margin: 8px 0 16px;
}

.ben-zb-placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	min-height: 130px;
	color: #9b958b;
	font: 700 clamp(3rem, 10vw, 8rem)/1 Georgia, serif;
}

.ben-zb-section-heading {
	display: flex;
	align-items: baseline;
	gap: 18px;
	border-bottom: 3px solid var(--ben-zb-ink);
	margin-bottom: 28px;
	padding-bottom: 10px;
}

.ben-zb-section-heading span {
	color: var(--ben-zb-accent);
	font-size: .7rem;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.ben-zb-section-heading h2 {
	font: 700 clamp(1.9rem, 4vw, 3rem)/1 Georgia, "Times New Roman", serif;
	letter-spacing: -.03em;
	margin: 0;
}

.ben-zb-focus-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
	gap: clamp(30px, 5vw, 64px);
}

.ben-zb-ticker {
	background: #fff;
	border: 1px solid var(--ben-zb-line);
	box-shadow: 0 18px 55px rgba(39, 32, 21, .07);
}

.ben-zb-ticker-head {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--ben-zb-ink);
	color: #fff;
	padding: 15px 18px;
}

.ben-zb-ticker-head strong,
.ben-zb-ticker-head small { display: block; }
.ben-zb-ticker-head strong { font-size: .9rem; letter-spacing: .05em; text-transform: uppercase; }
.ben-zb-ticker-head small { color: #bbb; font-size: .7rem; margin-top: 2px; }

.ben-zb-live-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #ff4848;
	box-shadow: 0 0 0 5px rgba(255, 72, 72, .16);
}

.ben-zb-ticker-list {
	list-style: none;
	margin: 0;
	padding: 0 20px;
}

.ben-zb-ticker-list li {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	gap: 18px;
	border-bottom: 1px solid #e9e6e0;
	padding: 18px 0;
}

.ben-zb-ticker-list li:last-child { border-bottom: 0; }
.ben-zb-ticker-list time { color: var(--ben-zb-accent); font-size: .75rem; font-weight: 800; }
.ben-zb-ticker-list strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.06rem; line-height: 1.35; }
.ben-zb-ticker-list p { color: var(--ben-zb-muted); font-size: .86rem; margin: 5px 0 0; }
.ben-zb-ticker-empty, .ben-zb-muted { color: var(--ben-zb-muted); padding: 20px; }

.ben-zb-focus-stories > h3,
.ben-zb-section-card > h3 {
	border-bottom: 1px solid var(--ben-zb-line);
	padding-bottom: 12px;
	margin-top: 0;
}

.ben-zb-story-list article {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr);
	gap: 16px;
	border-bottom: 1px solid var(--ben-zb-line);
	padding: 15px 0;
}

.ben-zb-story-list h4 {
	font: 700 1.04rem/1.27 Georgia, "Times New Roman", serif;
	margin: 0 0 9px;
}

.ben-zb-thumb {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #e9e5de;
}

.ben-zb-thumb .ben-zb-placeholder { min-height: 100%; font-size: 2.8rem; }
.ben-zb-more { display: inline-flex; margin-top: 20px; border-bottom: 2px solid var(--ben-zb-accent); font-size: .78rem; font-weight: 800; }

.ben-zb-back-wrap {
	display: flex;
	width: min(100%, 860px);
	margin: 28px auto;
}

.ben-zb-back-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid #d8d3ca;
	border-radius: 999px;
	background: #fff;
	color: #252525;
	cursor: pointer;
	font: 750 .88rem/1.2 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	padding: 12px 18px;
	transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.ben-zb-back-button:hover,
.ben-zb-back-button:focus-visible {
	border-color: var(--ben-zb-accent);
	background: var(--ben-zb-accent);
	color: #fff;
	outline: 0;
	transform: translateX(-2px);
}

.ben-zb-section-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 44px 64px;
}

/* Leichte, moderne Haut für die eingebauten WordPress-Kommentare. */
.ben-zb-modern-comments .comments-area,
.ben-zb-modern-comments #comments {
	width: min(100% - 32px, 860px);
	margin: 50px auto;
	color: #222;
}

.ben-zb-modern-comments .comments-area .comments-title,
.ben-zb-modern-comments #comments .comments-title,
.ben-zb-modern-comments .comment-reply-title {
	font: 700 clamp(1.7rem, 3vw, 2.5rem)/1.1 Georgia, "Times New Roman", serif;
	letter-spacing: -.025em;
}

.ben-zb-modern-comments .comment-list { list-style: none; margin: 28px 0; padding: 0; }
.ben-zb-modern-comments .comment-list .comment { margin: 0 0 18px; }
.ben-zb-modern-comments .comment-list .comment-body {
	background: #fff;
	border: 1px solid #e4e0d9;
	border-radius: 16px;
	box-shadow: 0 8px 28px rgba(31, 28, 23, .05);
	padding: 22px;
}
.ben-zb-modern-comments .comment-list .avatar { border-radius: 50%; }
.ben-zb-modern-comments .comment-list .fn { font-style: normal; font-weight: 750; }
.ben-zb-modern-comments .comment-list .comment-metadata { color: #777; font-size: .76rem; }
.ben-zb-modern-comments .comment-list .reply a { color: var(--ben-zb-accent); font-size: .78rem; font-weight: 800; }
.ben-zb-modern-comments .comment-list .children { list-style: none; margin: 16px 0 0 34px; padding: 0; }
.ben-zb-modern-comments .comment-form { display: grid; gap: 14px; }
.ben-zb-modern-comments .comment-form p { margin: 0; }
.ben-zb-modern-comments .comment-form label { display: block; font-size: .76rem; font-weight: 750; margin-bottom: 6px; }
.ben-zb-modern-comments .comment-form input:not([type="checkbox"]),
.ben-zb-modern-comments .comment-form textarea {
	width: 100%;
	border: 1px solid #d8d3ca;
	border-radius: 12px;
	background: #fff;
	color: #222;
	font: inherit;
	padding: 13px 15px;
}
.ben-zb-modern-comments .comment-form input:focus,
.ben-zb-modern-comments .comment-form textarea:focus { border-color: var(--ben-zb-accent); box-shadow: 0 0 0 3px rgba(189, 45, 45, .16); outline: 0; }
.ben-zb-modern-comments .comment-form .submit {
	border: 0;
	border-radius: 999px;
	background: var(--ben-zb-ink);
	color: #fff;
	cursor: pointer;
	font-weight: 750;
	padding: 13px 22px;
}
.ben-zb-modern-comments .comment-form .submit:hover { background: var(--ben-zb-accent); }

@media (max-width: 820px) {
	.ben-zb-paper { width: 100%; padding-inline: 18px; }
	.ben-zb-lead, .ben-zb-focus-grid { grid-template-columns: 1fr; }
	.ben-zb-latest-three { grid-template-columns: 1fr; }
	.ben-zb-card, .ben-zb-card:first-child, .ben-zb-card:last-child { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--ben-zb-line); }
	.ben-zb-section-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
	.ben-zb-paper { padding-inline: 14px; }
	.ben-zb-masthead h1 { font-size: 2.8rem; }
	.ben-zb-section-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
	.ben-zb-ticker-list li { grid-template-columns: 65px minmax(0, 1fr); gap: 10px; }
	.ben-zb-story-list article { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
	.ben-zb-modern-comments .comment-list .children { margin-left: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.ben-zb-paper * { scroll-behavior: auto !important; transition: none !important; }
}

/* Schlanke Theme-Hülle ohne Framework und externe Schriftdateien. */
html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
body {
	margin: 0;
	background: #f4f3ef;
	color: var(--ben-zb-ink);
	font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 17px;
	line-height: 1.7;
}
img, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--ben-zb-accent); }
.screen-reader-text { position: absolute; 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 { position: fixed; top: 12px; left: 12px; z-index: 100000; width: auto; height: auto; clip: auto; background: #fff; color: #111; padding: 10px 14px; }

.site-header { position: relative; z-index: 20; background: #171717; color: #fff; border-bottom: 3px solid var(--ben-zb-accent); }
.site-header__inner, .site-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(100% - 32px, 1240px); margin: 0 auto; }
.site-header__inner { min-height: 68px; padding-block: 10px; }
.site-branding { display: flex; align-items: center; gap: 14px; min-width: 0; }
.site-branding .custom-logo { display: block; width: auto; max-height: 46px; }
.site-title { margin: 0; font: 700 clamp(1.1rem, 2.3vw, 1.55rem)/1.05 Georgia, "Times New Roman", serif; letter-spacing: -.02em; }
.site-title a, .site-nav a, .site-footer a { color: inherit; text-decoration: none; }
.site-tagline { margin: 3px 0 0; color: #bcbcbc; font-size: .7rem; line-height: 1.3; }
.site-nav ul { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 20px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; font-size: .78rem; font-weight: 750; letter-spacing: .025em; padding: 8px 0; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: #ffb2aa; }
.site-main--front { width: 100%; }
.site-main--front > .ben-zb-paper { margin-block: 26px; }

.content-shell { width: min(100% - 32px, 920px); margin: clamp(32px, 6vw, 80px) auto; }
.content-shell--wide { width: min(100% - 32px, 1240px); }
.page-header { border-bottom: 3px solid var(--ben-zb-ink); margin-bottom: 30px; padding-bottom: 14px; }
.page-title, .entry-title { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
.page-title { font-size: clamp(2rem, 5vw, 3.9rem); line-height: 1; margin: 0; }
.archive-description { color: var(--ben-zb-muted); margin-top: 10px; }
.archive-description p:last-child { margin-bottom: 0; }
.article-card, .page-card, .not-found-card { background: #fff; border: 1px solid #e4e0d9; box-shadow: 0 18px 55px rgba(39, 32, 21, .06); padding: clamp(22px, 5vw, 62px); }
.entry-header { margin-bottom: 28px; }
.entry-kicker { display: inline-flex; color: var(--ben-zb-accent); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.entry-title { font-size: clamp(2.25rem, 6vw, 5.4rem); line-height: .98; margin: 10px 0 18px; }
.page-card .entry-title { font-size: clamp(2rem, 5vw, 4.2rem); }
.entry-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ben-zb-muted); font-size: .76rem; }
.entry-hero { display: block; width: 100%; margin: 0 0 34px; }
.entry-content { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.05rem, 1.4vw, 1.18rem); line-height: 1.82; }
.entry-content > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: 1040px; }
.entry-content > .alignfull { max-width: none; width: calc(100% + clamp(44px, 10vw, 124px)); margin-left: calc(clamp(22px, 5vw, 62px) * -1); }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.25; margin-top: 1.8em; }
.entry-content blockquote { border-left: 5px solid var(--ben-zb-accent); color: #373737; font-size: 1.18em; font-style: italic; padding-left: 22px; }
.entry-content figure { margin-top: 2rem; margin-bottom: 2rem; }
.entry-content figcaption { color: var(--ben-zb-muted); font-family: Inter, ui-sans-serif, sans-serif; font-size: .75rem; }
.entry-footer { border-top: 1px solid var(--ben-zb-line); margin-top: 36px; padding-top: 18px; font-size: .8rem; }
.entry-footer a { font-weight: 750; text-decoration: none; }

.post-navigation { margin-top: 30px; }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.post-navigation a { display: block; background: #fff; border: 1px solid var(--ben-zb-line); color: var(--ben-zb-ink); font: 700 1rem/1.35 Georgia, "Times New Roman", serif; padding: 18px; text-decoration: none; }
.nav-next { text-align: right; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.post-card { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid #e4e0d9; }
.post-card__image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #e9e5de; }
.post-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-card__body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.post-card__title { font: 700 clamp(1.25rem, 2.3vw, 1.8rem)/1.12 Georgia, "Times New Roman", serif; margin: 8px 0 12px; }
.post-card__title a { color: var(--ben-zb-ink); text-decoration: none; }
.post-card__excerpt { color: #4d4d4d; font-size: .88rem; margin: 0 0 18px; }
.post-card .entry-meta { margin-top: auto; }
.pagination { margin-top: 36px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { background: #fff; border: 1px solid var(--ben-zb-line); color: var(--ben-zb-ink); min-width: 42px; padding: 7px 12px; text-align: center; text-decoration: none; }
.pagination .current { background: var(--ben-zb-ink); color: #fff; }

.search-form { display: flex; gap: 8px; margin-top: 24px; }
.search-form label { flex: 1; }
.search-field { width: 100%; border: 1px solid #cbc5bb; border-radius: 0; font: inherit; padding: 11px 13px; }
.search-submit { border: 0; background: var(--ben-zb-ink); color: #fff; cursor: pointer; font-weight: 750; padding: 11px 18px; }
.site-footer { background: #171717; color: #ddd; margin-top: 60px; }
.site-footer__inner { min-height: 110px; padding-block: 24px; }
.site-footer p { font-size: .76rem; margin: 0; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 0; padding: 0; }
.site-footer a { font-size: .76rem; }

@media (max-width: 900px) {
	.site-header__inner, .site-footer__inner { align-items: flex-start; flex-direction: column; gap: 10px; }
	.site-header__inner { padding-block: 14px; }
	.post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.site-nav ul { gap: 2px 14px; }
	.post-grid, .post-navigation .nav-links { grid-template-columns: 1fr; }
	.nav-next { text-align: left; }
	.article-card, .page-card, .not-found-card { padding: 22px 18px; }
	.entry-content > .alignfull { width: calc(100% + 36px); margin-left: -18px; }
	.search-form { flex-direction: column; }
}
