@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
}

:root {
  --charcoal-950: #17181a;
  --charcoal-900: #202224;
  --charcoal-800: #2c2e31;
  --charcoal-700: #3a3d41;
  --red: #c81e1e;
  --red-dark: #a11616;
  --red-on-dark: #ff5c4d;
  --white: #ffffff;
  --ink: #1c1c1c;
  --muted: #5f5f5f;
  --muted-light: #b8b3ac;
  --border: #e6e2dc;
  --bg: #faf8f5;
  --bg-muted: #f2efe9;

  /* legacy aliases kept during transition */
  --navy-950: var(--charcoal-950);
  --navy-900: var(--charcoal-900);
  --navy-800: var(--charcoal-800);
  --navy-700: var(--charcoal-700);
  --orange: var(--red);
  --orange-dark: var(--red-dark);

  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;

  --ease: cubic-bezier(.16,1,.3,1);
  --radius: 10px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--navy-950); }
p { margin: 0 0 1em; color: var(--muted); }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

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

/* Scroll progress bar */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--red), var(--red-on-dark));
  z-index: 200; transition: width .1s linear;
}

/* Scroll reveal — only hides content once JS confirms it will reveal it (progressive
   enhancement: no JS, slow JS, or a backgrounded tab must never leave content invisible) */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Topbar */
.topbar { background: var(--navy-950); color: var(--muted-light); font-size: .85rem; }
.topbar__inner { display: flex; gap: 24px; padding: 8px 24px; justify-content: flex-end; }
.topbar__inner a:hover { color: var(--orange); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--navy-950); }
.logo img { display: block; border-radius: 8px; }
.logo span { color: var(--orange); }
.nav { display: flex; align-items: center; gap: 28px; font-weight: 500; }
.nav a:not(.nav-cta) { color: var(--navy-800); position: relative; padding: 4px 0; }
.nav a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--red); transition: width .25s var(--ease);
}
.nav a:not(.nav-cta):hover { color: var(--orange); }
.nav a:not(.nav-cta):hover::after, .nav a.is-active::after { width: 100%; }
.nav a.is-active { color: var(--red); }
.nav-cta {
  background: var(--orange); color: var(--white) !important;
  padding: 10px 18px; border-radius: 999px; font-weight: 600;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.nav-cta:hover { background: var(--orange-dark); transform: translateY(-1px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy-950); display: block; }

/* Hero */
.hero {
  position: relative;
  background:
    linear-gradient(100deg, rgba(23,24,26,.92) 0%, rgba(23,24,26,.78) 42%, rgba(23,24,26,.42) 100%),
    url("assets/hero.jpg") center/cover no-repeat;
  color: var(--white);
  padding: 130px 0 110px;
  overflow: clip;
}
.hero__inner { max-width: 760px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-weight: 600;
  font-size: .78rem; color: var(--orange); margin-bottom: 16px;
}
.hero .eyebrow { color: var(--red-on-dark); }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); letter-spacing: -.02em; color: var(--white); }
.hero__lead { color: var(--muted-light); font-size: 1.15rem; max-width: 560px; }
.hero__cta { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%);
  width: 30px; height: 46px; border: 1.5px solid rgba(255,255,255,.4); border-radius: 999px;
  display: flex; justify-content: center; padding-top: 8px;
}
.scroll-cue span { width: 4px; height: 8px; border-radius: 999px; background: var(--red-on-dark); animation: scrollcue 1.8s infinite; }
@keyframes scrollcue { 0%{ transform: translateY(0); opacity:1; } 70%{ transform: translateY(12px); opacity:0; } 100%{ opacity:0; } }
@media (max-width: 720px) { .scroll-cue { display: none; } }

.btn { display: inline-block; padding: 14px 28px; border-radius: 999px; font-weight: 600; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn--ghost { border: 1px solid rgba(255,255,255,.35); color: var(--white); }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }

/* Sections */
.section { padding: 96px 0; }
.section--muted { background: var(--bg-muted); }
.section--dark { background: var(--navy-950); color: var(--white); }
.section--dark p, .section--dark h2 { color: var(--white); }
.section--dark .eyebrow { color: var(--red-on-dark); }
.section__lead { max-width: 640px; font-size: 1.08rem; }
.section h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }

/* Leistungen: numbered capability list */
.capabilities { margin-top: 48px; border-top: 1px solid var(--border); }
.capability {
  display: grid; grid-template-columns: 64px 1fr; gap: 24px;
  padding: 26px 0; border-bottom: 1px solid var(--border);
  transition: background .25s var(--ease);
}
.capability:hover { background: linear-gradient(90deg, rgba(200,30,30,.05), transparent); }
.capability__index {
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  color: var(--muted); transition: color .25s var(--ease); padding-top: 2px;
}
.capability:hover .capability__index { color: var(--red); }
.capability__body { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 40px; }
.capability__body h3 { flex: 0 0 260px; font-size: 1.12rem; margin: 0; }
.capability__body p { flex: 1 1 320px; margin: 0; font-size: .96rem; }
@media (max-width: 640px) {
  .capability { grid-template-columns: 40px 1fr; }
  .capability__body h3 { flex-basis: 100%; }
}

/* Ablauf: process steps */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 56px; position: relative; }
.process::before {
  content: ''; position: absolute; top: 27px; left: calc(16.66% + 4px); right: calc(16.66% + 4px);
  height: 1px; background: var(--border); z-index: 0;
}
.process__step { position: relative; z-index: 1; }
.process__num {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--border);
  font-family: var(--font-head); font-weight: 700; color: var(--red);
  margin-bottom: 22px;
}
.process__step h3 { font-size: 1.1rem; }
.process__step p { font-size: .96rem; }
@media (max-width: 720px) {
  .process { grid-template-columns: 1fr; gap: 36px; }
  .process::before { display: none; }
}

/* Two-col / media frame */
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.two-col--media { grid-template-columns: 1fr 1.15fr; align-items: start; }
.media-frame { position: relative; }
.media-photo {
  width: 100%; height: 380px; object-fit: cover; display: block;
  border-radius: var(--radius); border: 1px solid rgba(255,255,255,.08);
}
.media-frame::after {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(200,30,30,.16), rgba(23,24,26,.28) 70%);
  mix-blend-mode: multiply; pointer-events: none;
}
/* Image banner sections (hero-style, different photo) */
.section--banner {
  position: relative;
  background:
    linear-gradient(180deg, rgba(23,24,26,.6) 0%, rgba(23,24,26,.88) 100%),
    linear-gradient(160deg, rgba(200,30,30,.22), transparent 60%),
    url("assets/einsatzgebiet.jpg") center/cover no-repeat;
  color: var(--white);
  text-align: center;
}
.section--banner .eyebrow { color: var(--red-on-dark); }
.section--banner h2, .section--banner p { color: var(--white); }
.section--banner .section__lead { margin: 0 auto; }
.pill-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.pill {
  border: 1px solid rgba(255,255,255,.3); border-radius: 999px;
  padding: 9px 20px; font-size: .88rem; font-weight: 500;
  background: rgba(255,255,255,.06);
}

/* Contact */
.section--cta { background: var(--bg); }
.contact-list { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.contact-item {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 4px; border-bottom: 1px solid var(--border);
  transition: gap .2s var(--ease);
}
a.contact-item:hover { gap: 22px; }
a.contact-item:hover .contact-item__icon { background: var(--red); color: var(--white); }
.contact-item__icon {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--border); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.contact-item__icon svg { width: 19px; height: 19px; }
.contact-item strong { display: block; font-family: var(--font-head); color: var(--navy-950); margin-bottom: 2px; font-size: .95rem; }
.contact-item > span:last-child span:last-child { color: var(--muted); font-size: .95rem; }

/* Footer */
.site-footer { background: var(--navy-950); color: var(--muted-light); position: relative; }
.site-footer__top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding: 64px 24px 48px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .logo { color: var(--white); margin-bottom: 14px; }
.footer-brand p { color: var(--muted-light); font-size: .92rem; max-width: 320px; margin: 0; }
.footer-nav-col { display: flex; flex-direction: column; gap: 12px; font-size: .92rem; }
.footer-nav-col strong { color: var(--white); font-family: var(--font-head); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.footer-nav-col a:hover { color: var(--orange); }
.site-footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 22px 24px; font-size: .85rem; }
.footer-nav { display: flex; gap: 20px; align-items: center; }
.footer-nav a:hover { color: var(--orange); }
.footer-nav__top { color: var(--muted-light); }

/* Legal pages */
.legal { padding: 64px 0 96px; max-width: 760px; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.2rem; margin-top: 2em; }
.legal p, .legal li { color: var(--muted); }
.legal a { color: var(--orange); }
.legal ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1em; }
.back-link { display: inline-block; margin-bottom: 32px; font-weight: 600; color: var(--navy-800); }
.back-link:hover { color: var(--orange); }
.lead-definition { font-size: 1.05rem; }
.data-grid { display: grid; grid-template-columns: max-content 1fr; column-gap: 24px; row-gap: 10px; margin: 1em 0; }
.data-grid dt { font-weight: 600; color: var(--navy-800); }
.data-grid dd { margin: 0; color: var(--muted); }

/* Responsive */
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
  .media-photo { max-height: 320px; }
  .topbar__inner { justify-content: center; gap: 16px; font-size: .78rem; flex-wrap: wrap; }
  .site-footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 12px 24px 20px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; width: 100%; }
  .nav a:not(.nav-cta)::after { display: none; }
  .nav-cta { text-align: center; margin-top: 8px; }
}
