/* ISBJ demo – v2: Bodoni Moda + Jost, transparent header over full-bleed film (effect after homesmontecarlo.com) */

@font-face {
  font-family: "Bodoni Moda";
  src: url("assets/fonts/bodoni-moda.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("assets/fonts/jost.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Scroll progress of the glass house (0 = view, 4 = value) */
@property --p {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

:root {
  /* palette "Blaupause" */
  --paper: #FFFFFF;      /* base */
  --paper-2: #EEF3F8;    /* ice blue: every second light section, info line, certificates */
  --ink: #14202E;        /* text */
  --ink-2: #4D5B6B;      /* muted text */
  --line: #C8D3DF;       /* hairlines, never text */
  --accent: #0957A5;     /* logo blue: links, underlines, chains on light, focus, mobile bar */
  --deep: #0B2A4A;       /* deep blue: dark sections, veil, footer */
  --on-deep: #FFFFFF;
  --on-deep-2: #C9D6E3;
  --veil-rgb: 11, 42, 74;
  --hero: #0B2A4A;
  --star: #FBBC04;
  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --mono: var(--sans);
  --head: 112px;
  --bar: 0px;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1320px;
  --radius: 2px;
  --caps: 0.16em;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head) + 16px);
  scroll-padding-bottom: calc(var(--bar) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 19px/1.65 var(--sans);
  padding-bottom: var(--bar);
}
@media (max-width: 600px) { body { font-size: 18px; } }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
main p a, .footer a, .info a, .anlass__go, .schicht__more, .sig a { color: var(--accent); }
.dark a, .dark p a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.7); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; box-shadow: 0 0 0 6px #fff; border-radius: var(--radius); }
.dark :focus-visible, .top.is-over :focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px var(--deep); }
p { margin: 0 0 1em; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--paper); padding: 10px 16px; border: 1px solid var(--ink); }
.skip:focus { top: 12px; }
.caps { text-transform: uppercase; letter-spacing: var(--caps); font-weight: 400; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 0.5em;
  text-wrap: balance;
  hyphens: auto;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2.6rem, 5.6vw, 5rem); }
h2 { font-size: clamp(2.1rem, 3.8vw, 3.4rem); }
h3 { font-size: clamp(1.45rem, 2vw, 1.8rem); line-height: 1.2; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--ink-2); max-width: 38em; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 140px); }
.section--tint { background: var(--paper-2); }
.section:not(.section--tint):not(.section--deep) + .section:not(.section--tint):not(.section--deep) { border-top: 1px solid var(--line); }
.section--deep { background: var(--deep); color: var(--on-deep); }
.section--deep .lead, .section--deep p { color: var(--on-deep-2); }
.section--deep h2, .section--deep h3 { color: var(--on-deep); }
.section--deep .mk { color: #fff; }

/* ---------- dimension chain (recurring detail) ---------- */
.mk { width: 100%; height: 22px; display: block; color: var(--accent); overflow: visible; margin: 0 0 clamp(28px, 4vw, 48px); }
.mk path { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }
.js .mk { transform: scaleX(0); transform-origin: left center; transition: transform 500ms ease-out; }
.js .mk.on { transform: none; }
.mk--short { max-width: 340px; }

/* ---------- buttons and links: thin lines, no coloured areas ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7em;
  min-height: 52px; padding: 12px 26px;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  font: 400 0.82rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: var(--caps);
  text-decoration: none; text-align: center;
  transition: background-color 200ms, color 200ms, border-color 200ms;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--call { border-color: var(--accent); color: var(--accent); }
.btn:hover { background: var(--deep); border-color: var(--deep); color: #fff; }
.dark .btn { color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.dark .btn--call { border-color: #fff; }
.dark .btn:hover { background: #fff; border-color: #fff; color: var(--deep); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: 0.04em; }
.link-serif { font: 400 clamp(1.3rem, 2vw, 1.6rem)/1.3 var(--serif); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; }
.link-serif:hover { text-decoration-thickness: 2px; }

/* ---------- banner + header ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; }
.banner { margin: 0; background: var(--ink); color: var(--paper); font-size: 0.8rem; line-height: 1.4; padding: 7px var(--gutter); text-align: center; }
.header { background: var(--paper); border-bottom: 1px solid var(--line); color: var(--ink); transition: background-color 300ms, color 300ms, border-color 300ms; }
.header__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 84px; }
.logo { display: grid; justify-self: start; }
.logo img { grid-area: 1 / 1; width: 260px; height: auto; transition: opacity 300ms; }
.logo .logo--w { opacity: 0; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 8px; }
.nav a, .nav__sub-toggle {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px; text-decoration: none;
  font: 400 0.82rem/1.2 var(--sans); text-transform: uppercase; letter-spacing: var(--caps);
  color: inherit; background: none; border: 0; cursor: pointer; border-radius: var(--radius);
}
.nav a[aria-current="page"], .nav .is-current > .nav__sub-toggle { text-decoration: underline; text-underline-offset: 0.6em; text-decoration-thickness: 1px; }
.nav a:hover, .nav__sub-toggle:hover { text-decoration: underline; text-underline-offset: 0.6em; }
.nav__sub-toggle svg { width: 9px; height: 9px; transition: transform 200ms; }
.has-sub { position: relative; }
.sub {
  list-style: none; margin: 0; padding: 8px; position: absolute; left: 0; top: 100%; min-width: 260px;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); display: none;
}
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { display: block; }
.has-sub.open .nav__sub-toggle svg { transform: rotate(180deg); }
.header__tel { justify-self: end; font: 400 0.9rem var(--sans); letter-spacing: 0.08em; text-decoration: none; padding: 10px 0; border-bottom: 1px solid currentColor; }
.header__tel:hover { border-bottom-width: 2px; }
.menu-toggle { display: none; }

/* transparent over the full-bleed head, solid after scrolling (JS adds .is-over) */
.js .top.is-over .header { background: transparent; border-bottom-color: transparent; color: #fff; }
.js .top.is-over .logo--w { opacity: 1; }
.js .top.is-over .logo--c { opacity: 0; }
main { padding-top: var(--head); }
.has-head main { padding-top: 0; }

@media (max-width: 1180px) {
  .logo img { width: 220px; }
  .header__in { gap: 12px; }
  .nav a, .nav__sub-toggle { padding-inline: 10px; }
}
@media (max-width: 900px) {
  .header__in { grid-template-columns: 1fr auto; min-height: 64px; gap: 8px; }
  .logo img { width: min(220px, 60vw); }
  .header__tel { display: none; }
  .js .menu-toggle {
    display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px;
    background: none; border: 1px solid currentColor; border-radius: var(--radius); color: inherit;
    font: 400 0.82rem var(--sans); text-transform: uppercase; letter-spacing: var(--caps);
  }
  .nav { grid-column: 1 / -1; }
  .js .nav { display: none; }
  .js .nav.open { display: block; max-height: calc(100svh - var(--head) - var(--bar)); overflow: auto; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 12px; }
  .nav > ul > li { border-top: 1px solid var(--line); }
  .nav a, .nav__sub-toggle { padding: 14px 4px; }
  .nav__sub-toggle { pointer-events: none; color: var(--ink-2); }
  .nav__sub-toggle svg { display: none; }
  .sub { display: block; position: static; border: 0; padding: 0 0 8px 16px; min-width: 0; background: none; }
  html:not(.js) .top { position: static; }
  html:not(.js) main { padding-top: 0; }
}

/* ---------- mobile action bar (only place with the accent as area) ---------- */
.bar { display: none; }
@media (max-width: 900px) {
  :root { --bar: 72px; }
  .bar {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; position: fixed; inset: auto 0 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line);
  }
  .bar .btn { min-height: 50px; padding: 8px 12px; }
  .bar .btn--call { background: var(--accent); border-color: var(--accent); color: #fff; }
  .bar .btn--call:hover { background: #074785; }
}

/* ---------- hero: full-bleed film, centred title ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; background: var(--hero); color: #fff; overflow: hidden; }
.hero__media, .hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media video { object-fit: cover; object-position: 66% 50%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(var(--veil-rgb), 0.82) 0%, rgba(var(--veil-rgb), 0.55) 12%, rgba(var(--veil-rgb), 0) 30%),
    linear-gradient(180deg, rgba(var(--veil-rgb), 0) 22%, rgba(var(--veil-rgb), var(--veil, 0.62)) 34%, rgba(var(--veil-rgb), var(--veil, 0.62)) 72%, rgba(var(--veil-rgb), 0) 88%),
    linear-gradient(0deg, rgba(var(--veil-rgb), 0.5) 0%, rgba(var(--veil-rgb), 0) 16%);
}
.hero__in {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: calc(var(--head) + 24px) var(--gutter) 96px;
}
.hero__kicker { font: 400 clamp(1.05rem, 1.7vw, 1.6rem)/1.3 var(--serif); margin: 0 0 0.6em; letter-spacing: 0.01em; }
.hero h1 {
  font-size: clamp(2.6rem, 11.5vw, 10rem); line-height: 0.95; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; margin: 0 0 0.35em; margin-right: -0.06em; text-wrap: nowrap; hyphens: none;
}
.hero__call { color: #fff; }
.hero__hint {
  position: absolute; left: 50%; bottom: 28px; width: 1px; height: 56px; background: rgba(255, 255, 255, 0.35); overflow: hidden;
}
.hero__hint::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .hero__hint::after { animation: hint 2.4s cubic-bezier(.6,0,.4,1) infinite; }
}
@keyframes hint { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
.hero__pause {
  position: absolute; right: var(--gutter); bottom: 24px; z-index: 2;
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px;
  background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.55); border-radius: var(--radius);
  font: 400 0.72rem var(--sans); text-transform: uppercase; letter-spacing: var(--caps); cursor: pointer;
}
.hero__pause[hidden] { display: none; }
.hero__note { position: absolute; left: var(--gutter); bottom: 34px; z-index: 1; font: 400 0.8rem var(--sans); color: rgba(255, 255, 255, 0.85); }
@media (max-width: 900px) {
  .hero { height: calc(100svh - var(--bar)); }
  .hero__media video { object-position: 72% 50%; }
  .hero__pause { bottom: 20px; right: 16px; }
  .hero__note { bottom: 30px; left: 16px; }
}

/* ---------- info line ---------- */
.info { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.info__grid { display: grid; grid-template-columns: repeat(5, auto); justify-content: space-between; }
.info__item { margin: 0; padding: 22px 20px; border-left: 1px solid var(--line); font-size: 1rem; line-height: 1.45; }
.info__item:first-child { border-left: 0; padding-left: 0; }
.info__k { display: block; color: var(--ink-2); font-size: 0.875rem; margin-bottom: 2px; }
.info__v { font-weight: 500; }
.info__item a { text-decoration-color: var(--line); }
.info__proof { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding: 16px 0 20px; border-top: 1px solid var(--line); font-size: 0.95rem; color: var(--ink-2); }
.info__proof p { margin: 0; }
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--ink); }
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars svg { width: 18px; height: 18px; }
.status::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; vertical-align: 1px;
  border-radius: 50%; border: 1px solid currentColor;
}
.section--deep .status.is-open::before { background: #6FD49A; border-color: #6FD49A; }
.status.is-open::before { background: #2E7D4F; border-color: #2E7D4F; }
@media (max-width: 1080px) {
  .info__grid { grid-template-columns: 1fr 1fr; }
  .info__item, .info__item:first-child { border-left: 0; padding: 16px 0; border-top: 1px solid var(--line); }
  .info__item:nth-child(-n+2) { border-top: 0; }
  .info__item:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .info__item:last-child { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .info__grid { grid-template-columns: 1fr; }
  .info__item, .info__item:nth-child(even) { padding: 14px 0; border-left: 0; border-top: 1px solid var(--line); }
  .info__item:first-child { border-top: 0; }
}

/* ---------- occasions ---------- */
.anlaesse { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--accent); }
.anlass { border-bottom: 1px solid var(--line); }
.anlass a {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto; gap: 16px 48px; align-items: baseline;
  padding: clamp(24px, 3vw, 36px) 0; text-decoration: none;
}
.anlass h3 { font-size: clamp(1.8rem, 3.4vw, 3rem); margin: 0; transition: transform 200ms; }
.anlass p { margin: 0; color: var(--ink-2); }
.anlass__go { font-weight: 400; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; white-space: nowrap; }
.anlass a:hover h3 { transform: translateX(6px); }
.anlass a:hover .anlass__go { text-decoration-thickness: 2px; }
.anlaesse__more { margin-top: 28px; color: var(--ink-2); max-width: 46em; }
@media (max-width: 900px) {
  .anlass a { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- glass house ---------- */
.stack { position: relative; aspect-ratio: 2752 / 1536; overflow: hidden; background: var(--hero); border-radius: var(--radius); }
.layer { position: absolute; inset: 0; --r: 1; clip-path: inset(0 0 calc(100% - var(--r) * 100%) 0); isolation: isolate; }
.layer img { width: 100%; height: 100%; object-fit: cover; }
.layer:first-child { clip-path: none; }
.scan {
  position: absolute; left: 0; right: 0; top: calc(var(--r) * 100% - 2px); height: 2px; background: var(--paper);
  pointer-events: none; opacity: clamp(0, min(var(--r), 1 - var(--r)) * 40, 1);
}
.scan::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 34px;
  background: linear-gradient(0deg, rgba(245, 242, 236, 0.35), rgba(245, 242, 236, 0));
}
/* ---- signs, frames and annotations follow the ground of each layer ----
   dark ground (photo, thermal): white elements; light ground (S4 sheet): deep-blue elements */
.layer { --mark: #fff; --mark-ink: var(--deep); }
.layer--light { --mark: var(--deep); --mark-ink: #fff; }
.vis {
  position: absolute; left: 24px; top: 24px; padding: 2px 8px; z-index: 3;
  background: var(--mark); color: var(--mark-ink); border-radius: var(--radius);
  font: 400 0.75rem/1.6 var(--sans);
}
.phead__fig .vis { background: #fff; color: var(--deep); }
.phead__fig[data-ground="light"] .vis { background: var(--deep); color: #fff; }
.frame { position: absolute; inset: 12px; border: 1px solid var(--mark); opacity: 0.8; pointer-events: none; z-index: 2; }
.layer--mixed .frame { box-shadow: inset 0 0 0 1px rgba(11, 42, 74, 0.55), 0 0 0 1px rgba(11, 42, 74, 0.35); }
/* registration marks: circle with cross on each corner */
.frame i { position: absolute; width: 12px; height: 12px; border: 1px solid var(--mark); border-radius: 50%; }
.frame i::before, .frame i::after { content: ""; position: absolute; background: var(--mark); }
.frame i::before { left: -6px; right: -6px; top: 50%; height: 1px; margin-top: -0.5px; }
.frame i::after { top: -6px; bottom: -6px; left: 50%; width: 1px; margin-left: -0.5px; }
.frame i:nth-child(1) { left: -7px; top: -7px; }
.frame i:nth-child(2) { right: -7px; top: -7px; }
.frame i:nth-child(3) { left: -7px; bottom: -7px; }
.frame i:nth-child(4) { right: -7px; bottom: -7px; }
@media (max-width: 600px) { .frame { inset: 8px; } .vis { left: 16px; top: 16px; } }

.ov { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ov .ln { fill: none; stroke: var(--mark, #fff); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.ov .halo { fill: none; stroke: var(--mark-ink, var(--deep)); stroke-width: 3.5; opacity: 0.7; vector-effect: non-scaling-stroke; }
.ov .dot { fill: var(--mark, #fff); stroke: var(--mark-ink, var(--deep)); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ov .tag rect { fill: var(--mark, #fff); stroke: var(--mark-ink, var(--deep)); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ov .tag text { font: 500 13px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; fill: var(--mark-ink, var(--deep)); dominant-baseline: central; }
/* explicit tones inside a mixed layer */
.ov .tag--deep rect { fill: var(--deep); stroke: var(--deep); }
.ov .tag--deep text { fill: #fff; }
.ov .tag--white rect { fill: #fff; stroke: var(--deep); }
.ov .tag--white text { fill: var(--deep); }
.ov .ln--white { stroke: #fff; }
.ov .halo.ln--white { stroke: var(--deep); }
.ov .dot.ln--white { fill: #fff; stroke: var(--deep); }
.ov .lab { transform-box: fill-box; transform-origin: center; }
.ov .hot { fill: rgba(255, 255, 255, 0.12); stroke: #fff; stroke-width: 1.2; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.ov .crack { fill: none; stroke: #fff; stroke-width: 2.2; vector-effect: non-scaling-stroke; }
/* radon section: light sheet on the real ground line */
.ov .soil { fill: #EEF3F8; }
.ov .hatch { stroke: var(--accent); stroke-width: 0.8; opacity: 0.45; vector-effect: non-scaling-stroke; }
.ov .cellar { fill: #fff; stroke: var(--accent); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.ov .slab { fill: var(--accent); }
.ov .ground { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.ov .cellar-t { font: 500 13px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; fill: var(--deep); }
.ov .pt { fill: var(--deep); opacity: 0; }
/* images stand off the deep-blue section with a light hairline */
.section--deep .stack { outline: 1px solid rgba(201, 214, 227, 0.75); outline-offset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .ov .pt { animation: rise var(--d, 7s) linear var(--del, 0s) infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .ov .pt { opacity: 0.7; }
}
@keyframes rise {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 0.85; }
  85% { opacity: 0.85; }
  100% { transform: translateY(-46px); opacity: 0; }
}

/* dimension chains inside layers draw with the layer reveal */
.layer .draw { stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, var(--r) * 2 - 1, 1)); }
.layer:first-child .draw { stroke-dashoffset: calc(1 - clamp(0, var(--p0, 1), 1)); }

.haus__intro { max-width: 46em; }
.haus__grid { margin-top: clamp(32px, 5vw, 56px); }
.haus__fig { display: none; }
.schicht { padding-block: 40px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.schicht:first-child { border-top: 0; }
.schicht__fig { margin: 0 0 24px; }
.schicht__fig .stack { aspect-ratio: 2752 / 1536; }
.schicht h3 { margin-bottom: 0.4em; }
.schicht__no { display: block; font: 400 0.9rem var(--sans); color: var(--on-deep-2); margin-bottom: 10px; }
.schicht p { max-width: 34em; }
.schicht__more { font-weight: 400; color: #fff !important; }
.haus__end { margin-top: clamp(40px, 6vw, 72px); padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, 0.5); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.haus__end h3 { margin: 0; }
.tabs { display: none; }

/* mobile square crop: overlays stay aligned with the 0.72 square (left offset 1213/1536 of the side) */
@media (max-width: 1023px) {
  .stack--sq { aspect-ratio: 1; }
  .stack--sq .ov { left: -78.97%; width: 179.17%; max-width: none; }
  .stack--sq .ov .lab { scale: 1.45; }
  .stack--sq .ov .cellar-t { font-size: 21px; }
}

/* Desktop with JS and motion: sticky picture, scroll-driven layers */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .js .haus__grid { display: grid; grid-template-columns: minmax(0, 60fr) minmax(0, 40fr); gap: 0 clamp(32px, 4vw, 64px); }
  .js .haus__fig { display: block; position: relative; }
  .js .haus__sticky { position: sticky; top: var(--head); height: calc(100vh - var(--head)); display: flex; align-items: center; }
  .js .haus__sticky .stack { width: 100%; }
  .js .schicht { min-height: calc(100vh - var(--head)); display: flex; flex-direction: column; justify-content: center; border-top: 0; padding-block: 0; }
  .js .schicht__fig { display: none; }
  .js .haus__fig .layer[data-i="1"] { --r: clamp(0, var(--p), 1); }
  .js .haus__fig .layer[data-i="2"] { --r: clamp(0, var(--p) - 1, 1); }
  .js .haus__fig .layer[data-i="3"] { --r: clamp(0, var(--p) - 2, 1); }
  .js .haus__fig .layer[data-i="4"] { --r: clamp(0, var(--p) - 3, 1); }
  .js .schicht { opacity: clamp(0.6, 1 - abs(var(--p) - var(--k)) * 1.3, 1); }
  @supports (animation-timeline: view()) {
    .js .haus__grid { view-timeline: --haus block; view-timeline-inset: var(--head) 0px; }
    .js .haus__grid.sdt { animation: haus-p linear both; animation-timeline: --haus; animation-range: contain 0% contain 100%; }
  }
}
@keyframes haus-p {
  0%, 6% { --p: 0; }
  19%, 31% { --p: 1; }
  44%, 56% { --p: 2; }
  69%, 81% { --p: 3; }
  94%, 100% { --p: 4; }
}

/* Phone/tablet with JS and motion: one picture, tabs */
@media (max-width: 1023px) and (prefers-reduced-motion: no-preference) {
  .js .haus__fig { display: block; margin-bottom: 20px; }
  .js .tabs { display: flex; gap: 0; margin: 0 0 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.3); overflow-x: auto; }
  .js .tab {
    flex: 1 0 auto; min-height: 48px; padding: 10px 14px; background: none; border: 0; border-bottom: 2px solid transparent;
    font: 400 0.8rem var(--sans); text-transform: uppercase; letter-spacing: var(--caps); color: var(--on-deep-2); cursor: pointer;
  }
  .js .tab[aria-selected="true"] { color: #fff; border-bottom-color: #fff; }
  .js .schicht { border-top: 0; padding-block: 8px 0; }
  .js .schicht[data-k="0"] { display: none; }
  .js .schicht__fig { display: none; }
  .js .schicht[hidden] { display: none; }
}

/* ---------- reviews ---------- */
.reviews__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: 40px; }
.score { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.score__n { font: 400 clamp(4rem, 9vw, 7rem)/0.9 var(--serif); letter-spacing: -0.02em; }
.score__t { display: grid; gap: 4px; }
.score .stars svg { width: 22px; height: 22px; }
.marquee { position: relative; overflow: hidden; --marquee-speed: 30; }
.marquee__track { display: flex; width: max-content; }
.marquee__group { display: flex; gap: 20px; padding-right: 20px; }
.review {
  width: clamp(270px, 74vw, 340px); min-height: 400px; display: flex; flex-direction: column; gap: 18px;
  padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.section--tint .review { background: var(--paper); }
.section--tint .cert { background: var(--paper); }
.review blockquote { margin: 0; font: 400 1.4rem/1.38 var(--serif); flex: 1; }
.review__who { font-weight: 500; }
.review__meta { color: var(--ink-2); font-size: 0.9rem; }
.reviews__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; color: var(--ink-2); font-size: 0.95rem; }
.marquee-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  background: none; border: 1px solid var(--line); border-radius: var(--radius); font: 400 0.75rem var(--sans); text-transform: uppercase; letter-spacing: var(--caps); color: var(--ink); cursor: pointer;
}
.marquee-toggle[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); }
  .review { scroll-snap-align: start; }
}
.no-marquee .marquee { overflow-x: auto; scroll-padding-inline: 0; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px 72px; align-items: end; }
.about blockquote { margin: 0; font: 400 clamp(1.9rem, 3.6vw, 3.2rem)/1.18 var(--serif); letter-spacing: -0.01em; text-wrap: balance; }
.sig { border-top: 1px solid var(--accent); padding-top: 18px; display: grid; gap: 4px; }
.sig__name { font: 400 1.5rem/1.2 var(--serif); }
.sig span { color: var(--ink-2); }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }

/* ---------- certificates ---------- */
.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.cert {
  position: relative; padding: 32px 28px 26px; border: 1px solid var(--accent); border-radius: var(--radius);
  outline: 1px solid var(--line); outline-offset: -7px; background: var(--paper-2); display: flex; flex-direction: column; gap: 10px;
}
.cert__kind { font: 400 0.95rem var(--sans); color: var(--ink-2); }
.cert h3 { margin: 0; font-size: 1.6rem; }
.cert__by { margin: 0; color: var(--ink-2); font-size: 1rem; }
.cert__code { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font: 400 0.9rem var(--sans); color: var(--ink-2); }

/* ---------- page head: full-bleed layer, centred title ---------- */
.phead { position: relative; height: 70svh; min-height: 480px; background: var(--hero); color: #fff; overflow: hidden; }
.phead__fig { position: absolute; inset: 0; margin: 0; }
.phead__fig .stack { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; container-type: size; }
/* cover box: image and overlay share it, so they stay aligned (object-position via --fx) */
.cover { position: absolute; top: var(--fy, 50%); left: var(--fx, 50%); height: max(100cqh, 100cqw * 1536 / 2752); aspect-ratio: 2752 / 1536; transform: translate(calc(var(--fx, 50%) * -1), calc(var(--fy, 50%) * -1)); }
.cover img { width: 100%; height: 100%; }
.cover .ov { inset: 0; }
.phead__fig::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(var(--veil-rgb), var(--top, 0.86)) 0%, rgba(var(--veil-rgb), calc(var(--top, 0.86) - 0.24)) 16%, rgba(var(--veil-rgb), 0) 36%),
    linear-gradient(180deg, rgba(var(--veil-rgb), 0) 22%, rgba(var(--veil-rgb), var(--veil, 0.58)) 36%, rgba(var(--veil-rgb), var(--veil, 0.58)) 74%, rgba(var(--veil-rgb), 0) 92%);
}
.phead__fig .vis { top: auto; bottom: 16px; left: var(--gutter); }
.phead__in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: calc(var(--head) + 16px) var(--gutter) 48px; }
.phead h1 { font-size: clamp(2.4rem, 6vw, 5.4rem); color: #fff; margin: 0; max-width: 14em; }
.crumb { font: 400 0.75rem var(--sans); text-transform: uppercase; letter-spacing: var(--caps); margin-bottom: 20px; color: rgba(255, 255, 255, 0.9); }
.crumb a { color: inherit; }
.pintro { padding-block: clamp(48px, 7vw, 96px) 0; }
.pintro__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 72px; align-items: end; }
.pintro .lead { margin: 0; color: var(--ink); font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.5; }
@media (max-width: 900px) { .pintro__grid { grid-template-columns: 1fr; } .phead { height: calc(70svh - var(--bar)); } .cover { --fx: 72%; } }
@media (prefers-reduced-motion: no-preference) {
  .js .phead__fig .layer[data-i="1"] { --r: 0; }
  .js .phead__fig.go .layer[data-i="1"] { animation: scan-in 500ms cubic-bezier(.3,.6,.3,1) 150ms both; }
}
@keyframes scan-in { from { --r: 0; } to { --r: 1; } }
@property --r { syntax: "<number>"; inherits: true; initial-value: 1; }

/* ---------- checks list ---------- */
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; list-style: none; margin: 0; padding: 0; }
.checks li { padding: 26px 0; border-top: 1px solid var(--line); }
.checks h3 { font-size: 1.5rem; margin-bottom: 0.35em; }
.checks p { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) { .checks { grid-template-columns: 1fr; } }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.steps li { counter-increment: s; padding-top: 20px; border-top: 1px solid var(--accent); }
.steps li::before { content: counter(s); display: block; font: 400 3.2rem/1 var(--serif); margin-bottom: 14px; color: var(--accent); }
.steps h3 { font-size: 1.45rem; margin-bottom: 0.35em; }
.steps p { margin: 0; color: var(--ink-2); }
.steps--img { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px 72px; align-items: center; }
.steps--img .steps { grid-template-columns: 1fr; gap: 28px; }
.steps--img img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps--img { grid-template-columns: 1fr; }
}

/* ---------- call section ---------- */
.call { text-align: left; }
.call__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px 72px; align-items: end; }
.call h2 { margin-bottom: 0.3em; }
.call .btns { justify-content: flex-start; }
@media (max-width: 900px) { .call__grid { grid-template-columns: 1fr; } }

/* ---------- contact page ---------- */
.big-tel { font: 400 clamp(2.6rem, 7vw, 5.6rem)/1 var(--serif); letter-spacing: -0.01em; text-decoration: none; display: inline-block; margin: 8px 0 24px; }
.big-tel:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.contact { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px 80px; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.dl dt, .dl dd { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.dl dt { color: var(--ink-2); padding-right: 32px; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours th { width: 7.5em; }
.hours .bar-cell { width: 45%; padding-left: 16px; }
.tl { position: relative; height: 8px; background: var(--paper-2); border-radius: 1px; }
.tl i { position: absolute; top: 0; bottom: 0; background: var(--accent); opacity: 0.55; border-radius: 1px; }
.tl b { position: absolute; top: -6px; bottom: -6px; width: 0; border-left: 2px solid var(--ink); }
.hours tr.today th, .hours tr.today td { font-weight: 600; }
.hours tr.today .tl i { opacity: 1; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .hours .bar-cell { display: none; } }

/* ---------- prose pages ---------- */
.prose { max-width: 44em; }
.prose h2 { font-size: 1.9rem; margin-top: 1.4em; }

/* ---------- footer ---------- */
.footer { background: var(--deep); color: var(--on-deep-2); padding-block: 56px 40px; font-size: 0.95rem; }
.call + .footer, .section--deep + .footer { border-top: 1px solid rgba(255, 255, 255, 0.18); }
.footer h2 { color: #fff; }
.footer a { color: #fff !important; text-decoration-color: rgba(255, 255, 255, 0.6); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 3fr)); gap: 32px 48px; }
.footer h2 { font: 500 1rem var(--sans); letter-spacing: 0; margin: 0 0 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer__legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.18); color: var(--on-deep-2); font-size: 0.875rem; display: grid; gap: 6px; }
.footer__legal p { margin: 0; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .fade { opacity: 0; transform: translateY(12px); transition: opacity 500ms ease-out, transform 500ms ease-out; }
  .js .fade.on { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* additions */
.anlass__row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px 48px; align-items: baseline; padding: clamp(22px, 3vw, 32px) 0; }
.anlass__row h3 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
@media (max-width: 900px) { .anlass__row { grid-template-columns: 1fr; gap: 6px; } }

.schicht__fig { max-width: 980px; }

/* plain full-bleed image head (no overlay) */
.layer > img { width: 100%; height: 100%; object-fit: cover; }
.prose .crumb { color: var(--ink-2); }
