/* Heil Gerüstbau GmbH · heil.tab-log.cloud · Bold Industrial */

@font-face { font-family: "Anton"; src: url("../fonts/anton-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --grund: #1B1B1D;
  --rot-text: #FF453A;
  --panel: #232326;
  --anthrazit: #282828;
  --rot: #E60000;
  --rot-tief: #B50000;
  --text: #F4F4F2;
  --muted: #9BA0A6;
  --linie: #3A3A3E;
  --stahl: #AEB4BC;
  --heil-rot: #E60000;
  --heil-stahl: #AEB4BC;
  --topbar-h: 60px;
  --display: "Anton", "Arial Narrow", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--sans);
  background: var(--grund);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.98;
}
h2 { font-size: clamp(2.2rem, 7vw, 4.4rem); }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rot-text);
  display: block;
  margin-bottom: 0.9rem;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.section { padding: clamp(4.5rem, 10vw, 8rem) clamp(1.1rem, 5vw, 4rem); }
.inner { max-width: 1200px; margin: 0 auto; }

/* Riegel-Trennlinie (Signature) */
.riegel {
  height: 2px; background: var(--linie); position: relative; overflow: hidden;
}
.riegel::before {
  content: ""; position: absolute; inset: 0; width: 120px;
  background: var(--rot);
}

/* ---------- Topbar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) clamp(1rem, 4vw, 2.5rem) 0;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(27, 27, 29, 0.94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linie);
}
.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand img { width: 34px; height: 34px; border-radius: 50%; }
.brand .name { font-family: var(--display); font-size: 1.05rem; letter-spacing: 0.05em; text-transform: uppercase; }
.brand .name em { color: var(--rot); font-style: normal; }
.topbar-tel {
  font-family: var(--mono); font-size: 0.85rem; font-weight: 700;
  padding: 0.55rem 0.9rem; border: 1px solid var(--rot); color: var(--text);
  transition: background 0.2s;
}
.topbar-tel:hover { background: var(--rot); }

/* ---------- FAB (Mobil-Anruf) ---------- */
.fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 70; width: 58px; height: 58px; border-radius: 50%;
  background: var(--rot); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 22px rgba(230, 0, 0, 0.45);
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s;
}
.fab.sichtbar { opacity: 1; pointer-events: auto; transform: none; }
.fab svg { width: 26px; height: 26px; fill: #fff; }
@media (min-width: 1024px) { .fab { display: none; } }

/* ---------- Hero: Stangen-Reveal ---------- */
.hero { position: relative; background: var(--grund); }
.hero-buehne {
  min-height: 100vh; min-height: 100svh;
  padding-top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-foto {
  position: absolute; inset: 0; z-index: 1;
  opacity: 0; transform: scale(1.12);
}
.hero-foto img { width: 100%; height: 100%; object-fit: cover; }
.hero-foto::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,27,29,0.55) 0%, rgba(27,27,29,0.25) 45%, rgba(27,27,29,0.92) 100%);
}
.hero-plan {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--topbar-h) + 2rem) 1rem 9rem;
}
.hero-plan svg { width: min(1100px, 96%); height: auto; max-height: 78vh; }
@media (min-width: 1024px) {
  .hero-plan { justify-content: flex-end; padding-right: 3vw; }
  .hero-plan svg { width: min(920px, 60vw); max-height: 72vh; }
}
.hero-text {
  position: relative; z-index: 3;
  padding: 0 clamp(1.1rem, 5vw, 4rem) clamp(2.4rem, 6vh, 4.5rem);
}
.hero-vorname {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 0.8rem;
}
.hero h1 {
  font-size: clamp(3.2rem, 12.5vw, 9.5rem);
  color: var(--text);
  line-height: 1;
}
.hero h1 .zeile { display: block; overflow: hidden; padding-top: 0.14em; margin-top: -0.06em; }
.hero h1 .zeile > span { display: inline-block; }
.hero h1 em { color: var(--rot); font-style: normal; }
.hero-sub {
  max-width: 34rem; color: var(--muted); font-size: clamp(0.95rem, 2.6vw, 1.1rem);
  margin-top: 1.1rem;
}
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-cta-zeile { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-weight: 700; font-size: 0.92rem;
  padding: 0.95rem 1.5rem; border: 1px solid var(--rot);
  min-height: 48px;
  transition: background 0.2s, color 0.2s;
}
.btn-voll { background: var(--rot); color: #fff; }
.btn-voll:hover { background: var(--rot-tief); border-color: var(--rot-tief); }
.btn-line { color: var(--text); }
.btn-line:hover { background: var(--rot); }
.scroll-hinweis {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  z-index: 3; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- Vertrauensband ---------- */
.vertrauen { background: var(--panel); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.vertrauen .inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--linie);
  border: 1px solid var(--linie);
}
.fakt { background: var(--panel); padding: 1.6rem 1.2rem; }
.fakt .wert {
  font-family: var(--display); font-size: clamp(2.2rem, 6vw, 3.6rem);
  color: var(--text); line-height: 1;
}
.fakt .wert em { color: var(--rot); font-style: normal; }
.fakt .label {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--rot-text);
  display: block; margin: 0.55rem 0 0.3rem;
}
.fakt p { font-size: 0.85rem; color: var(--muted); }
@media (min-width: 900px) { .vertrauen .inner { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Leistungen: Panel-Deck ---------- */
.leistungen { position: relative; background: var(--grund); }
.leistungen-kopf { padding: clamp(4.5rem, 9vw, 7rem) clamp(1.1rem, 5vw, 4rem) 1.5rem; }
.deck-buehne {
  position: relative; height: 100vh; height: 100svh; overflow: hidden;
  padding-top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
}
.deck-panel {
  position: absolute; inset: 0; background: var(--grund);
  padding-top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px) + 1.2rem);
  display: grid; align-content: start; justify-items: stretch;
  grid-template-columns: 1fr; gap: 1rem;
  padding-left: clamp(1.1rem, 5vw, 4rem); padding-right: clamp(1.1rem, 5vw, 4rem);
  padding-bottom: 5.5rem;
}
.deck-panel .bild {
  position: relative; overflow: hidden; border: 1px solid var(--linie);
  aspect-ratio: 16 / 10; max-height: 30vh;
}
.deck-panel .beschr { font-size: 0.9rem; }
.deck-panel .bild img { width: 100%; height: 100%; object-fit: cover; }
.deck-panel .nummer {
  position: absolute; top: 10px; left: 12px; z-index: 2;
  font-family: var(--mono); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.2em; color: #fff; background: rgba(27,27,29,0.72);
  padding: 0.3rem 0.55rem;
}
.deck-panel .nummer em { color: var(--rot-text); font-style: normal; }
.deck-panel h3 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.7rem, 6vw, 3.2rem); line-height: 1;
}
.deck-panel .beschr { color: var(--muted); max-width: 32rem; font-size: 0.95rem; }
.deck-panel .material {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--stahl);
  border-left: 2px solid var(--rot); padding-left: 0.7rem; margin-top: 0.4rem;
}
.deck-fortschritt {
  position: absolute; right: clamp(1.1rem, 4vw, 2.5rem); bottom: 1.4rem; z-index: 5;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em;
  color: var(--muted);
}
.deck-fortschritt em { color: var(--rot-text); font-style: normal; }
@media (min-width: 1024px) {
  .deck-panel {
    grid-template-columns: 1fr minmax(0, 520px) minmax(0, 500px) 1fr;
    grid-template-areas: ". bild text .";
    align-content: center; align-items: center; gap: 3rem;
    padding-bottom: 2rem;
  }
  .deck-panel .bild { grid-area: bild; aspect-ratio: 4 / 3; max-height: calc(100vh - 320px); }
  .deck-panel .text { grid-area: text; }
  .deck-panel .beschr { font-size: 0.95rem; }
}

/* ---------- Verfahren: Baudoku-Scrub ---------- */
.verfahren { position: relative; background: var(--panel); }
.verfahren-buehne {
  height: 100vh; height: 100svh; overflow: hidden; position: relative;
  padding-top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
  display: grid; align-content: center; gap: 1.1rem;
  padding-left: clamp(1.1rem, 5vw, 4rem); padding-right: clamp(1.1rem, 5vw, 4rem);
  padding-bottom: 1.5rem;
}
.verfahren-medien {
  position: relative; overflow: hidden; border: 1px solid var(--linie);
  width: 100%; max-width: 1040px; margin: 0 auto;
  aspect-ratio: 16 / 9; max-height: 46vh;
}
.verfahren-medien img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
}
.verfahren-medien img:first-child { opacity: 1; }
.verfahren-medien figcaption {
  position: absolute; left: 12px; bottom: 12px; z-index: 3;
  font-family: var(--mono); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: #fff; background: rgba(27,27,29,0.78);
  padding: 0.35rem 0.6rem;
}
.schritte { max-width: 1040px; margin: 0 auto; width: 100%; position: relative; min-height: 7.5rem; }
.schritt { position: absolute; inset: 0; opacity: 0; }
.schritt:first-child { opacity: 1; }
.schritt .nr {
  font-family: var(--mono); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.2em;
  color: var(--rot-text);
}
.schritt h3 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.4rem, 4.5vw, 2.2rem); margin: 0.2rem 0 0.4rem;
}
.schritt p { color: var(--muted); max-width: 40rem; font-size: 0.92rem; }

/* ---------- Über uns ---------- */
.ueber { background: var(--grund); }
.ueber .inner { display: grid; gap: 2.5rem; }
.ueber-text p { color: var(--muted); margin-bottom: 1.1rem; max-width: 38rem; }
.ueber-text p strong { color: var(--text); font-weight: 600; }
.ueber-bilder { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-content: start; }
.ueber-bilder figure { position: relative; overflow: hidden; border: 1px solid var(--linie); }
.ueber-bilder figure:first-child { margin-top: 2.2rem; }
.ueber-bilder img { width: 100%; height: 100%; object-fit: cover; }
.ueber-bilder figcaption {
  position: absolute; left: 10px; bottom: 10px;
  font-family: var(--mono); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: #fff; background: rgba(27,27,29,0.78);
  padding: 0.3rem 0.5rem;
}
@media (min-width: 1024px) { .ueber .inner { grid-template-columns: 1.1fr 0.9fr; align-items: center; } }

/* ---------- Einzugsgebiet ---------- */
.gebiet { background: var(--panel); border-top: 1px solid var(--linie); }
.gebiet .inner { display: grid; gap: 2.5rem; }
.gebiet-text > p { color: var(--muted); max-width: 36rem; margin-bottom: 1.4rem; }
.orte { display: flex; flex-wrap: wrap; gap: 0.5rem; max-width: 36rem; }
.orte li {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.08em; padding: 0.45rem 0.75rem;
  border: 1px solid var(--linie); color: var(--text); background: var(--grund);
}
.orte li.heim { border-color: var(--rot); color: var(--rot); }
.gebiet-hinweis { margin-top: 1.3rem; font-size: 0.9rem; color: var(--muted); }
.gebiet-hinweis a { color: var(--text); border-bottom: 1px solid var(--rot); }
.karte-kachel {
  position: relative; border: 1px solid var(--linie); background: var(--grund);
  min-height: 320px; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 2rem 1.4rem; overflow: hidden;
}
.karte-kachel .logo-mini { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 1rem; }
.karte-kachel .adresse { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); margin: 0.4rem 0 1.2rem; line-height: 1.7; }
.karte-kachel iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.karte-datenschutz { font-size: 0.72rem; color: var(--muted); margin-top: 0.9rem; max-width: 22rem; margin-inline: auto; }
@media (min-width: 1024px) { .gebiet .inner { grid-template-columns: 1fr 1fr; align-items: start; } }

/* ---------- Kontakt ---------- */
.kontakt { background: var(--grund); position: relative; }
.kontakt h2 { font-size: clamp(2.6rem, 9vw, 6rem); }
.kontakt h2 em { color: var(--rot); font-style: normal; }
.kontakt-begleit { color: var(--muted); max-width: 34rem; margin-top: 1rem; }
.tel-riesig {
  display: inline-block; font-family: var(--mono); font-weight: 700;
  font-size: clamp(1.7rem, 7.5vw, 4.2rem); letter-spacing: 0.02em;
  color: var(--text); margin-top: 2rem; border-bottom: 3px solid var(--rot);
  padding-bottom: 0.3rem;
}
.tel-riesig:hover { color: var(--rot); }
.kontakt-wege { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.wa-btn { border-color: var(--linie); }
.wa-btn svg { width: 20px; height: 20px; fill: #25d366; }
.wa-btn:hover { background: var(--panel); }
.kontakt-raster { display: grid; gap: 3rem; margin-top: 3.5rem; }
.formular { display: grid; gap: 0.9rem; max-width: 34rem; }
.formular label {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  display: grid; gap: 0.4rem;
}
.formular input, .formular textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--text);
  background: var(--panel); border: 1px solid var(--linie); padding: 0.85rem 0.9rem;
  min-height: 48px;
}
.formular textarea { min-height: 120px; resize: vertical; }
.formular input:focus, .formular textarea:focus { outline: 2px solid var(--rot); outline-offset: 1px; }
.formular button {
  cursor: pointer; background: var(--rot); color: #fff; border: 0;
  font-family: var(--mono); font-weight: 700; font-size: 0.95rem;
  padding: 1rem 1.6rem; min-height: 50px; transition: background 0.2s;
}
.formular button:hover { background: var(--rot-tief); }
.qr-kasten {
  display: none; background: #fff; color: #1B1B1D;
  padding: 1.6rem; text-align: center; align-self: start; max-width: 260px;
}
.qr-kasten svg, .qr-kasten img { width: 180px; height: 180px; margin: 0 auto; }
.qr-kasten p { font-family: var(--mono); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 0.9rem; }
.bewertung { margin-top: 3.5rem; border-top: 1px solid var(--linie); padding-top: 1.8rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.sterne { display: flex; gap: 0.25rem; }
.sterne svg { width: 22px; height: 22px; fill: var(--rot); }
.bewertung .bz { font-family: var(--mono); font-size: 0.85rem; font-weight: 700; }
.bewertung a { color: var(--muted); font-size: 0.85rem; border-bottom: 1px solid var(--linie); }
.bewertung a:hover { color: var(--text); border-color: var(--rot); }
@media (min-width: 1024px) {
  .kontakt-raster { grid-template-columns: 1fr auto; }
  .qr-kasten { display: block; }
}

/* ---------- Footer ---------- */
footer {
  background: var(--anthrazit); border-top: 1px solid var(--linie);
  padding: 2.2rem clamp(1.1rem, 5vw, 4rem) calc(2.2rem + env(safe-area-inset-bottom, 0px));
  font-size: 0.85rem; color: var(--muted);
}
footer .inner { display: grid; gap: 1.1rem; }
footer .f-brand { display: flex; align-items: center; gap: 0.6rem; color: var(--text); font-family: var(--display); text-transform: uppercase; letter-spacing: 0.05em; }
footer .f-brand img { width: 30px; height: 30px; border-radius: 50%; }
footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
footer nav a { border-bottom: 1px solid transparent; }
footer nav a:hover { color: var(--text); border-color: var(--rot); }
.tablog-credit { font-size: 0.78rem; }
.tablog-credit a { color: #1e6fa7; font-weight: 600; }
.tablog-credit a:hover { color: #f99c00; }

/* ---------- Reduced Motion ---------- */
.reduced-motion .hero-foto { opacity: 1; transform: none; }
.reduced-motion .hero-plan { opacity: 0.18; }
.reduced-motion .hero h1 .zeile > span { transform: none !important; }
.reduced-motion .deck-buehne, .reduced-motion .verfahren-buehne { height: auto; padding-bottom: 3rem; }
.reduced-motion .deck-panel { position: relative; inset: auto; margin-bottom: 2rem; transform: none !important; }
.reduced-motion .verfahren-medien img { position: relative; opacity: 1; transform: none; display: none; }
.reduced-motion .verfahren-medien img:last-of-type { display: block; }
.reduced-motion .schritt { position: relative; opacity: 1; margin-bottom: 1.4rem; }
.reduced-motion .schritte { min-height: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
