/* =========================================================
   Faber IT — One-Pager  ·  Dunkel-technisch, seriös
   Schrift:  Inter (single family)
   Farben:   Basis #0F172A · Text #F8FAFC · Akzent #38BDF8 / #22C55E
   Regeln:   ui-ux-pro-max (Kontrast AA, SVG-Icons, Fokus, 4/8px-Raster)
   ========================================================= */

:root {
  /* Farb-Token */
  --bg:           #0F172A;
  --bg-2:         #0B1220;   /* abgesetzte/dunklere Bänder */
  --surface:      #1E293B;
  --surface-2:    #172033;
  --text:         #F8FAFC;
  --text-muted:   #94A3B8;
  --border:       #334155;
  --border-soft:  #243044;
  --accent:       #38BDF8;
  --accent-strong:#0EA5E9;
  --accent-green: #22C55E;
  --cta-text:     #04121F;
  --danger:       #EF4444;

  /* Maße */
  --maxw: 1140px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --radius: 12px;
  --radius-lg: 18px;

  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Type-Scale */
  --fs-eyebrow: 0.8rem;
  --fs-body: clamp(1rem, 0.97rem + 0.18vw, 1.0625rem);
  --fs-h3: clamp(1.2rem, 1.05rem + 0.6vw, 1.4rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 2.1vw, 2.6rem);
  --fs-h1: clamp(2.1rem, 1.4rem + 3.4vw, 3.6rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

/* ---------- A11y helpers ---------- */
.skip-link {
  position: absolute;
  left: -999px; top: 0;
  background: var(--accent);
  color: var(--cta-text);
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
  z-index: 200;
}
.skip-link:focus { left: 0; }

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

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 1.6rem; height: 2px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow--accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  --btn-py: 0.8rem;
  --btn-px: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: var(--btn-py) var(--btn-px);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { --btn-py: 0.55rem; --btn-px: 1.05rem; min-height: 40px; font-size: 0.9rem; }
.btn--lg { --btn-py: 0.95rem; --btn-px: 1.8rem; font-size: 1.02rem; }

.btn--primary {
  background: var(--accent);
  color: var(--cta-text);
  box-shadow: 0 10px 24px -12px rgba(56,189,248,0.8);
}
.btn--primary:hover { background: #5CCcFb; }
.btn--ghost {
  color: var(--text);
  border-color: var(--border);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--accent); background: rgba(56,189,248,0.07); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.85rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand__mark { width: 26px; height: 26px; color: var(--accent); display: inline-flex; }
.brand__mark svg { width: 100%; height: 100%; }
.brand__text { color: var(--text); }
.brand__accent { color: var(--accent); }

.nav { display: flex; align-items: center; gap: clamp(0.85rem, 2vw, 1.75rem); }
.nav > a:not(.nav__cta) { color: var(--text-muted); font-size: 0.95rem; font-weight: 500; transition: color 0.15s ease; }
.nav > a:not(.nav__cta):hover { color: var(--text); }

/* ---------- Section shell ---------- */
main > section { max-width: var(--maxw); margin: 0 auto; padding: clamp(3.5rem, 8vw, 6.5rem) var(--pad); }
.section-head { max-width: 46ch; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section-head__lead { color: var(--text-muted); margin-top: 0.9rem; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__title { max-width: 18ch; margin-bottom: 1.4rem; }
.hero__lead {
  max-width: 52ch;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
  margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero__visual {
  margin: 0;
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: 0 30px 60px -36px rgba(0,0,0,0.7);
}
.diagram { width: 100%; height: auto; display: block; }
.diagram__nodes rect {
  fill: var(--bg-2);
  stroke: var(--border);
  stroke-width: 1;
}
.node--core rect { stroke: var(--accent); fill: rgba(56,189,248,0.08); }
.node--auto rect { stroke: var(--accent-green); }
.diagram__nodes text {
  fill: var(--text);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  text-anchor: middle;
}
.node--core text { fill: var(--accent); }
.hero__visual-cap {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- Stats ---------- */
.stats { background: var(--bg-2); border-block: 1px solid var(--border-soft); max-width: none; }
.stats__list {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.stat { text-align: center; }
.stat__num {
  display: block;
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat__label { display: block; margin-top: 0.35rem; color: var(--text-muted); font-size: 0.92rem; }
.stats__note { max-width: var(--maxw); margin: 1.75rem auto 0; text-align: center; font-size: 0.78rem; color: #64748B; }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem 1.9rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 24px 44px -28px rgba(0,0,0,0.8);
}
.card__icon {
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px;
  background: rgba(56,189,248,0.1);
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { color: var(--text); margin-bottom: 0.55rem; }
.card p { color: var(--text-muted); }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step { border-top: 2px solid var(--border); padding-top: 1.2rem; }
.step__num {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.7rem;
}
.step h3 { color: var(--text); margin-bottom: 0.4rem; }
.step p { color: var(--text-muted); }

/* ---------- Testimonial ---------- */
.quote { max-width: none; background: var(--bg-2); border-block: 1px solid var(--border-soft); }
.quote__fig { max-width: 760px; margin: 0 auto; text-align: center; }
.quote__mark { width: 38px; height: 38px; color: var(--accent); opacity: 0.8; margin-bottom: 1rem; }
.quote blockquote {
  margin: 0;
  font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.9rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text);
}
.quote figcaption { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.15rem; }
.quote__name { font-weight: 600; }
.quote__role { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Person ---------- */
.person { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.person__portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background:
    radial-gradient(120% 120% at 30% 15%, rgba(56,189,248,0.18) 0%, var(--surface) 55%);
  display: grid; place-items: center;
  position: relative; overflow: hidden;
}
.person__portrait::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 13px, rgba(255,255,255,0.02) 13px 14px);
}
.person__placeholder { z-index: 1; color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.person__copy h2 { margin-bottom: 1.2rem; }
.person__copy p { color: var(--text-muted); max-width: 54ch; margin-bottom: 1rem; }

/* ---------- FAQ ---------- */
.faq__list { display: grid; gap: 0.75rem; max-width: 800px; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  min-height: 44px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }
.faq__chevron { width: 20px; height: 20px; flex: none; color: var(--text-muted); transition: transform 0.2s ease; }
.faq__item[open] .faq__chevron { transform: rotate(180deg); color: var(--accent); }
.faq__item > p { padding: 0 1.35rem 1.25rem; color: var(--text-muted); margin: 0; }

/* ---------- Contact ---------- */
.contact { max-width: none; }
.contact__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad);
  text-align: center;
}
.contact h2 { max-width: 18ch; margin: 0 auto 1.1rem; }
.contact__lead { max-width: 46ch; margin: 0 auto 2.1rem; color: var(--text-muted); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: center; }
.contact__mail { color: var(--accent); font-weight: 600; border-bottom: 1px solid transparent; transition: border-color 0.15s ease; }
.contact__mail:hover { border-bottom-color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border-soft); }
.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem var(--pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.site-footer__brand { font-weight: 700; color: var(--text); }
.site-footer__copy { font-variant-numeric: tabular-nums; }
.site-footer__legal { display: flex; gap: 1.25rem; margin-left: auto; }
.site-footer__legal a { transition: color 0.15s ease; }
.site-footer__legal a:hover { color: var(--text); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: 2; max-width: 460px; }
  .service-grid, .steps { grid-template-columns: 1fr; }
  .stats__list { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1rem; }
  .person { grid-template-columns: 1fr; }
  .person__portrait { max-width: 300px; }
}
@media (max-width: 640px) {
  .nav > a:not(.nav__cta) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
