/*
Theme Name: bibeinfachmachen 2026
Theme URI: https://bibeinfachmachen.de
Author: Daniela Wittke
Description: Heller, cozy Boho-Herbst für bibeinfachmachen. Block-Theme mit Startseiten-Mustern, Farben und Schriften aus dem Corporate Identity.
Version: 1.0.2
Requires at least: 6.5
Tested up to: 6.8
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: bibeinfachmachen-2026
*/

/* ---------- Grundlagen ---------- */
.wp-site-blocks > * { margin-block-start: 0; }
.wp-site-blocks > main { margin-block-start: 0; }
.bm-main > * { margin-block-start: 0; margin-block-end: 0; }

a:focus-visible,
button:focus-visible,
.wp-element-button:focus-visible {
	outline: 3px solid var(--wp--preset--color--mauve);
	outline-offset: 3px;
}

/* Sektionen: Abstand unten, seitlicher Rand wie die Seite */
.bm-section {
	padding-top: 0;
	padding-bottom: 6rem;
	padding-left: var(--wp--style--root--padding-left, 1.25rem);
	padding-right: var(--wp--style--root--padding-right, 1.25rem);
}
.bm-section > * { margin-block-start: 0; }
.bm-section > * + * { margin-block-start: 2rem; }

/* ---------- Texte ---------- */
.bm-label {
	margin: 0;
	font-size: 0.875rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--mauve);
}
.bm-section-head { display: flex; flex-direction: column; gap: 0.5rem; }
.bm-section-head > * { margin: 0; }
.bm-accent {
	font-family: var(--wp--preset--font-family--lumios);
	font-size: 1.1875rem;
	line-height: 1.5;
}
.bm-link { font-weight: 700; margin: 0; }
.bm-link a { text-decoration: none; }
.bm-link a:hover { text-decoration: underline; }

/* ---------- Kopfzeile ---------- */
.bm-header { padding-top: 1.75rem; padding-bottom: 1.25rem; position: relative; z-index: 2; }
.bm-header .bm-logo { margin: 0; }
.bm-header .bm-logo img { display: block; height: auto; max-width: 100%; }
.bm-header .wp-block-navigation { gap: 0.75rem 2rem; }
.bm-header .wp-block-navigation-item__content { text-decoration: none; }
.bm-header .wp-block-navigation-item__content:hover { text-decoration: underline; }
.bm-nav-cta > .wp-block-navigation-item__content {
	display: inline-block;
	padding: 0.65rem 1.5rem;
	border-radius: 999px;
	background: var(--wp--preset--color--petrol);
	color: var(--wp--preset--color--weiss);
	font-weight: 700;
}

/* ---------- Zitat-Karten, Newsletter, Blog ---------- */
.bm-quote { font-family: var(--wp--preset--font-family--lumios); font-size: 1.3125rem; line-height: 1.5; padding: 1.75rem 2rem; border-radius: 28px; margin: 0; }
.bm-newsletter { padding: 3rem 3.5rem; border-radius: 40px; }
.bm-newsletter > * + * { margin-block-start: 1rem; }
.bm-placeholder { margin: 0; padding: 0.9rem 1.4rem; border: 2px dashed var(--wp--preset--color--petrol); border-radius: 999px; }
.bm-newsletter input[type="email"], .bm-newsletter input[type="text"] { min-height: 52px; padding: 0 1.4rem; border-radius: 999px; border: 2px solid var(--wp--preset--color--petrol); background: var(--wp--preset--color--weiss); font: inherit; box-sizing: border-box; }
.bm-newsletter button, .bm-newsletter input[type="submit"] { min-height: 52px; padding: 0 1.75rem; border-radius: 999px; border: 0; background: var(--wp--preset--color--petrol); color: var(--wp--preset--color--weiss); font: inherit; font-weight: 700; cursor: pointer; }
.bm-filter { gap: 0.75rem; align-items: center; padding-top: 0.5rem; }
.bm-filter p { margin: 0; }
.bm-filter-list { margin: 0; }
.bm-filter-list ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; padding: 0; }
.bm-filter a, .bm-filter-list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.4rem; box-sizing: border-box; border-radius: 999px; background: var(--wp--preset--color--greige); color: var(--wp--preset--color--anthrazit); text-decoration: none; }
.bm-filter a:hover, .bm-filter-list a:hover { background: var(--wp--preset--color--salbei); }
.bm-filter-all a, .bm-filter .current-cat a { background: var(--wp--preset--color--mauve); color: var(--wp--preset--color--weiss); font-weight: 700; }
.bm-card-body { display: flex; flex-direction: column; gap: 0.85rem; padding: 1.75rem 2rem 2rem; flex: 1; }
.bm-card-body > * { margin: 0; }
.bm-feature { padding: 1.5rem; gap: 2.5rem; margin-bottom: 2.5rem; }
.bm-feature .wp-block-column > * + * { margin-block-start: 0.85rem; }
.bm-feature .bm-card-img, .bm-feature .bm-card-img img { border-radius: 20px; }
.bm-post-img img { width: 100%; }
.bm-author { padding: 1.75rem 2rem; gap: 1.75rem; align-items: center; }
.bm-author-img img { border-radius: 50%; }
.bm-author .wp-block-group > * + * { margin-block-start: 0.5rem; }
.wp-block-button.is-style-outline.bm-on-dark > .wp-block-button__link { color: var(--wp--preset--color--weiss); border-color: var(--wp--preset--color--weiss); }

/* ---------- Unterseiten ---------- */
.bm-big-quote { font-size: clamp(1.5rem, 3.5vw, 2.25rem); line-height: 1.3; margin: 0; }
.bm-quote-block { padding: 3rem; text-align: center; }
.bm-card .wp-block-list { margin: 0; padding-left: 1.25rem; }
.bm-card ol.wp-block-list li { margin-bottom: 0.9rem; }
.bm-card ol.wp-block-list li::marker { color: var(--wp--preset--color--mauve); font-weight: 700; }

/* ---------- Startseite: Einstieg ---------- */
.bm-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding-top: 3.5rem;
	padding-bottom: 6rem;
	margin-top: -5.5rem;
	padding-top: 9rem;
}
.bm-hero::before {
	content: "";
	position: absolute;
	z-index: -1;
	pointer-events: none;
	top: -150px;
	right: -130px;
	width: 520px;
	height: 470px;
	background: var(--wp--preset--color--salbei);
	border-radius: 58% 42% 51% 49% / 46% 58% 42% 54%;
}
.bm-hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	pointer-events: none;
	bottom: -40px;
	left: -110px;
	width: 240px;
	height: 280px;
	background: var(--wp--preset--color--altrosa);
	border-radius: 52% 48% 60% 40% / 45% 55% 45% 55%;
}
.bm-hero-cols { align-items: center; gap: 3.5rem; }
.bm-hero-cols > .wp-block-column > * + * { margin-block-start: 1.5rem; }
.bm-hero-title { margin: 0; }

/* ---------- Karten, Badges, Flächen ---------- */
.bm-card {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	box-sizing: border-box;
	padding: 2rem;
	background: var(--wp--preset--color--greige);
	border-radius: 28px;
}
.bm-card > * { margin: 0; }
.bm-card .bm-link { margin-top: auto; padding-top: 0.5rem; }
.bm-card .wp-block-post-terms {
	font-size: 0.875rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}
.bm-card .wp-block-post-terms a { text-decoration: none; }

.bm-badge {
	display: inline-block;
	align-self: flex-start;
	margin: 0;
	padding: 0.1rem 0.9rem;
	border-radius: 999px;
	background: var(--wp--preset--color--salbei);
	color: var(--wp--preset--color--anthrazit);
	font-size: 0.9375rem;
}
.bm-badge--mauve {
	background: var(--wp--preset--color--mauve);
	color: var(--wp--preset--color--weiss);
	font-size: 0.8125rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.bm-panel {
	border-radius: 40px;
	padding: 3.5rem;
}
.bm-panel .wp-block-columns { align-items: center; gap: 3rem; }
.bm-panel .wp-block-column > * + * { margin-block-start: 1.1rem; }
.bm-panel .wp-block-column > .bm-badge { margin-block-start: 0; }
.bm-panel--petrol { padding: 4rem 3.5rem; }
.bm-panel--petrol > * + * { margin-block-start: 1.25rem; }

.bm-preview {
	min-height: 15rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: center;
	padding: 2rem;
	border-radius: 28px;
	box-sizing: border-box;
}

/* ---------- Fotos mit weißem Rahmen ---------- */
.wp-block-image.bm-photo { margin: 0; }
.wp-block-image.bm-photo img {
	display: block;
	width: 100%;
	box-sizing: border-box;
	border: 12px solid var(--wp--preset--color--weiss);
	border-radius: 32px;
}

/* ---------- Buttons ---------- */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--petrol);
	border: 2px solid var(--wp--preset--color--petrol);
	padding-top: calc(0.9rem - 2px);
	padding-bottom: calc(0.9rem - 2px);
	padding-left: calc(1.9rem - 2px);
	padding-right: calc(1.9rem - 2px);
}

/* ---------- Seiten und Beiträge ---------- */
.bm-pagehead { padding-top: 1.5rem; padding-bottom: 1.5rem; padding-left: var(--wp--style--root--padding-left, 1.25rem); padding-right: var(--wp--style--root--padding-right, 1.25rem); }
.bm-pagehead > * { margin: 0; }
.bm-pagebody { padding-bottom: 6rem; }
.bm-meta { font-size: 0.9375rem; }
.wp-block-query-pagination { gap: 1rem; font-weight: 700; }
.wp-block-query-pagination a { text-decoration: none; }

/* ---------- Fußzeile ---------- */
.bm-footer { padding-top: 1rem; padding-bottom: 3.5rem; }
.bm-footer .bm-logo { margin: 0; }
.bm-footer .bm-logo img { display: block; height: auto; max-width: 100%; }
.bm-footer p { margin: 0; font-size: 0.9375rem; }
.bm-footer .wp-block-navigation-item__content { text-decoration: underline; color: var(--wp--preset--color--anthrazit); }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 781px) {
	.bm-section { padding-bottom: 3.5rem; }
	.bm-hero { padding-top: 7rem; }
	.bm-hero::before { top: -110px; right: -100px; width: 300px; height: 280px; }
	.bm-hero::after { display: none; }
	.bm-hero-cols { gap: 2rem; }
	.bm-panel { border-radius: 32px; padding: 1.75rem 1.5rem; }
	.bm-panel--petrol { padding: 2.25rem 1.5rem; }
	.bm-panel .wp-block-columns { gap: 1.5rem; }
	.bm-card { padding: 1.5rem; border-radius: 24px; }
	.bm-header .bm-logo img { width: 200px; }
	.wp-block-button { width: 100%; }
	.wp-block-button .wp-block-button__link { width: 100%; text-align: center; }
	.wp-block-button.bm-inline { width: auto; }
}

/* ---------- Blogkarten: Titel links, Bild rechts, Teaser darunter ---------- */
.bm-card--post { position: relative; padding: 1.75rem; gap: 1.1rem; overflow: hidden; transition: transform 0.35s ease, background-color 0.35s ease; }
.bm-card--post > * { margin: 0; }
.bm-post-top { align-items: center; gap: 1.5rem; margin: 0; flex-wrap: nowrap; }
.bm-post-top .wp-block-column > * + * { margin-block-start: 0.6rem; }
.bm-card--post .wp-block-post-title { margin: 0; font-size: 1.375rem; line-height: 1.25; }
.bm-card--post .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--petrol); transition: color 0.25s ease; }
.bm-card--post .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.bm-card--post .wp-block-post-featured-image { margin: 0; overflow: hidden; border-radius: 20px; background: var(--wp--preset--color--salbei); }
.bm-card--post .wp-block-post-featured-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.bm-card--post .wp-block-read-more { display: inline-block; align-self: flex-start; font-weight: 700; text-decoration: none; transition: transform 0.25s ease, color 0.25s ease; }
.bm-card--post:hover, .bm-card--post:focus-within { transform: translateY(-6px); background-color: #E2DDD9; }
.bm-card--post:hover .wp-block-post-title a, .bm-card--post:focus-within .wp-block-post-title a { color: var(--wp--preset--color--mauve); }
.bm-card--post:hover .wp-block-post-featured-image img { transform: scale(1.07); }
.bm-card--post:hover .wp-block-read-more, .bm-card--post:focus-within .wp-block-read-more { transform: translateX(6px); }
.bm-card--post:focus-within { outline: 3px solid var(--wp--preset--color--mauve); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .bm-card--post, .bm-card--post * { transition: none !important; } .bm-card--post:hover { transform: none; } .bm-card--post:hover .wp-block-post-featured-image img { transform: none; } }
@media (max-width: 781px) { .bm-post-top { flex-wrap: wrap; } }

.bm-themen { padding: 2.5rem 3rem; text-align: center; }
.bm-themen > * + * { margin-block-start: 0.75rem; }
.bm-einfach { color: var(--wp--preset--color--petrol); }

/* ---------- Workshop-Buch ---------- */
.bm-book { counter-reset: bmpage; }
/* ohne JavaScript: Seiten als Karten */
.bm-book:not(.is-ready) { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.5rem; }
.bm-book:not(.is-ready) > .bm-page { background: var(--wp--preset--color--greige); border-radius: 28px; padding: 2rem; display: flex; flex-direction: column; gap: 0.85rem; }
.bm-page > * { margin: 0; }
.bm-page { box-sizing: border-box; background: var(--wp--preset--color--weiss); display: flex; flex-direction: column; gap: 0.9rem; font-size: 1.0625rem; line-height: 1.5; }
.bm-page h3 { margin: 0; }
.bm-page .bm-page-num { font-family: var(--wp--preset--font-family--lumios); font-size: 4rem; line-height: 1; color: var(--wp--preset--color--altrosa); }
.bm-page .bm-page-quote { margin-top: auto; font-family: var(--wp--preset--font-family--lumios); font-size: 1rem; line-height: 1.45; }
.bm-page .bm-page-quote + .bm-page-who { font-size: 0.875rem; margin-top: -0.4rem; }
.bm-page .bm-badge { align-self: flex-start; }
.bm-page ul { margin: 0; padding-left: 1.4rem; }
.bm-page .wp-block-buttons { margin-top: auto; }
.bm-page--cover, .bm-book:not(.is-ready) > .bm-page--cover { background: var(--wp--preset--color--mauve); color: var(--wp--preset--color--weiss); }
.bm-page--back, .bm-book:not(.is-ready) > .bm-page--back { background: var(--wp--preset--color--mauve); color: var(--wp--preset--color--weiss); align-items: center; justify-content: center; text-align: center; }
.bm-page--cover .bm-label, .bm-page--back .bm-label { color: var(--wp--preset--color--weiss); }
.bm-page--cover h3 { color: var(--wp--preset--color--weiss); font-size: 2.75rem; line-height: 1.12; letter-spacing: 0.08em; text-transform: uppercase; margin-top: auto; }
/* Editor: Buchseiten beschriften */
.editor-styles-wrapper .bm-book > .bm-page { margin-bottom: 1rem; border: 2px dashed var(--wp--preset--color--altrosa); border-radius: 20px; padding: 1.5rem; }
.editor-styles-wrapper .bm-book > .bm-page::before { counter-increment: bmpage; content: "Buchseite " counter(bmpage); display: block; font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--wp--preset--color--mauve); margin-bottom: 0.5rem; }
/* Aufgebautes Buch */
.bm-book.is-ready { display: flex; flex-direction: column; gap: 1.5rem; }
.bm-book-tabs { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.bm-book-tab, .bm-book-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.4rem; box-sizing: border-box; border: 0; border-radius: 999px; font: inherit; font-size: 1rem; cursor: pointer; background: var(--wp--preset--color--greige); color: var(--wp--preset--color--anthrazit); max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: background-color 0.2s ease; }
.bm-book-tab:hover { background: var(--wp--preset--color--salbei); }
.bm-book-tab.is-current { background: var(--wp--preset--color--mauve); color: var(--wp--preset--color--weiss); font-weight: 700; }
.bm-book-btn { min-height: 48px; padding: 0 1.6rem; background: var(--wp--preset--color--petrol); color: var(--wp--preset--color--weiss); font-weight: 700; font-size: 1.0625rem; max-width: none; }
.bm-book-btn:disabled { background: var(--wp--preset--color--greige); color: var(--wp--preset--color--anthrazit); cursor: not-allowed; }
.bm-book-tab:focus-visible, .bm-book-btn:focus-visible { outline: 3px solid var(--wp--preset--color--mauve); outline-offset: 3px; }
.bm-book-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.bm-book-buttons { display: flex; gap: 0.75rem; }
.bm-book-status { font-size: 1rem; }
.bm-book-wrap { display: flex; justify-content: center; overflow-x: auto; padding: 1.5rem 3.75rem 2.25rem; }
.bm-book-shift { flex: 0 0 auto; width: 960px; height: 606px; transition: transform 0.9s cubic-bezier(0.5, 0, 0.2, 1); }
.bm-book-shift.is-at-start { transform: translateX(-240px); }
.bm-book-shift.is-at-end { transform: translateX(240px); }
.bm-book-scene { position: relative; width: 960px; height: 600px; perspective: 2600px; --tl: 0px; --tr: 32px; }
.bm-book-edge { position: absolute; top: 6px; height: 600px; border-radius: 20px; background: repeating-linear-gradient(90deg, #fff 0, #fff 2px, #d6cfc9 2px, #d6cfc9 3px); transition: left 0.9s, width 0.9s; }
.bm-book-edge--left { left: calc(var(--tl) * -1); width: 0; }
.bm-book-scene.has-left .bm-book-edge--left { width: calc(480px + var(--tl)); }
.bm-book-edge--right { left: 480px; width: 0; }
.bm-book-scene.has-right .bm-book-edge--right { width: calc(480px + var(--tr)); }
.bm-leaf { position: absolute; top: 0; left: 480px; width: 480px; height: 600px; transform-origin: left center; transform-style: preserve-3d; transition: transform 0.9s cubic-bezier(0.5, 0, 0.2, 1), z-index 0s 0.45s; }
.bm-leaf.is-flipped { transform: rotateY(-180deg); }
.bm-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; visibility: hidden; transition: visibility 0s 0.45s; }
.bm-face.is-visible { visibility: visible; }
.bm-face--back { transform: rotateY(180deg); }
.bm-face > .bm-page { position: absolute; inset: 0; padding: 38px 40px; overflow: hidden; cursor: pointer; }
.bm-face > .bm-page a, .bm-face > .bm-page button { cursor: pointer; }
.bm-face > .bm-page.is-right { border-radius: 0 20px 20px 0; background-image: linear-gradient(to right, #e4ded9, transparent 14%); }
.bm-face > .bm-page.is-left { border-radius: 20px 0 0 20px; background-image: linear-gradient(to left, #e4ded9, transparent 14%); }
.bm-face > .bm-page.bm-page--cover, .bm-face > .bm-page.bm-page--back { background-image: none; }
.bm-face > .bm-page.bm-page--cover::after { content: ""; position: absolute; right: -90px; bottom: -80px; width: 280px; height: 300px; background: var(--wp--preset--color--altrosa); border-radius: 52% 48% 60% 40% / 45% 55% 45% 55%; pointer-events: none; }
.bm-face > .bm-page.bm-page--cover > *, .bm-face > .bm-page.bm-page--back > * { position: relative; z-index: 1; }
.bm-book.is-single .bm-book-wrap { padding: 1rem 0 1.5rem; }
.bm-book.is-single .bm-book-shift { width: min(100%, 380px); height: 560px; }
.bm-book.is-single .bm-book-scene { width: 100%; height: 556px; }
.bm-book.is-single .bm-leaf { left: 0; width: 100%; height: 556px; }
.bm-book.is-single .bm-face > .bm-page { padding: 28px 26px; overflow-y: auto; border-radius: 20px; background-image: none; }
.bm-book.is-single .bm-book-edge--right { left: 0; }
.bm-book.is-single .bm-book-scene.has-right .bm-book-edge--right { width: calc(100% + var(--tr)); }
@media (prefers-reduced-motion: reduce) { .bm-leaf, .bm-book-shift, .bm-book-edge, .bm-face { transition: none !important; } }

/* ---------- Stimmen ---------- */
.bm-voice { margin: 0; padding: 0; border: 0; font-family: var(--wp--preset--font-family--lumios); font-size: 1.1875rem; line-height: 1.5; }
.bm-voice p { margin: 0 0 1rem; }
.bm-voice cite { display: block; font-family: var(--wp--preset--font-family--ek-mukta); font-style: normal; font-size: 1rem; }
.bm-shot img { width: 100%; }
.bm-einfach-hell { color: var(--wp--preset--color--salbei); }

/* ---------- Farbakzente: nur CI-Farben, als schmaler Rand oben ---------- */
.bm-tints > .bm-card { border-top: 8px solid var(--wp--preset--color--salbei); }
.bm-tints > .bm-card:nth-child(3n+2) { border-top-color: var(--wp--preset--color--altrosa); }
.bm-tints > .bm-card:nth-child(3n+3) { border-top-color: var(--wp--preset--color--mauve); }

/* ---------- Workshop-Regal ---------- */
.bm-shelf { --bg: var(--wp--preset--color--greige); --fg: var(--wp--preset--color--anthrazit); }
.bm-c0 { --bg: var(--wp--preset--color--mauve); --fg: var(--wp--preset--color--weiss); }
.bm-c1 { --bg: var(--wp--preset--color--salbei); --fg: var(--wp--preset--color--anthrazit); }
.bm-c2 { --bg: var(--wp--preset--color--altrosa); --fg: var(--wp--preset--color--anthrazit); }
.bm-shelf-item > * { margin: 0; }
.bm-shelf-detail { display: flex; flex-wrap: wrap; gap: 2.25rem; align-items: stretch; background: var(--wp--preset--color--weiss); border-radius: 28px; padding: 2.25rem 2.5rem; box-sizing: border-box; }
.bm-shelf-cover { flex: 0 0 15rem; min-height: 17.5rem; box-sizing: border-box; border-radius: 14px 24px 24px 14px; padding: 1.75rem 1.5rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; background: var(--bg); color: var(--fg); }
.bm-shelf-cover > * { margin: 0; color: inherit; }
.bm-shelf-cover h3 { font-size: 1.625rem; line-height: 1.25; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 400; }
.bm-shelf-text { flex: 1 1 22rem; min-width: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.bm-shelf-text > * { margin: 0; }
.bm-shelf-text ul { padding-left: 1.4rem; }
.bm-shelf-text .bm-page-quote { margin-top: 0; }
.bm-shelf:not(.is-ready) { display: grid; gap: 1.5rem; }
.bm-shelf:not(.is-ready) .bm-shelf-label { display: none; }
.bm-shelf.is-ready .bm-shelf-label { display: none; }
.bm-shelf.is-ready { display: flex; flex-direction: column; gap: 1.5rem; }
.bm-shelf.is-ready .bm-shelf-item:not(.is-active) { display: none; }
.bm-shelf-wrap { display: flex; flex-direction: column; align-items: center; padding-top: 1.5rem; }
.bm-shelf-row { display: flex; align-items: flex-end; justify-content: center; gap: 10px; height: 400px; padding: 0 1rem; box-sizing: border-box; max-width: 100%; overflow-x: auto; overflow-y: hidden; }
.bm-spine { position: relative; flex: 0 0 auto; width: 84px; margin: 0; padding: 0; border: 0; border-radius: 10px 10px 4px 4px; background: var(--bg); color: var(--fg); cursor: pointer; font: inherit; display: flex; align-items: center; justify-content: center; transition: transform 0.5s cubic-bezier(0.5, 0, 0.2, 1); height: 350px; }
.bm-spine:nth-child(5n+2) { height: 320px; }
.bm-spine:nth-child(5n+3) { height: 340px; }
.bm-spine:nth-child(5n+4) { height: 310px; }
.bm-spine:nth-child(5n+5) { height: 345px; }
.bm-spine::before { content: ""; position: absolute; left: 0; right: 0; top: 18px; height: 8px; background: var(--wp--preset--color--mauve); opacity: 0.8; }
.bm-spine.bm-c0::before { background: var(--wp--preset--color--salbei); }
.bm-spine span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 1.0625rem; font-weight: 700; letter-spacing: 0.04em; max-height: calc(100% - 70px); text-align: center; pointer-events: none; }
.bm-spine:hover { transform: translateY(-14px); }
.bm-spine.is-active { transform: translateY(-46px) rotate(-2deg); }
.bm-spine:focus-visible { outline: 3px solid var(--wp--preset--color--mauve); outline-offset: 3px; }
.bm-shelf-board { width: 100%; max-width: 760px; height: 22px; background: var(--wp--preset--color--altrosa); border-radius: 6px 6px 14px 14px; position: relative; }
.bm-shelf-board::after { content: ""; position: absolute; left: 20px; right: 20px; top: 22px; height: 14px; background: var(--wp--preset--color--greige); border-radius: 0 0 14px 14px; }
@media (max-width: 700px) { .bm-spine { width: 64px; } .bm-shelf-row { height: 330px; justify-content: flex-start; } .bm-spine, .bm-spine:nth-child(n) { height: 270px; } .bm-shelf-detail { padding: 1.5rem; } }
@media (prefers-reduced-motion: reduce) { .bm-spine { transition: none; } }

/* ---------- Stimmen-Buch ---------- */
.bm-page .bm-bigquote { font-family: var(--wp--preset--font-family--lumios); font-size: 1.5625rem; line-height: 1.4; margin-top: 0.5rem; }
.bm-page .bm-page-who { margin-top: auto; }
.bm-page .wp-block-image { flex: 1; min-height: 0; margin: 0; }
.bm-page .wp-block-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; background: var(--wp--preset--color--salbei); }

/* Workshop-Karten: drei oben, zwei breitere darunter */
.bm-ws-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; }
.bm-ws-grid > * { grid-column: span 2; margin: 0; }
.bm-ws-grid > *:nth-child(n+4) { grid-column: span 3; }
@media (max-width: 900px) { .bm-ws-grid > *, .bm-ws-grid > *:nth-child(n+4) { grid-column: span 6; } }

/* ---------- Karten-Raster: füllen immer die ganze Breite, brechen automatisch um ---------- */
.bm-cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); }
.bm-cards > * { margin: 0; }
.bm-cards--14 { grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); }
.bm-cards--18 { grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); }
.bm-cards--20 { grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); }
/* Feste Spaltenzahl pro Zeile: im Editor unter "Zusätzliche CSS-Klasse(n)" bm-cols-2, bm-cols-3 oder bm-cols-4 eintragen */
.bm-cards.bm-cols-2 { grid-template-columns: repeat(2, 1fr); }
.bm-cards.bm-cols-3 { grid-template-columns: repeat(3, 1fr); }
.bm-cards.bm-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .bm-cards.bm-cols-3, .bm-cards.bm-cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .bm-cards.bm-cols-2, .bm-cards.bm-cols-3, .bm-cards.bm-cols-4 { grid-template-columns: 1fr; } }

/* ---------- Linkpage (Instagram) ---------- */
.bm-lp-wrap > * { margin: 0; }
.bm-lp { position: relative; overflow: hidden; max-width: none; padding: 2.25rem 1.25rem 2.5rem; font-size: 1.125rem; }
.bm-lp > * { position: relative; max-width: 440px; margin-left: auto; margin-right: auto; }
.bm-lp > * + * { margin-top: 1.25rem; }
.bm-lp::before { content: ""; position: absolute; top: -90px; right: -90px; width: 260px; height: 240px; background: var(--wp--preset--color--salbei); border-radius: 58% 42% 51% 49% / 46% 58% 42% 54%; }
.bm-lp::after { content: ""; position: absolute; top: 1000px; right: -80px; width: 170px; height: 190px; background: var(--wp--preset--color--altrosa); border-radius: 52% 48% 60% 40% / 45% 55% 45% 55%; }
.bm-lp-logo { font-family: var(--wp--preset--font-family--lumios); font-size: 1.5rem; }
.bm-lp-intro { display: flex; align-items: flex-end; gap: 1.1rem; margin-top: 1.9rem !important; }
.bm-lp-intro > * { margin: 0; }
.bm-lp-photo { flex: 0 0 118px; margin: 0; }
.bm-lp-photo img { width: 118px; height: 138px; object-fit: cover; border: 6px solid var(--wp--preset--color--weiss); border-radius: 52% 48% 46% 54% / 40% 44% 56% 60%; box-sizing: border-box; background: var(--wp--preset--color--salbei); }
.bm-lp-intro-text { display: flex; flex-direction: column; gap: 0.25rem; padding-bottom: 0.5rem; }
.bm-lp-intro-text > * { margin: 0; }
.bm-lp-h1 { font-size: 2.0625rem; line-height: 1.14; letter-spacing: 0.05em; margin-top: 1.4rem !important; }
.bm-lp-accent { color: var(--wp--preset--color--mauve); }
.bm-lp-now { position: relative; overflow: hidden; background: var(--wp--preset--color--mauve); color: var(--wp--preset--color--weiss); border-radius: 28px; padding: 1.6rem 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.75rem; }
.bm-lp-now::after { content: ""; position: absolute; right: -40px; bottom: -80px; width: 130px; height: 130px; background: var(--wp--preset--color--altrosa); border-radius: 52% 48% 60% 40% / 45% 55% 45% 55%; }
.bm-lp-now > * { position: relative; z-index: 1; margin: 0; max-width: 300px; }
.bm-lp-nowlabel { font-size: 0.8125rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--wp--preset--color--salbei); }
.bm-lp-nowtitle { font-size: 1.5rem; line-height: 1.25; text-transform: none; letter-spacing: 0; font-weight: 700; color: var(--wp--preset--color--weiss); }
.bm-lp-nowtitle a { color: inherit; text-decoration: none; }
.bm-lp-nowtext { font-size: 1rem; }
.bm-lp-nowbtn { margin-top: 0.4rem; }
.bm-lp-nowbtn a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.6rem; border-radius: 999px; background: var(--wp--preset--color--petrol); color: var(--wp--preset--color--weiss); font-weight: 700; text-decoration: none; }
.bm-lp-cards { display: flex; flex-direction: column; }
.bm-lp-cards > .bm-lp-card { position: relative; margin: 34px 0 0; }
.bm-lp-cards > .bm-lp-card:nth-child(odd) { margin-left: 14px; }
.bm-lp-cards > .bm-lp-card:nth-child(even) { margin-right: 14px; }
.bm-lp-tab { position: absolute; top: -26px; left: 22px; height: 26px; margin: 0; padding: 0 16px; border-radius: 12px 12px 0 0; display: flex; align-items: center; font-family: var(--wp--preset--font-family--lumios); font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; background: var(--wp--preset--color--salbei); color: var(--wp--preset--color--anthrazit); }
.bm-lp-cards > .bm-lp-card:nth-child(3n+2) .bm-lp-tab { background: var(--wp--preset--color--altrosa); }
.bm-lp-cards > .bm-lp-card:nth-child(3n+3) .bm-lp-tab { background: var(--wp--preset--color--mauve); color: var(--wp--preset--color--weiss); }
.bm-lp-card-body { position: relative; background: var(--wp--preset--color--greige); border-radius: 6px 24px 24px 24px; padding: 1.4rem 3.5rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: 0.15rem; }
.bm-lp-card-body > * { margin: 0; }
.bm-lp-card-body::after { content: "→"; position: absolute; right: 1.4rem; top: 50%; transform: translateY(-50%); font-size: 1.625rem; font-weight: 700; color: var(--wp--preset--color--petrol); }
.bm-lp-title { font-size: 1.3125rem; font-weight: 700; line-height: 1.25; }
.bm-lp-title a { color: var(--wp--preset--color--anthrazit); text-decoration: none; }
.bm-lp-title a::after { content: ""; position: absolute; inset: 0; }
.bm-lp-sub { font-size: 1rem; line-height: 1.4; }
.bm-lp-soon { align-self: flex-start; padding: 1px 10px; border-radius: 999px; background: var(--wp--preset--color--salbei); font-size: 0.8125rem; }
.bm-lp-quote { background: var(--wp--preset--color--salbei); border: 0; border-radius: 28px; padding: 1.6rem 1.5rem; margin-top: 2.5rem !important; }
.bm-lp-quote p { font-family: var(--wp--preset--font-family--lumios); font-size: 1.25rem; line-height: 1.45; margin: 0 0 0.6rem; }
.bm-lp-quote cite { font-style: normal; font-size: 0.9375rem; }
.bm-lp-foot { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 2.25rem !important; font-size: 0.9375rem; }
.bm-lp-foot > * { margin: 0; }
.bm-lp-foot a { color: var(--wp--preset--color--anthrazit); margin-right: 1.25rem; }
.bm-lp > * { z-index: 1; }
.bm-lp::before, .bm-lp::after { z-index: 0; }
.bm-lp .bm-lp-nowtitle { font-size: 1.5rem; line-height: 1.25; text-transform: none; letter-spacing: 0; font-weight: 700; color: var(--wp--preset--color--weiss); }

/* Menü-Knopf "Kontakt": immer weiß auf Petrol */
.bm-header .wp-block-navigation .bm-nav-cta > .wp-block-navigation-item__content,
.bm-header .wp-block-navigation .bm-nav-cta > .wp-block-navigation-item__content:hover,
.bm-header .wp-block-navigation .bm-nav-cta > .wp-block-navigation-item__content:focus,
.bm-header .wp-block-navigation .bm-nav-cta > .wp-block-navigation-item__content:visited,
.wp-block-navigation__responsive-container .bm-nav-cta > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--weiss) !important;
	background: var(--wp--preset--color--petrol);
	text-decoration: none;
}
.bm-header .wp-block-navigation .bm-nav-cta > .wp-block-navigation-item__content:hover { text-decoration: underline; }

/* Buch: keine Scrollleiste, auch nicht bei der Rückseite */
.bm-book-wrap { overflow-x: hidden; }
@media (max-width: 1100px) { .bm-book:not(.is-single) .bm-book-wrap { padding-left: 1rem; padding-right: 1rem; } }
