/*
Theme Name: Stargazer House
Description: Dachmarken-Theme für stargazer house: Logo zentriert, Schreibmaschinen-Effekt, Mond & Sterne mit Parallax, Hell/Dunkel-Modus, Deutsch/Englisch, Neuerscheinungen und „Erscheint bald“, Kauf-Links zu Amazon KDP / Print-on-Demand.
Version: 1.4.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: verlagshaus
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ==========================================================================
   Grundlagen
   ========================================================================== */

/* Schreibmaschinenschriften, lokal im Theme (kein Google-Fonts-Abruf) */
@font-face { font-family: "Courier Prime"; src: url("assets/fonts/courier-prime-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("assets/fonts/courier-prime-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("assets/fonts/courier-prime-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Special Elite"; src: url("assets/fonts/special-elite-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
	--accent: #4f5d6b;
	--ink: #2e3134;
	--paper: #f2f2f2;
	--paper-2: color-mix(in srgb, var(--paper) 92%, var(--ink));
	--muted: color-mix(in srgb, var(--ink) 66%, var(--paper));
	--line: color-mix(in srgb, var(--ink) 16%, var(--paper));
	--card: color-mix(in srgb, var(--paper) 40%, #fff);
	--radius: 6px;
	--shadow: 0 1px 2px rgb(0 0 0 / .06), 0 8px 24px -12px rgb(0 0 0 / .18);
	--shadow-lg: 0 2px 4px rgb(0 0 0 / .06), 0 24px 48px -20px rgb(0 0 0 / .35);
	/* Überschriften: „gestempelte“ Schreibmaschine, Text: gut lesbare Schreibmaschine */
	--serif: "Special Elite", "Courier Prime", "Courier New", Courier, monospace;
	--sans: "Courier Prime", "Courier New", Courier, monospace;
	--wrap: 1200px;
	/* dunkle Flächen (Erscheint bald, Footer) */
	--night: #2e3134;
	--on-night: #f2f2f2;
	--sky-back-opacity: .6;
	--sky-front-opacity: .22;
	color-scheme: light;
}

/* Dunkelmodus – höhere Spezifität als die Customizer-Farben */
:root[data-theme="dark"] {
	--paper: #1c1e20;
	--ink: #e9e7e2;
	--accent: #a9b7c6;
	--card: #25282b;
	--paper-2: #222427;
	--muted: color-mix(in srgb, var(--ink) 62%, var(--paper));
	--line: color-mix(in srgb, var(--ink) 14%, var(--paper));
	--night: #131416;
	--on-night: #e9e7e2;
	--shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -12px rgb(0 0 0 / .6);
	--shadow-lg: 0 2px 4px rgb(0 0 0 / .3), 0 24px 48px -20px rgb(0 0 0 / .8);
	--sky-back-opacity: .7;
	--sky-front-opacity: .3;
	color-scheme: dark;
}

/* weicher Übergang beim Umschalten */
.theme-switching, .theme-switching * { transition: background-color .4s ease, color .4s ease, border-color .4s ease !important; }

/* weiche Seitenwechsel (View Transitions) */
@view-transition { navigation: auto; }


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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	/* leichte Papierkörnung passend zum Stempel-Look des Logos */
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
		var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .2em; }
a:hover { color: var(--accent); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: 0; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }

.screen-reader-text, .skip-link:not(:focus) {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; }

.eyebrow {
	font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	color: var(--accent); margin-bottom: .75em;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46ch; }
.empty { color: var(--muted); font-style: italic; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; gap: .4em;
	padding: .75em 1.3em; border-radius: 999px;
	font-weight: 600; font-size: .95rem; text-decoration: none; line-height: 1.2; white-space: nowrap;
	border: 1.5px solid transparent; transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
button.btn { font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-prefix { font-weight: 400; opacity: .75; }

.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow span { display: inline-block; transition: transform .15s ease; }
.link-arrow:hover span { transform: translateX(3px); }

.badge {
	display: inline-flex; align-items: center; gap: .4em;
	font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
	text-decoration: none; color: color-mix(in srgb, var(--brand) 80%, var(--ink));
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }

/* ==========================================================================
   Header: Logo zentriert, darunter die Navigation
   ========================================================================== */

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--paper) 86%, transparent);
	backdrop-filter: saturate(1.3) blur(12px);
	-webkit-backdrop-filter: saturate(1.3) blur(12px);
	border-bottom: 1px solid var(--line);
	transition: background .4s ease;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.header-top {
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
	padding-top: 22px; padding-bottom: 10px;
	transition: padding .35s ease;
}
.header-side { display: flex; align-items: center; gap: 10px; }
.header-right { justify-content: flex-end; }

.site-brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
.site-logo { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; }
.site-logo-icon img { height: 74px; width: auto; transition: height .35s ease; }
.site-logo-word img { height: 21px; width: auto; transition: height .35s ease; }
.custom-logo { max-height: 90px; width: auto; transition: max-height .35s ease; }

.site-tagline {
	display: flex; align-items: center; justify-content: center; gap: 2px;
	margin: 8px 0 0; height: 1.5em; overflow: hidden;
	font-size: .86rem; letter-spacing: .04em; color: var(--muted);
	transition: height .35s ease, opacity .25s ease, margin .35s ease;
}
.tw-caret {
	display: inline-block; width: .55em; height: 1.05em; margin-left: 2px;
	background: currentColor; vertical-align: -.12em;
	animation: caret 1.05s steps(1) infinite;
}
.tw-caret.is-done { animation: caret-out .6s ease forwards; }
@keyframes caret { 50% { opacity: 0; } }
@keyframes caret-out { to { opacity: 0; } }

/* Beim Scrollen wird der Kopf kompakter */
.site-header.is-scrolled .header-top { padding-top: 8px; padding-bottom: 2px; }
.site-header.is-scrolled .site-logo-icon img { height: 34px; }
.site-header.is-scrolled .site-logo-word img { height: 14px; }
.site-header.is-scrolled .custom-logo { max-height: 44px; }
.site-header.is-scrolled .site-tagline { height: 0; margin-top: 0; opacity: 0; }

/* Logo-Varianten für Hell/Dunkel */
.on-dark { display: none !important; }
:root[data-theme="dark"] .on-dark { display: block !important; }
:root[data-theme="dark"] .on-light { display: none !important; }

/* Navigation */
.site-nav .container { display: flex; justify-content: center; }
.nav-list { display: flex; align-items: center; justify-content: center; gap: 4px; list-style: none; margin: 0; padding: 4px 0 8px; }
.nav-list > li > a,
.dropdown-toggle {
	position: relative; display: inline-flex; align-items: center; gap: 6px;
	padding: 8px 14px;
	font: inherit; font-size: .95rem; text-decoration: none; letter-spacing: .02em;
	color: var(--ink); background: none; border: 0; cursor: pointer;
}
/* Unterstrich, der wie getippt von links hereinläuft */
.nav-list > li > a::after,
.dropdown-toggle::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px;
	background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav-list > li > a:hover::after, .dropdown-toggle:hover::after,
.nav-list > li > a[aria-current="page"]::after, .has-dropdown.is-open .dropdown-toggle::after { transform: scaleX(1); }
.nav-list > li > a:hover, .dropdown-toggle:hover { color: var(--ink); }
.nav-list > li > a[aria-current="page"] { color: var(--accent); }
.has-dropdown.is-current > .dropdown-toggle { color: var(--accent); }

.chev { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
.has-dropdown.is-open .chev { transform: rotate(-135deg) translateY(-1px); }

.has-dropdown { position: relative; }
.dropdown {
	position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(-6px);
	min-width: 320px; padding: 10px; z-index: 60;
	background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.has-dropdown.is-open .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown ul { list-style: none; margin: 0; padding: 0; }
.dropdown a { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 4px; text-decoration: none; }
.dropdown a:hover, .dropdown a[aria-current="page"] { background: var(--paper); color: var(--ink); }
.dropdown .dot { flex: none; width: 12px; height: 12px; margin-top: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
.dropdown strong { display: block; font-weight: 700; }
.dropdown small { display: block; color: var(--muted); font-size: .85rem; }
.dropdown .is-child a { padding-left: 34px; }
.dropdown-all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.dropdown-all a { font-weight: 700; font-size: .9rem; }

/* Sprachumschalter & Hell/Dunkel */
.lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.lang-switch a { padding: 4px 11px; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-decoration: none; color: var(--muted); }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.is-active { background: var(--ink); color: var(--paper); }

.theme-toggle {
	position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0;
	border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); cursor: pointer;
	transition: transform .3s ease, background .3s ease;
}
.theme-toggle:hover { transform: rotate(-18deg); }
.theme-toggle svg { position: absolute; width: 18px; height: 18px; transition: opacity .35s ease, transform .5s cubic-bezier(.3,1.4,.5,1); }
.theme-toggle .icon-sun { opacity: 0; transform: rotate(-90deg) scale(.4); }
:root[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(.4); }
:root[data-theme="dark"] .theme-toggle .icon-sun { opacity: 1; transform: none; }

.nav-toggle { display: none; }
.nav-extras { display: none; }

@media (max-width: 960px) {
	.header-top { padding-top: 12px; padding-bottom: 12px; }
	.site-logo-icon img { height: 50px; }
	.site-logo-word img { height: 16px; }
	.site-tagline { font-size: .78rem; }
	.header-right .lang-switch { display: none; }
	.nav-extras { display: block; padding: 24px 4px 0; }

	.nav-toggle {
		display: inline-grid; place-items: center; width: 40px; height: 40px;
		border: 1px solid var(--line); border-radius: 50%; background: var(--card); cursor: pointer;
	}
	.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
		display: block; width: 16px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s ease;
	}
	.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
	.nav-toggle-bars::before { top: -5px; }
	.nav-toggle-bars::after { top: 5px; }
	.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
	.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
	.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

	/* absolut zum (sticky) Header – fixed würde durch backdrop-filter abgeschnitten */
	.site-nav {
		position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 100%); height: calc(100dvh - 100%); z-index: 49;
		padding: 12px 0 40px; overflow-y: auto;
		background: var(--paper);
		display: none;
	}
	.site-nav.is-open { display: block; animation: nav-in .3s ease; }
	.site-nav .container { display: block; }
	.nav-list { flex-direction: column; align-items: stretch; gap: 2px; padding: 0; }
	.nav-list > li > a, .dropdown-toggle { width: 100%; justify-content: space-between; padding: 16px 4px; font-family: var(--serif); font-size: 1.4rem; border-bottom: 1px solid var(--line); }
	.nav-list > li > a::after, .dropdown-toggle::after { display: none; }
	.dropdown { position: static; transform: none; min-width: 0; box-shadow: none; border: 0; padding: 4px 0; display: none; opacity: 1; visibility: visible; background: transparent; }
	.has-dropdown.is-open .dropdown { display: block; transform: none; }
	body.nav-open { overflow: hidden; }
}
@keyframes nav-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Sektionen
   ========================================================================== */

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section + .section { padding-top: 0; }
/* Bereiche mit eigener Fläche brauchen immer Luft nach oben */
.section + .section-brands, .section + .section-upcoming, .section + .section-related, .section + .section-apparel { padding-top: clamp(56px, 8vw, 96px); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.section-head h2 { margin: 0; }

/* Hero: zentriert, großer Mond, getippte Überschrift */
.hero {
	position: relative; overflow: hidden; text-align: center;
	padding: clamp(72px, 12vw, 150px) 0 clamp(80px, 10vw, 130px);
	min-height: min(78vh, 760px); display: flex; align-items: center;
}
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 6.4vw, 5rem); line-height: 1.08; max-width: 16ch; margin-bottom: .35em; }
.hero .lead { margin-left: auto; margin-right: auto; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.hero-visual { width: 100%; max-width: 760px; margin-top: 56px; }
.hero-image { border-radius: var(--radius); box-shadow: var(--shadow-lg); margin: 0 auto; }

.hero-moon {
	position: absolute; z-index: 1; top: 6%; right: max(4vw, calc(50% - 620px));
	width: clamp(150px, 26vw, 360px); color: var(--ink); opacity: .9; pointer-events: none;
}
.hero-moon svg { width: 100%; height: auto; display: block; filter: url(#vh-stamp); animation: moon-float 9s ease-in-out infinite; }
@keyframes moon-float { 50% { transform: translateY(-14px) rotate(-4deg); } }

.hero-orbit { position: absolute; inset: 0; z-index: 1; pointer-events: none; color: var(--ink); }
.orbit-star { position: absolute; filter: url(#vh-stamp); animation: twinkle 4s ease-in-out infinite; }
.orbit-star.s1 { width: 34px; top: 22%; left: 12%; }
.orbit-star.s2 { width: 20px; top: 64%; left: 20%; animation-delay: -1.3s; }
.orbit-star.s3 { width: 26px; top: 70%; right: 16%; animation-delay: -2.6s; }

.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 26px; transform: translateX(-50%); width: 26px; height: 42px; border: 1.5px solid var(--muted); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--muted); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

.cover-stack { position: relative; height: clamp(300px, 34vw, 420px); }
.stack-item { position: absolute; width: 34%; top: 50%; left: 50%; transition: transform .4s ease; }
.stack-item .cover { box-shadow: var(--shadow-lg); }
.stack-1 { transform: translate(-50%, -50%) rotate(-2deg); z-index: 3; }
.stack-2 { transform: translate(-115%, -46%) rotate(-9deg); z-index: 2; }
.stack-3 { transform: translate(15%, -46%) rotate(8deg); z-index: 1; }
.cover-stack:hover .stack-2 { transform: translate(-125%, -46%) rotate(-12deg); }
.cover-stack:hover .stack-3 { transform: translate(25%, -46%) rotate(11deg); }

@media (max-width: 760px) {
	.hero { min-height: 0; }
	.hero-moon { top: 1%; right: -24px; width: 130px; opacity: .45; }
	.orbit-star.s1 { left: 6%; top: 12%; }
	.scroll-cue { display: none; }
}

/* Laufband */
.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; background: color-mix(in srgb, var(--paper) 55%, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; align-items: center; gap: 28px; padding-right: 28px; }
.ticker span { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2.2rem); white-space: nowrap; }
.ticker svg { width: 20px; height: 20px; flex: none; filter: url(#vh-stamp); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Cover */
.cover, .product-img {
	position: relative; aspect-ratio: 2 / 3; border-radius: 4px 10px 10px 4px; overflow: hidden;
	background: var(--paper-2);
}
.cover::after {
	/* Buchrücken-Andeutung */
	content: ""; position: absolute; inset: 0 auto 0 0; width: 10px;
	background: linear-gradient(90deg, rgb(0 0 0 / .18), rgb(255 255 255 / .12) 40%, transparent);
	pointer-events: none;
}
.cover img, .product-img img { width: 100%; height: 100%; object-fit: cover; }
.book-card-cover, .upcoming-cover, .apparel-card-img { display: block; text-decoration: none; color: inherit; }
.product-img { aspect-ratio: 1; border-radius: var(--radius); }

.is-placeholder {
	display: flex; flex-direction: column; justify-content: space-between; padding: 14% 12%;
	background:
		radial-gradient(circle at 80% 15%, rgb(255 255 255 / .22), transparent 45%),
		var(--brand);
	color: #fff;
}
.placeholder-brand { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.placeholder-title { font-family: var(--serif); font-size: clamp(1rem, 2vw, 1.5rem); line-height: 1.15; font-weight: 400; }

/* Bücher-Grid */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 40px 28px; }
@media (max-width: 520px) {
	.book-grid, .apparel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
	.book-card-title { font-size: 1rem; }
}

.book-card-cover { position: relative; display: block; transition: transform .25s ease; }
.book-card-cover .cover { box-shadow: var(--shadow); transition: box-shadow .25s ease; }
.book-card:hover .book-card-cover { transform: translateY(-4px) rotate(-.6deg); }
.book-card:hover .cover { box-shadow: var(--shadow-lg); }
.book-card-body { padding-top: 16px; }
.book-card-title { font-size: 1.12rem; margin: .35em 0 .2em; }
.book-card-title a { text-decoration: none; }
.book-card-subtitle { font-size: .92rem; color: var(--muted); margin: 0 0 .3em; line-height: 1.4; }
.book-card-date { font-size: .82rem; color: var(--muted); margin: 0; }
.ribbon {
	position: absolute; top: 12px; right: -6px; z-index: 2;
	background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	padding: 4px 10px; border-radius: 4px 0 0 4px; box-shadow: var(--shadow);
}

/* Erscheint bald */
.section-upcoming { background: color-mix(in srgb, var(--night) 90%, transparent); color: var(--on-night); }
.section-upcoming .section-head h2, .section-upcoming .link-arrow { color: var(--on-night); }
.section-upcoming .eyebrow { color: color-mix(in srgb, var(--accent) 70%, #fff); }
.section-upcoming + .section { padding-top: clamp(56px, 8vw, 96px); }
.upcoming-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); gap: 24px; }
.upcoming-card {
	display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: start;
	padding: 22px; border-radius: var(--radius);
	background: color-mix(in srgb, var(--on-night) 7%, var(--night));
	border: 1px solid color-mix(in srgb, var(--on-night) 14%, var(--night));
}
.upcoming-card h3 { font-size: 1.4rem; margin: .3em 0 .2em; }
.upcoming-card h3 a { text-decoration: none; color: var(--on-night); }
.upcoming-card .badge { color: color-mix(in srgb, var(--brand) 55%, #fff); }
.upcoming-date { font-weight: 600; margin-bottom: .6em; }
.upcoming-excerpt { color: color-mix(in srgb, var(--on-night) 70%, var(--night)); font-size: .95rem; }
.countdown { display: inline-flex; align-items: baseline; gap: 6px; margin: 0 0 8px; padding: 4px 12px; border-radius: 999px; background: var(--accent); color: #fff; }
.countdown-num { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; line-height: 1.2; }
.countdown-label { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.upcoming-card .btn-primary { background: var(--on-night); color: var(--night); }
.upcoming-card .btn-primary:hover { background: var(--accent); color: #fff; }
.section-upcoming .container .section-head .link-arrow:hover { color: var(--accent); }

@media (max-width: 520px) {
	.upcoming-card { grid-template-columns: 110px 1fr; gap: 16px; padding: 16px; }
	.upcoming-excerpt { display: none; }
}

/* Marken */
.section-brands { background: color-mix(in srgb, var(--paper-2) 70%, transparent); }
.section-brands + .section, .section-apparel + .section { padding-top: clamp(56px, 8vw, 96px); }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.brand-card {
	position: relative; display: flex; flex-direction: column; gap: 6px;
	padding: 26px; min-height: 260px; border-radius: var(--radius); overflow: hidden;
	background: var(--card); text-decoration: none; color: var(--ink);
	border: 1px solid var(--line); box-shadow: var(--shadow);
	transition: transform .2s ease, box-shadow .2s ease;
}
.brand-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--brand); }
.brand-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.brand-card-type { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.brand-card-mark { margin: 10px 0 8px; min-height: 64px; display: flex; align-items: center; }
.brand-card-mark .brand-logo { max-height: 64px; width: auto; }
.brand-initial {
	display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
	background: color-mix(in srgb, var(--brand) 16%, var(--card)); color: var(--brand);
	font-family: var(--serif); font-size: 1.8rem; font-weight: 400;
}
.brand-card-name { font-family: var(--serif); font-size: 1.45rem; font-weight: 400; line-height: 1.15; }
.brand-card-tagline { color: var(--muted); font-size: .95rem; }
.brand-card-more { margin-top: auto; padding-top: 14px; font-weight: 600; font-size: .9rem; color: var(--brand); }

/* Kleidung */
.apparel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px; }
.apparel-card-img { display: block; }
.apparel-card-img .product-img { box-shadow: var(--shadow); transition: transform .25s ease; }
.apparel-card:hover .product-img { transform: scale(1.02); }
.apparel-card h3 { font-size: 1.1rem; margin: 14px 0 10px; }
.apparel-card h3 a { text-decoration: none; }

/* Über uns */
.section-about { border-top: 1px solid var(--line); }
.about-inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
.about-text { font-size: 1.12rem; }
@media (max-width: 760px) { .about-inner { grid-template-columns: 1fr; gap: 8px; } }

/* Kauf-Buttons */
.buy-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.buy-buttons.is-compact { margin: 12px 0 0; }
.buy-buttons.is-compact .btn { padding: .6em 1.1em; font-size: .88rem; }

/* ==========================================================================
   Seitenköpfe
   ========================================================================== */

.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: .2em; }
.page-hero + .section { padding-top: clamp(40px, 6vw, 64px); }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tabs a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 500; font-size: .92rem; background: var(--card); }
.tabs a:hover { border-color: var(--ink); color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Markenseite */
.brand-hero {
	padding: clamp(56px, 8vw, 104px) 0;
	background:
		radial-gradient(circle at 90% 0%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 55%),
		color-mix(in srgb, var(--brand) 8%, transparent);
	border-bottom: 1px solid var(--line);
}
.brand-hero .eyebrow { color: var(--brand); }
.brand-hero .eyebrow a { color: inherit; }
.brand-hero-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center; }
.brand-hero-logo { justify-self: center; }
.brand-hero-logo img { max-height: 220px; width: auto; }
.brand-desc { max-width: 60ch; margin: 1em 0 1.5em; }
@media (max-width: 760px) { .brand-hero-inner { grid-template-columns: 1fr; } .brand-hero-logo { order: -1; justify-self: start; } .brand-hero-logo img { max-height: 100px; } }

/* Buch-Einzelseite */
.book-single { padding: clamp(40px, 6vw, 80px) 0; }
.book-single-inner { display: grid; grid-template-columns: minmax(240px, 420px) 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.book-single-cover { position: sticky; top: 100px; }
.book-single-cover .cover { box-shadow: var(--shadow-lg); }
.book-single-cover .product-img { box-shadow: var(--shadow-lg); }
.crumbs { display: flex; gap: 8px; font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.book-subtitle { font-family: var(--serif); font-size: 1.3rem; font-style: italic; color: var(--muted); margin-top: -.2em; }
.book-author { font-weight: 600; }
.status-pill { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; background: color-mix(in srgb, var(--accent) 14%, var(--paper)); color: color-mix(in srgb, var(--accent) 80%, var(--ink)); }

.entry-content { font-size: 1.06rem; max-width: 65ch; }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2 { font-size: 1.6rem; margin-top: 1.6em; }
.entry-content blockquote { margin: 1.5em 0; padding-left: 1.2em; border-left: 3px solid var(--brand, var(--accent)); font-family: var(--serif); font-size: 1.2rem; font-style: italic; }

.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0; margin: 36px 0 0; border-top: 1px solid var(--line); }
.facts div { padding: 14px 0; border-bottom: 1px solid var(--line); padding-right: 12px; }
.facts dt { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 500; }

.section-related { background: color-mix(in srgb, var(--paper-2) 70%, transparent); padding-top: clamp(56px, 8vw, 96px) !important; }

@media (max-width: 760px) {
	.book-single-inner { grid-template-columns: 1fr; }
	.book-single-cover { position: static; max-width: 300px; }
	.section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Seiten / Blog */
.page-article .entry-content { padding: 48px 24px 96px; }
.post-thumb { margin-top: 40px; }
.post-thumb img { border-radius: var(--radius); }
.post-list { display: grid; gap: 40px; }
.post-item h2 { font-size: 1.6rem; }
.post-item h2 a { text-decoration: none; }

.pagination { margin-top: 56px; }
.nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; background: var(--card); }
.page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--night); color: color-mix(in srgb, var(--on-night) 75%, var(--night)); padding: 72px 0 28px; margin-top: 0; font-size: .95rem; }
.site-footer a { color: var(--on-night); text-decoration: none; }
.site-footer a:hover { color: color-mix(in srgb, var(--accent) 60%, #fff); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid color-mix(in srgb, var(--on-night) 14%, var(--night)); }
.footer-title { font-family: var(--serif); font-size: 1.6rem; font-weight: 400; color: var(--on-night); margin-bottom: .4em; }
.footer-logo { display: inline-block; margin-bottom: 18px; }
.footer-logo img { width: 170px; height: auto; }
.footer-about p { max-width: 42ch; }
.footer-heading { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--on-night); }
.footer-list, .social, .footer-legal ul { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 8px; }
.social { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.social a { font-weight: 600; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-legal ul { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer .lang-switch { background: transparent; border-color: color-mix(in srgb, var(--on-night) 20%, var(--night)); }
.site-footer .lang-switch a { color: color-mix(in srgb, var(--on-night) 60%, var(--night)); }
.site-footer .lang-switch a.is-active { background: var(--on-night); color: var(--night); }

@media (max-width: 760px) {
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-about { grid-column: 1 / -1; }
}

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

/* WordPress-Kernklassen */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--muted); }

/* ==========================================================================
   Cookie-Hinweis
   ========================================================================== */

.consent {
	position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100;
	max-width: 760px; margin: 0 auto;
	background: var(--card); color: var(--ink);
	border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
	animation: consent-in .25s ease-out;
}
.consent[hidden] { display: none; }
.consent-inner { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; padding: 20px 22px; align-items: start; }
.consent-icon { grid-row: span 2; }
.consent-icon img { width: 46px; height: auto; }
.consent-title { font-family: var(--serif); font-size: 1.25rem; margin: 0 0 .25em; }
.consent-text p { margin: 0; font-size: .92rem; line-height: 1.55; }
.consent-text a { white-space: nowrap; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 10px; }
.consent-actions .btn { padding: .65em 1.2em; font-size: .88rem; }
@keyframes consent-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
	.consent { left: 8px; right: 8px; bottom: 8px; }
	.consent-inner { grid-template-columns: 1fr; padding: 18px; }
	.consent-icon { display: none; }
	.consent-actions { justify-content: stretch; }
	.consent-actions .btn { flex: 1; justify-content: center; }
}

.consent-open { background: none; border: 0; padding: 0; font: inherit; color: var(--on-night); cursor: pointer; text-decoration: underline; text-underline-offset: .2em; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
.consent-open:hover { color: color-mix(in srgb, var(--accent) 60%, #fff); }

/* Eingebettete Inhalte vor der Zustimmung */
.embed-consent { margin: 1.5em 0; }
.embed-consent-box {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
	aspect-ratio: 16 / 9; padding: 24px; border-radius: var(--radius);
	background: var(--paper-2); border: 1px dashed var(--line);
}
.embed-consent-box p { margin: 0; }
.embed-consent-note { font-size: .82rem; color: var(--muted); max-width: 44ch; }
.embed-loaded iframe { max-width: 100%; }

/* ==========================================================================
   Himmel: Mond & Sterne im Stempel-Stil (Parallax, über die ganze Seite)
   ========================================================================== */

.sky-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Zwei Ebenen:
   – hinten: liegt unter dem Inhalt, Text und Karten schieben sich darüber.
   – vorne: schwebt über dem Text, aber so transparent, dass alles lesbar bleibt.
     „difference“ macht die Sterne auf Papier dunkel und auf dunklen Flächen hell. */
.sky { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.sky-back { z-index: 0; color: var(--ink); opacity: var(--sky-back-opacity); }
.sky-front { z-index: 5; color: #fff; mix-blend-mode: difference; opacity: var(--sky-front-opacity); }
.site-main, .site-footer { position: relative; z-index: 1; }
.sky-el { position: absolute; top: 0; left: 0; will-change: transform; }
.sky-el svg { display: block; transform: rotate(var(--rot, 0deg)); filter: url(#vh-stamp); }
.sky-el.is-sparkle svg { animation: twinkle var(--tw-dur, 4s) ease-in-out var(--tw-delay, 0s) infinite; }
.sky-el.is-moon svg { opacity: .8; }
.sky-el.is-dot { border-radius: 50%; background: currentColor; opacity: .7; animation: blink var(--tw-dur, 4s) ease-in-out var(--tw-delay, 0s) infinite; }

@keyframes twinkle {
	0%, 100% { transform: rotate(var(--rot, 0deg)) scale(1); opacity: 1; }
	50% { transform: rotate(calc(var(--rot, 0deg) + 20deg)) scale(.6); opacity: .45; }
}
@keyframes blink { 50% { opacity: .15; } }

.shooting-star {
	position: absolute; width: 160px; height: 2px; border-radius: 2px;
	background: linear-gradient(90deg, currentColor, transparent);
	transform: rotate(-28deg); transform-origin: left center;
	animation: shoot 1.5s ease-out forwards;
}
@keyframes shoot {
	0% { opacity: 0; translate: 0 0; }
	15% { opacity: 1; }
	100% { opacity: 0; translate: -340px 180px; }
}

/* ==========================================================================
   Einblenden beim Scrollen
   ========================================================================== */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--d, 0) * 70ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .brand-card.reveal.is-visible:hover { transform: translateY(-4px); }

/* Buchcover: leichtes 3D-Kippen beim Überfahren */
.book-card-cover { perspective: 900px; }
.book-card:hover .book-card-cover .cover { transform: rotateY(-10deg); }
.book-card-cover .cover { transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease; transform-origin: left center; }

/* Weniger Bewegung, wenn im System gewünscht */
@media (prefers-reduced-motion: reduce) {
	.sky-el svg, .sky-el.is-dot, .hero-moon svg, .orbit-star, .ticker-track, .tw-caret, .scroll-cue span { animation: none !important; }
	.shooting-star { display: none; }
	.js .reveal { opacity: 1; transform: none; }
	@view-transition { navigation: none; }
}

/* ==========================================================================
   Cover in Originalproportionen
   Der Rahmen bleibt 2:3, das Bild steht unten mittig darin wie im Regal –
   quadratische Kinderbücher und Malbücher werden nicht beschnitten.
   ========================================================================== */

.cover.has-img {
	display: flex; align-items: flex-end; justify-content: center;
	background: none; overflow: visible; border-radius: 0;
	box-shadow: none !important;
}
.cover.has-img::after { display: none; }
.cover.has-img img {
	width: auto; height: auto; max-width: 100%; max-height: 100%;
	object-fit: contain; border-radius: 3px 8px 8px 3px;
	box-shadow: var(--shadow);
	transition: box-shadow .25s ease;
}
.book-card:hover .cover.has-img img { box-shadow: var(--shadow-lg); }
.book-single-cover .cover.has-img img, .stack-item .cover.has-img img { box-shadow: var(--shadow-lg); }
.upcoming-cover .cover.has-img { align-items: flex-start; }

/* „Termin folgt“ */
.countdown.is-tba { padding: 6px 12px; }
