/*
Theme Name: Lexrider Child – Racing Team Haiming
Theme URI: https://racingteam-haiming.at
Description: Child-Theme für Racing Team Haiming. Enthält alle projektspezifischen Anpassungen, damit Updates des Eltern-Themes Lexrider gefahrlos eingespielt werden können.
Author: Altinum
Template: lexrider
Version: 1.8.0
Text Domain: lexrider-child
*/

/* Markenfarben Racing Team Haiming */
:root {
	--rth-red: #980a2c;
	--rth-red-dark: #77071f;
	--rth-grey: #c5c7c8;
	--rth-dark: #131313;
}

/* Abdunkelung über dem Seitenkopf-Foto, damit Titel und Breadcrumb lesbar bleiben */
.page-title-bar {
	position: relative;
	background-size: cover;
}
.page-title-bar::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10,10,10,.45) 0%, rgba(10,10,10,.78) 100%);
	pointer-events: none;
}
.page-title-bar > * {
	position: relative;
	z-index: 1;
}

/* ---------------------------------------------------------------
   WooCommerce-Formulare
   Lexrider (2019) kennt den Passwort-Wrapper nicht, den WooCommerce
   seit 4.x für den Anzeigen-Umschalter mitliefert. In der Flex-Zeile
   schrumpft er dadurch auf Inhaltsbreite und der Umschalter wird zu
   einem 16x6-Klotz.
   --------------------------------------------------------------- */
.woocommerce form .form-row .password-input,
.woocommerce-page form .form-row .password-input {
	display: block;
	width: 100%;
	position: relative;
}
.woocommerce form .form-row .password-input input,
.woocommerce-page form .form-row .password-input input {
	width: 100%;
	padding-right: 3rem;
}
.woocommerce form .form-row .show-password-input,
.woocommerce-page form .form-row .show-password-input {
	position: absolute;
	top: 50%;
	right: 1rem;
	transform: translateY(-50%);
	width: 1.5rem;
	height: 1.5rem;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	color: inherit;
	opacity: .55;
}
.woocommerce form .form-row .show-password-input::after,
.woocommerce-page form .form-row .show-password-input::after {
	content: "";
	display: block;
	width: 100%;
	height: 100%;
	background: currentColor;
	-webkit-mask: var(--rth-auge) center / contain no-repeat;
	mask: var(--rth-auge) center / contain no-repeat;
}
.woocommerce form .form-row .show-password-input:hover,
.woocommerce-page form .form-row .show-password-input:hover {
	opacity: 1;
}
.woocommerce form .form-row .show-password-input.display-password::after,
.woocommerce-page form .form-row .show-password-input.display-password::after {
	-webkit-mask-image: var(--rth-auge-zu);
	mask-image: var(--rth-auge-zu);
}

:root {
	--rth-auge: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/></svg>');
	--rth-auge-zu: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/><line x1="3" y1="21" x2="21" y2="3"/></svg>');
}


/* Kontakt-Popup im Header: heller Hintergrund, aber das Theme färbt
   Formulartexte hell – Einwilligungszeile und Hinweise waren unlesbar. */
.contactform-content {
	color: #333;
}
.contactform-content .wpcf7-list-item-label,
.contactform-content .wpcf7-acceptance label,
.contactform-content .wpcf7-not-valid-tip,
.contactform-content .wpcf7-response-output {
	color: #333;
	font-size: .9rem;
	line-height: 1.45;
}
.contactform-content .wpcf7-acceptance .wpcf7-list-item {
	display: flex;
	align-items: flex-start;
	gap: .55rem;
	margin: 0;
}
.contactform-content .wpcf7-not-valid-tip {
	color: #980a2c;
}

/* ---------------------------------------------------------------
   Gutenberg-Blöcke
   Lexrider stammt aus der Elementor-Welt und stylt die Block-Editor-
   Klassen nicht: Buttons blieben grau, Links im Fließtext waren von
   normalem Text nicht zu unterscheiden.
   --------------------------------------------------------------- */
.entry-content .wp-block-button__link {
	background-color: var(--rth-red);
	border: 1px solid var(--rth-red);
	color: #fff;
	border-radius: 0;
	padding: .95rem 2.2rem;
	font-family: "Teko", sans-serif;
	font-size: 1.15rem;
	letter-spacing: .04em;
	text-transform: uppercase;
	line-height: 1.2;
}
.entry-content .wp-block-button__link:hover,
.entry-content .wp-block-button__link:focus {
	background-color: var(--rth-red-dark);
	border-color: var(--rth-red-dark);
	color: #fff;
}
.entry-content .wp-block-button.is-style-outline .wp-block-button__link {
	background: none;
	color: var(--rth-red);
}

.entry-content p a:not(.wp-block-button__link),
.entry-content li a:not(.wp-block-button__link),
.entry-content td a {
	color: var(--rth-red);
	text-decoration: underline;
	text-underline-offset: .18em;
}
.entry-content p a:not(.wp-block-button__link):hover,
.entry-content li a:not(.wp-block-button__link):hover,
.entry-content td a:hover {
	color: #fff;
}

/* Externe Ziele erkennbar machen */
.entry-content a[target="_blank"]:not(.wp-block-button__link)::after {
	content: " ↗";
	font-size: .85em;
	opacity: .7;
}

/* Trennpunkte in der Kopfleiste: Elementors Standard-Widgetabstand von 20px
   unten kippt sie gegenüber dem Text nach oben. */
header .elementor-widget-icon.elementor-widget__width-auto {
	--kit-widget-spacing: 0px;
	margin-bottom: 0;
	align-self: center;
}
header .elementor-widget-icon.elementor-widget__width-auto .elementor-icon-wrapper,
header .elementor-widget-icon.elementor-widget__width-auto .elementor-icon {
	display: flex;
	align-items: center;
	line-height: 1;
}

/* ---------------------------------------------------------------
   Icons
   Das Theme vergibt .fa nur Gewicht 400 (Regular/Brands). Pfeile wie
   angle-up oder chevron-right gibt es in Font Awesome 5 Free nur als
   Solid (900) – ohne diese Zuordnung erscheint ein leeres Kästchen.
   --------------------------------------------------------------- */
.scrollup .fa,
.fa.trigger,
.mp-back .fa,
.sub-arrow::before,
.fa-angle-up,
.fa-angle-down,
.fa-angle-left,
.fa-angle-right,
.fa-chevron-right,
.fa-chevron-left,
.fa-chevron-down,
.fa-arrow-left,
.fa-arrow-right {
	font-weight: 900;
}

/* ---------------------------------------------------------------
   Kopfbereich: fixiert, schwarz, größeres Logo und Menü
   #page hat overflow:hidden, deshalb fixed statt sticky. Der Header
   war schon absolut positioniert, der Inhalt rechnet seine Höhe also
   bereits ein.
   --------------------------------------------------------------- */
#masthead.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 999;
	background: #000;
}
body.opal-header-absolute #masthead > .site-header {
	position: relative;
}
.admin-bar #masthead.site-header {
	top: 32px;
}
@media (max-width: 782px) {
	.admin-bar #masthead.site-header {
		top: 46px;
	}
}
#masthead .elementor-element-62ee0a8 {
	border-bottom: 0;
}
@media (min-width: 1025px) {
	#masthead .elementor-element-4d631f7 {
		width: 290px;
		flex: none;
	}
	#masthead .elementor-element-14b706d {
		width: auto;
		flex: 1;
	}
}
#masthead .elementor-element-83fad5e img {
	width: 260px;
	max-width: 100%;
	height: auto;
}
#masthead .elementor-element-7ed7317 .elementor-nav-menu--main .elementor-item {
	font-size: 22px;
	letter-spacing: .02em;
}
@media (max-width: 1366px) {
	#masthead .elementor-element-7ed7317 .elementor-nav-menu--main .elementor-item {
		font-size: 19px;
	}
}
@media (max-width: 1024px) {
	#masthead .elementor-element-83fad5e img {
		width: 210px;
	}
}
@media (max-width: 767px) {
	#masthead .elementor-element-83fad5e img {
		width: 180px;
	}
}

/* Mobiles Menü: Hamburger als eigenes Icon statt der fehlenden eicon-Glyphe */
#masthead .elementor-menu-toggle i.eicon {
	display: inline-block;
	width: 28px;
	height: 20px;
	background:
		linear-gradient(currentColor, currentColor) top / 100% 3px no-repeat,
		linear-gradient(currentColor, currentColor) center / 100% 3px no-repeat,
		linear-gradient(currentColor, currentColor) bottom / 100% 3px no-repeat;
	font-size: 0;
}
#masthead .elementor-menu-toggle i.eicon::before {
	content: none;
}

/* Mobiles Menü: Einträge mit Untermenü klar kennzeichnen */
.elementor-nav-menu--canvas li.menu-item-has-children > a .fa.trigger {
	float: right;
	color: var(--rth-red);
	font-size: 1rem;
	line-height: inherit;
}

/* Untere Leiste (Konto/Suche/Warenkorb) auf dem Handy entfällt */
.handheld-footer-bar {
	display: none !important;
}
@media (max-width: 767px) {
	body {
		padding-bottom: 0 !important;
	}
}

/* ---------------------------------------------------------------
   Social-Media-Icons ([rth_social]) – Inline-SVG, keine Icon-Schrift
   --------------------------------------------------------------- */
.rth-social {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	justify-content: inherit;
}
.rth-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: #000;
	color: #fff;
	transition: background .2s;
}
.rth-social a:hover,
.rth-social a:focus {
	background: var(--rth-red);
	color: #fff;
}
.rth-social svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}
.rth-social--hell a {
	background: rgba(255, 255, 255, .12);
	backdrop-filter: blur(4px);
}

/* ---------------------------------------------------------------
   Startseite: Festival-Titelbereich
   --------------------------------------------------------------- */
.rth-hero {
	min-height: 100vh;
}
.rth-hero .rth-hero-logo img {
	width: 340px;
	max-width: 80vw;
}
.rth-hero .rth-hero-stempel img {
	width: 220px;
	transition: transform .3s;
}
.rth-hero .rth-hero-stempel a:hover img {
	transform: rotate(-6deg) scale(1.04);
}
.rth-hero .rth-hero-social .rth-social {
	justify-content: center;
	margin-top: 24px;
}
@media (max-width: 767px) {
	.rth-hero .rth-hero-stempel img {
		width: 150px;
	}
}

/* Sponsoren-Laufband ([rth_sponsoren_slider]) */
.rth-sponsoren-slider {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.rth-sponsoren-slider__spur {
	display: flex;
	align-items: center;
	width: max-content;
	animation: rth-laufband 60s linear infinite;
}
.rth-sponsoren-slider:hover .rth-sponsoren-slider__spur {
	animation-play-state: paused;
}
.rth-sponsoren-slider__logo {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 110px;
	margin-right: 56px; /* statt gap: so ergibt -50 % exakt eine Spurlänge */
	padding: 12px 18px;
	background: #fff;
}
.rth-sponsoren-slider__logo img {
	max-height: 86px;
	max-width: 220px;
	width: auto;
	height: auto;
}
@keyframes rth-laufband {
	to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
	.rth-sponsoren-slider__spur {
		animation: none;
		flex-wrap: wrap;
		width: auto;
		justify-content: center;
	}
}

/* Verlinkte Bilder/Logos bekommen kein ↗; auf der Sponsoren-Seite gar keins
   (dort hängen zusätzlich leere Links mit &nbsp; neben den Logos). */
.entry-content a[target="_blank"]:not(.wp-block-button__link):has(img)::after,
.page-id-6578 .entry-content a[target="_blank"]:not(.wp-block-button__link)::after {
	content: none;
}
.page-id-6578 .entry-content p a:not(.wp-block-button__link),
.page-id-6578 .entry-content a:not(.wp-block-button__link) {
	text-decoration: none;
}

/* ---------------------------------------------------------------
   Ausschreibung (DE/EN): größere Zwischenüberschriften, kompakte Tabellen
   --------------------------------------------------------------- */
.page-id-6566 .entry-content .rth-unterrubrik,
.page-id-6567 .entry-content .rth-unterrubrik {
	font-size: 2rem;
	line-height: 1.1;
	margin: 1.8em 0 .5em;
	padding-bottom: .2em;
	border-bottom: 2px solid var(--rth-red);
	color: #fff;
	text-transform: uppercase;
}
.page-id-6566 .entry-content .rth-unterrubrik strong,
.page-id-6567 .entry-content .rth-unterrubrik strong {
	font-weight: inherit;
}
.page-id-6566 .entry-content table,
.page-id-6567 .entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: .95rem;
	line-height: 1.35;
	margin: .8em 0 1.6em;
}
.page-id-6566 .entry-content table td,
.page-id-6566 .entry-content table th,
.page-id-6567 .entry-content table td,
.page-id-6567 .entry-content table th {
	padding: .4em .7em;
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, .1);
	vertical-align: top;
}
.page-id-6566 .entry-content table tr:nth-child(even),
.page-id-6567 .entry-content table tr:nth-child(even) {
	background: rgba(255, 255, 255, .03);
}
.page-id-6566 .entry-content table p,
.page-id-6567 .entry-content table p {
	margin: 0;
}
@media (max-width: 767px) {
	.page-id-6566 .entry-content table,
	.page-id-6567 .entry-content table {
		display: block;
		overflow-x: auto;
	}
}

/* ---------------------------------------------------------------
   Team ([rth_team])
   --------------------------------------------------------------- */
.rth-team__kategorie {
	margin: 0 0 3.5rem;
}
.rth-team__kategorie h2 {
	font-size: 2.4rem;
	margin-bottom: 1.2rem;
	padding-bottom: .25em;
	border-bottom: 2px solid var(--rth-red);
}
.rth-team__raster {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 24px;
}
.rth-team__person {
	margin: 0;
}
.rth-team__foto {
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: #262626;
	display: flex;
	align-items: center;
	justify-content: center;
}
.rth-team__foto img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.rth-team__foto svg {
	width: 45%;
	fill: #3a3a3a;
}
.rth-team__name {
	margin: .6rem 0 0;
	font-family: "Teko", sans-serif;
	font-size: 1.5rem;
	line-height: 1.1;
	color: #fff;
	text-transform: uppercase;
}
.rth-team__leer {
	font-style: italic;
	color: var(--rth-grey);
}
@media (max-width: 767px) {
	.rth-hero .elementor-top-column:first-child > .elementor-widget-wrap {
		justify-content: center;
	}
}

/* News ohne Beiträge: Suchfeld ergibt dort keinen Sinn */
.blog .no-results .search-form {
	display: none;
}

/* ---------------------------------------------------------------
   Stellplatzbuchung: Auswahl und Button als klar erkennbarer Block –
   vorher dunkle Schrift auf dunklem Grund und ein 108px schmales Feld.
   --------------------------------------------------------------- */
.single-product form.variations_form {
	background: #262626;
	padding: 28px;
	margin-top: 1.5rem;
}
.single-product form.variations_form table.variations,
.single-product form.variations_form table.variations tbody,
.single-product form.variations_form table.variations tr,
.single-product form.variations_form table.variations th,
.single-product form.variations_form table.variations td {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
}
.single-product form.variations_form table.variations th.label label {
	display: block;
	margin-bottom: .6rem;
	font-family: "Teko", sans-serif;
	font-size: 1.6rem;
	font-weight: 500;
	line-height: 1.1;
	color: #fff;
	text-transform: uppercase;
	white-space: normal;
}
.single-product form.variations_form table.variations select {
	width: 100%;
	max-width: none;
	height: 52px;
	padding: 0 2.5rem 0 1rem;
	background-color: #fff;
	color: #1a1a1a;
	font-size: 1rem;
	border: 0;
}
.single-product form.variations_form .reset_variations {
	position: static;
	display: inline-block;
	margin-top: .5rem;
	color: var(--rth-grey);
	font-size: .85rem;
}
.single-product form.variations_form .single_variation_wrap {
	margin-top: 1.4rem;
}
.single-product form.variations_form .woocommerce-variation-price .price {
	font-size: 1.6rem;
	color: #fff;
}
.single-product form.variations_form .single_add_to_cart_button {
	background-color: var(--rth-red);
	border-color: var(--rth-red);
}
.single-product form.variations_form .single_add_to_cart_button:hover {
	background-color: var(--rth-red-dark);
	border-color: var(--rth-red-dark);
}

/* Ausschreibung: echte H3 im Editor sehen aus wie die automatisch erkannten Rubriken */
.page-id-6566 .entry-content h3,
.page-id-6567 .entry-content h3 {
	font-size: 2rem;
	line-height: 1.1;
	margin: 1.8em 0 .5em;
	padding-bottom: .2em;
	border-bottom: 2px solid var(--rth-red);
	color: #fff;
	text-transform: uppercase;
}
