/* BGA resQ – Stylesheet
   CI: Grün #00BC0D · Petrol #042433 · Hellgrau wie Produktvideo
   Schriften lokal eingebunden (kein Google-Fonts-Abruf, DSGVO) */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --green: #00bc0d;
  --green-dark: #009a0b;
  --green-soft: #e3f6e4;
  --petrol: #042433;
  --petrol-2: #0b3346;
  --ink: #16191c;
  --muted: #5b6670;
  --bg: #f4f5f6;
  --bg-2: #e6e8ea;
  --card: #ffffff;
  --line: #d8dcdf;
  --radius: 18px;
  --wrap: 1180px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--petrol); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

/* Eyebrow + grüner Strich (wie im Video) */
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 4px; border-radius: 2px; background: var(--green); flex: none;
}
.bar { display: block; width: 26px; height: 4px; border-radius: 2px; background: var(--green); margin-bottom: 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 650; font-size: 16px; text-decoration: none;
  border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: var(--petrol); border-color: var(--petrol); }
.btn-primary:hover { background: #12cf20; }
.btn-ghost { border-color: var(--line); background: var(--card); color: var(--ink); }
.btn-ghost:hover { border-color: var(--petrol); }
.btn svg { width: 18px; height: 18px; flex: none; }
button.btn { font-family: inherit; cursor: pointer; }

.pill {
  display: inline-block; font-family: var(--mono); font-weight: 700; font-size: 12px;
  background: var(--green); color: var(--petrol); padding: 3px 10px; border-radius: 999px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 245, 246, 0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { display: block; line-height: 0; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 550; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav .btn { padding: 10px 18px; font-size: 15px; color: var(--petrol); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav .btn { margin-top: 16px; justify-content: center; border-bottom: 2px solid var(--petrol); }
}

/* Hero */
.hero { padding: 56px 0 88px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6vw, 76px); font-weight: 800; margin: 22px 0 22px; }
.hero h1 .hl { color: var(--green-dark); }
.hero .lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.specs { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; padding: 0; list-style: none; }
.specs li { font-family: var(--mono); font-size: 13.5px; color: var(--ink); display: flex; gap: 8px; align-items: center; }
.specs li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

.phone {
  position: relative; justify-self: center;
  width: min(360px, 100%); aspect-ratio: 9 / 16;
  border-radius: 28px; overflow: hidden; background: var(--bg-2);
  box-shadow: 0 40px 80px -30px rgba(4, 36, 51, .35), 0 0 0 1px rgba(4,36,51,.06);
}
.phone video { width: 100%; height: 100%; object-fit: cover; }
.video-toggle {
  position: absolute; right: 14px; bottom: 14px;
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(4, 36, 51, .75); color: #fff; display: grid; place-items: center;
}
.video-toggle svg { width: 18px; height: 18px; }

@media (max-width: 860px) {
  .hero { padding: 28px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .phone { width: min(320px, 86%); }
}

/* Sections */
section { scroll-margin-top: 80px; }
.section { padding: 96px 0; }
.section.alt { background: var(--card); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; margin-top: 18px; }
.section-head p { color: var(--muted); font-size: 19px; margin-top: 16px; }
@media (max-width: 700px) { .section { padding: 68px 0; } .section-head { margin-bottom: 36px; } }

/* Feature cards */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1020px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 540px) { .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.section.alt .card { background: var(--bg); }
.card .media { background: #d5d6d8; aspect-ratio: 4 / 5; overflow: hidden; }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .media img { transform: scale(1.03); }
.card .body { padding: 22px 22px 26px; }
.card h3 { font-size: 21px; font-weight: 750; }
.card p { color: var(--muted); font-size: 15.5px; margin-top: 6px; }

/* Application cards */
.app .media { aspect-ratio: 4 / 4.2; }
.app .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.app .meta span:not(.pill) { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* In action */
.action-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.action-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); position: relative; }
.action-grid video, .action-grid img { width: 100%; height: 100%; object-fit: cover; }
.action-grid figcaption {
  position: absolute; left: 14px; bottom: 14px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255,255,255,.9); color: var(--petrol); padding: 6px 10px; border-radius: 8px;
}
@media (max-width: 860px) { .action-grid { grid-template-columns: 1fr; } .action-grid .photo { aspect-ratio: 4 / 3; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; counter-increment: step; }
.steps li::before {
  content: "0" counter(step); display: inline-grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: 14px;
  width: 44px; height: 44px; border-radius: 12px; background: var(--green); color: var(--petrol); margin-bottom: 18px;
}
.steps h3 { font-size: 22px; font-weight: 750; }
.steps p { color: var(--muted); margin-top: 6px; font-size: 16px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .visual { border-radius: var(--radius); overflow: hidden; background: #d5d6d8; aspect-ratio: 4 / 5; max-height: 560px; }
.split .visual img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.check { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.check li { display: flex; gap: 12px; align-items: flex-start; }
.check li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23042433' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Contact */
.contact { background: var(--petrol); color: #eaf1f1; padding: 96px 0; }
.contact .eyebrow { color: #93a7b9; }
.contact h2 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 800; margin-top: 18px; max-width: 16em; }
.contact p.lead { color: #b9c8d3; font-size: 19px; margin-top: 18px; max-width: 36em; }
.contact .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.contact .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.contact .btn-ghost:hover { border-color: #fff; }
.contact .company { margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.14); font-size: 15px; color: #93a7b9; }
.contact .company strong { color: #eaf1f1; font-weight: 650; }

/* Footer */
.site-footer { background: #031b27; color: #93a7b9; font-size: 14.5px; padding: 28px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { text-decoration: none; color: #eaf1f1; }
.site-footer a:hover { color: var(--green); }

/* ---------- Rechtliche Seiten (Aufbau wie timing-electronics.de) ---------- */
.legal { padding: 48px 0 96px; }
.legal .wrap { max-width: 820px; }
.back {
  font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
}
.back:hover { color: var(--ink); }
.legal .eyebrow { margin-top: 40px; }
.legal h1 { font-size: clamp(40px, 6vw, 60px); font-weight: 800; margin: 16px 0 36px; }
.legal-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
}
.legal h2 {
  font-family: var(--mono); font-size: 13.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--green-dark); margin: 36px 0 10px;
}
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 17px; font-weight: 700; margin: 22px 0 6px; letter-spacing: 0; }
.legal p, .legal li { color: #333a40; font-size: 16px; }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 20px; margin: 8px 0; }
.legal a { color: var(--petrol); text-decoration-color: var(--green); text-underline-offset: 3px; }
.legal .todo { background: #fff4c2; padding: 1px 4px; border-radius: 4px; }
.legal .stand { margin-top: 32px; font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* Kontakt-Popup */
.modal {
  width: min(460px, calc(100% - 32px)); border: 0; padding: 36px 32px 32px;
  border-radius: 22px; background: var(--card); color: var(--ink);
  box-shadow: 0 40px 100px -20px rgba(4, 36, 51, .5);
}
.modal::backdrop { background: rgba(4, 36, 51, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal[open] { animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .modal[open] { animation: none; } }
.modal h2 { font-size: 30px; font-weight: 800; margin-top: 14px; }
.modal-text { color: var(--muted); margin-top: 10px; font-size: 16px; }
.modal-mail {
  display: block; margin-top: 20px; padding: 14px 16px; border-radius: 12px;
  background: var(--green-soft); border: 1px solid #bfe8c2;
  font-family: var(--mono); font-weight: 700; font-size: clamp(15px, 4.4vw, 18px);
  color: var(--petrol); text-decoration: none; word-break: break-all;
}
.modal-mail:hover { border-color: var(--green); }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: var(--bg); color: var(--ink); cursor: pointer; display: grid; place-items: center;
}
.modal-close:hover { background: var(--bg-2); }
.modal-close svg { width: 18px; height: 18px; }
