/* ==========================================================================
   Startseite (front-page.php)
   Farben, Schriften und Schatten kommen aus style.css (:root).
   Bausteine (Panel, Überschriften, Buttons) wie auf der Buchseite.
   Wichtig: WordPress setzt auf der Startseite die Body-Klasse „home“ –
   deshalb heißt der Rahmen hier .startseite.
   ========================================================================== */

/* ---------- Grundgerüst (wie .book) ---------- */

.startseite {
	width: min(100% - 20px, 1176px);
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	gap: 20px;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.7;
	color: var(--ink);
}

@media (min-width: 900px) {
	.startseite { width: min(100% - 48px, 1176px); gap: 32px; font-size: 18px; }
}

.startseite *,
.startseite *::before,
.startseite *::after { box-sizing: border-box; }

.startseite h1, .startseite h2, .startseite h3 { margin: 0; color: var(--ink); }
.startseite p { margin: 0; }
.startseite ul, .startseite ol { list-style: none; margin: 0; padding: 0; }
.startseite img { max-width: 100%; height: auto; }
.startseite .icon { display: inline-block; flex: none; vertical-align: middle; }
.startseite figure { margin: 0; }

.startseite a { color: var(--accent); text-underline-offset: 3px; }
.startseite a:hover { color: var(--accent-dark); }

.startseite :is(a, button, input, [tabindex]):focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
}

/* ---------- Bausteine (wie Buchseite) ---------- */

.startseite .panel {
	position: relative;
	background: var(--panel-bg);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-radius: var(--radius-panel);
	padding: 32px 22px;
}

/* Rosegold-Rahmen */
.startseite .panel::after {
	content: "";
	position: absolute;
	inset: var(--frame-inset);
	padding: 1px;
	border-radius: var(--radius-frame);
	background: var(--rosegold);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}

@media (min-width: 900px) {
	.startseite .panel { padding: 36px 64px; }
}

.startseite .h2 {
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: clamp(30px, 3.6vw, 46px);
	line-height: 1.08;
}

.startseite .kicker {
	display: block;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--accent);
}

.startseite .script {
	font-family: var(--font-script);
	font-size: clamp(22px, 2.2vw, 28px);
	line-height: 1.15;
	color: var(--accent-dark);
}

.startseite .section-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.startseite :is(.releases, .worlds) .section-head {
	padding-bottom: 16px;
	border-bottom: 1px solid var(--line);
}
.startseite .section-head--split {
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 8px 24px;
}
.startseite .section-head--split > div { display: flex; flex-direction: column; gap: 8px; }

.startseite .feather-line {
	display: block;
	width: 96px;
	height: 2px;
	background: var(--feather);
}

.startseite .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 56px;
	padding: 8px 26px;
	border-radius: var(--radius-button);
	box-shadow: var(--button-keyline);
	border: 1.5px solid var(--accent);
	font-family: var(--font-body);
	font-weight: 800;
	font-size: 15px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

.startseite .btn--primary { background: var(--accent); color: #fff; }
.startseite .btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.startseite .btn--outline { background: transparent; color: var(--accent); }
.startseite .btn--outline:hover { background: var(--accent-light); color: var(--accent-dark); }
.startseite .btn--small { min-height: 48px; padding-inline: 20px; font-size: 14px; }
.startseite .btn--wide { width: 100%; justify-content: space-between; padding-inline: 24px; text-transform: none; letter-spacing: 0; font-size: 17px; }

.startseite .text-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	font-weight: 800;
	font-size: 14px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.startseite .badge {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 0 12px;
	border-radius: 999px;
	background: var(--accent);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.startseite .badge--soft { background: var(--accent-light); color: var(--accent-dark); }

/* Karussell-Knöpfe (wie Buchseite) */
.startseite .carousel__btn {
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 1.5px solid var(--accent);
	border-radius: var(--radius-control);
	background: #fff;
	cursor: pointer;
	transition: background-color 0.2s, opacity 0.2s;
}
.startseite .carousel__btn:hover { background: var(--accent-light); }
.startseite .carousel__btn:disabled { opacity: 0.35; cursor: default; }
.startseite .carousel__count {
	min-width: 72px;
	text-align: center;
	font-weight: 800;
	font-size: 14px;
	letter-spacing: 0.06em;
	color: var(--ink-70);
}

/* Platzhalter für fehlende Fotos (nur eingeloggt sichtbar) */
.startseite .ph {
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	padding: 16px;
	background:
		radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.7), transparent 55%),
		linear-gradient(160deg, var(--p1, #F8E8EC), var(--p2, #EBC9D1));
	text-align: center;
}
.startseite .ph--warm { --p1: #FBEDE4; --p2: #EBC3AE; }
.startseite .ph--autumn { --p1: #FBE3CF; --p2: #E3A47C; }
.startseite .ph--rose { --p1: #FBEFF1; --p2: #EDC6CF; }
.startseite .ph__label img { flex: none; }
.startseite .ph__label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(255, 250, 247, 0.92);
	color: var(--ink-70);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
}

/* Cover ohne Bild: Titel auf Farbverlauf (wird durch echtes Cover ersetzt) */
.startseite .cover-ph {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	aspect-ratio: 2 / 3;
	padding: 1.2em 0.7em 0.8em;
	border-radius: 3px;
	background:
		radial-gradient(circle at 70% 18%, rgba(255, 255, 255, 0.35), transparent 50%),
		linear-gradient(170deg, var(--c1, #C76A80), var(--c2, #6E1229));
	color: #fff;
	text-align: center;
	overflow: hidden;
}
.startseite .cover-ph__title {
	font-family: var(--font-heading);
	font-size: 1.25em;
	line-height: 1.1;
	text-shadow: 0 2px 8px rgba(43, 16, 24, 0.25);
	overflow-wrap: break-word;
	-webkit-hyphens: auto;
	hyphens: auto;
}
.startseite .cover-ph__author {
	font-size: 0.55em;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	opacity: 0.9;
}

/* Polaroid mit Klebeband */
.startseite .polaroid {
	position: relative;
	padding: 10px 10px 14px;
	background: #fff;
	border-radius: 4px;
	box-shadow: var(--shadow-polaroid);
	transform: rotate(var(--tilt, -2deg));
}
.startseite .polaroid__img { aspect-ratio: var(--ratio, 4 / 5); border-radius: 2px; overflow: hidden; }
.startseite .polaroid__img > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.startseite .polaroid__caption {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	font-family: var(--font-script);
	font-size: 20px;
	line-height: 1.15;
	color: var(--ink);
}
.startseite .tape {
	position: absolute;
	top: -12px;
	left: 50%;
	z-index: 1;
	width: 92px;
	height: 26px;
	transform: translateX(-50%) rotate(-3deg);
	background: rgba(243, 211, 219, 0.85);
	box-shadow: 0 2px 4px rgba(43, 16, 24, 0.08);
}

/* Horizontales Karussell (Reihen, Leserstimmen) */
.startseite .hcarousel__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 84%;
	gap: 14px;
	margin: 0 -6px;
	padding: 6px 6px 18px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.startseite .hcarousel__track::-webkit-scrollbar { display: none; }
.startseite .hcarousel__slide { position: relative; scroll-snap-align: start; min-width: 0; display: flex; }
.startseite .hcarousel__slide > * { flex: 1; }
.startseite .hcarousel__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 6px;
}
.startseite .hcarousel.is-static .hcarousel__nav { display: none; }

@media (min-width: 600px) {
	.startseite .hcarousel__track { grid-auto-columns: calc((100% - 20px) / 2); gap: 20px; }
}
@media (min-width: 1000px) {
	.startseite .hcarousel__track { grid-auto-columns: calc((100% - 40px) / 3); }
}

/* ==========================================================================
   1 Einstieg
   ========================================================================== */

.home-hero {
	display: grid;
	gap: 28px;
	align-items: center;
}

.home-hero__text { display: flex; flex-direction: column; gap: 18px; }

.home-hero__title {
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: clamp(40px, 5.4vw, 72px);
	line-height: 1;
	letter-spacing: -0.01em;
}
.home-hero__title span { display: block; color: var(--accent); }

.home-hero__lead { font-size: 18px; line-height: 1.65; max-width: 52ch; }

.home-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

@media (max-width: 599px) {
	.home-hero__actions .btn { width: 100%; }
}

@media (min-width: 900px) {
	.startseite .home-hero {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
		gap: 56px;
		padding-block: 52px;
	}
	.home-hero__lead { font-size: 19px; }
}

/* Diashow im Bogen. z-index 1: Gast liegt VOR dem Rosegold-Rahmen des Panels */
.home-hero__media { --arch: 270px; position: relative; z-index: 1; }

@media (min-width: 900px) {
	.home-hero__media { --arch: 400px; }
}

/* Gast schaut auf dem Handy vom Bildschirmrand herein – nichts darf seitlich scrollen */
body.home .site { overflow-x: clip; }

.slideshow { display: flex; flex-direction: column; align-items: center; gap: 14px; }

.slideshow__frame {
	position: relative;
	z-index: 2;
	width: min(100%, var(--arch));
	aspect-ratio: 4 / 5;
	border-radius: 999px 999px 28px 28px;
	overflow: hidden;
	background: #F6EEEA;
	box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--line-strong), var(--shadow-cover);
	isolation: isolate;
}

.slideshow__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1.2s ease, visibility 0s 1.2s;
}
.slideshow__slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.2s ease; }
.slideshow__slide > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slideshow__slide .ph { padding-top: 30%; }

.slideshow__controls { display: flex; align-items: center; gap: 10px; }
.slideshow__toggle {
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 1.5px solid var(--accent);
	border-radius: var(--radius-control);
	background: #fff;
	cursor: pointer;
}
.slideshow__toggle:hover { background: var(--accent-light); }
.slideshow__toggle .icon--play { display: none; }
.is-paused .slideshow__toggle .icon--play { display: block; }
.is-paused .slideshow__toggle .icon:not(.icon--play) { display: none; }
.slideshow__dots { display: flex; }
.slideshow__dot {
	width: 24px;
	height: 40px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}
.slideshow__dot::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--line-strong);
	transition: width 0.25s, background-color 0.25s;
}
.slideshow__dot[aria-current="true"]::before { width: 20px; background: var(--accent); }

/* Cover-Szene: solange keine Fotos hochgeladen sind */
.cover-scene {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.8), transparent 60%),
		linear-gradient(170deg, #FBEDE4, #E9BFA6);
}
.cover-scene__book {
	position: absolute;
	width: 44%;
	height: auto;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	border-radius: 3px;
	box-shadow: var(--shadow-cover);
	font-size: 15px;
}
.cover-scene__book:nth-child(1) { z-index: 2; transform: translate(0, 4%); }
.cover-scene__book:only-child { width: 54%; }
.cover-scene__book:nth-child(2) { transform: translate(-48%, 10%) rotate(-9deg); }
.cover-scene__book:nth-child(3) { transform: translate(48%, 10%) rotate(9deg); }

/* ---------- Gast im Bild (Figur aus dem neuesten Buch) ----------
   Schaut hinter dem Foto hervor, bleibt ein paar Sekunden, versteckt sich
   wieder und kommt später erneut. Sprechblase mit Link zum Buch.
   Klick/Tipp: wackelt und schickt ein Herz. Austauschbar unter
   Website-Einstellungen → Startseite. */

.guest {
	position: absolute;
	left: calc(50% + var(--arch) / 2 - 70px);
	bottom: 110px;
	width: 150px;
}

.guest__btn {
	position: relative;
	z-index: 1; /* hinter dem Foto (z-index 2) */
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	transform-origin: 15% 100%;
	transform: translateX(-85%) rotate(-4deg);
	transition: transform 0.7s cubic-bezier(0.5, 0, 0.75, 0);
}
.guest.is-in .guest__btn {
	transform: translateX(0) rotate(12deg);
	transition: transform 1s cubic-bezier(0.2, 0.9, 0.3, 1.25);
}

.guest__img {
	display: block;
	width: 100%;
	height: auto;
	transform-origin: 40% 85%;
	filter: drop-shadow(0 12px 14px rgba(43, 16, 24, 0.22));
	-webkit-user-drag: none;
	user-select: none;
}
.guest.is-in .guest__img { animation: guest-tilt 0.9s ease-in-out 1.1s; }
.guest.is-wiggle .guest__img { animation: guest-tilt 0.8s ease-in-out; }

@keyframes guest-tilt {
	0%, 100% { transform: rotate(0); }
	30% { transform: rotate(8deg); }
	65% { transform: rotate(-5deg); }
}

.guest__bubble {
	position: absolute;
	z-index: 3; /* vor dem Foto */
	right: 46%;
	bottom: calc(100% - 6px);
	width: max-content;
	max-width: 200px;
	margin: 0;
	padding: 10px 14px;
	border-radius: 18px 18px 4px 18px;
	background: #fff;
	box-shadow: var(--shadow-card);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px) scale(0.92);
	transform-origin: 100% 100%;
	transition: opacity 0.25s, transform 0.25s, visibility 0s 0.25s;
}
.startseite .guest__bubble { color: var(--ink); }
.guest__bubble strong { display: block; margin-top: 2px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.guest__bubble:hover strong { color: var(--accent-dark); }
.guest.is-in .guest__bubble {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 0.35s ease 1s, transform 0.35s ease 1s, visibility 0s 1s;
}

.guest__heart {
	position: absolute;
	left: 50%;
	top: 20%;
	width: 22px;
	height: 22px;
	pointer-events: none;
	animation: heart-up 1.1s ease-out forwards;
}

@keyframes heart-up {
	from { opacity: 1; transform: translate(-50%, 0) scale(0.6); }
	to { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), -90px) scale(1.2); }
}

/* Handy: das Foto liegt unter dem Text – der Gast schaut oben neben der
   Überschrift vom Bildschirmrand herein, vor dem Panel */
@media (max-width: 899px) {
	.home-hero__media { position: static; }
	.guest { z-index: 4; left: auto; right: -36px; top: 52px; bottom: auto; width: 88px; }
	.guest__btn { transform-origin: 85% 100%; transform: translateX(120%) rotate(4deg); }
	.guest.is-in .guest__btn { transform: translateX(0) rotate(-12deg); }
	.guest__bubble { display: none; }
}

/* ---------- Saison-Deko: Blätter fallen einmal (unter 5 s) ---------- */

.leaves {
	position: absolute;
	inset: 0;
	z-index: 3;
	overflow: hidden;
	border-radius: inherit;
	pointer-events: none;
}

.leaf {
	position: absolute;
	top: -24px;
	left: var(--x);
	width: var(--s);
	height: calc(var(--s) * 0.72);
	border-radius: 0 85% 0 85%;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent 60%), var(--c);
	opacity: 0;
}

.leaves.is-falling .leaf { animation: leaf-fall var(--d) ease-in var(--w) forwards; }

/* Winter: Schneeflocken, Frühling: Blütenblätter */
.leaves--winter .leaf {
	width: calc(var(--s) * 0.55);
	height: calc(var(--s) * 0.55);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 6px rgba(255, 255, 255, 0.9), 0 0 0 1px rgba(183, 110, 121, 0.15);
}
.leaves--fruehling .leaf { border-radius: 80% 0 80% 0; }

@keyframes leaf-fall {
	0% { opacity: 0; transform: translate(0, 0) rotate(0); }
	12% { opacity: 0.9; }
	50% { transform: translate(var(--sway), 260px) rotate(200deg); }
	85% { opacity: 0.8; }
	100% { opacity: 0; transform: translate(calc(var(--sway) * -0.5), 560px) rotate(400deg); }
}

/* ---------- Figur läuft ins Bild (Herzpost) ---------- */

.walker { display: none; }

@media (min-width: 900px) {
	.walker {
		display: block;
		position: absolute;
		left: -10px;
		bottom: -34px;
		width: 168px;
		pointer-events: none;
		z-index: -1; /* läuft hinter dem Text */
		transform: translateX(-260px);
		opacity: 0;
	}
	.walker__img { display: block; width: 100%; height: auto; }
	.walker.is-walking { animation: walk-in 3.2s linear forwards; }
	.walker.is-walking .walker__img { animation: walk-step 0.4s ease-in-out 8; }
	.walker.is-arrived { transform: none; opacity: 1; }
}

@keyframes walk-in {
	0% { transform: translateX(-260px); opacity: 0; }
	10% { opacity: 1; }
	100% { transform: translateX(0); opacity: 1; }
}

@keyframes walk-step {
	0%, 100% { transform: translateY(0) rotate(0); }
	50% { transform: translateY(-5px) rotate(1.5deg); }
}

/* ==========================================================================
   2 Neu & bald
   ========================================================================== */

.releases__grid { display: grid; gap: 16px; }

@media (min-width: 900px) {
	.releases__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

.release {
	display: flex;
	flex-direction: column;
	border-radius: var(--radius-card);
	background: #fff;
	border: 1px solid var(--line-soft);
	overflow: hidden;
	box-shadow: var(--shadow-card);
}

.release__scene {
	position: relative;
	display: grid;
	place-items: center;
	height: 270px;
	perspective: 1100px;
	border-bottom: 1px solid var(--line);
	background:
		radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.75), transparent 60%),
		linear-gradient(170deg, var(--s1), var(--s2));
}
.release__scene--herbst { --s1: #FBE6D4; --s2: #E7A982; }
.release__scene--fruehling { --s1: #FBEAEE; --s2: #CFE3D2; }

.sticker {
	position: absolute;
	left: 22px;
	bottom: 18px;
	width: 92px;
	padding: 6px 6px 10px;
	background: #fff;
	border-radius: 3px;
	box-shadow: var(--shadow-polaroid);
	transform: rotate(-7deg);
}
.sticker img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 30%; }

.release__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 22px 22px 24px;
}
.release__series {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-70);
}
.release__title {
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: clamp(26px, 2.6vw, 34px);
	line-height: 1.1;
}
.release__title a { color: var(--ink); text-decoration: none; }
.release__title a:hover { color: var(--accent); }
.release__teaser { font-size: 16px; line-height: 1.6; color: var(--ink-70); }
.release__date { display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--ink-70); }
.release__date strong { color: var(--ink); }
.startseite .release__countdown {
	align-self: flex-start;
	padding: 4px 10px;
	border-radius: var(--radius-control);
	background: var(--accent-tint);
	color: var(--accent-dark);
	font-weight: 700;
}
.release__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }

@media (min-width: 900px) {
	.release__body { padding: 24px 28px 28px; }
	.releases__grid--single { grid-template-columns: 1fr; }
	.releases__grid--single .release { flex-direction: row; }
	.releases__grid--single .release__scene { flex: 0 0 44%; height: auto; min-height: 320px; }
}

/* Countdown */
.countdown { display: flex; gap: 10px; }
.countdown__box {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 76px;
	padding: 8px 10px 6px;
	border-radius: var(--radius-control);
	background: var(--accent-tint);
	border: 1px solid var(--line);
}
.countdown__num {
	font-family: var(--font-heading);
	font-size: 30px;
	line-height: 1.1;
	color: var(--accent-dark);
	font-variant-numeric: tabular-nums;
}
.countdown__unit {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-70);
}

/* ==========================================================================
   3 Hallo, ich bin Emma
   ========================================================================== */

.about {
	display: grid;
	gap: 32px;
	align-items: center;
}

.about__media {
	position: relative;
	display: flex;
	justify-content: center;
	padding: 14px 0 6px;
}
.about__photo { --tilt: -3deg; width: min(78%, 330px); }

.note-card {
	position: absolute;
	right: 0;
	top: 4px;
	padding: 14px 16px;
	background: var(--accent-tint);
	border: 1px solid var(--line);
	border-radius: 4px;
	box-shadow: var(--shadow-card);
	transform: rotate(4deg);
	font-family: var(--font-script);
	font-size: 20px;
	line-height: 1.25;
	color: var(--accent-dark);
}

.about__text { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.about__text p { max-width: 56ch; }

@media (min-width: 900px) {
	.about { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; padding-block: 40px; }
	.note-card { right: 2%; }
}

/* ==========================================================================
   4 Buchwelten
   ========================================================================== */

.worlds__intro { max-width: 60ch; margin: -8px 0 20px; color: var(--ink-70); }

.world {
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: var(--radius-card);
	background: #fff;
	border: 1px solid var(--line-soft);
	overflow: hidden;
	box-shadow: var(--shadow-card);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.world:hover { transform: translateY(-3px); box-shadow: 0 22px 36px -24px rgba(43, 16, 24, 0.5); }

.world__scene {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 200px;
	border-bottom: 1px solid var(--line);
	background:
		radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.7), transparent 60%),
		linear-gradient(170deg, var(--s1), var(--s2));
}

.world__scene--rose { --s1: #F7D9DF; --s2: #E3A6B4; }
.world__scene--blau { --s1: #DCE9F2; --s2: #9DBBD3; }
.world__scene--herbst { --s1: #F8E0CC; --s2: #E5A57E; }
.world__scene--gruen { --s1: #E9EFD9; --s2: #A9C08A; }
.world__scene--lila { --s1: #EDE3F2; --s2: #BFA6CF; }
.world__scene--meer { --s1: #DDEFEE; --s2: #8FC3C4; }
.world__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.world__cover {
	position: absolute;
	width: 86px;
	height: auto;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	border-radius: 3px;
	box-shadow: 0 16px 24px -14px rgba(43, 16, 24, 0.55);
	font-size: 10px;
}
.world__cover--1 { z-index: 2; }
.world__cover--2 { transform: translateX(-62%) rotate(-8deg) scale(0.92); }
.world__cover--3 { transform: translateX(62%) rotate(8deg) scale(0.92); }

.world__body { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 18px 20px 20px; }
.world__place {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent);
}
.world__title {
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: 24px;
	line-height: 1.15;
}
.world__title a { color: var(--ink); text-decoration: none; }
/* Ganze Karte klickbar */
.world__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-card); }
.world__title a:focus-visible { outline: none; }
.world:has(a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.world__count { font-size: 15px; color: var(--ink-70); }
.world__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 12px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent);
}

/* ==========================================================================
   5 Herzpost
   ========================================================================== */

.herzpost {
	display: grid;
	gap: 28px;
	align-items: center;
	background:
		radial-gradient(circle at 90% 10%, rgba(243, 211, 219, 0.55), transparent 45%),
		var(--panel-bg);
}

.herzpost__text { display: flex; flex-direction: column; gap: 16px; }
.herzpost__text p { max-width: 54ch; }

.gifts { display: flex; flex-direction: column; gap: 10px; }
.gifts li { display: flex; align-items: center; gap: 12px; font-size: 16px; line-height: 1.45; }
.gifts__icon {
	flex: none;
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	border-radius: 999px;
	background: var(--accent-light);
}

.herzpost__aside { position: relative; }

.herzpost__form {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 22px;
	border-radius: var(--radius-card);
	background: #fff;
	border: 1px solid var(--line-soft);
	box-shadow: var(--shadow-card);
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 800; }
.field label span { font-weight: 600; color: var(--ink-70); }
.field input {
	width: 100%;
	min-height: 54px;
	padding: 0 20px;
	border: 1.5px solid var(--line-strong);
	border-radius: var(--radius-control);
	background: #fff;
	font: inherit;
	font-size: 17px;
	color: var(--ink);
}
.field input::placeholder { color: var(--ink-50); }
.field input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(35, 98, 143, 0.35); }
.field input[aria-invalid="true"] { border-color: #B3261E; }
.field__error { font-size: 14px; font-weight: 700; color: #B3261E; }

.herzpost__legal { font-size: 13px; line-height: 1.5; color: var(--ink-70); }
.herzpost__ok {
	padding: 12px 16px;
	border-radius: 14px;
	background: var(--success-bg);
	color: var(--success);
	font-size: 15px;
	line-height: 1.5;
}

@media (min-width: 900px) {
	.herzpost { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding-block: 40px; }
	.herzpost__aside { padding-left: 150px; }
	.herzpost__form { padding: 28px; }
}

/* ==========================================================================
   6 Leserinnen
   ========================================================================== */

.voices .section-head .script { margin-top: 2px; }

.voice {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 22px 22px 20px;
	border-radius: var(--radius-card);
	background: #fff;
	border: 1px solid var(--line-soft);
	box-shadow: var(--shadow-card);
}
.voice__stars { display: flex; gap: 2px; }
.voice__text { margin: 0; }
.voice__text p {
	font-family: var(--font-quote);
	font-style: italic;
	font-size: 19px;
	line-height: 1.5;
	color: var(--ink);
}
.voice__foot {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--line-soft);
}
.voice__cover {
	flex: none;
	width: 44px;
	height: auto;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	border-radius: 2px;
	padding: 0;
	box-shadow: 0 8px 14px -8px rgba(43, 16, 24, 0.5);
}
.voice__who { display: flex; flex-direction: column; line-height: 1.35; font-size: 14px; }
.voice__who strong { font-size: 15px; }
.voice__who span { color: var(--ink-70); }
.voice__who a { font-weight: 700; }

/* ==========================================================================
   7 Termine
   ========================================================================== */

.events {
	display: grid;
	gap: 32px;
	align-items: center;
}

.events__text { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }

.events__list { align-self: stretch; display: flex; flex-direction: column; }
.event {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--line-soft);
}
.event:first-child { border-top: 1px solid var(--line-soft); }

.event__date {
	flex: none;
	width: 62px;
	height: 66px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius-control);
	background: var(--accent);
	color: #fff;
	line-height: 1;
}
.event__day { font-family: var(--font-heading); font-size: 26px; }
.event__month { margin-top: 4px; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }

.event__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.event__title { font-family: var(--font-body); font-size: 17px; font-weight: 800; line-height: 1.35; }
.event__title a { color: var(--ink); text-decoration: none; }
.event__title a::after { content: ""; position: absolute; inset: 0; }
.event__title a:hover { color: var(--accent); }
.event__meta { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--ink-70); }
/* Mehrtägige Termine: „18–21“ passt in das Datumsfeld */
.event--range .event__day { font-size: 18px; letter-spacing: -0.02em; white-space: nowrap; }

/* Pinnwand */
.events__board {
	position: relative;
	display: flex;
	justify-content: center;
	padding: 10px 0 0;
}
.events .board__pic { width: 46%; }
.events .board__pic--1 { --tilt: -5deg; z-index: 1; }
.events .board__pic--2 { --tilt: 4deg; margin-left: -10%; margin-top: 30px; z-index: 2; }
.events .board__pic--3 { display: none; }
.board__pic .polaroid__caption { font-size: 18px; }
.board__pic .ph__label { font-size: 12px; padding: 6px 10px; }

@media (min-width: 900px) {
	.events { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding-block: 40px; }
	.events__board { display: block; min-height: 440px; padding: 0; }
	.events .board__pic { position: absolute; width: 210px; margin: 0; }
	.events .board__pic--1 { left: 2%; top: 24px; }
	.events .board__pic--2 { left: 46%; top: 0; margin: 0; }
	.events .board__pic--3 { display: block; --tilt: -2deg; left: 22%; top: 196px; z-index: 3; }
}

/* ---------- Weniger Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
	.leaves { display: none; }
	.slideshow__slide,
	.slideshow__slide.is-active,
	.world,
	.slideshow__dot::before,
	.guest__btn,
	.guest.is-in .guest__btn,
	.guest__bubble,
	.guest.is-in .guest__bubble { transition: none; }
	.guest.is-in .guest__img,
	.guest.is-wiggle .guest__img { animation: none; }
	.guest__heart { display: none; }
	.walker,
	.walker.is-walking,
	.walker.is-walking .walker__img { animation: none; transform: none; opacity: 1; }
	.startseite .hcarousel__track { scroll-behavior: auto; }
}

/* Ohne Foto (Besucher): Text allein, Termine ohne Pinnwand */
.about--text,
.events--text { grid-template-columns: 1fr !important; }
.events__empty { color: var(--ink-70); }

/* Kleine Cover ohne Bild: kein Autor, im Mini-Format auch kein Titel */
.world__cover .cover-ph__author,
.voice__cover .cover-ph__author,
.voice__cover .cover-ph__title { display: none; }

/* Cover im eigenen Format (24.11.): nichts mehr abschneiden.
 * Cover-Bilder bringen ihr echtes Format als style="aspect-ratio" mit
 * (emma_wagner_cover), die Szene bekommt es als --ratio (szene.php).
 * Leserstimmen nutzen jetzt das ganze Cover statt des quadratischen Vorschaubilds. */
img.cover-scene__book,
img.world__cover,
img.voice__cover { object-fit: fill; }

/* ------------------------------------------------------------------
 * Hintergrund des ersten Bereichs (24.11.): blasses Foto oder Video.
 * Felder: Website-Einstellungen → Startseite → Einstieg → Hintergrund.
 * Standbild liegt unten und ist sofort da; das Video blendet ein,
 * sobald es läuft. Darüber eine helle Schicht (--hero-blass), damit
 * der Text gut lesbar bleibt.
 * ------------------------------------------------------------------ */
.hero-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	border-radius: inherit;
	pointer-events: none;
}
.hero-bg__img,
.hero-bg__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: var(--hero-pos, center);
}
.hero-bg__video {
	opacity: 0;
	transition: opacity 1.2s ease;
}
.hero-bg__video.is-playing { opacity: 1; }
.hero-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgb(255, 250, 247);
	opacity: var(--hero-blass, 0.8);
}
.home-hero--bg > .home-hero__text { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
	.hero-bg__video { display: none; }
}

/* ------------------------------------------------------------------
 * Neu & bald: Buch als Szene (neu aufgebaut 29.11. nach Emmas Vorlagen)
 * template-parts/startseite/szene.php – auch Launch-Seite und Herzpost.
 * Wie ein Verlags-Mockup: links der eBook-Reader mit weißem Rahmen und
 * Glanz, rechts dahinter das Taschenbuch in 3D (rechts Seitenblock bzw.
 * Farbschnitt), vorne in der Mitte das Smartphone mit Kopfhörern (Hörbuch).
 * Alle Maße in em: die Schriftgröße der .szene skaliert die ganze Szene.
 * --ratio = Format des Covers (Breite / Höhe), kommt aus dem Template.
 * ------------------------------------------------------------------ */
.szene {
	--book-h: 21em;
	--screen-h: 16.5em;
	--phone-h: 11.5em;
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding-bottom: 0.4em;
	font-size: 10px;
	line-height: 1;
	text-decoration: none;
	color: inherit;
}
.szene--1 { --book-h: 21.5em; --screen-h: 18.5em; --phone-h: 15em; }
.szene--3 { --book-h: 20em; --screen-h: 15em; --phone-h: 10.5em; }

/* Weicher Schatten auf dem Boden */
.szene::after {
	content: "";
	position: absolute;
	z-index: 0;
	left: 0;
	right: 0;
	bottom: -0.9em;
	height: 2.6em;
	background: radial-gradient(closest-side, rgba(43, 16, 24, 0.24), rgba(43, 16, 24, 0));
	pointer-events: none;
}

/* ---------- eBook-Reader: weißer Rahmen, Kamera, Glanz auf dem Glas ---------- */
.szene__reader {
	position: relative;
	z-index: 2;
	flex: none;
	display: block;
	padding: 1.5em 0.9em 1.9em;
	border-radius: 1.4em;
	background: linear-gradient(160deg, #ffffff 0%, #f8f8fa 45%, #e9e9ee 100%);
	box-shadow:
		0 0 0 0.1em #d3d4da,
		inset 0 0 0 0.12em rgba(255, 255, 255, 0.95),
		0 0.5em 0.8em -0.3em rgba(43, 16, 24, 0.22),
		0 1.8em 2.6em -1.4em rgba(43, 16, 24, 0.5);
	transition: transform 0.6s ease;
}
.szene__reader::before {
	content: "";
	position: absolute;
	top: 0.55em;
	left: 50%;
	width: 0.4em;
	height: 0.4em;
	margin-left: -0.2em;
	border-radius: 50%;
	background: radial-gradient(circle at 40% 40%, #747782, #2a2b31 70%);
	box-shadow: 0 0 0 0.08em #e3e4e8;
}
.szene__reader::after {
	content: "";
	position: absolute;
	bottom: 0.45em;
	left: 50%;
	width: 1em;
	height: 1em;
	margin-left: -0.5em;
	border-radius: 50%;
	box-shadow: inset 0 0 0 0.1em #dddee3;
}
.szene__screen {
	position: relative;
	display: block;
	height: var(--screen-h);
	aspect-ratio: var(--ratio, 2 / 3);
	overflow: hidden;
	border-radius: 0.2em;
	background: #111013;
	box-shadow: 0 0 0 0.1em rgba(20, 20, 30, 0.1);
}
.szene__screen > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.szene__screen > .cover-ph { width: 100%; height: 100%; }
.szene__screen::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(122deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.14) 40%, rgba(255, 255, 255, 0) 40.4%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.06));
	pointer-events: none;
}

/* ---------- Smartphone mit Kopfhörern (Hörbuch) ---------- */
.szene__phone {
	position: relative;
	z-index: 3;
	flex: none;
	display: block;
	margin-bottom: -0.7em;
	padding: 0.42em;
	border-radius: 1.45em;
	background: linear-gradient(150deg, #4b484f 0%, #1e1d21 45%, #0e0d10 100%);
	box-shadow:
		0 0 0 0.1em #bdb9c1,
		inset 0 0 0 0.08em rgba(255, 255, 255, 0.2),
		0 0.4em 0.6em -0.2em rgba(43, 16, 24, 0.3),
		0 1.4em 2em -1em rgba(43, 16, 24, 0.55);
	transition: transform 0.6s ease;
}
.szene__reader + .szene__phone { margin-left: -2.8em; }
.szene__phone:not(:last-child) { margin-right: -2.4em; }
.szene__phone-screen {
	position: relative;
	display: block;
	height: var(--phone-h);
	aspect-ratio: 9 / 19.5;
	overflow: hidden;
	border-radius: 1.08em;
	background: #241a1e;
}
.szene__phone-screen > .szene__blur {
	position: absolute;
	inset: -20%;
	width: 140%;
	height: 140%;
	max-width: none;
	object-fit: cover;
	filter: blur(0.7em) saturate(1.3) brightness(0.78);
}
.szene__phone-screen > .cover-ph { position: absolute; inset: 0; }
.szene__island {
	position: absolute;
	top: 0.42em;
	left: 50%;
	width: 1.6em;
	height: 0.46em;
	margin-left: -0.8em;
	border-radius: 0.3em;
	background: #0b0a0c;
}
.szene__phone-screen > .szene__track {
	position: absolute;
	left: 16%;
	top: 14%;
	width: 68%;
	height: auto;
	border-radius: 0.2em;
	box-shadow: 0 0.4em 0.8em rgba(0, 0, 0, 0.4);
}
.szene__lines {
	position: absolute;
	left: 16%;
	top: 66%;
	width: 58%;
	height: 0.3em;
	border-radius: 0.2em;
	background: rgba(255, 255, 255, 0.88);
}
.szene__lines::after {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 62%;
	height: 0.24em;
	border-radius: inherit;
	background: rgba(255, 255, 255, 0.5);
}
.szene__progress {
	position: absolute;
	left: 16%;
	right: 16%;
	top: 77%;
	height: 0.16em;
	border-radius: 0.1em;
	background: rgba(255, 255, 255, 0.3);
}
.szene__progress::after {
	content: "";
	position: absolute;
	inset: 0 58% 0 0;
	border-radius: inherit;
	background: #fff;
}
.szene__controls {
	position: absolute;
	left: 18%;
	right: 18%;
	top: 82%;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.szene__play {
	position: relative;
	width: 1.3em;
	height: 1.3em;
	border-radius: 50%;
	background: #fff;
}
.szene__play::after {
	content: "";
	position: absolute;
	top: 0.33em;
	left: 0.5em;
	border-style: solid;
	border-width: 0.32em 0 0.32em 0.48em;
	border-color: transparent transparent transparent #2a1d22;
}
.szene__skip {
	position: relative;
	width: 0.6em;
	height: 0.6em;
}
.szene__skip::before {
	content: "";
	position: absolute;
	top: 0.05em;
	left: 0.1em;
	border-style: solid;
	border-width: 0.25em 0.36em 0.25em 0;
	border-color: transparent rgba(255, 255, 255, 0.85) transparent transparent;
}
.szene__skip--next::before {
	border-width: 0.25em 0 0.25em 0.36em;
	border-color: transparent transparent transparent rgba(255, 255, 255, 0.85);
}
.szene__headphones {
	position: absolute;
	top: -2.7em;
	left: 50%;
	width: calc(100% + 3.4em);
	height: auto;
	transform: translateX(-50%);
	filter: drop-shadow(0 0.45em 0.45em rgba(43, 16, 24, 0.28));
	overflow: visible;
	pointer-events: none;
}

/* ---------- Taschenbuch in 3D: Cover, Seitenblock / Farbschnitt, Rückseite ---------- */
.szene__book {
	--w: calc(var(--book-h) * var(--ratio, 2 / 3));
	--t: calc(var(--book-h) * 0.15);
	position: relative;
	z-index: 1;
	flex: none;
	display: block;
	width: var(--w);
	height: var(--book-h);
	margin-bottom: 0.9em;
	transform-style: preserve-3d;
	transform: perspective(160em) rotateY(-25deg);
	transition: transform 0.6s ease;
}
.szene__reader + .szene__book { margin-left: -0.4em; }
.szene__book-front,
.szene__book-back {
	position: absolute;
	inset: 0;
	border-radius: 0.1em 0.3em 0.3em 0.1em;
}
.szene__book-front {
	overflow: hidden;
	transform: translateZ(calc(var(--t) / 2));
	background: #e6ddd8;
}
.szene__book-front > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.szene__book-front > .cover-ph { width: 100%; height: 100%; }
/* Rückenfalz, Glanz und leichte Wölbung */
.szene__book-front::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(90deg, rgba(0, 0, 0, 0.32) 0, rgba(0, 0, 0, 0.1) 1.4%, rgba(255, 255, 255, 0.36) 2.6%, rgba(255, 255, 255, 0) 6.5%, rgba(0, 0, 0, 0.06) 7.6%, rgba(0, 0, 0, 0) 10%),
		linear-gradient(104deg, rgba(255, 255, 255, 0) 34%, rgba(255, 255, 255, 0.17) 54%, rgba(255, 255, 255, 0) 72%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.08));
}
.szene__book-back {
	transform: translateZ(calc(var(--t) / -2));
	background: #3a2a2f;
	box-shadow: 1.6em 1em 2.6em -0.8em rgba(43, 16, 24, 0.42);
}
/* Seitenblock rechts: Papierkanten, an den Rändern dunkler */
.szene__book-pages {
	position: absolute;
	top: 0.4%;
	left: 100%;
	width: var(--t);
	height: 99.2%;
	transform-origin: 0 50%;
	transform: translateZ(calc(var(--t) / 2)) rotateY(90deg);
	background:
		linear-gradient(90deg, rgba(0, 0, 0, 0.3) 0, rgba(0, 0, 0, 0) 8%, rgba(0, 0, 0, 0) 88%, rgba(0, 0, 0, 0.32) 100%),
		linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0) 14%, rgba(0, 0, 0, 0) 86%, rgba(0, 0, 0, 0.1)),
		linear-gradient(rgba(60, 40, 30, 0.08), rgba(60, 40, 30, 0.08)),
		repeating-linear-gradient(90deg, #fffdf9 0 1px, #e6dbcf 1px 2px);
}
.szene__book--schnitt .szene__book-pages {
	background:
		linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0, rgba(0, 0, 0, 0) 8%, rgba(0, 0, 0, 0) 88%, rgba(0, 0, 0, 0.3) 100%),
		linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0) 14%, rgba(0, 0, 0, 0) 86%, rgba(0, 0, 0, 0.1)),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0 1px, rgba(0, 0, 0, 0.06) 1px 2px),
		var(--schnitt);
}
/* Farbschnitt als Bild: Motiv klar zeigen wie im Verlags-Mockup – keine Papierlinien, nur ein Hauch Schatten */
.szene__book--bild .szene__book-pages {
	top: 0;
	height: 100%;
	background:
		linear-gradient(90deg, rgba(0, 0, 0, 0.14) 0, rgba(0, 0, 0, 0.04) 6%, rgba(0, 0, 0, 0.06) 94%, rgba(0, 0, 0, 0.16) 100%),
		var(--schnitt);
}
/* Vorlage im Querformat: Bild um 90° gedreht auf die Kante legen */
.szene__book--quer .szene__book-pages::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: var(--book-h);
	height: var(--t);
	transform-origin: 0 0;
	transform: rotate(90deg) translateY(-100%);
	background: var(--schnitt-quer) center / 100% 100% no-repeat;
}
.szene__book--kopf .szene__book-pages::before { transform: rotate(-90deg) translateX(-100%); }
.szene__book--quer .szene__book-pages::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.14) 0, rgba(0, 0, 0, 0.04) 6%, rgba(0, 0, 0, 0.06) 94%, rgba(0, 0, 0, 0.16) 100%);
}

/* Beim Überfahren der Karte dreht sich das Buch weiter – der Farbschnitt wird größer sichtbar */
.release:hover .szene__book,
.szene:hover .szene__book { transform: perspective(160em) rotateY(-31deg); }
.release:hover .szene__reader,
.szene:hover .szene__reader { transform: translateY(-0.3em); }
.release:hover .szene__phone,
.szene:hover .szene__phone { transform: translateY(-0.25em) rotate(-1.5deg); }

/* Größen je Platz */
@media (max-width: 379px) {
	.szene { font-size: 9px; }
}
@media (min-width: 900px) {
	.releases__grid .szene { font-size: 10.5px; }
	.releases__grid--single .szene { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
	.szene__reader,
	.szene__phone,
	.szene__book { transition: none; }
}

/* Eigenes Bild statt Szene (Feld „Eigenes Bild für ‚Neu & bald‘“ am Buch) */
.release__scene > .szene--bild {
	position: absolute;
	inset: 0;
	box-sizing: border-box;
	padding: 14px 18px 10px;
}
.szene--bild::after { display: none; }
.szene__bild {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
}


/* ==========================================================================
 * EMMA-ANPASSUNG 02.12. (Kirill) – BITTE BEI THEME-UPDATES ÜBERNEHMEN
 * 3D-Buch wie in Emmas Mockup: keine Seiten/Papierlinien, kein Falz/Glanz auf dem Cover.
 * Die Seitenkante ist eine glatte Fläche mit einem Streifen des Covers, nur leicht dunkler.
 * Verbessert 02.12.: Das Cover bleibt vorn ganz und unverzerrt (keine Figur läuft mehr um die Ecke);
 * die Kante nimmt 10 % vom linken Rand des Covers (Feld „Kante des 3D-Buchs“: links/rechts).
 * ========================================================================== */
.szene__book { --t: calc(var(--book-h) * 0.15); }
.szene__book-front::after { background: none; }
.szene__book-pages,
.szene__book--schnitt .szene__book-pages,
.szene__book--bild .szene__book-pages {
	top: 0;
	height: 100%;
	overflow: hidden;
	background: #e6ddd8;
}
.szene__book--bild .szene__book-pages::before {
	content: "";
	position: absolute;
	inset: 0;
	width: auto;
	height: auto;
	transform: none;
	/* 10 % der Cover-Breite auf der Kante: wirkt in der Schrägansicht etwa so groß wie auf der Vorderseite */
	background: var(--schnitt) left center / calc(var(--t) / 0.1) 100% no-repeat;
}
.szene__book--rechts .szene__book-pages::before { background-position: right center; }
.szene__book--bild .szene__book-pages::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	/* nur leicht dunkler als das Cover (wie im Mockup) + feine helle Kante */
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0, rgba(0, 0, 0, 0.1) 14%, rgba(0, 0, 0, 0.1) 88%, rgba(0, 0, 0, 0.18) 100%);
	box-shadow: inset 1.5px 0 0 rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
 * EMMA-ANPASSUNG 02.12. (3) (Kirill) – BITTE BEI THEME-UPDATES ÜBERNEHMEN
 * Kante = echte Fortsetzung des RECHTEN Cover-Rands (Laub oben wie im Mockup, keine Figur doppelt):
 * das Cover ist vorn auf 1/0.95 verbreitert, die äußersten 5 % laufen auf die Kante weiter.
 * Kante deutlich dunkler + heller Falz → liest sich als Buchrücken, nicht als Seite.
 * (Gilt für alle Bücher; das Feld „Kante des 3D-Buchs“ wird dadurch nicht mehr gebraucht.)
 * ========================================================================== */
.szene__book--bild .szene__book-front > img {
	width: 100%;
	max-width: none;
	object-fit: fill;
	object-position: left center;
}
.szene__book--bild .szene__book-pages::before,
.szene__book--links .szene__book-pages::before,
.szene__book--rechts .szene__book-pages::before {
	transform: none;
	background: var(--schnitt) right center / calc(var(--t) / 0.03) 100% no-repeat;
}
.szene__book--bild .szene__book-pages::after {
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0, rgba(0, 0, 0, 0.3) 18%, rgba(0, 0, 0, 0.24) 80%, rgba(0, 0, 0, 0.34) 100%);
	box-shadow: inset 1.5px 0 0 rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
 * EMMA-ANPASSUNG 02.12. (4) (Kirill) – BITTE BEI THEME-UPDATES ÜBERNEHMEN
 * Startseite „Neu erschienen“: Kurzbeschreibung gekürzt (Handy 4 Zeilen, sonst 6) –
 * der ganze Text steht auf der Buchseite.
 * ========================================================================== */
.release__teaser {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 6;
	line-clamp: 6;
	overflow: hidden;
}
@media (max-width: 700px) {
	.release__teaser {
		-webkit-line-clamp: 4;
		line-clamp: 4;
	}
}

/* ==========================================================================
 * EMMA-ANPASSUNG 02.12. (5) (Kirill) – BITTE BEI THEME-UPDATES ÜBERNEHMEN
 * 3D-Buch (Startseite): das Buch dreht sich beim Hover/Tippen nicht mehr (alle Geräte); Handy und Leserin bewegen sich weiter.
 * ========================================================================== */
.release:hover .szene__book,
.szene:hover .szene__book { transform: perspective(160em) rotateY(-25deg); }

/* ==========================================================================
 * EMMA-ANPASSUNG 03.12. (10) (Kirill) – BITTE BEI THEME-UPDATES ÜBERNEHMEN
 * Buchfoto (freigestellt) statt 3D-Buch: gleiche Höhe wie das 3D-Buch, steht unten bündig neben dem Reader.
 * ========================================================================== */
.release__scene .szene > img.szene__buchfoto,
.szene__buchfoto {
	position: relative;
	z-index: 1;
	flex: none;
	display: block;
	width: auto;
	max-width: none;
	height: calc(var(--book-h) * 1.06) !important;
	width: auto !important;
	margin-bottom: 0.6em;
	filter: none; /* kein schräger Schatten – Boden-Schatten kommt von .szene::after */
	transition: transform 0.6s ease;
}
.szene__reader + .szene__buchfoto { margin-left: -0.2em; }
.release:hover .szene__buchfoto,
.szene:hover .szene__buchfoto { transform: translateY(-0.3em); }
@media (prefers-reduced-motion: reduce) { .szene__buchfoto { transition: none; } }

/* EMMA-ANPASSUNG 03.12. (11) (Kirill) – BITTE BEI THEME-UPDATES ÜBERNEHMEN
 * Glanz auf dem Reader-Display oben RECHTS statt links (Spiegelung des Verlaufs). */
.szene__screen::after {
	background:
		linear-gradient(238deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.14) 40%, rgba(255, 255, 255, 0) 40.4%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.06));
}

/* ==========================================================================
 * EMMA-ANPASSUNG 04.12. (13) (Kirill) – BITTE BEI THEME-UPDATES ÜBERNEHMEN
 * iPhone/Safari: Reader-Display und Handy-Display bekamen ihre Breite aus dem großen Cover-Bild
 * (aspect-ratio + min-width:auto) → Tablet riesig, Display weiß, Buch abgeschnitten.
 * Breite jetzt fest aus Höhe × Format berechnet, Bild füllt das Display.
 * ========================================================================== */
.szene__screen {
	width: calc(var(--screen-h) * var(--ratio, 2 / 3));
	min-width: 0;
	max-width: none;
}
.szene__phone-screen {
	width: calc(var(--phone-h) * 9 / 19.5);
	min-width: 0;
}
.szene__screen > img,
.szene__phone-screen > img.szene__track { min-width: 0; max-width: 100%; }
.szene__screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
 * EMMA-ANPASSUNG 04.12. (14) (Kirill) – BITTE BEI THEME-UPDATES ÜBERNEHMEN
 * „Neu & bald“: Karten nicht mehr auf gleiche Höhe ziehen – „Coming soon“ ohne Countdown hatte sonst
 * eine große Lücke zwischen Datum und Buttons. Buttons folgen direkt dem Inhalt.
 * ========================================================================== */
.releases__grid { align-items: start; }
.release__actions { margin-top: 20px; }
/* (14b) Computer: linke Karte („Neu erschienen“) so hoch wie „Coming soon“ – Kurzbeschreibung auf 2 Zeilen,
 * Karten wieder gleich hoch. Ganzer Text steht auf der Buchseite. */
@media (min-width: 900px) {
	.releases__grid { align-items: stretch; }
	.startseite .releases .release__teaser { -webkit-line-clamp: 2; line-clamp: 2; }
	.startseite .releases .release__actions { margin-top: auto; padding-top: 20px; }
}

/* EMMA-ANPASSUNG 04.12. (23) (Kirill) – BITTE BEI THEME-UPDATES ÜBERNEHMEN
 * Standbild vor dem Video füllt den ganzen ersten Block wie das Video (Bild-Attribute/Theme-Regel height:auto hatten es auf ~210 px gedrückt). */
.home-hero .hero-bg > img.hero-bg__img { height: 100% !important; width: 100% !important; object-fit: cover !important; }

/* EMMA-ANPASSUNG 04.12. (29) (Kirill) – BITTE BEI THEME-UPDATES ÜBERNEHMEN: Messe-Logo rechts in der Terminliste. */
.event__info { flex: 1 1 auto; }
.event__logo { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 72px; height: 44px; }
.event__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
@media (min-width: 900px) { .event__logo { width: 92px; height: 52px; } }
