/*
Theme Name: Spatterlight
Description: Modernes Design für Spatterlight – die Werke von Jack Vance als E-Bücher. Child-Theme von Twenty Twenty-Five.
Author: Spatterlight
Template: twentytwentyfive
Version: 1.0.1
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: spatterlight
*/

/* ---------- Grundlagen ---------- */
:root {
	--sl-line: rgba(255, 255, 255, 0.08);
	--sl-sun: linear-gradient(90deg, #ffb300, #ff7a1a);
}
body {
	-webkit-font-smoothing: antialiased;
	background:
		radial-gradient(900px 500px at 85% -10%, rgba(255, 140, 0, 0.12), transparent 60%),
		radial-gradient(800px 600px at -10% 40%, rgba(63, 196, 214, 0.07), transparent 60%),
		var(--wp--preset--color--base);
	background-attachment: fixed;
}
img { height: auto; }
.wp-site-blocks > * + * { margin-block-start: 0; }
main > .alignfull { margin-block-start: 0 !important; }

.sl-eyebrow {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.75rem !important;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-1);
	margin-bottom: 0.6rem !important;
}
.sl-eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--sl-sun); }
.sl-glow { background: var(--sl-sun); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Kopfzeile ---------- */
.sl-quotebar {
	border-bottom: 1px solid var(--sl-line);
	font-size: 0.875rem;
	color: var(--wp--preset--color--accent-4);
	padding-top: 0.55rem;
	padding-bottom: 0.55rem;
}
.sl-quotebar p { margin: 0; }
.sl-quotebar a { color: var(--wp--preset--color--accent-4); }
.sl-quotebar em { font-family: var(--wp--preset--font-family--literata); color: #d7dbe8; }

.sl-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(7, 9, 15, 0.82);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--sl-line);
	padding-top: 0.65rem;
	padding-bottom: 0.65rem;
}
.admin-bar .sl-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .sl-header { top: 0; position: relative; } }
.sl-brand { gap: 0.75rem !important; align-items: center; }
.sl-logo { margin: 0 !important; }
.sl-logo img { width: 46px; height: 46px; display: block; }
.sl-brand .wp-block-site-title { margin: 0; }
.sl-brand .wp-block-site-title a { background: var(--sl-sun); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sl-brand .wp-block-site-title a:hover { text-decoration: none; }

.sl-nav .wp-block-navigation-item__content { padding: 0.5rem 0.85rem; border-radius: 999px; }
.sl-nav .wp-block-navigation-item__content:hover { background: rgba(255, 255, 255, 0.07); text-decoration: none; }
.sl-nav .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--accent-5) !important;
	color: var(--wp--preset--color--contrast) !important;
	border: 1px solid var(--sl-line) !important;
	border-radius: 14px;
	padding: 0.4rem !important;
	min-width: 300px !important;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.sl-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { border-radius: 8px; }
.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--accent-5) !important;
	color: var(--wp--preset--color--contrast) !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	border: 0 !important; box-shadow: none; min-width: 0 !important; background: transparent !important;
}

/* ---------- Abschnitte ---------- */
.sl-section { padding-top: clamp(56px, 8vw, 80px); padding-bottom: clamp(56px, 8vw, 80px); }
.sl-alt { background: rgba(255, 255, 255, 0.02); border-top: 1px solid var(--sl-line); border-bottom: 1px solid var(--sl-line); }
.sl-head { margin-bottom: 2rem; gap: 1.5rem !important; align-items: flex-end !important; }
.sl-head h2 { margin: 0; }
.sl-head > p { max-width: 480px; margin: 0; color: var(--wp--preset--color--accent-4); }

/* Hero */
.sl-hero { padding-top: clamp(48px, 8vw, 80px); padding-bottom: clamp(40px, 6vw, 64px); }
.sl-hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); margin: 0.3rem 0 1rem; }
.sl-lead { font-size: 1.12rem; color: #c4cadb; max-width: 540px; }
.sl-facts { gap: 10px !important; margin: 1.2rem 0 1.6rem !important; }
.sl-facts p {
	margin: 0;
	padding: 0.35rem 0.8rem;
	border: 1px solid var(--sl-line);
	border-radius: 999px;
	font-size: 0.875rem;
	color: #c4cadb;
	background: rgba(255, 255, 255, 0.03);
}
.sl-pricenote { font-size: 0.85rem !important; color: var(--wp--preset--color--accent-4); margin-top: 1rem !important; }
.sl-pricenote a { color: var(--wp--preset--color--accent-4); text-decoration: underline; }
.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 1px solid rgba(255, 255, 255, 0.22);
	color: var(--wp--preset--color--contrast);
	background: transparent;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { border-color: var(--wp--preset--color--accent-1); }

/* Bildergalerie im Hero: zum Wischen bzw. Scrollen */
.sl-gallery {
	display: flex !important;
	gap: 0 !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	border-radius: 20px;
	border: 1px solid var(--sl-line);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
	aspect-ratio: 4 / 3;
	background: #000;
	scrollbar-width: thin;
}
.sl-gallery > .wp-block-image { flex: 0 0 100%; margin: 0 !important; scroll-snap-align: start; }
.sl-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sl-gallery-hint { font-size: 0.82rem !important; color: var(--wp--preset--color--accent-4); text-align: center; margin-top: 0.6rem !important; }

/* Titelbild-Band (altes Kopfbild) */
.sl-banner {
	height: 150px;
	margin-top: 0 !important;
	background: url(assets/images/spatterlight-header.jpg) center 40% / cover;
	border-top: 1px solid var(--sl-line);
	border-bottom: 1px solid var(--sl-line);
	position: relative;
}
.sl-banner::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, var(--wp--preset--color--base) 0%, transparent 20%, transparent 80%, var(--wp--preset--color--base) 100%);
}

/* Neuestes E-Buch */
.sl-feature {
	background: linear-gradient(135deg, rgba(255, 179, 0, 0.08), rgba(63, 196, 214, 0.05));
	border: 1px solid var(--sl-line);
	border-radius: 24px;
	padding: clamp(24px, 4vw, 40px) !important;
}
.sl-feature .wp-block-image img { border-radius: 6px; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6); }
.sl-feature h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0.2rem 0 0.9rem; }
.sl-feature p { color: #c4cadb; }
.sl-toc { columns: 2; column-gap: 28px; list-style: none; padding: 0 !important; margin: 0 0 1.4rem !important; font-size: 0.92rem; color: var(--wp--preset--color--accent-4); }
.sl-toc li { padding: 3px 0; break-inside: avoid; border-bottom: 1px dashed var(--sl-line); }
.sl-toc li strong { color: var(--wp--preset--color--accent-1); font-weight: 400; }

/* Buchkarten */
.sl-books { gap: 24px !important; }
.sl-book {
	background: var(--wp--preset--color--accent-3);
	border: 1px solid var(--sl-line);
	border-radius: 18px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s, border-color 0.2s;
}
.sl-book:hover { transform: translateY(-4px); border-color: rgba(255, 179, 0, 0.4); }
.sl-book > * { margin-top: 0 !important; }
.sl-book-cover { margin: 0 !important; aspect-ratio: 3 / 4; overflow: hidden; background: #000; }
.sl-book-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.sl-book:hover .sl-book-cover img { transform: scale(1.04); }
.sl-book-body { padding: 1.1rem 1.1rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.sl-book-body > * { margin: 0 0 0.45rem !important; }
.sl-book-body h3 a { color: var(--wp--preset--color--contrast); }
.sl-date { font-size: 0.82rem !important; color: var(--wp--preset--color--accent-1); font-weight: 600; }
.sl-teaser { font-size: 0.9rem !important; color: var(--wp--preset--color--accent-4); }
.sl-book-body .wp-block-buttons { margin-top: auto !important; padding-top: 0.6rem; gap: 8px; }
.sl-book-body .wp-block-button__link { padding: 0.45rem 0.9rem !important; font-size: 0.85rem !important; }

/* Backlist-Wand */
.sl-wall { gap: 14px !important; }
.sl-wall .wp-block-image { margin: 0 !important; }
.sl-wall img {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid var(--sl-line);
	transition: transform 0.2s;
}
.sl-wall img:hover { transform: translateY(-3px) scale(1.03); }
.sl-wall figcaption { font-size: 0.78rem; line-height: 1.3; margin-top: 0.35rem; text-align: left; }

/* Bezugsmöglichkeiten */
.sl-where { gap: 18px !important; }
.sl-where > .wp-block-group {
	background: var(--wp--preset--color--accent-3);
	border: 1px solid var(--sl-line);
	border-radius: 16px;
	padding: 1.4rem !important;
}
.sl-where h3 { font-size: 1.1rem; margin: 0.4rem 0 0.25rem; }
.sl-where p { margin: 0; font-size: 0.92rem; color: var(--wp--preset--color--accent-4); }
.sl-icon { font-size: 1.6rem !important; margin: 0 !important; }

.sl-contact {
	margin-top: 1.75rem !important;
	padding: 1.75rem 2.1rem !important;
	border-radius: 20px;
	background: var(--sl-sun);
	color: #1b0e00;
	align-items: center !important;
}
.sl-contact h3 { margin: 0; color: #1b0e00; font-size: 1.5rem; }
.sl-contact p { margin: 0; }
.sl-contact a { color: #1b0e00; font-weight: 700; font-size: 1.2rem; }

/* Frühere Meldungen (alter Startseiten-Inhalt) */
.sl-archive {
	border: 1px solid var(--sl-line);
	border-radius: 16px;
	background: var(--wp--preset--color--accent-5);
}
.sl-archive > summary {
	cursor: pointer;
	padding: 1.1rem 1.4rem;
	font-family: var(--wp--preset--font-family--manrope);
	font-size: 1.15rem;
	font-weight: 700;
}
.sl-archive[open] > summary { border-bottom: 1px solid var(--sl-line); }
.sl-archive > .wp-block-post-content { padding: 0 1.4rem 1.4rem; }

/* ---------- Unterseiten ---------- */
/* Alte, fest eingetragene Schriftarten (z. B. „Garamond“) in den Seiten durch die Theme-Schrift ersetzen */
.wp-block-post-content [style*="font-family" i] { font-family: inherit !important; }
.sl-page-title { margin-bottom: 1.5rem; }
.wp-block-post-content img { border-radius: 6px; }
.wp-block-post-content .aligncenter { margin-left: auto; margin-right: auto; }

/* ---------- Fußzeile ---------- */
.sl-footer {
	border-top: 1px solid var(--sl-line);
	padding-top: 2rem;
	padding-bottom: 2rem;
	font-size: 0.875rem;
	color: var(--wp--preset--color--accent-4);
}
.sl-footer p { margin: 0; }
.sl-footer a { color: var(--wp--preset--color--accent-4); }

/* ---------- Mobil ---------- */
@media (max-width: 781px) {
	.sl-quotebar .sl-quote { display: none; }
	.sl-feature .wp-block-image { max-width: 240px; }
	.sl-banner { height: 100px; }
}
@media (max-width: 560px) {
	.sl-toc { columns: 1; }
	.sl-logo img { width: 38px; height: 38px; }
	.sl-brand .wp-block-site-title { font-size: 1.1rem; }
}
