/*
 * s14.de — Startseite (Redesign ab 08.09.2026)
 *
 * Eigene Datei, weil s14-base.css bei 120 kB liegt und für gezielte Änderungen
 * über GitHub zu groß geworden ist. Alles, was nur die Startseite betrifft,
 * wandert ab jetzt hierher; eingebunden nur bei is_front_page()
 * (inc/enqueue.php). Bestehende Startseiten-Regeln in s14-base.css bleiben
 * dort, bis sie im Zuge des Redesigns abschnittsweise ersetzt werden.
 */

/* =========================================================
 * Startnummer-Knopf ausserhalb des Heros
 *
 * Form wie die Hero-Knöpfe (Entscheid Daniel 01.09.2026): Kanit kursiv,
 * rechts abgesetztes dunkleres Pfeilfeld, 3 px Ecken, kein Leuchtschatten.
 * Die Hero-Fassung hängt an `.s14-hero .s14-btn-startnr .wp-block-button__link`
 * und greift außerhalb nicht — deshalb hier eine freistehende Klasse.
 * ======================================================= */
.s14-startnr {
	position: relative;
	display: inline-block;
	padding: 15px 66px 14px 20px;
	border-radius: 3px;
	font-family: var(--wp--preset--font-family--kanit, Kanit, sans-serif);
	font-style: italic;
	font-weight: 800;
	font-size: 15px;
	line-height: 1;
	letter-spacing: 0.01em;
	overflow: hidden;
	text-decoration: none;
	background: #d81f16;
	color: #fff;
	box-shadow: 0 6px 16px rgba(211, 29, 20, 0.22);
	transition: box-shadow 0.15s ease, transform 0.12s ease, background-color 0.15s ease;
}
.s14-startnr::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 44px;
	background-color: #b3160f;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='14' fill='none'%3E%3Cpath d='M1 7h15M10.5 1.5 16.5 7l-6 5.5' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-position: center;
	background-repeat: no-repeat;
	transition: width 0.15s ease, background-color 0.15s ease;
}
@media (hover: hover) and (pointer: fine) {
	.s14-startnr:hover { box-shadow: 0 10px 22px rgba(211, 29, 20, 0.3); transform: translateY(-1px); color: #fff; }
	.s14-startnr:hover::after { width: 50px; background-color: #9c120c; }
}
.s14-startnr:active { transform: translateY(1px); }

/* =========================================================
 * Aus der Garage — Mitmach-Block rechts neben der Überschrift
 *
 * Der Block stand bis zum Umbau auf den Kurzcode (02.09.2026) als HTML im
 * Seiteninhalt und ging dabei verloren; seit 08.09.2026 rendert ihn der
 * Kurzcode selbst (inc/startseite-garage.php). Der Kopf ist ein Flex-Container
 * mit space-between — der Block ist schlicht das zweite Kind.
 * ======================================================= */
.s14-garage-mitmach {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	max-width: 360px;
}
.s14-garage-mitmach .s14-garage-lead { margin: 0; }
@media (max-width: 720px) {
	.s14-garage-mitmach { max-width: none; }
}

/* =========================================================
 * Marktplatz auf der Startseite — drei Schienen
 *
 * Kurzcode [s14_markt_startseite] (inc/startseite-markt.php): Spotlight ·
 * Fahrzeuge · Teile, je eine waagerecht scrollbare Reihe. Breite 1320 wie
 * die Sektionen, Karten 3:2 mit 3-px-Ecken, Startnummer-Knopf rechts.
 * Entscheid Daniel 08.09.2026. Spotlight-Plakette in Salbei (Entwurf 1,
 * claude_s14-spotlight-vorschlaege.html) — dieselbe Form wie in masse.php.
 * Seit 08.09. nachmittags NICHT mehr auf der Startseite (zu dominant) — die
 * Datenfunktionen liefern das Marktplatz-Flyout; das CSS bleibt fuer eine
 * spaetere Verwendung stehen.
 * ======================================================= */
.s14-mk {
	max-width: 1320px;
	margin: 0 auto;
	padding: 72px 40px 24px;
}
.s14-mk-kopf {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 22px;
}
.s14-mk-rechts {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	max-width: 380px;
}
.s14-mk-rechts .s14-garage-lead { margin: 0; }
.s14-mk-zeile { margin-top: 18px; }
.s14-mk-zkopf {
	display: flex;
	align-items: baseline;
	gap: 14px;
	padding: 10px 0 12px;
	border-top: 1px solid #e0e4e8;
}
.s14-mk-zkopf h3 {
	margin: 0;
	font: italic 800 22px/1 Kanit, sans-serif;
	color: #1d3247;
}
.s14-mk-zkopf > span { font-size: 13px; color: #4a6178; }
.s14-mk-zkopf > a { margin-left: auto; font: 700 13px/1 Inter, sans-serif; color: #e0241b; text-decoration: none; white-space: nowrap; }
.s14-mk-zkopf > a:hover { text-decoration: underline; }
.s14-mk-schiene {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 8px;
	scrollbar-width: thin;
}
.s14-mk-karte {
	flex: 0 0 292px;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e0e4e8;
	border-radius: 3px;
	overflow: hidden;
	text-decoration: none;
	color: #10171f;
	transition: box-shadow .15s ease, transform .12s ease;
}
.s14-mk-karte:hover { box-shadow: 0 14px 32px rgba(16, 23, 31, .12); transform: translateY(-2px); }
.s14-mk-karte:has(.s14-mk-spot) { border-color: #8fb5a4; }
.s14-mk-bildwrap { position: relative; display: block; aspect-ratio: 3 / 2; background: #eef0f2; overflow: hidden; }
.s14-mk-bildwrap picture { display: block; height: 100%; }
.s14-mk-bild, .s14-mk-bildwrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s14-mk-spot, .s14-mk-res {
	position: absolute; left: 10px; top: 10px;
	display: inline-flex; align-items: center; gap: 5px;
	font: 700 10.5px/1 Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase;
	padding: 4px 8px 4px 6px; border-radius: 2px; font-style: normal;
	color: #1d3247; background: rgba(207, 224, 216, .96);
}
.s14-mk-spot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1d3247; }
.s14-mk-res { background: #4a6178; color: #fff; padding-left: 8px; }
.s14-mk-text { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.s14-mk-meta { display: flex; gap: 6px; align-items: center; font: 600 11px/1 Inter, sans-serif; color: #4a6178; }
.s14-mk-meta i { font-style: normal; background: #cfe0d8; color: #1d3247; padding: 4px 7px; border-radius: 2px; }
.s14-mk-titel {
	font: 700 15px/1.3 Inter, sans-serif; color: #10171f;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	min-height: 2.6em;
}
.s14-mk-preis { font: 700 16px/1 Kanit, sans-serif; color: #1d3247; margin-top: 4px; }
@media (max-width: 760px) {
	.s14-mk { padding: 48px 24px 16px; }
	.s14-mk-karte { flex-basis: 240px; }
}

/* =========================================================
 * Redaktion: Themen-Schalter als Reiter statt Pillen (Baustein 5, Entwurf A,
 * Daniel 08.09.2026). Markup bleibt (.s14-red-chips .s14-chip aus
 * inc/redaktion-*.php), nur die Form: 3-px-Ecken, aktiv Navy.
 * ======================================================= */
.s14-red-chips .s14-chip {
	border-radius: 3px;
	border: 1px solid #e0e4e8;
	background: #fff;
	color: #4a6178;
	font: 600 12.5px/1 Inter, sans-serif;
	padding: 9px 12px;
}
.s14-red-chips .s14-chip.aktiv {
	background: #1d3247;
	border-color: #1d3247;
	color: #fff;
}

/* Modellkennung auf Karten (Baustein 2, Entwurf A + Foto E46): weiss kursiv in
 * Kanit auf Anthrazit. Eine Klasse fuer Startseite, Listen und Flyout. */
.s14-code {
	display: inline-block;
	font: italic 800 12px/1 Kanit, sans-serif;
	background: #2b3139;
	color: #fff;
	padding: 5px 8px 4px;
	border-radius: 3px;
	letter-spacing: .01em;
}

/* =========================================================
 * Blaettern in „Aus der Redaktion" (Entwurf B, Daniel 09.09.2026):
 * beide Richtungen in Kanit-Versalien mit rotem Pfeil, rote Unterlinie beim
 * Ueberfahren; in der Mitte die Seiten als Kacheln (aktiv Navy). Markup:
 * patterns/artikel-neueste.php, Kacheln aus assets/js/s14-redaktion.js.
 * Ueberschreibt .s14-red-zug / .s14-red-zurueck aus s14-base.css.
 * ======================================================= */
.s14-red-pager.s14-red-pager-c {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	border-top: 1px solid #e0e4e8;
	padding-top: 22px;
	margin-top: 28px;
}
.s14-red-pager .s14-red-zurueck,
.s14-red-pager .s14-red-zug {
	appearance: none;
	background: none;
	border: 0;
	border-bottom: 3px solid transparent;
	padding: 0 0 10px;
	margin: 0;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font: italic 800 16px/1 Kanit, sans-serif;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: #1d3247;
	transition: border-color .12s ease, color .12s ease;
}
.s14-red-pager .s14-red-zurueck:hover,
.s14-red-pager .s14-red-zug:hover { border-bottom-color: #e0241b; }
.s14-red-pager .s14-red-zug-pfeil { font: 400 18px/1 Inter, sans-serif; color: #e0241b; font-style: normal; }
.s14-red-pager .s14-red-zurueck:disabled,
.s14-red-pager .s14-red-zug:disabled { color: #aeb9c4; cursor: default; }
.s14-red-pager .s14-red-zurueck:disabled .s14-red-zug-pfeil,
.s14-red-pager .s14-red-zug:disabled .s14-red-zug-pfeil { color: #aeb9c4; }
.s14-red-pager .s14-red-zurueck:disabled:hover,
.s14-red-pager .s14-red-zug:disabled:hover { border-bottom-color: transparent; }
.s14-red-seiten { display: flex; gap: 6px; align-items: center; }
.s14-red-seiten:empty { display: none; }
.s14-red-seite {
	appearance: none;
	width: 34px;
	height: 34px;
	border: 1px solid #e0e4e8;
	border-radius: 3px;
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font: italic 800 13px/1 Kanit, sans-serif;
	color: #1d3247;
	cursor: pointer;
	padding: 0;
}
.s14-red-seite:hover { border-color: #1d3247; }
.s14-red-seite.ist-aktiv { background: #1d3247; border-color: #1d3247; color: #fff; cursor: default; }
.s14-red-seite-luecke { color: #4a6178; padding: 0 4px; font: 400 13px/1 Inter, sans-serif; }
@media (max-width: 720px) {
	.s14-red-pager.s14-red-pager-c { flex-wrap: wrap; justify-content: center; }
	.s14-red-seiten { order: 3; width: 100%; justify-content: center; margin-top: 12px; }
	.s14-red-seite { width: 40px; height: 40px; }
	.s14-red-pager .s14-red-zurueck, .s14-red-pager .s14-red-zug { font-size: 14px; }
}

/* Seitenwechsel mit Effekt (Daniel 09.09.2026): waehrend des Ladens gedimmt
 * (.s14-red-lade aus s14-base.css), die neue Seite faehrt aus 14 px ein. */
.s14-magazin { scroll-margin-top: 96px; }
.s14-leitgrid { transition: opacity .32s ease, transform .32s ease; }
.s14-leitgrid.s14-red-neu { opacity: 0; transform: translateY(14px); transition: none; }
@media (prefers-reduced-motion: reduce) { .s14-leitgrid, .s14-leitgrid.s14-red-neu { transition: none; transform: none; opacity: 1; } }
