/*
Theme Name: Fahrschule Wellness Child
Template: maxbizz
Description: Child-Theme fuer Fahrschule Wellness - Designsystem-CSS, Fokuszustaende, Skip-Link, responsive Preistabelle, reduzierte Bewegung.
Author: Fahrschule Wellness Projekt
Version: 1.0.2
Text Domain: fahrschule-wellness-child
*/

/* Designsystem-Variablen, siehe DESIGN-KONZEPT.md Abschnitt 1 */
:root {
	--fw-color-primary: #289DB9;
	--fw-color-primary-dark: #1F7C92;
	--fw-color-primary-hover: #3589A1;
	--fw-color-dark: #3F5965;
	--fw-color-bg-light: #F7F9FA;
	--fw-color-border: #E2E8EA;
	--fw-color-error: #B3261E;
	--fw-color-success: #2E7D46;
}

/* Sichtbare Fokuszustaende, WCAG 2.2 AA Pflichtpunkt, siehe DESIGN-KONZEPT.md Abschnitt 11 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid var(--fw-color-primary-dark);
	outline-offset: 2px;
}

/* Skip-Link, siehe DESIGN-KONZEPT.md / IMPLEMENTIERUNGSPLAN.md Teil 3 */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--fw-color-primary);
	color: #FFFFFF;
	padding: 12px 24px;
	z-index: 100000;
	text-decoration: none;
	border-radius: 0 0 8px 0;
}
.skip-link:focus {
	left: 0;
}

/* Responsive Preistabelle, siehe DESIGN-KONZEPT.md Abschnitt 8 */
@media (max-width: 767px) {
	table.fw-price-table thead {
		display: none;
	}
	table.fw-price-table,
	table.fw-price-table tbody,
	table.fw-price-table tr,
	table.fw-price-table td {
		display: block;
		width: 100%;
	}
	table.fw-price-table tr {
		margin-bottom: 16px;
		border: 1px solid var(--fw-color-border);
		border-radius: 12px;
		padding: 16px;
	}
	table.fw-price-table td {
		padding: 4px 0;
	}
	table.fw-price-table td::before {
		content: attr(data-label);
		font-weight: 600;
		display: block;
		color: var(--fw-color-dark);
	}
}

/* Reduzierte Bewegung, WCAG 2.2 AA Pflichtpunkt, siehe DESIGN-KONZEPT.md Abschnitt 14 */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Mobiles Menue (Header 59, Offcanvas-Panel #mmenu-wrapper > .mobile_mainmenu), eindeutiger Endstand:
   normal/besucht einheitlich Markenfarbe, aktuelle Seite dunkleres Teal -- niemals die dunkle
   Parent-Theme-Standardfarbe. Ausschliesslich dieses Panel, Desktop-Menue (.main-navigation) unberuehrt.
   Hinweis: current-menu-item/current_page_item/current-menu-ancestor/current-menu-parent/aria-current
   werden von WordPress (_wp_menu_item_classes_by_context(), wp-includes/nav-menu-template.php) nur bei
   type=post_type-Menuepunkten gesetzt. Alle Menuepunkte ausser "Startseite" (ID 33, bereits auf
   post_type/page/62 umgestellt) sind weiterhin type=custom -- fuer diese bleibt die zweite Regel
   strukturell inaktiv, bis sie ebenfalls auf echte Seiten-Menuepunkte umgestellt werden. */
.mmenu-wrapper .mobile_mainmenu li a,
.mmenu-wrapper .mobile_mainmenu li a:link,
.mmenu-wrapper .mobile_mainmenu li a:visited {
	color: #289DB9 !important;
}

.mmenu-wrapper .mobile_mainmenu li a:hover,
.mmenu-wrapper .mobile_mainmenu li a:focus,
.mmenu-wrapper .mobile_mainmenu li a:active,
.mmenu-wrapper .mobile_mainmenu li.current-menu-item > a,
.mmenu-wrapper .mobile_mainmenu li.current_page_item > a,
.mmenu-wrapper .mobile_mainmenu li.current-menu-ancestor > a,
.mmenu-wrapper .mobile_mainmenu li.current-menu-parent > a,
.mmenu-wrapper .mobile_mainmenu li a[aria-current="page"] {
	color: #1F7C92 !important;
}

/* Schwebende Kontakt-Buttons, siehe functions.php fwc_floating_contact_buttons().
   Bottom-Offset ist bewusst so hoch: der extern per Footer-Widget (ID 53) eingebundene MAXI-/
   Fahrschulmanager-Button (TECVIA, api.fahrschulmanager.de/v1/maxi/widget.js) ist fixed rechts
   unten, 20px Rand, 96px/70px (Desktop/Mobil) Kreis-Icon PLUS eine dauerhaft eingeblendete
   Sprechblase (kein Timeout, animation-fill-mode:forwards) die bis 170px/126px ueber die
   Viewport-Unterkante reicht. 190px/150px lassen dazu ca. 20px Luft, keine Ueberlappung. */
.fw-floating-stack {
	position: fixed;
	right: 20px;
	bottom: 190px;
	z-index: 99000;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
}

@media (max-width: 720px) {
	.fw-floating-stack {
		bottom: 150px;
		right: 14px;
	}
}

.fw-float-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 8px;
	background: var(--fw-color-primary);
	color: #FFFFFF;
	box-shadow: 0 2px 6px rgba(63, 89, 101, 0.35);
	transition: background-color 150ms;
	cursor: pointer;
	border: none;
	list-style: none;
}

.fw-float-btn,
.fw-float-btn:link,
.fw-float-btn:visited {
	color: #FFFFFF;
}

.fw-float-btn:hover,
.fw-float-btn:focus-visible {
	background: var(--fw-color-primary-dark);
	color: #FFFFFF;
}

.fw-float-btn::-webkit-details-marker {
	display: none;
}

.fw-contact-group {
	position: relative;
}

.fw-contact-list {
	position: absolute;
	right: 0;
	bottom: calc(100% + 12px);
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Ab 993px (identischer Breakpoint wie das Mobilmenue, DESIGN-KONZEPT.md Abschnitt 10):
   Kontaktgruppe immer offen als saubere Stapel-Gruppe, unabhaengig vom [open]-Attribut.
   Darunter native <details>-Klapplogik, damit auf Mobil nur ein Button (Kontakt) sichtbar ist. */
@media (min-width: 993px) {
	.fw-contact-list {
		display: flex !important;
	}
}

/* Sichtbare Breadcrumbs (Yoast [wpseo_breadcrumb] in Elementor-Shortcode-Widget,
   Klasse fw-breadcrumbs), zurueckhaltend oberhalb der H1. Kein Hintergrund,
   kein Rahmen, kein Schatten, keine Kartenoptik. */
.fw-breadcrumbs {
	margin: 0 0 12px 0;
}
.fw-breadcrumbs .elementor-shortcode,
.fw-breadcrumbs .elementor-shortcode span {
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	color: #5F5F5F;
	overflow-wrap: normal;
	word-break: normal;
}
.fw-breadcrumbs a,
.fw-breadcrumbs a:link,
.fw-breadcrumbs a:visited,
.fw-breadcrumbs a:active {
	color: #289DB9;
	text-decoration: none;
}
.fw-breadcrumbs a:hover,
.fw-breadcrumbs a:focus-visible {
	color: #1F7C92;
	text-decoration: underline;
}
.fw-breadcrumbs .breadcrumb_last {
	color: #5F5F5F;
	font-weight: 400;
}
@media (max-width: 767px) {
	.fw-breadcrumbs .elementor-shortcode,
	.fw-breadcrumbs .elementor-shortcode span {
		font-size: 13px;
	}
}
