/*
Theme Name: Holzbau Westhoff
Theme URI: https://holzbau-westhoff.de
Author: Holzbau Westhoff
Description: Eigenes Theme für Holzbau Westhoff, Delbrück. Schlicht, schnell und mit dezenten Animationen. Ohne Page-Builder, ohne externe Schriften (DSGVO-freundlich).
Version: 1.3.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: westhoff
*/

/* ------------------------------------------------------------------
   1. Grundlagen
------------------------------------------------------------------- */
@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	src: url(assets/fonts/archivo-latin-wdth-normal.woff2) format("woff2-variations"), url(assets/fonts/archivo-latin-wdth-normal.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	src: url(assets/fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2-variations"), url(assets/fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--wh-blue: #009ee3;
	--wh-blue-dark: #0083bd;
	--wh-brown: #3b322d;
	--wh-brown-soft: #6b5f57;
	--wh-sand: #f5f3f0;
	--wh-line: #e7e2dd;
	--wh-white: #fff;
	--wh-font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--wh-wide: 1320px;
	--wh-text: 760px;
	--wh-gutter: clamp(20px, 4vw, 48px);
	--wh-header: 96px;
	--wh-ease: cubic-bezier(.2, .7, .2, 1);
	--wh-radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
	margin: 0;
	font-family: var(--wh-font);
	font-size: 17px;
	line-height: 1.65;
	color: var(--wh-brown);
	background: var(--wh-white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a { color: var(--wh-blue-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--wh-brown); }

h1, h2, h3, h4 {
	font-stretch: 112%;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: .005em;
	color: var(--wh-brown);
	margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
p { margin: 0 0 1.1em; }
strong { font-weight: 650; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 9999; top: 8px; left: 8px;
	background: var(--wh-white); padding: 10px 16px; color: var(--wh-brown);
}
:focus-visible { outline: 3px solid var(--wh-blue); outline-offset: 3px; }

.wh-wrap { max-width: var(--wh-wide); margin: 0 auto; padding: 0 var(--wh-gutter); }

.wh-eyebrow {
	display: inline-block;
	font-size: .8rem;
	font-weight: 600;
	font-stretch: 115%;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--wh-blue);
	margin-bottom: 14px;
}
.wh-eyebrow::before {
	content: "";
	display: inline-block;
	width: 28px; height: 2px;
	background: currentColor;
	vertical-align: middle;
	margin: -3px 12px 0 0;
}

/* Buttons */
.wh-btn, .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 15px 24px 14px;
	border: 2px solid var(--wh-blue);
	border-radius: var(--wh-radius);
	background: var(--wh-blue);
	color: var(--wh-white);
	font-family: var(--wh-font);
	font-size: .95rem;
	font-weight: 650;
	font-stretch: 110%;
	line-height: 1;
	letter-spacing: .02em;
	text-decoration: none;
	cursor: pointer;
	transition: background .25s var(--wh-ease), border-color .25s, color .25s, transform .25s var(--wh-ease);
}
.wh-btn:hover, .wp-block-button__link:hover { background: var(--wh-brown); border-color: var(--wh-brown); color: var(--wh-white); transform: translateY(-2px); }
.wh-btn svg { width: 18px; height: 18px; transition: transform .25s var(--wh-ease); }
.wh-btn:hover svg { transform: translateX(4px); }
.wh-btn--ghost { background: transparent; border-color: rgba(255,255,255,.75); }
.wh-btn--ghost:hover { background: var(--wh-white); border-color: var(--wh-white); color: var(--wh-brown); }
.wh-btn--light { background: var(--wh-white); border-color: var(--wh-white); color: var(--wh-blue-dark); }
.wh-btn--light:hover { background: var(--wh-brown); border-color: var(--wh-brown); }
.wh-btn--small { padding: 11px 16px 10px; font-size: .85rem; }

/* ------------------------------------------------------------------
   2. Header & Menü
------------------------------------------------------------------- */
.wh-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	height: var(--wh-header);
	background: rgba(255,255,255,.97);
	transition: height .35s var(--wh-ease), box-shadow .35s;
}
.admin-bar .wh-header { top: 32px; }
.wh-header.is-scrolled { --wh-header: 72px; box-shadow: 0 6px 24px rgba(59,50,45,.08); }
.wh-header__inner {
	height: 100%;
	max-width: var(--wh-wide);
	margin: 0 auto;
	padding: 0 var(--wh-gutter);
	display: flex;
	align-items: center;
	gap: 24px;
}
.wh-logo { display: block; margin-right: auto; }
.wh-logo img { height: 72px; width: auto; transition: height .35s var(--wh-ease); }
.is-scrolled .wh-logo img { height: 50px; }

.wh-header__quick { display: flex; align-items: center; gap: 28px; }
.wh-header__quick a.wh-quicklink {
	color: var(--wh-brown);
	text-decoration: none;
	font-weight: 600;
	font-size: .95rem;
	position: relative;
}
.wh-header__quick a.wh-quicklink::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
	background: var(--wh-blue); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--wh-ease);
}
.wh-header__quick a.wh-quicklink:hover::after,
.wh-header__quick a.wh-quicklink[aria-current="page"]::after { transform: scaleX(1); }

.wh-toggle {
	display: inline-flex; align-items: center; gap: 12px;
	background: none; border: 0; padding: 8px 0; cursor: pointer;
	font: 600 .95rem/1 var(--wh-font); color: var(--wh-brown);
}
.wh-toggle__bars { position: relative; width: 30px; height: 18px; }
.wh-toggle__bars span {
	position: absolute; left: 0; width: 100%; height: 3px; background: var(--wh-blue); border-radius: 2px;
	transition: transform .35s var(--wh-ease), opacity .2s, top .35s var(--wh-ease);
}
.wh-toggle__bars span:nth-child(1) { top: 0; }
.wh-toggle__bars span:nth-child(2) { top: 7.5px; width: 70%; left: 30%; }
.wh-toggle__bars span:nth-child(3) { top: 15px; }
.wh-toggle:hover .wh-toggle__bars span:nth-child(2) { width: 100%; left: 0; }
.menu-open .wh-toggle__bars span:nth-child(1) { top: 7.5px; transform: rotate(45deg); }
.menu-open .wh-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-open .wh-toggle__bars span:nth-child(3) { top: 7.5px; transform: rotate(-45deg); }

.wh-menu {
	position: fixed;
	inset: var(--wh-header) 0 0 0;
	z-index: 99;
	background: var(--wh-blue);
	color: var(--wh-white);
	overflow-y: auto;
	clip-path: inset(0 0 100% 0);
	visibility: hidden;
	transition: clip-path .6s var(--wh-ease), visibility 0s .6s, inset .35s var(--wh-ease);
}
.admin-bar .wh-menu { top: calc(var(--wh-header) + 32px); }
.menu-open .wh-menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .6s var(--wh-ease), visibility 0s, inset .35s var(--wh-ease); }
.menu-open { overflow: hidden; }
.wh-menu__inner {
	max-width: var(--wh-wide);
	margin: 0 auto;
	padding: clamp(32px, 6vh, 72px) var(--wh-gutter) 48px;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 40px;
}
.wh-menu h2 {
	color: rgba(255,255,255,.7);
	font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
	margin-bottom: 18px;
}
.wh-menu ul { list-style: none; margin: 0; padding: 0; }
.wh-menu li {
	opacity: 0; transform: translateY(14px);
	transition: opacity .45s var(--wh-ease), transform .45s var(--wh-ease);
}
.menu-open .wh-menu li { opacity: 1; transform: none; }
.wh-menu a {
	display: inline-block; padding: 5px 0;
	color: var(--wh-white); text-decoration: none; font-size: 1.15rem; font-weight: 500;
	position: relative; transition: transform .25s var(--wh-ease);
}
.wh-menu a:hover, .wh-menu .current-menu-item > a { transform: translateX(10px); }
.wh-menu a::before {
	content: ""; position: absolute; left: -22px; top: 50%; width: 12px; height: 2px; background: var(--wh-white);
	transform: scaleX(0); transform-origin: right; transition: transform .25s var(--wh-ease);
}
.wh-menu a:hover::before, .wh-menu .current-menu-item > a::before { transform: scaleX(1); }
.wh-menu__col--main a { font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 700; font-stretch: 112%; padding: 4px 0; }
.wh-menu__contact {
	grid-column: 1 / -1;
	border-top: 1px solid rgba(255,255,255,.3);
	padding-top: 28px;
	display: flex; flex-wrap: wrap; gap: 12px 40px; font-size: 1rem;
}
.wh-menu__contact a { font-size: 1rem; font-weight: 600; }

main { padding-top: var(--wh-header); }
.admin-bar main { padding-top: calc(var(--wh-header)); }
body:not(.home) main { padding-top: 96px; }

/* ------------------------------------------------------------------
   3. Startseite
------------------------------------------------------------------- */
.wh-hero {
	position: relative;
	min-height: min(88vh, 860px);
	display: flex;
	align-items: flex-end;
	color: var(--wh-white);
	overflow: hidden;
	background: var(--wh-brown);
	margin-top: 96px;
}
.home main { padding-top: 0; }
.wh-hero__media { position: absolute; inset: -12% 0; }
.wh-hero__media img {
	width: 100%; height: 100%; object-fit: cover;
	transform: scale(1.12);
	animation: wh-kenburns 14s var(--wh-ease) forwards;
}
@keyframes wh-kenburns { to { transform: scale(1); } }
.wh-hero::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(30,24,20,.72) 0%, rgba(30,24,20,.35) 45%, rgba(30,24,20,0) 75%),
	            linear-gradient(0deg, rgba(30,24,20,.55) 0%, rgba(30,24,20,0) 45%);
}
.wh-hero__content {
	position: relative; z-index: 2;
	width: 100%; max-width: var(--wh-wide); margin: 0 auto;
	padding: 0 var(--wh-gutter) clamp(56px, 10vh, 110px);
}
.wh-hero .wh-eyebrow { color: var(--wh-white); }
.wh-hero h1 {
	color: var(--wh-white);
	font-size: clamp(2.4rem, 6.2vw, 5.4rem);
	font-stretch: 118%;
	max-width: 13ch;
	margin-bottom: 22px;
}
.wh-hero h1 .wh-line { display: block; overflow: hidden; }
.wh-hero h1 .wh-line > span { display: inline-block; transform: translateY(105%); animation: wh-rise 1s var(--wh-ease) forwards; }
.wh-hero h1 .wh-line:nth-child(2) > span { animation-delay: .12s; }
@keyframes wh-rise { to { transform: none; } }
.wh-hero__lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); max-width: 40ch; margin-bottom: 32px; opacity: 0; animation: wh-fade 1s .45s var(--wh-ease) forwards; }
.wh-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; opacity: 0; animation: wh-fade 1s .6s var(--wh-ease) forwards; }
.wh-hero .wh-eyebrow { opacity: 0; animation: wh-fade .8s .1s var(--wh-ease) forwards; }
@keyframes wh-fade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.wh-scroll {
	position: absolute; z-index: 2; right: var(--wh-gutter); bottom: 40px;
	display: flex; flex-direction: column; align-items: center; gap: 10px;
	color: var(--wh-white); text-decoration: none; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
	writing-mode: vertical-rl;
}
.wh-scroll::after {
	content: ""; width: 2px; height: 60px; background: linear-gradient(var(--wh-white) 50%, rgba(255,255,255,.25) 50%);
	background-size: 100% 200%; animation: wh-scrollline 2s linear infinite;
}
@keyframes wh-scrollline { from { background-position: 0 100%; } to { background-position: 0 -100%; } }

/* Zahlen */
.wh-facts { background: var(--wh-white); border-bottom: 1px solid var(--wh-line); }
.wh-facts__grid {
	display: grid; grid-template-columns: repeat(4, 1fr);
}
.wh-fact { padding: 40px 24px 36px; border-left: 1px solid var(--wh-line); }
.wh-fact:first-child { border-left: 0; padding-left: 0; }
.wh-fact__num {
	display: block;
	font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 750; font-stretch: 118%; line-height: 1;
	color: var(--wh-blue); margin-bottom: 10px; font-variant-numeric: tabular-nums;
}
.wh-fact__label { font-size: .95rem; color: var(--wh-brown-soft); }

/* Abschnitte */
.wh-section { padding: clamp(64px, 10vw, 128px) 0; }
.wh-section--sand { background: var(--wh-sand) url(assets/img/grunge-background.png) center top / 100% auto no-repeat; }
.wh-section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(32px, 5vw, 56px); }
.wh-section__head h2 { margin: 0; max-width: 18ch; }
.wh-section__head p { max-width: 46ch; margin: 0; color: var(--wh-brown-soft); }

/* Leistungs-Kacheln */
.wh-tiles {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
	list-style: none; margin: 0; padding: 0;
}
.wh-tile a {
	position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5;
	color: var(--wh-white); text-decoration: none; background: var(--wh-brown); border-radius: var(--wh-radius);
}
.wh-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--wh-ease); }
.wh-tile a::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(0deg, rgba(30,24,20,.78) 0%, rgba(30,24,20,.1) 55%, rgba(30,24,20,0) 100%);
	transition: opacity .4s;
}
.wh-tile__label {
	position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 20px;
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	font-size: 1.2rem; font-weight: 700; font-stretch: 112%;
}
.wh-tile__label::before {
	content: ""; position: absolute; left: 0; top: -14px; height: 3px; width: 32px; background: var(--wh-blue);
	transition: width .5s var(--wh-ease);
}
.wh-tile__arrow {
	flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--wh-blue);
	display: grid; place-items: center; transform: translateX(-6px); opacity: 0;
	transition: transform .4s var(--wh-ease), opacity .4s;
}
.wh-tile__arrow svg { width: 16px; height: 16px; }
.wh-tile a:hover img, .wh-tile a:focus-visible img { transform: scale(1.07); }
.wh-tile a:hover .wh-tile__label::before { width: 100%; }
.wh-tile a:hover .wh-tile__arrow, .wh-tile a:focus-visible .wh-tile__arrow { transform: none; opacity: 1; }

/* Aus einer Hand */
.wh-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.wh-split__media { position: relative; z-index: 0; }
.wh-split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--wh-radius); }
.wh-split__media::before {
	content: ""; position: absolute; z-index: -1; inset: 28px -28px -28px 28px; border: 3px solid var(--wh-blue); border-radius: var(--wh-radius);
}
.wh-checks { list-style: none; padding: 0; margin: 28px 0 36px; display: grid; gap: 14px; }
.wh-checks li { position: relative; padding-left: 38px; }
.wh-checks li::before {
	content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
	background: var(--wh-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Objekt-Pills */
.wh-pills { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 0; }
.wh-pills a {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 13px 20px; border: 2px solid var(--wh-line); border-radius: 100px;
	color: var(--wh-brown); text-decoration: none; font-weight: 600; background: var(--wh-white);
	transition: border-color .25s, background .25s, color .25s, transform .25s var(--wh-ease);
}
.wh-pills a:hover { border-color: var(--wh-blue); background: var(--wh-blue); color: var(--wh-white); transform: translateY(-3px); }

/* Projekt-Laufband */
.wh-marquee { overflow: hidden; padding: 4px 0; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.wh-marquee__track { display: flex; gap: 18px; width: max-content; animation: wh-marquee 60s linear infinite; }
.wh-marquee:hover .wh-marquee__track { animation-play-state: paused; }
.wh-marquee figure { margin: 0; position: relative; width: clamp(260px, 30vw, 420px); aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--wh-radius); background: var(--wh-line); }
.wh-marquee img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--wh-ease); }
.wh-marquee figure:hover img { transform: scale(1.05); }
.wh-marquee figcaption {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; color: var(--wh-white); font-size: .9rem; font-weight: 600;
	background: linear-gradient(0deg, rgba(30,24,20,.75), rgba(30,24,20,0));
}
@keyframes wh-marquee { to { transform: translateX(calc(-50% - 9px)); } }

/* Team-Band */
.wh-team {
	position: relative; min-height: 560px; display: flex; align-items: center; color: var(--wh-white); overflow: hidden;
}
.wh-team__bg { position: absolute; inset: -20% 0; }
.wh-team__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.wh-team::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,24,20,.8), rgba(30,24,20,.2) 70%); }
.wh-team .wh-wrap { position: relative; z-index: 2; width: 100%; }
.wh-team h2 { color: var(--wh-white); font-size: clamp(2.2rem, 5vw, 4rem); font-stretch: 118%; margin-bottom: 16px; }
.wh-team p { max-width: 44ch; font-size: 1.1rem; }
.wh-team .wh-hero__actions { opacity: 1; animation: none; }

/* Kontakt-Band */
.wh-cta { background: var(--wh-blue); color: var(--wh-white); padding: clamp(56px, 8vw, 96px) 0; position: relative; overflow: hidden; }
.wh-cta .wh-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; position: relative; }
.wh-cta h2 { color: var(--wh-white); margin-bottom: 12px; }
.wh-cta p { margin: 0; font-size: 1.1rem; opacity: .92; }
.wh-cta__phone { display: block; color: var(--wh-white); text-decoration: none; font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 750; font-stretch: 115%; margin-bottom: 14px; }
.wh-cta__phone:hover { color: var(--wh-brown); }
.wh-insta, .wh-menu a.wh-insta, .wh-footer a.wh-insta { display: inline-flex; align-items: center; gap: 8px; }
.wh-insta svg { width: 18px; height: 18px; flex: none; }
.wh-cta__insta { color: var(--wh-white); text-decoration: none; font-weight: 600; margin-left: 18px; }
.wh-cta__insta:hover { color: var(--wh-brown); }

/* ------------------------------------------------------------------
   4. Unterseiten
------------------------------------------------------------------- */
.wh-pagehead {
	position: relative; overflow: hidden; background: var(--wh-brown);
	min-height: clamp(280px, 42vw, 520px); display: flex; align-items: flex-end; color: var(--wh-white);
}
.wh-pagehead__media { position: absolute; inset: -18% 0; }
.wh-pagehead__media img { width: 100%; height: 100%; object-fit: cover; }
.wh-pagehead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(30,24,20,.7) 0%, rgba(30,24,20,.1) 60%); }
.wh-pagehead .wh-wrap { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(32px, 5vw, 64px); }
.wh-pagehead h1 { color: var(--wh-white); margin: 0; max-width: 20ch; }
.wh-pagehead p { margin: 12px 0 0; font-size: 1.15rem; max-width: 50ch; opacity: .95; }
.wh-pagehead--plain { background: var(--wh-sand) url(assets/img/grunge-background.png) center top / 100% auto no-repeat; color: var(--wh-brown); min-height: 0; padding-top: clamp(48px, 8vw, 96px); }
.wh-pagehead--plain::after { display: none; }
.wh-pagehead--plain h1 { color: var(--wh-brown); }
.wh-pagehead--split { background: var(--wh-sand) url(assets/img/grunge-background.png) center top / 100% auto no-repeat; color: var(--wh-brown); min-height: 0; padding: clamp(40px, 6vw, 80px) 0; }
.wh-pagehead--split::after { display: none; }
.wh-pagehead--split h1 { color: var(--wh-brown); }
.wh-pagehead__split { display: grid; grid-template-columns: 1fr minmax(0, 640px); gap: clamp(28px, 5vw, 72px); align-items: center; width: 100%; }
.wh-pagehead__img { order: 2; position: relative; z-index: 0; }
.wh-pagehead__img img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--wh-radius); }
.wh-pagehead__img::before { content: ""; position: absolute; z-index: -1; inset: 20px -20px -20px 20px; border: 3px solid var(--wh-blue); border-radius: var(--wh-radius); }

.wh-breadcrumb { font-size: .85rem; margin-bottom: 14px; opacity: .85; }
.wh-breadcrumb a { color: inherit; text-decoration: none; }
.wh-breadcrumb a:hover { text-decoration: underline; }

/* Seiteninhalt aus dem Editor */
.wh-content { padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); }
.wh-content > * { max-width: var(--wh-wide); margin-left: auto; margin-right: auto; padding-left: var(--wh-gutter); padding-right: var(--wh-gutter); }
.wh-content > p, .wh-content > ul, .wh-content > ol, .wh-content > h2, .wh-content > h3, .wh-content > h4,
.wh-content > .wh-narrow { max-width: calc(var(--wh-text) + 2 * var(--wh-gutter)); }
.wh-content > h2 { margin-top: clamp(56px, 7vw, 96px); }
.wh-content > h2:first-child { margin-top: 0; }
.wh-content > h2 + p.wh-sub, .wh-content p.wh-sub { color: var(--wh-blue); font-weight: 600; margin-top: -10px; }
.wh-content > .wp-block-columns { gap: clamp(24px, 4vw, 64px); }
.wh-content .wh-intro { font-size: 1.15rem; }
.wh-content .wh-intro p:first-child::first-line { font-weight: 600; }

/* Galerien */
.wh-content .wp-block-gallery.has-nested-images {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-top: 28px; margin-bottom: 28px;
}
.wh-content .wp-block-gallery.has-nested-images figure.wp-block-image {
	width: auto !important; margin: 0 !important; position: relative; overflow: hidden; border-radius: var(--wh-radius);
	aspect-ratio: 3 / 2; background: var(--wh-line);
}
.wh-content .wp-block-gallery.has-nested-images figure.wp-block-image img {
	width: 100%; height: 100% !important; object-fit: cover; transition: transform .9s var(--wh-ease);
}
.wh-content .wp-block-gallery.has-nested-images figure.wp-block-image a { display: block; height: 100%; cursor: zoom-in; }
.wh-content .wp-block-gallery.has-nested-images figure.wp-block-image:hover img { transform: scale(1.06); }
.wh-content .wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	position: absolute; left: 0; right: 0; bottom: 0; margin: 0; max-height: none;
	padding: 36px 14px 12px; text-align: left; font-size: .88rem; font-weight: 600; line-height: 1.35;
	color: var(--wh-white); background: linear-gradient(0deg, rgba(30,24,20,.8), rgba(30,24,20,0));
	pointer-events: none;
	transform: translateY(6px); opacity: .92; transition: transform .4s var(--wh-ease), opacity .4s;
}
.wh-content .wp-block-gallery.has-nested-images figure.wp-block-image:hover figcaption { transform: none; opacity: 1; }

/* Buttons und Listen im Inhalt */
.wh-content > .wp-block-buttons { max-width: calc(var(--wh-text) + 2 * var(--wh-gutter)); margin-top: 32px; margin-bottom: 32px; }
.wh-content > ul.wp-block-list { padding-left: calc(var(--wh-gutter) + 1.2em); }
.wh-content > ul.wp-block-list li::marker { color: var(--wh-blue); }

/* Stellenangebote */
.wh-content .wh-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 28px); margin-top: 40px; margin-bottom: 40px; }
.wh-content .wh-card {
	background: var(--wh-sand); border-radius: var(--wh-radius); padding: clamp(24px, 3vw, 40px); border-top: 4px solid var(--wh-blue);
	transition: transform .4s var(--wh-ease), box-shadow .4s var(--wh-ease);
}
.wh-content .wh-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(59,50,45,.45); }
.wh-content .wh-card h3 { margin: 0 0 18px; font-size: 1.3rem; }
.wh-content .wh-card__row { margin: 0 0 12px; }
.wh-content .wh-card__row strong { color: var(--wh-blue-dark); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.wh-content .wh-card__claim { margin: 20px 0 0; font-weight: 700; font-stretch: 110%; font-size: 1.1rem; }
.wh-content .wh-cards__contact { font-size: 1.15rem; font-weight: 600; }
.wh-content .wh-cards__contact a { color: var(--wh-blue-dark); }

/* Zeitstrahl Historie */
.wh-content .wh-timeline { position: relative; max-width: calc(980px + 2 * var(--wh-gutter)); }
.wh-content .wh-timeline::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: calc(var(--wh-gutter) + 9px); width: 3px; background: var(--wh-line); }
.wh-content .wh-timeline__item {
	position: relative; display: grid; grid-template-columns: 240px 1fr; grid-template-rows: auto 1fr; column-gap: 32px;
	padding: 0 0 48px 48px;
}
.wh-content .wh-timeline__item::before {
	content: ""; position: absolute; left: 0; top: 4px; width: 21px; height: 21px; border-radius: 50%;
	background: var(--wh-white); border: 4px solid var(--wh-blue); box-sizing: border-box;
}
.wh-content .wh-timeline__item > figure { grid-row: 1 / span 2; margin: 0; border-radius: var(--wh-radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--wh-line); }
.wh-content .wh-timeline__item > figure a { display: block; height: 100%; cursor: zoom-in; }
.wh-content .wh-timeline__item > figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--wh-ease); }
.wh-content .wh-timeline__item > figure:hover img { transform: scale(1.06); }
.wh-content .wh-timeline__item > h3 { margin: 0 0 6px; color: var(--wh-blue); font-size: 1.6rem; font-stretch: 115%; }
.wh-content .wh-timeline__item > p { margin: 0; }
.wh-content .wh-timeline__item:not(:has(figure)) { grid-template-columns: 1fr; }

/* Team */
.wh-content .wh-team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; margin-bottom: 40px; }
.wh-content .wh-person {
	position: relative; background: var(--wh-sand); border-radius: var(--wh-radius); padding: 22px 20px 20px; overflow: hidden;
	transition: background .3s var(--wh-ease), color .3s;
}
.wh-content .wh-person::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--wh-blue); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--wh-ease); }
.wh-content .wh-person:hover::after { transform: scaleX(1); }
.wh-content .wh-person h3 { margin: 0 0 4px; font-size: 1.05rem; }
.wh-content .wh-person p { margin: 0; font-size: .9rem; color: var(--wh-brown-soft); line-height: 1.45; }
.wh-content .wh-person > figure.wp-block-image,
.wh-content .wh-person--nophoto::before { display: block; margin: -22px -20px 18px; aspect-ratio: 3 / 2; overflow: hidden; background: #e7e2db; }
.wh-content .wh-person > figure.wp-block-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--wh-ease); }
.wh-content .wh-person:hover > figure.wp-block-image img { transform: scale(1.05); }
.wh-content .wh-person--nophoto::before { content: ""; background: #e7e2db url(assets/img/logo.png) center / 46% auto no-repeat; opacity: .55; }

/* Kontakt */
.wh-content .wh-contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.wh-contact h2 { margin-top: 0; }
.wh-contact__address { font-size: 1.1rem; }
.wh-contact__list { list-style: none; margin: 0 0 28px; padding: 0; }
.wh-contact__list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--wh-line); }
.wh-contact__list svg { width: 20px; height: 20px; color: var(--wh-blue); flex: none; }
.wh-contact__list a { color: inherit; text-decoration: none; font-weight: 600; }
.wh-contact__list a:hover { color: var(--wh-blue-dark); }
.wh-contact__label { width: 20px; font-size: .7rem; font-weight: 700; color: var(--wh-blue); text-transform: uppercase; }
.wh-contact .wh-btn--ghost { border-color: var(--wh-blue); color: var(--wh-blue-dark); }
.wh-contact .wh-btn--ghost:hover { background: var(--wh-blue); color: var(--wh-white); }
.wh-contact__form { background: var(--wh-sand); border-radius: var(--wh-radius); padding: clamp(24px, 4vw, 48px); }
.wh-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.wh-field { margin-bottom: 18px; }
.wh-field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.wh-field input, .wh-field select, .wh-field textarea {
	width: 100%; font: inherit; color: inherit; background: var(--wh-white);
	border: 1px solid #d8d1ca; border-radius: var(--wh-radius); padding: 12px 14px;
	transition: border-color .2s, box-shadow .2s;
}
.wh-field textarea { resize: vertical; min-height: 140px; }
.wh-field input:focus, .wh-field select:focus, .wh-field textarea:focus { outline: none; border-color: var(--wh-blue); box-shadow: 0 0 0 3px rgba(0,158,227,.2); }
.wh-field--hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wh-check { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; line-height: 1.5; margin: 4px 0 24px; cursor: pointer; }
.wh-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--wh-blue); }
.wh-check a { color: var(--wh-blue-dark); }
.wh-form__note { font-size: .8rem; color: var(--wh-brown-soft); margin: 14px 0 0; }
.wh-notice { padding: 14px 18px; border-radius: var(--wh-radius); margin-bottom: 22px; font-weight: 600; }
.wh-notice--ok { background: #e3f4ea; color: #1d6b3c; }
.wh-notice--error { background: #fbe6e3; color: #9b2c1d; }

.wh-content > .wh-map { margin-top: clamp(48px, 6vw, 80px); }
.wh-map__consent, .wh-map iframe { width: 100%; height: clamp(320px, 42vw, 460px); border: 0; border-radius: var(--wh-radius); display: block; }
.wh-map__consent {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px;
	background: var(--wh-sand) url(assets/img/grunge-background.png) center / cover;
}
.wh-map__consent > svg { width: 40px; height: 40px; color: var(--wh-blue); }
.wh-map__consent p { max-width: 46ch; margin: 0 0 8px; font-size: .92rem; }
.wh-map__consent a { color: var(--wh-blue-dark); }

/* ------------------------------------------------------------------
   5. Lightbox
------------------------------------------------------------------- */
.wh-lightbox {
	position: fixed; inset: 0; z-index: 1000; background: rgba(20,16,14,.97);
	display: grid; grid-template-rows: 1fr auto; place-items: center;
	opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s;
}
.wh-lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .35s, visibility 0s; }
.wh-lightbox__stage { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 64px 72px 0; }
.wh-lightbox img {
	max-width: 100%; max-height: calc(100vh - 160px); width: auto; object-fit: contain; border-radius: 2px;
	transform: scale(.96); opacity: 0; transition: transform .45s var(--wh-ease), opacity .45s;
}
.wh-lightbox.is-loaded img { transform: none; opacity: 1; }
.wh-lightbox__caption { color: var(--wh-white); padding: 18px 24px 28px; text-align: center; font-weight: 600; }
.wh-lightbox__caption span { opacity: .6; font-weight: 400; margin-left: 12px; }
.wh-lightbox button {
	position: absolute; background: rgba(255,255,255,.08); border: 0; color: var(--wh-white); cursor: pointer;
	width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; transition: background .2s;
}
.wh-lightbox button:hover { background: var(--wh-blue); }
.wh-lightbox button svg { width: 22px; height: 22px; }
.wh-lightbox__close { top: 16px; right: 16px; }
.wh-lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.wh-lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ------------------------------------------------------------------
   6. Footer
------------------------------------------------------------------- */
.wh-footer { background: var(--wh-brown); color: rgba(255,255,255,.82); padding: clamp(56px, 7vw, 88px) 0 28px; font-size: .95rem; }
.wh-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.wh-footer a:hover { color: var(--wh-blue); }
.wh-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.wh-footer__logo img { width: 220px; margin-bottom: 20px; }
.wh-footer h2 { color: var(--wh-white); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: 16px; }
.wh-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wh-footer address { font-style: normal; }
.wh-footer__bottom {
	margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15);
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: rgba(255,255,255,.6);
}
.wh-footer__bottom ul { display: flex; gap: 22px; }
.wh-totop {
	position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
	background: var(--wh-blue); color: var(--wh-white); border: 0; cursor: pointer; display: grid; place-items: center;
	box-shadow: 0 6px 18px rgba(0,0,0,.18); opacity: 0; transform: translateY(16px); pointer-events: none;
	transition: opacity .3s, transform .3s var(--wh-ease), background .2s;
}
.wh-totop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wh-totop:hover { background: var(--wh-brown); }
.wh-totop svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------------
   7. Scroll-Animationen (nur wenn JS aktiv ist)
------------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--wh-ease), transform .9s var(--wh-ease); transition-delay: var(--wh-delay, 0s); }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js .wh-content .wp-block-gallery figure.wp-block-image { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--wh-ease), transform .7s var(--wh-ease); transition-delay: var(--wh-delay, 0s); }
.js .wh-content .wp-block-gallery figure.wp-block-image.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.wh-marquee__track { animation: none; }
	.js [data-reveal], .js .wh-content .wp-block-gallery figure.wp-block-image { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------
   8. Responsive
------------------------------------------------------------------- */
@media (max-width: 1100px) {
	.wh-tiles { grid-template-columns: repeat(2, 1fr); }
	.wh-tile a { aspect-ratio: 4 / 3; }
	.wh-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
	:root { --wh-header: 76px; }
	.wh-header.is-scrolled { --wh-header: 64px; }
	.wh-logo img { height: 50px; }
	.is-scrolled .wh-logo img { height: 40px; }
	.wh-header__quick .wh-quicklink { display: none; }
	.wh-toggle__label { display: none; }
	.wh-hero { margin-top: 76px; min-height: 78vh; }
	body:not(.home) main { padding-top: 76px; }
	.wh-menu__inner { grid-template-columns: 1fr; gap: 28px; }
	.wh-facts__grid { grid-template-columns: 1fr 1fr; }
	.wh-fact { padding: 28px 16px; border-left: 0; border-top: 1px solid var(--wh-line); }
	.wh-fact:nth-child(-n+2) { border-top: 0; }
	.wh-fact:nth-child(odd) { padding-left: 0; }
	.wh-split, .wh-cta .wh-wrap { grid-template-columns: 1fr; }
	.wh-cta__insta { display: flex; width: max-content; margin: 16px 0 0; }
	.wh-split__media::before { inset: 16px -12px -16px 12px; }
	.wh-pagehead__split { grid-template-columns: 1fr; }
	.wh-pagehead__img { order: 0; margin-right: 12px; }
	.wh-pagehead__img::before { inset: 12px -12px -12px 12px; }
	.wh-content .wp-block-gallery.has-nested-images { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.wh-scroll { display: none; }
	.wh-content .wh-cards, .wh-content .wh-contact { grid-template-columns: 1fr; }
	.wh-content .wh-team-grid { grid-template-columns: repeat(2, 1fr); }
	.wh-content .wh-timeline__item { grid-template-columns: 160px 1fr; column-gap: 20px; }
}
@media (max-width: 560px) {
	body { font-size: 16px; }
	.wh-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
	.wh-tile__label { left: 14px; right: 14px; bottom: 14px; font-size: 1rem; }
	.wh-tile__arrow { display: none; }
	.wh-header__quick .wh-btn span { display: none; }
	.wh-footer__grid { grid-template-columns: 1fr; }
	.wh-content .wp-block-gallery.has-nested-images { grid-template-columns: 1fr; }
	.wh-content .wh-timeline__item { grid-template-columns: 1fr; padding-left: 40px; }
	.wh-content .wh-timeline__item > figure { grid-row: auto; margin-bottom: 14px; }
	.wh-content .wh-team-grid { gap: 10px; }
	.wh-content .wh-person { padding: 14px 12px 14px; }
	.wh-content .wh-person > figure.wp-block-image, .wh-content .wh-person--nophoto::before { margin: -14px -12px 12px; }
	.wh-content .wh-person h3 { font-size: .95rem; }
	.wh-content .wh-person p { font-size: .82rem; }
	.wh-form__row { grid-template-columns: 1fr; }
	.wh-lightbox__stage { padding: 64px 8px 0; }
	.wh-lightbox__prev, .wh-lightbox__next { top: auto; bottom: -70px; transform: none; }
}
@media (max-width: 560px) {
	.wh-eyebrow { letter-spacing: .08em; font-size: .72rem; }
	.wh-eyebrow::before { width: 18px; margin-right: 8px; }
}
