/* Webrohbau · Webseiten für Betriebe in der Deutschschweiz. Welt: Baugespann. */

@font-face {
  font-family: "Archivo";
  src: url("schriften/archivo-latin.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("schriften/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Public Sans";
  src: url("schriften/publicsans-latin.woff2") format("woff2");
  font-weight: 300 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Public Sans";
  src: url("schriften/publicsans-latin-ext.woff2") format("woff2");
  font-weight: 300 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Public Sans";
  src: url("schriften/publicsans-italic-latin.woff2") format("woff2");
  font-weight: 300 800; font-style: italic; font-display: swap;
}

:root {
  --rot: #d5251a;
  --rot-tief: #b81d13;
  --weiss: #fbfaf7;
  --beton: #ecebe7;
  --beton-2: #dfddd7;
  --teer: #141412;
  --teer-2: #3b3a36;
  --grau: #5f5d57;
  --gelb: #f3c317;
  --himmel: #466ea9;
  --himmel-2: #5980bb;

  --display: "Archivo", "Arial Narrow", sans-serif;
  --text: "Public Sans", system-ui, sans-serif;

  --rand: clamp(16px, 4vw, 56px);
  --breit: 1360px;
  --schritt: clamp(72px, 11vw, 168px);

  --aus: cubic-bezier(.16, 1, .3, 1);
  --kopf-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--kopf-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--beton);
  color: var(--teer);
  font: 400 1.0625rem/1.6 var(--text);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

::selection { background: var(--rot); color: var(--weiss); }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; }
html { scrollbar-color: var(--teer-2) var(--beton-2); }
input, textarea { caret-color: var(--rot); }

.sprung {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--teer); color: var(--weiss); padding: 10px 14px; text-decoration: none;
}
.sprung:focus { top: 12px; }

/* Rot-weisses Profilband, wie die Spitzen der Stangen */
.band {
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--rot) 0 48px, var(--weiss) 48px 96px);
}

/* Knöpfe und Links */
.knopf {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 22px;
  background: var(--rot); color: var(--weiss);
  border: 0; border-radius: 0;
  font: 700 1rem/1 var(--display); font-stretch: 88%; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s var(--aus), transform .18s var(--aus);
}
.knopf::after {
  content: ""; width: 14px; height: 14px; flex: none;
  background: currentColor;
  clip-path: polygon(0 42%, 64% 42%, 38% 12%, 52% 0, 100% 50%, 52% 100%, 38% 88%, 64% 58%, 0 58%);
  transition: transform .25s var(--aus);
}
.knopf:hover { background: var(--rot-tief); }
.knopf:hover::after { transform: translateX(3px); }
.knopf:active { transform: translateY(1px); }
.knopf-klein { --h: 40px; padding: 0 14px; font-size: .9375rem; }
/* Studio: Stempel wie in der Wortmarke, schwarz statt rot, damit «Anfrage» der Hauptweg bleibt */
.knopf-studio { background: var(--teer); color: var(--weiss); }
.knopf-studio:hover { background: var(--rot); }
.knopf-studio::after { display: none; }
/* Mit dem Studio-Knopf wird die Kopfzeile breiter: zuerst Nebenlinks, dann den langen Knopftext kürzen */
@media (max-width: 1120px) { .kopf-nav a[href="#ablauf"], .kopf-nav a[href="#rechner"] { display: none; } }
@media (max-width: 920px) {
  .kopf-nav .knopf .nur-breit { display: none; }
  .kopf-nav .knopf .nur-schmal { display: inline; }
}

.link {
  font-weight: 600; text-decoration: underline; text-decoration-color: var(--rot);
  text-decoration-thickness: 2px; text-underline-offset: .3em;
}
.link:hover { color: var(--rot-tief); text-decoration-color: var(--rot-tief); }

/* Kopf */
.kopf {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: var(--kopf-h); padding: 0 var(--rand);
  background: color-mix(in srgb, var(--weiss) 94%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--beton-2);
}
.marke { display: flex; align-items: center; gap: 14px; min-height: 44px; text-decoration: none; }
.marke .wortmarke { font-size: 1.3rem; }
.marke-fach { font-size: .8125rem; line-height: 1.2; color: var(--grau); }

/* Wortmarke «Webrohbau». Drei Fassungen, gewählt über die Klasse am Element:
   wm-stempel  WEB + ROHBAU als Zustandsstempel (Standard)
   wm-profil   ein Wort, darunter die Profilstange WEB | ROH | BAU
   wm-gerippe  WEB gebaut, ROHBAU nur als Umriss
   --wm-grund ist die Fläche, auf der die Marke steht (für Aussparungen). */
.wortmarke {
  --wm-grund: var(--weiss);
  display: inline-flex; align-items: baseline;
  font: 800 1em/1 var(--display); font-stretch: 70%; letter-spacing: .012em;
  text-transform: uppercase; white-space: nowrap;
  color: currentColor;
}
.wortmarke span { display: inline-block; }

.wm-stempel .wm-roh {
  margin-left: .1em; padding: .14em .2em .1em;
  background: currentColor;
}
.wm-stempel .wm-roh > span { color: var(--wm-grund); }

.wm-profil { padding-bottom: .36em; }
.wm-profil .wm-web, .wm-profil .wm-roh > span { position: relative; }
.wm-profil .wm-web::after, .wm-profil .wm-roh > span::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.36em; height: .2em;
  background: var(--rot);
}
.wm-profil .wm-roh > span:first-child::after { background: var(--weiss); box-shadow: inset 0 0 0 1px var(--rot); }

.wm-gerippe .wm-roh { margin-left: .02em; }
@supports (-webkit-text-stroke: 1px) {
  .wm-gerippe .wm-roh {
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: max(1px, .05em) currentColor;
    transition: -webkit-text-fill-color .5s var(--aus);
  }
  @media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    a:hover > .wm-gerippe .wm-roh { -webkit-text-fill-color: currentColor; }
  }
}
.kopf-nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 32px); }
.kopf-nav a:not(.knopf) { text-decoration: none; font-weight: 500; font-size: .9375rem; }
.kopf-nav a:not(.knopf):hover { text-decoration: underline; text-decoration-color: var(--rot); }
.kopf-nav .kopf-werkstatt { display: inline-flex; align-items: center; min-height: 44px; }
.werkstatt-mobil { display: none; }
@media (min-width: 761px) and (max-width: 1200px) {
  .vb .kopf-nav { gap: 16px; }
  .vb .kopf-nav a[href="#fragen"], .vb .kopf-nav a[href="/#fragen"], .vb .kopf-nav a[href="#inszenierung"] { display: none; }
  .vb .marke-fach { display: none; }
}
@media (max-width: 760px) {
  .werkstatt-mobil {
    display: flex; flex-direction: column; gap: 3px; min-height: 62px;
    padding: 10px var(--rand); color: var(--teer); background: var(--beton);
    text-decoration: none; border-bottom: 1px solid var(--beton-2);
  }
  .werkstatt-mobil strong { font-size: 1rem; text-decoration: underline; text-underline-offset: .2em; }
  .werkstatt-mobil span { font-size: .8125rem; line-height: 1.4; }
}
/* Knapp über der Handy-Grenze passt die volle Navigation nur mit engeren Abständen */
@media (min-width: 761px) and (max-width: 800px) { .kopf-nav { gap: 12px; } }
@media (max-width: 760px) {
  .kopf-nav a:not(.knopf) { display: none; }
  .marke-fach { display: none; }
  .marke .wortmarke { font-size: 1.15rem; }
  .nur-breit { display: none; }
  .knopf .nur-schmal { display: inline; }
}

/* ============ Einstieg: Baugespann ============ */
.gespann { position: relative; height: 290vh; background: var(--himmel); }
.gespann-buehne {
  position: sticky; top: var(--kopf-h);
  height: calc(100vh - var(--kopf-h)); height: calc(100svh - var(--kopf-h));
  overflow: hidden;
}
.gespann-rahmen { position: absolute; inset: 0; }
.nur-schmal { display: none; }
.gespann-bild {
  position: absolute; left: 58%; top: 50%;
  width: max(100vw, 133.334vh);
  aspect-ratio: 4 / 3;
  translate: -58% -50%;
}
@media (min-aspect-ratio: 4/3) { .gespann-bild { left: 50%; translate: -50% -50%; } }
.gespann-foto { position: absolute; inset: 0; width: 100%; height: 100%; }
.schnuere { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.schnur {
  fill: none; stroke: var(--rot); stroke-width: 2.4; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--zug, 1));
}
.schnur-rahmen { stroke: var(--weiss); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--rahmen, 1)); }

/* Die Seite zwischen den Stangen. Wird per matrix3d in das Viereck gelegt. */
.rohbau {
  position: absolute; left: 0; top: 0;
  width: 1600px; height: 900px;
  transform-origin: 0 0;
}
.rohbau-plan {
  position: absolute; inset: 0; width: 100%; height: 100%;
  clip-path: inset(0 0 calc((1 - var(--rohbau-sicht, 1)) * 100%) 0);
}
.rohbau-fertig {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left;
  clip-path: inset(calc((1 - var(--bezug, 1)) * 100%) 0 0 0);
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / .45);
}

/* Bautafel am Rahmen: für wen die eingesetzte Seite gebaut wurde.
   Sitzt auf der Unterkante des Vierecks (Ecke 431,1160 im Foto) und erscheint mit dem Bezug. */
.bautafel {
  position: absolute; z-index: 1;
  left: calc(431 / 1920 * 100% + clamp(10px, 1.4vw, 22px)); top: calc(1160 / 1440 * 100%);
  translate: 0 -50%; rotate: -.6deg;
  display: grid; gap: 3px;
  padding: 13px 40px 9px 13px;
  background: var(--weiss); color: var(--teer);
  text-decoration: none;
  box-shadow: 0 2px 3px rgb(0 0 0 / .18), 0 18px 36px -14px rgb(0 0 0 / .4);
  transition: opacity .5s var(--aus), transform .6s var(--aus), visibility 0s;
}
/* Rot-weisses Profilband als Oberkante der Tafel */
.bautafel::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: repeating-linear-gradient(90deg, var(--rot) 0 24px, var(--weiss) 24px 48px);
}
/* Pfeil nach aussen: die Seite öffnet sich in einem neuen Fenster */
.bautafel::after {
  content: ""; position: absolute; right: 14px; top: 50%; width: 13px; height: 13px; margin-top: -4px;
  background: currentColor;
  clip-path: polygon(0 42%, 64% 42%, 38% 12%, 52% 0, 100% 50%, 52% 100%, 38% 88%, 64% 58%, 0 58%);
  rotate: -45deg;
  transition: transform .25s var(--aus);
}
.bautafel-name {
  font: 800 1.0625rem/1 var(--display); font-stretch: 72%; letter-spacing: .005em; text-transform: uppercase;
  text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: .22em;
  transition: text-decoration-color .2s var(--aus);
}
.bautafel-ort { font-size: .8125rem; line-height: 1.3; color: var(--grau); }
.bautafel:hover .bautafel-name { text-decoration-color: var(--rot); }
.bautafel:hover::after { transform: translateX(3px); }
.vor-bezug .bautafel { opacity: 0; transform: translateY(8px); visibility: hidden; transition: opacity .25s var(--aus), transform .25s var(--aus), visibility 0s .25s; }

.gespann-text {
  position: absolute; left: var(--rand); top: clamp(22px, 5vh, 64px);
  max-width: min(66vw, 1040px);
  color: var(--weiss);
}
.gespann h1 {
  font: 800 clamp(3.4rem, 8.2vw, 9.4rem)/.84 var(--display);
  font-stretch: 64%;
  letter-spacing: -.012em;
  text-transform: uppercase;
}
.gespann h1 span { display: block; }
.gespann-lead {
  margin-top: clamp(14px, 2.4vh, 26px);
  max-width: 58ch;
  font-size: clamp(1.0625rem, 1.25vw, 1.25rem); line-height: 1.5;
  color: var(--weiss);
}

/* Amtlicher Anschlag */
.anschlag {
  position: absolute; right: clamp(64px, 7vw, 120px); bottom: clamp(20px, 5vh, 56px);
  width: min(370px, 30vw);
  background: var(--weiss);
  color: var(--teer);
  padding: 0 0 20px;
  rotate: -1.2deg;
  box-shadow: 0 2px 3px rgb(0 0 0 / .18), 0 24px 48px -16px rgb(0 0 0 / .38);
}
.anschlag::before, .anschlag::after {
  content: ""; position: absolute; top: 10px; width: 16px; height: 4px;
  background: linear-gradient(#c9c7c0, #8d8b85); border-radius: 1px;
}
.anschlag::before { left: 16px; }
.anschlag::after { right: 16px; }
.anschlag-kopf {
  margin: 0; padding: 24px 22px 12px;
  font: 800 2.1rem/1 var(--display); font-stretch: 70%; text-transform: uppercase;
  border-bottom: 3px solid var(--teer);
}
.anschlag-klappe { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .6s var(--aus), opacity .4s var(--aus); }
.anschlag-klappe > dl { min-height: 0; overflow: hidden; }
.gebaut .anschlag-klappe { grid-template-rows: 0fr; opacity: 0; }
.anschlag dl { margin: 0; padding: 6px 22px 0; font-size: .875rem; }
.anschlag dl div { display: grid; grid-template-columns: 9.2em 1fr; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--beton-2); }
.anschlag dt { color: var(--grau); }
.anschlag dd { margin: 0; font-weight: 600; }
.anschlag-aktion { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 18px 22px 0; }

/* Messlatte */
.messlatte {
  position: absolute; right: clamp(18px, 2.2vw, 36px); top: clamp(22px, 5vh, 64px);
  display: grid; justify-items: end; gap: 8px;
  color: var(--weiss);
}
.messlatte-stab {
  order: 3; position: relative; width: 12px; height: min(46vh, 420px); margin-right: 0;
  background: repeating-linear-gradient(180deg, var(--rot) 0 10%, var(--weiss) 10% 20%);
  box-shadow: 0 0 0 1px rgb(20 20 18 / .25);
}
.messlatte-stand {
  position: absolute; left: -10px; right: -10px; height: 3px; background: var(--teer);
  bottom: calc(var(--p, 0) * 100%);
  box-shadow: 0 0 0 2px var(--weiss);
}
.messlatte-wert {
  order: 1; font: 700 1.125rem/1 var(--text); font-variant-numeric: tabular-nums;
}
.messlatte-zustand { order: 2; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

/* Mobil: Foto als Bühne, Titel im echten Himmel, Messlatte waagrecht */
@media (max-width: 760px) {
  .gespann { height: 210vh; background: var(--beton); }
  .gespann-buehne { display: flex; flex-direction: column; background: var(--beton); }
  .gespann-rahmen { order: 1; position: relative; inset: auto; height: 94vw; flex: none; overflow: hidden; }
  .gespann-bild { position: absolute; left: -25vw; top: 0; translate: none; width: 150vw; }
  .gespann-text { display: contents; }
  .gespann h1 {
    position: absolute; z-index: 2; top: 16px; left: var(--rand); right: var(--rand);
    font-size: clamp(2.4rem, 12.5vw, 4.4rem); color: var(--weiss);
  }
  .gespann-lead { order: 3; margin: 0; padding: 10px var(--rand) 0; color: var(--teer-2); font-size: .9375rem; line-height: 1.45; }
  .messlatte {
    order: 2; position: static; translate: none;
    display: grid; grid-template-columns: auto auto 1fr; align-items: center; justify-items: stretch; gap: 10px;
    padding: 10px var(--rand) 0; color: var(--teer);
  }
  .messlatte-stab {
    order: 3; width: auto; height: 10px;
    background: repeating-linear-gradient(90deg, var(--rot) 0 10%, var(--weiss) 10% 20%);
  }
  .messlatte-stand { left: calc(var(--p, 0) * 100%); right: auto; bottom: auto; top: -5px; width: 3px; height: 20px; }
  .messlatte-wert { font-size: 1rem; min-width: 3.4em; }
  .anschlag {
    order: 4; position: relative; right: auto; bottom: auto; width: auto; rotate: none;
    margin: 14px var(--rand) 0; padding-bottom: 14px;
  }
  .anschlag dl div:nth-child(n+3) { display: none; }
  .anschlag-kopf { font-size: 1.5rem; padding: 18px 18px 8px; }
  .anschlag dl { padding: 4px 18px 0; }
  .anschlag dl div { grid-template-columns: 8.2em 1fr; padding: 5px 0; }
  .anschlag-aktion { padding: 12px 18px 0; }
  /* Unter dem Viereck ist kein Platz: die Tafel steht auf der Oberkante (Ecke 478,705 im Foto) */
  .bautafel { left: calc(478 / 1920 * 100% + 4px); top: calc(705 / 1440 * 100%); translate: 0 calc(-100% + 3px); rotate: -.7deg; padding: 9px 30px 6px 9px; gap: 2px; }
  .bautafel::before { height: 4px; }
  .bautafel::after { right: 10px; width: 10px; height: 10px; margin-top: -2px; }
  .bautafel-name { font-size: .8125rem; }
  .bautafel-ort { font-size: .6875rem; }
}
@media (max-width: 760px) and (max-height: 760px) {
  .gespann-rahmen { height: 82vw; }
  .gespann-bild { left: -18vw; width: 130vw; }
  .gespann h1 { font-size: clamp(2.2rem, 11vw, 3.6rem); top: 12px; }
  .anschlag-aktion .link { display: none; }
  .anschlag-kopf { font-size: 1.3rem; padding-top: 14px; }
  .gespann-lead { font-size: .875rem; }
  .anschlag-klappe { grid-template-rows: 0fr; opacity: 0; }
}

/* Zwei gleichwertige Wege im Anschlag: bauen lassen (rot) oder selbst bauen im Studio (Teer, wie in der Kopfleiste) */
.anschlag-wege { display: grid; gap: 10px; width: 100%; }
.anschlag-wege .knopf { justify-content: space-between; text-align: left; }
.knopf-weg { position: relative; }
.knopf-studio.knopf-weg::after { display: block; }
/* «gratis» als Stempel auf der Ecke des Knopfs */
.stempel-gratis {
  position: absolute; top: -9px; right: 46px;
  padding: 4px 7px 3px;
  background: var(--rot); color: var(--weiss);
  font: 700 .6875rem/1 var(--text); letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 0 0 2px var(--weiss);
  rotate: -2deg;
}
@media (max-width: 760px) {
  .anschlag-aktion .link { display: none; }
  .anschlag-wege { grid-template-columns: 1fr 1fr; gap: 8px; }
  .anschlag-wege .knopf { padding: 8px 12px; gap: 8px; font-size: .9375rem; line-height: 1.05; }
  .stempel-gratis { top: -14px; right: 8px; }
}

/* ============ Allgemeine Abschnitte ============ */
.spalte { max-width: var(--breit); margin: 0 auto; padding: 0 var(--rand); }
h2 {
  font: 800 clamp(2.4rem, 5.6vw, 5.2rem)/.92 var(--display);
  font-stretch: 66%;
  text-transform: uppercase;
  letter-spacing: -.005em;
  max-width: 18ch;
}
.einleitung { margin-top: 22px; max-width: 58ch; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); color: var(--teer-2); }

/* ============ Leistungsverzeichnis ============ */
.bauweisen { background: var(--beton); padding-bottom: var(--schritt); }
.bauweisen .spalte { padding-top: var(--schritt); }
.lv {
  max-width: var(--breit); margin: clamp(40px, 6vw, 80px) auto 0; padding: 0 var(--rand);
}
.lv-kopf, .lv-zeile {
  display: grid;
  grid-template-columns: 4.5rem minmax(12rem, 1.1fr) minmax(0, 2fr) minmax(9rem, .8fr);
  gap: 24px; align-items: baseline;
}
.lv-kopf {
  padding: 0 0 12px; border-bottom: 3px solid var(--teer);
  font-size: .8125rem; color: var(--grau); letter-spacing: .04em; text-transform: uppercase;
}
.lv-kopf span:last-child { text-align: right; }
.lv-zeile {
  position: relative;
  padding: 28px 0; border-bottom: 1px solid var(--beton-2);
  transition: background-color .25s var(--aus);
}
.lv-zeile:hover { background: color-mix(in srgb, var(--weiss) 60%, var(--beton)); }
.lv-pos { font: 600 1rem/1 var(--text); font-variant-numeric: tabular-nums; color: var(--grau); }
.lv-name { font: 800 clamp(1.7rem, 2.6vw, 2.4rem)/.95 var(--display); font-stretch: 70%; text-transform: uppercase; }
.lv-name small { display: block; margin-top: 8px; font: 500 .9375rem/1.2 var(--text); text-transform: none; color: var(--grau); }
.lv-text { max-width: 60ch; color: var(--teer-2); }
.lv-text p { margin: 0; }
.lv-aktion {
  display: inline-block; margin-top: 10px;
  font-weight: 700; font-size: .9375rem; color: var(--teer);
  text-decoration: underline; text-decoration-color: var(--rot); text-decoration-thickness: 2px; text-underline-offset: .3em;
}
.lv-aktion:hover { color: var(--rot-tief); }
.lv-zwischen {
  margin: 56px 0 0; padding: 0 0 14px; border-bottom: 3px solid var(--teer);
  font: 800 clamp(1.7rem, 2.8vw, 2.5rem)/.95 var(--display); font-stretch: 68%; text-transform: uppercase;
}
.lv-zusatz .lv-name { font-size: clamp(1.4rem, 2vw, 1.9rem); }
.lv-zusatz .lv-preis { font-size: clamp(1.35rem, 1.9vw, 1.8rem); }
.lv-preis {
  text-align: right; white-space: nowrap;
  font: 800 clamp(1.6rem, 2.4vw, 2.2rem)/1 var(--display); font-stretch: 78%;
  font-variant-numeric: tabular-nums;
  transition: color .2s var(--aus);
}
.lv-preis small { font: 500 .875rem/1 var(--text); color: var(--grau); }
.lv-preis small:last-child:not(:first-child) { display: block; margin-top: 6px; }
.lv-status { color: var(--rot-tief); }
.lv-preis .lv-status + small { display: block; margin-top: 6px; }
.lv-zeile:hover .lv-preis { color: var(--rot-tief); }
.lv-hervor { background: var(--weiss); margin: 0 calc(var(--rand) * -1); padding-left: var(--rand); padding-right: var(--rand); }
.lv-fuss { margin-top: 26px; max-width: 80ch; font-size: .9375rem; color: var(--grau); }

@media (max-width: 900px) {
  .lv-kopf { display: none; }
  .lv-zeile { grid-template-columns: 3rem 1fr; gap: 10px 16px; padding: 24px 0; }
  .lv-name { grid-column: 2; }
  .lv-text, .lv-preis { grid-column: 2; text-align: left; }
  .lv-preis { margin-top: 6px; }
  .lv-hervor { padding-left: var(--rand); padding-right: var(--rand); }
}

.lv-aktion:has(+ .lv-film) { margin-right: 22px; }

/* ============ Rohbau-Rechner ============ */
/* Ohne Skript bleibt nur der Hinweis aufs Formular stehen (data-rechner ist hidden). */
.rechner { background: var(--beton); padding-bottom: var(--schritt); }
.rechner .spalte::before { content: ""; display: block; height: 3px; background: var(--teer); margin-bottom: clamp(48px, 7vw, 96px); }
.rechner-ohne { margin-top: 18px; max-width: 58ch; color: var(--teer-2); }
.rechner-raster[hidden] { display: none; }
.rechner-raster {
  max-width: var(--breit); margin: clamp(40px, 6vw, 72px) auto 0; padding: 0 var(--rand);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: clamp(28px, 5vw, 80px); row-gap: 40px; align-items: start;
}
.rechner-fragen { display: grid; gap: 30px; }
.rechner-fragen .bauweise-wahl { margin: 0; padding-top: 18px; border-top: 1px solid var(--beton-2); }
.rechner-fragen .bauweise-wahl:first-child { border-top: 0; padding-top: 0; }
.rechner-fragen legend { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; font-size: 1.0625rem; }
.bauweise-wahl .rechner-nr {
  display: inline; min-height: 0; padding: 0; background: none; box-shadow: none;
  font-weight: 600; font-size: .875rem; color: var(--grau); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.bauweise-wahl span { transition: background-color .15s var(--aus), box-shadow .15s var(--aus), color .15s var(--aus), transform .14s var(--aus); }
.bauweise-wahl label:active span { transform: scale(.97); }

/* Der Entscheid liegt wie ein Blatt vom Bauamt neben den Fragen */
.entscheid {
  position: sticky; top: calc(var(--kopf-h) + 24px);
  background: var(--weiss); padding: 0 0 22px;
  rotate: -.8deg;
  box-shadow: 0 2px 3px rgb(0 0 0 / .18), 0 24px 48px -16px rgb(0 0 0 / .38);
}
.entscheid::before, .entscheid::after {
  content: ""; position: absolute; top: 10px; width: 16px; height: 4px;
  background: linear-gradient(#c9c7c0, #8d8b85); border-radius: 1px;
}
.entscheid::before { left: 16px; }
.entscheid::after { right: 16px; }
.entscheid-kopfzeile {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px;
  padding: 26px 22px 12px; border-bottom: 3px solid var(--teer);
}
.entscheid-kopf { font: 800 2.1rem/1 var(--display); font-stretch: 70%; text-transform: uppercase; }
.entscheid-stempel { margin-bottom: 4px; rotate: -3deg; }
.entscheid-stempel.zustand-fertig { rotate: -4deg; }
.entscheid-stempel[data-gedrueckt] { animation: stempel .42s var(--aus); }
@keyframes stempel {
  from { opacity: 0; scale: 1.5; rotate: -10deg; }
  to { opacity: 1; scale: 1; rotate: -4deg; }
}
.entscheid-inhalt { padding: 6px 22px 0; }
.entscheid-leer { padding: 16px 0 4px; color: var(--grau); font-size: .9375rem; }
.entscheid-liste { margin: 0; }
.entscheid-liste > div { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--beton-2); }
.entscheid-liste dt { color: var(--grau); font-size: .875rem; padding-top: 2px; }
.entscheid-liste dd { margin: 0; font-size: .9375rem; line-height: 1.45; }
.entscheid-liste dd small { display: block; margin-top: 4px; color: var(--grau); font-size: .8125rem; }
.entscheid-name { display: block; font: 800 clamp(1.6rem, 2.6vw, 2.3rem)/.95 var(--display); font-stretch: 70%; text-transform: uppercase; overflow-wrap: anywhere; }
.entscheid-preis { display: block; font: 800 1.5rem/1.1 var(--display); font-stretch: 78%; font-variant-numeric: tabular-nums; }
.entscheid-liste .entscheid-preis small { display: inline; margin: 0; font: 500 .875rem/1 var(--text); color: var(--grau); }
.entscheid-offen { color: var(--grau); }
.entscheid-grund { padding: 12px 0 2px; color: var(--teer-2); font-size: .9375rem; }
.entscheid-aktion { display: grid; justify-items: start; gap: 10px; padding: 18px 22px 0; }
.entscheid-hinweis { font-size: .8125rem; color: var(--grau); }

@media (max-width: 900px) {
  .rechner-raster { grid-template-columns: 1fr; }
  .entscheid { position: relative; top: auto; rotate: none; }
}
@media (max-width: 520px) {
  .entscheid-kopfzeile { padding: 22px 18px 10px; }
  .entscheid-kopf { font-size: 1.7rem; }
  .entscheid-inhalt { padding: 4px 18px 0; }
  .entscheid-aktion { padding: 16px 18px 0; }
  .entscheid-liste > div { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .entscheid-stempel[data-gedrueckt] { animation: none; }
  .bauweise-wahl label:active span { transform: none; }
}

/* ============ Website-Ersteller in zwei Filmen ============ */
/* Ohne Skript stehen beide Filme mit Bedienleiste untereinander, die Schritte als Liste daneben. */
.ersteller { background: var(--teer); color: var(--weiss); padding-bottom: var(--schritt); }
.ersteller .spalte { padding-top: var(--schritt); }
.ersteller h2 { max-width: 22ch; }
.ersteller .einleitung { color: #c9c6be; }
/* Kopf: links Titel und Weg ins Studio, rechts der Baubeschrieb, was im Studio steckt */
.ersteller-kopf {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: clamp(32px, 6vw, 112px); row-gap: 48px; align-items: end;
}
.ersteller-start, .ersteller-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.ersteller-start { margin-top: clamp(26px, 3vw, 36px); }
.ersteller-start span, .ersteller-fuss span { font-size: .9375rem; color: #9d9a92; }
.werkstatt-einstieg {
  display: grid; gap: clamp(40px, 5vw, 72px); padding-top: 80px;
}
.werkstatt-texte { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 40px; }
.werkstatt-texte h2 { margin: 0; }
.werkstatt-texte h2 span { display: block; }
.werkstatt-anleitung > p { max-width: 46ch; color: #c9c6be; line-height: 1.6; }
.werkstatt-texte .knopf { margin-top: 28px; }
.werkstatt-texte .werkstatt-kosten { margin-top: 16px; font-size: .8125rem; }
.werkstatt-arbeiten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: clamp(18px, 2.7vw, 40px); }
.werkstatt-arbeiten > a { display: block; color: var(--weiss); text-decoration: none; }
.werkstatt-arbeiten figure { margin: 0; }
.werkstatt-arbeiten img { display: block; width: 100%; height: auto; box-shadow: 0 20px 35px -15px rgb(0 0 0 / .55); transition: translate .18s var(--aus); }
.werkstatt-arbeiten figcaption { display: grid; gap: 10px; margin-top: 20px; }
.werkstatt-arbeiten figcaption strong { font: 700 clamp(1.25rem, 2vw, 1.75rem)/1.1 var(--display); letter-spacing: -.02em; }
.werkstatt-arbeiten figcaption span { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: .9375rem; text-decoration: underline; text-underline-offset: .25em; }
.werkstatt-arbeiten svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.werkstatt-arbeiten > a:hover figcaption span { text-decoration-thickness: 2px; }
.werkstatt-arbeiten > a:focus-visible { outline: 3px solid var(--weiss); outline-offset: 7px; }
.werkstatt-arbeiten > a:active { opacity: .85; }
.werkstatt-flyer { margin-top: 64px; }
.werkstatt-beitrag { margin-top: 128px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .werkstatt-arbeiten > a:hover img { translate: 0 -6px; } }
@media (max-width: 900px) {
  .werkstatt-texte { grid-template-columns: minmax(0, 1fr); gap: 24px; max-width: 620px; }
  .werkstatt-texte h2 span { display: inline; }
  .werkstatt-flyer { margin-top: 36px; }
  .werkstatt-beitrag { margin-top: 72px; }
}
@media (max-width: 620px) {
  .werkstatt-arbeiten { grid-template-columns: minmax(0, 1fr); gap: 40px; max-width: 440px; justify-self: center; }
  .werkstatt-flyer, .werkstatt-beitrag { margin-top: 0; }
}
.baubeschrieb-kopf {
  padding-bottom: 12px; border-bottom: 3px solid var(--weiss);
  font: 800 clamp(1.7rem, 2.6vw, 2.4rem)/.95 var(--display); font-stretch: 70%; text-transform: uppercase;
}
.baubeschrieb dl { margin: 0; font-size: .9375rem; line-height: 1.4; }
.baubeschrieb dl div { display: grid; grid-template-columns: 8.6em minmax(0, 1fr); gap: 12px; padding: 10px 0 11px; border-bottom: 1px solid rgb(251 250 247 / .16); }
.baubeschrieb dt { color: #9d9a92; }
.baubeschrieb dd { margin: 0; font-weight: 600; color: var(--weiss); }
@media (max-width: 900px) { .ersteller-kopf { grid-template-columns: 1fr; } }
.filme-hinweis { max-width: 64ch; margin-bottom: clamp(18px, 2.4vw, 26px); font-size: .9688rem; color: #c9c6be; }
.ersteller-buehne { max-width: var(--breit); margin: clamp(56px, 7vw, 96px) auto 0; padding: 0 var(--rand); }

.film-wahl { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(22px, 3vw, 32px); }
.film-wahl[hidden] { display: none; }
.film-wahl button {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 16px;
  background: transparent; color: var(--weiss); border: 0; border-radius: 0;
  box-shadow: inset 0 0 0 1.5px rgb(251 250 247 / .28);
  font: 600 1rem/1.25 var(--text); text-align: left; cursor: pointer;
  transition: background-color .2s var(--aus), box-shadow .2s var(--aus), color .2s var(--aus);
}
.film-wahl small { font-weight: 500; font-size: .875rem; color: #9d9a92; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) {
  .film-wahl button:hover { box-shadow: inset 0 0 0 1.5px var(--weiss); }
}
.film-wahl [aria-selected="true"] { background: var(--weiss); color: var(--teer); box-shadow: none; }
.film-wahl [aria-selected="true"] small { color: var(--grau); }

.film-tafel {
  display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  column-gap: clamp(28px, 4.4vw, 64px); row-gap: 28px; align-items: start;
}
.film-tafel[hidden] { display: none; }
.ersteller-buehne:not(.filme-an) .film-tafel + .film-tafel { margin-top: 72px; }
.filme-an .film-tafel { transition: opacity .24s var(--aus); }
@starting-style { .filme-an .film-tafel { opacity: 0; } }

.film { background: #2a2825; }
.film .bau-leiste { background: #2a2825; color: #b4b0a7; }
.film .bau-leiste i { background: #4b4843; }
.film-bild { position: relative; aspect-ratio: 16 / 9; background: #141412; }
.film-bild video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; object-fit: contain; background: #141412;
}
.film-bild video:not([controls]) { cursor: pointer; }
.film-bild video:focus-visible { outline-offset: -3px; }
/* Der Startknopf sitzt im leeren Blau unter dem Titel des Standbilds */
.film-start {
  position: absolute; left: 5.8%; top: 71%;
  transition: background-color .18s var(--aus), transform .18s var(--aus), opacity .2s var(--aus), visibility 0s linear 0s;
}
.film-start[hidden] { display: none; }
.film-start small { font: 500 .875rem/1 var(--text); font-variant-numeric: tabular-nums; opacity: .82; }
.film-laeuft .film-start { opacity: 0; visibility: hidden; pointer-events: none; transition-delay: 0s, 0s, 0s, .2s; }

.film-inhalt h3 { font: 800 clamp(1.7rem, 2.6vw, 2.4rem)/.95 var(--display); font-stretch: 70%; text-transform: uppercase; }
.film-inhalt > p { margin-top: 12px; max-width: 48ch; color: #c9c6be; font-size: .9688rem; }
.schritte { list-style: none; margin: 22px 0 0; padding: 0; border-top: 3px solid var(--weiss); }
.schritte li { border-bottom: 1px solid rgb(251 250 247 / .16); }
.schritte button {
  position: relative; display: grid; grid-template-columns: 2.9em minmax(0, 1fr); gap: 10px;
  width: 100%; padding: 11px 6px 12px 0;
  background: transparent; border: 0; border-radius: 0; color: #c9c6be; text-align: left;
  font: 400 .9375rem/1.4 var(--text); cursor: pointer;
  transition: color .2s var(--aus), background-color .2s var(--aus);
}
.schritt-zeit { font-weight: 600; font-variant-numeric: tabular-nums; color: #9d9a92; transition: color .2s var(--aus); }
/* Wie das Massband im Ablauf: die Linie unter dem Schritt füllt sich rot, solange er läuft */
.schritt-lauf {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--rot); transform: scaleX(0); transform-origin: left;
}
.schritte [aria-current="step"] { color: var(--weiss); }
.schritte [aria-current="step"] .schritt-zeit { color: var(--gelb); }
.schritte button:focus-visible { outline-offset: 0; }
@media (hover: hover) and (pointer: fine) {
  .filme-an .schritte button:hover { color: var(--weiss); background: rgb(251 250 247 / .05); }
}

.ersteller-fuss { margin-top: clamp(32px, 4vw, 48px); }
.ersteller .link:hover { color: var(--weiss); text-decoration-color: var(--weiss); }
/* Hosting für Selbstbauer: ein offengelegter Empfehlungslink, leiser als die Warteliste */
.ersteller-hosting {
  margin-top: clamp(28px, 3.5vw, 40px); padding-top: 18px; max-width: 64ch;
  border-top: 1px solid rgb(251 250 247 / .16); font-size: .9688rem; color: #c9c6be;
}
.ersteller-hosting strong, .ersteller-hosting .link { color: var(--weiss); font-weight: 600; }
.empfehlung-hinweis { margin-top: 8px; font-size: .875rem; color: #9d9a92; }

@media (min-width: 1001px) {
  /* Der Film bleibt stehen, während man die Schritte daneben liest */
  .film { position: sticky; top: calc(var(--kopf-h) + 20px); }
}
@media (max-width: 1000px) {
  .film-tafel { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .film-wahl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .film-wahl button { display: grid; align-content: center; gap: 2px; padding: 9px 12px; font-size: .9375rem; }
  .film { width: min(100%, calc((100svh - var(--kopf-h) - 74px) * 9 / 16)); margin: 0 auto; }
  .film-bild { aspect-ratio: 9 / 16; }
  .film-start { left: 6.5%; top: 36%; }
}

/* ============ Referenzen ============ */
/* Jede Seite liegt in voller Länge in einem Fenster. Mit Skript und ohne reduzierte
   Bewegung läuft sie beim Scrollen durch (Klasse bau-lauf), sonst scrollt man im Fenster selbst. */
.referenzen { padding: var(--schritt) 0; --halt-oben: calc(var(--kopf-h) + 20px); }
.nur-leser {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.bau-haupt {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  column-gap: clamp(28px, 4.4vw, 72px);
  max-width: var(--breit); margin: clamp(56px, 8vw, 120px) auto 0; padding: 0 var(--rand);
}
.bau-gespiegelt { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.bau-gespiegelt .bau-text { order: 2; }

.bau-text {
  align-self: start; position: sticky; top: calc(var(--halt-oben) + 58px);
  display: grid; justify-items: start; gap: 18px;
}
.bau-text h3 {
  font: 800 clamp(2.3rem, 3.9vw, 3.6rem)/.9 var(--display); font-stretch: 64%;
  letter-spacing: -.005em; text-transform: uppercase; margin-top: 4px;
}
.bau-text > p { color: var(--teer-2); max-width: 36ch; }
.bau-daten { margin: 4px 0 10px; width: 100%; max-width: 380px; }
.bau-daten div {
  display: grid; grid-template-columns: 6.5rem 1fr; gap: 12px;
  padding: 9px 0; border-top: 1px solid var(--beton-2); font-size: .9375rem; line-height: 1.4;
}
.bau-daten div:last-child { border-bottom: 1px solid var(--beton-2); }
.bau-daten dt { color: var(--grau); }
.bau-daten dd { margin: 0; font-weight: 600; }

/* Fenster */
.bau-fenster {
  position: relative; overflow: hidden;
  background: var(--weiss);
  box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 40px 80px -40px rgb(20 20 18 / .5);
}
.bau-leiste {
  display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
  background: var(--beton-2); font-size: .75rem; color: var(--grau);
  position: relative; z-index: 1;
}
.bau-leiste i { width: 9px; height: 9px; border-radius: 50%; background: #c3c0b8; flex: none; }
.bau-leiste span { margin-left: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bau-dunkel { background: #141210; }
.bau-dunkel .bau-leiste { background: #2a2825; color: #b4b0a7; }
.bau-dunkel .bau-leiste i { background: #4b4843; }

.bau-ansicht {
  --fenster-h: min(calc(100svh - var(--kopf-h) - 74px), 52vw, 780px);
  height: var(--fenster-h); overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--teer-2) var(--beton-2);
}
/* Am Ende des Fensters geht das Mausrad nahtlos in die Seite über, nichts bleibt hängen. */
/* Auf dem Handy scrollt ein Wisch über das Fenster immer die Seite. Selbst scrollen lässt sich
   das Fenster erst nach Antippen (data-aktiv, main.js), am Ende geht es wieder in die Seite über. */
@media (pointer: coarse) { .bau-ansicht:not([data-aktiv]) { overflow-y: hidden; } }
.fenster-tippen .bau-fenster[data-tippen]::after {
  content: "Antippen, um im Fenster zu scrollen";
  position: absolute; left: 50%; bottom: 14px; z-index: 2; translate: -50% 0;
  padding: 8px 12px 7px; white-space: nowrap; pointer-events: none;
  font: 600 .8125rem/1 var(--text); color: var(--weiss); background: rgb(20 20 18 / .78);
  transition: opacity .2s var(--aus);
}
.fenster-tippen .bau-fenster[data-tippen="aktiv"]::after { opacity: 0; }
.bau-dunkel .bau-ansicht { scrollbar-color: #6b675f #2a2825; }
.bau-ansicht img { width: 100%; height: auto; }
.bau-ansicht:focus-visible { outline-offset: -3px; }
.bau-balken { display: none; }

/* Mitlaufen beim Scrollen */
.bau-lauf .bau-halt { position: sticky; top: var(--halt-oben); }
/* Nichts mehr selbst zu scrollen: overscroll-behavior muss zurück auf auto, sonst schluckt das
   Fenster Wisch und Mausrad, statt sie an die Seite weiterzugeben (Chrome, Safari). */
.bau-lauf .bau-ansicht { overflow: hidden; overscroll-behavior: auto; }
.bau-lauf .bau-fenster[data-tippen]::after { display: none; }
.bau-lauf .bau-ansicht img { will-change: transform; }
.bau-lauf .bau-balken {
  display: block; position: absolute; right: 3px; top: 34px; width: 4px; height: 40px;
  background: rgb(20 20 18 / .32); will-change: transform;
}
.bau-lauf .bau-dunkel .bau-balken { background: rgb(251 250 247 / .34); }

/* Paar: die beiden weiteren Referenzen nebeneinander, Angaben über dem Fenster */
.bau-paar {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(20px, 3vw, 44px);
  max-width: var(--breit); margin: clamp(72px, 10vw, 150px) auto 0; padding: 0 var(--rand);
}
.bau-neben { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 26px; }
.bau-neben .bau-ansicht { --fenster-h: min(calc(100svh - var(--kopf-h) - 74px), 48vw, 720px); }
.bau-angabe {
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 6px;
  align-content: start; color: var(--teer-2);
}
.bau-angabe .zustand { grid-row: 1 / 4; align-self: start; margin-top: 4px; }
.bau-angabe h3 {
  font: 800 clamp(1.5rem, 2.1vw, 1.9rem)/.95 var(--display); font-stretch: 70%;
  text-transform: uppercase; color: var(--teer);
}
.bau-angabe p { max-width: 58ch; font-size: .9688rem; }
.bau-angabe .link { justify-self: start; margin-top: 4px; }

.zustand {
  display: inline-block; padding: 5px 9px 4px;
  font: 700 .6875rem/1 var(--text); letter-spacing: .08em; text-transform: uppercase;
  background: var(--teer); color: var(--weiss);
  white-space: nowrap;
}
.zustand-fertig { background: var(--rot); }
.zustand-aus { background: transparent; color: var(--teer); box-shadow: inset 0 0 0 1.5px var(--teer); }

/* Musterhaus zum Anfassen: eigener Name im Restaurant-Musterhaus */
.anfassen { display: grid; gap: 8px; width: 100%; max-width: 380px; margin-bottom: 6px; }
.anfassen label { font-weight: 600; font-size: .9375rem; }
.anfassen input {
  width: 100%; min-height: 50px; padding: 13px 14px;
  font: 800 1.35rem/1 var(--display); font-stretch: 72%; letter-spacing: .005em;
  color: var(--teer); background: var(--weiss);
  border: 0; border-bottom: 2px solid var(--teer-2); border-radius: 0;
  transition: border-color .15s var(--aus), background-color .15s var(--aus);
}
.anfassen input::placeholder { color: #8a877f; }
.anfassen input:hover { background: #fff; }
.anfassen input:focus { outline: none; border-bottom-color: var(--rot); background: #fff; }
.anfassen-hinweis { font-size: .8125rem; line-height: 1.4; color: var(--grau); }
.bau-ansicht { position: relative; }
.anfassen-rahmen {
  position: absolute; left: 0; top: 0; border: 0; background: #0f0b08;
  transform-origin: 0 0; opacity: 0; pointer-events: none;
  transition: opacity .5s var(--aus);
}
.anfassen-rahmen[data-bereit] { opacity: 1; }
.anfassen-live { overflow: hidden !important; }
.anfassen-live:has(> .anfassen-rahmen[data-bereit]) > img { visibility: hidden; }
.anfassen-live[data-selbst] .anfassen-rahmen { pointer-events: auto; }
/* Auf dem Handy nimmt das Musterhaus im Fenster Wischgesten erst nach Antippen an */
@media (pointer: coarse) { .anfassen-live[data-selbst]:not([data-aktiv]) .anfassen-rahmen { pointer-events: none; } }

/* Weitere Musterhäuser als Verzeichnis */
.studien { max-width: var(--breit); margin: clamp(88px, 11vw, 160px) auto 0; padding: 0 var(--rand); }
.studien h3 { font: 800 clamp(1.8rem, 2.8vw, 2.5rem)/.95 var(--display); font-stretch: 66%; text-transform: uppercase; }
.studien > p { margin-top: 10px; color: var(--teer-2); }
.studien-liste { list-style: none; margin: 26px 0 0; padding: 0; border-top: 3px solid var(--teer); }
.studien-liste a {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 2.2fr) 20px; align-items: center;
  gap: clamp(16px, 2.4vw, 32px); padding: 14px 0;
  border-bottom: 1px solid var(--beton-2); text-decoration: none;
  transition: background-color .25s var(--aus);
}
.studien-liste img { width: 150px; aspect-ratio: 1410 / 891; object-fit: cover; object-position: top; }
.studien-liste strong { font: 800 1.5rem/1 var(--display); font-stretch: 72%; text-transform: uppercase; }
.studien-liste span { color: var(--teer-2); font-size: .9688rem; }
.studien-liste em { display: block; margin-top: 2px; font-style: normal; font-size: .8125rem; color: var(--grau); }
.studien-liste a::after {
  content: ""; width: 14px; height: 14px; justify-self: end;
  background: var(--teer);
  clip-path: polygon(0 42%, 64% 42%, 38% 12%, 52% 0, 100% 50%, 52% 100%, 38% 88%, 64% 58%, 0 58%);
  transition: transform .25s var(--aus), background-color .25s var(--aus);
}
@media (hover: hover) and (pointer: fine) {
  .studien-liste a:hover { background: color-mix(in srgb, var(--weiss) 60%, transparent); }
  .studien-liste a:hover strong { text-decoration: underline; text-decoration-color: var(--rot); text-decoration-thickness: 2px; text-underline-offset: .15em; }
  .studien-liste a:hover::after { transform: translateX(3px); background: var(--rot-tief); }
}

@media (max-width: 900px) {
  .bau-haupt, .bau-gespiegelt { grid-template-columns: 1fr; row-gap: 26px; }
  .bau-gespiegelt .bau-text { order: 0; }
  .bau-text { position: static; }
  .bau-text > p { max-width: 58ch; }
  .bau-ansicht, .bau-neben .bau-ansicht { --fenster-h: min(calc(100svh - var(--kopf-h) - 74px), 140vw, 760px); }
  .bau-paar { grid-template-columns: 1fr; }
  .bau-neben { row-gap: 22px; }
  .bau-neben + .bau-neben .bau-angabe { margin-top: clamp(40px, 9vw, 72px); }
  .bau-angabe { grid-template-columns: 1fr; }
  .bau-angabe .zustand { grid-row: auto; justify-self: start; margin: 0 0 6px; }
  .referenzen { --halt-oben: calc(var(--kopf-h) + 12px); }
}
@media (max-width: 760px) {
  .studien-liste a { grid-template-columns: 104px minmax(0, 1fr); row-gap: 4px; align-items: start; }
  .studien-liste img { width: 104px; grid-row: 1 / 3; }
  .studien-liste strong { font-size: 1.3rem; }
  .studien-liste a::after { display: none; }
}

/* ============ Ablauf als Massband ============ */
.ablauf { background: var(--teer); color: var(--weiss); padding: var(--schritt) 0; overflow: hidden; }
.ablauf .einleitung { color: #c9c6be; }
.band-mass {
  --fuellung: 0;
  list-style: none; position: relative;
  max-width: var(--breit); margin: clamp(48px, 6vw, 88px) auto 0; padding: 38px var(--rand) 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px;
}
.band-mass::before, .band-mass::after {
  content: ""; position: absolute; left: var(--rand); right: var(--rand); top: 0; height: 14px;
}
.band-mass::before {
  background:
    repeating-linear-gradient(90deg, rgb(255 255 255 / .55) 0 1px, transparent 1px 2%),
    repeating-linear-gradient(90deg, var(--gelb) 0 10%, #e4b50f 10% 20%);
}
.band-mass::after {
  background: var(--rot);
  scale: var(--fuellung) 1; transform-origin: left;
}
.band-mass li { position: relative; }
.mass-zahl {
  display: block; font: 800 3.4rem/1 var(--display); font-stretch: 70%;
  font-variant-numeric: tabular-nums; color: var(--gelb);
}
.band-mass h3 { margin-top: 10px; font: 800 1.6rem/1 var(--display); font-stretch: 72%; text-transform: uppercase; }
.band-mass p { margin-top: 10px; color: #c9c6be; font-size: .9875rem; }
@media (max-width: 900px) {
  .band-mass { grid-template-columns: 1fr; gap: 30px; padding-top: 0; padding-left: calc(var(--rand) + 34px); }
  .band-mass::before, .band-mass::after { left: var(--rand); right: auto; top: 0; bottom: 0; width: 14px; height: auto; }
  .band-mass::before { background: repeating-linear-gradient(180deg, var(--gelb) 0 10%, #e4b50f 10% 20%); }
  .band-mass::after { scale: 1 var(--fuellung); transform-origin: top; }
}

/* ============ Bauleitung ============ */
.bauleitung {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  background: var(--himmel);
  color: var(--weiss);
}
.bauleitung-bild { margin: 0; min-height: 420px; }
.bauleitung-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.bauleitung-text { padding: var(--schritt) var(--rand); display: grid; gap: 18px; align-content: center; max-width: 720px; }
.bauleitung-text h2 { margin-bottom: 10px; font-size: clamp(2.2rem, 4.2vw, 4.2rem); }
.bauleitung-text p { font-size: 1.125rem; max-width: 56ch; }
@media (max-width: 860px) {
  .bauleitung { grid-template-columns: 1fr; }
  .bauleitung-bild { min-height: 0; aspect-ratio: 4 / 3; }
}

.link-hell { text-decoration-color: var(--weiss); }
.link-hell:hover { color: var(--weiss); text-decoration-color: var(--weiss); text-decoration-thickness: 3px; }

/* ============ Häufige Fragen ============ */
.fragen { background: var(--weiss); padding: var(--schritt) 0; }
.fragen-inhalt {
  max-width: var(--breit); margin: 0 auto; padding: 0 var(--rand);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(32px, 5vw, 80px);
  align-items: start;
}
.fragen-kopf { position: sticky; top: calc(var(--kopf-h) + 32px); }
.fragen-liste { border-top: 3px solid var(--teer); }
.frage { border-bottom: 1px solid var(--beton-2); }
.frage summary {
  position: relative; display: block; list-style: none; cursor: pointer;
  padding: 22px 52px 22px 0;
}
.frage summary::-webkit-details-marker { display: none; }
.frage h3 {
  font: 800 clamp(1.3rem, 1.9vw, 1.65rem)/1.02 var(--display); font-stretch: 72%;
  text-transform: uppercase; letter-spacing: .005em;
  transition: color .2s var(--aus);
}
/* Plus aus zwei Strichen; offen bleibt nur der waagrechte */
.frage summary::before, .frage summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 18px; height: 3px; margin-top: -1.5px;
  background: var(--teer); transition: transform .3s var(--aus), background-color .2s var(--aus);
}
.frage summary::after { transform: rotate(90deg); }
.frage[open] summary::after { transform: rotate(0deg); }
@media (hover: hover) and (pointer: fine) {
  .frage summary:hover h3 { color: var(--rot-tief); }
  .frage summary:hover::before, .frage summary:hover::after { background: var(--rot-tief); }
}
.frage summary:focus-visible { outline-offset: 2px; }
.antwort { padding: 0 52px 26px 0; max-width: 64ch; color: var(--teer-2); }
@supports (interpolate-size: allow-keywords) {
  .fragen { interpolate-size: allow-keywords; }
  .frage::details-content {
    block-size: 0; overflow: clip;
    transition: block-size .35s var(--aus), content-visibility .35s allow-discrete;
  }
  .frage[open]::details-content { block-size: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .frage::details-content { transition: none; }
  .frage summary::before, .frage summary::after { transition: none; }
}
@media (max-width: 900px) {
  .fragen-inhalt { grid-template-columns: 1fr; }
  .fragen-kopf { position: static; }
  .antwort { padding-right: 0; }
}

/* ============ Anmeldung ============ */
.anmelden { background: var(--beton); padding-bottom: var(--schritt); }
.anmelden-kopf { max-width: var(--breit); margin: 0 auto; padding: var(--schritt) var(--rand) 0; }
.anmelden-kopf p { margin-top: 18px; max-width: 56ch; font-size: 1.125rem; color: var(--teer-2); }
.formular {
  max-width: var(--breit); margin: 48px auto 0; padding: 0 var(--rand);
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px;
}
.bauweise-wahl { grid-column: 1 / -1; border: 0; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.bauweise-wahl legend { width: 100%; margin-bottom: 12px; font-weight: 700; }
.bauweise-wahl label { position: relative; cursor: pointer; }
.bauweise-wahl input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bauweise-wahl span {
  display: inline-flex; align-items: baseline; gap: 6px; min-height: 46px; align-items: center;
  padding: 0 16px; background: var(--weiss); box-shadow: inset 0 0 0 1.5px var(--beton-2);
  font-weight: 600; transition: background-color .15s, box-shadow .15s, color .15s;
}
.bauweise-wahl small { font-weight: 500; color: var(--grau); }
.bauweise-wahl label:hover span { box-shadow: inset 0 0 0 1.5px var(--teer); }
.bauweise-wahl input:checked + span { background: var(--teer); color: var(--weiss); box-shadow: none; }
.bauweise-wahl input:checked + span small { color: #c9c6be; }
.bauweise-wahl input:focus-visible + span { outline: 3px solid var(--rot); outline-offset: 3px; }

.feld { display: grid; gap: 8px; align-content: start; }
.feld-breit { grid-column: 1 / -1; }
.feld label { font-weight: 600; }
.feld label small { font-weight: 400; color: var(--grau); }
.feld input, .feld textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--teer);
  background: var(--weiss); border: 0; border-bottom: 2px solid var(--teer-2); border-radius: 0;
  padding: 13px 14px; min-height: 50px;
  transition: border-color .15s, background-color .15s;
}
.feld textarea { resize: vertical; min-height: 140px; }
.feld input::placeholder, .feld textarea::placeholder { color: #6f6d66; }
.feld input:hover, .feld textarea:hover { background: #fff; }
.feld input:focus, .feld textarea:focus { outline: none; border-bottom-color: var(--rot); background: #fff; }
.feld [aria-invalid="true"] { border-bottom-color: var(--rot-tief); background: #fbe9e7; }
.fehler { color: var(--rot-tief); font-size: .9375rem; font-weight: 600; }
.formular-fuss { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.formular-status { font-weight: 600; max-width: 60ch; }
.formular-status:empty { display: none; }
.formular-auswahl, .formular-hilfe { grid-column: 1 / -1; max-width: 75ch; }
.formular-auswahl { padding: 16px; background: var(--weiss); font-weight: 600; }
.formular-auswahl[hidden] { display: none; }
.formular-hilfe { color: var(--teer-2); }
.formular-status[data-art="ok"] {
  flex-basis: 100%; padding: 22px 18px 16px;
  background: repeating-linear-gradient(90deg, var(--rot) 0 24px, var(--weiss) 24px 48px) top / 100% 6px no-repeat, var(--weiss);
}
.knopf[aria-disabled="true"] { background: var(--teer-2); cursor: progress; }
.knopf[aria-disabled="true"]::after { transform: none; }
/* Falle für Programme: für Menschen unsichtbar und nicht erreichbar */
.honigtopf { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.anmelden-direkt { font-size: 1rem !important; }
.rueckwaerts { unicode-bidi: bidi-override; direction: rtl; }
.telefon a, .rueckwaerts { white-space: nowrap; }
.adresse a, .telefon a { font-weight: 600; text-decoration: underline; text-decoration-color: var(--rot); text-decoration-thickness: 2px; text-underline-offset: .3em; }
.adresse a:hover, .telefon a:hover { color: var(--rot-tief); text-decoration-color: var(--rot-tief); }
.bauweise-wahl legend small { font-weight: 400; color: var(--grau); }
.formular-status[data-art="fehler"] { color: var(--rot-tief); }
@media (max-width: 700px) { .formular { grid-template-columns: 1fr; } }

/* Antwortseite von kontakt.php (ohne Skript) */
.kontakt-seite h1 { font: 800 clamp(2.4rem, 5.6vw, 5.2rem)/.92 var(--display); font-stretch: 66%; text-transform: uppercase; }
.kontakt-meldung { margin-top: 18px; max-width: 56ch; font-size: 1.125rem; font-weight: 600; }
.kontakt-meldung[data-art="fehler"] { color: var(--rot-tief); }
.kontakt-zurueck { margin-top: 28px; }

/* ============ Seite «Über Webrohbau»: Bauakte ============ */
.akte-kopf {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  background: var(--himmel); color: var(--weiss);
}
.akte-kopf-text { padding: clamp(40px, 7vw, 112px) var(--rand); align-self: center; max-width: 820px; }
.pfad { font-size: .875rem; color: var(--weiss); text-shadow: 0 1px 6px rgb(0 0 0 / .6); }
.pfad [aria-current] { display: inline-block; padding: 1px 6px; background: rgb(18 18 17 / .55); }
.pfad a { color: var(--weiss); }
.akte-kopf h1 {
  margin-top: 18px;
  font: 800 clamp(3rem, 7.4vw, 7.6rem)/.86 var(--display); font-stretch: 64%;
  letter-spacing: -.012em; text-transform: uppercase;
}
.akte-kurz { margin-top: clamp(18px, 2.4vw, 30px); max-width: 56ch; font-size: clamp(1.0625rem, 1.35vw, 1.3rem); line-height: 1.5; }
.akte-bild { margin: 0; min-height: 360px; }
.akte-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }

.akte {
  max-width: var(--breit); margin: 0 auto; padding: var(--schritt) var(--rand);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px clamp(32px, 6vw, 96px); align-items: start;
}
.steckbrief {
  position: sticky; top: calc(var(--kopf-h) + 28px);
  background: var(--weiss); padding: 0 0 18px; rotate: -.8deg;
  box-shadow: 0 2px 3px rgb(0 0 0 / .18), 0 24px 48px -16px rgb(0 0 0 / .38);
}
.steckbrief::before, .steckbrief::after {
  content: ""; position: absolute; top: 10px; width: 16px; height: 4px;
  background: linear-gradient(#c9c7c0, #8d8b85); border-radius: 1px;
}
.steckbrief::before { left: 16px; }
.steckbrief::after { right: 16px; }
.steckbrief-kopf {
  max-width: none; padding: 26px 22px 12px; border-bottom: 3px solid var(--teer);
  font-size: 2.1rem; font-stretch: 70%;
}
.steckbrief dl { margin: 0; padding: 4px 22px 0; font-size: .9375rem; }
.steckbrief dl div { display: grid; grid-template-columns: 7.4em minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--beton-2); }
.steckbrief dt { color: var(--grau); }
.steckbrief dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.akte-text { display: grid; gap: clamp(44px, 5vw, 64px); max-width: 72ch; }
.akte-text section { display: grid; gap: 14px; }
.akte-text h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); padding-top: 14px; border-top: 3px solid var(--teer); max-width: none; }
.akte-text p { color: var(--teer-2); }
.akte-tabelle { width: 100%; border-collapse: collapse; margin: 6px 0 4px; font-size: .9375rem; }
.akte-tabelle thead th { padding: 0 0 10px; border-bottom: 3px solid var(--teer); text-align: left; font-weight: 500; font-size: .8125rem; color: var(--grau); letter-spacing: .04em; text-transform: uppercase; }
.akte-tabelle thead th:last-child, .akte-tabelle td:last-child { text-align: right; }
.akte-tabelle td, .akte-tabelle tbody th { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--beton-2); vertical-align: baseline; text-align: left; }
.akte-tabelle td:first-child { width: 3.2rem; color: var(--grau); font-variant-numeric: tabular-nums; }
.akte-tabelle tbody th { font: 800 1.35rem/1 var(--display); font-stretch: 72%; text-transform: uppercase; }
.akte-tabelle tbody th small { display: block; margin-top: 6px; font: 400 .9375rem/1.45 var(--text); text-transform: none; color: var(--teer-2); }
.akte-tabelle td:last-child { padding-right: 0; white-space: nowrap; font: 800 1.3rem/1 var(--display); font-stretch: 78%; font-variant-numeric: tabular-nums; }
.akte-tabelle td:last-child small { display: block; margin-top: 4px; font: 500 .8125rem/1 var(--text); color: var(--grau); }
.akte-schritte { margin: 0; padding-left: 1.4em; display: grid; gap: 10px; color: var(--teer-2); }
.akte-schritte li::marker { font-weight: 700; color: var(--teer); font-variant-numeric: tabular-nums; }
.akte-schritte strong { color: var(--teer); }
.akte-aktion { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }

@media (max-width: 900px) {
  .akte-kopf { grid-template-columns: 1fr; }
  .akte-bild { min-height: 0; aspect-ratio: 16 / 9; order: -1; }
  .akte { grid-template-columns: 1fr; }
  .steckbrief { position: relative; top: auto; rotate: none; }
}
@media (max-width: 520px) {
  .akte-tabelle td:first-child { display: none; }
  .akte-tabelle thead th:first-child { display: none; }
}

/* ============ Rechtliches ============ */
.recht { background: var(--weiss); }
.recht-inhalt {
  max-width: var(--breit); margin: 0 auto; padding: 56px var(--rand);
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px 56px;
}
.recht h2 { font-size: 1.6rem; max-width: none; }
.recht p { margin-top: 12px; max-width: 70ch; color: var(--teer-2); }
.recht h3 { margin-top: 24px; font-size: 1.05rem; }
.recht h2.recht-unter { margin-top: 24px; font-size: 1.05rem; }
.recht-stand { font-size: .875rem; }
@media (max-width: 700px) { .recht-inhalt { grid-template-columns: 1fr; } }

/* ============ Fuss ============ */
.fuss { background: var(--teer); color: #c9c6be; }
.fuss-inhalt {
  max-width: var(--breit); margin: 0 auto; padding: 48px var(--rand) 56px;
  display: grid; grid-template-columns: 1fr auto; gap: 20px 32px; font-size: .9375rem;
}
.fuss-marke { color: var(--weiss); }
.fuss-marke .wortmarke { --wm-grund: var(--teer); font-size: 1.6rem; }
.fuss-zeile, .fuss-mail { display: block; margin-top: 10px; font-size: .9375rem; line-height: 1.3; color: #c9c6be; }
.fuss-mail { margin-top: 6px; }
.fuss .adresse a { font-weight: 500; text-decoration-color: currentColor; text-decoration-thickness: 1px; }
.fuss .adresse a:hover { color: var(--weiss); }
.fuss nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
/* Verzeichnis der Leistungen: eigene Zeile über die ganze Breite, unter Marke und Rechtlichem */
.fuss .fuss-leistungen { grid-column: 1 / -1; align-items: center; gap: 0 20px; padding-top: 14px; border-top: 1px solid rgb(251 250 247 / .16); }
.fuss-leistungen strong { color: var(--weiss); font-weight: 600; }
.fuss-leistungen a { display: inline-flex; align-items: center; min-height: 44px; }
.fuss a:hover { color: var(--weiss); }
/* Live-Beweis: echte Ladezeit dieses Aufrufs, gelb wie alles Gemessene */
.ladezeit {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  font-size: .9375rem; color: #c9c6be;
  transition: opacity .6s var(--aus);
}
.ladezeit[hidden] { display: none; }
@starting-style { .ladezeit { opacity: 0; } }
.ladezeit::before {
  content: ""; width: 44px; height: 10px; flex: none;
  background:
    repeating-linear-gradient(90deg, rgb(20 20 18 / .55) 0 1px, transparent 1px 4.4px),
    repeating-linear-gradient(90deg, var(--gelb) 0 50%, #e4b50f 50% 100%);
}
.ladezeit strong { color: var(--weiss); font-weight: 600; font-variant-numeric: tabular-nums; }
.ladezeit small { font-size: .8125rem; color: #9d9a92; }
.nachweis { grid-column: 1 / -1; font-size: .8125rem; color: #9d9a92; max-width: 90ch; }
@media (max-width: 700px) { .fuss-inhalt { grid-template-columns: 1fr; } }

/* Polier: Bauschild unten rechts, öffnet den Chat-Assistenten (Stil des Dialogs in chat.css, erst bei Bedarf geladen) */
.polier-kontakt {
  position: fixed; z-index: 40;
  right: max(16px, env(safe-area-inset-right)); bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px));
  display: flex; align-items: stretch; gap: 8px; visibility: hidden;
}
.polier-kontakt.polier-da { visibility: visible; }
.polier-whatsapp {
  display: flex; align-items: center; justify-content: center; flex: none;
  min-width: 52px; min-height: 52px; padding: 10px;
  background: var(--teer); color: #25d366; text-decoration: none;
  border: 1px solid #25d366;
}
.polier-whatsapp svg { width: 30px; height: 30px; fill: currentColor; }
.polier-whatsapp:hover { background: var(--teer-2); }
.polier-whatsapp:active { scale: .97; }
.polier-whatsapp:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; }
.polier-kontakt .polier-schild { position: relative; right: auto; bottom: auto; }
.polier-schild {
  position: fixed; z-index: 40;
  right: max(16px, env(safe-area-inset-right)); bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px));
  display: grid; justify-items: start; gap: 3px;
  padding: 16px 16px 11px; border: 0; border-radius: 0;
  background:
    repeating-linear-gradient(90deg, var(--rot) 0 18px, var(--weiss) 18px 36px) top / 100% 6px no-repeat,
    var(--weiss);
  color: var(--teer); text-align: left; cursor: pointer;
  box-shadow: 0 1px 2px rgb(0 0 0 / .16), 0 18px 36px -14px rgb(20 20 18 / .42);
  rotate: -1.2deg;
  translate: 0 calc(100% + 40px); visibility: hidden;
  transition: translate .7s var(--aus), rotate .3s var(--aus), scale .16s var(--aus), opacity .2s var(--aus), visibility 0s .7s;
}
.polier-schild.polier-da { translate: 0 0; visibility: visible; transition-delay: 0s; }
.polier-kontakt.polier-beim-formular:not(:focus-within),
.polier-kontakt.polier-beim-formular:not(:focus-within) .polier-schild { visibility: hidden; pointer-events: none; }
.polier-schild-name { font: 800 1.0625rem/1 var(--display); font-stretch: 74%; text-transform: uppercase; letter-spacing: .01em; }
.polier-schild-art { font-size: .75rem; font-weight: 600; line-height: 1.2; color: var(--grau); }
@media (hover: hover) and (pointer: fine) {
  .polier-schild:hover { rotate: 0deg; }
  .polier-schild:hover .polier-schild-name { text-decoration: underline 2px var(--rot); text-underline-offset: .2em; }
}
.polier-schild:active { scale: .97; }
.polier-schild[aria-expanded="true"] { opacity: 0; pointer-events: none; }
@media (max-width: 640px) {
  .polier-schild { rotate: none; padding: 14px 13px 9px; }
  .polier-schild-name { font-size: .9375rem; }
}
@media (prefers-reduced-motion: reduce) {
  .polier-schild { translate: none; opacity: 0; transition: opacity .2s linear, visibility 0s .2s; }
  .polier-schild.polier-da { opacity: 1; }
  .polier-schild.polier-da[aria-expanded="true"] { opacity: 0; }
}
/* Hinweis auf das Studio: kleines Blatt unten links, einmal pro Besucher (Logik in main.js).
   Unten rechts steht der Polier; mobil liegt der Hinweis darum über dessen Schild. */
.studio-hinweis {
  position: fixed; z-index: 39;
  left: max(16px, env(safe-area-inset-left)); bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px));
  width: 296px;
  background: var(--weiss); color: var(--teer);
  box-shadow: 0 1px 2px rgb(0 0 0 / .16), 0 18px 36px -14px rgb(20 20 18 / .42);
  rotate: .6deg;
  transition: opacity .45s var(--aus), translate .7s var(--aus);
}
.studio-hinweis[hidden] { display: none; }
@starting-style { .studio-hinweis { opacity: 0; translate: 0 24px; } }
.studio-hinweis.geht { opacity: 0; translate: 0 12px; transition-duration: .2s; }
/* Rot-weisses Profilband als Oberkante, wie beim Polier */
.studio-hinweis::before {
  content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 6px;
  background: repeating-linear-gradient(90deg, var(--rot) 0 18px, var(--weiss) 18px 36px);
}
/* Ausschnitt aus dem Standbild des Films: die Reihe der Vorlagen im Studio */
.studio-hinweis-bild { position: relative; height: 108px; overflow: hidden; background: var(--teer); }
.studio-hinweis-bild img { position: absolute; left: 0; top: 0; width: 202%; max-width: none; height: auto; translate: -2.6% -51.5%; }
/* Zum Messen des festen Platzes (main.js), ohne dass etwas aufblitzt */
.studio-hinweis.hinweis-messen { visibility: hidden; transition: none; translate: none; }
.studio-hinweis-inhalt { padding: 14px 18px 18px; }
.studio-hinweis-titel {
  font: 800 1.375rem/1 var(--display); font-stretch: 72%; letter-spacing: .005em; text-transform: uppercase;
}
.studio-hinweis ul { display: grid; gap: 5px; margin: 10px 0 16px; padding: 0; list-style: none; font-size: .875rem; line-height: 1.35; color: var(--teer-2); }
.studio-hinweis li { display: grid; grid-template-columns: 7px minmax(0, 1fr); gap: 9px; }
.studio-hinweis li::before { content: ""; width: 7px; height: 7px; margin-top: .4em; background: var(--rot); }
.studio-hinweis-zu {
  position: absolute; z-index: 2; top: 6px; right: 0;
  display: grid; place-items: center; width: 44px; height: 44px;
  background: var(--weiss); color: var(--teer); border: 0; border-radius: 0; cursor: pointer;
}
.studio-hinweis-zu svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; transition: rotate .2s var(--aus); }
@media (hover: hover) and (pointer: fine) { .studio-hinweis-zu:hover svg { rotate: 90deg; } }
.studio-hinweis-zu:active { scale: .94; }
.studio-hinweis-zu:focus-visible { outline-offset: -3px; }
@media (max-width: 760px) {
  .studio-hinweis {
    left: 16px; right: 16px; width: auto; rotate: none;
    bottom: calc(max(18px, calc(env(safe-area-inset-bottom) + 12px)) + 70px);
  }
  .studio-hinweis-bild { display: none; }
  .studio-hinweis-inhalt { padding: 20px 52px 16px 16px; }
  .studio-hinweis ul { margin-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .studio-hinweis { transition: opacity .2s linear; }
  .studio-hinweis.geht { translate: none; }
}
@media print { .studio-hinweis { display: none !important; } }

/* Grössere Klickflächen auf der Über-Seite: Pfad, Kontakt im Steckbrief, Fusszeile */
.akte-seite .pfad a, .akte-seite dd a, .akte-seite .fuss nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* ============ Provisorisches: Entwurfsband und Offen-Marke ============ */
/* Unbestätigte Angaben sind gelb markiert (DESIGN.md): das Entwurfsband als absperrgelbe Zeile, die Offen-Marke
   in blassem Gelb direkt hinter der Angabe. Gilt auf allen Seiten.

   SCHALTER «Preisvorschlag»
   Die Preise und Bedingungen der neuen Leistungen sind Vorschläge, bis Adrian sie bestätigt hat.
   Nach der Bestätigung die folgende Zeile einkommentieren: Dann verschwinden Band und Marken auf allen Seiten. */
.entwurf, .offen { display: none !important; }
.entwurf {
  margin: 0; padding: 8px var(--rand);
  background: var(--gelb); color: #141412;
  font: 600 .8125rem/1.45 var(--text);
}
.offen {
  display: inline-block; padding: 1px 6px;
  background: #fdf3cc; color: #141412;
  font: 600 .8125rem/1.5 var(--text); letter-spacing: 0; text-transform: none; white-space: nowrap;
}
.akte-text .entwurf { padding: 8px 12px; color: #141412; }
.akte-tabelle td .offen { display: block; width: fit-content; margin: 6px 0 0 auto; }
