/* =========================================================
   HPK GmbH – Chromstahl & Rohrleitungsbau
   Hauptversion (überarbeitetes Layout und Design).
   Die frühere Version 1 liegt als Archiv in version-1/.
   ========================================================= */

/* ---------- Schriften (lokal) ---------- */
@font-face {
  font-family: "Figtree";
  src: url("../assets/fonts/figtree-variable.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../assets/fonts/hanken-grotesk-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../assets/fonts/barlow-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../assets/fonts/barlow-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* ---------- Farben & Grundwerte ---------- */
:root {
  --navy: #1e2d3b;
  --navy-deep: #141f2a;
  --navy-soft: #26384a;
  --blue: #0400bb;
  --blue-bright: #2924f7;
  --ink: #1e2d3b;
  --text: #3b3a3a;
  --muted: #5f6b78;
  --line: #e2e6eb;
  --soft: #f3f5f7;
  --white: #fff;
  --on-dark: #c9d3de;

  --font-head: "Figtree", "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-label: "Barlow", "DIN Next", "Segoe UI", sans-serif;

  --header-h: 107px;
  --wrap: 1200px;
  --gutter: 32px;
  --section: 112px;
  --shadow: 0 22px 44px -22px rgba(20, 31, 42, .45);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-weight: 350;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}
main { flex: 1 0 auto; }

img,
video { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { margin: 0; font-family: var(--font-head); font-weight: 700; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; }
strong, b { font-weight: 700; }

:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--white);
  color: var(--blue);
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.icon { display: block; flex: none; }

/* =========================================================
   Kopfzeile (wie Version 1)
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--navy);
  transition: box-shadow .3s, transform .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(0, 0, 0, .25); }
/* beim Runterscrollen ausblenden, beim Hochscrollen zeigen (Klasse setzt js/main.js) */
.site-header.is-hidden { transform: translateY(-100%); box-shadow: none; }

/* Logo-PNG 3169 × 108 px, «hpk»-Zeichen bei x ≈ 440 px */
.logo-band {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.logo-band img {
  position: absolute;
  top: 14px;
  left: calc(32px - 318px);
  height: 78px;
  width: auto;
  max-width: none;
}
.logo-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 440px;
  height: 100%;
}

/* mittig zwischen Logostreifen (35 px) und Unterkante (107 px) */
.main-nav {
  position: absolute;
  right: 32px;
  bottom: 15px;
}
.main-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav a {
  display: block;
  padding: 0 clamp(10px, 1.1vw, 18px);
  line-height: 42px;
  font-family: var(--font-label);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  white-space: nowrap;
  transition: background-color .2s;
}
.main-nav a:hover { background: rgba(255, 255, 255, .1); }
.main-nav a.is-active { background: var(--blue); }

.nav-toggle {
  display: none;
  position: absolute;
  top: 35px;          /* mittig zwischen Logostreifen (29 px) und Unterkante (84 px) */
  right: 12px;
  width: 44px;
  height: 44px;
  padding: 11px 9px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 3px;
  margin-bottom: 6px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle span:last-child { margin-bottom: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* =========================================================
   Bausteine
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  border: 0;
  background: var(--blue);
  color: var(--white);
  font: 700 16px/1 var(--font-head);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.btn:hover { background: var(--blue-bright); }
.btn .icon { transition: transform .2s; }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn--ghost {
  background: transparent;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85);
}
.btn--ghost:hover { background: var(--white); color: var(--navy); }
.btn--light { background: var(--white); color: var(--blue); }
.btn--light:hover { background: var(--soft); }

/* Überzeile mit Balken */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font: 600 14px/1.2 var(--font-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 36px;
  height: 5px;
  background: currentColor;
}
.is-dark .eyebrow { color: var(--on-dark); }
.is-dark .eyebrow::before { background: var(--blue-bright); }

.section { padding: var(--section) 0; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--navy); color: var(--white); }

.h2 {
  margin-top: 18px;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--ink);
}
.is-dark .h2 { color: var(--white); }

/* Kopf einer Sektion: Titel links, Einleitung rechts */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  align-items: end;
  gap: 24px 64px;
  margin-bottom: 56px;
}
.sec-head > p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
}
.is-dark .sec-head > p { color: var(--on-dark); }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 14px/1 var(--font-label);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.link-more .icon { transition: transform .25s; }

/* =========================================================
   Hero
   ========================================================= */
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(560px, calc(100svh - var(--header-h)), 820px);
  overflow: hidden;
  background: var(--navy) url("../assets/img/hero-poster.jpg") center / cover;
  color: var(--white);
}
/* links dunkel für den Text, rechts bleibt das Video sichtbar */
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 31, 42, .94) 0%, rgba(20, 31, 42, .78) 38%, rgba(20, 31, 42, .25) 72%, rgba(20, 31, 42, .1) 100%),
    linear-gradient(0deg, rgba(14, 22, 30, .7) 0%, rgba(14, 22, 30, 0) 35%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 64px;
  padding-bottom: 64px;
}
.hero__content { max-width: 880px; }
.hero h1 {
  margin-top: 22px;
  font-size: clamp(38px, 4.5vw, 64px);
  line-height: 1.04;
  letter-spacing: -.01em;
}
.hero__lead {
  max-width: 560px;
  margin-top: 24px;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6;
  color: #dbe2ea;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero__facts {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, .18);
  background: rgba(14, 22, 30, .45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hero__facts .wrap { display: flex; }
.hero__facts ul {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero__facts li {
  padding: 20px 24px 22px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--on-dark);
}
.hero__facts li:first-child { padding-left: 0; }
.hero__facts li + li { border-left: 1px solid rgba(255, 255, 255, .18); }
.hero__facts strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-head);
  font-size: 18px;
  color: var(--white);
}

/* Scroll-Pfeil als eigene Zelle am Ende der Faktenleiste – wächst mit der Leiste mit */
.hero__scroll {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  border-left: 1px solid rgba(255, 255, 255, .18);
  color: var(--white);
  opacity: .8;
  transition: opacity .2s, background-color .2s;
}
.hero__scroll svg { animation: bob 2.4s ease-in-out infinite; }
.hero__scroll:hover { opacity: 1; background: rgba(255, 255, 255, .06); }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

.js .hero__content > * { animation: heroIn .8s ease both; }
.js .hero__content > :nth-child(2) { animation-delay: .1s; }
.js .hero__content > :nth-child(3) { animation-delay: .2s; }
.js .hero__content > :nth-child(4) { animation-delay: .3s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* =========================================================
   Leistungen
   ========================================================= */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform .3s, box-shadow .3s;
}
.service::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  z-index: 1;
  width: 0;
  height: 5px;
  background: var(--blue);
  transition: width .4s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service:hover::before { width: calc(100% + 2px); }
.service__img { overflow: hidden; }
.service__img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .6s ease;
}
.service:hover .service__img img { transform: scale(1.04); }
.service__body { padding: 28px 28px 32px; }
.service__num {
  font: 600 14px/1 var(--font-label);
  letter-spacing: .14em;
  color: var(--blue);
}
.service h3 {
  margin-top: 10px;
  font-size: 24px;
  color: var(--ink);
}
.service p {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.65;
}

/* =========================================================
   Über uns
   ========================================================= */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 80px;
}
.about__media { position: relative; }
/* versetzter blauer Block – Anklang an die Teamkarten aus Version 1 */
.about__media::before {
  content: "";
  position: absolute;
  left: -24px;
  bottom: -24px;
  width: 55%;
  height: 60%;
  background: var(--blue);
}
.about__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #000 url("../assets/img/about-poster.jpg") center / cover;
}
/* das Video hat einen dunklen Rahmen – leicht hineinzoomen, damit die Fotos füllen */
.about__frame .bg-video { transform: scale(1.62); }
.about__text .h2 + p { margin-top: 28px; }
.about__text p:not(.eyebrow) {
  font-size: 17px;
  line-height: 1.7;
}
.about__text p + p { margin-top: 1em; }

/* =========================================================
   Zahlen
   ========================================================= */
.stats {
  padding: 64px 0;
  background: var(--blue);
  color: var(--white);
}
.stats__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}
.stats__list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 4px 16px;
}
.stats__list li + li { border-left: 1px solid rgba(255, 255, 255, .35); }
.stats__list strong {
  font: 800 clamp(44px, 5vw, 68px)/1 var(--font-head);
  font-variant-numeric: tabular-nums;
}
.stats__list span {
  font: 600 14px/1.3 var(--font-label);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
}

/* =========================================================
   Tätigkeiten (Kacheln)
   ========================================================= */
.fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.field-card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
}
.field-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.field-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 31, 42, 0) 30%, rgba(20, 31, 42, .9) 100%);
}
.field-card::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: 0;
  height: 5px;
  background: var(--blue-bright);
  transition: width .4s ease;
}
.field-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 32px 32px 30px;
}
.field-card h3 { font-size: clamp(22px, 2.2vw, 28px); }
.field-card p {
  max-width: 480px;
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.55;
  color: #dbe2ea;
}
.field-card .link-more { margin-top: 16px; }
.field-card:hover img { transform: scale(1.05); }
.field-card:hover::before { width: 100%; }
.field-card:hover .link-more .icon { transform: translateX(4px); }

/* =========================================================
   Aufruf «Wenn es eilt»
   ========================================================= */
.cta {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
  background: var(--navy-deep) url("../assets/img/hero-poster.jpg") center / cover;
  color: var(--white);
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 0, 187, .94) 0%, rgba(4, 0, 187, .8) 55%, rgba(20, 31, 42, .85) 100%);
}
.cta__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta h2 {
  max-width: 640px;
  font-size: clamp(26px, 2.8vw, 38px);
}
.cta p {
  margin-top: 10px;
  font-size: 17px;
  color: rgba(255, 255, 255, .85);
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* =========================================================
   Gitterkabelrinnen
   ========================================================= */
.cables {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: 64px;
}
.cables__intro {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}
.cables__intro p:not(.eyebrow) {
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--on-dark);
}
.cables__intro .note {
  padding-left: 16px;
  border-left: 3px solid var(--blue-bright);
  color: var(--white);
}
.cables__intro .btn { margin-top: 32px; }

.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.product {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, .08);
  background: var(--navy-soft);
  color: var(--white);
  text-decoration: none;
  transition: transform .3s, border-color .3s;
}
.product:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .3); }
.product__img {
  display: flex;
  justify-content: center;
  padding: 28px 0;
  background: linear-gradient(180deg, #2d4157, #22344a);
}
.product__img img {
  width: 128px;
  aspect-ratio: 163 / 230;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .4);
}
.product__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px 24px 24px;
}
.product h3 { font-size: 19px; }
.product p {
  flex: 1;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--on-dark);
}
.product .link-more { margin-top: 18px; font-size: 13px; }
.product:hover .link-more .icon { transform: translateY(-2px); }

/* =========================================================
   Team
   ========================================================= */
.team {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.member__photo {
  position: relative;
  overflow: hidden;
  background: var(--soft);
}
.member__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform .6s ease;
}
.member__photo::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 6px;
  background: var(--blue);
  transition: width .4s ease;
}
.member:hover .member__photo::after { width: 100%; }
.member:hover .member__photo img { transform: scale(1.03); }
.member h3 {
  margin-top: 18px;
  font-size: 19px;
  color: var(--ink);
}
.member p {
  margin-top: 4px;
  font-size: 15px;
  color: var(--muted);
}

/* =========================================================
   Kontakt
   ========================================================= */
/* beide Spalten gleich hoch: Karriere-Box schliesst unten bündig mit dem Formular ab */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: stretch;
  gap: 56px;
}
.contact__info {
  display: flex;
  flex-direction: column;
}
.info-list {
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}
.info {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.info:first-child { padding-top: 0; }
.info__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--blue);
  color: var(--white);
}
.info h3 {
  font: 600 13px/1.3 var(--font-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.info p {
  margin-top: 4px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
}
.info a { text-decoration: none; }
.info a:hover { color: var(--blue); text-decoration: underline; }

.career {
  margin-top: auto;
  padding: 28px 28px 30px;
  background: var(--navy);
  color: var(--white);
}
.career h3 { font-size: 22px; }
.career p {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--on-dark);
}
.career .link-more { margin-top: 16px; color: var(--white); text-decoration: none; }
.career .link-more:hover .icon { transform: translateX(4px); }

.form-card {
  padding: 40px;
  border-top: 5px solid var(--blue);
  background: var(--white);
  box-shadow: var(--shadow);
}
.form-card h3 { font-size: 26px; color: var(--ink); }
.form-card > p { margin-top: 8px; color: var(--muted); }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
  margin-top: 28px;
}
.field { display: block; }
.field--full { grid-column: 1 / -1; }
.field span {
  display: block;
  margin-bottom: 8px;
  font: 600 13px/1.2 var(--font-label);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
}
.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cfd6dd;
  border-radius: 0;
  background: var(--soft);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(4, 0, 187, .15);
}
.field [aria-invalid="true"] { border-color: #c62828; }
.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}
.form-status {
  flex: 1 1 240px;
  min-height: 1.4em;
  font-size: 15px;
}
.form-status.is-error { color: #c62828; }
.form-status.is-success { color: #1b7f3b; }

/* Spam-Falle: für Menschen unsichtbar */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.map {
  position: relative;
  height: 420px;
  background: var(--blue);
}
.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) invert(1) contrast(1.2);
}
.map::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--blue);
  mix-blend-mode: screen;
  pointer-events: none;
}

/* =========================================================
   Fusszeile
   ========================================================= */
.site-footer {
  border-top: 5px solid var(--blue);
  background: var(--navy-deep);
  color: var(--on-dark);
  font-size: 15px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  /* nur oben/unten – links/rechts kommt der Seitenabstand von .wrap */
  padding-top: 72px;
  padding-bottom: 56px;
}
.footer__brand strong {
  display: block;
  font: 800 24px/1.2 var(--font-head);
  color: var(--white);
}
.footer__brand span {
  display: block;
  margin-top: 4px;
  font: 600 13px/1.3 var(--font-label);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.footer__brand p { margin-top: 18px; max-width: 320px; line-height: 1.6; }
.site-footer h3 {
  margin-bottom: 16px;
  font: 600 13px/1.3 var(--font-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
}
.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer__bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
  font-size: 14px;
}
/* Trennlinie nur so breit wie der Inhalt */
.footer__bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.social { display: flex; gap: 10px; }
.site-footer .social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  transition: background-color .2s;
}
.site-footer .social a:hover { background: var(--blue); text-decoration: none; }

/* =========================================================
   Unterseiten
   ========================================================= */
.page-hero {
  position: relative;
  padding: 96px 0 84px;
  overflow: hidden;
  background-color: var(--navy);
  background-position: center;
  background-size: cover;
  color: var(--white);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 31, 42, .95) 0%, rgba(20, 31, 42, .82) 45%, rgba(20, 31, 42, .45) 100%);
}
.page-hero .wrap { position: relative; }
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  font: 600 13px/1.3 var(--font-label);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-dark);
}
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--white); }
.page-hero h1 {
  margin-top: 20px;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -.01em;
}
.page-hero .lead {
  max-width: 660px;
  margin-top: 22px;
  font-size: 19px;
  line-height: 1.6;
  color: #dbe2ea;
}

.detail {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: 64px;
}
.detail__text p { font-size: 17px; line-height: 1.7; }
.detail__text p + p { margin-top: 1em; }
.aside-cta {
  margin-top: 40px;
  padding: 28px;
  border-left: 5px solid var(--blue);
  background: var(--soft);
}
.aside-cta h3 { font-size: 21px; color: var(--ink); }
.aside-cta p { margin-top: 8px; font-size: 16px; color: var(--muted); }
.aside-cta .btn { margin-top: 20px; }
.aside-cta .tel {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.aside-cta .tel:hover { color: var(--blue); }

.slideshow__stage {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  touch-action: pan-y;
}
.slideshow__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  cursor: zoom-in;
  transition: opacity .25s;
}
.slideshow__image.is-loading { opacity: .4; }
.slideshow__nav {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  padding: 0;
  border: 0;
  background: rgba(20, 31, 42, .55);
  color: var(--white);
  cursor: pointer;
  transition: background-color .2s;
}
.slideshow__nav:hover { background: var(--blue); }
.slideshow__nav svg { display: block; margin: 0 auto; }
.slideshow__nav--prev { left: 0; }
.slideshow__nav--next { right: 0; }
.slideshow__count {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 6px 12px;
  background: var(--blue);
  color: var(--white);
  font: 600 13px/1.2 var(--font-label);
  letter-spacing: .1em;
}
.slideshow__thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.slideshow__thumbs button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  opacity: .55;
  transition: opacity .2s;
}
.slideshow__thumbs button:hover,
.slideshow__thumbs button.is-active { opacity: 1; }
.slideshow__thumbs button.is-active { outline: 3px solid var(--blue); outline-offset: -3px; }
.slideshow__thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.lightbox {
  max-width: min(92vw, 1100px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(14, 22, 30, .9); }
.lightbox img {
  max-width: 100%;
  max-height: 88vh;
  margin: 0 auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}
.lightbox__close {
  position: absolute;
  top: -48px;
  right: -4px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
}

.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.related .field-card { aspect-ratio: 4 / 3; }
.related .field-card__body { padding: 24px; }
.related .field-card h3 { font-size: 21px; }

/* Rückmeldeseite von kontakt.php (nur bei PHP-Hosting ohne JavaScript) */
.form-result main { padding: 96px var(--gutter); text-align: center; }
.form-result p { margin-top: 28px; font-size: 17px; }

/* =========================================================
   Einblenden (nur mit JS)
   ========================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header { transition: none; }
  .hero__scroll svg { animation: none; }
  .js .hero__content > * { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1179px) {
  /* 14 px Luft über und unter dem 56 px hohen Logo – wie auf dem Desktop */
  :root { --header-h: 84px; }

  .logo-band img { top: 14px; left: calc(16px - 228px); height: 56px; }
  .logo-link { width: 260px; }
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: auto;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .3);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .main-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .main-nav ul { flex-direction: column; padding: 8px 0 16px; }
  .main-nav a { padding: 0 24px; line-height: 50px; font-size: 18px; }

  .team { grid-template-columns: repeat(3, 1fr); }
  .cables { grid-template-columns: 1fr; gap: 48px; }
  .cables__intro { position: static; max-width: 680px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --section: 84px; --gutter: 24px; }

  .sec-head { grid-template-columns: 1fr; margin-bottom: 40px; }

  .hero__shade {
    background: linear-gradient(180deg, rgba(20, 31, 42, .55) 0%, rgba(20, 31, 42, .85) 60%, rgba(20, 31, 42, .95) 100%);
  }
  .hero__facts ul { grid-template-columns: 1fr; }
  .hero__facts li { padding: 14px 0; }
  .hero__facts li + li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
  .hero__scroll { display: none; }

  .services { grid-template-columns: 1fr; max-width: 560px; }
  .about { grid-template-columns: 1fr; gap: 56px; }
  .about__media { margin: 0 0 12px 12px; }
  .about__media::before { left: -12px; bottom: -12px; }
  .stats__list { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .stats__list li:nth-child(3) { border-left: 0; }
  .fields { grid-template-columns: 1fr; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
  .contact { grid-template-columns: 1fr; }
  .detail { grid-template-columns: 1fr; gap: 40px; }
  .slideshow { order: -1; }
  .related { grid-template-columns: 1fr; }
  .related .field-card { aspect-ratio: 16 / 9; }
}

@media (max-width: 600px) {
  :root { --section: 68px; --gutter: 20px; }

  .hero__inner { padding-top: 48px; padding-bottom: 40px; }
  .hero__actions .btn,
  .cta__actions .btn { flex: 1 1 100%; }

  .field-card { aspect-ratio: 4 / 5; }
  .field-card__body { padding: 24px 22px; }
  .products { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; }
  .member h3 { font-size: 17px; }
  .form-card { padding: 28px 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
  .map { height: 320px; }
  .footer__grid { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 40px; }
  .page-hero { padding: 64px 0 56px; }
  .page-hero .lead { font-size: 17px; }
  .slideshow__thumbs { gap: 6px; }
}
