/* Fliesen Maier – Mockup "dynamisch": shared styles for all pages */
/* ===== Tokens ===== */
:root {
  --forest: #0F3024;
  --forest-deep: #0A2419;
  --pine: #17412F;
  --leaf: #009846;
  --sun: #FFED00;
  --indigo: #393185;
  --chalk: #F3F6F3;
  --ink: #14201A;
  --muted: #B7CCBF;
  --muted-ink: #4A5A51;
  --line-dark: rgba(183, 204, 191, .18);
  --line-light: #D3DDD6;
  --err-dark: #FFB4A8;
  --err-light: #B42318;

  --font-display: "Instrument Sans", ui-sans-serif, system-ui, sans-serif; /* one family, set tight for headings */
  --font-body: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;

  --r-sm: 4px;   /* precise edges, like a tile */
  --r-md: 6px;
  --r-lg: 8px;
  --pill: 999px;
  --fuge: 10px;
  --gutter: clamp(16px, 5vw, 40px);
  --wrap: 1240px;

  /* Flat, quiet depth in forest tones: a hairline and a short shadow at most */
  --shadow-1: 0 1px 2px rgba(5, 20, 13, .16);
  --shadow-2: 0 1px 2px rgba(5, 20, 13, .1), 0 14px 30px -22px rgba(5, 20, 13, .4);
  --glaze: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 55%);
  --edge: inset 0 0 0 1px rgba(255, 255, 255, .06);

  --brass: #B8955E;       /* accent from the brass fittings: underlines, active states, focus */
  --brass-light: #D9B97F;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--forest);
  color: #fff;
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--brass-light); outline-offset: 3px; border-radius: 4px; }
.light :focus-visible { outline-color: var(--ink); }
[id] { scroll-margin-top: 96px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -100px; z-index: 100; background: var(--chalk); color: var(--ink); padding: 12px 18px; border-radius: var(--pill); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.section { padding-block: clamp(88px, 13vw, 176px); }
.section:not(.light) { /* calm forest with a barely visible large-format joint grid */
  background:
    repeating-linear-gradient(0deg, transparent 0 calc(160px - 2px), rgba(183, 204, 191, .03) calc(160px - 2px) 160px),
    repeating-linear-gradient(90deg, transparent 0 calc(160px - 2px), rgba(183, 204, 191, .03) calc(160px - 2px) 160px),
    var(--forest);
}
.light { background: var(--chalk); color: var(--ink); }
/* Two light sections in a row share one surface: a fine joint line instead of a double gap */
.section.light:has(+ .section.light:not(.cta-band)) { padding-bottom: clamp(56px, 8vw, 104px); }
.section.light + .section.light:not(.cta-band) { padding-top: 0; }
.section.light + .section.light:not(.cta-band) > .wrap::before {
  content: ""; display: block; height: 1px; margin-bottom: clamp(56px, 8vw, 104px); background: var(--line-light);
}
.h2 { font-weight: 600; font-size: clamp(2.125rem, 8.5vw, 4.25rem); line-height: 1.04; letter-spacing: -.035em; max-width: 14ch; }
.intro { margin-top: 20px; max-width: 34em; font-size: 1.125rem; color: var(--muted); }
.light .intro { color: var(--muted-ink); }

/* Placeholder marker: small and quiet, but on every stand-in */
.ph {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 3px 8px; border-radius: 3px;
  background: rgba(6, 24, 16, .62); color: #fff;
  font: 500 .75rem/1.3 var(--font-body); letter-spacing: .01em;
}
.light .ph-inline { background: rgba(20, 32, 26, .07); color: var(--muted-ink); }
.ph-inline { position: static; display: inline-block; vertical-align: middle; }

/* ===== Glass (glaze) ===== */
.glass {
  background-color: rgba(15, 48, 36, .62);
  background-image: var(--glaze);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), inset 0 -1px 0 rgba(0, 0, 0, .3), inset 0 0 24px rgba(255, 255, 255, .04), var(--shadow-1);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background-color: var(--forest); }
}

/* Solid panel where glass used to be (glass stays on the navigation only) */
.panel { background-color: var(--forest-deep); border: 1px solid var(--line-dark); box-shadow: var(--shadow-1); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: var(--pill);
  font: 600 1.0625rem/1 var(--font-body); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease-out), background-color .25s, border-color .25s, color .25s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.97); }
/* Primary action: calm chalk white with dark type. The logo colours stay in the logo and the three tiles. */
.btn-primary {
  background-color: var(--chalk); color: var(--ink);
  box-shadow: inset 0 -1px 0 rgba(10, 36, 25, .14), var(--shadow-1);
}
.btn-primary:hover { background-color: #fff; }
.light .btn-primary { background-color: var(--forest); color: #fff; box-shadow: var(--shadow-1); }
.light .btn-primary:hover { background-color: var(--pine); }
.btn-glass { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .34); }
.btn-glass:hover { border-color: rgba(255, 255, 255, .35); }
.btn-forest { background: var(--forest); color: #fff; box-shadow: var(--edge), var(--shadow-1); }
.btn-forest:hover { background: var(--pine); }

/* ===== Navigation (floating glass pill) ===== */
.nav {
  position: fixed; z-index: 50;
  top: calc(env(safe-area-inset-top) + 10px); left: 10px; right: 10px;
  max-width: calc(var(--wrap) + 20px); margin-inline: auto;
  display: flex; align-items: center; gap: 8px;
  padding: 8px; border-radius: var(--pill);
}
.brand {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  border-radius: var(--pill); background: rgba(243, 246, 243, .96);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(10, 36, 25, .12);
}
.brand img { width: auto; height: 24px; }
.nav-links { display: none; }
.nav-cta { display: none; margin-left: auto; min-height: 44px; padding: 0 20px; font-size: 1rem; }
.icon-btn {
  margin-left: auto; display: inline-grid; place-items: center;
  width: 48px; height: 48px; border-radius: var(--pill);
  background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .14); cursor: pointer;
}
.icon-btn svg { width: 22px; height: 22px; }

/* Over light sections (set by main.js) the bar turns into light glass */
.nav { transition: background-color .3s, border-color .3s, box-shadow .3s; }
.nav.on-light { background-color: rgba(243, 246, 243, .74); border-color: rgba(20, 32, 26, .1); box-shadow: 0 1px 2px rgba(5, 20, 13, .08); }
.nav.on-light .nav-links a { color: var(--ink); }
.nav.on-light .nav-links a:hover { background: rgba(20, 32, 26, .06); }
.nav.on-light .icon-btn { color: var(--ink); background: rgba(20, 32, 26, .05); border-color: rgba(20, 32, 26, .12); }
.nav.on-light .btn-primary { background-color: var(--forest); color: #fff; }
.nav.on-light .btn-primary:hover { background-color: var(--pine); }

/* Mobile menu as modal dialog: native focus trap, Esc, inert background */
.menu {
  position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none;
  margin: 0; border: 0; padding: calc(env(safe-area-inset-top) + 18px) var(--gutter) calc(env(safe-area-inset-bottom) + 24px);
  background: var(--forest-deep); color: #fff;
}
.menu[open] { display: flex; flex-direction: column; overflow-y: auto; }
.menu::backdrop { background: rgba(5, 20, 13, .6); }
.menu-top { display: flex; align-items: center; justify-content: space-between; }
/* The menu as a tile layout: each entry is a tile with a photo, laid one after another */
.menu ul {
  list-style: none; margin: 24px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; /* the joint */
}
.menu li:first-child { grid-column: 1 / -1; }
.menu li a {
  position: relative; isolation: isolate; display: flex; align-items: flex-end; aspect-ratio: 1 / 1; padding: 14px 16px;
  border-radius: var(--r-sm); overflow: hidden; text-decoration: none; color: #fff;
  font: 600 clamp(1.25rem, 5.4vw, 1.75rem)/1.1 var(--font-display); letter-spacing: -.02em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.menu li a::before { content: ""; position: absolute; inset: 0; z-index: -1; }
/* one motif per entry; the text sits on a soft dark gradient */
.menu li a { background-color: var(--pine); }
.menu li:nth-child(1) a { aspect-ratio: 2 / 1; }
.menu li:nth-child(1) a::before { /* Start: the finished marble bathroom from the hero */
  background: linear-gradient(to top, rgba(6, 24, 16, .85), rgba(6, 24, 16, 0) 65%), url(img/bad-marmor-800.webp) 50% 62% / cover;
  filter: saturate(.86) sepia(.06);
}
.menu li:nth-child(2) a::before { /* Leistungen: the master at work */
  background: linear-gradient(to top, rgba(6, 24, 16, .85), rgba(6, 24, 16, 0) 65%), url(img/handwerk-wand-800.webp) 50% 40% / cover;
  filter: saturate(.86) sepia(.06);
}
.menu li:nth-child(3) a { /* Projekte: before and after, split down the middle */
  background: linear-gradient(to top, rgba(6, 24, 16, .85), rgba(6, 24, 16, 0) 65%), url(img/bad-fenster-800.webp) 50% 50% / cover;
}
.menu li:nth-child(3) a::before {
  clip-path: inset(0 50% 0 0); /* the 'before' half */
  background: linear-gradient(to top, rgba(6, 24, 16, .85), rgba(6, 24, 16, 0) 65%), url(img/bad-fenster-800.webp) 50% 50% / cover;
  filter: grayscale(.55) sepia(.4) brightness(.72) contrast(.88) saturate(.75);
  box-shadow: inset -2px 0 0 #fff;
}
.menu li:nth-child(4) a::before { /* Über uns: the team (placeholder until the team photos exist) */
  background:
    linear-gradient(to top, rgba(6, 24, 16, .8), rgba(6, 24, 16, 0) 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 80'%3E%3Cg fill='%23B7CCBF' fill-opacity='.6'%3E%3Ccircle cx='28' cy='36' r='10'/%3E%3Cpath d='M10 80c0-14 8-25 18-25s18 11 18 25z'/%3E%3Ccircle cx='60' cy='29' r='11.5'/%3E%3Cpath d='M39 80c0-17 9-28 21-28s21 11 21 28z'/%3E%3Ccircle cx='92' cy='36' r='10'/%3E%3Cpath d='M74 80c0-14 8-25 18-25s18 11 18 25z'/%3E%3C/g%3E%3C/svg%3E") 50% 100% / 92% auto no-repeat,
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(10, 36, 25, .55) 23px 25px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(10, 36, 25, .55) 23px 25px),
    var(--pine);
}
.menu li:nth-child(5) a::before { /* Kontakt: the brand mark, a direct line to the business */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Crect x='1' y='13' width='20' height='20' rx='2' fill='%23393185' stroke='%23fff' stroke-width='1.2'/%3E%3Crect x='7' y='7' width='20' height='20' rx='2' fill='%23FFED00' stroke='%23fff' stroke-width='1.2'/%3E%3Crect x='13' y='1' width='20' height='20' rx='2' fill='%23009846' stroke='%23fff' stroke-width='1.2'/%3E%3C/svg%3E") calc(100% - 16px) 16px / 30% auto no-repeat,
    radial-gradient(120% 90% at 100% 0%, rgba(0, 152, 70, .35), rgba(0, 152, 70, 0) 60%),
    var(--forest-deep);
}
.menu a[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--brass); }
.menu[open] li { animation: tileIn .42s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms + 60ms); }
@keyframes tileIn { from { opacity: 0; transform: translateY(12px) scale(.94); } }
/* Menu icon: four small tiles with a joint, they spread a little on hover */
.tiles-ico rect { fill: currentColor; transform-box: fill-box; transform-origin: center; transition: transform .25s var(--ease-out); }
.icon-btn:hover .tiles-ico rect:nth-child(1) { transform: translate(-1px, -1px); }
.icon-btn:hover .tiles-ico rect:nth-child(2) { transform: translate(1px, -1px); }
.icon-btn:hover .tiles-ico rect:nth-child(3) { transform: translate(-1px, 1px); }
.icon-btn:hover .tiles-ico rect:nth-child(4) { transform: translate(1px, 1px); }
.menu-actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 24px; }
html.menu-open { overflow: hidden; }

/* ===== Hero ===== */
.hero { position: relative; isolation: isolate; overflow: clip; padding: calc(env(safe-area-inset-top) + 92px) 0 120px; }
.hero::before, .page-head::before { /* soft light from the top right, like daylight on a glazed wall */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(90% 60% at 88% 8%, rgba(0, 152, 70, .3), rgba(0, 152, 70, 0) 62%),
    radial-gradient(70% 50% at 0% 100%, rgba(10, 36, 25, .9), rgba(10, 36, 25, 0) 70%);
}
.hero::after, .page-head::after { /* faint large-format joint grid, fading out */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent 0 calc(var(--cell) - 2px), rgba(183, 204, 191, .05) calc(var(--cell) - 2px) var(--cell)),
    repeating-linear-gradient(90deg, transparent 0 calc(var(--cell) - 2px), rgba(183, 204, 191, .05) calc(var(--cell) - 2px) var(--cell));
  -webkit-mask-image: radial-gradient(90% 80% at 60% 30%, #000, transparent 78%);
  mask-image: radial-gradient(90% 80% at 60% 30%, #000, transparent 78%);
}
.hero, .page-head { --cell: 120px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.hero > .wrap { position: relative; z-index: 1; } /* text above the wall */
.hero { padding-top: calc(env(safe-area-inset-top) + 94vw); }
h1 {
  font-weight: 600; font-size: clamp(3rem, 14vw, 6.75rem); line-height: .96; letter-spacing: -.045em;
  margin-top: 8px;
}
.lead { margin-top: 22px; max-width: 30em; font-size: 1.1875rem; line-height: 1.55; color: #E3ECE6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-cta .btn { flex: 1 1 auto; padding: 0 18px; }
.replay {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; padding: 0 2px;
  background: none; border: 0; color: var(--muted); cursor: pointer;
  font: 500 .9375rem var(--font-body); text-decoration: underline; text-underline-offset: 4px;
}
.replay:hover { color: #fff; }

/* --- Hero: a real glazed tile wall (photo). A slow light reflection travels across it and three
   tiles in the wall glow up in the logo colours, one after the other: the logo is laid into the wall.
   Default markup is the finished state; .play (set by JS) runs the sequence once, about 4 s. --- */
.hero-wall {
  position: absolute; top: 0; right: 0; z-index: 0; width: 225vw; aspect-ratio: 1600 / 1187; pointer-events: none;
}
.wall-photo {
  position: absolute; inset: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 52%, transparent 74%);
  mask-image: linear-gradient(to bottom, #000 52%, transparent 74%);
}
.wall-photo img { width: 100%; height: 100%; }
.wall-photo img, .slice { filter: saturate(.55) brightness(.8) contrast(1.08); } /* matte, deep glaze instead of loud teal */
.wall-photo::after { /* raking light from the upper left brings out the relief of the tiles */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(115deg, rgba(255, 236, 214, .55) 0%, rgba(255, 236, 214, 0) 38%, rgba(4, 18, 12, .55) 100%);
}
.hero-photo { /* the result: a finished bathroom, shown once the intro is over */
  position: absolute; z-index: 6; top: 0; right: 0; bottom: 0; width: min(100%, 100vw); overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 54%); /* fades out before the headline */
  mask-image: linear-gradient(to bottom, #000 30%, transparent 54%);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; filter: saturate(.86) sepia(.06); }
.is-armed .hero-photo { opacity: 0; }
.hero-wall:not(.is-armed) .wall-body { opacity: 0; } /* finished state: only the bathroom, fading into the green */
.wall-sheen { /* broad, soft reflection of a window on glaze */
  position: absolute; top: -15%; bottom: -15%; left: -45%; width: 38%; z-index: 2; opacity: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .1) 30%, rgba(255, 255, 255, .26) 50%, rgba(255, 255, 255, .1) 70%, rgba(255, 255, 255, 0));
  transform: skewX(-16deg);
}
/* Logo tiles sit in the grid like their neighbours. The photo of the very same tile is blended
   on top (soft-light), so light, glaze and texture of the wall carry through the colour. */
.lt {
  position: absolute; z-index: 1; border-radius: 2px; overflow: hidden;
  /* same light as the wall: from above, a soft bevel on the edges, a window reflection on the glaze */
  background-image:
    linear-gradient(122deg, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, .18) 40%, rgba(255, 255, 255, .04) 48%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .04) 38%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, .2));
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .45), inset 1px 0 0 rgba(255, 255, 255, .18), inset -1px 0 0 rgba(0, 0, 0, .18), inset 0 -2px 3px rgba(0, 0, 0, .28);
}
.lt-g { background-color: var(--leaf); }
.lt-y { background-color: var(--sun); }
.lt-b { background-color: #4A41A0; } /* indigo, lifted slightly so it reads under the wall's light */
.lt::before {
  content: ""; position: absolute; inset: 0; z-index: -1; mix-blend-mode: soft-light; opacity: .6;
  background: url(img/fliesenwand-1600.webp) var(--bp) / var(--bs) no-repeat;
}
.lt::after { /* glint on the glaze */
  content: ""; position: absolute; top: -30%; bottom: -30%; left: -70%; width: 55%; opacity: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
  transform: skewX(-20deg);
}

/* Intro: a craftsman comes in from the right and knocks the three tiles out where the logo goes,
   then the coloured tiles are set in. intro.js runs one Web Animations timeline (transform/opacity only).
   .is-armed (set before first paint) is the start state; without it the markup shows the finished wall. */
.wall-body { position: absolute; inset: 0; }
.lt { z-index: 3; }
.hole, .slice { position: absolute; display: none; border-radius: 2px; }
.hole { /* bare adhesive bed with trowel ridges */
  z-index: 1;
  background: repeating-linear-gradient(45deg, #39433D 0 3px, #2B332F 3px 6px);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, .65), inset 0 -1px 0 rgba(255, 255, 255, .06);
}
.slice { /* the very same tile of the photo, so it can come loose */
  z-index: 2; will-change: transform;
  background: url(img/fliesenwand-1600.webp) var(--bp) / var(--bs) no-repeat;
}
.fig { position: absolute; z-index: 4; left: 64.8%; top: 21.5%; width: 18%; display: none; } /* intro.js sets the exact values */
.fig svg { display: block; width: 100%; height: auto; overflow: visible; transform: scaleX(-1); } /* faces left, towards the tiles */
.wall-dust { position: absolute; z-index: 5; inset: 0; }
.dust { position: absolute; border-radius: 50%; opacity: 0; background: rgba(238, 244, 240, .9); }
.is-armed .hole, .is-armed .slice, .is-armed .fig { display: block; }
.is-armed .fig { transform: translateX(240%); }
.is-armed .lt { opacity: 0; }

/* One calm grade for all content photos: a little warmer, a little less saturated */
.section img, .quick img, .page-head img { filter: saturate(.86) sepia(.06) contrast(1.02); }

/* ===== Quick access (solid panel, overlapping hero edge) ===== */
.quick { position: relative; z-index: 3; margin-top: -76px; }
.quick-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 6px; border-radius: var(--r-md); }
.quick a {
  display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 8px 10px 8px 8px;
  border-radius: var(--r-sm); text-decoration: none; font-weight: 600; font-size: 1rem; line-height: 1.2;
  transition: background-color .25s;
}
.quick a:hover { background: rgba(255, 255, 255, .08); }
.quick img { width: 44px; height: 44px; border-radius: 3px; object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16); }

/* ===== Glaze shimmer for light sections (Betrieb, Kontakt) =====
   The hero's motif, barely there: a broad window reflection on a white glazed wall
   and a large joint grid that fades out. Static; meant to be noticed only on a second look. */
.glaze-bg { position: relative; isolation: isolate; overflow: clip; }
.glaze-bg::before, .glaze-bg::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.glaze-bg::after {
  background:
    repeating-linear-gradient(0deg, transparent 0 calc(240px - 2px), rgba(15, 48, 36, .04) calc(240px - 2px) 240px),
    repeating-linear-gradient(90deg, transparent 0 calc(240px - 2px), rgba(15, 48, 36, .04) calc(240px - 2px) 240px);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.glaze-bg::before {
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0) 16%, rgba(255, 255, 255, .95) 30%, rgba(255, 255, 255, 0) 46%),
    linear-gradient(112deg, rgba(15, 48, 36, 0) 44%, rgba(15, 48, 36, .035) 52%, rgba(15, 48, 36, 0) 62%),
    linear-gradient(180deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 35%);
}

/* ===== Betrieb ===== */
.betrieb { padding-top: clamp(96px, 14vw, 168px); }
.betrieb-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.portrait { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-2); aspect-ratio: 4 / 5; background: #DCE5DF; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.betrieb-copy p { max-width: 33em; }
.betrieb-copy .h2 { max-width: 13ch; }
.betrieb-copy .big { margin-top: 24px; font-size: 1.25rem; line-height: 1.55; color: var(--ink); }
.betrieb-copy .big + p { margin-top: 16px; color: var(--muted-ink); }
.sig { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-light); display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: baseline; }
.sig strong { font: 600 1.25rem/1.2 var(--font-display); letter-spacing: -.01em; }
.sig span { color: var(--muted-ink); }
.text-link {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 18px;
  color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 1.5px; text-underline-offset: 6px;
  transition: text-decoration-color .25s, text-underline-offset .25s;
}
.text-link:hover { text-decoration-color: currentColor; text-underline-offset: 4px; }

/* ===== Leistungen: a tile layout with one joint width ===== */
.tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--fuge); margin-top: 44px; }
.tile { position: relative; display: flex; flex-direction: column; background: var(--forest-deep); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--edge); }
.tile-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; }
.tile-media img, .shot img { transition: transform .9s var(--ease-out); }
.tile:hover .tile-media img, .shot:hover img { transform: scale(1.03); } /* slow, barely there */
.tile-body { padding: 22px 20px 20px; }
.tile h3 { font-weight: 600; font-size: clamp(1.5rem, 6vw, 2rem); line-height: 1.05; letter-spacing: -.02em; }
.tile p { margin-top: 10px; color: #DCE7E0; max-width: 32em; }
.tile .btn { margin-top: 18px; min-height: 48px; font-size: 1rem; padding: 0 20px; }
.btn-line { color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn-line:hover { border-color: rgba(255, 255, 255, .85); }
.t-bad .tile-media { aspect-ratio: 4 / 5; }
.t-fliesen .tile-media { aspect-ratio: 16 / 9; }
.t-altbau .tile-media { aspect-ratio: 4 / 3; }

/* Specular highlight that follows the pointer */
.gloss::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 30%) var(--my, 0%), rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 62%);
  opacity: 0; transition: opacity .45s var(--ease-out);
}
.gloss.lit::after { opacity: 1; transition-duration: .2s; }

/* ===== Vorher-Nachher ===== */
.ba-head { display: grid; gap: 20px; }
.pairs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.pair, .pill {
  min-height: 44px; padding: 0 18px; border-radius: var(--pill); cursor: pointer;
  border: 1px solid var(--line-light); background: #fff; color: var(--ink); font: 600 1rem var(--font-body);
}
.pair[aria-pressed="true"], .pill[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: #fff; }
.ba {
  --pos: 50%;
  position: relative; margin-top: 20px; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
  background: #CAD6CE;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-before img { filter: grayscale(.55) sepia(.4) brightness(.72) contrast(.88) saturate(.75); }
.ba-track { position: absolute; inset: 0; transform: translateX(var(--pos)); pointer-events: none; }
.ba-line { position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(5, 20, 13, .25); }
.ba-knob {
  position: absolute; top: 50%; left: 0; width: 56px; height: 56px; margin: -28px 0 0 -28px;
  display: grid; place-items: center; border-radius: 50%; pointer-events: auto; cursor: ew-resize;
  background-color: #fff; box-shadow: var(--shadow-2);
  color: var(--forest);
}
.ba-knob svg { width: 26px; height: 26px; }
.ba-knob:focus-visible { outline: 2px solid var(--brass-light); outline-offset: 3px; }
.ba-tag {
  position: absolute; bottom: 14px; z-index: 2; padding: 6px 12px; border-radius: var(--pill);
  font: 600 .875rem/1.2 var(--font-body); background: rgba(10, 36, 25, .78); color: #fff;
}
.ba-tag.l { left: 14px; }
.ba-tag.r { right: 14px; }
.ba-caption { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; color: var(--muted-ink); font-size: 1rem; }
.ba-caption strong { color: var(--ink); }

/* ===== Parallax band ===== */
.band { margin: 0; position: relative; height: 64vh; min-height: 380px; max-height: 760px; overflow: hidden; background: var(--forest-deep); }
.band img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; will-change: transform; }
.band figcaption {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: var(--gutter); z-index: 2;
  max-width: 30em; padding: 18px 20px; border-radius: var(--r-md);
  background-color: rgba(10, 36, 25, .82); /* light photo behind: keep AA */
  font: 600 clamp(1.25rem, 4.6vw, 1.75rem)/1.25 var(--font-display); letter-spacing: -.015em;
}
.band .ph { top: auto; bottom: auto; top: 16px; left: 16px; }

/* ===== Projekte ===== */
.gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--fuge); margin-top: 44px; }
.shot { position: relative; margin: 0; border-radius: var(--r-md); overflow: hidden; background: #CAD6CE; }
.shot img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.shot.tall img { aspect-ratio: 4 / 5; }
.shot figcaption {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  padding: 6px 10px; border-radius: var(--r-sm); font-weight: 500; font-size: .9375rem; line-height: 1.2;
  background-color: rgba(6, 24, 16, .74); color: #fff;
}

/* ===== Team ===== */
.team { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.member { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; align-content: start; }
.face {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-sm); overflow: hidden;
  background-color: var(--pine);
  background-image:
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(10, 36, 25, .55) 23px 25px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(10, 36, 25, .55) 23px 25px);
}
.face svg { position: absolute; left: 50%; bottom: 0; width: 72%; transform: translateX(-50%); color: rgba(183, 204, 191, .55); }
.face .ph { top: 8px; left: 8px; font-size: .75rem; padding: 3px 8px; }
.member h3 { font-weight: 600; font-size: 1.25rem; line-height: 1.2; letter-spacing: -.01em; }
.member p { color: var(--muted); font-size: 1rem; margin-top: 4px; }

/* ===== Bewertungen ===== */
.rev-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 40px; }
.rev-summary { padding: 24px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line-light); position: relative; }
.stars { display: flex; gap: 4px; color: var(--muted-ink); }
.stars svg { width: 26px; height: 26px; }
.rev-summary p { margin-top: 14px; color: var(--muted-ink); }
.rev-summary .score { margin-top: 12px; font: 600 2.5rem/1 var(--font-display); color: var(--ink); letter-spacing: -.03em; }
.reviews { list-style: none; margin: 0; padding: 0; }
.reviews li { padding: 22px 0; border-top: 1px solid var(--line-light); }
.reviews li:last-child { border-bottom: 1px solid var(--line-light); }
.reviews .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; color: var(--muted-ink); font-size: 1rem; }
.reviews .meta strong { color: var(--ink); }
.quote-ph { padding: 8px 0 28px; border-bottom: 1px solid var(--line-light); }
.quote-ph blockquote { position: relative; margin: 0; padding-top: 52px; font: 500 clamp(1.375rem, 4.4vw, 2rem)/1.3 var(--font-display); letter-spacing: -.02em; color: var(--ink); max-width: 26em; }
.quote-ph blockquote::before { content: "\201E"; position: absolute; top: -34px; left: -2px; font-size: 4.5rem; line-height: 1; color: var(--brass); }
.quote-ph .meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; color: var(--muted-ink); font-size: 1rem; }
.quote-ph .meta strong { color: var(--ink); }
.rev-note { margin-top: 20px; color: var(--muted-ink); max-width: 40em; }

/* ===== Einsatzgebiet ===== */
.area-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.area-copy .intro { color: #DCE7E0; }
.area-copy .btn { margin-top: 28px; }
.area-card { border-radius: var(--r-lg); padding: 8px 22px; }
.area-row { display: grid; gap: 6px; padding: 22px 0; border-top: 1px solid var(--line-dark); }
.area-row:first-child { border-top: 0; }
.area-row dt { font-size: 1rem; color: var(--muted); }
.area-row dd { margin: 0; font: 600 clamp(1.375rem, 5vw, 1.875rem)/1.2 var(--font-display); letter-spacing: -.02em; color: #fff; }
.area-row dd p { margin-top: 6px; font: 400 1rem/1.55 var(--font-body); letter-spacing: 0; color: #DCE7E0; }
.places { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding: 0; list-style: none; font: 500 1rem/1 var(--font-body); letter-spacing: 0; }
.places li { padding: 9px 14px; border-radius: var(--pill); border: 1px solid rgba(255, 255, 255, .18); color: #fff; }
.area-note { margin-top: 12px; }

/* ===== Kontakt ===== */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 36px; }
.form-card { padding: 22px 18px 26px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line-light); }
.field { margin-top: 20px; }
.form-card > .field:first-child { margin-top: 0; }
.two .field { margin-top: 0; }
.field label, .field legend { display: block; font-weight: 600; font-size: 1rem; margin-bottom: 8px; color: var(--ink); }
.opt { font-weight: 400; color: var(--muted-ink); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--r-sm);
  border: 1.5px solid #B9C7BE; background: var(--chalk); color: var(--ink);
  font: 400 1.0625rem/1.4 var(--font-body);
  transition: border-color .15s, background-color .15s;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px rgba(184, 149, 94, .3); }
.field [aria-invalid="true"] { border-color: var(--err-light); }
.hint { margin-top: 6px; font-size: .9375rem; color: var(--muted-ink); }
.err { margin-top: 6px; font-size: .9375rem; font-weight: 600; color: var(--err-light); }
.err:empty { display: none; }
.two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px 14px; margin-top: 20px; }
.form-card > .two:first-child { margin-top: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--pill);
  border: 1.5px solid #B9C7BE; background: var(--chalk); font-weight: 500; cursor: pointer; transition: background-color .15s, border-color .15s;
}
.chip input:checked + span { background: var(--forest); border-color: var(--forest); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.check { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; margin-top: 24px; }
.check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--forest); }
.check label { font-size: 1rem; line-height: 1.5; color: var(--ink); cursor: pointer; }
.form-card .btn { width: 100%; margin-top: 24px; }
.success { margin-top: 18px; padding: 14px 16px; border-radius: var(--r-sm); background: #E6F2EA; color: var(--ink); font-weight: 500; }
.success:empty { display: none; }

.contact-side { display: grid; gap: 10px; align-content: start; }
.c-card { position: relative; padding: 22px 20px; border-radius: var(--r-md); background: var(--forest); color: #fff; }
.c-card h3 { font-weight: 600; font-size: 1.25rem; letter-spacing: -.01em; }
.c-card p { margin-top: 8px; color: var(--muted); }
.c-card .btn { margin-top: 16px; width: 100%; }
.c-card.alt { background-color: #fff; color: var(--ink); border: 1px solid var(--line-light); }
.c-card.alt p { color: var(--muted-ink); }

/* ===== Subpage header (quiet; the big gesture stays on the start page) ===== */
.page-head { position: relative; isolation: isolate; overflow: clip; padding: calc(env(safe-area-inset-top) + 112px) 0 clamp(56px, 9vw, 104px); }
.page-head h1 { font-size: clamp(2.5rem, 11vw, 5.75rem); max-width: 12ch; margin-top: 0; }
.page-head .lead { max-width: 34em; }
.page-head .wrap { position: relative; }
.head-mark { display: none; }
@media (min-width: 768px) {
  /* small, matte logo tiles as a quiet brand mark on subpages */
  .head-mark { display: block; position: absolute; right: var(--gutter); top: 50%; width: clamp(96px, 11vw, 140px); aspect-ratio: 1; transform: translateY(-50%); opacity: .9; }
  .head-mark span { position: absolute; width: 38.5%; aspect-ratio: 1; border-radius: 2px; }
  .hm-g { right: 0; top: 0; background-color: var(--leaf); }
  .hm-y { left: 30.75%; top: 30.75%; background-color: var(--sun); }
  .hm-b { left: 0; bottom: 0; background-color: var(--indigo); }
}

/* ===== Navigation state ===== */
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 1.5px; text-underline-offset: 8px; }


/* ===== Teasers and closing call to action ===== */
.more { margin-top: 28px; }
.cta-band .hero-cta { margin-top: 28px; }
.cta-band .h2 { max-width: 16ch; }
.slab {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(32px, 6vw, 80px) clamp(22px, 5vw, 72px); border-radius: var(--r-lg);
  background: var(--forest); color: #fff;
}
.slab::before { /* one fine brass rule as the only ornament */
  content: ""; position: absolute; left: clamp(22px, 5vw, 72px); top: calc(clamp(32px, 6vw, 80px) - 22px); width: 56px; height: 2px; background: var(--brass);
}
.slab .intro { color: #E3F2E8; }
.slab .btn-primary { background-color: var(--chalk); color: var(--ink); } /* dark slab inside a light section */
.slab .btn-primary:hover { background-color: #fff; }
.slab :focus-visible { outline-color: var(--brass-light); }

/* ===== Projects page gallery ===== */
[hidden] { display: none !important; }
.filters { margin-top: 0; }
.filter-status { margin-top: 14px; color: var(--muted-ink); font-size: 1rem; }
.gallery-all { margin-top: 20px; columns: 1; column-gap: var(--fuge); }
.gallery-all .shot { display: block; break-inside: avoid; margin: 0 0 var(--fuge); min-height: 0; }
.gallery-all .shot img { height: auto; aspect-ratio: auto; }
.gallery-sec { padding-top: clamp(40px, 6vw, 72px); }
.gallery-sec + .cta-band { padding-top: clamp(24px, 4vw, 48px); } /* same surface: no double gap */

/* ===== Footer ===== */
.footer { background: var(--forest-deep); color: var(--muted); padding-block: 56px 32px; }
.footer-grid { display: grid; gap: 28px; }
.footer .brand { justify-self: start; }
.footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; color: #fff; }
.footer nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer small { display: block; font-size: .9375rem; line-height: 1.5; }
.mock-note { border-top: 1px solid var(--line-dark); padding-top: 20px; }

/* ===== Sticky dock (mobile + tablet) ===== */
.dock {
  position: fixed; z-index: 40; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; border-radius: 28px;
  transition: transform .4s var(--ease-out), opacity .3s;
}
.dock .btn { min-height: 52px; }
.dock.is-hidden { transform: translateY(calc(100% + 24px + env(safe-area-inset-bottom))); opacity: 0; }

/* ===== Breakpoints (mobile first) ===== */
@media (min-width: 768px) {
  .nav { left: 16px; right: 16px; }
  .nav-cta { display: inline-flex; }
  .nav-cta + .icon-btn { margin-left: 0; } /* the button takes over the push to the right only once it is visible */
  .brand img { height: 26px; }
  .hero-wall { width: 120vw; }
  .hero { padding-top: calc(env(safe-area-inset-top) + 52vw); padding-bottom: 140px; }
  .hero-cta .btn { flex: 0 0 auto; }
  .quick-bar { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 8px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-bad { grid-column: 1 / -1; }
  .t-bad .tile-media { aspect-ratio: 16 / 10; }
  .t-altbau { grid-column: 1 / -1; }
  .ba { aspect-ratio: 16 / 10; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery .shot:first-child { grid-column: 1 / -1; }
  .gallery .shot img { aspect-ratio: auto; height: 100%; }
  .gallery .shot { min-height: 300px; }
  .gallery .shot:first-child { min-height: 420px; }
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 14px; }
  .member { grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
  .two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-card { padding: 32px; }
  .rev-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .footer-grid { grid-template-columns: auto 1fr; align-items: center; }
  .footer nav ul { justify-content: flex-end; }
  .mock-note { grid-column: 1 / -1; }
  .gallery-all { columns: 2; }
}

@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .dock { display: none; }
  .nav-links { display: flex; gap: 2px; margin-left: auto; }
  .nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--pill); text-decoration: none; color: #E3ECE6; font-weight: 500; transition: color .25s, background-color .25s; }
  .nav-links a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  .nav-cta { margin-left: 8px; }
  .nav .icon-btn { display: none; }

  .hero { padding-top: 132px; padding-bottom: 176px; min-height: min(100dvh, 940px); display: flex; align-items: center; }
  .hero > .wrap { width: 100%; }
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 40px; }
  .hero-wall { width: 85vw; }
  .wall-photo, .hero-photo {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 62%), linear-gradient(to bottom, #000 62%, transparent 96%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0%, #000 62%), linear-gradient(to bottom, #000 62%, transparent 96%);
    mask-composite: intersect;
  }
  .hero-photo { /* the photo stays clear of the text column */
    -webkit-mask-image: linear-gradient(to right, transparent 22%, #000 72%), linear-gradient(to bottom, #000 62%, transparent 96%);
    mask-image: linear-gradient(to right, transparent 22%, #000 72%), linear-gradient(to bottom, #000 62%, transparent 96%);
  }
  h1 { margin-top: 0; }
  .quick { margin-top: -92px; }

  .betrieb-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0 8%; align-items: center; }

  .tiles { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 320px 320px 360px; }
  .tile { display: block; }
  .tile-media { position: absolute; inset: 0; aspect-ratio: auto !important; }
  .tile-media::after { /* legibility: the photo darkens softly towards the text */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to top, rgba(6, 24, 16, .95) 0%, rgba(6, 24, 16, .84) 46%, rgba(6, 24, 16, .42) 72%, rgba(6, 24, 16, 0) 94%);
  }
  .tile-body { position: absolute; left: 0; bottom: 0; z-index: 2; max-width: 460px; padding: 28px 30px; text-shadow: 0 1px 14px rgba(0, 0, 0, .35); }
  .tile p { font-size: 1rem; }
  .t-bad { grid-column: 1 / 8; grid-row: 1 / 3; }
  .t-gross { grid-column: 8 / 13; grid-row: 1; }
  .t-stein { grid-column: 8 / 13; grid-row: 2; }
  .t-fliesen { grid-column: 1 / 5; grid-row: 3; }
  .t-altbau { grid-column: 5 / 13; grid-row: 3; }
  .t-gross p, .t-stein p, .t-fliesen p { display: none; } /* small formats: title + action only */

  .ba-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: end; }
  .ba { margin-top: 0; }

  .gallery { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 480px 400px; }
  .gallery .shot:nth-child(1) { grid-column: 1 / 8; grid-row: 1; }
  .gallery .shot:nth-child(2) { grid-column: 8 / 13; grid-row: 1; }
  .gallery .shot:nth-child(3) { grid-column: 1 / 6; grid-row: 2; }
  .gallery .shot:nth-child(4) { grid-column: 6 / 13; grid-row: 2; }

  .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px; }
  .contact-side { position: sticky; top: 104px; }
  .area-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 8%; align-items: center; }
  .area-card { padding: 12px 36px; }
  .area-row { grid-template-columns: 9em minmax(0, 1fr); gap: 24px; align-items: baseline; }
}

@media (min-width: 1280px) {
  .gallery-all { columns: 3; }
  .team { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .play * { animation: none !important; }
  .replay { display: none; }
  .band img { transform: none !important; }
  .dock, .gloss::after, .btn, .nav, .tiles-ico rect { transition: none; }
  .menu[open] li { animation: none; }
  .tile:hover .tile-media img, .shot:hover img { transform: none; }
}
