/* ==========================================================================
   Lesezeichen – Buchshop-Styles für Shelframe
   Grundlayout, Header und Footer kommen von Shelframe. Farben und Schriften
   folgen den Customizer-Einstellungen (CSS-Variablen von Shelframe).
   ========================================================================== */

:root {
	--lz-secondary: #2f4a3a;
	--lz-gold: #b8863b;
	--lz-accent: var(--bk-primary);
	--lz-accent-dark: color-mix(in srgb, var(--bk-primary) 78%, #000);
	--lz-ink: var(--bk-heading);
	--lz-paper: var(--bk-body-bg);
	--lz-card: var(--bk-alt-bg);
	--lz-line: var(--bk-border);
	--lz-muted: var(--bk-muted);
	--lz-shadow: 0 1px 2px rgba(35, 29, 23, .06), 0 8px 24px rgba(35, 29, 23, .08);
	--lz-shadow-book: 2px 3px 4px rgba(35, 29, 23, .18), 8px 14px 28px rgba(35, 29, 23, .18);
	--lz-section: clamp(3rem, 7vw, 5.5rem);
	--lz-radius: 10px;
}

/* ---------- Kleinigkeiten ---------- */

.lz-icon { flex: none; vertical-align: middle; }

.eyebrow {
	font-family: var(--bk-font-body);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--lz-gold);
	margin: 0 0 .7rem;
}

.admin-hint {
	margin: 1.5rem 0;
	padding: 1rem 1.2rem;
	border: 2px dashed var(--lz-gold);
	border-radius: var(--lz-radius);
	background: color-mix(in srgb, var(--lz-gold) 8%, transparent);
	font-size: .95rem;
}
.admin-hint::before { content: "Nur für Admins sichtbar · "; font-weight: 700; }

.read-more {
	display: inline-flex;
	align-items: center;
	gap: .4em;
	font-weight: 600;
	text-decoration: none;
}
.read-more .lz-icon { width: 18px; height: 18px; transition: transform .2s; }
.read-more:hover .lz-icon { transform: translateX(3px); }

.lz-btn--light { background: #fff; border-color: #fff; color: var(--lz-ink); }
.lz-btn--light:hover, .lz-btn--light:focus { background: var(--lz-gold); border-color: var(--lz-gold); color: #fff; }

.lesezeichen blockquote { border-left: 3px solid var(--lz-gold); }

/* ---------- Header: Logo-Zeichen und Büchersuche ---------- */

/* Kleines Buch-Zeichen vor dem Seitennamen, solange kein Logo-Bild gesetzt ist. */
.lesezeichen .bk-logo:not(:has(.custom-logo)) .bk-site-title a {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
}
.lesezeichen .bk-logo:not(:has(.custom-logo)) .bk-site-title a::before {
	content: "";
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M5 3h11a3 3 0 0 1 3 3v15H7a2 2 0 0 1-2-2V3zm2 2v12.2c.3-.1.6-.2 1-.2h9V6a1 1 0 0 0-1-1H7zm1 14h9v-1H8a.5.5 0 0 0 0 1z'/%3E%3C/svg%3E") center / 20px no-repeat,
		var(--bk-primary);
}
.lesezeichen .bk-site-title { font-family: var(--bk-font-heading); letter-spacing: -.01em; }
.lesezeichen .bk-footer .bk-logo:not(:has(.custom-logo)) .bk-site-title a::before { width: 30px; height: 30px; background-size: 18px; }

.bk-item--book-search { width: 100%; }
.bk-item--book-search .lz-book-search { max-width: none; }
.bk-hrow .bk-zone--center .bk-item--book-search { width: min(560px, 42vw); }
.bk-header__mobile .bk-zone:has(.bk-item--book-search) { flex: 1; width: 100%; }
.bk-header__mobile .bk-hrow:has(.bk-item--book-search) .bk-hrow__inner { padding-top: .5rem; padding-bottom: .6rem; }

.lz-book-search .bk-search-form__input { background: #fff; }
.lz-book-search .bk-search-form__submit {
	top: 4px; right: 4px; bottom: 4px;
	width: 38px; padding: 0; justify-content: center;
	border-radius: 50%;
	background: var(--lz-ink);
	color: #fff;
}
.lz-book-search .bk-search-form__submit:hover { background: var(--bk-primary); color: #fff; }

.bk-footer .bk-html { max-width: 36ch; }

/* ==========================================================================
   Startseite
   ========================================================================== */

.lz-front { display: block; }

.front-section { padding: var(--lz-section) 0 0; }
.lz-front > .front-section:last-child { padding-bottom: var(--lz-section); }

.section-head {
	display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
	margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
}
.section-title { margin: 0; position: relative; padding-bottom: .55rem; }
.section-head .section-title::after,
.newsletter .section-title::after {
	content: ""; position: absolute; left: 0; bottom: 0;
	width: 56px; height: 3px; border-radius: 3px;
	background: var(--lz-gold);
}

/* Bühne */
.hero {
	position: relative;
	overflow: hidden;
	padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(3rem, 7vw, 5.5rem);
	background:
		radial-gradient(800px 420px at 85% 30%, color-mix(in srgb, var(--lz-gold) 18%, transparent), transparent 70%),
		radial-gradient(600px 400px at 0% 100%, color-mix(in srgb, var(--lz-secondary) 10%, transparent), transparent 70%),
		var(--lz-paper);
	border-bottom: 1px solid var(--lz-line);
}
.hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
	align-items: center;
	gap: clamp(2rem, 6vw, 5rem);
}
.hero__title { font-size: clamp(2.4rem, 5.6vw, 4.2rem); line-height: 1.05; margin: 0 0 1.2rem; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--lz-muted); max-width: 46ch; margin: 0 0 1.8rem; }
.hero__book-info {
	display: inline-grid; gap: .1rem;
	padding: 1rem 1.3rem; margin-bottom: 1.8rem;
	border-left: 3px solid var(--bk-primary);
	background: rgba(255, 255, 255, .6);
	border-radius: 0 6px 6px 0;
}
.hero__book-info p { margin: 0; }
.hero__book-title { font-family: var(--bk-font-heading); font-size: 1.3rem; font-weight: 700; }
.hero__book-title a { color: var(--lz-ink); text-decoration: none; }
.hero__book-author { color: var(--lz-muted); font-style: italic; }
.hero__book-author a { color: inherit; }
.hero__book-price { font-weight: 700; color: var(--bk-primary); font-size: 1.1rem; }
.hero__book-price del { color: var(--lz-muted); font-weight: 400; margin-right: .3em; }
.hero__book-price ins { text-decoration: none; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero__visual { position: relative; display: grid; place-items: center; min-height: 380px; }
.hero__visual::before {
	content: ""; position: absolute; z-index: 0;
	width: min(420px, 90%); aspect-ratio: 1;
	border-radius: 50%;
	background: var(--lz-secondary);
}
.hero__visual::after {
	content: ""; position: absolute; z-index: 0;
	width: min(480px, 100%); aspect-ratio: 1;
	border-radius: 50%;
	border: 1px dashed color-mix(in srgb, var(--lz-gold) 70%, transparent);
}

/* 3D-Buch */
.book-3d { position: relative; z-index: 1; display: block; width: min(300px, 70%); perspective: 1400px; }
.book-3d__inner {
	position: relative; display: block;
	transform: rotateY(-22deg) rotateX(4deg);
	transform-style: preserve-3d;
	transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.book-3d:hover .book-3d__inner { transform: rotateY(-8deg) rotateX(2deg); }
.book-3d__inner img {
	display: block;
	width: 100%; aspect-ratio: 2 / 3; object-fit: cover;
	border-radius: 2px 6px 6px 2px;
	box-shadow: 18px 26px 40px rgba(0, 0, 0, .35);
}
.book-3d__inner::before {
	content: ""; position: absolute; inset: 0 auto 0 0; width: 14px; z-index: 2;
	background: linear-gradient(90deg, rgba(255, 255, 255, .25), rgba(0, 0, 0, .18) 60%, transparent);
	border-radius: 2px 0 0 2px;
}
.book-3d__inner::after {
	content: ""; position: absolute; top: 3px; bottom: 3px; right: -18px; width: 18px;
	background: repeating-linear-gradient(90deg, #f3ecdf 0 2px, #e2d7c4 2px 3px);
	transform: rotateY(90deg); transform-origin: left center;
	border-radius: 0 3px 3px 0;
}

/* Bücherstapel als Platzhalter */
.book-stack { position: relative; z-index: 1; display: grid; gap: 6px; width: min(300px, 70%); }
.book-stack span {
	display: block; height: 46px; border-radius: 4px 8px 8px 4px;
	box-shadow: inset 6px 0 0 rgba(0, 0, 0, .12), 0 6px 12px rgba(0, 0, 0, .18);
}
.book-stack span:nth-child(1) { width: 78%; margin-left: 12%; background: var(--lz-gold); }
.book-stack span:nth-child(2) { width: 90%; margin-left: 2%; background: var(--bk-primary); }
.book-stack span:nth-child(3) { width: 84%; margin-left: 8%; background: #e9dfcc; }
.book-stack span:nth-child(4) { width: 96%; background: #3d5a73; }
.book-stack span:nth-child(5) { width: 88%; margin-left: 5%; background: var(--lz-ink); }

/* Vorteile */
.usp-bar { background: var(--lz-card); border-bottom: 1px solid var(--lz-line); }
.usp-bar__inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.usp { display: flex; gap: .9rem; align-items: center; padding: 1.3rem 1.2rem; }
.usp + .usp { border-left: 1px solid var(--lz-line); }
.usp .lz-icon { width: 30px; height: 30px; color: var(--bk-primary); }
.usp strong { display: block; font-size: .98rem; color: var(--lz-ink); }
.usp span { display: block; font-size: .86rem; color: var(--lz-muted); }

/* Bücherregal (Genres) */
.shelf { position: relative; padding: 0 clamp(.5rem, 2vw, 1.5rem); overflow-x: auto; scrollbar-width: thin; }
.shelf__books {
	display: flex; align-items: flex-end; gap: 6px;
	height: 300px;
	margin: 0; padding: 0; list-style: none;
}
.shelf::after {
	content: ""; display: block; height: 18px; margin: 0 calc(-1 * clamp(.5rem, 2vw, 1.5rem));
	border-radius: 3px;
	background: linear-gradient(#8a5a33, #6b4325);
	box-shadow: 0 10px 18px rgba(60, 35, 15, .28);
}
.spine {
	position: relative;
	flex: 1 1 0; min-width: 62px; max-width: 110px;
	height: var(--h, 90%);
	margin: 0;
	border-radius: 4px 4px 1px 1px;
	box-shadow: inset 5px 0 0 rgba(255, 255, 255, .14), inset -6px 0 0 rgba(0, 0, 0, .16);
	transition: transform .25s;
}
.spine::before, .spine::after {
	content: ""; position: absolute; left: 8px; right: 8px; height: 3px; background: rgba(255, 255, 255, .45); border-radius: 2px;
}
.spine::before { top: 14px; }
.spine::after { bottom: 16px; }
.spine:hover, .spine:focus-within { transform: translateY(-14px); }
.spine a {
	display: flex; flex-direction: column; justify-content: space-between; align-items: center;
	height: 100%; padding: 1.8rem 0 1.9rem;
	color: #fff !important; text-decoration: none;
}
.spine__title {
	writing-mode: vertical-rl; transform: rotate(180deg);
	font-family: var(--bk-font-heading); font-size: 1.15rem; font-weight: 700; letter-spacing: .02em;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-height: 80%;
}
.spine__count { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .8; writing-mode: vertical-rl; transform: rotate(180deg); }
.spine--1 { background: var(--bk-primary); }
.spine--2 { background: var(--lz-secondary); }
.spine--3 { background: var(--lz-gold); }
.spine--4 { background: #3d5a73; }
.spine--5 { background: var(--lz-ink); }
.spine--6 { background: #a1563b; }

/* Autor im Fokus */
.author-spotlight__inner {
	position: relative; overflow: hidden;
	display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
	gap: clamp(2rem, 5vw, 4rem); align-items: center;
	padding: clamp(2rem, 5vw, 4rem);
	background: var(--lz-secondary);
	color: rgba(255, 255, 255, .9);
	border-radius: 16px;
}
.author-spotlight__inner::after {
	content: "„"; position: absolute; right: 2rem; top: -3.5rem;
	font-family: var(--bk-font-heading); font-size: 20rem; line-height: 1;
	color: rgba(255, 255, 255, .06); pointer-events: none;
}
.author-spotlight .section-title { color: #fff; }
.author-spotlight .eyebrow { color: color-mix(in srgb, var(--lz-gold) 70%, #fff); }
.author-spotlight__img, .author-spotlight__placeholder {
	display: block;
	width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
	border-radius: var(--lz-radius);
	box-shadow: 0 0 0 8px rgba(255, 255, 255, .08);
}
.author-spotlight__placeholder { display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .5); }
.author-spotlight__placeholder .lz-icon { width: 80px; height: 80px; }
.author-spotlight__quote {
	margin: 1rem 0 1.4rem; padding: .2em 0 .2em 1.2em;
	border-left: 3px solid color-mix(in srgb, var(--lz-gold) 70%, #fff) !important;
	font-family: var(--bk-font-heading); font-size: 1.2rem; font-style: italic; color: #fff;
}
.author-spotlight__quote p { margin: 0; }
.author-spotlight__body { margin-bottom: 1.6rem; }

/* Blog auf der Startseite */
.lz-posts { margin: 0; }

/* Newsletter */
.newsletter { margin-top: var(--lz-section); background: var(--bk-primary); color: rgba(255, 255, 255, .92); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.newsletter__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.newsletter .section-title { color: #fff; margin-bottom: 1rem; }
.newsletter .section-title::after { background: #fff; opacity: .6; }
.newsletter p { margin: 0; }
.newsletter__form input[type="submit"], .newsletter__form button { background: var(--lz-ink); border-color: var(--lz-ink); }

.front-section--content .entry-content { max-width: 860px; margin: 0 auto; }

/* ==========================================================================
   WooCommerce: Bücher
   ========================================================================== */

/* Cover im Raster */
.book-cover {
	position: relative;
	display: block;
	aspect-ratio: 2 / 3;
	margin-bottom: 1rem;
	border-radius: 3px 6px 6px 3px;
	background: linear-gradient(135deg, #e9dfcc, #d9ccb3);
	box-shadow: var(--lz-shadow-book);
	transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s;
	overflow: hidden;
}
.book-cover::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
	background: linear-gradient(90deg, rgba(0, 0, 0, .18) 0, rgba(255, 255, 255, .18) 2.5%, rgba(0, 0, 0, .06) 4%, transparent 7%);
	border-radius: inherit;
}
.woocommerce ul.products li.product .book-cover img,
.book-cover .bk-card-media,
.book-cover .bk-card-media img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	aspect-ratio: auto !important;
	object-fit: cover;
	border-radius: 0 !important;
	box-shadow: none !important;
	transform: none !important;
}
.book-cover .bk-card-media { position: absolute; inset: 0; }
.woocommerce ul.products li.product:hover .book-cover {
	transform: translateY(-6px) rotate(-.6deg);
	box-shadow: 4px 6px 8px rgba(35, 29, 23, .16), 16px 26px 40px rgba(35, 29, 23, .22);
}

.book-format {
	position: absolute; left: 10px; bottom: 10px; z-index: 3;
	padding: .2em .65em;
	border-radius: 999px;
	background: rgba(255, 253, 249, .94);
	color: var(--lz-ink);
	font-size: .7rem; font-weight: 700; letter-spacing: .04em; line-height: 1.5;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}
.book-cover .onsale { z-index: 3; }

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--bk-font-heading);
	font-weight: 600;
	line-height: 1.3;
}

.book-author {
	display: block;
	margin: -.15rem 0 .45rem;
	font-size: .88rem;
	font-style: italic;
	color: var(--lz-muted);
}

/* Produktseite */
.book-subtitle { font-family: var(--bk-font-heading); font-size: 1.2rem; font-style: italic; color: var(--lz-muted); margin: -.2rem 0 .5rem; }
.book-byline { font-size: 1.05rem; margin: 0 0 1.2rem; }
.book-byline a { font-weight: 700; }

.woocommerce div.product div.images img { border-radius: 3px 8px 8px 3px; }
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper { box-shadow: var(--lz-shadow-book); border-radius: 3px 8px 8px 3px; overflow: hidden; }

.book-facts { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.6rem; }
.book-facts li {
	padding: .35em .9em;
	border: 1px solid var(--lz-line);
	border-radius: 999px;
	background: var(--lz-card);
	font-size: .85rem;
	font-weight: 600;
	color: var(--lz-ink);
}

.book-sample { margin: 0 0 1.4rem; }
.book-sample .bk-btn { width: 100%; }
.book-sample .lz-icon { width: 20px; height: 20px; }

.trust-list { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .5rem; font-size: .92rem; }
.trust-list li { display: flex; align-items: center; gap: .6rem; }
.trust-list .lz-icon { width: 20px; height: 20px; color: var(--lz-secondary); }

.book-details { max-width: 640px; border-collapse: collapse; }
.book-details th, .book-details td { padding: .65em .8em; border-bottom: 1px solid var(--lz-line); text-align: left; vertical-align: top; }
.book-details th { width: 38%; color: var(--lz-muted); font-weight: 600; }

/* ==========================================================================
   Responsiv
   ========================================================================== */

@media (max-width: 991px) {
	.hero__inner { grid-template-columns: minmax(0, 1fr); }
	.hero__visual { order: -1; min-height: 300px; }
	.author-spotlight__inner { grid-template-columns: minmax(0, 1fr); }
	.author-spotlight__media { max-width: 320px; }
	.newsletter__inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
	.usp-bar__inner { grid-template-columns: minmax(0, 1fr); }
	.usp + .usp { border-left: 0; border-top: 1px solid var(--lz-line); }
	.usp { padding: .9rem 0; }
}

@media (max-width: 640px) {
	.section-head { flex-direction: column; align-items: flex-start; }
	.shelf__books { height: 240px; }
	.spine { min-width: 54px; }
}

@media (prefers-reduced-motion: reduce) {
	.book-3d__inner, .book-cover, .spine { transition: none !important; }
}

/* Mobil: Untertitel unter dem Seitennamen ausblenden, damit der Kopf kompakt bleibt */
@media (max-width: 991px) {
	.bk-header__mobile .bk-site-tagline { display: none; }
}

/* Preisfilter im Shop in der Akzentfarbe */
.woocommerce .widget_price_filter .ui-slider .ui-slider-range,
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle { background-color: var(--bk-primary); }
.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content { background-color: color-mix(in srgb, var(--bk-heading) 14%, transparent); }
