/* =========================================================
   BeX-Tec GmbH – Website
   Stil: hell, Glas & Stahl, Himmel, Rot als Akzent (Logo-X)
   ========================================================= */

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/montserrat-latin-900-normal.woff2") format("woff2"); }

:root {
  --rot: #e2141c;
  --rot-dunkel: #b50e15;
  --rot-hell: #fdecec;
  --schwarz: #101317;
  --anthrazit: #1c2229;
  --stahl: #414a54;
  --stahl-hell: #6d7884;
  --linie: #b3b8bd;
  --hell: #bbbfc4;
  --himmel: #e3eef7;
  --weiss: #ffffff;
  --grund: #c5c8ca;          /* Seitenhintergrund: Grau (15 % dunkler, Wunsch Amir) */
  --flaeche: #e2e5e8;        /* Karten und Flächen: helleres Grau */
  --grund-rgb: 197, 200, 202;
  --glas: rgba(226, 229, 232, 0.86);
  --glas-rand: rgba(255, 255, 255, 0.5);

  --schrift: "Montserrat", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --radius: 14px;
  --radius-klein: 8px;
  --schatten: 0 10px 30px rgba(16, 19, 23, 0.08), 0 2px 6px rgba(16, 19, 23, 0.05);
  --schatten-gross: 0 24px 60px rgba(16, 19, 23, 0.16);
  --breite: 1200px;
  --rand: clamp(16px, 4vw, 40px);
  --kopf-hoehe: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 17px;
  line-height: 1.65;
  color: var(--schwarz);
  background: var(--grund);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 800; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprung { position: absolute; left: -999px; top: 8px; background: var(--schwarz); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; }
.sprung:focus { left: 8px; }

.rahmen { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }
.abschnitt { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.abschnitt--hell { background: var(--hell); }
.abschnitt--dunkel { background: var(--anthrazit); color: #fff; }
.abschnitt--himmel { background: linear-gradient(180deg, #b9c2ca 0%, var(--grund) 100%); }

/* Fassadenraster als dezenter Hintergrund (Pfosten & Riegel) */
.raster {
  background-image:
    linear-gradient(to right, rgba(86, 97, 109, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(86, 97, 109, 0.07) 1px, transparent 1px);
  background-size: 96px 140px;
}
.abschnitt--dunkel.raster {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

/* ---------- Kleine Bausteine ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #9e0c12; margin-bottom: 14px;
}
.kicker::before { content: ""; width: 28px; height: 3px; background: var(--rot); border-radius: 2px; }
.abschnitt--dunkel .kicker { color: #ff6b70; }
.abschnitt--dunkel .kicker::before { background: #ff6b70; }
.einleitung { font-size: 1.12rem; color: var(--stahl); max-width: 62ch; }
.abschnitt--dunkel .einleitung { color: #c4ccd4; }
.kopfzeile { margin-bottom: clamp(32px, 5vw, 56px); }
.kopfzeile--mitte { text-align: center; }
.kopfzeile--mitte .einleitung { margin-left: auto; margin-right: auto; }
.kopfzeile--mitte .kicker::after { content: ""; width: 28px; height: 3px; background: var(--rot); border-radius: 2px; }

/* Rotes Band (wie „Mitarbeiter gesucht!“) */
.band {
  display: inline-block; background: var(--rot); color: #fff;
  font-weight: 800; font-size: clamp(1rem, 2.2vw, 1.35rem); letter-spacing: 0.01em;
  padding: 10px 34px 10px 22px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
  box-shadow: 0 8px 24px rgba(226, 20, 28, 0.3);
  transform: rotate(-2deg); transform-origin: left center;
}
.band--klein { font-size: 0.82rem; padding: 6px 24px 6px 14px; letter-spacing: 0.06em; text-transform: uppercase; transform: none; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }

/* Buttons */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 700 0.98rem/1 var(--schrift); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
}
.knopf svg { width: 20px; height: 20px; flex: none; }
.knopf--rot { background: var(--rot); color: #fff; box-shadow: 0 8px 22px rgba(226, 20, 28, 0.28); }
.knopf--rot:hover { background: var(--rot-dunkel); transform: translateY(-2px); }
.knopf--rahmen { border-color: var(--schwarz); color: var(--schwarz); background: rgba(255,255,255,0.3); }
.knopf--rahmen:hover { background: var(--schwarz); color: #fff; }
.knopf--hell { background: var(--flaeche); color: var(--schwarz); }
.knopf--hell:hover { transform: translateY(-2px); box-shadow: var(--schatten); }
.knopf--rahmen-hell { border-color: rgba(255,255,255,0.8); color: #fff; }
.knopf--rahmen-hell:hover { background: #fff; color: var(--schwarz); }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; }

.textlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--rot-dunkel); text-decoration: none; }
.textlink svg { width: 18px; height: 18px; transition: transform .2s ease; }
.textlink:hover svg { transform: translateX(4px); }

/* Glas-Karte */
.glas {
  background: var(--glas);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--glas-rand);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
}

/* ---------- Logo ---------- */
.logo { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--schwarz); line-height: 1; }
.logo__wort { display: inline-flex; align-items: flex-end; font-weight: 900; font-size: 34px; letter-spacing: -0.035em; }
.logo__x { width: 0.86em; height: 1.02em; margin: 0 -0.02em 0 0.01em; transform: translateY(0.05em); }
.logo__gmbh { font-size: 0.34em; font-weight: 800; letter-spacing: 0; margin-left: 0.25em; margin-bottom: 0.18em; }
.logo__claim { font-size: 9.5px; font-weight: 700; letter-spacing: 0.01em; margin-top: 4px; white-space: nowrap; padding-left: 1px; border-left: 2px solid var(--schwarz); padding-left: 5px; }
.logo--gross .logo__wort { font-size: clamp(54px, 9vw, 96px); }
.logo--gross .logo__claim { font-size: clamp(13px, 2vw, 21px); margin-top: 8px; border-left-width: 3px; padding-left: 8px; }
.logo--hell { color: #fff; }
.logo--hell .logo__claim { border-color: #fff; }

/* ---------- Kopfbereich ---------- */
.kopf {
  position: sticky; top: 0; z-index: 100;
  background: rgba(var(--grund-rgb), 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.kopf.ist-gescrollt { border-color: var(--linie); box-shadow: 0 6px 24px rgba(16,19,23,0.06); }
.kopf__innen { display: flex; align-items: center; gap: 24px; height: var(--kopf-hoehe); }
.kopf__logo { margin-right: auto; }
.navi { display: flex; align-items: center; gap: 4px; }
.navi a {
  position: relative; padding: 10px 14px; font-weight: 600; font-size: 0.95rem; text-decoration: none; color: var(--schwarz); border-radius: 8px;
}
.navi a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--rot); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.navi a:hover::after, .navi a[aria-current="page"]::after { transform: scaleX(1); }
.kopf__aktion { display: flex; align-items: center; gap: 10px; }
.kopf__tel { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; font-size: 0.95rem; white-space: nowrap; }
.kopf__tel svg { width: 18px; height: 18px; color: var(--rot); }
.kopf .knopf { min-height: 44px; padding: 0 20px; font-size: 0.92rem; }
.menueknopf { display: none; width: 48px; height: 48px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; color: var(--schwarz); }
.menueknopf svg { width: 28px; height: 28px; }

/* Ausklappmenü (Handy, von links) */
.schublade { position: fixed; inset: 0; z-index: 150; pointer-events: none; }
.schublade__hintergrund { position: absolute; inset: 0; background: rgba(16,19,23,0.45); opacity: 0; transition: opacity .25s ease; }
.schublade__panel {
  position: absolute; top: 0; left: 0; bottom: 0; width: min(86vw, 360px);
  background: var(--grund); transform: translateX(-102%); transition: transform .28s ease;
  display: flex; flex-direction: column; padding: 18px 20px 24px; overflow-y: auto;
  box-shadow: var(--schatten-gross);
}
.schublade.ist-offen { pointer-events: auto; }
.schublade.ist-offen .schublade__hintergrund { opacity: 1; }
.schublade.ist-offen .schublade__panel { transform: translateX(0); }
.schublade__kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.schublade__zu { width: 44px; height: 44px; border: 0; background: var(--hell); border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.schublade__zu svg { width: 22px; height: 22px; }
.schublade nav a {
  display: flex; align-items: center; gap: 14px; padding: 14px 12px; border-radius: 10px;
  font-weight: 700; font-size: 1.05rem; text-decoration: none; color: var(--schwarz);
}
.schublade nav a svg { width: 22px; height: 22px; color: var(--rot); flex: none; }
.schublade nav a[aria-current="page"] { background: var(--rot-hell); }
.schublade__unten { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--linie); display: grid; gap: 10px; }
.schublade__unten .knopf { width: 100%; }

@media (max-width: 1060px) {
  .navi, .kopf__tel { display: none; }
  .menueknopf { display: inline-flex; order: -1; margin-left: -8px; }
  .kopf__innen { gap: 10px; }
}
@media (max-width: 520px) {
  .kopf .knopf span { display: none; }
  .kopf .knopf { width: 44px; padding: 0; }
  .logo__wort { font-size: 28px; }
  .logo__claim { font-size: 8px; }
}

/* ---------- Startbild (Hero) ---------- */
.hero { position: relative; min-height: min(86vh, 820px); display: flex; align-items: center; overflow: hidden; background: var(--himmel); }
.hero__bild { position: absolute; inset: 0; }
.hero__bild img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(var(--grund-rgb),0.97) 0%, rgba(var(--grund-rgb),0.9) 34%, rgba(var(--grund-rgb),0.35) 62%, rgba(var(--grund-rgb),0) 80%);
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: 1; background: linear-gradient(0deg, rgba(var(--grund-rgb),0.95), rgba(var(--grund-rgb),0)); }
.hero__inhalt { position: relative; z-index: 2; padding-top: clamp(40px, 7vw, 90px); padding-bottom: clamp(120px, 14vw, 170px); }
.hero__inhalt > * { max-width: 640px; }
.hero h1 { margin: 22px 0 18px; }
.hero h1 .rot { color: #c8101a; }
.hero__text { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #2c343d; margin-bottom: 30px; max-width: 54ch; }
.hero__tel { margin-top: 22px; display: flex; align-items: center; gap: 10px; color: var(--stahl); font-weight: 600; font-size: 0.95rem; }
.hero__tel a { color: var(--schwarz); font-weight: 800; text-decoration: none; }
.hero__tel svg { width: 18px; height: 18px; color: var(--rot); }
/* Startbild mit Motiv links, Text rechts */
.hero--rechts .hero__bild img { object-position: 22% 50%; }
.hero--rechts::before { background: linear-gradient(270deg, rgba(var(--grund-rgb),0.97) 0%, rgba(var(--grund-rgb),0.9) 34%, rgba(var(--grund-rgb),0.35) 60%, rgba(var(--grund-rgb),0) 78%); }
.hero--rechts .hero__inhalt { display: flex; flex-direction: column; align-items: flex-end; }
.hero--rechts .hero__inhalt > * { width: 100%; max-width: 600px; }
.hero--rechts .band--klein { align-self: flex-end; width: auto; }
@media (max-width: 760px) {
  .hero--rechts .hero__inhalt { align-items: stretch; }
  .hero--rechts .hero__inhalt > * { max-width: none; }
  .hero--rechts .band--klein { align-self: flex-start; }
  .hero--rechts .hero__bild img { object-position: 30% 40%; }
  .hero--rechts::before { background: linear-gradient(180deg, rgba(var(--grund-rgb),0) 0%, rgba(var(--grund-rgb),0.3) 26%, rgba(var(--grund-rgb),0.96) 44%, var(--grund) 60%); }
}
@media (max-width: 760px) {
  .hero { min-height: auto; align-items: flex-end; }
  .hero__bild { height: 46%; top: 0; bottom: auto; }
  .hero::before { background: linear-gradient(180deg, rgba(var(--grund-rgb),0) 0%, rgba(var(--grund-rgb),0.3) 26%, rgba(var(--grund-rgb),0.96) 44%, var(--grund) 60%); }
  .hero__inhalt { padding-top: 34vh; padding-bottom: 130px; }
}

/* Seitenkopf für Unterseiten */
.seitenkopf { position: relative; padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 80px); overflow: hidden; background: var(--himmel); }
.seitenkopf__bild { position: absolute; inset: 0; }
.seitenkopf__bild img { width: 100%; height: 100%; object-fit: cover; }
.seitenkopf::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(var(--grund-rgb),0.97) 0%, rgba(var(--grund-rgb),0.88) 45%, rgba(var(--grund-rgb),0.25) 100%); }
.seitenkopf .rahmen { position: relative; z-index: 2; }
.seitenkopf h1 { margin-top: 12px; max-width: 20ch; }
.seitenkopf .einleitung { color: #2c343d; }
.pfad { font-size: 0.85rem; color: var(--stahl); display: flex; gap: 8px; align-items: center; }
.pfad a { text-decoration: none; font-weight: 600; }
.pfad a:hover { color: var(--rot); }
@media (max-width: 760px) { .seitenkopf::before { background: linear-gradient(90deg, rgba(var(--grund-rgb),0.96), rgba(var(--grund-rgb),0.84)); } }

/* ---------- Kacheln (Schnellzugriff) ---------- */
.kacheln { position: relative; z-index: 5; margin-top: -92px; }
.kacheln__raster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kachel {
  display: flex; flex-direction: column; gap: 10px; padding: 24px 22px; text-decoration: none; color: var(--schwarz);
  transition: transform .2s ease, box-shadow .2s ease;
}
.kachel:hover { transform: translateY(-4px); box-shadow: var(--schatten-gross); }
.kachel__symbol { width: 52px; height: 52px; border-radius: 14px; background: var(--rot); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px rgba(226,20,28,0.3); }
.kachel__symbol svg { width: 26px; height: 26px; }
.kachel strong { font-size: 1.08rem; font-weight: 800; }
.kachel span { font-size: 0.9rem; color: var(--stahl); line-height: 1.45; }
@media (max-width: 900px) { .kacheln__raster { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .kachel { padding: 18px 16px; } .kachel span { display: none; } }

/* ---------- Leistungen (Karten) ---------- */
.karten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (min-width: 1100px) { .karten--vier { grid-template-columns: repeat(4, 1fr); gap: 18px; } .karten--vier .karte__inhalt { padding: 18px 18px 20px; } .karten--vier h3 { font-size: 1.05rem; } }
@media (max-width: 980px) { .karten { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .karten { grid-template-columns: 1fr; } }
.karte {
  background: var(--flaeche); border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten);
  display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease;
  border: 1px solid var(--linie);
}
a.karte:hover { transform: translateY(-4px); box-shadow: var(--schatten-gross); }
.karte__bild { aspect-ratio: 4 / 3; overflow: hidden; background: var(--hell); position: relative; }
.karte__bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a.karte:hover .karte__bild img { transform: scale(1.05); }
.karte__inhalt { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.karte__inhalt p { color: var(--stahl); font-size: 0.97rem; margin: 0; }
.karte__inhalt .textlink { margin-top: auto; padding-top: 10px; }
.karte__nr { position: absolute; left: 14px; top: 14px; background: rgba(var(--grund-rgb),0.92); font-weight: 800; font-size: 0.8rem; padding: 5px 10px; border-radius: 999px; }

/* ---------- Fakten-Band ---------- */
.fakten { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.fakt { padding: 8px 28px; border-left: 1px solid rgba(255,255,255,0.14); }
.fakt:first-child { border-left: 0; padding-left: 0; }
.fakt strong { display: block; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 900; line-height: 1.1; margin-bottom: 8px; }
.fakt strong .rot { color: #ff4a50; }
.fakt > span { color: #c4ccd4; font-size: 0.95rem; }
@media (max-width: 900px) { .fakten { grid-template-columns: repeat(2, 1fr); gap: 28px 0; } .fakt:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 480px) { .fakten { grid-template-columns: 1fr; } .fakt { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.14); padding-top: 20px; } .fakt:first-child { border-top: 0; padding-top: 0; } }

/* ---------- Vorteile ---------- */
.zweispaltig { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.zweispaltig--umgekehrt > :first-child { order: 2; }
@media (max-width: 900px) { .zweispaltig { grid-template-columns: 1fr; } .zweispaltig--umgekehrt > :first-child { order: 0; } }
.bildstapel { position: relative; padding: 0 0 48px 48px; }
.bildstapel__gross { border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten-gross); aspect-ratio: 4 / 5; }
.bildstapel__gross img { width: 100%; height: 100%; object-fit: cover; }
.bildstapel__klein { position: absolute; left: 0; bottom: 0; width: 46%; border-radius: var(--radius); overflow: hidden; border: 6px solid var(--grund); box-shadow: var(--schatten-gross); aspect-ratio: 1; }
.bildstapel__klein img { width: 100%; height: 100%; object-fit: cover; }
.bildstapel__marke { position: absolute; right: -10px; top: 28px; }
@media (max-width: 520px) { .bildstapel { padding: 0 0 36px 24px; } }

.vorteile { display: grid; gap: 22px; margin-top: 28px; }
.vorteil { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.vorteil__symbol { width: 52px; height: 52px; border-radius: 14px; background: var(--rot-hell); color: var(--rot); display: inline-flex; align-items: center; justify-content: center; }
.vorteil__symbol svg { width: 26px; height: 26px; }
.vorteil h3 { margin: 4px 0 4px; font-size: 1.08rem; }
.vorteil p { margin: 0; color: var(--stahl); font-size: 0.97rem; }

/* ---------- Ablauf ---------- */
.ablauf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: schritt; }
.schritt { position: relative; padding: 28px 22px 24px; background: var(--flaeche); border-radius: var(--radius); border: 1px solid var(--linie); }
.schritt::before { counter-increment: schritt; content: "0" counter(schritt); display: block; font-size: 2.4rem; font-weight: 900; color: var(--rot); line-height: 1; margin-bottom: 14px; }
.schritt::after { content: ""; position: absolute; top: 46px; right: -14px; width: 8px; height: 8px; border-top: 2px solid var(--stahl-hell); border-right: 2px solid var(--stahl-hell); transform: rotate(45deg); }
.schritt:last-child::after { display: none; }
.schritt h3 { font-size: 1.05rem; margin-bottom: 6px; }
.schritt p { margin: 0; color: var(--stahl); font-size: 0.95rem; }
@media (max-width: 980px) { .ablauf { grid-template-columns: repeat(2, 1fr); } .schritt:nth-child(2)::after { display: none; } }
@media (max-width: 560px) { .ablauf { grid-template-columns: 1fr; } .schritt::after { display: none; } }

/* ---------- Referenzen ---------- */
.ref-raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .ref-raster { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .ref-raster { grid-template-columns: 1fr; } }
.ref {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--anthrazit); color: #fff; aspect-ratio: 4 / 5;
  box-shadow: var(--schatten); cursor: pointer; border: 0; padding: 0; text-align: left; font: inherit; display: block; width: 100%;
}
.ref img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ref::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,19,23,0) 35%, rgba(16,19,23,0.88) 100%); }
.ref:hover img { transform: scale(1.06); }
.ref__text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px; }
.ref__ort { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #ffb3b6; }
.ref__titel { display: block; font-size: 1.22rem; font-weight: 800; margin: 6px 0 8px; line-height: 1.2; }
.ref__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ref__tags span { font-size: 0.74rem; font-weight: 700; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.25); padding: 3px 9px; border-radius: 999px; }
.ref__mehr { position: absolute; right: 16px; top: 16px; z-index: 2; background: rgba(255,255,255,0.92); color: var(--schwarz); font-size: 0.78rem; font-weight: 800; padding: 6px 11px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
.ref__mehr svg { width: 15px; height: 15px; }
.ref--breit { grid-column: span 2; aspect-ratio: auto; min-height: 100%; }
@media (max-width: 620px) { .ref--breit { grid-column: auto; aspect-ratio: 4 / 5; } }

.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter button {
  border: 1.5px solid var(--linie); background: var(--flaeche); color: var(--schwarz); font: 700 0.92rem/1 var(--schrift);
  padding: 12px 18px; border-radius: 999px; cursor: pointer; transition: all .15s ease;
}
.filter button:hover { border-color: var(--schwarz); }
.filter button[aria-pressed="true"] { background: var(--schwarz); border-color: var(--schwarz); color: #fff; }
.ref[hidden] { display: none; }

/* Weitere Referenzen als Liste */
.ref-liste { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px; list-style: none; }
.ref-liste li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--linie); }
.ref-liste li svg { width: 22px; height: 22px; color: var(--rot); margin-top: 2px; }
.ref-liste strong { display: block; }
.ref-liste span { color: var(--stahl); font-size: 0.93rem; }
@media (max-width: 760px) { .ref-liste { grid-template-columns: 1fr; } }

/* Bildbetrachter */
.betrachter { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.betrachter::backdrop { background: rgba(10, 12, 15, 0.92); }
.betrachter__innen { width: 100%; height: 100%; display: grid; grid-template-rows: auto 1fr auto; color: #fff; }
.betrachter__kopf { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; }
.betrachter__titel { font-weight: 800; font-size: 1.05rem; }
.betrachter__titel small { display: block; font-weight: 600; color: #c4ccd4; font-size: 0.82rem; }
.betrachter__bild { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 64px; }
.betrachter__bild img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.betrachter button { border: 0; cursor: pointer; background: rgba(255,255,255,0.12); color: #fff; width: 48px; height: 48px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; }
.betrachter button:hover { background: rgba(255,255,255,0.24); }
.betrachter button svg { width: 24px; height: 24px; }
.betrachter__vor, .betrachter__zurueck { position: absolute; top: 50%; transform: translateY(-50%); }
.betrachter__zurueck { left: 10px; } .betrachter__vor { right: 10px; }
.betrachter__fuss { padding: 12px 18px 18px; text-align: center; color: #c4ccd4; font-size: 0.9rem; }
.betrachter__fuss p { max-width: 70ch; margin: 0 auto 6px; color: #e6eaee; }
@media (max-width: 620px) { .betrachter__bild { padding: 0 8px; } .betrachter__vor, .betrachter__zurueck { top: auto; bottom: -58px; transform: none; } .betrachter__zurueck { left: calc(50% - 58px); } .betrachter__vor { right: calc(50% - 58px); } .betrachter__fuss { padding-top: 70px; } }

/* ---------- Leistungs-Detail ---------- */
.leistung { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(40px, 6vw, 72px) 0; border-bottom: 1px solid var(--linie); scroll-margin-top: calc(var(--kopf-hoehe) + 20px); }
.leistung:last-child { border-bottom: 0; }
.leistung:nth-child(even) .leistung__bild { order: 2; }
@media (max-width: 900px) { .leistung { grid-template-columns: 1fr; } .leistung:nth-child(even) .leistung__bild { order: 0; } }
.leistung__bild { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--schatten-gross); }
.leistung__bild img { width: 100%; height: 100%; object-fit: cover; }
.leistung__bild .band { position: absolute; left: 0; bottom: 22px; }
.haken { list-style: none; display: grid; gap: 10px; margin: 18px 0 0; }
.haken li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.haken li::before { content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--rot) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat; }
.leistungsnavi { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.leistungsnavi a { text-decoration: none; font-weight: 700; font-size: 0.9rem; padding: 10px 16px; border-radius: 999px; background: rgba(var(--grund-rgb),0.85); border: 1px solid var(--linie); }
.leistungsnavi a:hover { border-color: var(--rot); color: var(--rot); }

/* ---------- Karriere / Stellenanzeige ---------- */
.anzeige { position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden; padding: clamp(28px, 5vw, 56px); color: var(--schwarz); }
.anzeige__bild { position: absolute; inset: 0; }
.anzeige__bild img { width: 100%; height: 100%; object-fit: cover; }
.anzeige::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(var(--grund-rgb),0.94) 0%, rgba(var(--grund-rgb),0.62) 55%, rgba(var(--grund-rgb),0.15) 100%); z-index: 1; }
.anzeige > *:not(.anzeige__bild) { position: relative; z-index: 2; }
.anzeige__raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
@media (max-width: 980px) { .anzeige__raster { grid-template-columns: 1fr; max-width: 560px; } }
.anzeige__box { padding: 22px 22px 24px; }
.anzeige__box h3 { font-size: 1.12rem; margin-bottom: 12px; }
.punkte { list-style: none; display: grid; gap: 8px; font-size: 0.97rem; }
.punkte li { display: grid; grid-template-columns: 12px 1fr; gap: 10px; }
.punkte li::before { content: ""; width: 8px; height: 8px; background: var(--rot); margin-top: 9px; }

.karriere-banner { position: relative; overflow: hidden; border-radius: calc(var(--radius) + 6px); min-height: 420px; display: flex; align-items: center; color: #fff; }
.karriere-banner__bild { position: absolute; inset: 0; }
.karriere-banner__bild img { width: 100%; height: 100%; object-fit: cover; }
.karriere-banner::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(16,19,23,0.88) 0%, rgba(16,19,23,0.6) 50%, rgba(16,19,23,0.15) 100%); }
.karriere-banner__inhalt { position: relative; z-index: 2; padding: clamp(28px, 5vw, 60px); max-width: 640px; }
.karriere-banner--rechts { justify-content: flex-end; }
.karriere-banner--rechts::before { background: linear-gradient(270deg, rgba(16,19,23,0.9) 0%, rgba(16,19,23,0.7) 45%, rgba(16,19,23,0.1) 100%); }
.karriere-banner--rechts .karriere-banner__bild img { object-position: 15% 50%; }
@media (max-width: 760px) {
  .karriere-banner, .karriere-banner--rechts { align-items: flex-end; min-height: 520px; }
  .karriere-banner::before, .karriere-banner--rechts::before { background: linear-gradient(0deg, rgba(16,19,23,0.92) 0%, rgba(16,19,23,0.75) 50%, rgba(16,19,23,0.1) 100%); }
}
.karriere-banner h2 { margin: 22px 0 14px; }
.karriere-banner p { color: #dfe4e9; }

/* ---------- Kontakt ---------- */
.kontaktraster { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .kontaktraster { grid-template-columns: 1fr; } }
.kontaktwege { display: grid; gap: 14px; }
.kontaktweg { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: center; padding: 18px; background: var(--flaeche); border-radius: var(--radius); border: 1px solid var(--linie); text-decoration: none; color: inherit; transition: border-color .2s ease, transform .2s ease; }
a.kontaktweg:hover { border-color: var(--rot); transform: translateY(-2px); }
.kontaktweg__symbol { width: 52px; height: 52px; border-radius: 14px; background: var(--rot); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.kontaktweg__symbol svg { width: 24px; height: 24px; }
.kontaktweg small { display: block; color: var(--stahl); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; }
.kontaktweg strong { font-size: 1.08rem; overflow-wrap: anywhere; }
.zeiten { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.zeiten td { padding: 6px 0; border-bottom: 1px dashed var(--linie); }
.zeiten td:last-child { text-align: right; font-weight: 700; }

.formular { padding: clamp(22px, 4vw, 36px); background: var(--flaeche); border-radius: var(--radius); box-shadow: var(--schatten); border: 1px solid var(--linie); }
.formular h2 { font-size: 1.5rem; }
.feldgruppe { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .feldgruppe { grid-template-columns: 1fr; } }
.feld { display: grid; gap: 6px; margin-bottom: 16px; }
.feld label { font-weight: 700; font-size: 0.9rem; }
.feld label .optional { font-weight: 500; color: var(--stahl); }
.feld input, .feld select, .feld textarea {
  width: 100%; font: 500 1rem/1.4 var(--schrift); color: var(--schwarz);
  padding: 13px 14px; border: 1.5px solid var(--linie); border-radius: 10px; background: #fafbfc;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.feld textarea { min-height: 140px; resize: vertical; }
.feld input:focus, .feld select:focus, .feld textarea:focus { outline: none; border-color: var(--schwarz); box-shadow: 0 0 0 4px rgba(16,19,23,0.08); background: #fff; }
.feld--fehler input, .feld--fehler textarea, .feld--fehler select { border-color: var(--rot); }
.feld__hinweis { font-size: 0.85rem; color: var(--rot); min-height: 0; }
.zustimmung { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 0.88rem; color: var(--stahl); margin: 6px 0 20px; }
.zustimmung input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--rot); }
.honig { position: absolute; left: -5000px; }
.formular__meldung { margin-top: 14px; padding: 14px 16px; border-radius: 10px; font-weight: 600; display: none; }
.formular__meldung.ist-ok { display: block; background: #e9f7ef; color: #11683a; }
.formular__meldung.ist-fehler { display: block; background: var(--rot-hell); color: var(--rot-dunkel); }

.karte-link { display: block; position: relative; border-radius: var(--radius); overflow: hidden; margin-top: 14px; border: 1px solid var(--linie); text-decoration: none; color: inherit; background: var(--hell); }
.karte-link__inhalt { display: flex; align-items: center; gap: 14px; padding: 18px; }
.karte-link svg { width: 24px; height: 24px; color: var(--rot); flex: none; }

/* ---------- Kontakt-Aufruf ---------- */
.aufruf { position: relative; overflow: hidden; }
.aufruf__karte { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; padding: clamp(28px, 5vw, 56px); }
@media (max-width: 900px) { .aufruf__karte { grid-template-columns: 1fr; } }
.aufruf__hintergrund { position: absolute; inset: 0; }
.aufruf__hintergrund img { width: 100%; height: 100%; object-fit: cover; }
.aufruf .rahmen { position: relative; z-index: 2; }
.aufruf__wege { display: grid; gap: 12px; }
.aufruf__wege a { display: flex; align-items: center; gap: 14px; text-decoration: none; font-weight: 800; font-size: 1.1rem; padding: 14px 18px; background: var(--flaeche); border-radius: 12px; border: 1px solid var(--linie); overflow-wrap: anywhere; }
.aufruf__wege a:hover { border-color: var(--rot); }
.aufruf__wege svg { width: 22px; height: 22px; color: var(--rot); flex: none; }

/* ---------- Werte / Über uns ---------- */
.werte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .werte { grid-template-columns: 1fr; } }
.wert { padding: 28px 24px; border-radius: var(--radius); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); }
.wert__x { width: 40px; height: 40px; margin-bottom: 16px; }
.wert h3 { font-size: 1.15rem; }
.wert p { color: #c4ccd4; margin: 0; font-size: 0.97rem; }
.bildreihe { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; margin-top: 40px; }
.bildreihe figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.bildreihe figure:first-child { aspect-ratio: auto; }
.bildreihe img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .bildreihe { grid-template-columns: 1fr 1fr; } .bildreihe figure:first-child { grid-column: span 2; aspect-ratio: 16 / 9; } }

/* ---------- Rechtstexte ---------- */
.rechtstext { max-width: 780px; }
.rechtstext h2 { font-size: 1.35rem; margin-top: 2.2em; }
.rechtstext h3 { font-size: 1.05rem; margin-top: 1.6em; }
.rechtstext p, .rechtstext li { color: #2c343d; }
.rechtstext ul { padding-left: 1.2em; margin-bottom: 1em; }
.rechtstext address { font-style: normal; }

/* ---------- Fußbereich ---------- */
.fuss { background: var(--schwarz); color: #c4ccd4; padding: clamp(56px, 7vw, 80px) 0 28px; font-size: 0.95rem; }
.fuss__raster { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 980px) { .fuss__raster { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fuss__raster { grid-template-columns: 1fr; } }
.fuss h3 { color: #fff; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; }
.fuss a { text-decoration: none; }
.fuss a:hover { color: #fff; }
.fuss ul { list-style: none; display: grid; gap: 8px; }
.fuss address { font-style: normal; line-height: 1.8; }
.fuss__marke p { margin-top: 18px; max-width: 34ch; }
.fuss__sozial { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; font-weight: 700; color: #fff; }
.fuss__sozial svg { width: 22px; height: 22px; }
.fuss__unten { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 0.85rem; }
.fuss__unten nav { display: flex; gap: 20px; }

/* Schwebender Anruf-Knopf (Handy) */
.anrufknopf { display: none; }
@media (max-width: 760px) {
  .anrufknopf { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: var(--rot); color: #fff; box-shadow: 0 10px 26px rgba(226,20,28,0.45); }
  .anrufknopf svg { width: 26px; height: 26px; }
}

/* Hilfsklassen */
.abstand-oben { margin-top: 22px; }
.abstand-oben-gross { margin-top: 36px; }
.abschnitt--eng-oben { padding-top: 32px; }
.werte--einspaltig { grid-template-columns: 1fr; }
.wert .logo__x { display: block; width: 34px; height: 40px; margin: 0 0 16px; transform: none; }
.karte .vorteil__symbol { margin-bottom: 8px; }
.formular__hinweis { font-size: 0.88rem; color: var(--stahl); margin: 14px 0 0; }
.optional { font-weight: 500; color: var(--stahl); font-size: 0.88rem; }
.seitenkopf .band { margin-top: 18px; }
.seitenkopf .knopfreihe { margin-top: 26px; }

.bewerbung-bild { position: relative; margin: 22px 0 0; max-width: 380px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--schatten-gross); }
.bewerbung-bild img { width: 100%; height: 100%; object-fit: cover; }
.bewerbung-bild figcaption { position: absolute; left: 0; bottom: 18px; background: var(--rot); color: #fff; font-weight: 800; padding: 8px 26px 8px 16px; clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }
@media (max-width: 900px) { .bewerbung-bild { max-width: none; aspect-ratio: 4 / 3; } }

/* ---------- Markenband: Foto mit scharfem BeX-Tec-Logo, Rest weich und schimmernd ---------- */
.marke { position: relative; min-height: clamp(360px, 40vw, 560px); display: flex; align-items: flex-end; overflow: hidden; background: var(--grund); }
.marke__fenster { position: absolute; inset: 0; }
.marke__bild { position: absolute; inset: 0; background-size: cover; background-repeat: no-repeat; background-position: var(--fx, 50%) var(--fy, 50%); }
.marke--jacke { --fx: 52%; --fy: 50%; } .marke--jacke .marke__bild { background-image: url("../img/allgemein/marke-jacke.jpg"); }
.marke--transporter { --fx: 80%; --fy: 50%; } .marke--transporter .marke__bild { background-image: url("../img/allgemein/marke-transporter.jpg"); }
.marke--fahne { --fx: 41%; --fy: 50%; } .marke--fahne .marke__bild { background-image: url("../img/allgemein/marke-fahne.jpg"); }
.marke--weste { --fx: 52%; --fy: 50%; } .marke--weste .marke__bild { background-image: url("../img/allgemein/marke-weste.jpg"); }
/* sanfter Lichtschimmer, der über das Bild wandert */
.marke__glanz { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(110deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.75) 48%, rgba(255,255,255,0.15) 56%, rgba(255,255,255,0) 70%);
  background-size: 260% 100%; background-position: 120% 0; animation: glanz 9s ease-in-out infinite; }
@keyframes glanz { 0% { background-position: 130% 0; } 55%, 100% { background-position: -40% 0; } }
/* heller Rand oben/unten, damit das Band weich in die Seite übergeht */
.marke__fenster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--grund-rgb),0.55) 0%, rgba(var(--grund-rgb),0) 18%, rgba(var(--grund-rgb),0) 82%, rgba(var(--grund-rgb),0.55) 100%); }
.marke__inhalt { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(24px, 4vw, 44px); display: flex; }
.marke--rechts .marke__inhalt { justify-content: flex-end; }
.marke__karte { max-width: 420px; padding: 22px 24px; }
.marke__karte .kicker { margin-bottom: 8px; }
.marke__satz { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 800; line-height: 1.25; margin: 0; }
.marke__satz .rot { color: var(--rot); }
@media (max-width: 760px) {
  .marke { display: block; min-height: 0; }
  .marke__fenster { position: relative; height: 300px; }
  .marke__inhalt { padding-top: 0; margin-top: -36px; }
  .marke__karte { max-width: none; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .marke__glanz { animation: none; opacity: 0; } }

/* Einblenden beim Scrollen */
.einblenden { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.einblenden.ist-sichtbar { opacity: 1; transform: none; }
.no-js .einblenden { opacity: 1; transform: none; }

/* ---------- Übergangsseite (nur während der Umstellung auf bextec.de) ---------- */
.hero--platzhalter { min-height: calc(100vh - var(--kopf-hoehe)); }
.hero--platzhalter .hero__inhalt { padding-bottom: clamp(60px, 8vw, 100px); }
.fuss--schlicht { padding: 0 0 24px; }
.fuss--schlicht .fuss__unten { margin-top: 0; border-top: 0; }
.fuss--schlicht .fuss__unten nav { flex-wrap: wrap; }
