/* ==========================================================
   Lehmann + Keller Ingenieure – lk-ing.de
   Dunkel-elegantes Design, 2026
   ========================================================== */

/* Schrift passend zum Logo-Schriftzug (selbst gehostet, kein Google-Server) */
@font-face {
  font-family: "Source Sans 3"; font-style: normal; font-weight: 400;
  src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3"; font-style: normal; font-weight: 600;
  src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3"; font-style: normal; font-weight: 700;
  src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bg: #1d1f21;          /* Anthrazit wie Logo-Hintergrund */
  --bg-2: #24272a;
  --panel: #282c30;
  --line: #3c4147;
  --text: #e9ebed;
  --muted: #a4abb1;
  --accent: #f46c20;      /* Logo-/Briefpapier-Orange */
  --accent-dim: #f0813f;
  --radius: 10px;
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-dim); text-decoration: none; }
a:hover { color: var(--accent); }

/* ---------- Header ---------- */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(29, 31, 33, 0.88);
  backdrop-filter: blur(12px);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 108px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 84px; width: auto; }
@media (max-width: 480px) { .brand img { height: 56px; } }

nav ul { display: flex; gap: 28px; list-style: none; }
nav a {
  color: var(--muted); font-size: 0.95rem; letter-spacing: 0.04em;
  padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
nav a:hover { color: var(--text); }
nav a.aktiv { color: var(--text); border-bottom-color: var(--accent); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--text);
  font-size: 1.4rem; line-height: 1; padding: 6px 12px; border-radius: 6px; cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  nav { position: absolute; top: 108px; left: 0; right: 0; background: var(--bg-2);
        border-bottom: 1px solid var(--line); display: none; }
  nav.offen { display: block; }
  nav ul { flex-direction: column; gap: 0; padding: 12px 24px; }
  nav a { display: block; padding: 12px 0; }
}

main { padding-top: 108px; }

/* ---------- Hero (Startseite) ---------- */
.hero {
  position: relative; height: min(78vh, 720px); min-height: 460px; overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 3.5s ease;
  background-size: cover; background-position: center;
}
.hero-slide.aktiv { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(29,31,33,.22) 0%, rgba(29,31,33,.55) 65%, var(--bg) 100%);
}
.hero-text {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 9%;
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
}
.hero-text h1 {
  font-size: clamp(1.8rem, 4.2vw, 3.2rem); font-weight: 600; line-height: 1.15;
  color: #ffffff; text-shadow: 0 2px 18px rgba(0,0,0,.55);
}
.hero-text h1 em { color: var(--accent); font-style: normal; }
.hero-text p {
  margin-top: 14px; max-width: 640px; color: #cfd9e2; font-size: 1.05rem;
  text-shadow: 0 1px 10px rgba(0,0,0,.6);
}
.hero-caption {
  position: absolute; z-index: 2; right: 20px; bottom: 14px;
  font-size: .75rem; color: #b9c4cd; opacity: .8;
}

/* ---------- Abschnitte ---------- */
section { padding: 72px 0; }
.inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.kicker {
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 0.8rem; margin-bottom: 10px;
}
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; margin-bottom: 22px; }
h3 { font-size: 1.15rem; font-weight: 600; }
.lead { color: var(--muted); max-width: 760px; }

.zitat {
  border-left: 3px solid var(--accent); padding: 6px 0 6px 22px;
  font-size: 1.25rem; color: var(--text); margin: 34px 0; max-width: 760px;
}
.zitat small { display: block; color: var(--muted); font-size: .9rem; margin-top: 6px; }

/* ---------- Karten / Raster ---------- */
.raster { display: grid; gap: 22px; }
.raster.zwei { grid-template-columns: repeat(2, 1fr); }
.raster.drei { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .raster.drei { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .raster.zwei, .raster.drei { grid-template-columns: 1fr; } }

.karte {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: transform .25s ease, border-color .25s ease;
}
.karte:hover { transform: translateY(-4px); border-color: var(--accent-dim); }
.karte .bild { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.karte .bild img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.karte:hover .bild img { transform: scale(1.06); }
.karte .badge {
  position: absolute; top: 12px; right: 12px; background: rgba(14,18,22,.75);
  border: 1px solid var(--line); color: var(--accent); font-size: .72rem;
  letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 20px;
}
.karte .info { padding: 18px 20px 22px; }
.karte .info h3 { margin-bottom: 8px; }
.karte .info p { color: var(--muted); font-size: .92rem; line-height: 1.55; }

/* ---------- Leistungen ---------- */
.leistung-block {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 30px;
}
.leistung-block h3 { color: var(--accent); margin-bottom: 14px; }
.leistung-block ul { list-style: none; }
.leistung-block li {
  padding: 8px 0 8px 26px; position: relative; color: var(--text); border-bottom: 1px solid rgba(60,65,71,.6);
  font-size: .97rem;
}
.leistung-block li:last-child { border-bottom: none; }
.leistung-block li::before {
  content: ""; position: absolute; left: 2px; top: 17px; width: 10px; height: 10px;
  border: 2px solid var(--accent); border-radius: 2px; transform: rotate(45deg);
  border-bottom: none; border-left: none;
}

/* ---------- Zahlenleiste ---------- */
.zahlen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
@media (max-width: 700px) { .zahlen { grid-template-columns: repeat(2, 1fr); } }
.zahl b { display: block; font-size: 2.3rem; color: var(--accent); font-weight: 600; }
.zahl span { color: var(--muted); font-size: .9rem; }

/* ---------- Referenzband ---------- */
.band { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-spur { display: flex; gap: 14px; width: max-content; animation: lauf 55s linear infinite; padding: 14px 0; }
.band-spur img { height: 130px; width: auto; border-radius: 6px; opacity: .85; transition: opacity .3s; }
.band-spur img:hover { opacity: 1; }
@keyframes lauf { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .band-spur { animation: none; flex-wrap: wrap; width: auto; }
  .hero-slide { transition: none; }
}

/* ---------- Video ---------- */
.video-holder {
  position: relative; aspect-ratio: 16 / 9; background: #000 center/cover no-repeat;
  border-radius: var(--radius); overflow: hidden; cursor: pointer; border: 1px solid var(--line);
}
.video-holder iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-holder .startknopf {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.55));
  color: #fff; transition: background .3s;
}
.video-holder:hover .startknopf { background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.45)); }
.startknopf .dreieck {
  width: 74px; height: 74px; border-radius: 50%; background: rgba(14,18,22,.8);
  border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center;
}
.startknopf .dreieck::after {
  content: ""; border-style: solid; border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent var(--accent); margin-left: 5px;
}
.startknopf small { font-size: .78rem; color: #c4cfd8; max-width: 420px; text-align: center; padding: 0 16px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(8, 11, 14, .96);
  display: none; align-items: center; justify-content: center; flex-direction: column; padding: 30px;
}
.lightbox.offen { display: flex; }
.lightbox img { max-width: 92vw; max-height: 78vh; border-radius: 6px; }
.lightbox .lb-titel { color: #e8edf1; margin-top: 16px; font-size: 1rem; }
.lightbox .lb-zaehler { color: #97a2ac; font-size: .85rem; margin-top: 4px; }
.lb-knopf {
  position: absolute; background: rgba(26,34,42,.85); color: #e8edf1;
  border: 1px solid #3a4550; border-radius: 50%; width: 52px; height: 52px;
  font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: border-color .2s;
}
.lb-knopf:hover { border-color: var(--accent); }
.lb-zu { top: 22px; right: 22px; }
.lb-vor { right: 22px; top: 50%; transform: translateY(-50%); }
.lb-zurueck { left: 22px; top: 50%; transform: translateY(-50%); }

/* ---------- Kontakt ---------- */
.kontakt-karte {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
}
.kontakt-karte p { margin-bottom: 8px; }
.kontakt-karte .gross { font-size: 1.15rem; font-weight: 600; }
.karte-platzhalter {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-2);
  display: flex; align-items: center; justify-content: center; text-align: center;
  cursor: pointer; padding: 24px;
}
.karte-platzhalter iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Fußzeile ---------- */
footer {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 65%);
  padding: 56px 0 30px; margin-top: 40px;
}
.fuss { max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
.fuss p, .fuss a { color: var(--muted); font-size: .88rem; }
.fuss a:hover { color: var(--text); }
.fuss .links { display: flex; gap: 22px; }

/* ---------- Einblenden beim Scrollen ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.sichtbar { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Unterseiten-Kopf ---------- */
/* Kopfzeile 108 px → Seitenkopf gesamt ca. 108 × 1,618 ≈ 175 px (goldener Schnitt) */
.seitenkopf {
  padding: 41px 0 39px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 28%, var(--bg-2) 72%, var(--bg) 100%);
}
.seitenkopf h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 600; }
.seitenkopf p { color: var(--muted); margin-top: 10px; max-width: 720px; }

/* ---------- Jobs ---------- */
.job-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; max-width: 860px; }
.job-box h3 { color: var(--accent); margin: 22px 0 10px; }
.job-box ul { margin-left: 20px; }
.job-box li { margin-bottom: 8px; }

/* ---------- Rechtstexte ---------- */
.rechtstext { max-width: 820px; }
.rechtstext h2 { font-size: 1.3rem; margin: 30px 0 10px; }
.rechtstext p