/*
 * Schnurrbartfritz – neue Homepage. Baut auf den Tokens aus sbf.css auf.
 * Nur auf der Homepage geladen.
 */

/* Theme-Rahmen auf der Homepage zurücknehmen: volle Breite, kein Seitentitel. */
.sbf-full .entry-header, .sbf-full .page-title { display: none; }
.sbf-full .content-container.site-container,
.sbf-full .site-main, .sbf-full .content-area { max-width: none; padding: 0; margin: 0; }
.sbf-full .entry-content-wrap, .sbf-full .entry.content-bg { padding: 0 !important; background: transparent !important; box-shadow: none !important; }
.sbf-full .content-wrap, .sbf-full .entry-content { margin: 0 !important; }
.sbf-full #primary { margin: 0; }

.sbf-homepage { font-family: var(--sbf-font); color: var(--sbf-ink); overflow-x: hidden; }
.sbf-homepage h2, .sbf-homepage h3 { font-family: var(--sbf-font); line-height: 1.2; }
.sbf-hp-wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--sbf-space); box-sizing: border-box; }
.sbf-hp-narrow { max-width: 760px; }
.sbf-hp-section { padding: clamp(48px, 8vw, 96px) 0; position: relative; }
.sbf-hp-section h2 { text-align: center; font-size: clamp(1.8rem, 4.5vw, 2.6rem); font-weight: 900; color: var(--sbf-night); margin: 0 0 18px; }
.sbf-hp-lead { text-align: center; font-size: 1.15rem; color: var(--sbf-muted); max-width: 680px; margin: 0 auto 36px; }
.sbf-btn-light { background: transparent; color: var(--sbf-cream) !important; border-color: var(--sbf-cream); }
.sbf-btn-light:hover { background: rgba(255, 248, 236, .12); }
.sbf-btn-big { font-size: 1.25rem; padding: .9em 2em; }

/* ---------- Sternenhimmel (reines CSS, keine Bilder) ---------- */
.sbf-hp-stars {
	position: absolute; inset: 0; pointer-events: none; opacity: .9;
	background-image:
		radial-gradient(2px 2px at 8% 18%, #fff 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 22% 64%, #ffe9a8 50%, transparent 51%),
		radial-gradient(2px 2px at 37% 12%, #fff 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 48% 82%, #fff 50%, transparent 51%),
		radial-gradient(2.5px 2.5px at 61% 28%, #ffd76a 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 73% 70%, #fff 50%, transparent 51%),
		radial-gradient(2px 2px at 86% 16%, #fff 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 93% 52%, #ffe9a8 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 4% 88%, #fff 50%, transparent 51%),
		radial-gradient(2px 2px at 30% 40%, #fff 50%, transparent 51%);
	animation: sbf-twinkle 6s ease-in-out infinite alternate;
}
@keyframes sbf-twinkle { from { opacity: .55; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sbf-hp-stars { animation: none; } }

/* ---------- Hero ---------- */
.sbf-hp-hero {
	position: relative; color: var(--sbf-cream);
	background: radial-gradient(ellipse at 70% 40%, #2a4cc4 0%, var(--sbf-night) 45%, var(--sbf-night-deep) 100%);
	padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 6vw, 64px);
}
.sbf-hp-hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: center; }
.sbf-hp-logo { display: block; width: min(420px, 90%); height: auto; margin: 0 0 18px; }
.sbf-hp-seo { font-family: var(--sbf-font); font-size: clamp(.95rem, 2vw, 1.1rem); font-weight: 800; letter-spacing: .02em; line-height: 1.35; margin: 0 0 10px; color: var(--sbf-gold); }
.sbf-hp-hello { font-size: clamp(2rem, 5.5vw, 3.4rem); font-weight: 900; line-height: 1.1; margin: 0 0 8px; color: #fff; }
.sbf-hp-tagline { font-size: clamp(1.25rem, 3vw, 1.7rem); font-weight: 800; color: var(--sbf-gold); margin: 0 0 18px; }
.sbf-hp-intro { font-size: 1.12rem; line-height: 1.6; max-width: 560px; margin: 0 0 22px; color: #e9ecff; }
.sbf-hp-claim {
	display: inline-block; margin: 18px 0 34px; padding: 0;
	color: var(--sbf-gold); font-weight: 900; font-size: clamp(1.4rem, 3.2vw, 1.75rem); line-height: 1.2;
	transform: rotate(-6deg); transform-origin: center; text-shadow: 0 3px 10px rgba(0, 0, 0, .35);
}
.sbf-hp-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.sbf-hp-hero-figure { text-align: center; }
.sbf-hp-figure { width: 100%; max-width: 460px; height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); animation: sbf-float 5s ease-in-out infinite; }
@keyframes sbf-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .sbf-hp-figure { animation: none; } }

@media (max-width: 760px) {
	.sbf-hp-hero-grid { grid-template-columns: 1fr; text-align: center; }
	.sbf-hp-hero-figure { order: -1; }
	.sbf-hp-figure { max-width: 260px; }
	.sbf-hp-logo { margin: 0 auto 14px; width: min(320px, 85%); }
	.sbf-hp-intro { margin-left: auto; margin-right: auto; }
	.sbf-hp-buttons { justify-content: center; }
}

/* ---------- Warum besonders ---------- */
.sbf-hp-why { background: var(--sbf-cream); }
.sbf-hp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sbf-hp-card { position: relative; background: #fff; border-radius: var(--sbf-radius); padding: 34px 24px 24px; box-shadow: var(--sbf-shadow); border-top: 6px solid var(--sbf-gold); }
.sbf-hp-card:nth-child(2) { border-top-color: var(--sbf-orange); }
.sbf-hp-card:nth-child(3) { border-top-color: var(--sbf-sky); }
.sbf-hp-card h3 { margin: 0 0 10px; font-size: 1.3rem; color: var(--sbf-night); }
.sbf-hp-card p { margin: 0; line-height: 1.6; }
.sbf-hp-num {
	position: absolute; top: -22px; left: 24px; width: 44px; height: 44px; border-radius: 50%;
	display: grid; place-items: center; background: var(--sbf-night); color: var(--sbf-gold); font-weight: 900; font-size: 1.3rem;
}
/* Dunkle Nachthimmel-Boxen („Meine Zauberregel“, „Gemeinsam lachen und einschlafen“): Symbol oben, Text darunter. */
.sbf-hp-rule, .sbf-hp-ritual-box {
	position: relative; overflow: hidden; margin-top: 40px; text-align: center;
	background: linear-gradient(160deg, #2a4cc4 0%, var(--sbf-night) 45%, var(--sbf-night-deep) 100%); color: #e9ecff;
	border-radius: var(--sbf-radius); padding: clamp(24px, 4vw, 40px);
}
.sbf-hp-ritual-box { margin-top: 0; }
.sbf-hp-rule-text, .sbf-hp-ritual-text { position: relative; max-width: 760px; margin: 0 auto; }
.sbf-hp-rule h3, .sbf-hp-ritual-box h2 { color: var(--sbf-gold); text-align: center; margin: 0 0 12px; font-size: 1.5rem; }
.sbf-hp-rule p { margin: 0 0 10px; line-height: 1.6; }
.sbf-hp-rule p:last-child { margin-bottom: 0; }
/* Zwei geschlossene Augen */
/* Gleiche Größe, Farbe und Leuchten wie der Mond in „Gemeinsam lachen und einschlafen“. */
.sbf-hp-rule-eyes { position: relative; display: flex; gap: 22px; justify-content: center; align-items: center; height: 86px; margin: 0 0 18px; filter: drop-shadow(0 0 18px rgba(255, 215, 106, .55)); }
.sbf-hp-rule-eyes span { width: 64px; height: 32px; border-bottom: 10px solid #ffe9a8; border-radius: 0 0 64px 64px; }
@media (max-width: 760px) {
	.sbf-hp-cards { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Bücher ---------- */
.sbf-hp-books { background: #fff; }
.sbf-hp-feature { display: grid; grid-template-columns: 300px 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; max-width: 900px; margin: 0 auto 56px; }
.sbf-hp-feature-cover img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 20px 40px rgba(11, 20, 64, .35); transform: rotate(-2deg); }
.sbf-hp-feature-text h3 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); color: var(--sbf-night); margin: 4px 0 12px; }
.sbf-hp-feature-text p { line-height: 1.6; }
.sbf-hp-facts { list-style: none; padding: 0; margin: 0 0 18px; }
.sbf-hp-facts li { padding-left: 28px; position: relative; margin-bottom: 6px; font-weight: 700; }
.sbf-hp-facts li::before { content: "★"; position: absolute; left: 4px; color: var(--sbf-gold-deep); }
.sbf-hp-badge { display: inline-block; margin: 0; padding: 6px 16px; border-radius: 999px; background: var(--sbf-cream-2); color: var(--sbf-night); font-weight: 800; }
.sbf-hp-badge-ok { background: #e3f5e8; color: var(--sbf-ok); }
.sbf-hp-series-title { text-align: center; font-size: 1.5rem; color: var(--sbf-night); margin: 0 0 20px; }
.sbf-hp-series {
	list-style: none; margin: 0; padding: 4px 4px 18px; display: grid; grid-auto-flow: column; grid-auto-columns: 170px; gap: 18px;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-color: var(--sbf-gold) transparent;
}
.sbf-hp-series li { scroll-snap-align: start; }
.sbf-hp-series a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.sbf-hp-series a:hover img, .sbf-hp-feature-cover:hover img { transform: translateY(-4px); }
.sbf-hp-series img, .sbf-hp-feature-cover img { transition: transform .15s ease; }
.sbf-hp-feature-cover { display: block; }
.sbf-hp-feature-text h3 a { color: inherit; text-decoration: none; }
.sbf-hp-feature-text h3 a:hover { text-decoration: underline; }
.sbf-hp-more { margin: 18px 0 0; }
.sbf-hp-series img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 8px 18px rgba(11, 20, 64, .2); }
.sbf-hp-series .is-planned img { filter: saturate(.85); }
.sbf-hp-series-no { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--sbf-red); margin-top: 6px; }
.sbf-hp-series-name { font-weight: 800; color: var(--sbf-night); line-height: 1.25; }
.sbf-hp-series-soon { font-size: .85rem; color: var(--sbf-muted); }
.sbf-hp-note { text-align: center; color: var(--sbf-muted); margin: 18px 0 0; font-weight: 600; }
@media (max-width: 760px) {
	.sbf-hp-feature { grid-template-columns: 1fr; text-align: center; }
	.sbf-hp-feature-cover { max-width: 240px; margin: 0 auto; }
	.sbf-hp-facts { display: inline-block; text-align: left; }
	.sbf-hp-series { grid-auto-columns: 42vw; }
}

/* ---------- Testleser ---------- */
.sbf-hp-test { background: var(--sbf-cream-2); }
.sbf-hp-test .sbf-speech { margin-bottom: 24px; }
.sbf-hp-steps { margin: 0 0 8px; padding-left: 22px; line-height: 1.6; }
.sbf-hp-steps li { margin-bottom: 12px; }

/* ---------- Leserclub ---------- */
.sbf-hp-club { background: #fff; }
.sbf-hp-benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sbf-hp-benefits li {
	background: var(--sbf-cream); border-radius: var(--sbf-radius); padding: 22px 22px 22px 64px; position: relative; line-height: 1.5;
}
.sbf-hp-benefits li::before {
	content: "★"; position: absolute; left: 18px; top: 18px; width: 34px; height: 34px; border-radius: 50%;
	display: grid; place-items: center; background: var(--sbf-night); color: var(--sbf-gold); font-size: 1.1rem;
}
.sbf-hp-benefits strong { display: block; color: var(--sbf-night); font-size: 1.1rem; margin-bottom: 4px; }
@media (max-width: 900px) { .sbf-hp-benefits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sbf-hp-benefits { grid-template-columns: 1fr; } }

/* ---------- Abendritual ---------- */
.sbf-hp-ritual { background: var(--sbf-cream); }
.sbf-hp-ritual p { position: relative; line-height: 1.6; margin: 0 0 10px; }
.sbf-hp-ritual-end { font-weight: 800; color: var(--sbf-gold); font-size: 1.2rem; margin: 16px 0 0 !important; }
.sbf-hp-moon {
	position: relative; width: 86px; height: 86px; margin: 0 auto 18px; border-radius: 50%;
	box-shadow: 22px -6px 0 0 #ffe9a8; transform: translateX(-11px) rotate(-20deg);
	filter: drop-shadow(0 0 18px rgba(255, 215, 106, .55));
}

/* ---------- Abschluss ---------- */
.sbf-hp-final { background: var(--sbf-cream); }
.sbf-hp-final-grid { display: grid; grid-template-columns: 340px 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; max-width: 900px; }
.sbf-hp-final-figure { width: 100%; height: auto; }
.sbf-hp-final-text { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 900; color: var(--sbf-night); line-height: 1.25; margin: 0 0 22px; }
.sbf-hp-small { color: var(--sbf-muted); }
.sbf-hp-small a { color: var(--sbf-night); font-weight: 700; }
@media (max-width: 760px) {
	.sbf-hp-final-grid { grid-template-columns: 1fr; text-align: center; }
	.sbf-hp-final-figure { max-width: 220px; margin: 0 auto; }
}
