/*
Theme Name: Raceskinning RS2
Template: raceskinning-theme
Description: „Werkstatt bei Nacht“ – dunkles Nachtblau, RS1-Blau im Kopf, Orange für Kaufen. Child-Theme von „Raceskinning“: alle Funktionen kommen aus dem Eltern-Theme.
Version: 2.2.2
Requires PHP: 7.4
Text Domain: raceskinning
*/

/* ---------- Farben und Formen (überschreibt die Variablen des Eltern-Themes) ---------- */
:root {
	--rs-bg: #081019; --rs-band: #081019; --rs-card: #0e1824; --rs-card-hover: #13202f;
	--rs-line: rgba(108, 196, 242, .14); --rs-header: #1b80b3; --rs-link: #6cc4f2;
	--rs-text: #d3dde7; --rs-muted: #8fa1b2; --rs-footer: #050b11; --rs-radius: 10px;
	--rs-shape: 10px; --rs-shape-sm: 999px;
	--rs-shadow: 0 1px 0 rgba(255, 255, 255, .02); --rs-shadow-hover: 0 10px 30px rgba(0, 140, 210, .25);
	--rs2-panel-2: #13202f; --rs2-panel-3: #18293b; --rs2-line-2: rgba(108, 196, 242, .26);
	--rs2-blue-a: #006da5; --rs2-blue-b: #00acff; --rs2-white: #f4f8fb;
}
/* Platz der Bildlaufleiste immer freihalten: beim Öffnen der Lightbox (Seite gesperrt) verrutscht sonst alles nach rechts */
html { scrollbar-gutter: stable; }
/* Fußzeile auch auf kurzen Seiten (404, Bestellhistorie …) ganz unten */
body.rs2 { min-height: 100vh; display: flex; flex-direction: column; }
body.rs2 > .site-main { flex: 1 0 auto; width: 100%; }
body.rs2 { background: var(--rs-bg); font-size: 16px; -webkit-font-smoothing: antialiased; }
.rs2 a:hover { text-decoration: none; color: #fff; }
.rs2 h1, .rs2 h2, .rs2 h3, .rs2 h4 { color: var(--rs2-white); font-weight: 700; }
.rs2 .wrap { padding: 0 24px; }
.rs2 .site-main { padding: 24px 0 56px; position: relative; z-index: 1; }

/* ---------- Kopf: RS1-Blau, senkrechter Verlauf, „atmet“ langsam ---------- */
.rs2-top {
	position: sticky; top: 0; z-index: 50; color: #fff;
	background: linear-gradient(to top, var(--rs2-blue-a) 0%, #0a8fd0 55%, var(--rs2-blue-b) 100%);
	box-shadow: 0 6px 24px rgba(0, 110, 170, .35);
}
/* „Atmen“ über eine zweite, hellere Verlaufsschicht, die nur ein- und ausblendet (läuft auf der Grafikkarte, kein Neumalen). */
.rs2-top::before {
	content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1; /* unter dem Inhalt, über dem Grund (.rs2-top bildet eigene Ebene) */
	background: linear-gradient(to top, #0a8fd0 0%, var(--rs2-blue-b) 55%, #3cc3ff 100%);
	opacity: 0; animation: rs2-breathe 14s ease-in-out infinite alternate; will-change: opacity;
}
@keyframes rs2-breathe { from { opacity: 0; } to { opacity: .85; } }
@media (prefers-reduced-motion: reduce) { .rs2-top::before { animation: none; opacity: .4; } }
.admin-bar .rs2-top { top: 32px; }
@media (max-width: 782px) { .admin-bar .rs2-top { top: 46px; } }
@media (max-width: 600px) { .admin-bar .rs2-top { top: 0; } }
.rs2-top .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; height: 78px; }
.rs2-logo { justify-self: start; display: flex; }
.rs2-logo img { height: 44px; width: auto; display: block; }
.rs2-nav { justify-self: center; }
.rs2-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.rs2-nav a { display: block; color: #fff; font: 700 16px/1 var(--rs-head); letter-spacing: .02em; padding: 11px 14px; border-radius: 8px; white-space: nowrap; transition: background-color .15s ease;
	text-shadow: 0 1px 2px rgba(0, 35, 60, .65), 0 0 10px rgba(0, 45, 80, .35); } /* lesbar auch auf dem hellen Teil des Verlaufs */
.rs2-top a:focus-visible, .rs2-top button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.rs2-nav a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.rs2-nav .current-menu-item > a, .rs2-nav .current_page_item > a, .rs2-nav .current_page_parent > a {
	background: rgba(5, 30, 48, .28); color: #fff; box-shadow: inset 0 -3px 0 var(--rs-orange);
}
.rs2-nav-account { display: none; }
.rs2-tools { justify-self: end; display: flex; align-items: center; gap: 10px; }
.rs2-pill {
	white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; cursor: pointer;
	border-radius: 999px; border: 1px solid rgba(255, 255, 255, .45); background: rgba(5, 30, 48, .18);
	color: #fff; font: 600 14px/1 var(--rs-font); text-shadow: 0 1px 2px rgba(0, 35, 60, .6);
}
.rs2-pill:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.rs2-count { background: var(--rs-orange); color: #fff; border-radius: 999px; min-width: 20px; height: 20px; display: grid; place-items: center; font: 700 12px/1 var(--rs-head); }
.rs2-caret { font-size: 11px; opacity: .8; }
.rs2-account { position: relative; }
/* Verwaltungs-Knopf (ersetzt die schwarze WordPress-Leiste): weißer Klecks */
.rs2-admin-btn { width: 44px; padding: 0; justify-content: center; }
.rs2-admin-icon { width: 26px; height: 22px; background: url(assets/klecks.svg) center / contain no-repeat; filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0, 35, 60, .6)); transform: rotate(-8deg); }
.rs2-admin .rs2-menu { min-width: 220px; }
.rs2-menu {
	position: absolute; right: 0; top: calc(100% + 10px); min-width: 200px; padding: 8px; z-index: 60;
	background: var(--rs2-panel-2); border: 1px solid var(--rs2-line-2); border-radius: 10px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.rs2-menu a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--rs-text); font-weight: 600; }
.rs2-menu a:hover { background: rgba(27, 128, 179, .18); color: #fff; }
.rs2-menu hr { border: 0; border-top: 1px solid var(--rs-line); margin: 6px 4px; }
.rs2-burger {
	display: none; width: 42px; height: 38px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .45);
	background: rgba(5, 30, 48, .18); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.rs2-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s ease, opacity .2s ease; }
.rs2-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rs2-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.rs2-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Klecks (aus dem Logo) und Orange-Hauch im Hintergrund ---------- */
.rs2-glow {
	position: fixed; z-index: 0; top: 0; right: 3vw; height: min(64vh, 600px); aspect-ratio: 151 / 124;
	pointer-events: none; transform: translate3d(0, var(--gy, 30vh), 0); will-change: transform;
}
.rs2-glow::before { content: ""; position: absolute; inset: -35%; background: radial-gradient(closest-side, rgba(0, 172, 255, .18), rgba(0, 109, 165, .07) 60%, transparent); }
.rs2-glow::after { content: ""; position: absolute; inset: 0; background: url(assets/klecks.svg) center / contain no-repeat; opacity: .22; transform: rotate(-8deg); }
.rs2-ember {
	position: fixed; z-index: 0; left: -38vw; bottom: -6vh; width: 76vw; height: 90vh; pointer-events: none; opacity: var(--eo, 0);
	background: radial-gradient(ellipse closest-side, rgba(246, 120, 41, .185) 0%, rgba(246, 120, 41, .125) 25%, rgba(246, 120, 41, .065) 50%, rgba(246, 120, 41, .02) 75%, transparent 100%);
}

/* ---------- Kleinteile ---------- */
.rs2-kicker { display: inline-block; font: 600 12px/1 var(--rs-head); letter-spacing: .16em; text-transform: uppercase; color: var(--rs-link); }
.rs2-tag {
	display: inline-block; font: 600 11px/1 var(--rs-head); letter-spacing: .12em; text-transform: uppercase;
	padding: 6px 10px; border-radius: 999px; background: rgba(27, 128, 179, .18); color: var(--rs-link); border: 1px solid rgba(108, 196, 242, .25);
}
.rs2 .button, .rs2 .edd-submit, .rs2 input[type=submit], .rs2 button[type=submit], .rs2 .edd_purchase_submit_wrapper a {
	background: var(--rs-orange) !important; border-radius: 999px !important; box-shadow: 0 6px 18px rgba(246, 120, 41, .25);
	padding: 13px 24px !important; font: 700 15px/1.1 var(--rs-font) !important; text-shadow: none;
}
.rs2 .button:hover, .rs2 .edd-submit:hover, .rs2 input[type=submit]:hover, .rs2 button[type=submit]:hover { background: var(--rs-orange-dark) !important; }
.rs2 .button.rs2-ghost { background: transparent !important; border: 1px solid var(--rs2-line-2) !important; box-shadow: none; }
.rs2 .button.rs2-ghost:hover { border-color: var(--rs-link) !important; }

/* ---------- Startseite ---------- */
.rs2-hero { padding: 64px 0 40px; }
.rs2-hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.rs2-hero h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.12; margin: 16px 0 18px; }
.rs2-hero h1 em { font-style: normal; color: var(--rs-link); }
.rs2-lead { font-size: 18px; color: var(--rs-muted); max-width: 520px; margin: 0 0 28px; }
.rs2-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.rs2-stats { display: flex; gap: 36px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rs-line); }
.rs2-stats b { display: block; font: 700 38px/1 var(--rs-head); color: var(--rs-link); text-shadow: 0 0 24px rgba(0, 172, 255, .35); font-variant-numeric: tabular-nums; }
.rs2-stats span { font-size: 13px; color: var(--rs-muted); text-transform: uppercase; letter-spacing: .1em; }
.rs2-hero-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.rs2-lead-card { position: relative; display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--rs2-line-2); background: var(--rs-card);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.rs2-lead-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .4s ease; }
.rs2-lead-card:hover { border-color: var(--rs-link); }

/* Twitch-Knopf über dem Artikel; „is-live“ setzt das Plugin rs-community, wenn gestreamt wird */
.rs2-twitch {
	align-self: flex-end; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px;
	border-radius: 999px; border: 1px solid var(--rs2-line-2); background: rgba(14, 24, 36, .7); color: #fff !important;
	font: 700 15px/1 var(--rs-head); letter-spacing: .03em; transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.rs2-twitch:hover { border-color: var(--rs-link); background: rgba(0, 109, 165, .25); }
.rs2-twitch-logo { flex: none; color: #fff; }
.rs2-twitch-dot { display: none; width: 10px; height: 10px; border-radius: 50%; background: #e91916; flex: none; }
.rs2-twitch.is-live { border-color: rgba(246, 120, 41, .7); }
.rs2-twitch.is-live .rs2-twitch-dot { display: block; box-shadow: 0 0 0 0 rgba(246, 120, 41, .7); animation: rs2-live-pulse 1.8s ease-out infinite; }
@keyframes rs2-live-pulse {
	0% { box-shadow: 0 0 0 0 rgba(246, 120, 41, .75); }
	70%, 100% { box-shadow: 0 0 0 9px rgba(246, 120, 41, 0); }
}

/* Leicht anheben beim Darüberfahren – wie die Setup-Kacheln */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.rs2-lead-card:hover { transform: translateY(-3px); box-shadow: var(--rs-shadow-hover); }
	.rs2-lead-card:hover img { transform: scale(1.03); }
	a.rs2-post:hover { transform: translateY(-2px); box-shadow: var(--rs-shadow-hover); }
	.rs2-twitch:hover { transform: translateY(-1px); }
}
@media (prefers-reduced-motion: reduce) {
	.rs2-twitch.is-live .rs2-twitch-dot { animation: none; box-shadow: 0 0 0 3px rgba(246, 120, 41, .45); }
}
.rs2-cap { position: absolute; inset: auto 0 0 0; padding: 22px; background: linear-gradient(transparent, rgba(5, 7, 9, .92)); }
.rs2-cap-title { display: block; font: 700 22px/1.2 var(--rs-head); color: #fff; margin: 8px 0 4px; }
.rs2-cap small, .rs2-cap .views { color: var(--rs-muted); }
.rs2-block { padding: 48px 0; position: relative; }

/* „So funktioniert’s“ zwischen Kopfbereich und Setups */
.rs2-steps { padding: 8px 0 0; }
.rs2-steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rs-line); border: 1px solid var(--rs-line); border-radius: 10px; overflow: hidden; }
.rs2-step { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; background: linear-gradient(180deg, var(--rs2-panel-3), var(--rs2-panel-2)); }
.rs2-step-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(0, 109, 165, .25); color: var(--rs-link); box-shadow: inset 0 0 0 1px var(--rs2-line-2); }
.rs2-step-icon .rs-icon { width: 24px; height: 24px; }
.rs2-step b { display: flex; align-items: center; gap: 8px; font: 700 16px/1.3 var(--rs-head); color: #fff; }
.rs2-step-no { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--rs-orange); color: #fff; font: 700 12px/1 var(--rs-head); }
.rs2-step small { display: block; margin-top: 4px; color: var(--rs-muted); font-size: 14px; line-height: 1.45; }

/* Sprachwechsel in der Fußzeile; der schwebende TranslatePress-Kasten verdeckte die Rechtstexte */
.trp-floating-switcher, #trp-floater-ls { display: none !important; }
.rs2-footer .rs2-lang { display: inline-flex; gap: 4px; }
.rs2-footer .rs2-social a { color: #fff; font-weight: 600; }
.rs2-footer .rs2-social a:hover { color: var(--rs-link); }
.rs2-footer .rs2-lang a { padding: 3px 8px; border-radius: 6px; border: 1px solid var(--rs-line); color: var(--rs-muted); font: 600 12px/1.2 var(--rs-head); letter-spacing: .06em; }
.rs2-lang a:hover { color: #fff; border-color: var(--rs-link); }
.rs2-lang a[aria-current] { color: #fff; background: rgba(0, 109, 165, .35); border-color: transparent; }
.rs2-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.rs2 .rs2-head h2, .rs2 .page-title { font-size: 32px; margin: 8px 0 0; display: flex; align-items: center; gap: 12px; }
.rs2 .rs2-head h2::before, .rs2 .page-title::before {
	content: ""; flex: none; width: 40px; height: 33px; background: url(assets/klecks.svg) center / contain no-repeat; transform: rotate(-8deg);
}
.rs2 .page-title { margin: 12px 0 22px; }
.rs2-blog { display: grid; gap: 20px; }
.rs2-blog.has-poll { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.rs2-posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; min-width: 0; }
.rs2-blog.has-poll .rs2-posts { grid-template-columns: minmax(0, 1fr); }
a.rs2-post > span { min-width: 0; }
a.rs2-post { display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: 10px; background: var(--rs-card); border: 1px solid var(--rs-line); color: var(--rs-text);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
a.rs2-post:hover { border-color: var(--rs-link); }
a.rs2-post img { width: 112px; height: 72px; object-fit: cover; border-radius: 8px; flex: none; }
.rs2-post-title { display: block; font: 600 16px/1.35 var(--rs-font); color: #fff; overflow-wrap: break-word; }
.rs2-post small { color: var(--rs-muted); }
/* Mitlaufende Kästen unter dem 78px-Header (+ Admin-Leiste für Angemeldete) */
.rs2-poll, .rs2 .buy-box, .rs2 .edd-blocks__checkout > .edd-blocks__cart { position: sticky; top: 94px; }
.admin-bar .rs2-poll, .admin-bar.rs2 .buy-box, .admin-bar.rs2 .edd-blocks__checkout > .edd-blocks__cart { top: 126px; }

/* ---------- Kacheln ---------- */
.rs2 .cards { gap: 20px; }
.rs2 .card { background: var(--rs-card); border: 1px solid var(--rs-line); border-radius: 10px !important; box-shadow: none; }
.rs2 .card:hover { background: var(--rs-card); border-color: var(--rs-link); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.rs2 .card:hover { transform: translateY(-3px); box-shadow: var(--rs-shadow-hover); }
}
.rs2 .card:focus-within { box-shadow: 0 0 0 2px var(--rs-link); }
.rs2 .card-body { padding: 16px 18px 12px; }
.rs2 .card-title { font: 700 18px/1.25 var(--rs-head); margin: 10px 0 0; }
.rs2 .card-title a { color: #fff; }
.rs2 .card-excerpt { color: var(--rs-muted); margin-top: 8px; }
.rs2 .card-foot { border-top: 1px solid var(--rs-line); }
.rs2 .price { background: var(--rs-orange); border-radius: 999px; font: 700 14px/1 var(--rs-head); padding: 8px 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.rs2 .price.owned { background: linear-gradient(180deg, #0a8fd0, var(--rs2-blue-a)); box-shadow: 0 0 0 1px rgba(108, 196, 242, .5); }
.rs2-data { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; border-top: 1px solid var(--rs2-line-2); margin-top: auto; background: linear-gradient(180deg, rgba(0, 109, 165, .22), rgba(0, 109, 165, .08)); }
.rs2-data div { padding: 12px 11px; border-right: 1px solid var(--rs-line); min-width: 0; }
.rs2-data div:last-child { border-right: 0; }
.rs2-data small { display: block; font: 600 10px/1 var(--rs-head); letter-spacing: .14em; text-transform: uppercase; color: var(--rs-muted); margin-bottom: 6px; }
.rs2-data b { display: block; font: 700 15px/1.2 var(--rs-head); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.rs2-data b.rs2-lap { color: var(--rs-link); }
.rs2-data .rs2-best { background: rgba(108, 196, 242, .16); box-shadow: inset 0 2px 0 var(--rs-link); }
.rs2-data .rs2-best small { color: var(--rs-link); }
.rs2-data .rs2-best b.rs2-lap { color: #fff; }
.rs2 .chips a { background: transparent; border: 1px solid var(--rs2-line-2); border-radius: 999px; box-shadow: none; padding: 7px 14px; font-weight: 600; }
.rs2 .chips .active a, .rs2 .chips a:hover { background: linear-gradient(180deg, #0a8fd0, var(--rs2-blue-a)); border-color: transparent; color: #fff; box-shadow: none; }
.rs2 .pagination .page-numbers { background: var(--rs-card); border: 1px solid var(--rs-line); border-radius: 8px; box-shadow: none; }
.rs2 .pagination .current { background: linear-gradient(180deg, #0a8fd0, var(--rs2-blue-a)); }

/* ---------- Artikel, Seiten, Setup-Seite ---------- */
.rs2 .entry, .rs2 .buy-box { background: var(--rs-card); border: 1px solid var(--rs-line); border-radius: 10px !important; box-shadow: none; }
.rs2 .entry-hero img { border-radius: 10px 10px 0 0; }
.rs2 .entry-content h2, .rs2 .entry-content h3 { color: var(--rs-link); }
.rs2 .entry-content a { text-decoration: underline; text-decoration-color: rgba(108, 196, 242, .45); text-underline-offset: 3px; }
.rs2 .entry-content a:hover { text-decoration-color: currentColor; }
.rs2 .entry-content blockquote { border-left-color: var(--rs-link); background: rgba(0, 109, 165, .12); }
.rs2 .buy-box { border-top: 1px solid var(--rs-line); }
.rs2 .buy-box .big-price { font-size: 40px; }
.rs2 .buy-box .rs-patch-note { border-left-color: var(--rs-orange); }
/* Datenkarte (Plugin „Rennen-Daten“) als Instrumententafel */
/* Flex statt Grid: Die Felder jeder Reihe wachsen auf volle Breite – keine leere Fläche,
   wenn nur wenige Werte da sind (z. B. nur Spiel + Strecke) oder die letzte Reihe nicht voll ist. */
.rs2 .rs-daten { display: flex; flex-wrap: wrap; gap: 1px; background: var(--rs-line); border: 1px solid var(--rs-line); border-radius: 10px; overflow: hidden; margin: 0 0 22px; padding: 0; }
.rs2 .rs-daten-item { flex: 1 1 200px; background: linear-gradient(180deg, var(--rs2-panel-3), var(--rs2-panel-2)); padding: 14px 16px; margin: 0; border: 0; border-radius: 0; }
.rs2 .rs-daten-label { font: 600 10px/1 var(--rs-head); letter-spacing: .14em; text-transform: uppercase; color: var(--rs-muted); }
.rs2 .rs-daten-value { font: 700 17px/1.25 var(--rs-head); color: #fff; overflow-wrap: normal; word-break: normal; hyphens: manual; }
.rs2 .rs-daten-value strong { color: var(--rs-link); font-size: 22px; }
.rs2 .rs-daten-line { display: block; white-space: nowrap; }
/* Rundenzeit als breite Kopfzeile: die wichtigste Zahl zuerst und groß. */
.rs2 .rs-daten-item--lap { flex-basis: 100%; padding: 16px 18px; background: linear-gradient(90deg, rgba(0, 109, 165, .35), rgba(0, 109, 165, .08)); box-shadow: inset 3px 0 0 var(--rs-link); }
.rs2 .rs-daten-item--lap .rs-icon { width: 34px; height: 34px; }
/* Klasse steckt schon im Fahrzeug/Titel („… GT4“) – ohne sie bleiben die Reihen voll (Setup 3+3, Artikel 3). */
.rs2 .rs-daten-item:has(.rs-icon-podium) { display: none; }
.rs2 .rs-daten-item--lap .rs-daten-value strong { font-size: 34px; line-height: 1.1; text-shadow: 0 0 24px rgba(0, 172, 255, .35); font-variant-numeric: tabular-nums; }
/* Rundenzeit-Screenshot im Setup: ungeschnitten, in Originalgröße, mit Rahmen. */
.rs2.single-download .entry-content .gallery { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.rs2.single-download .entry-content .gallery img { height: auto; object-fit: contain; max-width: 100%; border: 1px solid var(--rs2-line-2) !important; border-radius: 8px; }
.rs2.single-download .entry-content .gallery-columns-1 img, .rs2.single-download .entry-content .gallery:has(.gallery-item:only-child) img { width: auto; }
/* Gleiches Aussehen für den neuen Galerie-Block (Setup-Vorlage): nicht zuschneiden, Rahmen, Bildunterschrift darunter statt darüber. */
.rs2.single-download .entry-content .wp-block-gallery.has-nested-images { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 12px; align-items: start; }
.rs2.single-download .entry-content .wp-block-gallery.has-nested-images figure.wp-block-image { width: auto !important; margin: 0 !important; display: block !important; flex: none !important; }
.rs2.single-download .entry-content .wp-block-gallery.has-nested-images figure.wp-block-image::before { display: none !important; }
.rs2.single-download .entry-content .wp-block-gallery.has-nested-images figure.wp-block-image img {
	width: auto !important; max-width: 100% !important; height: auto !important; object-fit: contain !important; flex: none !important;
	border: 1px solid var(--rs2-line-2) !important; border-radius: 8px;
}
.rs2.single-download .entry-content .wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	position: static !important; background: none !important; padding: 0 !important; margin-top: 6px !important; max-height: none !important;
	overflow: visible !important; color: var(--rs-muted) !important; font-size: 13px !important; text-align: left !important; text-shadow: none !important;
}
/* YouTube-Vorschau: Eltern-Theme nutzt --rs-shape-sm (in RS2 = Pille) → hier eigene Ecken und RS2-Farben. */
.rs2 .rs-yt { border-radius: 10px; border: 1px solid var(--rs2-line-2); background: radial-gradient(ellipse at center, #18293b 0%, #0a131d 75%); box-shadow: none; }
.rs2 .rs-yt.is-loaded { border: 0; background: #000; }
/* YouTube-Block des Editors: WordPress reserviert 16:9-Platz (::before) – der Zwei-Klick-Platzhalter bringt eigene Höhe mit → sonst große Lücke. */
.wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper:has(.rs-yt)::before { display: none !important; content: none !important; padding: 0 !important; }
.rs2 .rs-yt-note { background: rgba(5, 11, 17, .6); }
.rs2 .gallery-caption { color: var(--rs-muted); font-size: 13px; margin-top: 6px; }

/* ---------- Kasse ---------- */
.rs2 .edd-blocks-cart { background: var(--rs-card); border: 1px solid var(--rs-line) !important; border-top: 2px solid var(--rs-orange) !important; border-radius: 10px !important; box-shadow: none; }
.rs2 .edd-blocks__checkout fieldset { border-color: var(--rs-line) !important; border-radius: 10px !important; background: rgba(14, 24, 36, .7); }
.rs2 .edd-blocks__checkout legend { color: var(--rs-link); }
.rs2 input[type=text], .rs2 input[type=email], .rs2 input[type=password], .rs2 input[type=search], .rs2 select, .rs2 textarea {
	background: #0a131d; border: 1px solid var(--rs2-line-2); border-radius: 8px; color: #eef3f7;
}
/* EDD färbt Pflichtfelder schwarz (.edd_form input.edd-input.required) – auf dunklem Grund unlesbar */
.rs2 .edd_form input.edd-input, .rs2 .edd_form select.edd-select, .rs2 .edd_form textarea { color: #eef3f7 !important; background-color: #0a131d; }
.rs2 input::placeholder, .rs2 textarea::placeholder { color: #6f8294; opacity: 1; }
.rs2-empty-cta { text-align: center; margin: 18px 0 0; }
.rs2 .rs-widerruf { border-color: var(--rs-orange) !important; background: rgba(14, 24, 36, .7); }

/* ---------- Fuß ---------- */
.rs2-footer { position: relative; z-index: 1; border-top: 3px solid var(--rs2-blue-a); background: rgba(5, 11, 17, .55); padding: 28px 0; color: var(--rs-muted); font-size: 14px; }
.rs2-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.rs2-footer nav, .rs2-footer ul { display: flex; gap: 18px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.rs2-footer a { color: var(--rs-muted); }
.rs2-footer a:hover { color: var(--rs-link); }

/* ---------- Einblenden beim Scrollen ---------- */
.rs2-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.rs2-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Kleinere Bildschirme ---------- */
/* Mittlere Breiten: Kopf etwas kompakter, damit Logo, Menü und Knöpfe nebeneinander passen */
@media (max-width: 1120px) and (min-width: 761px) {
	.rs2-top .wrap { gap: 14px; }
	.rs2-logo img { height: 34px; }
	.rs2-nav a { padding: 10px 9px; font-size: 15px; }
	.rs2-pill { padding: 0 12px; font-size: 13px; }
}
@media (max-width: 980px) {
	.rs2-hero .wrap, .rs2-blog.has-poll { grid-template-columns: 1fr; }
	.rs2 .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rs2-poll, .rs2 .buy-box, .rs2 .edd-blocks__checkout > .edd-blocks__cart { position: static; }
}
@media (max-width: 760px) {
	.rs2-steps-grid { grid-template-columns: minmax(0, 1fr); }
	.rs2-step { padding: 14px 16px; }
	.rs2-top .wrap { grid-template-columns: 1fr auto; height: 64px; gap: 12px; }
	.rs2-logo img { height: 32px; }
	.rs2-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%; justify-self: stretch; flex-direction: column; gap: 2px;
		padding: 10px 16px 16px; background: linear-gradient(180deg, #0a7fbd, var(--rs2-blue-a)); box-shadow: 0 18px 30px rgba(0, 0, 0, .4);
	}
	.rs2-nav.is-open { display: flex; }
	.rs2-nav ul { flex-direction: column; gap: 2px; }
	.rs2-nav a { padding: 14px 12px; font-size: 18px; }
	.rs2-nav-account { display: flex; flex-direction: column; border-top: 1px solid rgba(255, 255, 255, .25); margin-top: 6px; padding-top: 6px; }
	.rs2-account:not(.rs2-admin), .rs2-login { display: none !important; }
	.rs2-admin .rs2-menu { position: fixed; left: 16px; right: 16px; top: 72px; }
	.rs2-burger { display: flex; }
	.rs2 .cards, .rs2-posts { grid-template-columns: minmax(0, 1fr); }
	a.rs2-post img { width: 84px; height: 56px; }
	.rs2-stats { gap: 22px; }
	.rs2-hero { padding-top: 36px; }
	.rs2-glow { right: -20vw; height: 46vh; }
	.rs2 .wrap { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.rs2-top { animation: none; }
	.rs2-reveal { opacity: 1; transform: none; transition: none; }
}
