/* ==========================================================================
   benthaus | architekten
   Ruhiges Raster: weißer Grund, warme Graustufen, die Bilder tragen die Seite.
   ========================================================================== */

@font-face {
	font-family: "Jost";
	src: url("../fonts/jost-var-latin.woff") format("woff");
	font-weight: 300 500;
	font-style: normal;
	font-display: swap;
}

:root {
	--bg: #ffffff;
	--fg: #1b1b1a;
	--muted: #6b6862;
	--soft: #4a4843;
	--faint: #9a968f;
	--line: #e2e0dc;
	--line-strong: #b9b5ae;
	--band: #f4f3f1;
	--ph: #dedbd5;
	--accent: #e30613;
	--font: "Century Gothic", "CenturyGothic", "Jost", "Futura", "Futura PT", system-ui, sans-serif;
	/* Inhalt ca. 85 % der Fensterbreite: je 7,5 % Rand links und rechts */
	--gutter: max(clamp(48px, 7.5vw, 280px), env(safe-area-inset-left, 0px));
	--gutter-r: max(clamp(48px, 7.5vw, 280px), env(safe-area-inset-right, 0px));
	--page-max: 1760px;
	--header-h: 84px;
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.5;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--fg); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--muted); text-decoration-color: var(--accent); }
::selection { background: var(--accent); color: #fff; }
img::selection { background: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: left; }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }
h1, h2, h3 { text-wrap: balance; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--fg); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 16px; color: #fff; }

.wrap { max-width: calc(var(--page-max) + var(--gutter) + var(--gutter-r)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }

/* ---------- Typografie ---------- */
.k { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin: 0; }
.h1 { margin: 0 0 40px; font-size: 44px; font-weight: 300; line-height: 1.15; }
.intro { margin: 0; font-size: 30px; line-height: 1.35; font-weight: 300; max-width: 820px; }
.intro2 { margin: 0; font-size: 26px; line-height: 1.4; font-weight: 300; }
.lead { font-size: 18px; line-height: 1.65; max-width: 760px; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { font-size: 24px; font-weight: 300; margin: 1.6em 0 .6em; }
.prose h3 { font-size: 19px; font-weight: 400; margin: 1.4em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.1em; }
.prose li { margin: .25em 0; }
.page-prose { max-width: 760px; font-size: 17px; line-height: 1.65; }
.lnk { display: inline-block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid var(--fg); padding-bottom: 4px; text-decoration: none; transition: border-color .2s ease, color .2s ease; }
.lnk:hover { border-bottom-color: var(--accent); }
.empty { color: var(--muted); }

/* ---------- Kopf ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(255, 255, 255, .96); border-bottom: 1px solid #ecebe8; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.admin-bar .site-header { top: 32px; }
.hdr { display: flex; align-items: center; justify-content: space-between; gap: 8px 32px; min-height: var(--header-h); }
.logo { display: flex; align-items: baseline; gap: 14px; padding: 10px 0; text-decoration: none; color: var(--fg); }
.hdr > .logo { flex: none; } /* Logo wird nie gestaucht */
.hdr .nav-main { flex: none; }
.logo b { font-weight: 400; font-size: 22px; letter-spacing: .02em; white-space: nowrap; }
.logo b i { font-style: normal; color: var(--faint); }
.logo small { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.logo-img { display: block; height: 32px; width: auto; max-width: 100%; }
.logo:hover .logo-img { opacity: .8; }
.nav-list { display: flex; flex-wrap: nowrap; gap: 4px 36px; list-style: none; margin: 0; padding: 0; }
.nav-list a { display: block; white-space: nowrap; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; padding: 14px 0 12px; border-bottom: 1px solid transparent; color: var(--muted); text-decoration: none; }
.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current-menu-ancestor > a,
.nav-list .current_page_item > a { color: var(--fg); }
.nav-list .current-menu-item > a,
.nav-list .current-menu-ancestor > a,
.nav-list .current_page_item > a { border-bottom-color: var(--fg); }
.nav-list a:hover, .nav-list .current-menu-item > a:hover { border-bottom-color: var(--accent); }
.burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: flex-end; }
/* Die Navigation bricht nie um: auf Tablets und überall dort, wo sie nicht in eine Zeile passt
   (z. B. breitere Schrift, mehr Menüpunkte, größere Schrift über das Barrierefreiheits-Menü), erscheint das Menü-Symbol. */
@media (max-width: 1024px) {
	.nav-main { display: none; }
	.burger { display: flex; }
}
html.nav-compact .nav-main { display: none; }
html.nav-compact .burger { display: flex; }

/* ---------- Mobiles Menü ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 70; overscroll-behavior: contain; background: var(--bg); display: flex; flex-direction: column; overflow-y: auto; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.mobile-menu[hidden] { display: none; }
.admin-bar .mobile-menu { top: 32px; }
@media (max-width: 782px) { .admin-bar .mobile-menu { top: 46px; } }

.mobile-menu > .wrap { width: 100%; max-width: none; margin: 0; }
.mm-top { display: flex; justify-content: space-between; align-items: center; min-height: var(--header-h); }
.mm-top .logo { padding: 10px 0; }
.mm-top .logo b { font-size: 18px; }
.mm-top .logo-img { height: 30px; }
.mm-close { width: 44px; height: 44px; display: flex; align-items: center; justify-content: flex-end; }
.mm-nav { padding-top: 40px; }
.mm-list { list-style: none; margin: 0; padding: 0; }
.mm-list li { border-top: 1px solid var(--line); }
.mm-list li:last-child { border-bottom: 1px solid var(--line); }
.mm-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; min-height: 69px; padding-top: 12px; font-size: 30px; font-weight: 400; color: var(--fg); text-decoration: none; }
.mm-list .current-menu-item > a, .mm-list .current_page_item > a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.mm-list a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: var(--accent); }
.mm-list small { font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mm-info { margin-top: auto; padding-block: 48px 32px; font-size: 14px; }
.mm-contact { display: flex; flex-direction: column; gap: 14px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.mm-contact a { text-decoration: none; }
.mm-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 12px; }
.links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
.links a { color: var(--muted); text-decoration: none; }
.links a:hover { color: var(--fg); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }

/* ---------- Raster ---------- */
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; }
.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; }
.sec { padding-bottom: 96px; }
.sec-intro { padding-block: 88px 96px; }
.sec-text { padding-block: 64px 80px; }
.sec-band { padding-block: 80px; }
.sec-cta { padding-block: 96px; }
.page-pad { padding-block: 64px 96px; }
.page-pad-top { padding-top: 64px; }
.band { background: var(--band); }
.rule { border-top: 1px solid var(--fg); padding-block: 20px; margin: 0; }
.sechead { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--fg); padding-top: 20px; margin-bottom: 32px; }
.sechead h2 { margin: 0; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
.more { margin: 40px 0 0; }

/* ---------- Bilder ---------- */
.ph { position: relative; width: 100%; max-width: 100%; overflow: hidden; background: var(--ph); }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.r43 { aspect-ratio: 4 / 3; }
.r32 { aspect-ratio: 3 / 2; }
.r34 { aspect-ratio: 3 / 4; }
.r21 { aspect-ratio: 21 / 9; }
.page-hero { margin-bottom: 0; }
/* Seitenbilder: immer in voller Breite und ohne Beschnitt (eigenes Seitenverhältnis) */
.page-hero.has-img { aspect-ratio: auto; }
.page-hero.has-img img { position: static; width: 100%; height: auto; object-fit: contain; }

/* ---------- Kacheln ---------- */
.tile { display: block; text-decoration: none; color: var(--fg); }
.tile .ph img { transition: transform .6s ease, opacity .3s ease; }
.tile:hover .ph img { transform: scale(1.02); }
.tile .ttl { display: block; margin-top: 16px; font-size: 16px; line-height: 1.4; }
.tile .meta { display: block; margin-top: 4px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tile[hidden] { display: none; }

/* ---------- Slider ---------- */
.slider { position: relative; width: 100%; height: clamp(600px, 50vw, 980px); overflow: hidden; background: var(--ph); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.slide.on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.scap { position: absolute; left: var(--gutter); bottom: 48px; background: var(--bg); padding: 28px 32px; max-width: 420px; }
.scap .t { margin-top: 8px; font-size: 22px; line-height: 1.3; }
.scap .o { margin-top: 4px; font-size: 14px; color: var(--muted); }
.scap .o:empty { display: none; }
.scap .lnk { margin-top: 20px; }
.sctl { position: absolute; right: var(--gutter-r); bottom: 48px; display: flex; align-items: center; gap: 4px; background: var(--bg); padding: 0 4px; }
.sarr { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; }
.sarr:hover { color: var(--muted); }
.scount { font-size: 13px; letter-spacing: .14em; min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; }
.sdots { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 4px; }
.sdot { width: 36px; height: 24px; display: flex; align-items: center; }
.sdot span { display: block; width: 100%; height: 2px; background: rgba(27, 27, 26, .25); }
.sdot.on span { background: var(--fg); }

/* ---------- Kennzahlen ---------- */
.stats { padding-block: 72px; }
.stat b { display: block; font-size: 40px; font-weight: 300; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat .k { display: block; margin-top: 8px; overflow-wrap: anywhere; hyphens: auto; }
.cta-links { margin-top: 28px; display: flex; gap: 32px; flex-wrap: wrap; font-size: 16px; }
.cta-links a { text-decoration: none; }

/* ---------- Projekte ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 4px 28px; border-bottom: 1px solid var(--line); margin-bottom: 48px; }
.chip { display: inline-block; font-size: 13px; letter-spacing: .06em; padding: 8px 0; margin-bottom: -1px; color: var(--muted); border-bottom: 1px solid transparent; text-decoration: none; }
.chip:hover { color: var(--fg); border-bottom-color: var(--accent); }
.chip.on { color: var(--fg); border-bottom-color: var(--fg); }
.chip i { font-style: normal; color: var(--faint); }

.project { padding-block: 40px 96px; }
.back { margin: 0 0 24px; }
.project-head { padding-block: 56px 64px; }
.h-project { margin: 12px 0 0; font-size: 34px; line-height: 1.25; font-weight: 300; }
.project .prose { font-size: 18px; line-height: 1.65; max-width: 720px; margin-bottom: 40px; }
.facts { margin: 0; max-width: 720px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.row:last-child { border-bottom: 1px solid var(--line); }
.row dt { padding-top: 2px; }
.row dd { margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.gallery-item { margin: 0; }
.gallery-frame { aspect-ratio: 3 / 2; overflow: hidden; }
.gallery-frame img { width: 100%; height: 100%; object-fit: cover; }
/* Hochformat: gleiche Höhe wie die Querformate, ganz sichtbar, mittig */
.is-portrait .gallery-frame { display: flex; justify-content: center; }
.is-portrait .gallery-frame img { width: auto; max-width: 100%; object-fit: contain; }
.gallery-item figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.gallery-count { display: none; }
.pn { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--fg); }
.pn a { max-width: 420px; text-decoration: none; }
.pn .t { display: block; margin-top: 4px; font-size: 16px; line-height: 1.6; }
.pn-next { text-align: right; margin-left: auto; }

/* ---------- Büro ---------- */
.fields { gap: 32px; }
.field .t { margin: 0; font-size: 20px; font-weight: 400; }
.field p { margin: 8px 0 0; line-height: 1.6; color: var(--soft); }
.sec-services { padding-top: 80px; }
@media (max-width: 760px) { .sec-services { padding-top: 48px; } }
.svc-list { gap: 0 32px; }
.svc { padding: 22px 0; border-top: 1px solid var(--line); }
.svc-t { margin: 0; font-size: 19px; font-weight: 400; }
.svc-d { margin: 6px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ---------- Team ---------- */
.team-intro { margin: -16px 0 56px; font-size: 18px; line-height: 1.65; max-width: 760px; color: var(--soft); }
.team-lead { margin-bottom: 80px; }
.person .name { margin: 16px 0 0; font-size: 20px; font-weight: 400; }
.person .role { margin: 4px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.team-grid .name { margin-top: 12px; font-size: 16px; }
.team-grid .role { font-size: 13px; }

/* Vita / Details zum Aufklappen */
.vita { margin-top: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.vita summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 52px; cursor: pointer; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.vita summary::-webkit-details-marker { display: none; }
.vita .pm::before { content: "+"; font-size: 22px; font-weight: 300; letter-spacing: 0; }
.vita[open] .pm::before { content: "\2013"; }
.vita dl { margin: 0; padding-bottom: 20px; }
.vita dl div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 8px 0; font-size: 15px; line-height: 1.5; }
.vita dt { color: var(--muted); font-variant-numeric: tabular-nums; }
.vita dd { margin: 0; }
.vita-small { margin-top: 12px; }
.vita-small summary { min-height: 44px; font-size: 12px; }
.vita-small dl div { grid-template-columns: minmax(0, 1fr); gap: 0; font-size: 13px; padding: 6px 0; }
.job-desc { margin-top: 16px; max-width: 640px; }
.job-desc .prose { padding-bottom: 20px; font-size: 15px; line-height: 1.6; }

/* ---------- Karriere ---------- */
.job { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px 32px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.job-main { flex: 1 1 420px; min-width: 0; }
.job .t { margin: 0; font-size: 20px; font-weight: 400; }
.job .m { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.job .acts { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; background: var(--fg); color: #fff; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--fg); }
.btn:hover { background: #3a3936; color: #fff; }
.btn-ghost { background: transparent; color: var(--fg); }
.btn-ghost:hover { background: var(--fg); color: #fff; }

/* ---------- Kontakt ---------- */
.addr { font-size: 17px; line-height: 1.7; }
.addr p { margin: 0 0 24px; }
.addr a { text-decoration: none; }
.addr .links { font-size: 15px; }
.contact-text { margin-top: 32px; font-size: 15px; color: var(--soft); }
.contact-form form { display: flex; flex-direction: column; gap: 28px; max-width: 720px; }
.form-row { gap: 28px; }
.fld { display: flex; flex-direction: column; gap: 8px; }
.fld label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fld input, .fld textarea { font: inherit; font-size: 16px; border: 0; border-bottom: 1px solid var(--line-strong); padding: 10px 0; background: transparent; color: var(--fg); border-radius: 0; }
.fld input:focus, .fld textarea:focus { outline: none; border-bottom-color: var(--fg); }
.fld textarea { min-height: 140px; resize: vertical; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--soft); }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--fg); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice-ok { padding: 32px 0; border-top: 1px solid var(--fg); max-width: 720px; }
.notice-ok .big { margin: 0; font-size: 24px; font-weight: 300; }
.notice-ok p { margin: 12px 0 0; color: var(--muted); line-height: 1.6; }
.notice-err { margin: 0 0 24px; padding: 14px 16px; background: #fbeceb; color: #7a2018; font-size: 15px; max-width: 720px; }

/* ---------- Beiträge (optional) ---------- */
.post-list { display: flex; flex-direction: column; gap: 40px; max-width: 760px; }
.post-item h2 { margin: 8px 0; font-size: 24px; font-weight: 300; }
.post-item h2 a { text-decoration: none; }
.nav-links { display: flex; gap: 24px; margin-top: 48px; }

/* ---------- Fuß ---------- */
.site-footer { border-top: 1px solid var(--line); }
.ftr { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-block: 32px 40px; font-size: 13px; color: var(--muted); }
.ftr-addr span + span::before { content: " · "; }
.ftr-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (max-width: 960px) {
	.g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.split { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.slider { height: 600px; }
	.nav-list { gap: 4px 24px; }
}

/* ==========================================================================
   Smartphone
   ========================================================================== */
@media (max-width: 760px) {
	:root {
		--gutter: max(20px, env(safe-area-inset-left, 0px));
		--gutter-r: max(20px, env(safe-area-inset-right, 0px));
		--header-h: 64px;
	}
	.admin-bar .site-header { top: 46px; }
	.nav-main { display: none; }
	.burger { display: flex; }
	.logo small { display: none; }
	.logo b { font-size: 18px; }
	.logo-img { height: 30px; }

	.h1 { font-size: 34px; margin-bottom: 24px; }
	.intro, .intro2 { font-size: 22px; line-height: 1.4; }
	.lead, .page-prose { font-size: 16px; }
	.g2, .g3 { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.g4 { gap: 28px 16px; }
	.sec { padding-bottom: 56px; }
	.sec-intro, .sec-text, .sec-band, .sec-cta { padding-block: 48px; }
	.page-pad { padding-block: 32px 56px; }
	.page-pad-top { padding-top: 32px; }
	.stats { padding-block: 48px; gap: 32px 20px; }
	.stat b { font-size: 30px; }
	.r21 { aspect-ratio: 4 / 3; }

	/* Slider: Bild füllt ein eigenes Feld (zentriert), Beschriftung darunter */
	.slider { --simg: min(100vw, 62svh); height: auto; padding-top: var(--simg); background: none; }
	.slide { inset: 0 0 auto 0; height: var(--simg); background: var(--ph); }
	.scap { position: relative; left: auto; bottom: auto; max-width: none; padding: 20px var(--gutter-r) 72px var(--gutter); }
	.scap .t { font-size: 19px; min-height: 2.6em; } /* zwei Zeilen reserviert: kein Springen beim Bildwechsel */
	.scap .k, .scap .o, .scap .o:empty { display: block; min-height: 1.5em; }
	.sctl { right: 12px; bottom: 12px; padding: 0; }
	.sdots { left: var(--gutter); right: auto; bottom: 22px; }

	/* Filter: horizontal wischen, bleibt oben stehen */
	.chips { flex-wrap: nowrap; overflow-x: auto; gap: 22px; scrollbar-width: none; margin-bottom: 28px; position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); background: var(--bg); z-index: 5; }
	.admin-bar .chips { top: calc(var(--header-h) + 46px); }
	.chips::-webkit-scrollbar { display: none; }
	.chip { flex: none; font-size: 14px; padding: 14px 0 12px; white-space: nowrap; }

	/* Projekt: Galerie zum Wischen */
	.project { padding-top: 16px; }
	.project-head { padding-block: 28px 40px; }
	.h-project { font-size: 26px; }
	.project .prose { font-size: 16px; }
	.row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
	.gallery { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1) calc(var(--gutter-r) * -1); padding-inline: var(--gutter) var(--gutter-r); scrollbar-width: none; }
	.gallery::-webkit-scrollbar { display: none; }
	.gallery { --gh: calc(88vw * 2 / 3); }
	.gallery-item { flex: 0 0 88vw; scroll-snap-align: center; }
	.gallery-frame { aspect-ratio: auto; height: var(--gh); }
	/* Hochformat mobil: gleiche Höhe, eigene (schmalere) Breite statt Beschnitt */
	.gallery-item.is-portrait { flex: 0 0 auto; max-width: 88vw; }
	.is-portrait .gallery-frame img { height: var(--gh); width: auto; max-width: 88vw; }
	.gallery-count { display: block; margin: 12px 0 0; font-size: 12px; letter-spacing: .12em; color: var(--muted); font-variant-numeric: tabular-nums; }
	.pn { margin-top: 40px; }
	.pn-prev { display: none; }
	.pn-next { text-align: left; margin-left: 0; }

	/* Leistungen */
	.svc-list { gap: 0; }

	.team-intro { margin: 0 0 36px; font-size: 16px; }
	.team-lead { margin-bottom: 48px; }
	.vita dl div { grid-template-columns: 92px minmax(0, 1fr); gap: 12px; font-size: 14px; }
	.vita-small dl div { grid-template-columns: minmax(0, 1fr); gap: 0; }

	.job .acts, .job .acts .btn { width: 100%; }
	.job .btn { min-height: 52px; }

	.ftr { flex-direction: column; }
	.site-footer { background: var(--band); border-top: 0; }
	.ftr-addr span { display: block; }
	.ftr-addr span + span::before { content: none; }
}

@media (prefers-reduced-motion: reduce) {
	.slide, .tile .ph img { transition: none; }
	.tile:hover .ph img { transform: none; }
}

/* ==========================================================================
   Cookie-Hinweis und Barrierefreiheit
   ========================================================================== */
.links button, .bh-open-consent { font: inherit; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; }
.links button:hover, .bh-open-consent:hover { color: var(--fg); }

.bh-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; background: var(--fg); color: #fff; border: 1px solid var(--fg); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; text-align: center; }
.bh-btn:hover { background: #3a3936; color: #fff; }
.bh-btn-ghost { background: var(--bg); color: var(--fg); }
.bh-btn-ghost:hover { background: var(--fg); color: #fff; }
.bh-link { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid var(--fg); padding: 4px 0; cursor: pointer; }

/* Cookie-Hinweis */
.bh-consent {
	position: fixed; z-index: 60; left: max(24px, env(safe-area-inset-left, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px));
	width: min(520px, calc(100vw - 48px)); max-height: calc(100vh - 48px); overflow-y: auto;
	background: var(--bg); border-top: 1px solid var(--fg); padding: 24px 28px 26px; box-shadow: 0 16px 48px rgba(0, 0, 0, .14);
}
.bh-consent[hidden] { display: none; }
.bh-consent-title { margin: 0 0 10px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
.bh-consent-text { margin: 0; font-size: 14px; line-height: 1.6; color: var(--soft); }
.bh-consent-text a { color: var(--fg); white-space: nowrap; }
.bh-consent-opts { margin-top: 18px; border-top: 1px solid var(--line); }
.bh-consent-opts[hidden] { display: none; }
.bh-consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 20px; }
.bh-consent-actions [hidden] { display: none; }

/* Schalter (Cookie-Kategorien und Barrierefreiheit) */
.bh-switch { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.bh-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bh-switch-ui { flex: none; position: relative; width: 38px; height: 22px; margin-top: 1px; border: 1px solid var(--fg); background: var(--bg); transition: background .2s ease; }
.bh-switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; background: var(--fg); transition: transform .2s ease, background .2s ease; }
.bh-switch input:checked + .bh-switch-ui { background: var(--fg); }
.bh-switch input:checked + .bh-switch-ui::after { transform: translateX(16px); background: var(--bg); }
.bh-switch input:focus-visible + .bh-switch-ui { outline: 1px solid var(--fg); outline-offset: 3px; }
.bh-switch.is-locked { cursor: default; }
.bh-switch.is-locked .bh-switch-ui { opacity: .45; }
.bh-switch-text { display: flex; flex-direction: column; gap: 2px; }
.bh-switch-text b { font-weight: 400; font-size: 15px; }
.bh-switch-text small { font-size: 13px; line-height: 1.5; color: var(--muted); }

/* Barrierefreiheit */
.bh-a11y { position: fixed; z-index: 55; right: max(24px, env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.bh-a11y-toggle { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: var(--fg); color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .16); }
.bh-a11y-toggle:hover { background: #3a3936; }
.bh-a11y-toggle[aria-expanded="true"] { background: var(--bg); color: var(--fg); border: 1px solid var(--fg); }
.bh-a11y-panel {
	position: absolute; right: 0; bottom: 64px; width: min(340px, calc(100vw - 48px)); max-height: calc(100vh - 120px); overflow-y: auto;
	background: var(--bg); border-top: 1px solid var(--fg); padding: 20px 24px 22px; box-shadow: 0 16px 48px rgba(0, 0, 0, .14);
}
.bh-a11y-panel[hidden] { display: none; }
.bh-a11y-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.bh-a11y-head h2 { margin: 0; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
.bh-a11y-close { width: 44px; height: 44px; margin-right: -12px; display: flex; align-items: center; justify-content: center; }
.bh-a11y-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0 12px; border-bottom: 1px solid var(--line); }
.bh-a11y-label { font-size: 15px; }
.bh-a11y-steps { display: flex; align-items: center; border: 1px solid var(--fg); }
.bh-a11y-steps button { width: 44px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.bh-a11y-steps button:hover { background: var(--band); }
.bh-a11y-steps button:disabled { color: var(--faint); cursor: default; background: none; }
.bh-a11y-steps output { min-width: 62px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; border-inline: 1px solid var(--line); line-height: 40px; }
.bh-a11y-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; font-size: 13px; }
.bh-a11y-foot a { color: var(--muted); }
body.bh-consent-open .bh-a11y { display: none; }

/* Wirkung der Einstellungen */
html[data-bh-fs="1"] :is(.site-header, .site-main, .site-footer, .mobile-menu) { zoom: 1.12; }
html[data-bh-fs="2"] :is(.site-header, .site-main, .site-footer, .mobile-menu) { zoom: 1.25; }
html[data-bh-fs="3"] :is(.site-header, .site-main, .site-footer, .mobile-menu) { zoom: 1.4; }
html.bh-contrast { --muted: #1b1b1a; --soft: #1b1b1a; --faint: #3a3936; --line: #6b6862; --line-strong: #1b1b1a; }
html.bh-contrast .sdot span { background: rgba(27, 27, 26, .55); }
html.bh-contrast .site-header { background: #fff; }
html.bh-links .site-main a, html.bh-links .site-footer a, html.bh-links .mobile-menu a { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 4px; }
html.bh-links .tile .ttl { text-decoration: underline; text-underline-offset: 4px; }
html.bh-readable body { --font: Verdana, "Atkinson Hyperlegible", Arial, sans-serif; letter-spacing: .01em; word-spacing: .06em; }
html.bh-readable .intro, html.bh-readable .h1, html.bh-readable .h-project { font-weight: 400; }
html.bh-spacing .site-main :is(p, li, dd, dt, .lead, .prose) { line-height: 1.95 !important; }
html.bh-spacing .site-main p { margin-bottom: 1.4em; }
html.bh-motion *, html.bh-motion *::before, html.bh-motion *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }

@media (max-width: 760px) {
	.bh-consent { left: 0; right: 0; bottom: 0; width: 100%; max-height: 85vh; padding: 20px max(20px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); box-shadow: 0 -12px 32px rgba(0, 0, 0, .12); }
	.bh-consent-actions .bh-btn { flex: 1 1 auto; }
	.bh-a11y { right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
	.bh-a11y-toggle { width: 48px; height: 48px; }
	.bh-a11y-panel { position: fixed; left: 0; right: 0; bottom: 0; width: auto; max-height: 85vh; padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); }
}
@media print { .bh-consent, .bh-a11y { display: none !important; } }

/* ==========================================================================
   Große Bildschirme: breiteres Raster, Texte bleiben gut lesbar
   ========================================================================== */
@media (min-width: 1600px) {
	.site-header .logo-img { height: 36px; }
	.g3 { gap: 72px 40px; }
	.g4 { gap: 48px 32px; }
	.g2 { gap: 56px 40px; }
	.split { gap: 64px; }
	.gallery { gap: 40px; }
	.h1 { font-size: 52px; }
	.intro { font-size: 34px; max-width: 920px; }
	.tile .ttl { font-size: 17px; }
	.scap { max-width: 480px; padding: 32px 36px; }
}
@media (min-width: 2200px) {
	:root { --page-max: 1960px; }
	.g4.team-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Kleine Bildschirmhöhe (z. B. iPhone SE): Menü kompakter */
@media (max-height: 700px) {
	.mm-nav { padding-top: 16px; }
	.mm-list a { min-height: 56px; padding-top: 8px; font-size: 26px; }
	.mm-info { padding-block: 28px 20px; }
	.mm-contact { padding-bottom: 20px; gap: 10px; }
}

/* Akzent Rot: Unterstrich beim Überfahren von Text-Links */
.mm-contact a:hover, .cta-links a:hover, .addr a:hover, .pn a:hover .t, .tile:hover .ttl { text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.bh-link:hover, .bh-open-consent:hover { border-bottom-color: var(--accent); }
.bh-open-consent:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }

/* ---------- Abschluss (Call to Action) ---------- */
.cta-inner { padding-block: 96px; border-top: 1px solid var(--line); }
.band .cta-inner, .cta + .site-footer { border-top: 0; }
.cta-title { margin: 0; font-size: 30px; line-height: 1.3; font-weight: 300; max-width: 820px; }
.cta-text { margin: 14px 0 0; font-size: 18px; line-height: 1.6; color: var(--soft); max-width: 720px; }
.cta-actions { margin: 32px 0 0; }
.cta .cta-links { margin-top: 28px; }
.btn-insta { gap: 10px; }
.btn-insta svg { flex: none; }
@media (max-width: 760px) {
	.cta-inner { padding-block: 56px; }
	.cta-title { font-size: 24px; }
	.cta-text { font-size: 16px; }
	.cta-actions .btn { width: 100%; }
}
@media (min-width: 1600px) { .cta-title { font-size: 34px; } }

/* „Mehr zeigen“ / „Mehr laden“ */
.more-wrap { margin: 56px 0 0; text-align: center; }
.more-wrap .btn[hidden] { display: none; }
.tile:focus { outline: none; }
.tile:focus-visible { outline: 1px solid var(--fg); outline-offset: 6px; }
@media (max-width: 760px) { .more-wrap .btn { width: 100%; } .more-wrap { margin-top: 40px; } }

/* Erst 6 zeigen, bevor das Skript übernimmt (kein Aufblitzen) */
.js [data-tiles]:not(.is-ready):not([data-initial]) > .tile:nth-child(n+7),
.js [data-more-list]:not(.is-ready) > [data-more-item]:nth-child(n+7) { display: none; }

/* ---------- Aktuell ---------- */
.news-intro { margin: -16px 0 64px; font-size: 18px; line-height: 1.65; max-width: 760px; color: var(--soft); }
.news-list { display: flex; flex-direction: column; }
.news-item { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; padding-block: 48px; border-top: 1px solid var(--line); }
.news-item:first-child { border-top-color: var(--fg); }
.news-item[hidden] { display: none; }
.news-item .ph:only-child { grid-column: 1 / -1; }
.news-body { padding-top: 4px; }
.news-t { margin: 10px 0 0; font-size: 26px; font-weight: 300; line-height: 1.3; }
.news-t:focus { outline: none; }
.news-text { margin-top: 16px; font-size: 16px; line-height: 1.65; color: var(--soft); max-width: 560px; }
.news-item:not(:has(.ph)) .news-body { grid-column: 1 / -1; max-width: 760px; }
@media (max-width: 760px) {
	.news-intro { margin: 0 0 36px; font-size: 16px; }
	.news-item { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 32px; }
	.news-t { font-size: 22px; }
}
@media (min-width: 1600px) { .news-t { font-size: 30px; } .news-text { font-size: 17px; } }

/* ---------- Karriere: Stellen und Kurzbewerbung ---------- */
.job-link { text-decoration: none; color: var(--fg); align-items: center; }
.job-link:hover .t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: var(--accent); }
.job-link:hover .lnk { border-bottom-color: var(--accent); }
.job-link .lnk { flex: none; }

.app { margin-top: 56px; padding: 48px 0 0; border-top: 1px solid var(--fg); }
.js .app:not([data-open]):not(.is-open) { display: none; }
.app-head { max-width: 720px; margin-bottom: 36px; }
.app-title { margin: 0; font-size: 30px; font-weight: 300; line-height: 1.3; }
.app-intro { margin: 12px 0 0; font-size: 17px; line-height: 1.6; color: var(--soft); }
.app-form { display: flex; flex-direction: column; gap: 32px; max-width: 920px; }
.app-form abbr { text-decoration: none; color: var(--accent); }
.choice { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice legend { padding: 0; margin-bottom: 14px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.choice-list { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-item { position: relative; cursor: pointer; }
.choice-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-item span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); font-size: 15px; transition: border-color .15s ease, background .15s ease; }
.choice-item:hover span { border-color: var(--fg); }
.choice-item input:checked + span { background: var(--fg); border-color: var(--fg); color: #fff; }
.choice-item input:focus-visible + span { outline: 1px solid var(--fg); outline-offset: 3px; }
.file-fld { gap: 8px; }
.file-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.file-pick { display: flex; align-items: center; gap: 14px; min-height: 48px; border-bottom: 1px solid var(--line-strong); cursor: pointer; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--fg); }
.file-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file-btn { flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--fg); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.file-pick:hover .file-btn { background: var(--fg); color: #fff; }
.file-pick:focus-within .file-btn { outline: 1px solid var(--fg); outline-offset: 3px; }
.file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.file-hint { font-size: 13px; color: var(--muted); }
.file-err { font-size: 14px; color: #8a2c22; }
.app-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.app-req { font-size: 13px; color: var(--muted); }

.job-page .job-head { padding-block: 24px 40px; }
.job-info { margin: 10px 0 0; font-size: 16px; color: var(--muted); }
.job-text { font-size: 17px; line-height: 1.65; max-width: 720px; padding-bottom: 64px; }
.job-text h3 { font-size: 20px; font-weight: 400; margin: 1.6em 0 .5em; }
.job-apply { padding-top: 40px; border-top: 1px solid var(--fg); }
.apply-contact { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; font-size: 15px; color: var(--soft); }
.apply-mail { font-size: 22px; font-weight: 300; color: var(--fg); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; margin-bottom: 8px; }
.apply-mail:hover { text-decoration-color: var(--accent); }
.apply-contact a { text-decoration: none; }
@media (max-width: 760px) {
	.app { margin-top: 40px; padding-top: 32px; }
	.app-title { font-size: 24px; }
	.app-submit .btn { width: 100%; }
	.job-link { flex-direction: column; align-items: flex-start; }
	.job-text { font-size: 16px; padding-bottom: 40px; }
	.apply-mail { font-size: 19px; }
}

/* Sprungziele nicht unter der festen Kopfzeile verstecken */
#kurzbewerbung, #formular, #meldungen { scroll-margin-top: calc(var(--header-h) + 32px); }
.admin-bar #kurzbewerbung, .admin-bar #formular { scroll-margin-top: calc(var(--header-h) + 64px); }
/* Auswahl-Felder nicht in Großbuchstaben */
.fld .choice-item, .fld .choice-item span { text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--fg); }
.fld .choice-item input:checked + span { color: #fff; }
@media (max-width: 760px) { .job-link .job-main { flex: none; width: 100%; } .job-link { gap: 14px; } }

/* Menü-Buttons: kein Rahmen bei Maus/Touch, Fokus-Rahmen nur bei Tastatur */
.burger, .mm-close { border: 0; background: none; outline: none; -webkit-tap-highlight-color: transparent; }
.burger:hover, .mm-close:hover { opacity: .65; }
.burger:focus:not(:focus-visible), .mm-close:focus:not(:focus-visible) { outline: none; }
.burger:focus-visible, .mm-close:focus-visible { outline: 1px solid var(--fg); outline-offset: 2px; }
.mobile-menu:focus { outline: none; }

/* Badge im Impressum */
.bh-credit { display: inline-flex; flex-direction: column; gap: 4px; margin-top: 56px; padding: 20px 24px 22px; border: 1px solid var(--line); border-top: 2px solid var(--accent); min-width: 280px; max-width: 100%; }
.bh-credit-k { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.bh-credit-t { font-size: 14px; color: var(--muted); }
.bh-credit-a { margin-top: 4px; font-size: 20px; font-weight: 300; color: var(--fg); text-decoration: none; }
.bh-credit-a:hover { color: var(--fg); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: var(--accent); }

/* ---------- Logos und Siegel ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.logos-inner { padding-block: 72px 88px; border-top: 1px solid var(--line); align-items: start; }
.logos-inner > .k { padding-top: 36px; }
.logo-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 48px 48px; }
.logo-row li { display: flex; align-items: center; justify-content: center; min-height: 84px; }
.logo-row a { display: flex; text-decoration: none; }
.logo-row img { display: block; height: 64px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .25s ease, opacity .25s ease; }
.logo-row img.is-compact { height: 84px; }
.logo-row img.is-wide { height: auto; width: 240px; }
.logo-row li:hover img, .logo-row a:focus-visible img { filter: none; opacity: 1; }
@media (max-width: 760px) {
	.logos-inner { padding-block: 48px 56px; }
	.logo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
	.logo-row li { min-height: 60px; }
	.logo-row img { height: 44px; }
	.logo-row img.is-compact { height: 60px; }
	.logo-row img.is-wide { width: 160px; }
}
@media (prefers-reduced-motion: reduce) { .logo-row img { transition: none; } }

/* Ältere Browser ohne svh */
@supports not (height: 1svh) {
	@media (max-width: 760px) { .slider { --simg: min(100vw, 62vh); } }
}
@media (max-width: 960px) { .logos-inner > .k { padding-top: 0; } }

/* ---------- 404 ---------- */
.nf-head { align-items: start; }
.nf-code { font-size: 12px; padding-top: 14px; }
.nf-links { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px 32px; }
.nf-home { margin: 40px 0 0; }
@media (max-width: 760px) { .nf-links { gap: 14px 24px; } .nf-home { margin-top: 32px; } }

/* ---------- Einblenden der Überschriften (dezent) ---------- */
@keyframes bh-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* Seitentitel: beim Laden, ohne Skript */
.h1, .h-project { animation: bh-rise .9s cubic-bezier(.2, .6, .2, 1) both; }
.h-project { animation-delay: .08s; }
/* Weitere Überschriften: beim Hineinscrollen (Klasse setzt main.js, ohne Skript bleibt alles sichtbar) */
html.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .9s cubic-bezier(.2, .6, .2, 1), transform .9s cubic-bezier(.2, .6, .2, 1); }
html.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.h1, .h-project { animation: none; }
	html.js .rv { opacity: 1; transform: none; transition: none; }
}
html.bh-motion .rv { opacity: 1 !important; transform: none !important; }
