/* ============================================================
   Above and Beyond LLC — Supply-Chain-Beratung
   Farbschema A "Petrol Flow" · Space Grotesk + Inter
   ============================================================ */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family:'Space Grotesk'; font-style:normal; font-weight:500; font-display:swap; src:url('../assets/fonts/space-grotesk-500.woff2') format('woff2'); }
@font-face { font-family:'Space Grotesk'; font-style:normal; font-weight:700; font-display:swap; src:url('../assets/fonts/space-grotesk-700.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:400; font-display:swap; src:url('../assets/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:500; font-display:swap; src:url('../assets/fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:600; font-display:swap; src:url('../assets/fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:700; font-display:swap; src:url('../assets/fonts/inter-700.woff2') format('woff2'); }

/* ---------- Tokens ---------- */
:root {
  --bg-dark:#0A1E28;
  --bg-elev:#0E2A36;
  --bg-light:#F4F8F9;
  --surface:#FFFFFF;
  --text:#0C1C24;
  --text-inv:#EAF2F3;
  --text-muted:#55686F;
  --text-muted-inv:#9DB1B8;
  --accent:#35D6AE;
  --accent-2:#1FBF98;
  --accent-ink:#0C7C63;
  --border:#D5E0E2;
  --border-dark:rgba(255,255,255,.10);

  --font-display:'Space Grotesk', system-ui, sans-serif;
  --font-body:'Inter', system-ui, sans-serif;

  --container:1160px;
  --section-pad:clamp(4.5rem, 9vw, 8rem);
  --fade-h:clamp(24px, 3vh, 48px);
  --radius:14px;
  --radius-sm:9px;
  --ease:cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset / base ---------- */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body {
  font-family:var(--font-body);
  font-size:clamp(16px,1.05vw,17px);
  line-height:1.65;
  color:var(--text);
  background:var(--bg-dark);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img,svg { display:block; max-width:100%; }
a { color:inherit; text-decoration:none; }
h1,h2,h3 { font-family:var(--font-display); font-weight:700; line-height:1.1; letter-spacing:-0.02em; }
ul { list-style:none; }

.container { width:100%; max-width:var(--container); margin-inline:auto; padding-inline:clamp(1.25rem,4vw,2.5rem); }

/* ---------- Skip link ---------- */
.skip-link {
  position:absolute; left:1rem; top:-3rem; z-index:200;
  background:var(--accent); color:#04241C; font-weight:600;
  padding:.7rem 1.1rem; border-radius:var(--radius-sm); transition:top .2s var(--ease);
}
.skip-link:focus { top:1rem; }

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

/* ---------- Buttons ---------- */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  font-family:var(--font-display); font-weight:500; font-size:.98rem; line-height:1;
  padding:.95rem 1.6rem; border-radius:var(--radius-sm); border:1.5px solid transparent;
  cursor:pointer; transition:transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn--accent { background:var(--accent); color:#04241C; }
.btn--accent:hover { background:#4FE6C0; transform:translateY(-2px); }
.btn--ghost { background:transparent; border-color:rgba(255,255,255,.28); color:var(--text-inv); }
.btn--ghost:hover { border-color:var(--accent); color:var(--accent); transform:translateY(-2px); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display:inline-flex; align-items:center; gap:.7rem;
  font-family:var(--font-display); font-weight:500; font-size:.8rem;
  letter-spacing:.16em; text-transform:uppercase; color:var(--accent);
  margin-bottom:1.25rem;
}
.eyebrow--ink { color:var(--accent-ink); }
.eyebrow__line { width:26px; height:2px; background:currentColor; display:inline-block; }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position:fixed; inset:0 0 auto 0; z-index:100;
  transition:background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
  border-bottom:1px solid transparent;
}
.site-header.is-scrolled {
  background:rgba(10,30,40,.82); backdrop-filter:blur(12px);
  border-bottom-color:var(--border-dark);
}
.nav { display:flex; align-items:center; gap:1.5rem; height:74px; }
.brand { display:inline-flex; align-items:center; gap:.6rem; color:var(--text-inv); }
.brand__mark { width:30px; height:30px; color:var(--accent); flex:none; }
.brand__name { font-family:var(--font-display); font-weight:700; font-size:1.18rem; letter-spacing:-0.01em; }
.brand__amp { color:var(--accent); font-weight:500; }
.nav nav { margin-left:auto; }
.nav__links { display:flex; gap:2rem; }
.nav__links a { color:var(--text-muted-inv); font-size:.95rem; font-weight:500; transition:color .2s var(--ease); position:relative; }
.nav__links a:hover { color:var(--text-inv); }
.nav__cta--desktop { margin-left:.5rem; }
.nav__toggle, .nav__close { display:none; background:none; border:none; color:var(--text-inv); cursor:pointer; }
.nav__toggle svg, .nav__close svg { width:26px; height:26px; }

/* Mobile menu */
.nav__backdrop { position:fixed; inset:0; background:rgba(4,14,18,.6); z-index:110; opacity:0; transition:opacity .35s var(--ease); }
.nav__backdrop.is-open { opacity:1; }
.nav__menu {
  position:fixed; top:0; right:0; z-index:120; height:100dvh; width:min(320px,86vw);
  background:var(--bg-elev); border-left:1px solid var(--border-dark);
  padding:5rem 2rem 2rem; display:flex; flex-direction:column; gap:1.5rem;
  transform:translateX(100%); transition:transform .35s var(--ease);
}
.nav__menu.is-open { transform:translateX(0); }
.nav__menu .nav__links { flex-direction:column; gap:1.3rem; }
.nav__menu .nav__links a { color:var(--text-inv); font-family:var(--font-display); font-size:1.15rem; }
.nav__close { display:block; position:absolute; top:1.5rem; right:1.5rem; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position:relative; background:var(--bg-dark); color:var(--text-inv);
  min-height:100vh; min-height:100svh;
  display:flex; align-items:center;
  padding:clamp(7rem,13vh,10rem) 0 clamp(3.5rem,7vh,5.5rem);
  overflow:hidden; isolation:isolate;
}
.hero__media { position:absolute; inset:0; z-index:-2; background:var(--bg-dark); }
.hero__media img { width:100%; height:100%; object-fit:cover; object-position:center; }
.hero__net { width:100%; height:100%; opacity:.5; }
.hero__net .hero__links path {
  stroke-dasharray:1; stroke-dashoffset:1;
  animation:draw 2.6s var(--ease) forwards;
}
.hero__net .hero__links path:nth-child(2){ animation-delay:.4s; }
.hero__net .hero__links path:nth-child(3){ animation-delay:.9s; opacity:.55; }
.hero__net .hero__nodes circle { opacity:0; animation:nodeIn .6s var(--ease) forwards; }
.hero__net .hero__nodes circle:nth-child(odd){ animation-delay:1.2s; }
.hero__net .hero__nodes circle:nth-child(even){ animation-delay:1.6s; }
@keyframes draw { to { stroke-dashoffset:0; } }
@keyframes nodeIn { to { opacity:.9; } }
/* radial glow */
.hero::before {
  content:""; position:absolute; z-index:-1; width:900px; height:900px; border-radius:50%;
  top:-30%; right:-15%;
  background:radial-gradient(circle, rgba(53,214,174,.16), transparent 62%);
  animation:pulse 7s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{ transform:scale(1); opacity:.85; } 50%{ transform:scale(1.12); opacity:1; } }
.hero__scrim {
  position:absolute; inset:0; z-index:-1;
  background:
    linear-gradient(90deg, rgba(10,30,40,.88) 0%, rgba(10,30,40,.62) 42%, rgba(10,30,40,.30) 100%),
    linear-gradient(180deg, rgba(10,30,40,.30) 0%, rgba(10,30,40,.58) 62%, var(--bg-dark) 100%);
}
.hero__inner { position:relative; z-index:1; max-width:820px; }
.hero h1 { font-size:clamp(2.5rem,6vw,4.4rem); margin-bottom:1.5rem; }
.hero__lead { font-size:clamp(1.05rem,1.7vw,1.3rem); color:var(--text-muted-inv); max-width:56ch; line-height:1.6; }
.hero__actions { display:flex; flex-wrap:wrap; gap:1rem; margin-top:2.2rem; }
.hero__flow { margin-top:2.6rem; max-width:320px; }
.hero__flow svg { width:100%; height:12px; overflow:visible; }
.hero__flow .flow-path {
  stroke:var(--accent); stroke-width:2; stroke-linecap:round;
  stroke-dasharray:1; stroke-dashoffset:1; animation:draw 1.6s var(--ease) 1s forwards;
}

/* ============================================================
   Sections + Fades (§3.7)
   ============================================================ */
.section { padding:var(--section-pad) 0; position:relative; }
.section--dark { background:var(--bg-dark); color:var(--text-inv); }
.section--light { background:var(--bg-light); color:var(--text); position:relative; }
/* Light section is bracketed by dark above + below → small fades on the light side */
.section--light::before, .section--light::after {
  content:""; position:absolute; left:0; right:0; height:var(--fade-h); pointer-events:none; z-index:0;
}
.section--light::before { top:0; background:linear-gradient(180deg, var(--bg-dark), transparent); }
.section--light::after { bottom:0; background:linear-gradient(0deg, var(--bg-dark), transparent); }
.section .container { position:relative; z-index:2; }

.section__head { max-width:640px; margin-bottom:3.25rem; }
.section__head h2 { font-size:clamp(1.9rem,3.4vw,2.8rem); margin-bottom:1rem; }
.section__intro { color:var(--text-muted); font-size:1.08rem; }
.section--dark .section__intro { color:var(--text-muted-inv); }

/* ============================================================
   Leistungen — Cards
   ============================================================ */
.cards { display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; }
.card {
  position:relative; background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius); padding:2.1rem 1.9rem 2rem;
  transition:transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform:translateY(-4px); border-color:var(--accent); box-shadow:0 18px 40px -24px rgba(12,124,99,.5); }
.card__num { font-family:var(--font-display); font-weight:700; font-size:.85rem; color:var(--accent-ink); letter-spacing:.1em; }
.card__icon { width:52px; height:52px; margin:1.1rem 0 1.3rem; display:grid; place-items:center; border-radius:12px; background:rgba(53,214,174,.12); color:var(--accent-ink); }
.card__icon svg { width:26px; height:26px; }
.card h3 { font-size:1.28rem; margin-bottom:.7rem; }
.card p { color:var(--text-muted); font-size:.98rem; }
.card__tag { display:inline-block; margin-top:1.3rem; font-size:.78rem; font-weight:600; letter-spacing:.04em; color:var(--accent-ink); background:rgba(53,214,174,.1); padding:.4rem .8rem; border-radius:100px; }

/* ============================================================
   Zitat-Band (Full-Bleed, dunkel)
   ============================================================ */
.band { position:relative; isolation:isolate; overflow:hidden; background:var(--bg-dark);
  min-height:56vh; display:grid; place-items:center; text-align:center;
  padding:clamp(4rem,10vh,7rem) 0; }
.band__media { position:absolute; inset:0; z-index:-2; will-change:transform; }
.band__media img { width:100%; height:100%; object-fit:cover; object-position:center; transform:scale(1.08); }
.band__scrim { position:absolute; inset:0; z-index:-1;
  background:linear-gradient(180deg, rgba(10,30,40,.72), rgba(10,30,40,.74)); }
.band__inner { max-width:900px; }
.band__line { width:54px; height:2px; background:var(--accent); margin:0 auto 1.6rem; }
.band__quote { font-family:var(--font-display); font-weight:700; color:var(--text-inv);
  font-size:clamp(1.55rem,3.4vw,2.7rem); line-height:1.2; letter-spacing:-0.02em; max-width:22ch; margin-inline:auto; }
.band__sub { margin-top:1.2rem; color:var(--text-muted-inv); font-size:.9rem; letter-spacing:.14em; text-transform:uppercase; }

/* ============================================================
   Warum wir + Stats
   ============================================================ */
.warum__grid { display:grid; grid-template-columns:1.15fr .85fr; gap:clamp(2.5rem,5vw,5rem); align-items:center; }
.warum__lead { color:var(--text-muted-inv); font-size:1.1rem; margin-bottom:1.8rem; max-width:52ch; }
.checklist { display:flex; flex-direction:column; gap:1.1rem; }
.checklist li { display:flex; gap:.9rem; align-items:flex-start; }
.checklist svg { width:22px; height:22px; flex:none; color:var(--accent); margin-top:.15rem; }
.checklist span { color:var(--text-muted-inv); }
.checklist strong { color:var(--text-inv); font-weight:600; }

.stats { display:grid; grid-template-columns:1fr 1fr; gap:1.2rem; }
.stat { background:var(--bg-elev); border:1px solid var(--border-dark); border-radius:var(--radius); padding:1.7rem 1.4rem; }
.stat__num { font-family:var(--font-display); font-weight:700; font-size:clamp(2.4rem,4vw,3rem); color:var(--accent); line-height:1; letter-spacing:-0.02em; }
.stat__num--text { font-size:clamp(1.8rem,3vw,2.3rem); }
.stat__lbl { margin-top:.5rem; font-size:.92rem; color:var(--text-muted-inv); }

/* ============================================================
   Ablauf — Steps (Flow-Linie)
   ============================================================ */
.steps { display:grid; grid-template-columns:repeat(4,1fr); gap:1.5rem; position:relative; list-style:none; margin:0; padding:0; }
.steps::before {
  content:""; position:absolute; top:26px; left:9%; right:9%; height:2px;
  background:linear-gradient(90deg, var(--accent), rgba(53,214,174,.25));
  z-index:0;
}
.step { position:relative; z-index:1; }
.step__num {
  width:54px; height:54px; border-radius:50%; background:var(--bg-light);
  border:2px solid var(--accent); color:var(--accent-ink);
  font-family:var(--font-display); font-weight:700; font-size:1.35rem;
  display:grid; place-items:center; margin-bottom:1.2rem;
}
.step h3 { font-size:1.2rem; margin-bottom:.5rem; }
.step p { color:var(--text-muted); font-size:.96rem; }

/* ============================================================
   FAQ
   ============================================================ */
.faq__wrap { max-width:820px; margin-inline:auto; }
.faq { display:flex; flex-direction:column; gap:.9rem; }
.faq__item { background:var(--bg-elev); border:1px solid var(--border-dark); border-radius:var(--radius); overflow:hidden; }
.faq__item summary {
  list-style:none; cursor:pointer; padding:1.3rem 1.5rem;
  font-family:var(--font-display); font-weight:500; font-size:1.08rem; color:var(--text-inv);
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
}
.faq__item summary::-webkit-details-marker { display:none; }
.faq__ico { position:relative; width:16px; height:16px; flex:none; }
.faq__ico::before, .faq__ico::after { content:""; position:absolute; background:var(--accent); border-radius:2px; transition:transform .25s var(--ease); }
.faq__ico::before { top:7px; left:0; width:16px; height:2px; }
.faq__ico::after { top:0; left:7px; width:2px; height:16px; }
.faq__item[open] .faq__ico::after { transform:rotate(90deg) scaleX(0); }
.faq__a { padding:0 1.5rem 1.4rem; }
.faq__a p { color:var(--text-muted-inv); }

/* ============================================================
   Kontakt
   ============================================================ */
.contact__grid { display:grid; grid-template-columns:1fr 1fr; gap:clamp(2.5rem,5vw,4.5rem); align-items:start; }
.contact__lead { color:var(--text-muted); margin-bottom:1.8rem; max-width:46ch; }
.contact__meta { display:flex; flex-direction:column; gap:1rem; }
.contact__meta li { display:flex; gap:.8rem; align-items:center; color:var(--text-muted); font-size:.98rem; }
.contact__meta svg { width:22px; height:22px; flex:none; color:var(--accent-ink); }
.contact__meta a { color:var(--accent-ink); font-weight:600; }

.form { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:2rem; }
.field { margin-bottom:1.2rem; }
.field label { display:block; font-size:.9rem; font-weight:600; margin-bottom:.45rem; color:var(--text); }
.field input, .field textarea {
  width:100%; font-family:inherit; font-size:1rem; color:var(--text);
  background:var(--bg-light); border:1px solid var(--border); border-radius:var(--radius-sm);
  padding:.85rem 1rem; transition:border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize:vertical; min-height:120px; }
.field input:focus, .field textarea:focus { outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(53,214,174,.22); }
.field--hp { position:absolute; left:-9999px; }
.form__submit { width:100%; margin-top:.3rem; }
.form__status { margin-top:1rem; font-size:.95rem; min-height:1.2em; }
.form__status.is-ok { color:var(--accent-ink); font-weight:600; }
.form__status.is-err { color:#C0392B; font-weight:600; }
.form__note { margin-top:1rem; font-size:.82rem; color:var(--text-muted); }
.form__note a { color:var(--accent-ink); text-decoration:underline; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background:var(--bg-dark); color:var(--text-inv); padding:3.5rem 0 2.5rem; border-top:1px solid var(--border-dark); }
.site-footer__inner { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:1.5rem; padding-bottom:2rem; border-bottom:1px solid var(--border-dark); }
.site-footer__links { display:flex; flex-wrap:wrap; gap:1.6rem; }
.site-footer__links a { color:var(--text-muted-inv); font-size:.92rem; transition:color .2s var(--ease); }
.site-footer__links a:hover { color:var(--accent); }
.site-footer__copy { padding-top:1.6rem; font-size:.85rem; color:var(--text-muted-inv); }

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal { opacity:0; transform:translateY(26px); transition:opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity:1; transform:none; }
.reveal[data-delay="1"] { transition-delay:.1s; }
.reveal[data-delay="2"] { transition-delay:.2s; }
.reveal[data-delay="3"] { transition-delay:.3s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width:900px) {
  .cards { grid-template-columns:1fr; }
  .warum__grid, .contact__grid { grid-template-columns:1fr; }
  .stats { grid-template-columns:1fr 1fr; }
  .steps { grid-template-columns:1fr 1fr; }
  .steps::before { display:none; }
}
@media (max-width:1024px) {
  .nav nav, .nav__cta--desktop { display:none; }
  .nav__toggle { display:block; margin-left:auto; }
}
@media (max-width:560px) {
  .steps { grid-template-columns:1fr; }
  .hero__actions .btn { width:100%; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
  .reveal { opacity:1 !important; transform:none !important; }
  .hero__net .hero__links path { stroke-dashoffset:0; }
  .hero__net .hero__nodes circle { opacity:.9; }
  .hero__flow .flow-path { stroke-dashoffset:0; }
}
