/*
Theme Name: Oswald Fahrzeugtechnik Backend
Theme URI: https://www.oswald-fahrzeugtechnik.de/
Author: Codex
Description: Professionelles WordPress-Theme fuer Oswald Fahrzeugtechnik GmbH mit eigenem Backend-Tool, Team, Kundenstimmen, Ersatzteilhandel, Ersatzteilanfrage-Portal, Medienfeldern, SEO und gespeicherten Kontaktanfragen.
Version: 1.5.11
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.0
Text Domain: oswald-fahrzeugtechnik
*/

:root {
	--bg: #f3f3f2;
	--surface: #ffffff;
	--surface-2: #e8e8e7;
	--ink: #050505;
	--text: #171717;
	--muted: #5d5d5d;
	--line: #d9d9d7;
	--red: #e20613;
	--red-dark: #b9040d;
	--anthracite: #1e1e1e;
	--gray: #706f6f;
	--white: #ffffff;
	--shadow: 0 24px 58px rgba(5, 5, 5, 0.18);
	--radius: 8px;
	--max: 1440px;
	--wide: 1440px;
	--header-max: 1180px;
	--hero-max: 1180px;
	--hero-copy-max: 860px;
	--font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.65;
	overflow-x: hidden;
}

body.admin-bar .site-header {
	top: 32px;
}

img {
	display: block;
	max-width: 100%;
}

a {
	color: inherit;
	text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid var(--red);
	outline-offset: 3px;
}

.container {
	width: min(calc(100% - 48px), var(--max));
	margin: 0 auto;
}

.container-wide {
	width: min(calc(100% - 48px), var(--header-max));
	margin: 0 auto;
}

.skip-link,
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.skip-link:focus {
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 10px 14px;
	clip: auto;
	background: var(--ink);
	color: #fff;
}

.site-header {
	position: sticky;
	z-index: 100;
	top: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(5, 5, 5, var(--header-bg-opacity, 0.86));
	backdrop-filter: blur(10px);
	transition: background 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
	background: rgba(5, 5, 5, var(--header-scrolled-opacity, 0.96));
	backdrop-filter: blur(14px);
}

.header-top {
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	color: #f0f0f0;
	font-size: 0.88rem;
}

.header-top-inner {
	display: flex;
	min-height: 38px;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}

.header-inner {
	display: flex;
	min-height: 112px;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 16px;
	color: #fff;
}

.brand-logo {
	width: auto;
	max-width: 210px;
	max-height: 96px;
	object-fit: contain;
	object-position: left center;
}

.brand-copy {
	display: grid;
	gap: 1px;
}

.brand-copy strong {
	color: #fff;
	line-height: 1.15;
}

.brand-copy span {
	max-width: 340px;
	color: #d7d7d7;
	font-size: 0.86rem;
	line-height: 1.3;
}

.primary-nav {
	display: flex;
	align-items: center;
	gap: 14px;
	color: #fff;
	font-size: 0.93rem;
	font-weight: 800;
}

.primary-nav a {
	display: inline-flex;
	min-height: 40px;
	align-items: center;
	border-bottom: 2px solid transparent;
}

.primary-nav a:hover {
	border-color: var(--red);
	color: #fff;
}

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(226, 6, 19, 0.58);
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
}

.nav-toggle span:not(.sr-only),
.nav-toggle span:not(.sr-only)::before,
.nav-toggle span:not(.sr-only)::after {
	display: block;
	width: 18px;
	height: 2px;
	margin: 0 auto;
	background: currentColor;
	content: "";
}

.nav-toggle span:not(.sr-only)::before {
	transform: translateY(-6px);
}

.nav-toggle span:not(.sr-only)::after {
	transform: translateY(4px);
}

.button,
button.button,
input[type="submit"].button {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	border: 1px solid transparent;
	border-radius: 4px;
	padding: 12px 18px;
	font-weight: 900;
	line-height: 1.1;
	text-align: center;
}

.button-primary {
	background: var(--red);
	color: #fff;
	box-shadow: 0 14px 28px rgba(226, 6, 19, 0.28);
}

.button-primary:hover {
	background: var(--red-dark);
	color: #fff;
}

.button-secondary {
	border-color: rgba(255, 255, 255, 0.42);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.button-dark {
	background: var(--ink);
	color: #fff;
}

.hero {
	position: relative;
	isolation: isolate;
	min-height: calc(720px + 150px);
	margin-top: -150px;
	padding-top: 150px;
	display: grid;
	align-items: end;
	overflow: hidden;
	color: #fff;
}

.hero-media {
	position: absolute;
	inset: 0;
	z-index: -2;
	background-position: var(--hero-position-x, 50%) var(--hero-position-y, 50%);
	background-size: cover;
	background-repeat: no-repeat;
	filter: brightness(var(--hero-brightness, 100%));
	opacity: var(--hero-image-opacity, 100%);
	transform: scale(calc(var(--hero-zoom, 100%) / 100%));
	transform-origin: var(--hero-position-x, 50%) var(--hero-position-y, 50%);
}

.hero::before {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(5, 5, 5, var(--hero-overlay-alpha, 0.82)) 0%, rgba(5, 5, 5, calc(var(--hero-overlay-alpha, 0.82) * 0.78)) 48%, rgba(5, 5, 5, 0.18) 100%),
		linear-gradient(0deg, rgba(5, 5, 5, calc(var(--hero-overlay-alpha, 0.82) * 0.68)) 0%, rgba(5, 5, 5, 0.02) 45%);
	content: "";
}

.hero-grid {
	display: grid;
	width: min(calc(100% - 48px), var(--hero-max));
	max-width: var(--hero-max);
	margin: 0 auto;
	grid-template-columns: minmax(0, 1fr) 360px;
	align-items: end;
	gap: 34px;
	min-width: 0;
}

.hero-copy {
	width: 100%;
	max-width: var(--hero-copy-max);
	min-width: 0;
	padding: 118px 0 58px;
}

.eyebrow {
	display: inline-flex;
	max-width: 100%;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	color: var(--red);
	font-size: 0.78rem;
	font-weight: 950;
	letter-spacing: 0;
	line-height: 1.42;
	text-transform: uppercase;
}

.eyebrow::before {
	width: 38px;
	height: 2px;
	flex: 0 0 38px;
	background: var(--red);
	content: "";
}

.hero .eyebrow {
	color: #ff4c55;
	font-size: 1rem;
	text-transform: none;
}

.hero h1 {
	width: 100%;
	max-width: var(--hero-copy-max);
	margin: 0;
	color: #fff;
	font-size: 4.1rem;
	line-height: 1.03;
	hyphens: auto;
	overflow-wrap: anywhere;
}

.hero-text {
	width: 100%;
	max-width: 820px;
	margin: 25px 0 0;
	color: #f6f6f6;
	font-size: 1.18rem;
	line-height: 1.72;
	overflow-wrap: anywhere;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 34px;
}

.hero-proof {
	margin-bottom: 58px;
	padding: 22px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-left: 5px solid var(--red);
	border-radius: var(--radius);
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	box-shadow: var(--shadow);
}

.hero-proof p {
	margin: 0;
	white-space: pre-line;
}

.trust-band {
	position: relative;
	z-index: 2;
	margin-top: -42px;
}

.trust-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.trust-grid article {
	min-height: 120px;
	padding: 22px;
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow);
}

.trust-grid strong,
.trust-grid span {
	display: block;
}

.trust-grid strong {
	color: var(--ink);
	font-size: 1.05rem;
}

.trust-grid span {
	margin-top: 8px;
	color: var(--muted);
}

.credentials-strip {
	padding: 34px 0;
	background: #fff;
	border-bottom: 1px solid var(--line);
}

.credentials-grid {
	display: grid;
	grid-template-columns: minmax(280px, 0.95fr) repeat(2, minmax(260px, 1fr));
	gap: 18px;
	align-items: stretch;
}

.credentials-copy,
.credential-card {
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: 0 14px 34px rgba(5, 5, 5, 0.06);
}

.credentials-copy h2 {
	margin-bottom: 12px;
	font-size: 2rem;
}

.credentials-copy p:last-child,
.credential-card p {
	margin-bottom: 0;
}

.credential-card {
	display: grid;
	grid-template-columns: 116px minmax(0, 1fr);
	gap: 18px;
	align-items: center;
}

.credential-card img {
	width: 116px;
	max-height: 128px;
	object-fit: contain;
	border-radius: 6px;
	background: #fff;
}

.credential-card h3 {
	margin-bottom: 8px;
	color: var(--ink);
	font-size: 1.15rem;
}

.section {
	padding: 88px 0;
}

.section-muted {
	background: var(--surface-2);
}

.section-dark {
	background: var(--ink);
	color: #fff;
}

.section-heading {
	max-width: 1180px;
	margin-bottom: 34px;
}

h1,
h2,
h3 {
	font-weight: 950;
	letter-spacing: 0;
	line-height: 1.08;
}

h2 {
	margin: 0 0 18px;
	color: var(--ink);
	font-size: 2.7rem;
}

h3 {
	margin: 0 0 12px;
	color: var(--ink);
	font-size: 1.25rem;
}

.section-dark h2,
.section-dark h3,
.section-dark p,
.section-dark li {
	color: #fff;
}

.split-section {
	display: grid;
	grid-template-columns: 0.86fr 1.14fr;
	gap: 56px;
	align-items: start;
}

.rich-copy {
	max-width: 1120px;
	color: var(--text);
	font-size: 1.04rem;
}

.rich-copy p,
.rich-copy li {
	max-width: 86ch;
}

.card-grid,
.team-grid,
.vehicle-grid,
.parts-grid,
.testimonials-grid,
.benefit-grid,
.gallery-grid,
.process-grid,
.dekra-grid {
	display: grid;
	gap: 18px;
}

.card-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.team-card,
.vehicle-card,
.parts-card,
.testimonial-card,
.benefit-card,
.process-card,
.dekra-card {
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: 0 18px 38px rgba(5, 5, 5, 0.08);
}

.service-card span,
.process-card span {
	display: inline-grid;
	min-width: 38px;
	height: 34px;
	place-items: center;
	margin-bottom: 16px;
	border-radius: 6px;
	background: rgba(226, 6, 19, 0.11);
	color: var(--red);
	font-weight: 950;
}

.service-card p,
.team-card p,
.vehicle-card p,
.parts-card p,
.testimonial-card p,
.benefit-card p,
.process-card p,
.dekra-card p {
	color: var(--muted);
}

.vehicle-grid,
.parts-grid,
.benefit-grid,
.dekra-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.team-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-card {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	gap: 18px;
	align-items: start;
}

.team-photo {
	width: 112px;
	aspect-ratio: 1;
	overflow: hidden;
	border: 3px solid rgba(226, 6, 19, 0.16);
	border-radius: 8px;
	background: linear-gradient(135deg, #111 0%, #2d2d2d 100%);
}

.team-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--team-photo-x, 50%) var(--team-photo-y, 50%);
	transform: scale(var(--team-photo-zoom, 1));
	transform-origin: var(--team-photo-x, 50%) var(--team-photo-y, 50%);
}

.team-photo span {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	color: #fff;
	font-size: 2rem;
	font-weight: 950;
}

.team-copy h3 {
	margin-bottom: 6px;
}

.team-position {
	margin: 0 0 12px;
	color: var(--red) !important;
	font-weight: 900;
}

.team-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.team-tags li {
	padding: 7px 10px;
	border-radius: 999px;
	background: rgba(226, 6, 19, 0.1);
	color: var(--ink);
	font-size: 0.84rem;
	font-weight: 850;
}

.team-contact {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
	font-weight: 850;
}

.testimonials-section {
	background: linear-gradient(135deg, #050505 0%, #161616 68%, #2b0307 100%);
}

.testimonials-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.testimonial-card {
	background: #fff;
	color: var(--text);
}

.testimonial-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.testimonial-logo {
	display: grid;
	width: 112px;
	height: 64px;
	place-items: center;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: #fff;
}

.testimonial-logo img {
	max-width: 94px;
	max-height: 44px;
	object-fit: contain;
	object-position: var(--testimonial-logo-x, 50%) var(--testimonial-logo-y, 50%);
	transform: scale(var(--testimonial-logo-zoom, 1));
	transform-origin: var(--testimonial-logo-x, 50%) var(--testimonial-logo-y, 50%);
}

.testimonial-logo span {
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	border-radius: 50%;
	background: var(--ink);
	color: #fff;
	font-weight: 950;
}

.testimonial-rating {
	color: var(--red);
	font-size: 1.05rem;
	letter-spacing: 0;
	white-space: nowrap;
}

.testimonial-card blockquote {
	margin: 0;
	color: var(--text);
	font-size: 1.04rem;
	line-height: 1.65;
}

.testimonial-card footer {
	display: grid;
	gap: 4px;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
}

.testimonial-card footer span,
.testimonial-card footer a {
	color: var(--muted);
}

.testimonial-card footer .testimonial-meta {
	margin-top: 4px;
	color: var(--ink);
	font-size: 0.82rem;
	font-weight: 850;
}

.vehicle-card,
.parts-card,
.benefit-card,
.dekra-card {
	font-weight: 850;
}

.parts-panel {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
	gap: 28px;
	align-items: stretch;
	margin-bottom: 22px;
}

.parts-copy,
.parts-partner {
	padding: 34px;
	border-radius: var(--radius);
	background: #fff;
	box-shadow: 0 18px 38px rgba(5, 5, 5, 0.08);
}

.parts-copy {
	border-left: 5px solid var(--red);
}

.parts-partner {
	background: linear-gradient(135deg, #090909 0%, #1c1c1c 68%, #3a050b 100%);
	color: #fff;
}

.parts-partner h3,
.parts-partner p {
	color: #fff;
}

.parts-card {
	border-color: rgba(226, 6, 19, 0.24);
}

.parts-card::before {
	display: block;
	width: 28px;
	height: 4px;
	margin-bottom: 14px;
	border-radius: 999px;
	background: var(--red);
	content: "";
}

.hydraulics-panel {
	display: grid;
	grid-template-columns: 0.95fr 1.05fr;
	overflow: hidden;
	border-radius: var(--radius);
	background: linear-gradient(135deg, #050505 0%, #191919 72%, #2b0307 100%);
	box-shadow: var(--shadow);
}

.hydraulics-panel img {
	width: 100%;
	height: 100%;
	min-height: 520px;
	object-fit: cover;
}

.hydraulics-copy {
	padding: 58px;
	color: #fff;
}

.hydraulics-copy h2,
.hydraulics-copy p,
.hydraulics-copy li {
	color: #fff;
}

.two-column-list {
	columns: 2;
	padding-left: 20px;
}

.process-grid {
	grid-template-columns: repeat(5, minmax(0, 1fr));
	counter-reset: process;
}

.process-card {
	counter-increment: process;
}

.process-card::before {
	display: block;
	margin-bottom: 12px;
	color: var(--red);
	content: "0" counter(process);
	font-size: 1.9rem;
	font-weight: 950;
	line-height: 1;
}

.gallery-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-grid img {
	width: 100%;
	aspect-ratio: 16 / 10;
	border-radius: var(--radius);
	object-fit: cover;
	box-shadow: 0 16px 34px rgba(5, 5, 5, 0.13);
}

.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
}

.contact-form {
	width: min(100%, 1180px);
	margin: 0 auto;
	padding: 28px;
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow);
	color: var(--text);
}

.contact-form h3 {
	color: var(--ink);
}

.form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.form-grid label,
.form-grid .full {
	display: grid;
	gap: 6px;
}

.form-grid .full {
	grid-column: 1 / -1;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: 12px 13px;
	font: inherit;
}

.form-grid textarea {
	min-height: 140px;
	resize: vertical;
}

.honeypot {
	position: absolute;
	left: -9999px;
}

.notice {
	margin-bottom: 18px;
	padding: 14px 16px;
	border-radius: 6px;
	background: #e9f7ec;
	color: #123d1d;
	font-weight: 750;
}

.notice-error {
	background: #fff1f1;
	color: #751018;
}

.portal-hero {
	padding: 86px 0 58px;
}

.portal-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
	gap: 34px;
	align-items: end;
}

.portal-hero h1 {
	max-width: 980px;
	margin: 0 0 18px;
	color: #fff;
	font-size: 3.6rem;
}

.portal-hero p {
	max-width: 980px;
	color: #fff;
	font-size: 1.1rem;
}

.portal-note {
	padding: 24px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-left: 5px solid var(--red);
	border-radius: var(--radius);
	background: rgba(0, 0, 0, 0.34);
	color: #fff;
	white-space: pre-line;
}

.portal-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}

.portal-form {
	border-radius: var(--radius);
	background: #fff;
	box-shadow: 0 18px 38px rgba(5, 5, 5, 0.08);
}

.portal-form h2 {
	margin-top: 0;
	font-size: 1.8rem;
}

.portal-form {
	width: min(100%, 1180px);
	margin: 0 auto;
	padding: 34px;
}

.form-section {
	padding: 24px 0;
	border-top: 1px solid var(--line);
}

.form-section h3 {
	font-size: 1.25rem;
}

.form-section:first-of-type {
	border-top: 0;
}

.form-help {
	max-width: 82ch;
	margin-top: -4px;
	color: var(--muted);
}

.checkline {
	display: flex !important;
	flex-direction: row;
	gap: 10px;
	align-items: flex-start;
	font-weight: 650;
}

.checkline input {
	width: auto;
	margin-top: 6px;
}

.upload-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.upload-field {
	display: grid;
	min-height: 150px;
	align-content: start;
	gap: 12px;
	padding: 18px;
	border: 1px dashed rgba(226, 6, 19, 0.46);
	border-radius: var(--radius);
	background: #fff7f8;
	font-weight: 850;
}

.upload-field input {
	width: 100%;
	font: inherit;
}

.site-footer {
	padding: 64px 0 38px;
	background: #000;
	color: #fff;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.35fr 1fr 1fr 1fr;
	gap: 36px;
}

.footer-grid h2 {
	margin: 0 0 14px;
	color: #fff;
	font-size: 1.2rem;
}

.footer-grid p,
.footer-grid li,
.footer-grid a {
	color: #fff;
}

.footer-logo {
	width: 220px;
	max-width: 100%;
	margin-bottom: 18px;
}

.content-page {
	background: var(--bg);
}

.content-hero {
	padding: 76px 0 44px;
	background: linear-gradient(135deg, #050505 0%, #181818 68%, #3a050b 100%);
	color: #fff;
}

.content-hero h1,
.content-hero p {
	max-width: 1080px;
	color: #fff;
}

.content-hero h1 {
	margin: 0;
	font-size: 3.1rem;
}

.content-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
}

.content-panel {
	width: 100%;
	padding: 36px;
	border-radius: var(--radius);
	background: #fff;
	box-shadow: 0 18px 38px rgba(5, 5, 5, 0.08);
}

.content-panel > *:first-child {
	margin-top: 0;
}

.legal-page {
	max-width: 980px;
	padding: 88px 0;
}

.legal-page h1 {
	color: var(--ink);
	font-size: 3rem;
}

.legal-page .legal-content {
	white-space: pre-line;
}

@media (max-width: 1180px) {
	.primary-nav {
		position: absolute;
		top: calc(100% - 10px);
		right: 20px;
		left: 20px;
		display: none;
		flex-direction: column;
		align-items: stretch;
		padding: 18px;
		border-radius: var(--radius);
		background: rgba(5, 5, 5, 0.98);
		box-shadow: var(--shadow);
	}

	.primary-nav.is-open {
		display: flex;
	}

	.nav-toggle {
		display: inline-grid;
		place-items: center;
	}

	.hero-grid {
		grid-template-columns: 1fr;
	}

	.portal-hero-grid,
	.portal-layout {
		grid-template-columns: 1fr;
	}

	.upload-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hero-proof {
		max-width: 760px;
		margin-bottom: 40px;
	}

	.trust-grid,
	.credentials-grid,
	.card-grid,
	.team-grid,
	.vehicle-grid,
	.parts-grid,
	.testimonials-grid,
	.benefit-grid,
	.dekra-grid,
	.gallery-grid,
	.footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.process-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.container,
	.container-wide {
		width: min(calc(100% - 24px), var(--max));
	}

	.container-wide {
		width: min(calc(100% - 24px), var(--header-max));
	}

	body.admin-bar .site-header {
		top: 46px;
	}

	.header-top {
		display: none;
	}

	.header-inner {
		min-height: 86px;
	}

	.brand-logo {
		max-width: 150px;
		max-height: 72px;
	}

	.brand-copy {
		display: none;
	}

	.hero {
		min-height: 680px;
		margin-top: -86px;
		padding-top: 86px;
	}

	.hero-media {
		background-position: var(--hero-mobile-position-x, var(--hero-position-x, 50%)) var(--hero-mobile-position-y, var(--hero-position-y, 50%));
		transform-origin: var(--hero-mobile-position-x, var(--hero-position-x, 50%)) var(--hero-mobile-position-y, var(--hero-position-y, 50%));
	}

	.hero-copy {
		padding-top: 76px;
	}

	.hero h1 {
		max-width: 100%;
		font-size: 1.95rem;
		line-height: 1.1;
	}

	.content-hero {
		padding: 48px 0 32px;
	}

	.content-hero h1,
	.portal-hero h1 {
		font-size: 2.15rem;
	}

	.content-panel,
	.portal-form,
	.parts-copy,
	.parts-partner {
		padding: 22px;
	}

	.portal-hero {
		padding: 58px 0 38px;
	}

	.hero-text {
		font-size: 1rem;
	}

	.section {
		padding: 62px 0;
	}

	h2 {
		font-size: 2rem;
	}

	.split-section,
	.parts-panel,
	.hydraulics-panel,
	.contact-grid,
	.form-grid,
	.upload-grid,
	.trust-grid,
	.credentials-grid,
	.card-grid,
	.team-grid,
	.vehicle-grid,
	.parts-grid,
	.testimonials-grid,
	.benefit-grid,
	.dekra-grid,
	.process-grid,
	.gallery-grid,
	.footer-grid {
		grid-template-columns: 1fr;
	}

	.two-column-list {
		columns: 1;
	}

	.hydraulics-copy {
		padding: 28px;
	}

	.hydraulics-panel img {
		min-height: auto;
	}

	.upload-field {
		min-height: auto;
	}

	.team-card {
		grid-template-columns: 86px minmax(0, 1fr);
	}

	.team-photo {
		width: 86px;
	}

	.testimonial-head {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 480px) {
	.container,
	.container-wide {
		width: min(calc(100% - 20px), var(--max));
	}

	.primary-nav {
		right: 10px;
		left: 10px;
	}

	.hero-grid {
		width: min(calc(100% - 20px), 315px);
	}

	.hero-copy,
	.hero h1,
	.hero-text,
	.hero-proof {
		max-width: 315px;
	}

	.hero h1 {
		font-size: 1.15rem;
		line-height: 1.12;
	}

	.hero .eyebrow {
		font-size: 0.72rem;
		line-height: 1.35;
		overflow-wrap: anywhere;
	}

	.hero .eyebrow::before {
		width: 32px;
		flex-basis: 32px;
	}

	.hero-actions {
		display: grid;
		width: 100%;
	}

	.hero-actions .button {
		width: 100%;
		justify-content: center;
	}

	.hero-proof {
		width: 100%;
		padding: 18px;
	}

	.hero-text {
		font-size: 0.92rem;
		line-height: 1.6;
	}

	.section-heading {
		margin-bottom: 24px;
	}

	.team-card {
		grid-template-columns: 1fr;
	}

	.team-photo {
		width: 104px;
	}

	.credential-card {
		grid-template-columns: 86px minmax(0, 1fr);
	}

	.credential-card img {
		width: 86px;
		max-height: 104px;
	}

	.testimonial-card,
	.service-card,
	.parts-card,
	.benefit-card,
	.dekra-card {
		padding: 22px;
	}
}
