/* =========================================================
   MyVolt — "Volt Crimson" Design
   Modernes, editoriale Automotive-Child-Theme zu Wellington.
   ---------------------------------------------------------
   Farbpalette (aus der echten Fahrzeugfarbe abgeleitet):
   --volt-red      #9B1C1C  tiefes Kirschrot (AA 8.15:1)
   --volt-red-2    #A31D24  helleres Rot (Hover auf dunkel)
   --volt-red-deep #6E1014  Weingrot (Hover/text)
   --volt-gold     #B8893A  Antikgold (Bowtie-Bezug, dekorativ)
   --volt-ink      #201B1A  warmes Graphit (Titel/Nav/Footer)
   --volt-paper    #FCFAF7  warmes Papier (Hintergrund)
   ========================================================= */

:root {
	/* --- MyVolt-Tokens --- */
	--volt-red: #9b1c1c;
	--volt-red-2: #a31d24;
	--volt-red-deep: #6e1014;
	--volt-gold: #b8893a;
	--volt-gold-soft: #c9a45b;
	--volt-ink: #201b1a;
	--volt-ink-2: #3a332f;
	--volt-paper: #fcfaf7;
	--volt-card: #ffffff;
	--volt-line: #e9e2d9;
	--volt-shadow: 0 18px 40px -22px rgba(32, 27, 26, 0.35);
	--volt-radius: 14px;

	/* --- Wellington-Variablen übersteuern (Parent liest diese) --- */
	--primary-color: var(--volt-red);
	--secondary-color: var(--volt-red-2);
	--tertiary-color: var(--volt-red-deep);
	--accent-color: var(--volt-gold);
	--highlight-color: #c0392b;
	--light-gray-color: #f4efe9;
	--gray-color: #8a8278;
	--dark-gray-color: var(--volt-ink);
	--text-color: #332d28;
	--medium-text-color: #6b625a;
	--light-text-color: #9a9186;
	--dark-border-color: var(--volt-ink);
	--medium-border-color: #d8d0c4;
	--light-border-color: #eae3d9;
	--link-color: var(--volt-red);
	--link-hover-color: var(--volt-red-deep);
	--button-color: var(--volt-red);
	--button-text-color: #ffffff;
	--button-hover-color: var(--volt-red-deep);
	--button-hover-text-color: #ffffff;
	--page-background-color: var(--volt-paper);
	--sidebar-background-color: transparent;
	--site-title-color: #ffffff;
	--site-title-hover-color: var(--volt-gold-soft);
	--navi-background-color: var(--volt-ink);
	--navi-color: #f3ede6;
	--navi-hover-color: #ffffff;
	--navi-current-color: rgba(201, 164, 91, 0.14);
	--title-color: var(--volt-ink);
	--title-hover-color: var(--volt-red);
	--meta-background-color: #efe8de;
	--widget-title-color: var(--volt-ink);
	--footer-background-color: #1a1412;
	--footer-text-color: #f3ede6;
	--footer-link-hover-color: var(--volt-gold-soft);

	--text-font: "Gudea", system-ui, -apple-system, sans-serif;
	--title-font: "Magra", system-ui, sans-serif;
	--navi-font: "Magra", system-ui, sans-serif;
	--widget-title-font: "Magra", system-ui, sans-serif;
	--title-font-weight: bold;
	--text-line-height: 1.7;
}

/* ================= BASE ================= */
body {
	background-color: var(--volt-paper);
	color: var(--text-color);
	-webkit-font-smoothing: antialiased;
}
::selection {
	background: var(--volt-red);
	color: #fff;
}
a {
	transition: color 0.18s ease;
}

/* ================= BREITERE LAYOUT-SPALTE =================
   Wellington begrenzt `.site` auf 1280px → auf großen Screens
   bleibt rechts/links viel leerer Raum und die Lesespalte wirkt
   schmal. Wir öffnen die maximale Breite und geben dem Header
   (Titel + Fahrzeugbild) Außenluft nach links und rechts. */
.site {
	max-width: 1400px;
}
@media (min-width: 1000px) {
	.header-main {
		padding-left: 4.5em;
		padding-right: 4.5em;
	}
	.content-area,
	.sidebar {
		padding-left: 4em;
		padding-right: 4em;
	}
}
.header-widget {
	margin: 0.5em 1em 0.25em 1.5em;
}

/* ================= HEADER (dunkle Automotive-Sektion) ================= */
.site-header {
	/* !important: überschreibt den WP-Custom-Header (altes header.jpg),
	   der sonst als Hintergrundbild über dem Verlauf liegt */
	background-color: #1a0e0d !important;
	background-image:
		radial-gradient(130% 200% at 88% -25%, rgba(163, 29, 36, 0.5), transparent 55%),
		radial-gradient(90% 180% at -8% 130%, rgba(110, 16, 20, 0.55), transparent 60%),
		linear-gradient(135deg, #2a1513 0%, #1a0e0d 70%) !important;
	border-bottom: 3px solid var(--volt-red-2);
}
.header-main {
	padding-top: 30px;
	padding-bottom: 24px;
}
.site-branding {
	padding: 6px 0;
	position: relative;
}
.site-title {
	font-family: var(--title-font);
	font-weight: 700;
	font-size: clamp(1.9rem, 4.4vw, 2.9rem);
	letter-spacing: -0.01em;
	line-height: 1.05;
	margin: 0;
}
.site-title a {
	color: #ffffff;
	text-decoration: none;
}
.site-title a:hover,
.site-title a:active {
	color: var(--volt-gold-soft);
}
.site-description {
	color: rgba(255, 255, 255, 0.66);
	font-size: 0.98rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	margin: 8px 0 0;
}
/* dezente Rot-Gold-Akzentlinie unterm Brand */
.site-branding::after {
	content: "";
	display: block;
	width: 64px;
	height: 3px;
	margin-top: 16px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--volt-red-2), var(--volt-gold));
}
/* Fahrzeugbild (Volt-Header.png) im Header rechts */
.header-widgets {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}
.header-widget {
	margin: 0;
}
.header-widget .widget_media_image img,
.volt-car-logo {
	max-width: 100%;
	height: auto;
	filter: drop-shadow(0 0 22px rgba(184, 137, 58, 0.28)) drop-shadow(0 16px 26px rgba(0, 0, 0, 0.45));
}

/* ================= NAVIGATION ================= */
.primary-navigation-wrap {
	background: rgba(0, 0, 0, 0.30);
	border-top: 1px solid rgba(255, 255, 255, 0.07);
}
#masthead .main-navigation ul a {
	letter-spacing: 0.03em;
	padding: 1.2em 1.4em;
	border-radius: 4px;
	transition: background-color 0.22s ease, color 0.22s ease,
		box-shadow 0.22s ease, transform 0.22s ease;
}
/* Eckiger Block-Hover: ganze Menü-Zelle füllt sich Rot (deutlich, kaum transparent) */
#masthead .main-navigation ul a:hover,
#masthead .main-navigation ul a:active,
#masthead .main-navigation ul a:focus {
	background: rgba(155, 28, 28, 0.55);
	color: #fff;
	box-shadow: 0 8px 18px -8px rgba(155, 28, 28, 0.55);
	transform: translateY(-1px);
}
#masthead .main-navigation ul a:active {
	transform: translateY(0);
	box-shadow: none;
}
#masthead .main-navigation ul a:focus-visible {
	outline: 2px solid var(--volt-gold-soft);
	outline-offset: 2px;
}
/* aktive Seite = fast voll gedeckte Rot-Fläche (sichtbar "hier bist du") */
#masthead .main-navigation ul li.current-menu-item > a,
#masthead .main-navigation ul li.current_page_item > a,
#masthead .main-navigation ul li.current_page_parent > a {
	background: rgba(155, 28, 28, 0.88);
	color: #fff;
}
.menu-toggle {
	color: #fff;
}

/* ================= CONTENT / MAGAZIN-GRID ================= */
.site-content {
	background: transparent;
	padding: 42px 0 56px;
}
#content #primary {
	background: transparent;
}
/* Beitragskarten */
#post-wrapper {
	gap: 26px;
}
.post-wrapper .type-post .entry-title {
	font-size: 1.45rem;
	line-height: 1.22;
	margin: 0 0 8px;
}
.post-column .type-post {
	background: var(--volt-card);
	border: 1px solid var(--volt-line);
	border-radius: var(--volt-radius);
	box-shadow: var(--volt-shadow);
	padding: 26px 26px 24px;
	height: 100%;
	position: relative;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
	overflow: hidden;
}
/* rote Akzentkante oben an der Karte */
.post-column .type-post::before {
	content: "";
	position: absolute;
	inset: 0 auto auto 0;
	width: 100%;
	height: 4px;
	background: linear-gradient(90deg, var(--volt-red), var(--volt-gold));
	opacity: 0.9;
}
.post-column .type-post:hover {
	transform: translateY(-5px);
	box-shadow: 0 26px 46px -22px rgba(32, 27, 26, 0.45);
	border-color: #d7cbbd;
}
.post-column .type-post .wp-post-image {
	border-radius: 10px 10px 0 0;
	margin: -26px -26px 20px;
	width: calc(100% + 52px);
	max-width: calc(100% + 52px);
}

/* Meta + Kategorien */
.post-column .type-post .entry-meta,
.entry-meta {
	color: var(--medium-text-color);
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 10px;
}
.entry-meta a {
	color: var(--volt-red);
}

/* Kategorie-Pill am Beitragsende */
.entry-categories .meta-categories a,
.entry-tags .meta-tags a {
	background: var(--volt-red);
	color: #fff !important;
	border-radius: 999px;
	padding: 0.35em 1em;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.entry-categories .meta-categories a:hover {
	background: var(--volt-red-deep);
}

/* Inhalts-Links */
.entry-content a {
	color: var(--volt-red);
	text-decoration: underline;
	text-decoration-color: rgba(155, 28, 28, 0.35);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.18s ease, background-color 0.18s ease,
		text-decoration-color 0.18s ease, text-decoration-thickness 0.18s ease;
}
.entry-content a:hover {
	color: #201b1a;
	background: rgba(155, 28, 28, 0.12);
	border-radius: 3px;
	text-decoration-color: var(--volt-gold);
	text-decoration-thickness: 2px;
}

/* Mehr-Link als elegante Pille */
.more-link {
	display: inline-block;
	margin-top: 12px;
	background: transparent;
	color: var(--volt-red) !important;
	border: 1.5px solid var(--volt-red);
	border-radius: 999px;
	padding: 0.4em 1.2em;
	font-weight: 700;
	font-size: 0.85rem;
	transition: background 0.2s ease, color 0.2s ease;
}
.more-link:hover {
	background: var(--volt-red);
	color: #fff !important;
}

/* ================= SIDEBAR ================= */
.sidebar.widget-area .widget {
	background: #fff;
	border: 1px solid var(--volt-line);
	border-radius: var(--volt-radius);
	padding: 22px 22px 8px;
	margin-bottom: 24px;
	box-shadow: var(--volt-shadow);
}
.sidebar .widget-title,
.sidebar h1, .sidebar h2, .sidebar h3, .sidebar h4,
.widget .widget-title {
	font-family: var(--widget-title-font);
	color: var(--volt-ink);
	position: relative;
	padding-bottom: 12px;
	margin-bottom: 16px;
}
.widget .widget-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 36px;
	height: 3px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--volt-red), var(--volt-gold));
}

.sidebar.widget-area .widget a {
	color: var(--volt-red);
	text-decoration: none;
	transition: color 0.18s ease, background-color 0.18s ease,
		text-decoration-color 0.18s ease;
}
/* gleicher kräftiger Hover wie in Beiträgen (deckt rpwe/Letzte Beiträge, Kategorien …) */
.sidebar.widget-area .widget a:hover,
.sidebar.widget-area .widget a:active {
	color: #201b1a;
	background: rgba(155, 28, 28, 0.12);
	border-radius: 3px;
	text-decoration: underline;
	text-decoration-color: var(--volt-gold);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

/* ================= PAGINATION ================= */
.pagination .page-numbers,
.pagination .nav-links .page-numbers {
	background: #fff;
	border: 1px solid var(--volt-line);
	color: var(--volt-ink);
	border-radius: 999px;
	padding: 0.45em 0.9em;
	margin-right: 6px;
}
.pagination .page-numbers.current {
	background: var(--volt-red);
	border-color: var(--volt-red);
	color: #fff;
}
.pagination .page-numbers:hover {
	background: var(--volt-red-deep);
	border-color: var(--volt-red-deep);
	color: #fff;
}

/* ================= BEITRAG-NAVIGATION ================= */
.post-navigation a {
	color: var(--volt-red);
	font-weight: 700;
}
.post-navigation a:hover {
	color: var(--volt-red-deep);
}

/* ================= FOOTER ================= */
.site-footer {
	padding: 34px 0 30px;
}
.site-footer a {
	color: var(--volt-gold-soft);
}
.site-footer .credit-link {
	opacity: 0.85;
	font-size: 0.9rem;
}

/* ================= SCROLL-REVEAL (fail-safe) ================= */
html.js-reveal .reveal {
	opacity: 0;
	transform: translateY(22px);
}
html.js-reveal .reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (prefers-reduced-motion: reduce) {
	html.js-reveal .reveal {
		opacity: 1;
		transform: none;
	}
	* {
		transition: none !important;
		animation: none !important;
	}
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
	.header-widgets {
		justify-content: flex-start;
		margin-top: 8px;
	}
	.header-widget .widget_media_image img {
		max-width: 240px;
	}
	.post-wrapper .type-post .entry-title {
		font-size: 1.25rem;
	}
}
/* Mobile Menü — Parent togglet `toggled-on` selbst */
@media (max-width: 60em) {
	.main-navigation {
		display: none;
	}
	.main-navigation.toggled-on {
		display: block;
	}
}
