/*
 Theme Name:   Al Schmidt Noir (Bricks Child)
 Theme URI:    https://alschmidtnoir.com/
 Description:  Child Theme für Bricks auf alschmidtnoir.com. Inhalte und Gestaltung werden in Bricks gepflegt; hier liegt nur, was Bricks selbst nicht abbildet: der Beitragstyp "Novels" (URL /novel/…), das Feld für die Buchseiten, der Episoden-Leser [asv_book_reader], das Newsletter-Formular [asv_newsletter_form] und das Farbschema.
 Author:       Stefan Bihl
 Author URI:   https://www.b-om.de/
 Template:     bricks
 Version:      1.3.0
 Requires PHP: 7.4
 Text Domain:  bricks
*/

/*
 * Typografie und Textfarben stehen im Bricks-Theme-Stil "Al Schmidt Noir".
 * Hier: Seitenhintergrund und alles, was der Theme-Stil nicht abbildet.
 * Der Leser hat sein eigenes Stylesheet (assets/reader.css), das nur auf Novel-Seiten geladen wird.
 *
 * Helles Design (weißer Hintergrund, Ziegelrot, gelber Newsletter-Block), seit 4.12.2026 wieder aktiv.
 * Die dunkle Fassung liegt im Projekt unter backup/dark-design-2026-12-04/.
 */
:root {
	--asv-bg: #fff;             /* Seitenhintergrund */
	--asv-line: #e5e5e5;        /* feine Trennlinien */
	--asv-text: #242424;        /* Fließtext */
	--asv-head: #242424;        /* Überschriften */
	--asv-footer: #080004;      /* Fußzeilen-Links */
	--asv-accent: #a5311f;      /* Ziegelrot */
	--asv-accent-hover: #83100d;
}

html, body { background: var(--asv-bg); color: var(--asv-text); }
a:hover { color: var(--asv-accent-hover); }

/* Absätze wie im alten Layout (Enfold: 0.85em) */
.brxe-text p { margin-block: .85em; }
.brxe-text > :first-child { margin-top: 0; }
.brxe-text > :last-child { margin-bottom: 0; }
.brxe-text h2 { margin-top: 1.5em; }
.brxe-text h3, .brxe-text h4 { margin-top: 1.2em; }
.brxe-text ul { margin: 0 0 20px 7px; padding-left: 19px; }

/* Kurze rote Trennlinie zwischen den Abschnitten der Startseite */
.asv-rule { width: 64px; height: 2px; background: var(--asv-accent); border: 0; }

/* Startseite: Novels als Cover-Kacheln (Beitragsbild = erste Buchseite) */
.asv-novel-grid { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 28px; width: 100%; }
@media (max-width: 991px) { .asv-novel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 478px) { .asv-novel-grid { gap: 24px 16px; } }
.asv-novel-card { display: flex; flex-direction: column; align-items: center; gap: 14px; text-decoration: none; color: var(--asv-head) !important; }
.asv-novel-card img {
	width: 100%; aspect-ratio: 700 / 1082; object-fit: cover; display: block; border-radius: 3px;
	background: #f4f4f4; box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 6px 20px rgba(0, 0, 0, .1);
	transition: transform .25s ease, box-shadow .25s ease;
}
.asv-novel-card:hover img, .asv-novel-card:focus-visible img {
	transform: translateY(-4px);
	box-shadow: 0 2px 6px rgba(0, 0, 0, .14), 0 12px 30px rgba(0, 0, 0, .16);
}
.asv-novel-card h3 {
	font-size: 19px !important; line-height: 1.35 !important; margin: 0 !important;
	color: var(--asv-accent) !important; text-align: center; text-wrap: balance; transition: color .2s;
}
.asv-novel-card:hover h3 { color: var(--asv-accent-hover) !important; text-decoration: underline; }
@media (max-width: 478px) { .asv-novel-card h3 { font-size: 16px !important; } }
@media (prefers-reduced-motion: reduce) { .asv-novel-card img { transition: none; } .asv-novel-card:hover img { transform: none; } }

/* Startseite: deutsche Romane */
.asv-german-novels__cover { box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 8px 28px rgba(0, 0, 0, .12); border-radius: 3px; }

/* Newsletter-Formular [asv_newsletter_form] im gelben Footer-Block */
.asv-newsletter { display: block; margin: 0; }
.asv-newsletter__label { display: block; font-size: .92em; font-weight: 700; color: var(--asv-accent); line-height: 1.8; }
.asv-newsletter__input {
	display: block; width: 100%; box-sizing: border-box; margin: 2px 0 20px; padding: 8px 6px;
	font: inherit; line-height: 1.5; color: var(--asv-text); background: #ebebeb;
	border: 1px solid #ebebeb; border-radius: 5px;
}
.asv-newsletter__input:focus { outline: 2px solid var(--asv-accent); outline-offset: 1px; background: #fff; }
.asv-newsletter__hp { position: absolute; left: -5000px; }
.asv-newsletter__btn {
	display: inline-block; padding: 9px 22px; font: inherit; font-size: 16px; line-height: 1.6;
	color: #fff; background: var(--asv-accent); border: 0; border-radius: 5px; cursor: pointer; transition: background-color .2s;
}
.asv-newsletter__btn:hover, .asv-newsletter__btn:focus-visible { background: var(--asv-accent-hover); }

/* Footer: Links ohne Unterstreichung, Trennstrich zwischen Site Notice und Privacy Policy */
.asv-footer a { color: var(--asv-footer); text-decoration: none; }
.asv-footer a:hover { color: var(--asv-accent); }
.asv-legal > * + * { border-left: 1px solid #ccc; padding-left: 10px; margin-left: 10px; }

/* Novel-Seiten: schmalere Spalte wie früher (700 px) */
.single-portfolio .asv-footer > .brxe-container { width: 700px; }

/* "back" unter dem Leser, "Home" über den Rechtstexten */
.asv-back { display: inline-flex; align-items: center; gap: 6px; color: var(--asv-accent); text-decoration: none; }
.asv-back::before { content: ""; width: 8px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-right: 2px; }
.asv-back:hover { text-decoration: underline; }
