/*
Theme Name: SCVG Magazin
Theme URI: https://www.scv-jugend.de/
Author: SCVG
Description: Modernes Magazin-Theme für den SC Vaterstetten-Grasbrunn: Schwarz-Weiß mit Rot, Spond-Terminleiste, Schachbrett-Motive für Beiträge ohne Bild. Keine externen Schriften.
Version: 1.0.9
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: scvg-magazin
License: GNU General Public License v2 or later
*/

/* ---------- Tokens ---------- */
:root {
	--ink: #111111;
	--ink-2: #2b2b2b;
	--muted: #5f5f5f;
	--paper: #ffffff;
	--paper-2: #f6f5f2;
	--line: #e3e1dc;
	--red: #c8102e;
	--red-dark: #9e0c24;
	--red-soft: #fbe9ec;
	--serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--wrap: 1200px;
	--gutter: clamp(1rem, 3vw, 2rem);
	--radius: 4px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 17px/1.65 var(--sans);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, video, iframe, embed, object { max-width: 100%; }
img { height: auto; }
a { color: var(--ink); text-decoration-color: rgba(200, 16, 46, .45); text-underline-offset: .18em; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 1.6em 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: .6rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Small parts ---------- */
.kicker {
	margin: 0 0 .35rem;
	color: var(--red);
	font: 700 .72rem/1.2 var(--sans);
	letter-spacing: .09em;
	text-transform: uppercase;
}
.meta { margin: .5rem 0 0; color: var(--muted); font-size: .82rem; }
.section-label {
	margin: 0 0 1rem;
	font: 800 .78rem/1.2 var(--sans);
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ink);
}
.section-label--rule { border-top: 3px solid var(--ink); padding-top: .6rem; margin-bottom: 1.5rem; }
.live-dot {
	display: inline-block; width: .5rem; height: .5rem; margin-right: .45rem;
	border-radius: 50%; background: var(--red); vertical-align: .08em;
	box-shadow: 0 0 0 0 rgba(200, 16, 46, .5); animation: pulse 2.4s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(200, 16, 46, .45); } 70% { box-shadow: 0 0 0 .45rem rgba(200, 16, 46, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

.button, button, input[type="submit"], .wp-block-button__link {
	display: inline-flex; align-items: center; gap: .4rem;
	padding: .6rem 1rem;
	border: 2px solid var(--ink); border-radius: var(--radius);
	background: var(--ink); color: #fff;
	font: 700 .88rem/1.1 var(--sans); text-decoration: none; cursor: pointer;
	transition: background .15s, border-color .15s, color .15s;
}
.button:hover, button:hover, input[type="submit"]:hover { background: var(--red); border-color: var(--red); color: #fff; }
.button--cta { background: var(--red); border-color: var(--red); }
.button--cta:hover { background: var(--red-dark); border-color: var(--red-dark); }

input[type="text"], input[type="email"], input[type="search"], input[type="url"], input[type="tel"], input[type="number"], input[type="password"], textarea, select {
	width: 100%; max-width: 100%;
	padding: .6rem .75rem;
	border: 1px solid #c9c6bf; border-radius: var(--radius);
	background: #fff; color: var(--ink); font: inherit; font-size: 1rem;
}
input:focus, textarea:focus, select:focus { border-color: var(--ink); outline: 2px solid var(--red); outline-offset: 0; }

/* ---------- Header ---------- */
.topbar { background: var(--ink); color: #d9d9d9; font-size: .8rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 2.4rem; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: #ffb3bf; }
.topbar__links { display: flex; align-items: center; gap: 1.25rem; }
.topbar__search input {
	width: 11rem; padding: .25rem .6rem; border: 1px solid #444; border-radius: 99px;
	background: #1d1d1d; color: #fff; font-size: .8rem;
}
.topbar__search input::placeholder { color: #9a9a9a; }
.topbar__search input:focus { outline: none; border-color: #fff; width: 15rem; }

.masthead { display: flex; align-items: center; gap: 1.5rem; padding-top: 1.6rem; padding-bottom: 1.4rem; }
.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand:hover { color: var(--ink); }
.brand__mark {
	display: grid; place-items: center; flex: none;
	width: 3.4rem; height: 3.4rem; border-radius: 50%;
	background: var(--ink); color: #fff; font-size: 2rem; line-height: 1;
}
.brand__logo { width: auto; max-height: 4rem; }
.brand__crest { flex: none; width: auto; height: 5rem; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name { margin: 0; font: 700 clamp(1.45rem, 3.4vw, 2.35rem)/1.05 var(--serif); letter-spacing: -.02em; }
.brand__tagline { color: var(--muted); font-size: .9rem; margin-top: .25rem; }

.primary-nav { border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--paper); position: sticky; top: 0; z-index: 30; }
body.admin-bar .primary-nav { top: 32px; }
.primary-nav .wrap { display: flex; align-items: center; }
.primary-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; flex: 1; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu a {
	display: block; padding: .8rem .85rem;
	font: 700 .86rem/1.2 var(--sans); letter-spacing: .02em;
	text-decoration: none; color: var(--ink);
}
.primary-nav .menu > li:first-child > a { padding-left: 0; }
.primary-nav .menu > li > a:hover,
.primary-nav .menu > .current-menu-item > a,
.primary-nav .menu > .current-menu-ancestor > a,
.primary-nav .menu > .current_page_item > a { color: var(--red); box-shadow: inset 0 -3px 0 var(--red); }
.primary-nav .menu-item-has-children > a::after { content: "▾"; margin-left: .3rem; font-size: .7em; color: var(--muted); }
.primary-nav .sub-menu {
	list-style: none; margin: 0; padding: .4rem 0;
	position: absolute; left: 0; top: 100%; min-width: 15rem;
	background: #fff; border: 1px solid var(--ink); border-top: 3px solid var(--red);
	box-shadow: 0 14px 30px rgba(0, 0, 0, .12);
	opacity: 0; visibility: hidden; transform: translateY(4px); transition: .15s;
	z-index: 40;
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { padding: .55rem 1rem; font-weight: 600; }
.primary-nav .sub-menu a:hover { background: var(--paper-2); color: var(--red); }
.primary-nav__cta { display: none; }

.nav-toggle { display: none; background: transparent; border: 0; padding: .5rem; color: var(--ink); }
.nav-toggle:hover { background: transparent; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
	display: block; width: 1.5rem; height: 2px; background: var(--ink); position: relative; transition: .2s;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* ---------- Events strip ---------- */
.events-strip { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.events-strip__inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .7rem 1.25rem; padding-top: .85rem; padding-bottom: 1rem; }
.events-strip__label {
	margin: 0;
	font: 800 .74rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--red);
}
.events-strip__list { grid-column: 1 / -1; grid-row: 2; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.event { display: flex; gap: .7rem; padding: .55rem .7rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.event__date { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 2.9rem; padding: .3rem 0; background: var(--ink); color: #fff; border-radius: var(--radius); }
.event__weekday { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #ffb3bf; }
.event__day { font: 700 .92rem/1.1 var(--sans); }
.event__body { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.event__title { font-weight: 700; font-size: .88rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.event__meta { color: var(--muted); font-size: .76rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.event.is-cancelled .event__title { text-decoration: line-through; color: var(--muted); }
.event.is-cancelled .event__meta { color: var(--red); }
.events-strip__all { grid-column: 2; grid-row: 1; font-weight: 700; font-size: .85rem; text-decoration: none; white-space: nowrap; }

/* ---------- Front: lead + headlines ---------- */
.site-main { padding-bottom: 4rem; }
.front-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2.5rem; padding-top: 2.2rem; padding-bottom: 2.5rem; }
.lead { display: grid; grid-template-rows: auto 1fr; gap: 1.2rem; }
.lead__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.lead__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.lead:hover .lead__media img { transform: scale(1.02); }
.lead__title { margin: 0 0 .7rem; font-size: clamp(1.8rem, 3.6vw, 2.9rem); line-height: 1.08; letter-spacing: -.02em; }
.lead__title a, .headline__title a, .card__title a { text-decoration: none; color: var(--ink); }
.lead__title a:hover, .headline__title a:hover, .card__title a:hover { color: var(--red); }
.lead__excerpt { font-size: 1.08rem; color: var(--ink-2); max-width: 46rem; }
.lead__excerpt p { margin: 0; }

.headlines { border-left: 1px solid var(--line); padding-left: 2.5rem; }
.headlines .section-label { border-top: 3px solid var(--ink); padding-top: .6rem; }
.headlines__list { list-style: none; margin: 0; padding: 0; counter-reset: hl; }
.headline { position: relative; padding: 1rem 0 1rem 2.4rem; border-bottom: 1px solid var(--line); counter-increment: hl; }
.headline:last-child { border-bottom: 0; }
.headline::before {
	content: counter(hl); position: absolute; left: 0; top: .85rem;
	font: 700 1.9rem/1 var(--serif); color: var(--red);
}
.headline__title { margin: 0; font-size: 1.12rem; line-height: 1.25; }

/* ---------- Motif (posts without image) ---------- */
.motif {
	position: relative; display: block; width: 100%; height: 100%; min-height: 100%;
	background-color: #f1efe9;
	background-image: repeating-conic-gradient(#e4e0d6 0 25%, transparent 0 50%);
	background-size: 44px 44px;
	overflow: hidden;
}
.motif.tone-1 { background-color: #1a1a1a; background-image: repeating-conic-gradient(#262626 0 25%, transparent 0 50%); }
.motif.tone-2 { background-color: #c8102e; background-image: repeating-conic-gradient(#b50e29 0 25%, transparent 0 50%); }
.motif__piece {
	position: absolute; right: 6%; bottom: -6%;
	font-size: clamp(5rem, 14vw, 9rem); line-height: 1; color: var(--ink); opacity: .9;
	font-family: "Segoe UI Symbol", "Apple Symbols", "DejaVu Sans", serif;
}
.motif.tone-1 .motif__piece, .motif.tone-2 .motif__piece { color: #fff; }
.motif__year {
	position: absolute; left: .9rem; top: .8rem;
	padding: .15rem .5rem; background: var(--paper); color: var(--ink);
	font: 700 .72rem/1.3 var(--sans); letter-spacing: .08em; border-radius: 2px;
}
.lead__media:has(.motif) { aspect-ratio: 21 / 9; }
.lead__media .motif__piece { font-size: clamp(7rem, 20vw, 14rem); }

/* ---------- Layout: main + sidebar ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; padding-top: 2rem; }
.no-sidebar .layout { grid-template-columns: minmax(0, 1fr); }
.front-top + .layout { padding-top: 0; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.2rem 2rem; }
.card { display: flex; flex-direction: column; min-width: 0; }
.card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); margin-bottom: .9rem; }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.card:hover .card__media img { transform: scale(1.03); }
.card .motif__piece { font-size: 6.5rem; }
.card__title { margin: 0 0 .45rem; font-size: 1.32rem; line-height: 1.2; }
.card__excerpt { color: var(--ink-2); font-size: .95rem; }
.card__excerpt p { margin: 0; }
.card .meta { margin-top: auto; padding-top: .6rem; }

/* ---------- Pagination ---------- */
.pagination { margin-top: 3rem; border-top: 3px solid var(--ink); padding-top: 1rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 2.4rem; height: 2.4rem; padding: 0 .7rem;
	border: 1px solid var(--line); border-radius: var(--radius);
	text-decoration: none; font-weight: 700; font-size: .9rem;
}
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--red); color: var(--red); }
.pagination .page-numbers.dots { border: 0; }

/* ---------- Archive header ---------- */
.archive-header { border-bottom: 3px solid var(--ink); padding-bottom: 1rem; margin-bottom: 2rem; }
.archive-title { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.archive-description { color: var(--muted); margin-top: .5rem; }

/* ---------- Single entry ---------- */
.entry__header { border-bottom: 1px solid var(--line); padding-bottom: 1.2rem; margin-bottom: 1.8rem; }
.entry__title { margin: 0; font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.08; letter-spacing: -.02em; }
.entry__media { margin: 0 0 2rem; }
.entry__media img { width: 100%; border-radius: var(--radius); }

.entry__content { font-size: 1.08rem; line-height: 1.75; max-width: 46rem; overflow-wrap: break-word; }
.entry__content > *:first-child { margin-top: 0; }
.entry__content h2 { font-size: 1.7rem; }
.entry__content h3 { font-size: 1.35rem; }
.entry__content h4 { font-size: 1.1rem; }
.entry__content a { color: var(--red); }
.entry__content a:hover { color: var(--red-dark); }
.entry__content ul, .entry__content ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.entry__content li { margin-bottom: .3em; }
.entry__content blockquote {
	margin: 1.8rem 0; padding: .2rem 0 .2rem 1.4rem; border-left: 4px solid var(--red);
	font: italic 1.25rem/1.5 var(--serif); color: var(--ink-2);
}
.entry__content img { border-radius: 2px; }
.entry__content figure { margin: 1.8rem 0; }
.entry__content figcaption, .wp-caption-text { color: var(--muted); font-size: .85rem; margin-top: .5rem; text-align: left; }
.entry__content pre { background: var(--paper-2); padding: 1rem; overflow-x: auto; font-size: .9rem; }
.entry__content iframe { display: block; margin: 1.5rem 0; }
.wp-caption { max-width: 100%; }
.alignleft { float: left; margin: .3rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry__content::after { content: ""; display: table; clear: both; }

.table-scroll { overflow-x: auto; margin: 1.5rem 0; -webkit-overflow-scrolling: touch; }
.entry__content table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.45; }
.entry__content th, .entry__content td { padding: .5rem .7rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry__content thead th, .entry__content tr:first-child th { border-bottom: 2px solid var(--ink); font-weight: 700; }
.entry__content tbody tr:nth-child(even) { background: #faf9f6; }

.page-links { margin-top: 2rem; font-weight: 700; }
.entry__footer { margin-top: 3rem; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; border-top: 3px solid var(--ink); padding-top: 1rem; }
.post-navigation a { text-decoration: none; display: block; }
.post-navigation .nav-next { text-align: right; }
.nav-label { display: block; color: var(--red); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.nav-title { display: block; font: 700 1.08rem/1.3 var(--serif); margin-top: .25rem; }

/* ---------- Sidebar & widgets ---------- */
.sidebar { font-size: .95rem; }
.sidebar .widget { margin-bottom: 2.2rem; }
.widget-title {
	margin: 0 0 1rem; padding-top: .6rem; border-top: 3px solid var(--ink);
	font: 800 .78rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase;
}
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { padding: .45rem 0; border-bottom: 1px solid var(--line); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { text-decoration: none; }
.sidebar .textwidget a { color: var(--red); }
.sidebar .textwidget img { height: auto; }
.sidebar select { margin-top: .25rem; }
.widget_search .search-form, .search-form { display: flex; gap: .4rem; }
.search-form .search-field { flex: 1; min-width: 0; }
.search-form .search-submit { flex: none; }

/* Spond plugin widget inside the new theme */
.scvg-spond-sidebar-widget { margin-top: 1.5rem; }
.scvg-spond-widget { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; background: var(--paper-2); }
.scvg-spond-title { margin-top: 0; font-size: 1.05rem; }

/* ---------- Comments ---------- */
.comments { margin-top: 3rem; max-width: 46rem; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.comment-meta { font-size: .85rem; color: var(--muted); }
.comment-respond { margin-top: 2rem; }
.comment-form label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .3rem; }

/* ---------- None / 404 ---------- */
.none { padding: 3rem 0; }
.none--404 .search-form { margin: 1.5rem 0; max-width: 32rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfcfcf; margin-top: 2rem; font-size: .92rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ffb3bf; }
.site-footer__top { display: flex; flex-wrap: wrap; gap: 2.5rem 4rem; padding-top: 3rem; padding-bottom: 2.5rem; }
.site-footer__brand { flex: 1 1 20rem; }
.site-footer__widgets, .site-footer__nav { flex: 2 1 24rem; }
.site-footer__crest { width: auto; height: 2.6rem; vertical-align: middle; margin-right: .5rem; }
.site-footer__name { display: flex; align-items: center; margin: 0 0 .3rem; color: #fff; font: 700 1.5rem/1.2 var(--serif); }
.site-footer__tagline { color: #a9a9a9; margin-bottom: 1.2rem; }
.site-footer__widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 2rem; }
.site-footer .widget-title { border-top-color: var(--red); color: #fff; }
.site-footer .menu { list-style: none; margin: 0; padding: 0; }
.site-footer .menu li { margin-bottom: .45rem; }
.site-footer .menu a { text-decoration: none; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid #333; padding-top: 1.1rem; padding-bottom: 1.4rem; font-size: .8rem; color: #9a9a9a; }
.site-footer__bottom p { margin: 0; }
.site-footer__legal a { margin-left: 1.2rem; text-decoration: none; color: #cfcfcf; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.events-strip__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: .8rem; }
	.layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 2rem; }
}

@media (max-width: 960px) {
	.masthead { padding-top: 1rem; padding-bottom: 1rem; gap: .75rem; }
	.masthead__cta { display: none; }
	.nav-toggle { display: block; }
	.primary-nav { position: static; border-top-width: 2px; }
	.primary-nav:not(.is-open) { display: none; }
	.primary-nav .wrap { flex-direction: column; align-items: stretch; padding-bottom: 1rem; }
	.primary-nav .menu { flex-direction: column; }
	.primary-nav .menu a, .primary-nav .menu > li:first-child > a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
	.primary-nav .menu > li > a:hover, .primary-nav .menu > .current-menu-item > a { box-shadow: none; }
	.primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 0 1rem; display: none; }
	.primary-nav .menu-item-has-children.is-open > .sub-menu { display: block; }
	.primary-nav .sub-menu a { padding: .6rem 0; }
	.primary-nav__cta { display: inline-flex; justify-content: center; margin-top: 1rem; }

	.front-top { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-top: 1.4rem; }
	.headlines { border-left: 0; padding-left: 0; }
	.layout { grid-template-columns: minmax(0, 1fr); }
	.layout__aside { border-top: 3px solid var(--ink); padding-top: 2rem; }
}

@media (max-width: 720px) {
	body { font-size: 16px; }
	.topbar__date { display: none; }
	.topbar__inner { justify-content: flex-end; }
	.topbar__search input { width: 8.5rem; }
	.topbar__search input:focus { width: 11rem; }
	.brand__mark { width: 2.6rem; height: 2.6rem; font-size: 1.5rem; }
	.brand__crest { height: 3.4rem; }
	.brand__tagline { display: none; }
	.events-strip__list { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
	.cards { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.card { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); column-gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
	.card__media { grid-row: 1 / span 3; aspect-ratio: 1; margin: 0; }
	.card .motif__piece { font-size: 3.6rem; }
	.card .motif__year { left: .35rem; top: .35rem; font-size: .62rem; }
	.card__title { font-size: 1.08rem; }
	.card__excerpt { display: none; }
	.card .meta { padding-top: .2rem; margin: 0; }
	.lead__media:has(.motif) { aspect-ratio: 16 / 9; }
	.entry__content { font-size: 1.02rem; }
	.alignleft, .alignright { float: none; margin: 1rem 0; }
	.post-navigation .nav-links { grid-template-columns: minmax(0, 1fr); }
	.post-navigation .nav-next { text-align: left; }
}

@media print {
	.topbar, .primary-nav, .events-strip, .sidebar, .site-footer, .nav-toggle, .masthead__cta { display: none !important; }
	.layout { display: block; }
}

/* ---------- Sidebar: Spond-Box im Stil der oberen Terminleiste ---------- */
.sidebar .scvg-spond-sidebar-widget { margin-top: 1.5rem; }
.sidebar .scvg-spond-widget { border: 0; padding: 0; background: transparent; }
.sidebar .scvg-spond-title {
	margin: 0 0 1rem; padding-top: .6rem; border-top: 3px solid var(--ink);
	font: 800 .78rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
}
.sidebar .scvg-spond-list { display: flex; flex-direction: column; gap: .5rem; }
.sidebar .scvg-spond-item,
.sidebar .scvg-spond-item:first-child {
	display: grid; grid-template-columns: 2.9rem 1fr; align-items: center; gap: .7rem;
	padding: .55rem .65rem; border: 1px solid var(--line); border-radius: var(--radius);
	background: var(--paper);
}
.sidebar .scvg-spond-badge {
	background: var(--ink); border: 0; border-radius: var(--radius); padding: .3rem 0;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.sidebar .scvg-spond-month { color: #ffb3bf; margin: 0; font: 700 .62rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.sidebar .scvg-spond-day { color: #fff; margin-top: 2px; font: 700 .95rem/1 var(--sans); }
.sidebar .scvg-spond-event-title { margin: 0 0 2px; font: 700 .9rem/1.25 var(--sans); color: var(--ink); }
.sidebar .scvg-spond-meta { opacity: 1; color: var(--muted); font: 400 .78rem/1.3 var(--sans); }
.sidebar .scvg-spond-item.is-cancelled .scvg-spond-event-title { color: var(--muted); }
.sidebar .scvg-spond-item.is-cancelled .scvg-spond-meta { color: var(--red); }

/* ---------- Landingpage "Alle Termine" – Wochenansicht ---------- */
.termine-page__intro { color: var(--ink-2); font-size: 1.05rem; margin-top: 1rem; max-width: 46rem; }
.weekcal { margin-top: 2rem; }
.weekcal__week { margin-bottom: 1.8rem; }
.weekcal__wk {
	display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
	margin: 0 0 .7rem; padding-top: .6rem; border-top: 3px solid var(--ink);
}
.weekcal__wk-label { font: 800 .8rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.weekcal__wk-range { font: 400 .85rem/1.2 var(--sans); color: var(--muted); }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day {
	display: flex; flex-direction: column; min-height: 104px;
	padding: 7px 7px 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
}
.day.is-weekend { background: var(--paper-2); }
.day.is-empty { background: transparent; border-style: dashed; opacity: .55; }
.day.is-today { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.day__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 5px; }
.day__dow { font: 700 .62rem/1 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.day__dom { font: 700 .95rem/1 var(--sans); color: var(--ink); }
.day.is-today .day__dom { color: var(--red); }
.day__events { display: flex; flex-direction: column; gap: 4px; }
.evchip {
	background: var(--ink); color: #fff; border-radius: 5px; padding: 4px 6px;
	font: 500 .7rem/1.3 var(--sans); overflow-wrap: anywhere;
}
.evchip__time { display: block; font-weight: 700; font-size: .62rem; letter-spacing: .02em; color: #ffb3bf; }
.evchip__title { display: block; }
.evchip.is-cancelled { background: var(--red-soft); color: var(--red-dark); }
.evchip.is-cancelled .evchip__title { text-decoration: line-through; }
.evchip.is-cancelled .evchip__time { color: var(--red); }
.termine-empty { padding: 2rem 0; color: var(--muted); }

@media (max-width: 1100px) {
	.week-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
	.day { min-height: 92px; padding: 5px; }
	.evchip { font-size: .64rem; }
	.evchip__time { font-size: .58rem; }
}

@media (max-width: 720px) {
	.week-grid { grid-template-columns: minmax(0, 1fr); gap: 5px; }
	.day { flex-direction: row; align-items: flex-start; gap: 12px; min-height: 0; padding: 8px 10px; }
	.day.is-empty { display: none; }
	.day__head { flex-direction: column; align-items: center; margin: 0; width: 2.6rem; flex: none; gap: 2px; }
	.day__dow { color: var(--red); }
	.day__dom { font-size: 1.1rem; }
	.day__events { flex: 1; }
	.evchip { font-size: .8rem; padding: 6px 9px; }
	.evchip__time { font-size: .68rem; }
}

/* ---------- Lange Wörter umbrechen (verhindert horizontalen Überlauf auf dem Handy) ---------- */
.lead__title, .lead__title a,
.headline__title, .headline__title a,
.card__title, .card__title a,
.entry__title, .archive-title,
.scvg-spond-event-title, .scvg-spond-title,
.event__title, .nav-title {
	overflow-wrap: break-word;
	word-break: break-word;
	hyphens: auto;
}
