/* ==========================================================================
   Mundigl Webdesign
   Gestaltungsprinzip: Werkplan. Die Seite ist als technische Zeichnung
   aufgebaut, weil die Zielgruppe aus Betrieben besteht, die mit Maßen,
   Positionen und Festpreisen arbeiten. Kein Karten-Raster, keine Glasflächen:
   Papier, Linien, Bemaßung, Schriftfeld.
   Farben: Effentis-Blau als Zeichenblau, Rot ausschließlich als Korrekturfarbe.
   ========================================================================== */

:root {
  --paper:      #EEEDE7;
  --paper-warm: #E6E4DA;
  --paper-cool: #E3E6E4;
  --ink:        #14171C;
  --ink-2:      #464C55;
  --ink-3:      #767B80;
  --rule:       #C6C6BC;
  --rule-soft:  #D9D8CF;
  --blue:       #2987F1;
  --blue-deep:  #0E3E7E;
  --blue-wash:  #DDE8F6;
  --red:        #D8322A;
  --red-wash:   #F5DED9;

  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', 'SF Mono', Menlo, monospace;

  --rail: 0px;
  --gutter: clamp(1.15rem, 4vw, 3rem);
  --wrap: 1240px;
  --ease: cubic-bezier(.2,.7,.3,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  padding-left: var(--rail);
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(0deg,  transparent 0 39px, rgba(20,23,28,.045) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(20,23,28,.045) 39px 40px),
    repeating-linear-gradient(0deg,  transparent 0 7px,  rgba(20,23,28,.022) 7px 8px),
    repeating-linear-gradient(90deg, transparent 0 7px,  rgba(20,23,28,.022) 7px 8px);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a { color: var(--blue-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* --------------------------------------------------------------------------
   Randleiste: der linke Rand eines Zeichenblatts, mit Maßstabsteilung
   -------------------------------------------------------------------------- */
.rail { display: none; }

/* --------------------------------------------------------------------------
   Schriftskala. Die Breitenachse von Archivo trägt die Hierarchie:
   breit für Aussagen, schmal für Beschriftungen.
   -------------------------------------------------------------------------- */
.display {
  font-weight: 800; font-stretch: 118%;
  font-size: clamp(2.5rem, 7.4vw, 5.4rem);
  line-height: .93; letter-spacing: -.025em;
  color: var(--ink); text-wrap: balance;
}
.h2 {
  font-weight: 800; font-stretch: 112%;
  font-size: clamp(1.75rem, 4.2vw, 2.9rem);
  line-height: 1.02; letter-spacing: -.02em;
  color: var(--ink); max-width: 20ch;
}
.h3 {
  font-weight: 700; font-stretch: 104%;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.18; letter-spacing: -.01em; color: var(--ink);
}
.lead { font-size: clamp(1.05rem, 1.9vw, 1.22rem); max-width: 54ch; color: var(--ink-2); }
.tag {
  font-family: var(--mono); font-size: .7rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   Blattkopf: Positionsnummer und Titel sitzen auf einer durchgehenden Linie
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(3.5rem, 8vw, 7rem); position: relative; }

.sheethead {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 1rem; margin-bottom: clamp(1.8rem, 4vw, 3rem);
}
.sheethead-pos {
  font-family: var(--mono); font-size: .74rem; font-weight: 600;
  letter-spacing: .12em; color: var(--blue-deep);
  border: 1px solid var(--blue-deep); padding: .18rem .5rem;
  white-space: nowrap;
}
.sheethead-line { height: 1px; background: var(--ink); opacity: .55; }
.sheethead-meta { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; color: var(--ink-3); text-transform: uppercase; white-space: nowrap; }

/* Bemaßungslinie mit Endstrichen, wie in einer Zeichnung */
.dim { display: flex; align-items: center; gap: .6rem; }
.dim::before, .dim::after { content: ""; height: 9px; width: 1px; background: var(--red); flex: none; }
.dim-line { flex: 1; height: 1px; background: var(--red); }
.dim-text {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em;
  color: var(--red); text-transform: uppercase; white-space: nowrap;
}

/* Schraffur für betonte Felder */
.hatch {
  background-image: repeating-linear-gradient(45deg,
    rgba(41,135,241,.14) 0 2px, transparent 2px 7px);
}

/* Stempel */
.stamp {
  display: inline-block; font-family: var(--mono); font-weight: 600;
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); border: 2px solid var(--red); padding: .3rem .6rem;
  transform: rotate(-3deg);
}

/* --------------------------------------------------------------------------
   Schaltflächen: körperlich, kein Schweben. Der Druckknopf senkt sich.
   -------------------------------------------------------------------------- */
.btn {
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--sans); font-weight: 700; font-stretch: 100%;
  font-size: 1rem; line-height: 1.15;
  padding: .9rem 1.5rem; border: 1.5px solid var(--ink);
  background: var(--red); color: #fff;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), background .2s;
}
.btn:hover { background: #c22a23; transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn-line { background: transparent; color: var(--ink); box-shadow: 4px 4px 0 var(--rule); }
.btn-line:hover { background: var(--ink); color: var(--paper); box-shadow: 2px 2px 0 var(--rule); }
.btn-sm { padding: .5rem .9rem; font-size: .85rem; box-shadow: 3px 3px 0 var(--ink); }
.btn-sm:hover { box-shadow: 1px 1px 0 var(--ink); }
.btn-onblue { border-color: var(--paper); box-shadow: 4px 4px 0 rgba(0,0,0,.35); }

/* --------------------------------------------------------------------------
   Kopfzeile
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: var(--rail); right: 0; z-index: 70;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .6rem var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
  transition: transform .3s var(--ease);
}
.site-header.is-hidden { transform: translateY(-101%); }
.brand { display: inline-flex; align-items: baseline; gap: .55rem; color: var(--ink); text-decoration: none; }
.brand-logo { width: 30px; height: 30px; border-radius: 7px; align-self: center; flex: none; }
.brand-name { font-weight: 700; font-stretch: 92%; font-size: .98rem; letter-spacing: .01em; white-space: nowrap; }
.brand-name span { font-weight: 400; color: var(--ink-2); }
.header-meta { display: none; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; color: var(--ink-3); text-transform: uppercase; }

/* --------------------------------------------------------------------------
   Deckblatt (Hero)
   -------------------------------------------------------------------------- */
.cover { padding-top: clamp(5.5rem, 11vw, 8rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.cover-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem 1.4rem; margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.cover-top .tag { color: var(--blue-deep); }
.cover-rule { flex: 1; min-width: 40px; height: 1px; background: var(--ink); opacity: .5; }

.cover-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.display em { font-style: normal; color: var(--blue); }
.cover-sub { margin-top: 1.5rem; max-width: 48ch; font-size: clamp(1.02rem, 1.8vw, 1.15rem); }
.cover-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.cover-note { margin-top: 1.1rem; }
.cover-dim { margin-top: 2.2rem; max-width: 420px; }

/* Schriftfeld: das Feld unten rechts auf jeder technischen Zeichnung */
.titleblock { border: 1.5px solid var(--ink); background: var(--paper); }
.titleblock-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .5rem .75rem; border-bottom: 1.5px solid var(--ink);
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
}
.titleblock-rows { display: grid; grid-template-columns: 1fr 1fr; }
.tb-row { padding: .6rem .75rem; border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule); }
.tb-row:nth-child(2n) { border-right: 0; }
.tb-row:nth-last-child(-n+2) { border-bottom: 0; }
.tb-row.tb-full { grid-column: 1 / -1; border-right: 0; }
.tb-key { display: block; font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .15rem; }
.tb-val { font-weight: 700; font-stretch: 96%; color: var(--ink); font-size: .95rem; line-height: 1.25; }
.tb-val small { display: block; font-weight: 400; font-size: .8rem; color: var(--ink-2); margin-top: .1rem; }

/* Zeichenblatt: der Rahmen um jedes gezeigte Projekt */
.sheet { border: 1.5px solid var(--ink); background: #fff; }
.sheet-window { position: relative; overflow: hidden; background: #fff; }
.sheet-caption {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .45rem .7rem; border-top: 1.5px solid var(--ink);
  font-family: var(--mono); font-size: .66rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-2); background: var(--paper);
}
.sheet-window-film { aspect-ratio: 880 / 426; background: #17130F; }
.cover-video { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center top; }

/* --------------------------------------------------------------------------
   Pos. 01 Bestandsaufnahme: die markierte Seite
   -------------------------------------------------------------------------- */
.survey-intro { display: grid; gap: 1.6rem; margin-bottom: clamp(2rem, 4vw, 3rem); }

.markup-stage { display: grid; gap: 1.5rem; margin-bottom: 1rem; }
.markup-frame { position: relative; align-self: start; border: 1.5px solid var(--ink); background: #fff; overflow: hidden; }

/* Der eingekringelte Firmenname: der erste Befund */
.ringed { position: relative; display: inline-block; }
.ringed::after {
  content: ""; position: absolute; left: -9px; right: -9px; top: -5px; bottom: -4px;
  border: 2px solid var(--red); border-radius: 50%;
  transform: rotate(-1.5deg) scale(.4); opacity: 0;
  transition: transform .5s var(--ease) .2s, opacity .35s .2s;
}
.markup-stage.is-marked .ringed::after { transform: rotate(-1.5deg) scale(1); opacity: 1; }

/* Nummerierte Marker sitzen direkt neben dem Befund, nicht darüber */
.mk {
  display: inline-grid; place-items: center; width: 17px; height: 17px;
  margin-left: 5px; vertical-align: middle;
  border: 2px solid var(--red); border-radius: 50%;
  font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--red);
  background: rgba(255,255,255,.9); position: relative; z-index: 4;
  transform: scale(0); transition: transform .3s var(--ease);
}
.markup-stage.is-marked .mk { transform: scale(1); }
.markup-stage.is-marked .mk1 { transition-delay: .55s; }
.markup-stage.is-marked .mk2 { transition-delay: .75s; }
.markup-stage.is-marked .mk3 { transition-delay: .95s; }
.markup-stage.is-marked .mk4 { transition-delay: 1.15s; }

/* Befunde als Randspalte */
.findings { display: grid; gap: .9rem; align-content: start; }
.finding { display: grid; grid-template-columns: 26px 1fr; gap: .6rem; align-items: start; }
.finding-no {
  display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px;
  border: 2px solid var(--red); border-radius: 50%;
  font-family: var(--mono); font-size: .68rem; font-weight: 600; color: var(--red);
}
.finding p { font-size: .88rem; line-height: 1.5; }
.finding b { color: var(--ink); font-weight: 700; }

/* Nachbau einer typischen Betriebsseite von heute. Bewusst nicht hässlich,
   sondern sauber und wirkungslos: Baukasten-Optik, Stockfoto, Cookie-Banner.
   Eigener Schriftstapel, damit der Nachbau sich klar vom Werkplan absetzt. */
.newsite {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background: #fff; color: #33363b; font-size: 13px; line-height: 1.5;
}

/* Angedeutete Browserleiste, damit der Nachbau als Webseite lesbar ist */
.ns-chrome { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: #e9e9e6; border-bottom: 1px solid #d4d4ce; }
.ns-dots { display: inline-flex; gap: 4px; flex: none; }
.ns-dots i { width: 7px; height: 7px; border-radius: 50%; background: #c7c7c1; }
.ns-url {
  flex: 1; min-width: 0; background: #fff; border-radius: 999px; padding: 3px 9px;
  font-family: var(--mono); font-size: 9.5px; color: #8c8c86;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.ns-view { position: relative; }

.ns-bar { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border-bottom: 1px solid #ededed; }
.ns-logo { font-size: 11.5px; font-weight: 700; letter-spacing: .15em; color: #1d2b3e; }
.ns-burger { display: grid; gap: 3px; flex: none; }
.ns-burger i { display: block; width: 16px; height: 2px; background: #1d2b3e; border-radius: 1px; }

/* Hero: großes Stockfoto, dunkler Verlauf, mittig gesetzter Anspruch */
.ns-hero { position: relative; aspect-ratio: 16 / 10; min-height: 178px; overflow: hidden; }
.ns-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ns-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,23,38,.32), rgba(13,23,38,.66)); }
.ns-hero-in {
  position: relative; z-index: 2; height: 100%;
  display: grid; place-content: center; justify-items: center;
  text-align: center; gap: 7px; padding: 14px 16px;
}
.ns-kicker { font-size: 8.5px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.ns-claim { font-size: 17px; font-weight: 700; line-height: 1.15; color: #fff; }
.ns-act { display: flex; align-items: center; margin-top: 2px; }
.ns-cta { display: inline-block; padding: 7px 14px; border-radius: 3px; background: #2f6fb5; color: #fff; font-size: 10px; font-weight: 600; }
.ns-mk-photo { position: absolute; left: 9px; top: 9px; z-index: 3; margin-left: 0; }

/* Angeschnittener Folgeabschnitt, den das Cookie-Banner zum Teil verdeckt */
.ns-next { padding: 14px 14px 62px; }
.ns-next-h { font-size: 12px; font-weight: 700; color: #1d2b3e; margin-bottom: 4px; }
.ns-next-p { font-size: 10.5px; color: #6d6f74; line-height: 1.6; }

.ns-cookie {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  display: grid; gap: 8px; padding: 10px 12px;
  background: #fff; border-top: 1px solid #e4e4e4; box-shadow: 0 -6px 18px rgba(0,0,0,.1);
}
.ns-cookie-txt { font-size: 10px; line-height: 1.45; color: #56575b; }
.ns-cookie-row { display: flex; align-items: center; gap: 6px; }
.ns-cookie-btn { padding: 5px 9px; border: 1px solid #cfcfcf; border-radius: 3px; background: #fff; font-size: 9px; color: #56575b; white-space: nowrap; }
.ns-cookie-btn.is-ok { background: #2f6fb5; border-color: #2f6fb5; color: #fff; font-weight: 600; }

/* Ladezeit: als Messung dargestellt, nicht als Fortschrittsbalken */
.gauge { border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); padding: clamp(1.4rem,3vw,2.2rem) 0; margin-top: clamp(2.5rem,5vw,3.5rem); }
.gauge-head { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; align-items: baseline; justify-content: space-between; margin-bottom: 1.6rem; }
.gauge-row { display: grid; gap: .3rem; margin-bottom: 1.3rem; }
.gauge-label { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: var(--ink-2); text-transform: uppercase; }
.gauge-track { position: relative; height: 22px; border-left: 1.5px solid var(--ink); }
.gauge-track::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px 10%);
}
.gauge-fill { position: absolute; left: 0; top: 4px; bottom: 4px; width: 0; }
.gauge-fill.is-slow { background: var(--ink-3); }
.gauge-fill.is-fast { background: var(--blue-deep); }
.gauge-delta { opacity: 0; transition: opacity .5s .2s; }
.gauge-delta.is-in { opacity: 1; }
.gauge-delta .dim { max-width: 320px; }
.gauge-scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .62rem; color: var(--ink-3); margin-top: .3rem; }
.gauge-time { font-family: var(--mono); font-size: .78rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.gauge-time.is-done { color: var(--ink); font-weight: 600; }
.gauge-foot { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-top: 1.4rem; }
.gauge-verdict { max-width: 48ch; opacity: 0; transition: opacity .5s; color: var(--ink); font-weight: 600; }
.gauge-verdict.is-in { opacity: 1; }

/* Kennzahlen als Bemaßungsblock */
.figures { display: grid; gap: 0; border-top: 1px solid var(--rule); margin-top: clamp(2rem,4vw,2.8rem); }
.figure { display: grid; gap: .3rem; padding: 1.15rem 0; border-bottom: 1px solid var(--rule); }
.figure-num {
  font-family: var(--sans); font-weight: 800; font-stretch: 118%;
  font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1; color: var(--blue-deep);
  font-variant-numeric: tabular-nums;
}
.figure-txt { max-width: 46ch; }
.figure-src { font-family: var(--mono); font-size: .64rem; color: var(--ink-3); }

/* --------------------------------------------------------------------------
   Pos. 02 Referenzen
   -------------------------------------------------------------------------- */
.works { display: grid; gap: clamp(1.6rem, 3vw, 2.2rem); }
.work {
  display: grid; gap: 0; cursor: pointer; background: transparent;
  border: 0; text-align: left; padding: 0; width: 100%;
}
.work .sheet { transition: transform .25s var(--ease), box-shadow .25s var(--ease); box-shadow: 6px 6px 0 var(--rule-soft); }
.work:hover .sheet, .work:focus-visible .sheet { transform: translate(-2px,-2px); box-shadow: 10px 10px 0 var(--blue); }
.work .sheet-window { height: clamp(220px, 30vw, 300px); }
.work .sheet-window img { width: 100%; }
.work:hover .sheet-window img { animation: creep 8s ease-in-out infinite alternate; }
@keyframes creep { from { transform: translateY(0); } to { transform: translateY(calc(-100% + 300px)); } }
.work-body { display: grid; gap: .55rem; padding-top: 1rem; }
.work-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; }
.work-desc { max-width: 52ch; font-size: .98rem; }
.work-open { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.beispiel {
  position: absolute; top: 0; left: 0; z-index: 2;
  font-family: var(--mono); font-size: .62rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: #fff; background: var(--blue-deep); padding: .25rem .5rem;
}
.works-note { margin-top: 1.6rem; font-family: var(--mono); font-size: .72rem; line-height: 1.6; color: var(--ink-3); max-width: 66ch; }

/* --------------------------------------------------------------------------
   Pos. 03 Ablauf: blaues Vollfeld
   -------------------------------------------------------------------------- */
.plan { background: var(--blue-deep); color: #C8D8EE; margin-block: clamp(2rem,5vw,4rem); }
.plan .h2, .plan .tb-val { color: #fff; }
.plan .sheethead-line { background: #6D93C4; opacity: 1; }
.plan .sheethead-pos { color: #fff; border-color: #6D93C4; }
.plan .sheethead-meta, .plan .tag { color: #93B2D8; }
.plan .lead { color: #C8D8EE; }
.plan-steps { display: grid; gap: 0; margin-top: clamp(2rem,4vw,3rem); border-top: 1px solid #2C5B96; }
.plan-step { display: grid; gap: .5rem; padding: 1.5rem 0; border-bottom: 1px solid #2C5B96; align-content: start; }
.plan-step-no { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; color: #7FB0EC; }
.plan-step h3 { font-weight: 800; font-stretch: 108%; font-size: 1.25rem; color: #fff; letter-spacing: -.01em; }
.plan-step p { font-size: .97rem; max-width: 38ch; }
.plan-note { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; align-items: center; }
.plan-note .stamp { color: #fff; border-color: #fff; }

/* --------------------------------------------------------------------------
   Pos. 04 Kosten: Angebotsblatt
   -------------------------------------------------------------------------- */
.quote-scroll { overflow-x: auto; }
.quote { width: 100%; min-width: 660px; border-collapse: collapse; background: #fff; border: 1.5px solid var(--ink); }
.quote caption { caption-side: top; text-align: left; padding: .55rem .8rem; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
.quote th, .quote td { padding: .8rem .85rem; border-bottom: 1px solid var(--rule); vertical-align: top; text-align: left; font-size: .93rem; }
.quote thead th { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1.5px solid var(--ink); font-weight: 500; }
.quote tbody th { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; width: 128px; }
.quote .col-me { background: var(--blue-wash); border-left: 1.5px solid var(--blue-deep); border-right: 1.5px solid var(--blue-deep); color: var(--ink); }
.quote thead .col-me { color: var(--blue-deep); font-weight: 600; border-top: 1.5px solid var(--blue-deep); }
.quote tbody tr:last-child td, .quote tbody tr:last-child th { border-bottom: 0; }
.quote tbody tr:last-child .col-me { border-bottom: 1.5px solid var(--blue-deep); }
.quote .neg { color: var(--ink-3); }
.quote .zero { font-weight: 700; }
.quote-grid { display: grid; gap: clamp(1.4rem,3vw,2rem); margin-top: clamp(1.8rem,4vw,2.6rem); }
.quote-note { border-left: 3px solid var(--blue); padding-left: 1.1rem; }
.quote-note .h3 { margin-bottom: .6rem; }
.quote-note p + p { margin-top: .7rem; }
.quote-claim { margin-top: .9rem; font-weight: 700; color: var(--ink); }

/* --------------------------------------------------------------------------
   Pos. 05 Leistungsverzeichnis
   -------------------------------------------------------------------------- */
.lv-scroll { overflow-x: auto; }
.lv { width: 100%; min-width: 620px; border-collapse: collapse; }
.lv th, .lv td { text-align: left; padding: .72rem .6rem; border-bottom: 1px solid var(--rule); font-size: .95rem; }
.lv thead th { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; border-bottom: 1.5px solid var(--ink); }
.lv td:first-child { font-family: var(--mono); font-size: .74rem; color: var(--blue-deep); width: 58px; }
.lv td:nth-child(2) { font-weight: 700; font-stretch: 98%; color: var(--ink); width: 30%; }
.lv td:nth-child(3) { color: var(--ink-2); }
.lv td:last-child { font-family: var(--mono); font-size: .74rem; text-align: right; white-space: nowrap; }
.lv .yes { color: var(--blue-deep); font-weight: 600; }
.lv .opt { color: var(--ink-3); }
.lv tbody tr:hover { background: rgba(41,135,241,.06); }

/* --------------------------------------------------------------------------
   Pos. 06 Ausführung
   -------------------------------------------------------------------------- */
.maker { display: grid; gap: clamp(1.8rem,4vw,3rem); align-items: start; }
.portrait { border: 1.5px solid var(--ink); background: #fff; max-width: 340px; }
.portrait-img { aspect-ratio: 4/5; position: relative; overflow: hidden; background: var(--paper-warm); }
.portrait-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.maker-copy p + p { margin-top: .85rem; }
/* Nachgezeichnete Unterschrift: eine gefüllte Fläche, keine Strichlinie.
   Deshalb erscheint sie über eine Wischblende in Schreibrichtung. */
/* Der Beschnitt sitzt auf dem SVG, beobachtet wird die Hülle. Läge beides auf
   demselben Element, meldete der Beobachter nie eine Sichtbarkeit, weil das
   Element sich zuvor selbst weggeschnitten hat. */
.sig-wrap { display: block; width: 190px; margin-top: 1.5rem; }
.sig { display: block; width: 100%; height: auto; }
.sig path { fill: var(--blue-deep); }
.sig-wrap .sig { clip-path: inset(0 100% 0 0); transition: clip-path 1.5s cubic-bezier(.4,.05,.2,1) .25s; }
.sig-wrap.is-in .sig { clip-path: inset(0 -2% 0 0); }
.sig-cap { font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: .3rem; }

/* --------------------------------------------------------------------------
   Referenz: ein echtes, ungekürztes Testimonial als angehefteter Beleg,
   deshalb bewusst als weißes Blatt gegen das Millimeterpapier gesetzt.
   -------------------------------------------------------------------------- */
.testimonial {
  position: relative;
  max-width: 700px;
  background: #fff;
  border: 1.5px solid var(--ink);
  padding: clamp(2.4rem,6vw,3.4rem) clamp(1.6rem,4vw,2.8rem) clamp(1.8rem,4vw,2.4rem);
}
.testimonial-mark {
  position: absolute;
  top: -0.06em;
  left: clamp(1.3rem,3vw,2.3rem);
  font-family: var(--sans);
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(4.5rem,9vw,6.5rem);
  line-height: 1;
  color: var(--blue-wash);
  pointer-events: none;
  user-select: none;
}
.testimonial-text {
  position: relative;
  display: grid;
  gap: .9rem;
  font-size: clamp(1rem,1.7vw,1.08rem);
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 62ch;
}
.testimonial-foot {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.7rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
}
.testimonial-name { font-weight: 700; font-stretch: 98%; color: var(--ink); }
.testimonial-sep { color: var(--rule); }
.testimonial-co { font-family: var(--mono); font-size: .74rem; letter-spacing: .03em; color: var(--ink-3); }

/* --------------------------------------------------------------------------
   Pos. 07 Rückfragen
   -------------------------------------------------------------------------- */
.qa { border-top: 1.5px solid var(--ink); max-width: 860px; }
.qa-item { border-bottom: 1px solid var(--rule); }
.qa-q {
  width: 100%; display: grid; grid-template-columns: 42px 1fr 24px; align-items: start;
  gap: .5rem; padding: 1.1rem 0; text-align: left;
}
.qa-no { font-family: var(--mono); font-size: .72rem; color: var(--blue-deep); padding-top: .2rem; }
.qa-txt { font-weight: 700; font-stretch: 102%; font-size: 1.06rem; line-height: 1.3; color: var(--ink); }
.qa-sign { position: relative; width: 14px; height: 14px; margin-top: .35rem; justify-self: end; }
.qa-sign::before, .qa-sign::after { content: ""; position: absolute; background: var(--red); transition: transform .3s var(--ease); }
.qa-sign::before { top: 6px; left: 0; width: 14px; height: 2px; }
.qa-sign::after { left: 6px; top: 0; width: 2px; height: 14px; }
.qa-item.is-open .qa-sign::after { transform: rotate(90deg); }
.qa-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.qa-a > div { overflow: hidden; }
.qa-a .inner { padding-left: 42px; max-width: 68ch; }
.qa-a p + p { margin-top: .7rem; }
.qa-item.is-open .qa-a { grid-template-rows: 1fr; }
.qa-item.is-open .qa-a .inner { padding-bottom: 1.3rem; }

/* --------------------------------------------------------------------------
   Pos. 08 Termin: blaues Vollfeld
   -------------------------------------------------------------------------- */
.appt { background: var(--blue-deep); color: #C8D8EE; }
.appt .h2 { color: #fff; max-width: 17ch; }
.appt .lead { color: #C8D8EE; }
.appt .sheethead-line { background: #6D93C4; opacity: 1; }
.appt .sheethead-pos { color: #fff; border-color: #6D93C4; }
.appt .sheethead-meta { color: #93B2D8; }
.appt-alt { margin-top: .8rem; font-family: var(--mono); font-size: .8rem; color: #93B2D8; }
.cal-box { margin-top: clamp(1.8rem,4vw,2.6rem); max-width: 940px; }
.cal-consent { border: 1.5px dashed #6D93C4; padding: clamp(1.8rem,5vw,3rem) 1.2rem; display: grid; justify-items: center; gap: 1rem; text-align: center; }
.cal-note { font-family: var(--mono); font-size: .72rem; line-height: 1.6; color: #93B2D8; max-width: 48ch; }
.cal-note a { color: #fff; }
.cal-frame { background: #fff; border: 1.5px solid var(--ink); min-height: 640px; }
.cal-consent[hidden] { display: none; }
.promises { display: grid; gap: 0; margin-top: 2rem; border-top: 1px solid #2C5B96; max-width: 700px; }
.promises li { display: grid; grid-template-columns: 34px 1fr; gap: .5rem; padding: .7rem 0; border-bottom: 1px solid #2C5B96; font-size: .96rem; }
.promises li b { font-family: var(--mono); font-size: .72rem; font-weight: 500; color: #7FB0EC; }

/* --------------------------------------------------------------------------
   Fußzeile
   -------------------------------------------------------------------------- */
.site-footer { border-top: 1.5px solid var(--ink); padding-block: 2.5rem 6rem; }
.footer-grid { display: grid; gap: 1.8rem; }
.footer-brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 700; }
.footer-brand .brand-logo { width: 34px; height: 34px; border-radius: 8px; }
.footer-claim { margin-top: .7rem; font-family: var(--mono); font-size: .74rem; line-height: 1.7; color: var(--ink-3); }
.footer-nav { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-family: var(--mono); font-size: .74rem; }
.footer-nav a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--rule); }
.footer-nav a:hover { color: var(--red); border-color: var(--red); }

/* --------------------------------------------------------------------------
   Rechtstexte (AGB, Impressum, Datenschutz)
   -------------------------------------------------------------------------- */
.legal {
  max-width: 820px;
}
.legal .h2 {
  max-width: 22ch;
  margin-top: .55rem;
}
.legal-lead {
  margin-top: .85rem;
  font-size: clamp(1.02rem, 1.7vw, 1.15rem);
  color: var(--ink-2);
  max-width: 42ch;
}
.legal-stand {
  margin-top: 1.1rem;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--rule);
}
.legal-block {
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule-soft);
}
.legal-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.legal-block h2 {
  font-weight: 700;
  font-stretch: 104%;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--ink);
  max-width: 36ch;
}
.legal-clauses {
  margin-top: 1rem;
  list-style: none;
  counter-reset: clause;
  display: grid;
  gap: .95rem;
}
.legal-clauses > li {
  counter-increment: clause;
  position: relative;
  padding-left: 2.1rem;
  font-size: .98rem;
  line-height: 1.72;
  color: var(--ink-2);
}
.legal-clauses > li::before {
  content: counter(clause) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--blue-deep);
  line-height: 1.9;
}
.legal-clauses > li > .legal-sub,
.legal-clauses > li > .legal-bullets {
  margin-top: .75rem;
  margin-left: .15rem;
  padding-left: .25rem;
}
.legal-sub {
  list-style: none;
  display: grid;
  gap: .55rem;
  counter-reset: sub;
}
.legal-sub > li {
  counter-increment: sub;
  position: relative;
  padding-left: 1.75rem;
  font-size: .95rem;
  line-height: 1.68;
  color: var(--ink-2);
}
.legal-sub > li::before {
  content: counter(sub, lower-alpha) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--mono);
  font-size: .76rem;
  font-weight: 600;
  color: var(--blue-deep);
  line-height: 1.85;
}
.legal-bullets {
  list-style: disc;
  padding-left: 1.35rem;
  display: grid;
  gap: .5rem;
}
.legal-bullets > li {
  display: list-item;
  padding-left: .25rem;
  font-size: .95rem;
  line-height: 1.68;
  color: var(--ink-2);
}
.legal-bullets > li::marker {
  color: var(--ink);
  font-size: .85em;
}
.legal-back {
  margin-top: 2.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
}

/* Leiste unten auf dem Handy */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 75;
  padding: .7rem .9rem calc(.7rem + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 1.5px solid var(--ink);
  transform: translateY(110%); transition: transform .35s var(--ease);
}
.mobile-cta.is-on { transform: none; }
.mobile-cta .btn { width: 100%; box-shadow: 3px 3px 0 var(--ink); }

/* --------------------------------------------------------------------------
   Projektansicht
   -------------------------------------------------------------------------- */
.overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: clamp(.5rem,2vw,1.5rem); }
.overlay[hidden] { display: none; }
.overlay-bg { position: absolute; inset: 0; background: rgba(20,23,28,.55); opacity: 0; transition: opacity .3s; }
.overlay.is-open .overlay-bg { opacity: 1; }
.overlay-sheet {
  position: relative; width: min(1140px,100%); max-height: min(93svh,880px);
  background: var(--paper); border: 1.5px solid var(--ink);
  box-shadow: 10px 10px 0 rgba(20,23,28,.25);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(14px); transition: opacity .3s, transform .35s var(--ease);
}
.overlay.is-open .overlay-sheet { opacity: 1; transform: none; }
.overlay-top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .5rem .7rem; background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
}
.overlay-close { color: var(--paper); font: inherit; letter-spacing: .12em; line-height: 1.4; padding: .1rem .3rem; border: 1px solid transparent; }
.overlay-close:focus-visible { outline-offset: 1px; }
.overlay-close:hover { color: var(--red); }
.overlay-body { display: flex; flex-direction: column; min-height: 0; }
.overlay-view { flex: 1; overflow-y: auto; overscroll-behavior: contain; background: #fff; border-bottom: 1.5px solid var(--ink); height: 40svh; }
.overlay-view img { width: 100%; }
.overlay-side { padding: 1.3rem 1.2rem 1.5rem; overflow-y: auto; }
.overlay-side .h3 { margin: .5rem 0 .1rem; }
.overlay-meta { font-family: var(--mono); font-size: .7rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.overlay-desc { margin-top: .9rem; font-size: .97rem; }
.overlay-hint { margin-top: .8rem; font-family: var(--mono); font-size: .68rem; line-height: 1.6; color: var(--ink-3); }
.overlay-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.overlay-nav { display: flex; gap: .6rem; margin-top: 1rem; }

/* --------------------------------------------------------------------------
   Einblenden: Linien zeichnen sich, Inhalte steigen minimal auf
   -------------------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: var(--d,0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
.sheethead-line { transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease) .1s; }
.sheethead.is-in .sheethead-line { transform: scaleX(1); }

/* ==========================================================================
   Ab Tablet
   ========================================================================== */
@media (min-width: 700px) {
  .header-meta { display: block; }
  .works { grid-template-columns: 1fr 1fr; }
  .quote-grid { grid-template-columns: 1fr 1fr; }
  .plan-steps { grid-template-columns: repeat(3,1fr); column-gap: 2rem; }
  .plan-step { border-bottom: 0; border-top: 0; }
  .figures { grid-template-columns: repeat(3,1fr); column-gap: 2.5rem; }
  .figure { border-top: 0; }
  .footer-grid { grid-template-columns: 1fr auto; align-items: start; }
  .gauge-row { grid-template-columns: 210px 1fr 74px; align-items: center; gap: 1rem; }
  .gauge-row .gauge-scale { grid-column: 2; }
  .site-footer { padding-bottom: 2.5rem; }
  .survey-intro { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .findings { grid-template-columns: 1fr 1fr; gap: 1rem 2rem; }

  /* Der Nachbau skaliert im breiteren Rahmen mit */
  .ns-hero { aspect-ratio: 16 / 7.2; }
  .ns-logo { font-size: 13px; }
  .ns-kicker { font-size: 9.5px; }
  .ns-claim { font-size: 25px; }
  .ns-cta { font-size: 11.5px; padding: 9px 18px; }
  .ns-next { padding: 18px 18px 26px; }
  .ns-next-h { font-size: 14px; }
  .ns-next-p { font-size: 11.5px; max-width: 54ch; }
  .ns-cookie { grid-template-columns: 1fr auto; align-items: center; gap: 14px; padding: 12px 16px; }
  .ns-cookie-txt { font-size: 11px; }
  .ns-cookie-btn { font-size: 10px; padding: 6px 12px; }
}

@media (min-width: 1000px) {
  :root { --rail: 62px; }
  .mobile-cta { display: none; }

  .rail {
    display: block; position: fixed; left: 0; top: 0; bottom: 0; width: 62px; z-index: 65;
    background: var(--paper); border-right: 1.5px solid var(--ink);
  }
  .rail::before {
    content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 9px;
    background-image: repeating-linear-gradient(180deg, var(--ink) 0 1px, transparent 1px 24px);
    opacity: .35;
  }
  .rail-pos {
    position: absolute; left: 0; right: 9px; top: 50%; transform: translateY(-50%);
    display: grid; gap: .5rem; justify-items: center;
    font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; color: var(--ink-3);
  }
  .rail-pos b { color: var(--blue-deep); font-weight: 600; font-size: .78rem; }
  .rail-label { writing-mode: vertical-rl; text-orientation: mixed; text-transform: uppercase; letter-spacing: .22em; }
  .rail-progress { position: absolute; left: 0; top: 0; width: 3px; background: var(--red); height: 0; }

  .markup-stage { grid-template-columns: 1fr 305px; gap: 2rem; }
  .findings { grid-template-columns: 1fr; gap: 1.15rem; }
  .sheet-window-film { aspect-ratio: 880 / 520; }
  .cover-grid { grid-template-columns: 1fr .97fr; align-items: end; }
  .cover-sheet { align-self: end; }
  .maker { grid-template-columns: 340px 1fr; gap: 3.5rem; }
  .overlay-body { flex-direction: row; }
  .overlay-view { height: auto; border-bottom: 0; border-right: 1.5px solid var(--ink); flex: 1.25; }
  .overlay-side { flex: .75; padding: 1.8rem 1.6rem; }
  .overlay-sheet { height: min(93svh,880px); }
}

/* ==========================================================================
   Reduzierte Bewegung
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .sheethead-line { transform: scaleX(1); }
  .ringed::after { transform: none; opacity: 1; }
  .mk { transform: scale(1); }
  .gauge-delta { opacity: 1; }
  .sig-wrap .sig, .sig-wrap.is-in .sig { clip-path: none; }
  .gauge-verdict { opacity: 1; }
}
