/* HCS-Lengede – Stylesheet
   Schriften: nur Systemschriften (kein Google-Fonts-Abruf, DSGVO-freundlich)
   Farben als Variablen oben, damit sie später leicht änderbar sind. */

:root {
  --bg: #0d1620;
  --bg-2: #121f2b;
  --line: #24384a;
  --text: #e6edf3;
  --muted: #93a7b8;
  --accent: #ffb020;      /* "Betriebs-LED"-Amber */
  --accent-ink: #1a1203;
  --ok: #5fd08a;
  --radius: 6px;
  --wrap: 1080px;
  --font-head: "Bahnschrift", "DIN Alternate", "Avenir Next Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #ffd070; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 14px;
  z-index: 100;
}
.skip:focus { left: 8px; }

/* ---------- Kopfzeile ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { display: block; height: 36px; width: auto; }
.nav { display: none; gap: 26px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.98rem; }
.nav a:hover { color: var(--text); }

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--accent);
  line-height: 1.2;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #ffc450; color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: rgba(255, 176, 32, 0.12); color: var(--accent); }
.btn-small { padding: 9px 14px; font-size: 0.95rem; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 64px; border-bottom: 1px solid var(--line); position: relative; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(147, 167, 184, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 167, 184, 0.09) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
}
.hero .wrap { display: grid; gap: 40px; position: relative; }

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.3rem, 7vw, 4.2rem);
  line-height: 1.04;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
  max-width: 14ch;
}
.hero p.lead {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 34em;
  margin: 0 0 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Terminal-Zeile (reine Gestaltung) */
.terminal {
  margin-top: 36px;
  max-width: 30rem;
  padding: 14px 16px;
  background: rgba(18, 31, 43, 0.85);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
}
.terminal p { margin: 0; }
.term-cmd { color: var(--accent); margin-bottom: 4px !important; }
.term-row { display: flex; align-items: baseline; gap: 8px; color: var(--muted); }
.term-row .dots { flex: 1; min-width: 12px; border-bottom: 1px dotted var(--line); transform: translateY(-4px); }
.term-row .val { color: var(--text); white-space: nowrap; }
.term-row .ok { color: var(--ok); font-weight: 700; }

/* Eckmarkierungen wie bei einem Messsucher */
.corners { position: relative; }
.corners::before {
  content: "";
  position: absolute;
  inset: -7px;
  pointer-events: none;
  background:
    linear-gradient(var(--accent), var(--accent)) top left / 18px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top left / 2px 18px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top right / 18px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top right / 2px 18px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom left / 18px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom left / 2px 18px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 18px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 2px 18px no-repeat;
}

/* Hero-Foto */
.hero-photo { margin: 7px; position: relative; max-width: 460px; }
.hero-photo img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.hero-photo figcaption {
  position: absolute; left: 0; bottom: 0; right: 0;
  padding: 28px 16px 12px;
  background: linear-gradient(transparent, rgba(13, 22, 32, 0.92));
  border-radius: 0 0 var(--radius) var(--radius);
  font-family: var(--font-head); font-size: 1.3rem; font-weight: 700;
}

/* ---------- Abschnitte ---------- */
/* Leiterbahn mit Knotenpunkt auf der Trennlinie (nur Startseite) */
#main > section { position: relative; }
#main > section::after {
  content: "";
  position: absolute;
  left: max(20px, calc((100% - var(--wrap)) / 2 + 20px));
  bottom: -5px;
  width: 104px;
  height: 10px;
  pointer-events: none;
  background:
    linear-gradient(var(--accent), var(--accent)) 0 4px / 92px 2px no-repeat,
    radial-gradient(circle at 98px 5px, var(--bg) 0 2.5px, var(--accent) 3px 5px, transparent 5.5px) 0 0 / 104px 10px no-repeat;
}
/* Status-LED vor den Überschriften */
#main > section h2::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 176, 32, 0.7);
  vertical-align: 0.1em;
}
section { padding: 64px 0; border-bottom: 1px solid var(--line); }
section h2 {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.1;
  margin: 0 0 12px;
}
.section-intro { color: var(--muted); max-width: 36em; margin: 0 0 36px; }

/* Leistungen als Liste mit Trennlinien statt Kartenraster */
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.services li {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
}
.services li:last-child { border-bottom: 1px solid var(--line); }
.services strong { font-size: 1.15rem; }
.services span { color: var(--muted); }

/* Ablauf: echte Reihenfolge, daher nummeriert */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; padding-left: 58px; position: relative; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--accent);
}
.steps strong { display: block; font-size: 1.1rem; }
.steps span { color: var(--muted); }

/* Einsatzgebiet */
.areas { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0 0 20px; padding: 0; }
.areas li {
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 8px 16px;
  border-radius: 999px;
}
.note { color: var(--muted); margin: 0; }

/* Galerie */
.gallery { display: grid; grid-template-columns: 1fr; align-items: start; gap: 30px 24px; margin: 0; padding: 0; list-style: none; }
.gallery figure { margin: 0; }
.gallery a { display: block; }
.gallery figcaption {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
}
.gallery a:hover img { border-color: var(--accent); }
.gallery img, .gallery .ph {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-2);
  display: grid;
  place-items: center;
  color: var(--muted);
}

/* Kontakt */
.contact-grid { display: grid; gap: 32px; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 14px 0; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list .label { display: block; color: var(--muted); font-size: 0.85rem; font-family: var(--font-mono); }
.contact-list a { font-size: 1.25rem; font-weight: 700; }

/* ---------- Fuß ---------- */
.site-footer { padding: 28px 0 40px; color: var(--muted); font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Rechtstexte ---------- */
.legal { padding: 48px 0 64px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 2.8rem); margin: 0 0 24px; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 8px; font-family: var(--font-head); }
.legal p, .legal li { color: #cdd9e3; }
.legal address { font-style: normal; }
.draft-hint {
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 0 0 28px;
  color: var(--text);
}
.legal section { padding: 0; border: 0; }

/* ---------- Ab Tablet ---------- */
@media (min-width: 760px) {
  .nav { display: flex; }
  .brand img { height: 42px; }
  .hero { padding: 88px 0 96px; }
  .hero .wrap { grid-template-columns: 1.3fr 1fr; align-items: center; }
  .services { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .services li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 36px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 88px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
