/* =========================================================
   BVM — Praezisionswerkstatt: Aluminium & Tageslicht
   Design tokens
   ========================================================= */
:root{
	--primary: oklch(0.27 0.01 255);
	--primary-soft: oklch(0.38 0.01 255);
	--bg: oklch(0.97 0.004 90);
	--bg-raised: oklch(0.995 0.002 90);
	--ink: oklch(0.22 0.01 255);
	--ink-soft: oklch(0.42 0.01 255);
	--accent: oklch(0.62 0.09 75);
	--accent-ink: oklch(0.3 0.07 75);
	--line: oklch(0.85 0.01 90);
	--radius: 2px;
	--radius-feature: 10px;
	--shadow-1: 0 1px 2px oklch(0.2 0.02 255 / 0.06), 0 1px 1px oklch(0.2 0.02 255 / 0.04);
	--shadow-2: 0 12px 28px oklch(0.2 0.02 255 / 0.12), 0 2px 6px oklch(0.2 0.02 255 / 0.06);
	--font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
	--font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	--ease-out: cubic-bezier(0.16,1,0.3,1);
	--dur-fast: 180ms;
	--dur: 260ms;
	--primary-live: var(--bvm-primary-override, var(--primary));
	--accent-live: var(--bvm-accent-override, var(--accent));
}

/* =========================================================
   Reset & base
   ========================================================= */
*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; overflow-x: hidden; }
body{
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-ui);
	font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
	line-height: 1.6;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}
img,svg,video,iframe{ max-width: 100%; height: auto; }
.icon{ width: 1.4em; height: 1.4em; flex: 0 0 auto; vertical-align: middle; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3,h4{
	font-family: var(--font-display);
	color: var(--primary-live);
	line-height: 1.1;
	margin: 0 0 0.5em;
	text-wrap: pretty;
}
h1{ font-size: clamp(2.6rem, 2rem + 3vw, 4.2rem); font-weight: 600; }
h2{ font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem); font-weight: 600; }
h3{ font-size: 1.4rem; font-weight: 600; }
p{ margin: 0 0 1em; max-width: 65ch; }
.screen-reader-text{ position:absolute; left:-9999px; }
.skip-link:focus{ left: 1rem; top: 1rem; position: fixed; background: var(--bg-raised); padding: .6rem 1rem; z-index: 999; border-radius: var(--radius); }

:focus-visible{ outline: 2px solid var(--accent-live); outline-offset: 3px; border-radius: var(--radius); }

.bvm-eyebrow{
	font-family: var(--font-ui);
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: .8rem;
	font-weight: 600;
	color: var(--accent-ink);
	margin: 0 0 .9rem;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn{
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .85rem 1.6rem;
	border-radius: var(--radius);
	font-weight: 600;
	font-size: .98rem;
	border: 1px solid transparent;
	transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
	cursor: pointer;
	min-height: 44px;
}
.btn--accent{ background: var(--accent-live); color: var(--primary); box-shadow: var(--shadow-1); }
.btn--accent:hover{ transform: translateY(-2px); box-shadow: var(--shadow-2); }
.btn--accent:active{ transform: scale(0.98); }
.btn--ghost{ background: transparent; border-color: var(--line); color: var(--primary-live); }
.btn--ghost:hover{ border-color: var(--accent-live); transform: translateY(-2px); }
.btn--ghost:active{ transform: scale(0.98); }

.bvm-link-arrow{ display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--accent-ink); border-bottom: 1px solid transparent; transition: gap var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.bvm-link-arrow:hover{ gap: .7rem; border-color: var(--accent-ink); }
.bvm-link-arrow .icon{ width: 1.1em; height: 1.1em; }

/* =========================================================
   Header
   ========================================================= */
.bvm-header{
	position: sticky; top: 0; z-index: 100;
	background: oklch(0.97 0.004 90 / 0.92);
	border-bottom: 1px solid var(--line);
	transition: padding var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
@media (min-width: 901px){
	.bvm-header{ backdrop-filter: blur(10px); }
}
.bvm-header__inner{
	max-width: 1280px; margin: 0 auto;
	display: flex; align-items: center; gap: 2rem;
	padding: 1.1rem 2rem;
	transition: padding var(--dur) var(--ease-out);
}
.bvm-header.is-compact .bvm-header__inner{ padding: .65rem 2rem; }
.bvm-header.is-compact{ box-shadow: var(--shadow-1); }

.bvm-brand{ display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.bvm-brand__mark .logo-bg{ fill: var(--accent-live); }
.bvm-brand__mark{ height: 44px; width: auto; max-width: 200px; object-fit: contain; flex-shrink: 0; transition: height var(--dur) var(--ease-out); }
.bvm-header.is-compact .bvm-brand__mark{ height: 36px; }
.bvm-brand__name{ font-family: var(--font-display); font-weight: 600; font-size: .95rem; line-height: 1.2; color: var(--primary-live); }

.bvm-nav{ margin-left: auto; }
.bvm-nav__list{ display: flex; align-items: center; gap: 1.8rem; list-style: none; margin: 0; padding: 0; }
.bvm-nav__list a{ font-weight: 500; font-size: .98rem; position: relative; padding: .3rem 0; }
.bvm-nav__list a::after{ content:""; position:absolute; left:0; right:100%; bottom:0; height:2px; background: var(--accent-live); transition: right var(--dur) var(--ease-out); }
.bvm-nav__list a:hover::after,.bvm-nav__list a:focus-visible::after{ right: 0; }
.bvm-nav__list .sub-menu{ list-style:none; position:absolute; top:100%; left:0; min-width:220px; background: var(--bg-raised); border:1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-2); padding:.5rem; opacity:0; visibility:hidden; transform: translateY(-6px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.bvm-nav__list li{ position:relative; }
.bvm-nav__list li:hover > .sub-menu,
.bvm-nav__list li:focus-within > .sub-menu{ opacity:1; visibility:visible; transform: translateY(0); }
.bvm-nav__list .sub-menu a{ display:block; padding:.5rem .6rem; white-space:nowrap; }
.bvm-nav__list .sub-menu a::after{ display:none; }

.bvm-header__actions{ display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.bvm-header__phone{ display: flex; align-items: center; gap: .5rem; font-weight: 600; white-space: nowrap; }
.bvm-header__phone .icon{ color: var(--accent-ink); }

.bvm-burger{ display: none; background: none; border: none; cursor: pointer; padding: .5rem; flex-shrink: 0; min-width: 44px; min-height: 44px; }
.bvm-burger__box{ display: inline-block; position: relative; width: 24px; height: 18px; }
.bvm-burger__box span{ position: absolute; left: 0; width: 100%; height: 2px; background: var(--primary-live); border-radius: 2px; transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out); }
.bvm-burger__box span:nth-child(1){ top: 0; }
.bvm-burger__box span:nth-child(2){ top: 8px; }
.bvm-burger__box span:nth-child(3){ top: 16px; }
.bvm-burger[aria-expanded="true"] .bvm-burger__box span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.bvm-burger[aria-expanded="true"] .bvm-burger__box span:nth-child(2){ opacity: 0; }
.bvm-burger[aria-expanded="true"] .bvm-burger__box span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* =========================================================
   Mobile drawer (sibling of header, fixed to viewport)
   ========================================================= */
.bvm-drawer-overlay{
	position: fixed; inset: 0; background: oklch(0.2 0.02 255 / 0.45);
	z-index: 70; opacity: 0; transition: opacity var(--dur) var(--ease-out);
}
.bvm-drawer-overlay.is-open{ opacity: 1; }
.bvm-drawer{
	position: fixed; top: 0; right: 0; height: 100%; width: min(86vw, 360px);
	background: var(--bg-raised); z-index: 80;
	transform: translateX(100%);
	transition: transform var(--dur) var(--ease-out);
	padding: 1.5rem; overflow-y: auto;
	box-shadow: var(--shadow-2);
}
.bvm-drawer.is-open{ transform: translateX(0); }
.bvm-drawer__head{ display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.bvm-drawer__title{ font-weight: 600; font-family: var(--font-display); }
.bvm-drawer__close{ background: none; border: none; font-size: 1.8rem; line-height: 1; cursor: pointer; min-width: 44px; min-height: 44px; color: var(--primary-live); }
.bvm-drawer__list{ list-style: none; margin: 0 0 2rem; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.bvm-drawer__list a{ display: block; padding: .8rem .2rem; font-weight: 500; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
.bvm-drawer__list .sub-menu{ list-style:none; padding-left: 1rem; margin: 0; }
.bvm-drawer__list .sub-menu a{ font-size: .95rem; font-weight: 400; }
.bvm-drawer__cta{ width: 100%; justify-content: center; margin-bottom: 1rem; }
.bvm-drawer__phone{ display: flex; align-items: center; gap: .5rem; font-weight: 600; justify-content: center; padding: .8rem; border: 1px solid var(--line); border-radius: var(--radius); }

/* =========================================================
   Sticky "Schaden melden" corner CTA
   ========================================================= */
.bvm-sticky-cta{
	position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 50;
	display: flex; align-items: center; gap: .5rem;
	background: var(--primary-live); color: var(--bg);
	padding: .9rem 1.2rem; border-radius: var(--radius);
	font-weight: 600; box-shadow: var(--shadow-2);
	transition: transform var(--dur-fast) var(--ease-out);
}
.bvm-sticky-cta:hover{ transform: translateY(-3px); }
.bvm-sticky-cta:active{ transform: scale(0.98); }
.bvm-sticky-cta .icon{ color: var(--accent-live); }

/* =========================================================
   Hero — offset image bleeding into the next section
   ========================================================= */
.bvm-hero{
	max-width: 1280px; margin: 0 auto;
	padding: clamp(3rem, 6vw, 5rem) 2rem 9rem;
	display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem;
	align-items: center; position: relative;
}
.bvm-hero__title{ margin-bottom: .6rem; }
.bvm-hero__subtitle{ font-size: 1.1rem; color: var(--ink-soft); max-width: 42ch; }
.bvm-hero__actions{ display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.bvm-hero__media{ position: relative; margin-bottom: -7rem; z-index: 5; }
.bvm-hero__img{
	width: 100%; aspect-ratio: 4/5; object-fit: cover;
	clip-path: polygon(0 0, 100% 4%, 100% 100%, 0% 96%);
	box-shadow: var(--shadow-2);
}

/* =========================================================
   Leistungen — wide single rows, no card grid
   ========================================================= */
.bvm-leistungen{ max-width: 1280px; margin: 0 auto; padding: 7rem 2rem 6rem; }
.bvm-section__head{ max-width: 56ch; margin-bottom: 3.5rem; }
.bvm-section__head p{ color: var(--ink-soft); }
.bvm-leistungen__rows{ display: flex; flex-direction: column; gap: 4.5rem; }
.bvm-leistung-row{ display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: center; }
.bvm-leistung-row--reverse{ direction: rtl; }
.bvm-leistung-row--reverse > *{ direction: ltr; }
.bvm-leistung-row__img{ width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius-feature); box-shadow: var(--shadow-1); }
.bvm-leistung-row__num{ font-family: var(--font-display); color: var(--accent-live); font-size: 1rem; font-weight: 600; letter-spacing: .05em; }
.bvm-leistung-row__body h3{ margin-top: .4rem; }
.bvm-leistung-row__excerpt p{ color: var(--ink-soft); }
.bvm-leistung-row__body{ border-top: 1px solid var(--line); padding-top: 1.5rem; }

/* =========================================================
   Slider — structurally distinct horizontal section
   ========================================================= */
.bvm-slider{ background: var(--primary-live); color: var(--bg); padding: 6rem 0 5rem; }
.bvm-section__head--inverse h2{ color: var(--bg); }
.bvm-section__head--inverse{ max-width: 1280px; margin: 0 auto 2.5rem; padding: 0 2rem; }
.bvm-slider__track{
	display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory;
	padding: 0 2rem 1rem; max-width: 1280px; margin: 0 auto;
	scrollbar-width: none;
}
.bvm-slider__track::-webkit-scrollbar{ display: none; }
.bvm-slide{
	flex: 0 0 min(560px, 82vw); scroll-snap-align: start;
	background: var(--primary-soft); border-radius: var(--radius);
	overflow: hidden;
}
.bvm-slide__img{ width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.bvm-slide__caption{ padding: 1.3rem 1.5rem; }
.bvm-slide__caption h3{ color: var(--bg); margin-bottom: .3rem; }
.bvm-slide__caption p{ color: oklch(0.9 0.01 90); font-size: .95rem; margin: 0; }
.bvm-slider__controls{ display: flex; gap: .8rem; max-width: 1280px; margin: 1.5rem auto 0; padding: 0 2rem; }
.bvm-slider__btn{
	width: 44px; height: 44px; border-radius: 50%; border: 1px solid oklch(1 0 0 / 0.25);
	background: transparent; color: var(--bg); display: flex; align-items: center; justify-content: center;
	cursor: pointer; transition: background-color var(--dur-fast) var(--ease-out);
}
.bvm-slider__btn:hover{ background: oklch(1 0 0 / 0.1); }
.bvm-rotate-90{ transform: rotate(90deg); }
.bvm-rotate-270{ transform: rotate(-90deg); }

/* =========================================================
   Technik — cross-section diagram + counters
   ========================================================= */
.bvm-technik{
	max-width: 1280px; margin: 0 auto; padding: 6.5rem 2rem;
	display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: center;
}
.bvm-technik__svg{ width: 100%; max-width: 420px; color: var(--primary-live); }
.bvm-technik__body p{ color: var(--ink-soft); }
.bvm-counters{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.bvm-counter{ border-top: 2px solid var(--accent-live); padding-top: 1rem; }
.bvm-counter__value{ display: block; font-family: var(--font-display); font-size: clamp(2rem, 1.6rem + 1vw, 2.6rem); font-weight: 600; color: var(--primary-live); }
.bvm-counter__label{ font-size: .88rem; color: var(--ink-soft); }

/* =========================================================
   CTA band — airy close
   ========================================================= */
.bvm-cta-band{
	max-width: 760px; margin: 0 auto; padding: 8rem 2rem 9rem;
	text-align: center;
}
.bvm-cta-band p{ margin: 0 auto 2rem; color: var(--ink-soft); }

/* =========================================================
   Footer
   ========================================================= */
.bvm-footer{ background: var(--primary-live); color: oklch(0.9 0.01 90); }
.bvm-footer__top{
	max-width: 1280px; margin: 0 auto; padding: 5rem 2rem 3rem;
	display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 3rem;
}
.bvm-footer .bvm-brand__name{ color: var(--bg); }
.bvm-footer__claim{ color: oklch(0.8 0.01 90); margin-top: 1rem; max-width: 32ch; }
.bvm-footer__heading{ font-size: 1rem; color: var(--bg); margin-bottom: 1.2rem; }
.bvm-footer__col .bvm-footer__line{ display: flex; align-items: center; gap: .6rem; margin: 0 0 .8rem; flex-shrink: 0; }
.bvm-footer__col .bvm-footer__line .icon{ color: var(--accent-live); flex-shrink: 0; }
.bvm-footer__list{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.bvm-footer__list a:hover{ color: var(--accent-live); }
.bvm-footer__bottom{ border-top: 1px solid oklch(1 0 0 / 0.12); padding: 1.5rem 2rem; text-align: center; font-size: .85rem; max-width: 1280px; margin: 0 auto; }

/* =========================================================
   Generic page content (subpages)
   ========================================================= */
.bvm-page-hero{ max-width: 1280px; margin: 0 auto; padding: 5rem 2rem 3rem; }
.bvm-page-hero__sub{ color: var(--ink-soft); max-width: 60ch; font-size: 1.1rem; }
.bvm-page-content{ max-width: 1280px; margin: 0 auto; padding: 0 2rem 7rem; }
.bvm-page-content > *{ max-width: 72ch; }
.bvm-page-content h2{ margin-top: 2.5rem; }
.bvm-page-content ul,.bvm-page-content ol{ padding-left: 1.3rem; }
.bvm-page-content ul:not(.wp-block-list) li,.bvm-page-content ol:not(.wp-block-list) li{ margin-bottom: .5rem; }
.bvm-page-content .wp-block-columns{ gap: 2rem; }
.bvm-page-content--legal{ font-size: 1rem; }
.bvm-page-content--legal > *{ max-width: 68ch; }

/* Service detail pages: hero image band */
.bvm-detail-media{ max-width: 1280px; margin: 0 auto 3rem; padding: 0 2rem; }
.bvm-detail-media img{ width: 100%; aspect-ratio: 21/9; object-fit: cover; border-radius: var(--radius-feature); }

/* =========================================================
   Scroll reveal — transform only, never opacity:0 at rest
   ========================================================= */
.reveal{ transform: translateY(22px); transition: transform 560ms var(--ease-out); }
.reveal.is-visible{ transform: translateY(0); }

@media (prefers-reduced-motion: reduce){
	*{ transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
	.reveal{ transform: none; }
	html{ scroll-behavior: auto; }
}

/* =========================================================
   Breakpoints
   ========================================================= */
@media (max-width: 900px){
	.bvm-nav{ display: none; }
	.bvm-header__phone{ display: none; }
	.bvm-header__damage{ display: none; }
	.bvm-burger{ display: inline-flex; }
	.bvm-header{ backdrop-filter: none; }

	.bvm-hero{ grid-template-columns: 1fr; padding-bottom: 7rem; }
	.bvm-hero__media{ margin-bottom: -4.5rem; }
	.bvm-leistung-row{ grid-template-columns: 1fr; direction: ltr; }
	.bvm-leistung-row--reverse{ direction: ltr; }
	.bvm-leistung-row__media{ order: -1; }

	.bvm-technik{ grid-template-columns: 1fr; gap: 2.5rem; }
	.bvm-technik__diagram{ max-width: 280px; margin: 0 auto; }

	.bvm-footer__top{ grid-template-columns: 1fr 1fr; gap: 2.5rem; }
	.bvm-footer__brand{ grid-column: 1 / -1; }
}

@media (max-width: 600px){
	.bvm-header__inner{ padding: .9rem 1.2rem; }
	.bvm-hero,.bvm-leistungen,.bvm-technik,.bvm-page-hero,.bvm-page-content{ padding-left: 1.2rem; padding-right: 1.2rem; }
	.bvm-cta-band{ padding: 5rem 1.2rem 6rem; }
	h1{ font-size: clamp(2.1rem, 1.6rem + 4vw, 2.8rem); }
	.bvm-hero__media{ margin-bottom: -3rem; }
	.bvm-counters{ grid-template-columns: 1fr; gap: 1.2rem; }
	.bvm-footer__top{ grid-template-columns: 1fr; padding: 3.5rem 1.2rem 2rem; }
	.bvm-slide{ flex-basis: 85vw; }
	.bvm-sticky-cta span{ display: none; }
	.bvm-sticky-cta{ padding: .9rem; border-radius: 50%; }
}

/* Desktop/tablet squeeze-zone guard (900-1250px nav crowding) */
@media (min-width: 901px) and (max-width: 1250px){
	.bvm-nav__list{ gap: 1.1rem; }
	.bvm-header__inner{ gap: 1.2rem; }
	.bvm-brand__name{ font-size: .82rem; }
}
