/* KW Bücher – Blöcke. Farben kommen aus dem Theme (theme.json), mit Rückfallwerten. */
.kw-buecherregal, .kw-aehnliche, .kw-reihe-navi, .kw-spotlight, .kw-reihen-uebersicht, .kw-hoerbuecher, .kw-hoerbuch-info, .kw-mitautorin, .kw-kauf, .kw-notes, .kw-daten, .kw-badges {
	--kw-ink: var(--wp--preset--color--ink, #1B1A2E);
	--kw-text: var(--wp--preset--color--ink-soft, #36334A);
	--kw-muted: var(--wp--preset--color--muted, #5C5873);
	--kw-paper: var(--wp--preset--color--paper, #F8F6F3);
	--kw-white: var(--wp--preset--color--white, #FFFFFF);
	--kw-mauve: var(--wp--preset--color--mauve, #F1E4E6);
	--kw-line: var(--wp--preset--color--line, #E8E2DA);
	--kw-accent: var(--wp--preset--color--accent, #B5402B);
	--kw-display: var(--wp--preset--font-family--display, "Bricolage Grotesque", system-ui, sans-serif);
}

.kw-editor-hinweis { padding: 12px 16px; border: 1px dashed #8c8f94; border-radius: 8px; color: #50575e; font-size: 13px; background: rgba(255,255,255,.6); }

/* Buttons */
.kw-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.kw-button { display: inline-block; padding: 13px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; background: var(--kw-ink); color: var(--kw-white); border: 2px solid var(--kw-ink); line-height: 1.2; }
.kw-button:hover, .kw-button:focus-visible { background: var(--kw-accent); border-color: var(--kw-accent); color: var(--kw-white); }
.kw-button--outline { background: transparent; color: var(--kw-ink); }
.kw-button--breit { display: block; text-align: center; }
.kw-button--hell { background: var(--kw-white); border-color: var(--kw-white); color: var(--kw-ink); }
.kw-button--hell:hover, .kw-button--hell:focus-visible { background: var(--kw-paper); border-color: var(--kw-paper); color: var(--kw-ink); }
.kw-button--hell-outline { background: transparent; border-color: var(--kw-white); color: var(--kw-white); }
.kw-button--hell-outline:hover, .kw-button--hell-outline:focus-visible { background: var(--kw-white); border-color: var(--kw-white); color: var(--kw-ink); }

/* Cover */
.kw-cover { aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; box-shadow: 0 10px 24px rgba(27,26,46,.18); background: var(--kw-mauve); }
.kw-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kw-cover--platzhalter { color: #fff; display: flex; align-items: flex-end; padding: 16px; box-sizing: border-box; font-family: var(--kw-display); font-weight: 800; font-size: 1.15rem; line-height: 1.15; }
.kw-cover--gross { border-radius: 8px; box-shadow: 0 24px 48px rgba(27,26,46,.22); }
.kw-cover--gross.kw-cover--platzhalter { font-size: 2rem; padding: 28px; }
.kw-cover--mini { width: 84px; flex: none; border-radius: 4px; box-shadow: none; }
.kw-cover--mini.kw-cover--platzhalter span { display: none; }

/* Bücherregal */
.kw-filterleiste { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.kw-filter { font: inherit; font-size: .875rem; font-weight: 600; padding: 11px 18px; border-radius: 999px; cursor: pointer; border: 2px solid var(--kw-ink); background: var(--kw-white); color: var(--kw-ink); min-height: 44px; }
.kw-filter.is-aktiv { background: var(--kw-ink); color: var(--kw-white); }
.kw-filter:focus-visible { outline: 3px solid var(--kw-accent); outline-offset: 2px; }
.kw-regal { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 36px 28px; }
.kw-karte[hidden] { display: none; }
.kw-karte a { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--kw-ink); }
.kw-karte a:hover .kw-cover { transform: translateY(-4px); }
.kw-karte .kw-cover { transition: transform .2s ease; }
.kw-karte__titel { font-weight: 600; line-height: 1.35; }
.kw-karte__meta { font-size: .875rem; color: var(--kw-muted); }

/* Buchseite */
.kw-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.kw-badge { background: var(--kw-mauve); color: var(--kw-ink); padding: 7px 14px; border-radius: 999px; font-size: .8125rem; font-weight: 600; text-decoration: none; }
.kw-badge:hover { background: var(--kw-ink); color: var(--kw-white); }
.kw-untertitel { font-family: var(--kw-display); font-size: 1.625rem; font-weight: 600; color: var(--kw-text); margin: 0; }
.kw-daten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; padding: 22px 0; margin: 0; border-top: 1px solid var(--kw-line); border-bottom: 1px solid var(--kw-line); }
.kw-daten dt { color: var(--kw-muted); font-size: .8125rem; }
.kw-daten dd { margin: 2px 0 0; font-weight: 600; }
.kw-zwischentitel { font-size: 1.25rem; font-weight: 600; margin: 0 0 12px; }
.kw-notes { background: #FFF4F1; border: 1px solid #F1D3CB; border-radius: 16px; padding: 18px 22px; }
.kw-notes summary { font-weight: 600; cursor: pointer; min-height: 28px; }
.kw-notes p, .kw-notes ul { margin: 12px 0 0; color: var(--kw-text); }

/* Reihe */
.kw-reihe-navi h2, .kw-aehnliche h2 { margin: 0 0 28px; }
.kw-reihe { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.kw-reihe__item > a, .kw-reihe__item.is-aktiv { display: flex; gap: 20px; align-items: center; background: var(--kw-white); border-radius: 20px; padding: 20px; text-decoration: none; color: var(--kw-ink); border: 2px solid transparent; }
.kw-reihe__item.is-aktiv { border-color: var(--kw-ink); }
.kw-reihe__item > a:hover { border-color: var(--kw-accent); }
.kw-reihe__text { display: flex; flex-direction: column; gap: 4px; }
.kw-reihe__band { font-size: .8125rem; font-weight: 600; color: var(--kw-muted); }
.kw-reihe__item.is-aktiv .kw-reihe__band { color: var(--kw-accent); }
.kw-reihe__titel { font-family: var(--kw-display); font-weight: 800; font-size: 1.25rem; line-height: 1.2; }

.kw-reihen-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.kw-reihen-karte { background: var(--kw-white); border-radius: 18px; padding: 24px; }
.kw-reihen-karte h3 { margin: 0 0 10px; font-size: 1.375rem; }
.kw-reihen-karte h3 a { text-decoration: none; color: var(--kw-ink); }
.kw-reihen-karte ul { margin: 0; padding: 0; list-style: none; line-height: 1.8; }
.kw-reihen-karte ul a { color: var(--kw-text); }
.kw-reihen-karte p { margin: 8px 0 0; font-size: .9375rem; color: var(--kw-muted); }

/* Spotlight */
.kw-spotlight { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; color: var(--kw-white); }
.kw-spotlight__cover-reihe { flex: 1 1 340px; display: flex; gap: 20px; justify-content: center; }
.kw-spotlight__cover { width: 190px; box-shadow: 0 20px 40px rgba(0,0,0,.25); }
.kw-spotlight__cover--1 { margin-top: 36px; }
.kw-spotlight__cover--2 { margin-top: 72px; }
.kw-spotlight__text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.kw-spotlight h2 { margin: 0; font-size: clamp(2.25rem, 4vw, 3rem); color: var(--kw-white); }
.kw-spotlight__teaser { margin: 0; font-size: 1.125rem; line-height: 1.6; }
.kw-spotlight__meta { margin: 0; font-size: .9375rem; }
.kw-eyebrow { margin: 0; font-size: .875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }

/* Hörbücher */
.kw-mitautorin { margin: 0; color: var(--kw-text); }
.kw-karte__hoerbuch { align-self: flex-start; font-size: .75rem; font-weight: 600; background: var(--kw-mauve); color: var(--kw-ink); padding: 3px 10px; border-radius: 999px; }
.kw-hoerbuch-info { background: var(--kw-white); border-radius: 18px; padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.kw-hoerbuch-info .kw-buttons { margin-top: 10px; }
.kw-hoerbuch__label { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1.0625rem; color: var(--kw-accent); }
.kw-hoerbuch__sprecher, .kw-hoerbuch__details, .kw-hoerbuch__untertitel, .kw-hoerbuch__mit { margin: 0; }
.kw-hoerbuch__details, .kw-hoerbuch__mit { font-size: .9375rem; color: var(--kw-muted); }
.kw-hoerbuecher__liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.kw-hoerbuch { display: flex; gap: 22px; align-items: flex-start; background: var(--kw-white); color: var(--kw-ink); border-radius: 20px; padding: 22px; }
.kw-hoerbuch__cover { flex: none; width: 120px; }
.kw-hoerbuch__cover .kw-cover--platzhalter { font-size: .875rem; padding: 10px; }
.kw-hoerbuch__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kw-hoerbuch__titel { margin: 0; font-size: 1.375rem; line-height: 1.15; }
.kw-hoerbuch__titel a { color: inherit; text-decoration: none; }
.kw-hoerbuch__titel a:hover { color: var(--kw-accent); }
.kw-hoerbuch__untertitel { font-weight: 600; color: var(--kw-text); }
.kw-hoerbuch .kw-buttons { margin-top: 10px; }
.kw-hoerbuch .kw-button { padding: 10px 18px; font-size: .9375rem; }

@media (max-width: 600px) {
	.kw-regal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
	.kw-spotlight__cover { width: 140px; }
	.kw-hoerbuecher__liste { grid-template-columns: 1fr; }
	.kw-hoerbuch { flex-direction: column; }
	.kw-hoerbuch__cover { width: 140px; }
}

/* Volle Breite: eigener Hintergrund, Inhalt auf Seitenbreite */
.kw-reihe-navi.alignfull { background: var(--kw-mauve); padding-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); padding-left: max(var(--wp--style--root--padding-left, 2rem), calc((100% - 1200px) / 2)); padding-right: max(var(--wp--style--root--padding-right, 2rem), calc((100% - 1200px) / 2)); }

/* Kontaktformular */
.kw-kontakt { --kw-ink: var(--wp--preset--color--ink, #1B1A2E); --kw-muted: var(--wp--preset--color--muted, #5C5873); --kw-line: var(--wp--preset--color--line, #E8E2DA); --kw-accent: var(--wp--preset--color--accent, #B5402B); --kw-white: #fff; max-width: 640px; }
.kw-kontakt__form { display: flex; flex-direction: column; gap: 4px; }
.kw-kontakt__feld { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.kw-kontakt__feld label { font-weight: 600; }
.kw-kontakt__optional { font-weight: 400; color: var(--kw-muted); }
.kw-kontakt__feld input, .kw-kontakt__feld textarea { font: inherit; padding: 12px 14px; border: 1.5px solid var(--kw-line); border-radius: 10px; background: var(--kw-white); color: var(--kw-ink); min-height: 44px; }
.kw-kontakt__feld input:focus, .kw-kontakt__feld textarea:focus { outline: 2px solid var(--kw-accent); outline-offset: 1px; border-color: var(--kw-accent); }
.kw-kontakt__hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.kw-kontakt__hinweis { font-size: .875rem; color: var(--kw-muted); margin: 0 0 12px; }
.kw-kontakt button.kw-button { cursor: pointer; font: inherit; font-weight: 600; }
.kw-kontakt__meldung { padding: 14px 18px; border-radius: 12px; margin: 0 0 18px; font-weight: 500; }
.kw-kontakt__meldung--ok { background: #E6F3EC; color: #14532D; }
.kw-kontakt__meldung--fehler { background: #FDECEA; color: #8A1C12; }
