/* =====================================================================
   pixCMS – Basis-Stylesheet
   Senior Web Programmer: Daniel Beck / Pixlwerk
   Dieses Stylesheet liefert das Grunddesign der Demo-/Startseite.
   Farben können später über die CMS-Einstellungen (Farbverlauf 1/2)
   angepasst und per Inline-Variable überschrieben werden.
   ===================================================================== */

/* ----------------------------------------------------------------------
   1. Design-Tokens / CSS-Variablen
   ---------------------------------------------------------------------- */
:root {
	   /* Markenfarben der aktuellen MP-Boxenservice Seite */
	   --brand-primary: #005b9f; 
	   --brand-secondary: #003d6b; 
	   --brand-gradient: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
	   
	   --pw-bg-color: #f8f9fa;
	   --pw-card-bg: #ffffff;
	   --pw-text-main: #212529;
	   --pw-text-muted: #6c757d;
	   --pw-border: #e9ecef;
	   --pw-radius: 24px;
	   --pw-shadow: 0 8px 30px rgba(0,0,0,0.04);
	   --pw-shadow-lg: 0 15px 40px rgba(0,0,0,0.08);
   }

/* ----------------------------------------------------------------------
   2. Grundlayout
   ---------------------------------------------------------------------- */
* { scroll-behavior: smooth; }

body {
	background-color: var(--pw-bg-color);
	color: var(--pw-text-main);
	font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

/* Verhindert das Überlappen der fixierten Navbar bei Anker-Links */
section[id] {
	scroll-margin-top: 90px;
}

/* Typography */
h1, h2, h3, h4 {
	font-weight: 800;
	letter-spacing: -0.5px;
}

.brand-text {
	color: var(--brand-primary);
}

/* Buttons */
.btn-brand-primary {
	background: var(--brand-primary);
	color: #fff;
	border: none;
	border-radius: 50px;
	padding: 14px 32px;
	font-weight: 700;
	transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.btn-brand-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgba(0, 91, 159, 0.2);
	background: var(--brand-secondary);
	color: #fff;
}

.btn-brand-secondary {
	background: #fff;
	color: var(--pw-text-main);
	border: 2px solid var(--pw-border);
	border-radius: 50px;
	padding: 12px 30px;
	font-weight: 700;
	transition: all 0.3s ease;
}
.btn-brand-secondary:hover {
	border-color: var(--brand-primary);
	color: var(--brand-primary);
	transform: translateY(-2px);
}

.btn-brand-outline-light {
	background: transparent;
	color: #fff;
	border: 2px solid #fff;
	border-radius: 50px;
	padding: 12px 30px;
	font-weight: 700;
	transition: all 0.3s ease;
}
.btn-brand-outline-light:hover {
	background: #fff;
	color: var(--brand-primary);
	transform: translateY(-2px);
}

/* Navbar */
.navbar {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--pw-border);
	padding: .85rem 0;
	transition: padding .3s ease, box-shadow .3s ease, background .3s ease;
}
.navbar-scrolled {
	padding: .45rem 0;
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 6px 24px rgba(0, 0, 0, .07);
	border-bottom-color: transparent;
}
.navbar .nav-link {
	font-weight: 600;
	color: var(--pw-text-main);
	position: relative;
	padding: .5rem .15rem;
}
.navbar .nav-link::after {
	content: "";
	position: absolute;
	left: 0; bottom: -2px;
	height: 2px; width: 0;
	background: var(--brand-primary);
	transition: width .3s ease;
}
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--brand-primary); }
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { width: 100%; }

/* Typo-Logo */
.brand-logo {
	display: inline-flex;
	align-items: center;
	gap: .65rem;
	text-decoration: none;
	padding: 0;
}
.brand-logo-mark {
	background: var(--brand-gradient);
	color: #fff;
	font-weight: 900;
	font-size: 1.15rem;
	letter-spacing: .5px;
	width: 46px; height: 46px;
	border-radius: 13px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 5px 14px rgba(0, 91, 159, .32);
	flex-shrink: 0;
}
.brand-logo-text { display: flex; flex-direction: column; line-height: 1; }
.brand-logo-name {
	font-weight: 800;
	font-size: 1.3rem;
	letter-spacing: -.5px;
	color: var(--pw-text-main);
}
.brand-logo-name b { color: var(--brand-primary); font-weight: 800; }
.brand-logo-sub {
	font-size: .6rem;
	font-weight: 700;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: var(--brand-primary);
	margin-top: 4px;
}

/* Bento Cards */
.bento-card {
	background: var(--pw-card-bg);
	border-radius: var(--pw-radius);
	border: 1px solid var(--pw-border);
	padding: 32px;
	box-shadow: var(--pw-shadow);
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease;
}
.bento-card:hover {
	transform: translateY(-5px);
}
.bento-icon {
	font-size: 2.5rem;
	color: var(--brand-primary);
	margin-bottom: 20px;
}

/* Hero Section with Blue Gradient */
.hero-section {
	padding: 180px 0 140px;
	background-image: linear-gradient(135deg, rgba(0, 91, 159, 0.527) 0%, rgba(0, 61, 107, 0.75) 100%), url('/p_assets/hero/hero.webp');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: #ffffff;
}

@media (max-width: 991.98px) {
	.hero-section {
		padding: 140px 0 80px;
	}
}

/* Car Detail specific styles */
.car-gallery-main {
	border-radius: var(--pw-radius);
	height: auto;
	min-height: 300px;
	aspect-ratio: 16/9;
	object-fit: cover;
	width: 100%;
}
.car-thumbnail {
	border-radius: 12px;
	height: auto;
	aspect-ratio: 4/3;
	width: 100%;
	object-fit: cover;
	cursor: pointer;
	transition: transform 0.2s, border 0.2s;
	border: 2px solid transparent;
}
.car-thumbnail:hover {
	transform: translateY(-2px);
	border-color: var(--brand-primary);
}
.spec-item {
	background: var(--pw-bg-color);
	border-radius: 16px;
	padding: 16px;
	text-align: center;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.spec-icon {
	font-size: 1.5rem;
	color: var(--brand-primary);
	margin-bottom: 8px;
}

/* Form Styling & Height Alignment */
.form-control, .form-select {
	background-color: var(--pw-bg-color);
	border: 1px solid var(--pw-border);
	border-radius: 12px;
	padding: 12px 20px;
	height: 50px;
}
textarea.form-control {
	height: auto;
}
.form-control:focus, .form-select:focus {
	box-shadow: 0 0 0 3px rgba(0, 91, 159, 0.1);
	border-color: var(--brand-primary);
}

/* Footer */
.site-footer {
	position: relative;
	background: #0d1b2a;
	color: #b9c4d0;
	padding: 64px 0 0;
}
.site-footer::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 4px;
	background: var(--brand-gradient);
}
.site-footer h5 {
	color: #fff;
	font-size: .95rem;
	letter-spacing: .5px;
	text-transform: uppercase;
	margin-bottom: 1.35rem;
}
.site-footer p { color: #97a4b3; font-size: .92rem; line-height: 1.7; }
.site-footer a { color: #b9c4d0; text-decoration: none; transition: color .2s ease; }
.site-footer a:hover { color: #fff; }

.footer-logo .brand-logo-name { color: #fff; }
.footer-logo .brand-logo-sub { color: #6fa8d6; }

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .65rem; }
.footer-links a { display: inline-flex; align-items: center; gap: .55rem; font-size: .92rem; }
.footer-links a i { color: var(--brand-primary); font-size: .75rem; transition: transform .2s ease; }
.footer-links a:hover i { transform: translateX(3px); }

.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: .8rem; margin-bottom: .95rem; font-size: .92rem; line-height: 1.5; }
.footer-contact i { color: var(--brand-primary); width: 18px; margin-top: 3px; flex-shrink: 0; }

.footer-social { display: flex; gap: .6rem; margin-top: 1.4rem; }
.footer-social a {
	width: 40px; height: 40px;
	border-radius: 12px;
	background: rgba(255, 255, 255, .07);
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 1rem;
	transition: background .25s ease, transform .25s ease;
}
.footer-social a:hover { background: var(--brand-primary); color: #fff; transform: translateY(-3px); }

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, .1);
	margin-top: 52px;
	padding: 22px 0;
	font-size: .85rem;
	color: #8595a6;
}
.footer-bottom a { font-weight: 600; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; }
.footer-credit b {
	background: linear-gradient(135deg, #ff813d, #ff5c00);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	font-weight: 800;
}

/* ======================================================================
   WERKSTATT-THEME – wiederverwendbare Sektions- & Karten-Stile
   ====================================================================== */

/* Mini-Hero für Unterseiten */
.page-hero {
	position: relative;
	background: var(--brand-gradient);
	color: #fff;
	padding: 150px 0 56px;
	overflow: hidden;
}
.page-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0, rgba(255, 255, 255, .05) 1px, transparent 1px, transparent 13px);
	pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-eyebrow {
	display: inline-flex;
	align-items: center;
	background: rgba(255, 255, 255, .15);
	border: 1px solid rgba(255, 255, 255, .25);
	color: #fff;
	font-weight: 800;
	font-size: .74rem;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: .42rem 1rem;
	border-radius: 50px;
	margin-bottom: 1rem;
}
.page-hero-title { color: #fff; font-weight: 800; margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-hero-text { color: rgba(255, 255, 255, .85); margin: .8rem 0 0; max-width: 660px; font-size: 1.05rem; }
.page-hero-crumbs {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: .55rem;
	padding: 0;
	margin: 0 0 1.1rem;
	font-size: .85rem;
}
.page-hero-crumbs li { display: flex; align-items: center; gap: .55rem; color: rgba(255, 255, 255, .7); }
.page-hero-crumbs li:not(:last-child)::after { content: "/"; color: rgba(255, 255, 255, .4); }
.page-hero-crumbs a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.page-hero-crumbs a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 991.98px) { .page-hero { padding: 120px 0 44px; } }

/* Sektions-Kopf: Eyebrow-Badge + Titel + Trennstrich */
.section-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	background: rgba(0, 91, 159, .08);
	color: var(--brand-primary);
	font-weight: 800;
	font-size: .78rem;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: .45rem 1.1rem;
	border-radius: 50px;
	border: 1px solid rgba(0, 91, 159, .16);
	margin-bottom: 1rem;
}
.section-eyebrow i { font-size: .85rem; }

.section-divider {
	width: 64px;
	height: 4px;
	border-radius: 4px;
	background: var(--brand-gradient);
	margin-top: .85rem;
}
.text-center .section-divider { margin-left: auto; margin-right: auto; }

/* Karten-Politur: Akzentleiste oben + kräftigerer Hover */
.bento-card { position: relative; overflow: hidden; }
.bento-card:hover {
	box-shadow: var(--pw-shadow-lg);
	border-color: rgba(0, 91, 159, .25);
}
.card-accent::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 4px;
	background: var(--brand-gradient);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .35s ease;
}
.card-accent:hover::before { transform: scaleX(1); }

/* Icon-Medaillon (abgerundetes Quadrat mit Brand-Verlauf beim Hover) */
.icon-medallion {
	width: 64px;
	height: 64px;
	border-radius: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, rgba(0, 91, 159, .12), rgba(0, 61, 107, .12));
	color: var(--brand-primary);
	font-size: 1.55rem;
	margin-bottom: 1.25rem;
	transition: background .35s ease, color .35s ease, transform .35s ease;
}
.bento-card:hover .icon-medallion {
	background: var(--brand-gradient);
	color: #fff;
	transform: translateY(-2px) rotate(-4deg);
}

/* Spec-Chips (z.B. Fahrzeugeckdaten als Pills) */
.spec-chip {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	background: var(--pw-bg-color);
	border: 1px solid var(--pw-border);
	border-radius: 50px;
	padding: .35rem .8rem;
	font-size: .8rem;
	font-weight: 600;
	color: var(--pw-text-main);
}
.spec-chip i { color: var(--brand-primary); }

/* Vertrauens-Badges im Hero */
.hero-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem 1.75rem;
	margin-top: 2.25rem;
}
.hero-trust span {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	color: #fff;
	font-weight: 600;
	font-size: .95rem;
}
.hero-trust i {
	background: rgba(255, 255, 255, .18);
	width: 34px; height: 34px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Diagonaler Karbon-/Werkstatt-Hintergrund für abgesetzte Sektionen */
.section-shop {
	background-color: var(--pw-bg-color);
	background-image:
		repeating-linear-gradient(45deg, rgba(0, 91, 159, .025) 0, rgba(0, 91, 159, .025) 1px, transparent 1px, transparent 11px);
}

/* Sterne-Bewertung */
.rating-stars i { color: #f5a623; }

/* Galerie-Kacheln mit Zoom + Caption-Overlay */
.gallery-tile {
	position: relative;
	border-radius: 18px;
	overflow: hidden;
}
.gallery-tile img { transition: transform .5s ease; }
.gallery-tile:hover img { transform: scale(1.08); }
.gallery-tile figcaption {
	position: absolute;
	inset: auto 0 0 0;
	padding: 1.5rem .9rem .7rem;
	background: linear-gradient(to top, rgba(0, 61, 107, .85), transparent);
	color: #fff;
	font-size: .85rem;
	font-weight: 600;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .35s ease, transform .35s ease;
}
.gallery-tile:hover figcaption { opacity: 1; transform: translateY(0); }

/* Team-Avatar mit Ring */
.team-avatar {
	width: 120px; height: 120px;
	border-radius: 50%;
	object-fit: cover;
	padding: 4px;
	background: var(--pw-card-bg);
	box-shadow: 0 0 0 3px rgba(0, 91, 159, .15);
}

/* ===== FAQ – individuelles Akkordeon ===== */
.faq-item {
	background: var(--pw-card-bg);
	border: 1px solid var(--pw-border);
	border-radius: 16px;
	margin-bottom: 1rem;
	overflow: hidden;
	transition: border-color .25s ease, box-shadow .25s ease;
}
.faq-item:hover { border-color: rgba(0, 91, 159, .25); }
.faq-item:has(.accordion-button:not(.collapsed)) {
	border-color: rgba(0, 91, 159, .4);
	box-shadow: var(--pw-shadow);
}
.faq-item .accordion-button {
	display: flex;
	align-items: center;
	background: transparent;
	box-shadow: none;
	font-weight: 700;
	font-size: 1.02rem;
	color: var(--pw-text-main);
	padding: 1.1rem 1.25rem;
}
.faq-item .accordion-button:focus { box-shadow: none; outline: none; }
.faq-item .accordion-button:not(.collapsed) { color: var(--brand-primary); background: transparent; }
.faq-item .accordion-button::after { display: none !important; } /* Bootstrap-Pfeil aus */

.faq-q-icon {
	flex-shrink: 0;
	width: 40px; height: 40px;
	border-radius: 11px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 91, 159, .1);
	color: var(--brand-primary);
	margin-right: .9rem;
	transition: background .25s ease, color .25s ease, transform .25s ease;
}
.accordion-button:not(.collapsed) .faq-q-icon {
	background: var(--brand-gradient);
	color: #fff;
	transform: rotate(-6deg);
}
.faq-toggle {
	flex-shrink: 0;
	width: 30px; height: 30px;
	border-radius: 50%;
	background: var(--pw-bg-color);
	color: var(--brand-primary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: .85rem;
	font-size: .8rem;
	transition: transform .3s ease, background .25s ease, color .25s ease;
}
.accordion-button:not(.collapsed) .faq-toggle {
	background: var(--brand-primary);
	color: #fff;
	transform: rotate(180deg);
}
.faq-item .accordion-body {
	color: var(--pw-text-muted);
	padding: 0 1.25rem 1.3rem calc(1.25rem + 40px + .9rem); /* bündig unter dem Fragetext */
	line-height: 1.7;
}
@media (max-width: 575.98px) {
	.faq-item .accordion-body { padding-left: 1.25rem; }
}

/* CTA-Karte unter dem FAQ */
.faq-cta {
	background: var(--brand-gradient);
	color: #fff;
	border-radius: var(--pw-radius);
	padding: 2rem 2.25rem;
}
.faq-cta .btn { white-space: nowrap; }