/* Lüthi Bautechnik – Entwurf Seetalwebsites, 20.10.2026
   Idee: die Seite als Bautafel. Beton, Tafelweiss, Asphalt, ein Maschinen-Orange. */

:root {
  --beton: #E4E3DE;
  --tafel: #F6F6F3;
  --asphalt: #1D2226;
  --orange: #F05A1A;
  --orange-dunkel: #D94C10;

  --text-1: rgb(29 34 38 / 0.92);
  --text-2: rgb(29 34 38 / 0.68);
  --text-3: rgb(29 34 38 / 0.48);
  --linie: rgb(29 34 38 / 0.14);

  --hell-1: rgb(246 246 243 / 0.92);
  --hell-2: rgb(246 246 243 / 0.68);
  --hell-3: rgb(246 246 243 / 0.48);
  --hell-linie: rgb(246 246 243 / 0.14);

  --breit: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  /* Abstände: 8 · 16 · 24 · 40 · 64 · 104 */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 104px;
  --rand: 20px;
  --abschnitt: 64px;
  --kopf: 56px;
  --radius: 4px;

  --expo: cubic-bezier(0.19, 1, 0.22, 1);
}

@media (min-width: 900px) {
  :root { --rand: 40px; --abschnitt: 104px; --kopf: 72px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--kopf); }
body {
  margin: 0;
  background: var(--beton);
  color: var(--text-1);
  font-family: var(--breit);
  font-size: 17px;
  line-height: 1.5;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 900px) { body { font-size: 18px; } }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.rahmen { width: 100%; max-width: calc(1200px + 2 * var(--rand)); margin: 0 auto; padding: 0 var(--rand); }

/* ---------- Baufortschritt (Vorbild maben.com.au) ---------- */
.fortschritt {
  position: fixed; inset: 0 auto 0 0; width: 4px; z-index: 60;
  background: rgb(29 34 38 / 0.06);
  pointer-events: none;
}
.fortschritt span {
  display: block; height: 100%; background: var(--orange);
  transform-origin: 50% 0; transform: scaleY(0);
}
@media (min-width: 900px) { .fortschritt { width: 6px; } }

/* ---------- Kopf ---------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  height: var(--kopf);
  background: var(--tafel);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease-out;
}
.kopf.ist-gescrollt { border-bottom-color: var(--linie); }
.kopf__innen {
  height: 100%; max-width: calc(1200px + 2 * var(--rand)); margin: 0 auto; padding: 0 var(--rand);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
}
.kopf__logo img { width: 98px; height: auto; }
@media (min-width: 900px) { .kopf__logo img { width: 124px; } }
.kopf__nav { display: flex; align-items: center; gap: var(--s4); font-size: 15px; }
.kopf__nav a { text-decoration: none; color: var(--text-2); transition: color 150ms ease-out; }
.kopf__nav a:hover { color: var(--text-1); }
.kopf__nav a:not(.kopf__kontakt) { display: none; }
@media (min-width: 900px) { .kopf__nav a:not(.kopf__kontakt) { display: inline-flex; } }
.kopf__nav a { display: inline-flex; align-items: center; min-height: 44px; }
.kopf__kontakt { color: var(--text-1) !important; box-shadow: inset 0 -2px 0 var(--orange); min-height: 32px !important; padding: 6px 0; }

/* ---------- Einstieg ---------- */
.einstieg { position: relative; background: var(--beton); }
.einstieg__bild {
  position: relative; overflow: hidden;
  height: min(46svh, 420px);
  background: #6f7d55;
}
.einstieg__bild img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
}
.einstieg__bild figcaption {
  position: absolute; top: var(--s2); right: var(--s2);
  font-family: var(--mono); font-size: 11px; line-height: 1.4; letter-spacing: 0;
  color: var(--hell-1);
  background: rgb(29 34 38 / 0.62);
  padding: 4px var(--s1); border-radius: 2px;
}

.tafel {
  position: relative; z-index: 2;
  margin: calc(-1 * var(--s5)) var(--rand) 0 0;
  padding: var(--s3) var(--s3) var(--s3) var(--rand);
  background: var(--tafel);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.tafel__name {
  font-family: var(--breit);
  font-weight: 560;
  font-variation-settings: "wdth" 112;
  font-size: clamp(40px, 11.4vw, 60px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--asphalt);
  margin-bottom: var(--s3);
}
.zeile { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.zeile > span { display: block; }

.tafel__zeilen { border-top: 1px solid var(--linie); margin-bottom: var(--s3); }
.tafel__zeilen > div {
  display: grid; grid-template-columns: 96px 1fr; gap: var(--s2);
  padding: 10px 0; border-bottom: 1px solid var(--linie);
  font-size: 15px; line-height: 1.35;
}
.tafel__zeilen dt { color: var(--text-3); font-size: 13px; padding-top: 1px; }
.tafel__zeilen dd { color: var(--text-1); }

.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 var(--s3);
  background: var(--orange); color: #FFF8F4;
  font-weight: 560; font-size: 16px; text-decoration: none;
  border: 1.5px solid var(--orange);
  border-radius: 999px;
  transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
}
.knopf:hover { background: var(--orange-dunkel); border-color: var(--orange-dunkel); }
.tafel .knopf { width: 100%; }

@media (min-width: 900px) {
  .einstieg {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    height: calc(100svh - var(--kopf)); min-height: 640px; max-height: 1040px;
  }
  .einstieg__bild { grid-column: 2; grid-row: 1; height: 100%; }
  .einstieg__bild img { object-position: 50% 50%; }
  .einstieg__bild figcaption { top: auto; bottom: var(--s3); right: var(--s3); font-size: 12px; }
  .tafel {
    grid-column: 1; grid-row: 1; align-self: end;
    margin: 0 calc(-1 * var(--s5)) var(--s5) 0;
    padding: var(--s5) var(--s5) var(--s5) max(var(--rand), calc((100vw - 1200px) / 2));
    border-radius: 0 var(--radius) var(--radius) 0;
  }
  .tafel__name { font-size: clamp(64px, 6.6vw, 112px); margin-bottom: var(--s4); }
  .tafel__zeilen > div { grid-template-columns: 128px 1fr; font-size: 16px; padding: 12px 0; }
  .tafel__zeilen dt { font-size: 14px; }
  .tafel .knopf { width: auto; }
}

/* ---------- Abschnitte ---------- */
.abschnitt { padding: var(--abschnitt) 0; }
.titel {
  font-family: var(--breit);
  font-weight: 540;
  font-variation-settings: "wdth" 112;
  font-size: clamp(36px, 9vw, 88px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--asphalt);
  margin-bottom: var(--s3);
}
.einleitung { font-size: 20px; line-height: 1.4; max-width: 34ch; color: var(--text-1); margin-bottom: var(--s4); letter-spacing: -0.01em; }
@media (min-width: 900px) {
  .titel { margin-bottom: var(--s4); }
  .einleitung { font-size: 24px; margin-bottom: var(--s5); }
}

/* ---------- Leistungen ---------- */
.leistungen { background: var(--tafel); }
.leistungen__raster { display: grid; gap: var(--s4); }
.phasen { counter-reset: phase; border-top: 1px solid var(--linie); }
.phase { padding: var(--s3) 0; border-bottom: 1px solid var(--linie); display: grid; gap: var(--s1); }
.phase h3 {
  font-weight: 540; font-variation-settings: "wdth" 112;
  font-size: 26px; line-height: 1.1; letter-spacing: -0.02em; color: var(--asphalt);
}
.phase p { color: var(--text-2); max-width: 60ch; }
.phase .phase__kosten { font-family: var(--mono); font-size: 13px; color: var(--text-1); padding-top: var(--s1); }
.leistungen__bild { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; }
.leistungen__bild img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 900px) {
  .leistungen__raster { grid-template-columns: 1fr 1fr; gap: var(--s5); align-items: start; }
  .phase { grid-template-columns: 200px 1fr; column-gap: var(--s4); padding: var(--s4) 0; }
  .phase h3 { grid-row: span 2; font-size: 30px; }
  .leistungen__bild { position: sticky; top: calc(var(--kopf) + var(--s4)); aspect-ratio: 4 / 5; }
}

/* ---------- Baustellen ---------- */
.baustellen { background: var(--asphalt); color: var(--hell-1); position: relative; }
.baustellen .titel { color: var(--tafel); }
.baustellen .einleitung { color: var(--hell-2); max-width: 46ch; font-size: 18px; }
@media (min-width: 900px) { .baustellen .einleitung { font-size: 20px; } }

.filter { display: flex; gap: var(--s1); overflow-x: auto; margin: 0 calc(-1 * var(--rand)) var(--s4); padding: 0 var(--rand) 4px; scrollbar-width: none; }
.filter::-webkit-scrollbar { display: none; }
.filter button {
  flex: none; font: inherit; font-size: 14px; cursor: pointer;
  min-height: 40px; padding: 0 var(--s2);
  color: var(--hell-2); background: transparent;
  border: 1px solid var(--hell-linie); border-radius: 999px;
  transition: color 150ms ease-out, background-color 150ms ease-out, border-color 150ms ease-out;
}
.filter button:hover { color: var(--hell-1); border-color: var(--hell-3); }
.filter button[aria-pressed="true"] { background: var(--tafel); color: var(--asphalt); border-color: var(--tafel); }
.filter__zahl { font-family: var(--mono); font-size: 12px; opacity: 0.6; margin-left: 2px; }

.register__kopf { display: none; }
.register { border-top: 1px solid var(--hell-linie); }
.projekt { border-bottom: 1px solid var(--hell-linie); }
.projekt[hidden] { display: none; }

.projekt__zeile {
  width: 100%; font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left;
  display: grid; grid-template-columns: 64px 1fr 20px; gap: var(--s2); align-items: center;
  padding: var(--s2) 0;
}
.projekt__daumen { width: 64px; height: 48px; border-radius: 2px; overflow: hidden; background: rgb(246 246 243 / 0.06); }
.projekt__daumen img { width: 100%; height: 100%; object-fit: cover; }
.projekt__haupt { display: grid; gap: 2px; min-width: 0; }
.projekt__name { font-size: 16px; line-height: 1.3; color: var(--hell-1); font-weight: 500; }
.projekt__meta { font-family: var(--mono); font-size: 12px; color: var(--hell-3); }
.projekt__jahr, .projekt__ort, .projekt__mass { display: none; }
.projekt__plus { position: relative; width: 14px; height: 14px; justify-self: end; }
.projekt__plus::before, .projekt__plus::after {
  content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 1.5px; background: var(--hell-2);
  transition: transform 300ms var(--expo);
}
.projekt__plus::after { transform: rotate(90deg); }
.projekt.ist-offen .projekt__plus::after { transform: rotate(0deg); }

.projekt__detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 600ms var(--expo); }
.projekt.ist-offen .projekt__detail { grid-template-rows: 1fr; }
.projekt__detail > div { overflow: hidden; }
.projekt__innen { display: grid; gap: var(--s3); padding: var(--s1) 0 var(--s4); }
.projekt__bilder { display: flex; gap: var(--s1); overflow-x: auto; scroll-snap-type: x mandatory; margin-right: calc(-1 * var(--rand)); padding-right: var(--rand); scrollbar-width: none; }
.projekt__bilder::-webkit-scrollbar { display: none; }
.projekt__bilder img { flex: none; width: 78%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; scroll-snap-align: start; background: rgb(246 246 243 / 0.06); }
.projekt__rolle { font-size: 18px; color: var(--hell-1); letter-spacing: -0.01em; }
.projekt__punkte { display: grid; gap: var(--s1); color: var(--hell-2); font-size: 15px; max-width: 62ch; }
.projekt__punkte li { padding-left: var(--s2); position: relative; }
.projekt__punkte li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 6px; height: 1.5px; background: var(--orange); }
.projekt__tafel { border-top: 1px solid var(--hell-linie); }
.projekt__tafel > div { display: grid; grid-template-columns: 96px 1fr; gap: var(--s2); padding: 8px 0; border-bottom: 1px solid var(--hell-linie); font-size: 14px; }
.projekt__tafel dt { color: var(--hell-3); }
.projekt__tafel dd { color: var(--hell-1); }

.folgebild { display: none; }
.mehr {
  margin-top: var(--s3); width: 100%; min-height: 52px; font: inherit; font-size: 15px; cursor: pointer;
  color: var(--hell-1); background: transparent; border: 1px solid var(--hell-linie); border-radius: 999px;
  transition: border-color 150ms ease-out, background-color 150ms ease-out;
}
.mehr:hover { border-color: var(--hell-3); background: rgb(246 246 243 / 0.04); }
.mehr[hidden] { display: none; }
@media (min-width: 900px) { .mehr { width: auto; padding: 0 var(--s4); } }

@media (min-width: 900px) {
  .register__kopf {
    display: grid; grid-template-columns: 112px 1fr 200px 220px 20px; gap: var(--s3);
    font-family: var(--mono); font-size: 12px; color: var(--hell-3); padding-bottom: var(--s1);
  }
  .register__kopf::after { content: ""; }
  .projekt__zeile { grid-template-columns: 112px 1fr 200px 220px 20px; gap: var(--s3); padding: 22px 0; transition: opacity 200ms ease-out; }
  .projekt__daumen { display: none; }
  .projekt__haupt { display: contents; }
  .projekt__meta { display: none; }
  .projekt__jahr, .projekt__ort, .projekt__mass { display: block; }
  .projekt__jahr, .projekt__mass { font-family: var(--mono); font-size: 13px; color: var(--hell-3); }
  .projekt__jahr { order: -1; }
  .projekt__name { font-size: 20px; letter-spacing: -0.01em; }
  .projekt__ort { color: var(--hell-2); font-size: 16px; }
  .register.hat-fokus .projekt__zeile { opacity: 0.42; }
  .register.hat-fokus .projekt:hover .projekt__zeile,
  .register.hat-fokus .projekt.ist-offen .projekt__zeile { opacity: 1; }

  .projekt__innen { grid-template-columns: 7fr 5fr; column-gap: var(--s5); padding: var(--s1) 0 var(--s5); padding-left: calc(112px + var(--s3)); }
  .projekt__bilder { grid-row: span 3; margin-right: 0; padding-right: 0; display: grid; grid-template-columns: repeat(2, 1fr); overflow: visible; }
  .projekt__bilder img { width: 100%; }
  .projekt__bilder img:first-child { grid-column: span 2; }

  .folgebild {
    display: block; position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none;
    width: 360px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius);
    clip-path: inset(100% 0 0 0);
    transition: clip-path 600ms var(--expo);
  }
  .folgebild.ist-sichtbar { clip-path: inset(0 0 0 0); }
  .folgebild img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 900ms var(--expo); }
  .folgebild.ist-sichtbar img { transform: scale(1); }
}

/* ---------- Pascal ---------- */
.pascal__raster { display: grid; gap: var(--s4); }
.pascal__bild { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; background: #c9c6be; }
.pascal__bild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.pascal__text > p:not(.einleitung) { color: var(--text-2); max-width: 60ch; margin-bottom: var(--s4); }
.pascal .einleitung { margin-bottom: var(--s3); }

.werdegang { width: 100%; border-collapse: collapse; border-top: 1px solid var(--linie); margin-bottom: var(--s3); font-size: 15px; }
.werdegang th, .werdegang td { text-align: left; vertical-align: top; padding: 12px 0; border-bottom: 1px solid var(--linie); }
.werdegang th { font-family: var(--mono); font-weight: 400; font-size: 13px; color: var(--text-3); width: 104px; padding-top: 14px; padding-right: var(--s2); }
.werdegang td { color: var(--text-1); }
.werdegang td span { display: block; color: var(--text-3); font-size: 14px; }

.textlink { display: inline-block; padding-top: 10px; color: var(--text-1); text-decoration: none; border-bottom: 1.5px solid var(--orange); padding-bottom: 2px; transition: color 150ms ease-out; }
.textlink:hover { color: var(--orange-dunkel); }

@media (min-width: 900px) {
  .pascal__raster { grid-template-columns: 5fr 7fr; gap: var(--s6); align-items: start; }
  .pascal__bild { position: sticky; top: calc(var(--kopf) + var(--s4)); }
  .werdegang th { width: 136px; }
}

/* ---------- Kontakt ---------- */
.kontakt { position: relative; overflow: hidden; background: var(--asphalt); isolation: isolate; }
.kontakt__grund { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: 0.5; }
.kontakt .titel { color: var(--tafel); }
.kontakt__tafel {
  background: var(--tafel); border-radius: var(--radius);
  padding: var(--s4) var(--s3);
}
.kontakt__satz { font-size: 18px; line-height: 1.45; color: var(--text-2); max-width: 40ch; margin-bottom: var(--s3); }
.kontakt__nummer {
  display: block; text-decoration: none; color: var(--asphalt);
  font-weight: 540; font-variation-settings: "wdth" 118;
  font-size: clamp(30px, 9.2vw, 128px); line-height: 1; letter-spacing: -0.04em; white-space: nowrap;
  margin-bottom: var(--s4);
  font-feature-settings: "tnum" 1;
  transition: color 150ms ease-out;
}
.kontakt__nummer:hover { color: var(--orange-dunkel); }
.kontakt__zeilen dd a { display: inline-block; padding: 6px 0; margin: -6px 0; text-decoration: none; border-bottom: 1px solid var(--linie); }
.kontakt__knoepfe { display: grid; gap: var(--s1); }
.knopf--linie { background: transparent; color: var(--asphalt); border-color: var(--asphalt); }
.knopf--linie:hover { background: var(--asphalt); color: var(--tafel); border-color: var(--asphalt); }

@media (min-width: 900px) {
  .kontakt__tafel { padding: var(--s5); display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s5); }
  .kontakt__satz { grid-column: 1 / -1; font-size: 22px; }
  .kontakt__nummer { grid-column: 1 / -1; margin-bottom: var(--s5); }
  .kontakt__zeilen { margin-bottom: 0; }
  .kontakt__knoepfe { align-content: end; justify-content: start; grid-auto-flow: column; }
}

/* ---------- Fuss ---------- */
.fuss { background: var(--asphalt); color: var(--hell-2); padding: var(--s4) 0; font-size: 14px; }
.fuss__raster { display: grid; gap: var(--s2); }
.fuss a { color: var(--hell-1); display: inline-block; padding: 8px 0; }
@media (min-width: 900px) { .fuss__raster { grid-template-columns: 1fr auto; align-items: end; } }

/* ---------- Bewegung ---------- */
.js .zeile > span { transform: translateY(105%); transition: transform 1000ms var(--expo); }
.js .ist-da .zeile > span, .js .zeile.ist-da > span { transform: none; }
.js .tafel__name .zeile:nth-child(2) > span { transition-delay: 90ms; }

.js .aufdecken { clip-path: inset(100% 0 0 0); transition: clip-path 1000ms var(--expo); }
.js .aufdecken img { transform: scale(1.15); transition: transform 1200ms var(--expo); }
.js .aufdecken.ist-da { clip-path: inset(0 0 0 0); }
.js .aufdecken.ist-da img { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  .js .zeile > span, .js .aufdecken, .js .aufdecken img { transform: none !important; clip-path: none !important; transition: none !important; }
  .projekt__detail, .projekt__plus::before, .projekt__plus::after { transition: none; }
  .fortschritt { display: none; }
  .folgebild { display: none !important; }
}
