/* The service and town templates in the new Home's style (operator 2026-11-04). Only on those pages; markup: includes/zde-service-frame.php, includes/zde-town-frame.php. */
html:has(body:is(.single-services, .single-town_pages)), body:is(.single-services, .single-town_pages) { background: #141416; }

/* The Home's header skin */
:is(.single-services, .single-town_pages) .zde-top {
  --zde-ground: #141416; --zde-text: #F2EFEA; --zde-lead: #F2EFEA; --zde-muted: #B8B4AD;
  --zde-line-strong: transparent; --zde-line: #34343A; --zde-dim: #B8B4AD;
  --zde-red-fill: #D21F17; --zde-red-mark: #E5170F;
  padding-top: 0; border-bottom: 1px solid #34343A;
}
:is(.single-services, .single-town_pages) .zde-top > .zde-fw { max-width: none; padding-inline: clamp(12px, 2vw, 32px); }
:is(.single-services, .single-town_pages) .zde-topbar { border: 0; background: transparent; }
:is(.single-services, .single-town_pages) .zde-topbar .zde-btn--primary { background: #D21F17; color: #fff; }
:is(.single-services, .single-town_pages) :is(.zde-topbar__panel, .zde-topbar__dd [id^="nav-"]) { background: #141416; }
:is(.single-services, .single-town_pages) .zde-fcta-wrap { margin-top: 0; }

.zsv { --bg: #141416; --bg2: #1D1D20; --dark: #0C0C0D; --ink: #F2EFEA; --mute: #B8B4AD; --line: #34343A; --red: #D21F17; --sig: #FF6F63; --mark: #E5170F; --pad: clamp(20px, 5vw, 80px); --sec: clamp(64px, 8vw, 128px); --gh: min(calc(100svh - 150px), 640px);
  background: var(--bg); color: var(--ink); font-family: var(--zde-sans); font-size: var(--zde-fs-body); line-height: 1.65; overflow-x: clip; }
.zsv *, .zsv *::before, .zsv *::after { box-sizing: border-box; }
.zsv [hidden] { display: none !important; }
:where(.zsv) p { margin: 0; }
:where(.zsv) :is(ul, ol) { margin: 0; padding: 0; list-style: none; }
.zsv .zsv-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.zsv :is(h1, h2).zsv-k { max-width: 70ch; margin: 0 0 14px; color: var(--sig); font: 500 var(--zde-fs-label)/1.5 var(--zde-mono); letter-spacing: .08em; text-transform: uppercase; text-wrap: pretty; }
.zsv .zsv-d1, .zsv .zsv-d2 { margin: 0; color: inherit; font-family: var(--zde-head); font-weight: 500; letter-spacing: -.025em; text-transform: uppercase; text-wrap: balance; }
.zsv .zsv-d1 { max-width: 15em; font-size: var(--zde-fs-display); line-height: .94; }
.zsv .zsv-d2 { max-width: 18em; font-size: var(--zde-fs-headline); line-height: 1.04; } /* a wrapped comma clears the line below */
.zsv :is(h3, h4) { margin: 0; color: inherit; font-family: var(--zde-head); font-size: var(--zde-fs-title); font-weight: 500; line-height: 1.2; letter-spacing: -.01em; text-transform: none; }
.zsv-lead { max-width: 60ch; margin-top: 16px !important; color: var(--mute); font-size: var(--zde-fs-lead); line-height: 1.55; }
.zsv-body { max-width: 62ch; margin-top: 18px; color: var(--mute); }
.zsv-body p + p { margin-top: 1em; }
.zsv-body a { color: var(--ink); text-underline-offset: 3px; }
.zsv-sec { padding: var(--sec) var(--pad); }
.zsv-wrap { max-width: 1480px; margin-inline: auto; }
.zsv-alt { background: var(--bg2); }
.zsv-dark { background: var(--dark); }
.zsv-head { margin-bottom: clamp(32px, 4vw, 56px); }
.zsv-ph { position: relative; margin: 0; overflow: hidden; background: var(--bg2); }
.zsv-mark { display: inline-block; width: 9px; height: 9px; flex: none; background: var(--mark); }
.zsv-note { margin-top: 14px !important; color: var(--mute); font-size: .84rem; }
.zsv-step { display: block; margin-bottom: 12px; color: var(--sig); font: 500 var(--zde-fs-label)/1.4 var(--zde-mono); letter-spacing: .08em; }

/* Buttons. The hero row keeps .zde-fcta__acts for the call bar, so its old 380px column is undone here. */
.zsv .zsv-acts { flex-direction: row; flex-wrap: wrap; gap: 16px 20px; width: auto; max-width: none; margin-top: clamp(24px, 2.6vw, 36px); }
.zsv .zsv-acts .zde-btn { width: auto; }
.zsv a.zde-btn--primary, .zsv a.zde-btn--primary:visited { background: var(--red); color: #fff; }
.zsv a.zde-btn--ghost, .zsv a.zde-btn--ghost:visited { color: #fff; }

/* Breadcrumb */
.zsv-crumb { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 clamp(18px, 2.4vw, 30px) !important; font: 500 var(--zde-fs-tag)/1.5 var(--zde-mono); letter-spacing: .06em; text-transform: uppercase; }
.zsv-crumb a { color: inherit; text-decoration: none; }
.zsv-crumb a:hover { text-decoration: underline; }
.zsv-crumb li + li::before { content: '/'; margin-right: 10px; opacity: .6; }

/* Hero */
.zsv-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(calc(100svh - 80px), 800px); }
.zsv-hero--noimg { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.zsv-hero__c { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: clamp(44px, 5vw, 88px) var(--pad); }
.zsv-hero > .zsv-ph { min-height: 480px; }

/* Trust and permit cards */
.zsv-trust { padding: clamp(40px, 5vw, 72px) var(--pad); }
.zsv-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.zsv-cards--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.zsv-cards > div { min-width: 0; padding: clamp(18px, 2vw, 30px); background: var(--bg2); }
.zsv-cards p { margin-top: 6px; color: var(--mute); font-size: .96rem; }

/* Splits */
.zsv-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.zsv-split > .zsv-ph { min-height: clamp(420px, 44vw, 700px); }
.zsv-split__c { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: clamp(44px, 6vw, 100px) var(--pad); }
.zsv-split:not(:has(> .zsv-ph)) { grid-template-columns: minmax(0, 1fr); }
.zsv-split--r > .zsv-ph { order: 2; }

/* What's included */
.zsv-inc { position: relative; padding: var(--sec) var(--pad); color: #fff; }
.zsv-inc > .zsv-ph { position: absolute; inset: 0; }
.zsv-inc::before { content: ''; position: absolute; inset: 0; z-index: 1; background: rgb(10 8 6 / .78); }
.zsv-inc__in { position: relative; z-index: 2; }
.zsv-inc :is(h1, h2).zsv-k { color: #FFD2CD; }
.zsv-inc .zsv-lead { color: #F4F0E8; }
.zsv-list2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 72px); border-top: 1px solid rgb(255 255 255 / .28); }
.zsv-list2 li { display: flex; gap: 14px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid rgb(255 255 255 / .28); font-size: var(--zde-fs-lead); }

/* How it works */
.zsv-line { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.zsv-line::before { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--line); }
.zsv-line > li { position: relative; padding-top: 36px; }
.zsv-line > li::before { content: ''; position: absolute; left: 0; top: 0; width: 16px; height: 16px; background: var(--mark); }
.zsv-line p { margin-top: 10px; color: var(--mute); }

/* Mid-page call */
.zsv-call { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 64px; padding: clamp(44px, 5vw, 76px) var(--pad); background: #D21F17; color: #fff; }
.zsv-call :is(h1, h2).zsv-k { color: #fff; }
.zsv-call .zsv-acts { margin-top: 0; }
.zsv a.zsv-call__btn, .zsv a.zsv-call__btn:visited { background: #fff; color: #14110D; }
.zsv a.zsv-call__ghost, .zsv a.zsv-call__ghost:visited { --k: #fff; color: #fff; }

/* Card over a full photo */
.zsv-over { position: relative; display: flex; align-items: center; min-height: 700px; padding: clamp(40px, 6vw, 96px) var(--pad); }
.zsv-over > .zsv-ph { position: absolute; inset: 0; }
.zsv-card { position: relative; z-index: 2; max-width: 680px; padding: clamp(26px, 4vw, 60px); background: var(--bg); }

/* Project photos: the whole lead photo and its thumbnails fit one screen */
.zsv-gal { display: grid; grid-template-columns: minmax(0, min(calc(var(--gh) * 4 / 3), 68%)) minmax(0, 1fr); gap: 8px; }
.zsv-gal__main { position: relative; aspect-ratio: 4 / 3; }
.zsv-gal__p { position: absolute; inset: 0; }
.zsv-tag { position: absolute; left: 0; top: 0; z-index: 2; padding: 5px 12px; background: #fff; color: #14110D; font: 500 var(--zde-fs-tag)/1.4 var(--zde-mono); letter-spacing: .08em; text-transform: uppercase; }
.zsv-gal__th { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, 1fr); gap: 8px; min-height: 0; }
.zsv-gal__b { appearance: none; position: relative; min-height: 0; padding: 0; border: 0; overflow: hidden; background: none; opacity: .72; cursor: pointer; }
.zsv .zsv-gal__b img { position: absolute; inset: 0; }
.zsv-gal__b[aria-pressed="true"] { opacity: 1; }
.zsv-gal__b[aria-pressed="true"]::after { content: ''; position: absolute; inset: 0; z-index: 1; border: 3px solid var(--sig); }
.zsv-gal__b:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Questions */
.zsv-pin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.zsv-faq { border-top: 1px solid var(--line); }
.zsv-faq details { border-bottom: 1px solid var(--line); }
.zsv-faq summary { display: flex; justify-content: space-between; gap: 24px; align-items: center; min-height: 70px; padding: 16px 0; font: 500 var(--zde-fs-title)/1.25 var(--zde-head); cursor: pointer; list-style: none; }
.zsv-faq summary::-webkit-details-marker { display: none; }
.zsv-faq summary::after { content: '+'; flex: none; color: var(--sig); font: 400 1.8rem/1 var(--zde-sans); }
.zsv-faq details[open] summary::after { content: '\2212'; }
.zsv-faq details > div { max-width: 70ch; padding-bottom: 24px; color: var(--mute); }

/* Other services: the Home's carousel */
.zsv-others__head { padding-bottom: clamp(28px, 3.4vw, 48px); }
.zsv .zde-sc__track { height: clamp(500px, 42vw, 720px); }
.zsv .zde-sc__img, .zsv .zde-sc__item.is-on .zde-sc__img { filter: none; }
.zsv .zde-sc__item::before { background: rgb(14 13 11 / .3); }
.zsv .zde-sc__item::after { background: linear-gradient(to top, rgb(14 13 11 / .94) 0%, rgb(14 13 11 / .78) 26%, rgb(14 13 11 / 0) 62%); }
.zsv .zde-sc__label { color: #fff; }
.zsv .zde-sc__bar { padding: 14px var(--pad); border-top: 0; }
.zsv .zde-sc__nav { align-items: center; gap: 12px; }
@media (min-width: 701px) { .zsv .zde-sc__body { padding-left: var(--pad); } }

/* Town pages */
.zsv .zsv-d1--town { max-width: 17em; font-size: clamp(min(2.4rem, 10.4vw), 1.6rem + 2.6vw, 4.4rem); line-height: 1; }
/* Town copy has long place names ("Stadtwurtemburg"): the large line in a half-width column fits its longest word */
.single-town_pages .zsv .zsv-split__c .zsv-d2 { font-size: min(var(--zde-fs-headline), 3.75vw); overflow-wrap: break-word; }
.zsv-bign li { display: grid; grid-template-columns: minmax(70px, 2fr) minmax(0, 5fr) minmax(0, 5fr); gap: 12px clamp(20px, 4vw, 72px); align-items: baseline; padding: clamp(24px, 3vw, 44px) 0; border-top: 1px solid var(--line); }
.zsv-bign li:last-child { border-bottom: 1px solid var(--line); }
.zsv-bign b { color: var(--sig); font: 500 clamp(3rem, 2rem + 4vw, 6rem)/.9 var(--zde-head); letter-spacing: -.03em; }
.zsv-bign p { color: var(--mute); }
.zsv-qcall { margin-top: 28px; padding: clamp(24px, 3vw, 44px); background: #D21F17; color: #fff; }
.zsv-qcall p { font-size: var(--zde-fs-lead); line-height: 1.55; }
.zsv .zsv-qcall__t { margin-bottom: 8px; font: 500 var(--zde-fs-title)/1.2 var(--zde-head); text-transform: uppercase; }
.zsv-rcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.zsv-rcards a, .zsv-rcards a:visited { display: block; min-width: 0; padding: clamp(20px, 2.2vw, 32px); background: var(--bg2); color: var(--ink); text-decoration: none; transition: background .2s; }
.zsv-rcards a:hover { background: var(--red); color: #fff; }
.zsv-rcards a:hover .zsv-step { color: #fff; }
.zsv-rcards b { display: block; font: 500 var(--zde-fs-title)/1.2 var(--zde-head); }
.zsv-center { text-align: center; }
.zsv-center .zsv-k, .zsv-center .zsv-d2 { margin-inline: auto !important; }
.zsv .zsv-center .zsv-acts { justify-content: center; }

@media (max-width: 1100px) {
  .zsv-hero, .zsv-split, .zsv-pin { grid-template-columns: minmax(0, 1fr); }
  .zsv-hero > .zsv-ph { order: -1; min-height: 56vw; }
  .zsv-split > .zsv-ph, .zsv-split--r > .zsv-ph { order: 0; min-height: 60vw; }
  .single-town_pages .zsv .zsv-split__c .zsv-d2 { font-size: min(var(--zde-fs-headline), 8vw); }
  .zsv-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zsv-cards--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .zsv-gal { grid-template-columns: minmax(0, 1fr); justify-items: center; --gw: min(100%, calc((100svh - 240px) * 4 / 3)); }
  .zsv-gal__main, .zsv-gal__th { width: var(--gw); }
  .zsv-gal__th { grid-template-columns: repeat(4, 1fr); grid-template-rows: none; }
  .zsv-gal__b { aspect-ratio: 4 / 3; }
}
@media (max-width: 760px) {
  .zsv .zsv-acts { flex-direction: column; align-items: stretch; }
  .zsv .zsv-acts .zde-btn { width: 100%; }
  .zsv-line, .zsv-list2, .zsv-cards, .zsv-cards--5 { grid-template-columns: minmax(0, 1fr); }
  .zsv-line::before { display: none; }
  .zsv-over { display: block; min-height: 0; padding: 0; }
  .zsv-over > .zsv-ph { position: relative; aspect-ratio: 4 / 3; }
  .zsv-card { max-width: none; margin: -28px 12px 0; padding: 24px 20px; }
  .zsv-call { flex-direction: column; align-items: stretch; }
  .zsv-bign li, .zsv-rcards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 360px) {
  .zsv .zsv-d2 { font-size: min(var(--zde-fs-headline), 8.6vw); } /* "Transformation" fits a 320px phone */
}
@media (max-width: 700px) {
  .zsv .zde-sc__track { height: auto; }
  .zsv .zde-sc__btn, .zsv .zde-sc__count [data-sc-count] { display: none; }
  .zsv .zde-sc__nav, .zsv .zde-sc__nav .zde-btn--ghost { width: 100%; }
  .zsv .zde-sc__bar { flex-wrap: wrap; }
  .zsv .zde-sc__item:not(.is-on)::after { opacity: 0; }
  .zsv .zde-sc__item:not(.is-on)::before { background: rgb(14 13 11 / .58); }
}
@media (prefers-reduced-motion: reduce) {
  .zsv *, .zsv *::before, .zsv *::after { transition: none !important; }
}
