/* LEG GmbH Metallbau – Entwurf Seetalwebsites */
:root {
  --grund: #EDF1F4;      /* Stahlweiss */
  --grund-2: #E1E7EC;
  --tinte: #121B24;
  --blau: #0F3D63;       /* Preussischblau */
  --blau-tief: #0B2F4D;
  --hell: #EDF1F4;

  --t1: rgba(18, 27, 36, .92);
  --t2: rgba(18, 27, 36, .68);
  --t3: rgba(18, 27, 36, .50);
  --h1: rgba(237, 241, 244, .94);
  --h2: rgba(237, 241, 244, .74);
  --h3: rgba(237, 241, 244, .54);
  --linie: rgba(18, 27, 36, .14);
  --linie-hell: rgba(237, 241, 244, .2);

  --display: "Anybody", "Instrument Sans", system-ui, sans-serif;
  --text: "Instrument Sans", system-ui, sans-serif;

  --rand: 20px;
  --luft: 72px;
  --breite: 1200px;
  --radius: 4px;

  --expo: cubic-bezier(0.19, 1, 0.22, 1);
  --gross: cubic-bezier(0.32, 0.72, 0, 1);
}
@media (min-width: 900px) {
  :root { --rand: 40px; --luft: 128px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--grund);
  color: var(--t1);
  font: 400 17px/1.5 var(--text);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--blau); outline-offset: 3px; }
.kontakt :focus-visible, .einstieg :focus-visible { outline-color: var(--hell); }

.breite { max-width: calc(var(--breite) + 2 * var(--rand)); margin: 0 auto; padding: 0 var(--rand); }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px;
  background: var(--blau); color: var(--hell);
  border: 0; border-radius: 999px;
  font: 600 16px/1 var(--text); letter-spacing: 0;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease-out, transform .15s ease-out;
}
.knopf:hover { background: var(--blau-tief); }
.knopf:active { transform: scale(.98); }
.knopf-hell { background: var(--hell); color: var(--blau); }
.knopf-hell:hover { background: #fff; }
.knopf-klein { min-height: 40px; padding: 0 16px; font-size: 15px; }
.textlink {
  display: inline-block; padding: 8px 0;
  font-weight: 500; text-decoration: underline; text-underline-offset: 4px;
  text-decoration-thickness: 1px; color: var(--h1);
  transition: color .15s ease-out;
}
.textlink:hover { color: #fff; }

/* ---------- Kopf ---------- */
.kopf {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color .25s ease-out, box-shadow .25s ease-out;
}
.kopf-innen {
  max-width: calc(var(--breite) + 2 * var(--rand)); margin: 0 auto; padding: 0 var(--rand);
  height: 64px; display: flex; align-items: center; gap: 24px;
}
.kopf-name {
  font: 600 16px/1 var(--display); font-stretch: 130%;
  letter-spacing: -0.01em; text-decoration: none; color: var(--hell);
  margin-right: auto; white-space: nowrap; padding: 12px 0;
}
.kopf-name span { font-weight: 400; opacity: .8; }
.kopf-nav { display: none; gap: 24px; }
.kopf-nav a { color: var(--h1); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .15s ease-out; }
.kopf-nav a:hover { color: #fff; }
.kopf .knopf-klein { background: var(--hell); color: var(--blau); }
.kopf.fest { background: rgba(237, 241, 244, .92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--linie); }
.kopf.fest .kopf-name, .kopf.fest .kopf-nav a { color: var(--tinte); }
.kopf.fest .knopf-klein { background: var(--blau); color: var(--hell); }
@media (min-width: 900px) {
  .kopf-innen { height: 72px; }
  .kopf-nav { display: flex; }
  .kopf-name { font-size: 17px; }
}

/* ---------- Einstieg ---------- */
.einstieg { position: relative; background: var(--blau); color: var(--h1); min-height: 100svh; display: flex; flex-direction: column; }
.einstieg-foto { position: relative; height: 46svh; overflow: hidden; background: #071a2b; }
.einstieg-foto img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; object-position: 38% 62%; will-change: transform; }
.einstieg-foto::after { /* Kopf lesbar machen */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 96px;
  background: linear-gradient(rgba(7, 26, 43, .55), rgba(7, 26, 43, 0));
}
.einstieg-flaeche { position: relative; flex: 1; padding-bottom: 40px; }
.einstieg-raster { display: grid; gap: 24px; }

.wortmarke {
  font-family: var(--display); font-weight: 560; color: var(--hell);
  display: inline-grid; justify-self: start;
  margin-top: -0.5em; /* LEG sitzt auf der Naht */
  font-size: 31vw; line-height: .8; letter-spacing: -0.035em;
  position: relative; z-index: 2;
}
.wm-leg { font-stretch: 150%; display: block; }
.wm-leg .maske { padding-top: .06em; }
.wm-metallbau {
  display: block; justify-self: end;
  font-size: .29em; font-stretch: 125%; font-weight: 500; letter-spacing: -0.03em; line-height: 1;
  margin-top: .12em;
}
.wm-ort {
  display: block; justify-self: end;
  font: 500 20px/1.2 var(--text); letter-spacing: 0; color: var(--h2);
  margin-top: 8px;
}
.maske { display: block; overflow: hidden; }
.bs, .zeile { display: inline-block; }

.lead { font-size: 17px; line-height: 1.5; color: var(--h1); max-width: 34em; }
.einstieg-aktion { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 24px; }
.vertrauen { margin-top: 16px; font-size: 15px; color: var(--h2); }

@media (min-width: 900px) {
  .einstieg-foto { height: 58vh; }
  .einstieg-flaeche { padding-bottom: 64px; }
  .einstieg-raster { grid-template-columns: auto minmax(300px, 380px); justify-content: space-between; align-items: end; gap: 40px; }
  .wortmarke { font-size: min(20vw, 32vh); margin-top: -0.38em; align-self: start; }
  .wm-leg .maske { white-space: nowrap; }
  .wm-ort { font-size: 22px; }
  .einstieg-text { justify-self: end; padding-top: 40px; padding-bottom: 8px; }
  .einstieg-aktion { margin-top: 24px; }
  .lead { font-size: 18px; }
}

/* ---------- Titel ---------- */
.titel {
  font: 540 44px/0.95 var(--display); font-stretch: 140%;
  letter-spacing: -0.035em; color: var(--tinte);
}
.titel-hell { color: var(--hell); }
@media (min-width: 900px) { .titel { font-size: 96px; } }
.klein-titel { font: 600 15px/1.3 var(--text); color: var(--t2); margin-bottom: 16px; }

/* ---------- Leistungen ---------- */
.leistungen { padding: var(--luft) 0; }
.abschnitt-kopf { display: grid; gap: 24px; margin-bottom: 64px; }
.einleitung { color: var(--t2); max-width: 36em; }
@media (min-width: 900px) {
  .abschnitt-kopf { grid-template-columns: 1fr 1fr; align-items: end; margin-bottom: 104px; }
  .einleitung { justify-self: end; max-width: 30em; }
}

.kapitel { border-top: 1px solid var(--linie); padding: 40px 0 64px; display: grid; gap: 24px; }
.kapitel-titel {
  font: 520 30px/1 var(--display); font-stretch: 130%;
  letter-spacing: -0.03em; color: var(--tinte); margin-bottom: 16px;
}
.kapitel-text p { color: var(--t2); max-width: 34em; }
.liste { margin-top: 24px; border-top: 1px solid var(--linie); }
.liste li { padding: 8px 0; border-bottom: 1px solid var(--linie); font-size: 16px; color: var(--t1); }

@media (min-width: 900px) {
  .kapitel { grid-template-columns: 4fr 8fr; gap: 40px; padding: 40px 0 104px; }
  .kapitel-titel { font-size: 40px; }
  .kapitel-text { padding-top: 8px; }
}
@media (max-width: 899px) {
  /* Handy: Titel, dann gleich die Bilder, dann der Text */
  .kapitel-text { display: contents; }
  .kapitel .kapitel-titel { order: 1; margin-bottom: 0; }
  .abschnitt-kopf { margin-bottom: 40px; }
  .kapitel .reihe { order: 2; }
  .kapitel-text p, .kapitel-text .liste { order: 3; }
  .kapitel-text .liste { margin-top: 0; }
}

/* Bildreihen: eigene Bilder sind 600 px, darum nur klein */
.reihe { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--rand); margin: 0 calc(-1 * var(--rand)); padding: 0 var(--rand) 8px; scrollbar-width: none; }
.reihe::-webkit-scrollbar { display: none; }
.reihe .stueck { flex: 0 0 68vw; max-width: 300px; scroll-snap-align: start; }
@media (min-width: 900px) {
  .reihe { display: grid; overflow: visible; margin: 0; padding: 0; gap: 16px; }
  .reihe .stueck { max-width: none; }
  .reihe-5 { grid-template-columns: repeat(3, 1fr); }
  .reihe-3 { grid-template-columns: repeat(3, 1fr); }
  .reihe-2 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
  .reihe-5 { grid-template-columns: repeat(5, 1fr); grid-column: 1 / -1; }
}

.stueck { position: relative; align-self: start; }
.bild { position: relative; overflow: hidden; aspect-ratio: 1; background: var(--grund-2); border-radius: var(--radius); }
.bild img { width: 100%; height: 100%; object-fit: cover; }

/* Typenschild */
.schild {
  position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px);
  background: var(--blau); color: var(--hell);
  border-radius: 2px; padding: 8px 24px 8px 16px;
  display: grid; gap: 0;
  font-size: 13px; line-height: 1.3;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset;
}
.schild b { font: 600 14px/1.25 var(--display); font-stretch: 120%; letter-spacing: -0.01em; }
.schild span { color: var(--h2); }
.schild::before, .schild::after { /* Nieten */
  content: ""; position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: rgba(237, 241, 244, .55); right: 8px;
}
.schild::before { top: 8px; }
.schild::after { bottom: 8px; }

/* Planung: Blaupause */
.planung {
  margin-top: 40px; background: var(--blau); color: var(--h1);
  border-radius: var(--radius); padding: 40px 24px; display: grid; gap: 40px;
  background-image:
    linear-gradient(rgba(237,241,244,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237,241,244,.07) 1px, transparent 1px);
  background-size: 24px 24px;
  overflow: hidden;
}
.planung .kapitel-titel { color: var(--hell); }
.planung p { color: var(--h2); max-width: 30em; }
.plan-zeichnung { color: rgba(237, 241, 244, .85); }
.plan-zeichnung svg { width: 100%; height: auto; }
.plan-zeichnung text { font-family: var(--text); font-size: 17px; letter-spacing: .01em; }
.kurs-mail { flex-basis: 100%; font-size: 15px; color: var(--t2); }
.kurs-mail a { display: inline-block; padding: 6px 0; color: var(--blau); text-underline-offset: 3px; }
@media (min-width: 900px) {
  .planung { grid-template-columns: 4fr 8fr; padding: 64px 40px; align-items: center; }
}

/* ---------- Steinvogel-Kurs ---------- */
.kurs { background: var(--grund-2); }
.kurs-band { position: relative; overflow: hidden; background: #08131d; min-height: 64svh; display: flex; align-items: flex-end; }
.kurs-band img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; object-position: 60% 50%; opacity: .78; will-change: transform; }
.kurs-band-text { position: relative; width: 100%; padding-top: 104px; padding-bottom: 64px; }
.kurs-zitat {
  margin-top: 24px; max-width: 18em;
  font: 460 26px/1.15 var(--display); font-stretch: 112%; letter-spacing: -0.02em; color: var(--h1);
}
@media (min-width: 900px) {
  .kurs-band { min-height: 78vh; }
  .kurs-band-text { padding-bottom: 104px; }
  .kurs-zitat { font-size: 44px; }
}

.kurs-inhalt { padding-top: 64px; padding-bottom: var(--luft); display: grid; gap: 40px; }
.kurs-bild { max-width: 300px; }
.kurs-bild .bild { aspect-ratio: 1; }
.gross { font-size: 20px; line-height: 1.45; color: var(--t1); max-width: 30em; }
.mitbringen { margin-top: 40px; max-width: 420px; }
.mitbringen ul { border-top: 1px solid var(--linie); }
.mitbringen li { border-bottom: 1px solid var(--linie); }
.mitbringen label { display: flex; align-items: center; gap: 16px; min-height: 52px; cursor: pointer; font-size: 18px; }
.mitbringen input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kaestchen {
  flex: 0 0 24px; height: 24px; border: 1.5px solid var(--blau); border-radius: 2px; position: relative;
  transition: background-color .15s ease-out;
}
.kaestchen::after {
  content: ""; position: absolute; left: 7px; top: 2px; width: 6px; height: 12px;
  border: solid var(--hell); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0);
  transition: transform .2s var(--expo);
}
.mitbringen input:checked + .kaestchen { background: var(--blau); }
.mitbringen input:checked + .kaestchen::after { transform: rotate(45deg) scale(1); }
.mitbringen input:focus-visible + .kaestchen { outline: 2px solid var(--blau); outline-offset: 3px; }
.mitbringen-stand { margin-top: 16px; font-size: 15px; color: var(--t2); min-height: 1.5em; }
.mitbringen-stand.fertig { color: var(--blau); font-weight: 600; }
.kurs-aktion { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.platzhalter { font-size: 15px; color: var(--t3); font-style: normal; }
.platzhalter::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border: 1px dashed currentColor; vertical-align: 1px; }
@media (min-width: 900px) {
  .kurs-inhalt { grid-template-columns: 5fr 7fr; gap: 64px; padding-top: 104px; align-items: start; }
  .kurs-bild { max-width: 400px; justify-self: start; }
  .gross { font-size: 24px; }
}

/* ---------- Firma ---------- */
.firma { padding: var(--luft) 0; }
.firma-raster { display: grid; gap: 64px; }
.jahre { margin-top: 40px; border-top: 1px solid var(--linie); }
.jahre li { display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--linie); }
.jahr { font: 540 20px/1.3 var(--display); font-stretch: 125%; color: var(--blau); font-variant-numeric: tabular-nums; }
.personen { margin-top: 24px; color: var(--t2); }
.stelle { margin-top: 40px; padding: 24px; border: 1px solid var(--linie); border-radius: var(--radius); max-width: 460px; }
.stelle p + p { margin-top: 8px; }
.firma-bilder { display: grid; gap: 16px; align-content: start; max-width: 420px; }
@media (min-width: 900px) {
  .firma-raster { grid-template-columns: 7fr 5fr; gap: 104px; align-items: start; }
  .jahre li { grid-template-columns: 120px 1fr; }
  .jahr { font-size: 24px; }
  .firma-bilder { padding-top: 104px; }
}

/* ---------- Kontakt ---------- */
.kontakt { background: var(--blau); color: var(--h1); padding: var(--luft) 0; }
.kontakt-raster { display: grid; gap: 64px; }
.kontakt-satz { margin-top: 24px; color: var(--h2); max-width: 26em; font-size: 18px; }
.kontakt address { margin-top: 40px; font-style: normal; font-size: 18px; line-height: 1.55; color: var(--h1); }
.kontakt address b { font-weight: 600; }
.kontakt address a { display: inline-block; padding: 6px 0; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.kontakt-hinweis { margin-top: 16px; color: var(--h3); font-size: 15px; }

.formular { display: grid; gap: 24px; }
.feld { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.feld > span, .feld legend { font-size: 15px; font-weight: 600; color: var(--h2); padding: 0; margin-bottom: 8px; }
.feld > span { margin-bottom: 0; }
.feld input, .feld textarea {
  width: 100%; font: 400 17px/1.4 var(--text); color: var(--hell);
  background: rgba(237, 241, 244, .06); border: 1px solid var(--linie-hell); border-radius: var(--radius);
  padding: 16px; transition: border-color .15s ease-out, background-color .15s ease-out;
}
.feld input::placeholder, .feld textarea::placeholder { color: rgba(237, 241, 244, .4); }
.feld input:focus, .feld textarea:focus { outline: none; border-color: var(--hell); background: rgba(237, 241, 244, .1); }
.feld textarea { resize: vertical; min-height: 104px; }
.feld-reihe { display: grid; gap: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--linie-hell); border-radius: 999px; font-size: 15px; color: var(--h1);
  transition: background-color .15s ease-out, color .15s ease-out, border-color .15s ease-out;
}
.chips span:hover { border-color: var(--hell); }
.chips input:checked + span { background: var(--hell); color: var(--blau); border-color: var(--hell); }
.chips input:focus-visible + span { outline: 2px solid var(--hell); outline-offset: 2px; }
.formular .knopf { justify-self: start; }
.danke { padding: 16px; border: 1px solid var(--linie-hell); border-radius: var(--radius); color: var(--h1); }
@media (min-width: 900px) {
  .kontakt-raster { grid-template-columns: 5fr 7fr; gap: 104px; }
  .feld-reihe { grid-template-columns: 1fr 1fr; }
}

/* ---------- Fuss ---------- */
.fuss { background: var(--tinte); color: var(--h2); padding: 64px 0 40px; font-size: 15px; }
.fuss-name { font: 540 32px/1 var(--display); font-stretch: 140%; letter-spacing: -0.03em; color: var(--hell); margin-bottom: 40px; }
.fuss-zeilen { display: grid; gap: 8px; }
.fuss a { display: inline-block; padding: 6px 0; color: var(--h1); text-underline-offset: 3px; }
@media (min-width: 900px) { .fuss-name { font-size: 64px; } }

/* ---------- Bewegung ---------- */
.js .wortmarke .bs, .js .wortmarke .zeile { transform: translateY(105%); }
.js .geladen .wortmarke .bs, .js .geladen .wortmarke .zeile { transform: none; transition: transform 1s var(--expo); }
.js .geladen .wortmarke .bs:nth-child(2) { transition-delay: .09s; }
.js .geladen .wortmarke .bs:nth-child(3) { transition-delay: .18s; }
.js .geladen .wm-metallbau .zeile { transition-delay: .3s; }
.js .geladen .wm-ort .zeile { transition-delay: .4s; }

.js .bild.zu { clip-path: inset(100% 0 0 0); }
.js .bild.zu img { transform: scale(1.15); }
.js .bild { transition: clip-path .9s var(--expo); }
.js .bild img { transition: transform 1.2s var(--expo); }
.js .bild.offen { clip-path: inset(0 0 0 0); }
.js .bild.offen img { transform: none; }
.js .bild + .schild { transition: opacity .4s ease-out .45s, transform .5s var(--expo) .45s; }
.js .bild.zu + .schild { opacity: 0; transform: translateY(8px); }
.js .plan-zeichnung.zu { clip-path: inset(0 100% 0 0); }
.js .plan-zeichnung { transition: clip-path 1.4s var(--expo); }
.js .plan-zeichnung.offen { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  .js .wortmarke .bs, .js .wortmarke .zeile { transform: none !important; transition: none !important; }
  .js .bild.zu, .js .bild + .schild { transition: opacity .4s ease-out .45s, transform .5s var(--expo) .45s; }
.js .bild.zu + .schild { opacity: 0; transform: translateY(8px); }
.js .plan-zeichnung.zu { clip-path: none !important; }
  .js .bild.zu img { transform: none !important; }
  .js .bild, .js .bild img, .js .plan-zeichnung, .js .bild + .schild { transition: none !important; }
  .js .bild.zu + .schild { opacity: 1 !important; transform: none !important; }
  [data-parallax] { transform: none !important; }
}
