/*
Theme Name: CouchBlog2027
Description: Modernes, cleanes und persönliches Block-Theme für den Couch Blog. Himmelblau wie CouchBlog2013, mit Sofa, Nähten und einem orangen Kissen. Texte gut lesbar ohne Sidebar, Fotos groß, Podcasts direkt im Blog. Automatischer Darkmode.
Author: Matthias
Version: 0.1.28
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: couchblog2027
*/

/* ---------- Farben: hell, dunkel ---------- */
:root {
	--cb-bg: #F6F8FB;
	--cb-surface: #FFFFFF;
	--cb-soft: #E4F0FB;
	--cb-sky: #BFE1FF;
	--cb-sofa: #FFFFFF;
	--cb-ink: #0E2440;
	--cb-muted: #4C5E75;
	--cb-line: #D3DEEA;
	--cb-blue: #1F6AAF;
	--cb-accent: #E2611B;
	--cb-btn: #033E68;
	--cb-on-btn: #FFFFFF;
	--cb-bar: rgba(246, 248, 251, .86);
	--cb-shadow: 0 1px 2px rgba(14, 36, 64, .06), 0 18px 40px rgba(14, 36, 64, .10);
	--cb-display: "Bricolage Grotesque", system-ui, sans-serif;
	color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
	:root {
		--cb-bg: #0B1626;
		--cb-surface: #12223A;
		--cb-soft: #173050;
		--cb-sky: #11304F;
		--cb-sofa: #173A60;
		--cb-ink: #EAF2FB;
		--cb-muted: #9FB3CA;
		--cb-line: #25395A;
		--cb-blue: #8CCBFF;
		--cb-accent: #F08A4B;
		--cb-btn: #7CC4FF;
		--cb-on-btn: #0B1626;
		--cb-bar: rgba(18, 34, 58, .86);
		--cb-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px rgba(0, 0, 0, .35);
	}
}

/* ---------- Grundlagen ---------- */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--cb-accent); color: #fff; }
:where(.wp-site-blocks) a:where(:not(.wp-element-button)) { text-underline-offset: .18em; text-decoration-thickness: 1px; }
:where(.wp-site-blocks) a:where(:not(.wp-element-button)):hover { text-decoration-color: var(--cb-accent); text-decoration-thickness: 2px; }
.wp-site-blocks { padding-top: 0; padding-bottom: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
img { height: auto; }

.cb-wrap { box-sizing: content-box; max-width: var(--wp--style--global--wide-size, 1120px); margin-left: auto; margin-right: auto; padding-left: var(--wp--style--root--padding-left, 40px); padding-right: var(--wp--style--root--padding-right, 40px); }
.cb-read { box-sizing: content-box; max-width: var(--wp--style--global--content-size, 680px); margin-left: auto; margin-right: auto; padding-left: var(--wp--style--root--padding-left, 40px); padding-right: var(--wp--style--root--padding-right, 40px); }

.cb-kicker { font-family: var(--cb-display); font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--cb-blue); margin: 0; line-height: 1.3; }
.cb-kicker a { color: inherit; text-decoration: none; }
.cb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-family: var(--cb-display); font-size: 14px; line-height: 1.4; color: var(--cb-muted); margin: 0; }
.cb-meta a { color: inherit; }
.cb-stroke { display: block; width: 56px; height: 6px; border-radius: 6px; background: var(--cb-accent); border: 0; margin: 0; }
.cb-lead { font-size: 1.3rem; line-height: 1.6; margin: 0; }

.cb-btn, .wp-block-button__link, .wp-element-button { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; box-sizing: border-box; transition: background .2s, color .2s, border-color .2s; }
.cb-btn { padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--cb-ink); color: var(--cb-ink); background: transparent; font-family: var(--cb-display); font-weight: 650; font-size: 15px; line-height: 1; text-decoration: none; cursor: pointer; }
.cb-btn:hover, .cb-btn:focus-visible { background: var(--cb-ink); color: var(--cb-bg); }
.cb-btn--solid { background: var(--cb-btn); border-color: var(--cb-btn); color: var(--cb-on-btn); }
.cb-btn svg { transition: transform .25s; }
.cb-btn:hover svg { transform: translateX(3px); }
.wp-element-button:hover, .wp-block-button__link:hover { background: var(--cb-ink); color: var(--cb-bg); }

.cb-link { color: inherit; text-decoration: none; background-image: linear-gradient(var(--cb-accent), var(--cb-accent)); background-size: 0 3px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .35s ease; }
.cb-link:hover, .cb-link:focus-visible { background-size: 100% 3px; }

/* Polsternaht */
.cb-stitch { position: relative; }
.cb-stitch::before { content: ""; position: absolute; inset: 10px; border: 1.5px dashed var(--cb-line); border-radius: 16px; pointer-events: none; }

/* ---------- Kopfbereich ---------- */
.cb-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.cb-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--cb-display); font-weight: 700; font-size: 23px; letter-spacing: -.02em; color: var(--cb-ink); text-decoration: none; min-height: 44px; }
.cb-logo svg { color: var(--cb-accent); flex: none; }
.cb-nav { display: flex; gap: 4px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.cb-nav a { position: relative; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 16px; border-radius: 999px; font-family: var(--cb-display); font-weight: 600; font-size: 16px; color: var(--cb-ink); text-decoration: none; transition: background .2s; }
.cb-nav a:hover { background: var(--cb-soft); }
.cb-band .cb-nav a:hover { background: rgba(255, 255, 255, .45); }
.cb-nav a.is-current { color: var(--cb-blue); }
.cb-nav a.is-current::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--cb-accent); }
.cb-nav .cb-tab-ico { display: none; }

/* ---------- Himmelblaues Band mit Sofa ---------- */
.cb-band { background: var(--cb-sky); overflow: hidden; }
.cb-band .cb-kicker { color: var(--cb-ink); }
.cb-hero { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px 40px; padding-top: 40px; }
.cb-hero-text { flex: 999 1 520px; min-width: 0; padding-bottom: 72px; }
.cb-hero-text h1 { margin: 20px 0 0; max-width: 640px; }
.cb-hero-text .cb-lead { max-width: 560px; margin-top: 26px; }
.cb-sofa { flex: 1 1 380px; min-width: 0; max-width: 520px; margin-left: auto; display: block; height: auto; aspect-ratio: 520 / 210; }
.cb-sofa .pillow { transform-box: fill-box; transform-origin: 50% 90%; transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.cb-sofa:hover .pillow { transform: rotate(-14deg) translateY(-6px); }

/* ---------- Bildplatzhalter ---------- */
.cb-media { position: relative; display: block; overflow: hidden; border-radius: 24px; background: var(--cb-soft); }
.cb-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
a.cb-media:hover img { transform: scale(1.025); }

/* ---------- Beitragsstrom ---------- */
.cb-stream { padding-top: 72px; }
.cb-feature { margin-bottom: 104px; }
.cb-feature .cb-media { height: clamp(280px, 44vw, 560px); border-radius: 28px; }
.cb-feature-card { position: relative; margin: -140px 0 0 48px; max-width: 620px; background: var(--cb-surface); border-radius: 24px; padding: 40px 44px; box-shadow: var(--cb-shadow); display: flex; flex-direction: column; gap: 16px; }
.cb-feature--text .cb-feature-card { margin: 0; max-width: none; }
.cb-feature h2 { font-size: clamp(30px, 4vw, 50px); line-height: 1.05; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.cb-feature .cb-excerpt { font-size: 19px; line-height: 1.6; margin: 0; }
.cb-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }

.cb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 48px; margin-bottom: 104px; }
.cb-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cb-card--text { border-top: 2px solid var(--cb-ink); padding-top: 28px; }
.cb-card .cb-media { height: 320px; margin-bottom: 10px; }
.cb-card h3 { font-size: 28px; line-height: 1.15; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.cb-card .cb-excerpt { font-size: 18px; line-height: 1.6; color: var(--cb-muted); margin: 0; }

.cb-pod { background: var(--cb-soft); padding-top: 72px; padding-bottom: 72px; margin-bottom: 104px; }
.cb-pod-inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.cb-pod-cover { flex: 0 0 280px; height: 280px; border-radius: 24px; overflow: hidden; background: var(--cb-ink); color: var(--cb-bg); display: flex; flex-direction: column; justify-content: space-between; padding: 28px; box-sizing: border-box; }
.cb-pod-cover.has-image { padding: 0; }
.cb-pod-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cb-pod-cover .cb-kicker { color: var(--cb-accent); }
.cb-pod-cover .cb-pod-name { font-family: var(--cb-display); font-size: 44px; font-weight: 800; letter-spacing: -.045em; line-height: .95; hyphens: manual; }
.cb-pod-body { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cb-pod-body h2, .cb-pod-body h1 { font-size: clamp(30px, 4vw, 50px); line-height: 1.05; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.cb-pod-player { margin-top: 12px; border-radius: 20px; overflow: hidden; }
.cb-pod-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }

.cb-pager { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.cb-empty { padding-bottom: 72px; }

/* ---------- Einzelansicht ---------- */
.cb-hero-image { margin: 8px 0 0 !important; }
.cb-hero-image img { border-radius: 0 !important; width: 100%; height: clamp(300px, 48vw, 620px) !important; object-fit: cover; }
.cb-single-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; padding-top: 72px; padding-bottom: 56px; }
.cb-single-head .wp-block-post-title, .cb-page-head .wp-block-post-title { margin: 0; max-width: 900px; text-wrap: balance; }
.no-hero .cb-single-head { padding-top: 48px; }
.no-hero .cb-single-head .wp-block-post-title { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.cb-single-head .cb-meta { justify-content: center; font-size: 15px; }

.cb-prose > p:first-child::first-letter { font-family: var(--cb-display); font-weight: 800; float: left; font-size: 4.8rem; line-height: .82; padding: 8px 12px 0 0; color: var(--cb-accent); }
.cb-prose h2, .cb-prose h3 { margin-top: 1.8em; }
.cb-prose img { border-radius: 20px; }
.cb-prose .aligncenter { margin-left: auto; margin-right: auto; }
.cb-prose figure, .cb-prose .wp-block-image { margin-top: 2em; margin-bottom: 2em; }
.cb-prose blockquote, .cb-prose .wp-block-quote { border: 0; padding: 0; margin: 2.2em 0; font-family: var(--cb-display); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; line-height: 1.15; letter-spacing: -.025em; }
.cb-prose blockquote::before { content: "\201C"; display: block; font-size: 6rem; line-height: .6; color: var(--cb-accent); margin-bottom: 8px; }
.cb-prose blockquote p { margin: 0 0 .4em; }
.cb-prose blockquote cite { display: block; font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--cb-muted); font-style: normal; margin-top: 12px; }
.cb-prose pre, .cb-prose .syntaxhighlighter { border-radius: 16px; }
.cb-prose pre { background: var(--cb-soft); padding: 18px 20px; overflow-x: auto; font-size: .9rem; line-height: 1.6; }

.cb-tags { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 32px; border-top: 1px solid var(--cb-line); }
.cb-tags a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--cb-soft); color: var(--cb-ink); text-decoration: none; font-family: var(--cb-display); font-size: 14px; font-weight: 600; transition: background .2s, color .2s; }
.cb-tags a:hover { background: var(--cb-btn); color: var(--cb-on-btn); }
.cb-tags .wp-block-post-terms__separator { display: none; }

.cb-postnav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 920px; margin: 96px auto 0; }
.cb-postnav a { display: flex; flex-direction: column; gap: 8px; text-decoration: none; padding: 24px; border-radius: 20px; border: 1.5px solid var(--cb-line); color: var(--cb-ink); transition: border-color .2s; }
.cb-postnav a:hover { border-color: var(--cb-accent); }
.cb-postnav .cb-postnav-next { text-align: right; grid-column: 2; }
.cb-postnav .cb-postnav-title { font-family: var(--cb-display); font-size: 20px; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
.cb-postnav .cb-postnav-next .cb-meta { justify-content: flex-end; }

/* Kommentare */
.wp-block-comments { margin-top: 72px; }
.wp-block-comments .wp-block-comment-template { padding: 0; }
.wp-block-comment-author-name, .wp-block-comment-date { font-family: var(--cb-display); }
.comment-form input:not([type=submit]):not([type=checkbox]), .comment-form textarea, .wp-block-search__input { width: 100%; box-sizing: border-box; border: 1.5px solid var(--cb-line); background: var(--cb-surface); color: var(--cb-ink); border-radius: 16px; padding: 14px 16px; font: inherit; font-size: 17px; }
.comment-form input:focus, .comment-form textarea:focus, .wp-block-search__input:focus { outline: none; border-color: var(--cb-accent); }
.comment-form label { font-family: var(--cb-display); font-weight: 600; font-size: 15px; }

/* Seiten */
.cb-page-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; padding-top: 64px; padding-bottom: 48px; }
.cb-portrait { display: flex; align-items: center; padding-top: 72px; }
.cb-portrait::before, .cb-portrait::after { content: ""; flex: 1; height: 2px; background: var(--cb-line); }
.cb-portrait .wp-block-post-featured-image { flex: none; width: 240px; height: 240px; margin: 0; border-radius: 50%; overflow: hidden; border: 8px solid var(--cb-bg); outline: 2px solid var(--cb-line); }
.cb-portrait .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* Muster: Säulen und Projekte */
.cb-pillar { display: grid !important; grid-template-columns: 72px minmax(0, 1fr); gap: 28px !important; padding: 40px 0; border-top: 1px solid var(--cb-line); }
.cb-ico { width: 72px; height: 72px; border-radius: 22px; background: var(--cb-soft); color: var(--cb-blue); display: flex; align-items: center; justify-content: center; }
.cb-project { background: var(--cb-surface); border-radius: 28px; padding: 32px; box-shadow: var(--cb-shadow); transition: transform .3s ease; }
.cb-project:hover { transform: translateY(-4px); }
.cb-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cb-chips p, .cb-chip { margin: 0; display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--cb-line); font-family: var(--cb-display); font-size: 16px; font-weight: 600; }

/* Archiv, Suche, 404 */
.cb-archive-head { display: flex; flex-direction: column; gap: 20px; padding-top: 48px; }
.cb-archive-head h1 { margin: 0; font-size: clamp(2.4rem, 5.6vw, 4.4rem); text-wrap: balance; }
.cb-404 { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; padding-top: 40px; padding-bottom: 40px; }
.cb-404 .cb-sofa { margin: 0 auto; max-width: 380px; width: 100%; }
.wp-block-search__button { margin-left: 8px; }

/* ---------- Fußbereich ---------- */
.cb-footer { margin-top: 120px; background: var(--cb-soft); }
.cb-footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-top: 56px; padding-bottom: 48px; }
.cb-footer figure { margin: 0; max-width: 460px; display: flex; flex-direction: column; gap: 14px; }
.cb-footer blockquote { margin: 0; font-family: var(--cb-display); font-size: 30px; font-weight: 700; line-height: 1.15; letter-spacing: -.025em; }
.cb-footer-links { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.cb-footer-links a { color: var(--cb-ink); text-decoration: none; font-family: var(--cb-display); font-weight: 600; font-size: 17px; display: inline-flex; min-height: 40px; align-items: center; }
.cb-footer-links a:hover { color: var(--cb-blue); }
.cb-footer-bottom { padding-bottom: 40px; }
.cb-footer-bottom .cb-meta { justify-content: space-between; }

/* ---------- Handy ---------- */
@media (max-width: 760px) {
	html body { --wp--style--root--padding-left: 20px; --wp--style--root--padding-right: 20px; }
	.cb-wrap, .cb-read { padding-left: 20px; padding-right: 20px; }
	.cb-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
	.cb-feature-card { margin: -48px 12px 0; padding: 24px; }
	.cb-feature-card.cb-stitch::before { inset: 7px; }
	.cb-pod-cover { flex-basis: 100%; height: 220px; }
	.cb-hero-text { padding-bottom: 8px; }
	.cb-sofa { max-width: none; margin: 0 0 -4px; }
	.cb-postnav { grid-template-columns: minmax(0, 1fr); }
	.cb-postnav .cb-postnav-next { grid-column: 1; }
	.cb-pillar { grid-template-columns: minmax(0, 1fr); gap: 16px !important; }

	/* Leiste unten statt Burgermenü */
	.cb-top { padding-top: 18px; padding-bottom: 8px; }
	.cb-logo { font-size: 20px; }
	.cb-nav { position: fixed; z-index: 50; left: 14px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); gap: 4px; padding: 6px; border-radius: 26px; background: var(--cb-bar); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: var(--cb-shadow); border: 1px solid var(--cb-line); flex-wrap: nowrap; }
	.cb-nav li { flex: 1; display: flex; }
	.cb-nav a { flex: 1; flex-direction: column; justify-content: center; min-height: 56px; padding: 0 6px; border-radius: 20px; font-size: 12px; font-weight: 650; color: var(--cb-muted); }
	.cb-nav a.is-current { background: var(--cb-soft); }
	.cb-nav a.is-current::after { display: none; }
	.cb-nav .cb-tab-ico { display: block; }
	.cb-footer { padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Abstände der Block-Layouts zähmen ---------- */
.cb-top > *, .cb-hero > *, .cb-band > *, .cb-single-head > *, .cb-page-head > *, .cb-archive-head > *, .cb-404 > *, .cb-footer > *, .cb-footer-top > *, .cb-portrait > * { margin-block: 0 !important; }
.cb-404 .wp-block-search { width: 100%; max-width: 480px; }
.cb-shownotes { padding-top: 72px; }
.wp-block-search__inside-wrapper { gap: 8px; }
.wp-block-search__button { margin-left: 0; border-radius: 999px; }
.cb-excerpt, .cb-prose { overflow-wrap: anywhere; }
.cb-portrait:not(:has(img)) { display: none; }

/* ---------- Impressum & Datenschutz ---------- */
.cb-toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px !important; }
.cb-toc p { margin: 0; }
.cb-toc a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--cb-soft); color: var(--cb-ink); text-decoration: none; font-family: var(--cb-display); font-size: 15px; font-weight: 600; transition: background .2s, color .2s; }
.cb-toc a:hover { background: var(--cb-btn); color: var(--cb-on-btn); }

.cb-facts { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px !important; margin-top: 48px !important; }
.cb-fact { background: var(--cb-surface); border-radius: 22px; padding: 22px; box-shadow: var(--cb-shadow); display: flex; flex-direction: column; gap: 14px; }
.cb-fact > * { margin: 0 !important; }
.cb-fact p { font-family: var(--cb-display); font-size: 16px; font-weight: 600; line-height: 1.35; }
.cb-fact .cb-fact-ico { width: 44px; height: 44px; border-radius: 14px; background: var(--cb-soft); color: var(--cb-blue); display: flex; align-items: center; justify-content: center; }

.cb-contact { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; background: var(--cb-surface); border-radius: 28px; padding: 40px 44px; box-shadow: var(--cb-shadow); margin: 56px 0 0; }
.cb-contact-ico { flex: none; width: 72px; height: 72px; border-radius: 22px; background: var(--cb-sky); color: var(--cb-ink); display: flex; align-items: center; justify-content: center; }
.cb-contact-body { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.cb-contact-body p { margin: 0; }
.cb-contact-name { font-family: var(--cb-display); font-size: 30px; font-weight: 750; letter-spacing: -.025em; line-height: 1.1; }
.cb-contact-addr { font-size: 20px; line-height: 1.55; min-height: 3.1em; }
.cb-contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.cb-protected .cb-mail-text { overflow-wrap: anywhere; }
.cb-skel { display: block; height: .8em; width: 14em; max-width: 100%; margin: .45em 0; border-radius: 6px; background: linear-gradient(90deg, var(--cb-soft), var(--cb-line), var(--cb-soft)); background-size: 200% 100%; animation: cb-shimmer 1.4s ease-in-out infinite; }
.cb-skel--short { width: 9em; }
@keyframes cb-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.cb-protected.is-visible .cb-contact-addr { animation: cb-fade .4s ease both; }
@keyframes cb-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.cb-legal-head { display: flex; align-items: center; gap: 16px; margin-top: 88px !important; }
.cb-legal-head > * { margin: 0 !important; }
.cb-legal-head .cb-fact-ico { width: 52px; height: 52px; border-radius: 16px; background: var(--cb-sky); color: var(--cb-ink); display: flex; align-items: center; justify-content: center; flex: none; }
.cb-legal-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.cb-legal-row { display: grid !important; grid-template-columns: 220px minmax(0, 1fr); gap: 8px 32px !important; padding: 26px 0; border-top: 1px solid var(--cb-line); margin-top: 0 !important; }
.cb-legal-row:first-of-type { margin-top: 24px !important; }
.cb-legal-row > * { margin: 0 !important; }
.cb-legal-row h3 { font-size: 1.1rem; line-height: 1.35; letter-spacing: -.01em; padding-top: 3px; }
.cb-legal-row p, .cb-legal-row li { font-size: 1.05rem; line-height: 1.65; }
.cb-legal-row ul { padding-left: 1.2em; }
.cb-legal-row > :not(h3) { grid-column: 2; }

@media (max-width: 900px) { .cb-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
	.cb-contact { padding: 28px 24px; }
	.cb-legal-row { grid-template-columns: minmax(0, 1fr); }
	.cb-legal-row > :not(h3) { grid-column: 1; }
}
@media (max-width: 480px) { .cb-facts { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Wartungsseite (Clean Maintenance) ---------- */
body.cm-maintenance { background: var(--cb-sky) !important; }
.cm-maintenance .cm-page { align-items: center; text-align: center; gap: 22px; }
.cm-maintenance .cm-page > * { margin-block: 0 !important; max-width: 640px; }
.cm-maintenance .cb-logo { justify-content: center; margin-bottom: 8px !important; }
.cm-maintenance .cb-sofa { width: 100%; max-width: 420px !important; margin: 0 auto !important; }
.cm-maintenance .cb-kicker { color: var(--cb-ink); }
.cm-maintenance h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); text-wrap: balance; }
.cm-maintenance .cb-sofa { flex: none; height: auto !important; }

/* Zwei Katzen auf dem Sofa, die ab und zu hüpfen */
.cb-sofa .cat { transform-box: fill-box; transform-origin: 50% 100%; animation: cb-hop 3.8s ease-in-out infinite; }
.cb-sofa .cat-2 { animation-duration: 4.6s; animation-delay: 1.6s; }
@keyframes cb-hop {
	0%, 70%, 100% { transform: none; }
	77% { transform: translateY(-14px) scale(.98, 1.04); }
	84% { transform: translateY(0) scale(1.05, .93); }
	90% { transform: none; }
}

/* ---------- Geschützter E-Mail-Knopf (Kontakt) ---------- */
.cb-mail-card { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; background: var(--cb-surface); border-radius: 28px; padding: 44px; box-shadow: var(--cb-shadow); margin-top: 40px; }
.cb-mail-card > * { margin: 0 !important; }
.cb-mail-card .cb-fact-ico { width: 60px; height: 60px; border-radius: 18px; background: var(--cb-sky); color: var(--cb-ink); display: flex; align-items: center; justify-content: center; }
.cb-mail-label { font-family: var(--cb-display); font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.cb-mail-card .cb-mail { min-width: 16em; justify-content: center; }
.cb-mail-card .cb-skel { width: 12em; margin: 0; background: rgba(255,255,255,.35); }

/* ---------- Archiv ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cb-archive { --arc-gap: clamp(20px, 3vw, 32px); font-family: var(--cb-display); margin-top: 8px; }
.cb-arc-head { display: grid; gap: 18px; }
.cb-arc-lead { margin: 0; font-size: clamp(19px, 2.2vw, 23px); line-height: 1.35; color: var(--cb-muted); }
.cb-arc-lead strong { color: var(--cb-ink); font-size: 1.5em; letter-spacing: -.02em; margin-right: 4px; }
.cb-arc-search { position: relative; display: flex; align-items: center; }
.cb-arc-search svg { position: absolute; left: 20px; color: var(--cb-muted); pointer-events: none; }
.cb-arc-search input { width: 100%; box-sizing: border-box; min-height: 62px; padding: 0 60px 0 54px; border: 2px solid var(--cb-line); border-radius: 999px; background: var(--cb-surface); color: var(--cb-ink); font: 600 19px/1 var(--cb-display); box-shadow: var(--cb-shadow); transition: border-color .2s; -webkit-appearance: none; appearance: none; }
.cb-arc-search input::placeholder { color: var(--cb-muted); font-weight: 500; }
.cb-arc-search input:focus { outline: none; border-color: var(--cb-blue); }
.cb-arc-search kbd { position: absolute; right: 20px; display: grid; place-items: center; width: 26px; height: 26px; border: 1.5px solid var(--cb-line); border-radius: 7px; font: 600 14px/1 var(--cb-display); color: var(--cb-muted); }
.cb-arc-search input:focus ~ kbd, .cb-arc-search input:not(:placeholder-shown) ~ kbd { opacity: 0; }
.cb-arc-segs, .cb-arc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cb-arc-seg, .cb-arc-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1.5px solid var(--cb-line); border-radius: 999px; background: transparent; color: var(--cb-ink); font: 600 15px/1 var(--cb-display); cursor: pointer; transition: background .2s, border-color .2s, color .2s, opacity .2s; }
.cb-arc-seg span, .cb-arc-chip span { font-size: 13px; color: var(--cb-muted); font-variant-numeric: tabular-nums; }
.cb-arc-seg:hover, .cb-arc-chip:hover { border-color: var(--cb-blue); }
.cb-arc-seg[aria-pressed="true"] { background: var(--cb-ink); border-color: var(--cb-ink); color: var(--cb-bg); }
.cb-arc-seg[aria-pressed="true"] span { color: inherit; opacity: .7; }
.cb-arc-chip[aria-pressed="true"] { background: var(--cb-sky); border-color: var(--cb-blue); }
.cb-arc-chip[aria-pressed="true"] span { color: var(--cb-ink); }
.cb-arc-seg:disabled, .cb-arc-chip:disabled { opacity: .4; cursor: default; }
.cb-arc-chips { margin-top: 14px; }
.cb-arc-chips .cb-arc-chip { min-height: 34px; padding: 0 13px; font-size: 14px; }

/* Zeitleiste */
.cb-arc-timeline { display: grid; grid-template-columns: repeat(var(--years), minmax(0, 1fr)); gap: 4px; align-items: end; height: 150px; margin-top: var(--arc-gap); padding: 18px 16px 0; border-radius: 24px; background: var(--cb-soft); }
.cb-arc-bar { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; padding: 0 0 28px; border: 0; background: none; color: var(--cb-muted); cursor: pointer; font: 600 12px/1 var(--cb-display); }
.cb-arc-fill { display: block; width: 100%; max-width: 34px; min-height: 3px; height: calc(var(--h, 0) * 100%); border-radius: 6px 6px 2px 2px; background: var(--cb-blue); opacity: .55; transition: height .45s cubic-bezier(.2, .8, .2, 1), opacity .2s, background .2s; }
.cb-arc-bar:hover .cb-arc-fill, .cb-arc-bar:focus-visible .cb-arc-fill { opacity: 1; }
.cb-arc-bar[aria-pressed="true"] .cb-arc-fill { background: var(--cb-accent); opacity: 1; }
.has-year .cb-arc-bar[aria-pressed="false"] .cb-arc-fill { opacity: .25; }
.cb-arc-bar:disabled { cursor: default; }
.cb-arc-bar:disabled .cb-arc-fill { opacity: .15; }
.cb-arc-y { position: absolute; bottom: 6px; white-space: nowrap; }
.cb-arc-n { position: absolute; top: -2px; left: 50%; transform: translate(-50%, 4px); padding: 4px 7px; border-radius: 8px; background: var(--cb-ink); color: var(--cb-bg); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; font-variant-numeric: tabular-nums; }
.cb-arc-bar:hover .cb-arc-n, .cb-arc-bar:focus-visible .cb-arc-n, .cb-arc-bar[aria-pressed="true"] .cb-arc-n { opacity: 1; transform: translate(-50%, 0); }
.cb-archive:not(.is-ready) .cb-arc-timeline, .cb-archive:not(.is-ready) .cb-arc-segs, .cb-archive:not(.is-ready) .cb-arc-chips { display: none; }

/* Heute vor … und Zufallsfund */
.cb-arc-extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; margin-top: var(--arc-gap); }
.cb-arc-extras[hidden] { display: none; }
.cb-arc-card { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px; border-radius: 24px; background: var(--cb-surface); box-shadow: var(--cb-shadow); }
.cb-arc-random { background: var(--cb-sky); box-shadow: none; }
.cb-arc-random .cb-kicker { color: var(--cb-ink); }
.cb-arc-today ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cb-arc-today .cb-arc-pick-ex { display: none; }
.cb-arc-pick { flex: 1; }
.cb-arc-pick.is-new { animation: cb-arc-pop .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes cb-arc-pop { from { opacity: 0; transform: translateY(8px) rotate(-.6deg); } to { opacity: 1; transform: none; } }
.cb-arc-pick-link { display: grid; gap: 4px; color: inherit; text-decoration: none; }
.cb-arc-pick-meta { font-size: 13px; font-weight: 600; color: var(--cb-muted); }
.cb-arc-random .cb-arc-pick-meta { color: var(--cb-ink); opacity: .75; }
.cb-arc-pick-title { font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.cb-arc-pick-link:hover .cb-arc-pick-title { text-decoration: underline; text-decoration-color: var(--cb-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.cb-arc-pick-ex { font-family: var(--wp--preset--font-family--serif, Georgia, serif); font-size: 16px; line-height: 1.5; color: var(--cb-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cb-arc-random .cb-arc-pick-ex { color: var(--cb-ink); opacity: .8; }
.cb-arc-dice { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; align-self: flex-start; }
.cb-arc-dice:hover svg { transform: rotate(90deg); }
.cb-arc-dice svg { transition: transform .35s; }

/* Status und Liste */
.cb-arc-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: var(--arc-gap) 0 0; padding-top: 16px; border-top: 1.5px solid var(--cb-line); font-size: 15px; color: var(--cb-muted); scroll-margin-top: 90px; }
.cb-arc-reset { padding: 0; border: 0; background: none; color: var(--cb-blue); font: 600 15px/1 var(--cb-display); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cb-arc-reset[hidden] { display: none; }
.cb-arc-year { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 0 24px; padding: 22px 0; border-bottom: 1.5px solid var(--cb-line); }
.cb-arc-year[hidden] { display: none; }
.cb-arc-yhead { position: sticky; top: 24px; align-self: start; margin: 0; display: grid; gap: 4px; font-size: clamp(30px, 4vw, 44px); line-height: 1; letter-spacing: -.03em; color: var(--cb-ink); }
.cb-arc-yhead small { font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--cb-muted); }
.cb-arc-list { list-style: none; margin: 0; padding: 0; }
.cb-arc-item[hidden] { display: none; }
.cb-arc-link { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline; padding: 10px 12px; margin: 0 -12px; border-radius: 14px; color: var(--cb-ink); text-decoration: none; transition: background .15s; }
.cb-arc-link:hover, .cb-arc-link:focus-visible { background: var(--cb-soft); outline: none; }
.cb-arc-link time { font-size: 14px; font-weight: 600; color: var(--cb-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cb-arc-body { display: grid; gap: 4px; min-width: 0; }
.cb-arc-title { font-size: 18px; font-weight: 600; line-height: 1.3; }
.cb-arc-link:hover .cb-arc-title { text-decoration: underline; text-decoration-color: var(--cb-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.cb-arc-title mark { background: var(--cb-sky); color: inherit; border-radius: 4px; padding: 0 2px; }
.cb-arc-ex { display: none; font-family: var(--wp--preset--font-family--serif, Georgia, serif); font-size: 15px; line-height: 1.45; color: var(--cb-muted); }
.is-searching .cb-arc-ex { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cb-arc-tag { justify-self: end; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cb-blue); white-space: nowrap; }
.cb-arc-empty { padding: 48px 0; text-align: center; font-size: 19px; color: var(--cb-muted); }
.cb-arc-empty[hidden] { display: none; }

@media (max-width: 760px) {
	.cb-arc-timeline { height: 120px; gap: 2px; padding: 14px 10px 0; border-radius: 18px; }
	.cb-arc-y { font-size: 10px; }
	.cb-arc-year { grid-template-columns: minmax(0, 1fr); }
	.cb-arc-yhead { position: sticky; top: 0; z-index: 1; display: flex; align-items: baseline; gap: 10px; padding: 8px 0; margin-bottom: 4px; background: var(--cb-bg); }
	.cb-arc-link { grid-template-columns: 54px minmax(0, 1fr); }
	.cb-arc-tag { grid-column: 2; justify-self: start; }
	.cb-arc-search input { min-height: 56px; font-size: 17px; }
	.cb-arc-search kbd { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.cb-arc-fill, .cb-arc-pick.is-new { transition: none; animation: none; }
}

/* ---------- YouTube mit zwei Klicks ---------- */
.cb-yt { position: relative; display: grid; aspect-ratio: 16 / 9; width: 100%; overflow: hidden; border-radius: 20px; background: linear-gradient(135deg, var(--cb-btn), var(--cb-blue)); color: #fff; font-family: var(--cb-display); isolation: isolate; }
.cb-yt-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cb-yt::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(3, 20, 40, 0) 35%, rgba(3, 20, 40, .82) 100%); }
.cb-yt-play { place-self: center; display: grid; place-items: center; width: 76px; height: 76px; padding: 0 0 0 4px; border: 0; border-radius: 50%; background: var(--cb-accent); color: #fff; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .2s, background .2s; }
.cb-yt-play:hover, .cb-yt-play:focus-visible { transform: scale(1.08); background: #F07A36; outline: 3px solid #fff; outline-offset: 3px; }
.cb-yt-info { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 4px; padding: 16px 20px; }
.cb-yt-title { font-size: clamp(16px, 2.2vw, 20px); font-weight: 700; line-height: 1.25; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.cb-yt-note { font-size: 13px; line-height: 1.4; opacity: .9; }
.cb-yt-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cb-yt.is-playing { background: #000; }
.cb-yt.is-playing::after { display: none; }
.cb-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wp-block-embed__wrapper:has(> .cb-yt)::before,
.wp-embed-responsive .wp-has-aspect-ratio .wp-block-embed__wrapper:has(> .cb-yt)::before { display: none; padding-top: 0; content: none; }
.wp-block-embed .cb-yt { margin: 0; }
:where(.wp-block-post-content) > .cb-yt, p > .cb-yt { margin: 1.6em 0; }
@media (max-width: 480px) {
	.cb-yt-play { width: 60px; height: 60px; }
	.cb-yt-note { display: none; }
}
.cb-yt--gone { aspect-ratio: auto; min-height: 0; background: var(--cb-soft); color: var(--cb-ink); border: 1.5px dashed var(--cb-line); }
.cb-yt--gone::after { display: none; }
.cb-yt--gone .cb-yt-info { position: static; padding: 18px 22px; }
.cb-yt--gone .cb-yt-title { font-size: 16px; font-weight: 600; text-shadow: none; color: var(--cb-muted); }
.cb-yt--gone .cb-yt-note { display: block; }

/* ---------- Projektseiten ---------- */
.cb-project-hero { position: relative; overflow: hidden; background-color: var(--cb-sky); background-image: radial-gradient(rgba(14, 36, 64, .09) 1.5px, transparent 1.6px); background-size: 22px 22px; margin-top: 0 !important; margin-bottom: 0; }
.cb-project-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: linear-gradient(to bottom, transparent, var(--cb-bg)); pointer-events: none; }
.cb-project-hero-inner { position: relative; z-index: 1; box-sizing: content-box; max-width: var(--wp--style--global--wide-size, 1120px); margin: 0 auto; padding: clamp(40px, 7vw, 96px) var(--wp--style--root--padding-right, 40px) clamp(56px, 8vw, 112px); display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.cb-project-text { display: flex; flex-direction: column; gap: 20px; }
.cb-project-text > * { margin: 0 !important; }
.cb-project-text .cb-kicker { color: var(--cb-ink); }
.cb-project-title { font-family: var(--cb-display); font-size: clamp(44px, 7vw, 84px); line-height: .98; letter-spacing: -.035em; color: var(--cb-ink); text-wrap: balance; }
.cb-project-text .cb-lead { max-width: 560px; color: var(--cb-ink); opacity: .82; }
.cb-project-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px !important; }
.cb-project-actions .cb-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; }
.cb-project-actions .cb-btn:not(.cb-btn--solid) { background: rgba(255, 255, 255, .55); }
.cb-pchips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cb-pchip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .7); border: 1px solid rgba(14, 36, 64, .12); font: 600 13px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--cb-ink); }
.cb-pchip--version { background: var(--cb-ink); color: #fff; border-color: var(--cb-ink); }
.cb-pchip--version em { font-style: normal; font-family: var(--cb-display); font-weight: 600; color: var(--cb-accent); }
.cb-project-icon { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cb-project-icon > svg { width: clamp(180px, 26vw, 300px); height: auto; border-radius: 22%; box-shadow: 0 2px 4px rgba(14, 36, 64, .08), 0 30px 60px rgba(14, 36, 64, .22); transform: rotate(-4deg); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.cb-project-icon:hover > svg { transform: rotate(0) scale(1.03); }
.cb-steam path { animation: cb-steam 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.cb-steam path:nth-child(2) { animation-delay: .45s; }
.cb-steam path:nth-child(3) { animation-delay: .9s; }
@keyframes cb-steam { 0%, 100% { opacity: .35; transform: translateY(6px) scaleY(.85); } 50% { opacity: 1; transform: translateY(-4px) scaleY(1.05); } }
.cb-project-repo { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--cb-ink); opacity: .75; }

/* Inhalt der Projektseite */
.cb-is-project .cb-project-content { padding-top: 0 !important; }
.cb-is-project .cb-project-content h2 { display: flex; align-items: center; gap: 14px; }
.cb-is-project .cb-project-content h2::before { content: ""; flex: none; width: 14px; height: 22px; background: linear-gradient(90deg, var(--cb-accent) 0 5px, transparent 5px 9px, var(--cb-accent) 9px 14px); border-radius: 2px; }
.cb-is-project .cb-project-content code { font: .9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--cb-soft); padding: .1em .4em; border-radius: 6px; }
.cb-is-project .cb-project-content .wp-block-list li::marker { color: var(--cb-accent); }
.cb-steps { counter-reset: step; list-style: none; padding: 0 !important; display: grid; gap: 14px; }
.cb-steps li { counter-increment: step; position: relative; padding: 18px 22px 18px 72px; border-radius: 20px; background: var(--cb-surface); box-shadow: var(--cb-shadow); }
.cb-steps li::before { content: counter(step); position: absolute; left: 20px; top: 16px; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--cb-sky); color: var(--cb-ink); font: 700 17px/1 var(--cb-display); }

@media (max-width: 860px) {
	.cb-project-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.cb-project-icon { order: -1; justify-self: start; flex-direction: row; }
	.cb-project-icon > svg { width: 112px; }
}
@media (prefers-reduced-motion: reduce) {
	.cb-steam path { animation: none; }
}
@media (prefers-color-scheme: dark) {
	.cb-project-hero { background-image: radial-gradient(rgba(255, 255, 255, .06) 1.5px, transparent 1.6px); }
	.cb-pchip { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); }
	.cb-pchip--version { background: var(--cb-btn); color: var(--cb-on-btn); }
	.cb-project-actions .cb-btn:not(.cb-btn--solid) { background: transparent; }
}

/* Bildcollage (Galerie-Block mit Klasse cb-collage) */
.wp-block-gallery.cb-collage { display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 34px 26px !important; padding: 18px 6px 8px; }
.wp-block-gallery.cb-collage figure.wp-block-image:not(#individual-image) { grid-column: span 2; width: auto !important; margin: 0 !important; flex-direction: column; justify-content: flex-start; background: #fff; padding: 10px 10px 0; border-radius: 6px; box-shadow: 0 1px 2px rgba(14, 36, 64, .08), 0 14px 34px rgba(14, 36, 64, .16); transform: rotate(var(--tilt, -1.5deg)); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.wp-block-gallery.cb-collage figure.wp-block-image:not(#individual-image):nth-child(-n+2) { grid-column: span 3; }
.wp-block-gallery.cb-collage figure.wp-block-image:nth-child(5n+1) { --tilt: -2.2deg; }
.wp-block-gallery.cb-collage figure.wp-block-image:nth-child(5n+2) { --tilt: 1.6deg; margin-top: 18px !important; }
.wp-block-gallery.cb-collage figure.wp-block-image:nth-child(5n+3) { --tilt: 1.2deg; }
.wp-block-gallery.cb-collage figure.wp-block-image:nth-child(5n+4) { --tilt: -1.4deg; margin-top: 14px !important; }
.wp-block-gallery.cb-collage figure.wp-block-image:nth-child(5n) { --tilt: 2deg; }
.wp-block-gallery.cb-collage figure.wp-block-image:not(#individual-image):hover { transform: rotate(0) scale(1.04); box-shadow: 0 2px 4px rgba(14, 36, 64, .1), 0 24px 50px rgba(14, 36, 64, .24); z-index: 2; }
.wp-block-gallery.cb-collage figure.wp-block-image img { width: 100% !important; height: auto !important; aspect-ratio: 16 / 10; object-fit: cover !important; object-position: top center; border-radius: 3px; }
.wp-block-gallery.cb-collage figure.wp-block-image figcaption { position: static !important; max-height: none !important; background: none !important; color: var(--cb-ink) !important; padding: 10px 4px 12px !important; margin: 0 !important; text-align: left !important; text-shadow: none !important; font: 600 14px/1.3 var(--cb-display) !important; overflow: visible !important; }
.wp-block-gallery.cb-collage figure.wp-block-image figcaption::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--cb-accent); vertical-align: 1px; }
.wp-block-gallery.cb-collage.cb-collage--admin figure.wp-block-image:not(#individual-image) { grid-column: span 3; }
.wp-block-gallery.cb-collage.cb-collage--six figure.wp-block-image:not(#individual-image), .wp-block-gallery.cb-collage.cb-collage--six figure.wp-block-image:not(#individual-image):nth-child(-n+2) { grid-column: span 2; }
.wp-block-gallery.cb-collage.cb-collage--admin figure.wp-block-image:not(#individual-image):first-child { grid-column: span 6; max-width: 760px; justify-self: center; width: 100% !important; }
@media (max-width: 760px) {
	.wp-block-gallery.cb-collage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px !important; }
	.wp-block-gallery.cb-collage figure.wp-block-image:not(#individual-image), .wp-block-gallery.cb-collage figure.wp-block-image:not(#individual-image):nth-child(-n+2), .wp-block-gallery.cb-collage.cb-collage--admin figure.wp-block-image:not(#individual-image) { grid-column: span 1; padding: 6px 6px 0; }
	.wp-block-gallery.cb-collage figure.wp-block-image:not(#individual-image):first-child { grid-column: span 2; }
	.wp-block-gallery.cb-collage figure.wp-block-image figcaption { font-size: 12px !important; padding: 8px 2px 10px !important; }
}
@media (prefers-color-scheme: dark) {
	.wp-block-gallery.cb-collage figure.wp-block-image:not(#individual-image) { background: #EAF2FB; }
	.wp-block-gallery.cb-collage figure.wp-block-image figcaption { color: #0E2440 !important; }
}
@media (prefers-reduced-motion: reduce) {
	.wp-block-gallery.cb-collage figure.wp-block-image:not(#individual-image) { transition: none; }
}

/* ---------- Landingpages ohne Kopf und Fuß ---------- */
.cb-is-landing .cb-landing-main { margin: 0 !important; padding: 0 !important; }
.cb-is-landing .cb-landing-main > * { margin-block: 0 !important; }

/* Festseite 725 Jahre Peitz – edel, Farben aus dem Jubiläumswappen */
.cb-fest {
	--fest-wine: #5A1108; --fest-wine-deep: #2E0703; --fest-red: #A72914; --fest-gold: #E9B949; --fest-gold-soft: #F6DC97;
	--fest-rose: #F2B3A5; --fest-ivory: #FBF4E6;
	position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; display: flex; flex-direction: column;
	background:
		radial-gradient(900px 520px at 50% 0%, rgba(233, 185, 73, .22), transparent 65%),
		radial-gradient(700px 700px at 50% 60%, rgba(167, 41, 20, .45), transparent 70%),
		linear-gradient(180deg, var(--fest-wine) 0%, var(--fest-wine-deep) 100%);
	color: var(--fest-ivory);
}
.cb-fest::before { /* große, zarte 725 im Hintergrund */
	content: "725"; position: absolute; z-index: -1; left: 50%; top: clamp(40px, 6vw, 70px); transform: translateX(-50%);
	font-family: var(--wp--preset--font-family--serif, Georgia, serif); font-weight: 600; font-size: clamp(260px, 42vw, 620px); line-height: .8; letter-spacing: -.04em;
	color: transparent; -webkit-text-stroke: 1.5px rgba(233, 185, 73, .16); pointer-events: none;
}
.cb-fest::after { /* feiner Goldrahmen */
	content: ""; position: absolute; inset: clamp(10px, 1.6vw, 22px); z-index: -1; border: 1px solid rgba(233, 185, 73, .35); border-radius: 4px; pointer-events: none;
	box-shadow: inset 0 0 0 5px transparent, inset 0 0 0 6px rgba(233, 185, 73, .14);
}
.cb-fest > * { margin-block: 0 !important; }
.cb-fest-sparkles { position: absolute !important; inset: 0; z-index: -1; pointer-events: none; }
.cb-fest-sparkles span { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--fest-gold-soft); box-shadow: 0 0 10px 2px rgba(246, 220, 151, .6); opacity: .0; animation: cb-twinkle 5s ease-in-out infinite; }
@keyframes cb-twinkle { 0%, 100% { opacity: 0; transform: scale(.6); } 50% { opacity: .9; transform: scale(1); } }

.cb-fest-inner { position: relative; box-sizing: border-box; width: 100%; max-width: 980px; margin: 0 auto; padding: clamp(48px, 7vw, 92px) 24px 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(16px, 2.2vw, 24px); }
.cb-fest-inner > * { margin: 0 !important; }
.cb-fest-badge { position: relative; }
.cb-fest-badge img { position: relative; width: clamp(110px, 13vw, 160px) !important; height: auto; filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .45)); }
.cb-fest-badge::before { content: ""; position: absolute; left: 50%; top: 50%; width: 150%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(233, 185, 73, .28), transparent 62%); }
.cb-fest-kicker { font-family: var(--cb-display); font-size: 12px !important; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--fest-gold); }
.cb-fest-rule { display: flex !important; align-items: center; gap: 14px; width: min(320px, 70%); color: var(--fest-gold); }
.cb-fest-rule::before, .cb-fest-rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--fest-gold)); }
.cb-fest-rule::after { background: linear-gradient(90deg, var(--fest-gold), transparent); }
.cb-fest-rule span { width: 8px; height: 8px; transform: rotate(45deg); border: 1px solid var(--fest-gold); }
.cb-fest-title { font-family: var(--wp--preset--font-family--serif, Georgia, serif) !important; font-size: clamp(40px, 6.6vw, 82px) !important; line-height: 1.02 !important; font-weight: 600; letter-spacing: -.015em; color: var(--fest-ivory); text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.cb-fest-title em { display: block; margin-top: .35em; font-family: var(--cb-display); font-style: normal; font-weight: 500; font-size: .3em; letter-spacing: .2em; text-transform: uppercase; color: var(--fest-rose); }
.cb-fest-lead { max-width: 600px; font-family: var(--wp--preset--font-family--serif, Georgia, serif); font-style: italic; font-size: clamp(18px, 2vw, 21px) !important; line-height: 1.6; color: rgba(251, 244, 230, .86); }

.cb-fest-video { width: 100%; margin-top: clamp(10px, 2vw, 20px) !important; padding: 10px; border: 1px solid rgba(233, 185, 73, .55); border-radius: 18px; background: linear-gradient(180deg, rgba(233, 185, 73, .12), rgba(233, 185, 73, .03)); box-shadow: 0 40px 90px rgba(0, 0, 0, .5); }
.cb-fest-video .wp-block-embed__wrapper { margin: 0; }
.cb-fest-video .cb-yt { border-radius: 10px; background: #1a0503; }
.cb-fest-video .cb-yt::after { background: linear-gradient(180deg, rgba(46, 7, 3, 0) 40%, rgba(46, 7, 3, .85) 100%); }
.cb-fest-video .cb-yt-play { width: 88px; height: 88px; background: var(--fest-gold); color: var(--fest-wine-deep); box-shadow: 0 0 0 10px rgba(233, 185, 73, .2), 0 14px 30px rgba(0, 0, 0, .45); }
.cb-fest-video .cb-yt-play:hover, .cb-fest-video .cb-yt-play:focus-visible { background: var(--fest-ivory); outline-color: var(--fest-gold); }
.cb-fest-video .cb-yt-play svg { width: 34px; height: 34px; }
.cb-fest-video .cb-yt-title { font-family: var(--wp--preset--font-family--serif, Georgia, serif); font-weight: 600; }

.cb-fest-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px !important; }
.cb-fest-actions .wp-block-button__link { display: inline-flex; align-items: center; min-height: 52px; padding: 0 30px !important; border-radius: 999px !important; font-family: var(--cb-display); font-weight: 600; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; transition: background .25s, color .25s, border-color .25s, transform .25s; }
.cb-fest-actions .wp-block-button__link:hover { transform: translateY(-1px); }
.cb-fest-actions .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: linear-gradient(180deg, var(--fest-gold-soft), var(--fest-gold)); color: var(--fest-wine-deep); border: 1px solid var(--fest-gold); }
.cb-fest-actions .is-style-outline .wp-block-button__link { background: transparent; color: var(--fest-ivory); border: 1px solid rgba(233, 185, 73, .7); }
.cb-fest-actions .is-style-outline .wp-block-button__link:hover { background: rgba(233, 185, 73, .14); }

.cb-fest-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 !important; padding: 0; list-style: none; margin-top: clamp(10px, 2vw, 22px) !important; }
.cb-fest-facts li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px clamp(18px, 3.5vw, 40px); font-family: var(--cb-display); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(251, 244, 230, .7); }
.cb-fest-facts li + li { border-left: 1px solid rgba(233, 185, 73, .4); }
.cb-fest-facts strong { font-family: var(--wp--preset--font-family--serif, Georgia, serif); font-size: clamp(24px, 3vw, 32px); font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--fest-gold); }

.cb-fest-foot { margin: auto 0 0 !important; padding: clamp(44px, 6vw, 70px) 20px clamp(30px, 4vw, 44px); text-align: center; font-family: var(--cb-display); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(251, 244, 230, .55); }
.cb-fest-foot a { color: rgba(251, 244, 230, .8); text-decoration: none; border-bottom: 1px solid rgba(233, 185, 73, .5); }
.cb-fest-foot a:hover { color: var(--fest-gold); }

@media (prefers-reduced-motion: reduce) {
	.cb-fest-sparkles span { animation: none; opacity: .5; }
}
@media (max-width: 600px) {
	.cb-fest-facts li { padding: 6px 14px; }
	.cb-fest-video { padding: 6px; }
	.cb-fest-video .cb-yt-play { width: 68px; height: 68px; }
}
