/* ==========================================================
   Hybridsoft GmbH – hybridsoft.net
   Farbwelt: Schwarz · Hellgrau · Elektroblau · Mint
   ========================================================== */
/* Space Grotesk (SIL Open Font License, siehe fonts/OFL.txt) – lokal gehostet, keine Verbindung zu Google */
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("fonts/space-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #07080C;          /* Schwarz – Text, dunkle Flächen */
  --ink-2: #10131B;
  --paper: #F2F4F8;        /* Hellgrau – Seitenhintergrund */
  --paper-2: #E3E7EF;
  --white: #FFFFFF;
  --indigo: #2F6BFF;       /* Elektroblau – Primärfarbe */
  --indigo-soft: #8FB0FF;
  --lime: #3DFFB5;         /* Mint – Akzent */
  --muted: #545B6B;
  --muted-dark: #9AA3B8;
  --line: rgba(7, 8, 12, .12);
  --line-dark: #1E2230;

  --radius-lg: 14px;
  --radius: 8px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--lime); color: var(--ink); }

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

/* ---------- Typografie ---------- */
h1, h2, h3 { margin: 0; letter-spacing: -.03em; }
h1, h2 { font-weight: 700; text-transform: uppercase; line-height: .95; }
h1 { font-size: clamp(40px, 7vw, 104px); }
h2 { font-size: clamp(32px, 4.4vw, 62px); }
h3 { font-size: clamp(21px, 1.9vw, 26px); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
em { font-style: normal; color: var(--indigo); }
.dark em { color: var(--lime); }
strong { font-weight: 600; }
p { margin: 0; }
.lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--muted); max-width: 46ch; }
.dark .lead { color: var(--muted-dark); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; flex: none; width: 14px; height: 4px; background: var(--indigo); }
.dark .eyebrow { color: var(--muted-dark); }
.dark .eyebrow::before { background: var(--lime); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 8px 0 24px;
  border-radius: 4px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn .dot {
  width: 36px; height: 36px; border-radius: 3px;
  display: grid; place-items: center; transition: transform .3s;
}
.btn:hover .dot { transform: rotate(-45deg); }
.btn-primary { background: var(--lime); color: var(--ink); }
.btn-primary .dot { background: var(--ink); color: var(--lime); }
.btn-primary:hover { background: #7DFFCD; }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink .dot { background: var(--lime); color: var(--ink); }
.btn-ink:hover { background: var(--indigo); }
.btn-ghost { padding: 0 24px; border-color: #3B4256; background: transparent; }
.btn-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.link-arrow:hover { color: var(--indigo); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 244, 248, .86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  padding: 10px 16px; border-radius: 4px; font-size: 15px; font-weight: 500;
  transition: background .2s;
}
.nav a:not(.btn):hover { background: var(--paper-2); }
.nav .btn { height: 44px; margin-left: 10px; padding-left: 20px; padding-right: 6px; font-size: 15px; }
.nav .btn .dot { width: 32px; height: 32px; }
.menu-toggle {
  display: none; align-items: center; gap: 10px; height: 44px; padding: 0 6px 0 18px;
  border-radius: 4px; border: 1px solid var(--line); background: var(--white); font-weight: 600;
}
.menu-toggle .plus {
  width: 32px; height: 32px; border-radius: 3px; background: var(--ink); color: var(--white);
  display: grid; place-items: center; transition: transform .3s;
}
.menu-open .menu-toggle .plus { transform: rotate(45deg); }

/* ---------- Hero ---------- */
.hero { padding: 12px 0 0; }
.hero-card {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(86vh, 820px);
  border-radius: var(--radius-lg);
  background-color: var(--ink);
  background-image: linear-gradient(#1A1E2A 1px, transparent 1px), linear-gradient(90deg, #1A1E2A 1px, transparent 1px);
  background-size: 56px 56px;
  color: var(--white);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(28px, 5vw, 72px);
}
.hero-card canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 75% at 75% 15%, rgba(47, 107, 255, .42), transparent 70%),
    linear-gradient(180deg, transparent 35%, rgba(7, 8, 12, .9) 100%);
}
.hero h1 { max-width: 13ch; margin: 22px 0 28px; }
.hero h1 em { color: var(--lime); }
.hero-bottom { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.tag {
  display: inline-block; padding: 7px 14px; border-radius: 3px;
  border: 1px solid var(--line-dark); font-size: 13px; font-weight: 500; color: var(--muted-dark);
}
.light .tag, .tag.light { border-color: var(--line); color: var(--muted); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: 28px 0; border-bottom: 1px solid var(--line); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scroll 40s linear infinite; }
.marquee span { font-size: clamp(20px, 2.4vw, 30px); font-weight: 700; text-transform: uppercase; letter-spacing: -.02em; white-space: nowrap; display: flex; align-items: center; gap: 56px; }
.marquee span::after { content: ""; width: 18px; height: 5px; background: var(--indigo); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sektionen ---------- */
section { scroll-margin-top: 80px; }
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; align-items: end; margin-bottom: clamp(44px, 6vw, 80px); }
.section-head h2 { margin-top: 18px; }
.dark { background: var(--ink); color: var(--white); }
.dark-card { border-radius: var(--radius-lg); margin: 0 12px; }

/* Wo stehen Sie? – Wegweiser-Karten */
.paths { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.path {
  position: relative; display: flex; flex-direction: column; gap: 18px;
  padding: 28px; min-height: 340px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line);
  transition: transform .35s, box-shadow .35s, background .35s, color .35s;
}
.path:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(7, 8, 12, .4); background: var(--ink); color: var(--white); }
.path:hover p { color: var(--muted-dark); }
.path .num { font-size: 14px; font-weight: 600; color: var(--indigo); }
.path:hover .num { color: var(--lime); }
.path p { color: var(--muted); font-size: 16px; }
.path .go {
  margin-top: auto; width: 44px; height: 44px; border-radius: 4px;
  display: grid; place-items: center; border: 1px solid var(--line); transition: all .3s;
}
.path:hover .go { background: var(--lime); border-color: var(--lime); color: var(--ink); transform: rotate(-45deg); }

/* Herausforderungen */
.challenges { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); }
.challenge { padding: 36px 32px 40px 0; border-bottom: 1px solid var(--line-dark); }
.challenge:not(:nth-child(3n+1)) { padding-left: 32px; border-left: 1px solid var(--line-dark); }
.challenge .num { display: block; font-size: 14px; color: var(--lime); font-weight: 600; margin-bottom: 40px; }
.challenge h3 { margin-bottom: 12px; }
.challenge p { color: var(--muted-dark); font-size: 16px; }

/* Leistungen – nummerierte Liste */
.services { border-top: 1px solid var(--line); }
.service { border-bottom: 1px solid var(--line); }
.service summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 24px;
  padding: clamp(24px, 3vw, 38px) 0;
}
.service summary::-webkit-details-marker { display: none; }
.service .num { font-size: 15px; font-weight: 600; color: var(--muted); }
.service .title { font-size: clamp(22px, 3vw, 42px); font-weight: 700; text-transform: uppercase; letter-spacing: -.02em; line-height: 1; transition: color .25s, transform .35s; }
.service summary:hover .title { color: var(--indigo); transform: translateX(8px); }
.service .toggle {
  width: 52px; height: 52px; border-radius: 4px; border: 1px solid var(--line);
  display: grid; place-items: center; transition: all .3s; flex: none;
}
.service[open] .toggle { background: var(--ink); color: var(--lime); }
.service .toggle svg { transition: transform .3s; }
.service[open] .toggle svg { transform: rotate(45deg); }
.service-body { display: grid; grid-template-columns: 80px 1fr 1fr; gap: 24px; padding: 0 0 40px; }
.service-body p { grid-column: 2; color: var(--muted); max-width: 52ch; }
.service-body ul { grid-column: 3; margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.service-body li { display: flex; gap: 12px; font-size: 16px; }
.service-body li::before { content: ""; flex: none; width: 10px; height: 3px; margin-top: 11px; background: var(--indigo); }

/* Vorgehen */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.step {
  position: relative; padding: 28px 24px 32px; border-radius: var(--radius);
  background: var(--paper-2); min-height: 280px; display: flex; flex-direction: column;
}
.step .num {
  width: 46px; height: 46px; border-radius: 4px; display: grid; place-items: center;
  background: var(--white); font-weight: 600; font-size: 15px; margin-bottom: auto;
}
.step:nth-child(3) { background: var(--indigo); color: var(--white); }
.step:nth-child(3) p { color: rgba(255,255,255,.78); }
.step:nth-child(3) .num { background: var(--lime); color: var(--ink); }
.step h3 { margin: 48px 0 10px; font-size: 22px; }
.step p { color: var(--muted); font-size: 15.5px; }
.step .dur { margin-top: 18px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }

/* Use Cases */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  height: 42px; padding: 0 18px; border-radius: 4px; border: 1px solid var(--line);
  background: var(--white); font-size: 15px; font-weight: 500; color: var(--ink); transition: all .2s;
}
.filter:hover { border-color: var(--ink); }
.filter.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.case {
  padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px; min-height: 250px;
  transition: opacity .3s, transform .3s;
}
.case.hidden { display: none; }
.case .area { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--indigo); }
.case p { color: var(--muted); font-size: 16px; }
.case .effect { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 500; }

/* Sicherheit */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-item { padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--line-dark); background: var(--ink-2); }
.trust-item .icon { width: 48px; height: 48px; border-radius: 4px; background: var(--lime); color: var(--ink); display: grid; place-items: center; margin-bottom: 40px; }
.trust-item h3 { font-size: 22px; margin-bottom: 10px; }
.trust-item p { color: var(--muted-dark); font-size: 15.5px; }

/* Warum Hybridsoft */
.why { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.why .lead { margin-top: 26px; }
.compare { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.compare-row { display: grid; grid-template-columns: 1fr 1fr; }
.compare-row > div { padding: 18px 24px; border-top: 1px solid var(--line); font-size: 16px; }
.compare-row > div:last-child { background: rgba(47, 107, 255, .07); font-weight: 500; }
.compare-head > div { border-top: 0; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.compare-head > div:last-child { background: var(--indigo); color: var(--white); }
.compare-row > div:first-child { color: var(--muted); }
.principles { display: grid; gap: 0; margin-top: 44px; border-top: 1px solid var(--line); }
.principle { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.principle .num { font-weight: 600; color: var(--indigo); font-size: 15px; padding-top: 3px; }
.principle h3 { font-size: 21px; margin-bottom: 6px; }
.principle p { color: var(--muted); font-size: 16px; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px;
  padding: 24px 0; font-size: clamp(18px, 1.6vw, 21px); font-weight: 500;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 28px; font-weight: 300; line-height: .8; transition: transform .3s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 26px; color: var(--muted); max-width: 64ch; }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.contact h2 { margin: 18px 0 26px; }
.contact-direct { margin-top: 44px; display: grid; gap: 4px; }
.contact-direct a { font-size: clamp(22px, 2.4vw, 32px); font-weight: 500; letter-spacing: -.02em; }
.contact-direct a:hover { color: var(--lime); }
.contact-direct small { color: var(--muted-dark); font-size: 14px; }
.form { display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-dark); }
.field input, .field select, .field textarea {
  width: 100%; padding: 15px 18px; border-radius: 4px; border: 1px solid var(--line-dark);
  background: var(--ink-2); color: var(--white); font: inherit; font-size: 16px; outline: none;
  transition: border-color .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--lime); }
.field select option { color: var(--ink); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted-dark); }
.consent input { margin-top: 4px; accent-color: var(--lime); width: 18px; height: 18px; flex: none; }
.consent a { text-decoration: underline; }
.form .btn { justify-self: start; margin-top: 8px; }
.form-note { font-size: 14px; color: var(--lime); min-height: 1em; }

/* Footer */
.site-footer { padding: 72px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.footer-top h4 { margin: 0 0 16px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-top a:hover { color: var(--indigo); }
.footer-top p { color: var(--muted); margin-top: 18px; max-width: 34ch; font-size: 16px; }
.footer-bottom { padding-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.footer-bottom nav { display: flex; gap: 20px; }

/* Rechtstexte */
.legal { padding: 64px 0 120px; }
.legal h1 { font-size: clamp(36px, 6vw, 72px); margin-bottom: 48px; }
.legal h2 { font-size: 24px; font-weight: 600; text-transform: none; letter-spacing: -.02em; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--muted); max-width: 70ch; margin-bottom: 10px; }
.legal .todo { background: var(--lime); color: var(--ink); padding: 1px 6px; border-radius: 4px; font-weight: 500; }

/* Scroll-Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .paths { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process .step:last-child { grid-column: span 2; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .cases { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px var(--gutter) 28px; background: var(--paper); border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all .3s;
  }
  .menu-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { font-size: 22px; font-weight: 300; padding: 12px 0; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn):hover { background: none; }
  .nav .btn { margin: 16px 0 0; align-self: flex-start; }
  .section-head, .why, .faq, .contact { grid-template-columns: 1fr; }
  .challenges { grid-template-columns: 1fr 1fr; }
  .challenge, .challenge:not(:nth-child(3n+1)) { padding: 30px 24px 34px 0; border-left: 0; }
  .challenge:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line-dark); }
  .service summary { grid-template-columns: 44px 1fr auto; gap: 14px; }
  .service-body { grid-template-columns: 44px 1fr; }
  .service-body p, .service-body ul { grid-column: 2; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 8px; }
  .hero-card { min-height: 88svh; border-radius: 10px; }
  .paths, .process, .trust, .cases, .challenges { grid-template-columns: 1fr; }
  .process .step:last-child { grid-column: auto; }
  .challenge:nth-child(even) { padding-left: 0; border-left: 0; }
  .path { min-height: 0; }
  .step { min-height: 0; }
  .form .row { grid-template-columns: 1fr; }
  .compare-row > div { padding: 14px 16px; font-size: 15px; }
  .footer-top { grid-template-columns: 1fr; }
  .dark-card { margin: 0 8px; border-radius: 10px; }
  .service .toggle { width: 42px; height: 42px; }
  .btn { height: 50px; }
}
