/* ═══════════════════════════════════════════════════════════════
   forwerts Design System – Landingpages v3
   Fonts: Inter (Google Fonts)
   Colors: Navy #1A2B5E · Teal #00C4A7 · Black #111 · White #fff
═══════════════════════════════════════════════════════════════ */

/* ── TOKENS ──────────────────────────────────────────────────── */
:root {
  --c-navy:    #1A2B5E;
  --c-teal:    #00C4A7;
  --c-teal-d:  #009e87;
  --c-black:   #111111;
  --c-text:    #222222;
  --c-muted:   #555555;
  --c-grey:    #f5f5f5;
  --c-grey-m:  #e8e8e8;
  --c-white:   #ffffff;
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --w-max:     1200px;
  --nav-h:     72px;
  --sub-h:     46px;
  --radius:    12px;
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-white);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── TYPOGRAPHY ──────────────────────────────────────────────── */
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 700; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 700; line-height: 1.35; }
p  { line-height: 1.75; }

/* ── HEADER (Logo only, no nav) ──────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-grey-m);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  box-shadow: 0 1px 16px rgba(0,0,0,0.06);
}
.site-header-inner {
  max-width: var(--w-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3.5rem);
  display: flex;
  align-items: center;
}
.site-header a {
  display: flex;
  align-items: center;
}
.site-header img {
  height: 38px;
  width: auto;
}
.header-close {
  margin-left: auto;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--c-grey-m);
  background: #fff;
  color: var(--c-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s, border-color .2s, transform .25s ease;
}
.header-close:hover {
  background: var(--c-teal);
  border-color: var(--c-teal);
  color: #fff;
  transform: rotate(90deg);
}
.header-close:focus-visible {
  outline: 2px solid var(--c-teal);
  outline-offset: 3px;
}
.header-close svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* ── SUB-NAV ─────────────────────────────────────────────────── */
.sub-nav {
  position: sticky;
  top: var(--nav-h);
  z-index: 100;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-grey-m);
  overflow-x: auto;
  scrollbar-width: none;
  display: block;
}
.sub-nav-inner {
  max-width: var(--w-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3.5rem);
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0;
  height: var(--sub-h);
  align-items: center;
}
.sub-nav::-webkit-scrollbar { display: none; }
.sub-nav a {
  text-decoration: none;
  color: var(--c-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0 1.1rem;
  height: var(--sub-h);
  display: flex;
  align-items: center;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.sub-nav a:first-child { padding-left: 0; }
.sub-nav a:hover,
.sub-nav a.active {
  color: var(--c-teal);
  border-bottom-color: var(--c-teal);
}

/* ── LAYOUT ──────────────────────────────────────────────────── */
.wrap { max-width: var(--w-max); margin: 0 auto; width: 100%; }
.section { padding: clamp(56px, 7vw, 96px) clamp(1.5rem, 5vw, 3.5rem); }
.section-white  { background: var(--c-white); }
.section-grey   { background: var(--c-grey); }
.section-navy   { background: var(--c-navy); color: var(--c-white); }
.section-dark   { background: #0d1220; color: var(--c-white); }

/* ── LABEL / EYEBROW ─────────────────────────────────────────── */
.label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-teal);
  margin-bottom: .75rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 600;
  padding: .3rem .85rem;
  border-radius: 50px;
  background: var(--c-grey);
  color: var(--c-muted);
  border: 1px solid var(--c-grey-m);
}
.tag.active {
  background: rgba(0,196,167,.12);
  color: var(--c-teal);
  border-color: rgba(0,196,167,.3);
}
.eyebrow { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.25rem; }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .95rem;
  font-weight: 600;
  padding: .85rem 1.8rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s;
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-teal);
  color: #fff;
  border-color: var(--c-teal);
}
.btn-primary:hover {
  background: var(--c-teal-d);
  border-color: var(--c-teal-d);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,196,167,.3);
}
.btn-outline {
  background: transparent;
  color: var(--c-navy);
  border-color: var(--c-grey-m);
}
.btn-outline:hover {
  border-color: var(--c-navy);
  background: var(--c-grey);
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.btn-outline-white:hover {
  border-color: #fff;
  background: rgba(255,255,255,.1);
}
.btn-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

/* ── ICON BOXES ──────────────────────────────────────────────── */
.icon-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--c-white);
  border-radius: var(--radius);
  border: 1px solid var(--c-grey-m);
  transition: box-shadow .2s, transform .2s;
}
.icon-box:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.icon-box .icon-wrap {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0,196,167,.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-box .icon-wrap svg { color: var(--c-teal); }
.icon-box h4 { font-size: .95rem; margin-bottom: .2rem; color: var(--c-navy); }
.icon-box p  { font-size: .88rem; color: var(--c-muted); line-height: 1.55; margin: 0; }

/* Pain-point list (left border) */
.pain-list { display: flex; flex-direction: column; gap: .75rem; }
.pain-item {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  background: var(--c-white);
  border-radius: 10px;
  border-left: 3px solid var(--c-teal);
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.pain-item .pi-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-teal);
}
.pain-item h4 { font-size: .95rem; color: var(--c-navy); margin-bottom: .15rem; }
.pain-item p  { font-size: .88rem; color: var(--c-muted); line-height: 1.5; margin: 0; }

/* ── APPROACH CARDS (6-grid) ─────────────────────────────────── */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.approach-card {
  padding: 1.75rem;
  background: var(--c-white);
  border-radius: var(--radius);
  border: 1px solid var(--c-grey-m);
  transition: box-shadow .2s, transform .2s;
}
.approach-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.approach-card .ac-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0,196,167,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--c-teal);
}
.approach-card h3 { font-size: 1rem; color: var(--c-navy); margin-bottom: .5rem; }
.approach-card p  { font-size: .88rem; color: var(--c-muted); line-height: 1.6; margin: 0; }

/* ── PROCESS STEPS ───────────────────────────────────────────── */
.process-steps { display: flex; flex-direction: column; gap: 0; }
.process-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--c-grey-m);
}
.process-step:last-child { border-bottom: none; }
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-teal);
  color: #fff;
  font-size: .85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .2rem;
}
.step-content h3 { font-size: 1.1rem; color: var(--c-navy); margin-bottom: .5rem; }
.step-content p  { font-size: .92rem; color: var(--c-muted); line-height: 1.7; margin: 0; }

/* ── STATS BAR ───────────────────────────────────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--c-grey);
  border-top: 1px solid var(--c-grey-m);
  border-bottom: 1px solid var(--c-grey-m);
}
.stat-item {
  padding: 2rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--c-grey-m);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--c-teal);
  line-height: 1;
  margin-bottom: .35rem;
}
.stat-label { font-size: .82rem; color: var(--c-muted); line-height: 1.4; }

/* ── COMPARISON TABLE ────────────────────────────────────────── */
.compare-table { width: 100%; border-collapse: collapse; margin-top: 2rem; }
.compare-table th {
  padding: .9rem 1.2rem;
  text-align: left;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: var(--c-navy);
  color: #fff;
}
.compare-table th:first-child { border-radius: 8px 0 0 0; }
.compare-table th:last-child  { border-radius: 0 8px 0 0; }
.compare-table td {
  padding: .85rem 1.2rem;
  font-size: .9rem;
  border-bottom: 1px solid var(--c-grey-m);
  vertical-align: top;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: var(--c-grey); }
.compare-table td:first-child { font-weight: 600; color: var(--c-navy); }
.check-yes { color: var(--c-teal); font-weight: 600; }
.check-no  { color: #999; }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: .5rem; }
.faq-item {
  border: 1px solid var(--c-grey-m);
  border-radius: 10px;
  overflow: hidden;
  background: var(--c-white);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  color: var(--c-navy);
  text-align: left;
  transition: background .15s;
}
.faq-q:hover { background: var(--c-grey); }
.faq-q .faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .3s;
  font-size: .9rem;
  color: var(--c-muted);
}
.faq-item.open .faq-icon {
  background: var(--c-teal);
  color: #fff;
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 1.4rem;
  font-size: .9rem;
  color: var(--c-muted);
  line-height: 1.7;
  transition: max-height .35s ease, opacity .3s ease, padding-bottom .35s ease;
}
.faq-item.open .faq-a {
  max-height: 500px;
  opacity: 1;
  padding-bottom: 1.1rem;
}

/* ── LOGOS SECTION ───────────────────────────────────────────── */
.logos-section { padding: 3.5rem 0; background: var(--c-white); border-top: 1px solid var(--c-grey-m); }
.logos-section .wrap { padding: 0 clamp(1.5rem, 5vw, 3.5rem); }
.logos-intro { text-align: center; margin-bottom: 2rem; }
.logos-intro p { font-size: .9rem; color: var(--c-muted); }
.logos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3.5rem;
  align-items: center;
  justify-content: center;
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3.5rem);
}
.logos-grid img {
  height: 44px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: .55;
  filter: grayscale(100%);
  transition: opacity .2s, filter .2s;
}
.logos-grid img:hover {
  opacity: .9;
  filter: grayscale(0%);
}

/* ── BRANCHEN GRID ───────────────────────────────────────────── */
.branchen-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.branche-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  padding: 1.25rem 1rem;
  background: var(--c-white);
  border: 1px solid var(--c-grey-m);
  border-radius: var(--radius);
  text-align: center;
  transition: box-shadow .2s, transform .2s;
}
.branche-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.branche-card svg { color: var(--c-navy); }
.branche-card span { font-size: .82rem; font-weight: 600; color: var(--c-navy); }

/* ── CONTACT SECTION ─────────────────────────────────────────── */
.contact-section {
  background: var(--c-navy);
  color: var(--c-white);
  padding: clamp(56px, 7vw, 96px) clamp(1.5rem, 5vw, 3.5rem);
}
.contact-inner {
  max-width: var(--w-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.contact-text h2 { color: #fff; margin-bottom: 1rem; }
.contact-text p  { color: rgba(255,255,255,.7); line-height: 1.75; margin-bottom: 1.5rem; }
.contact-details { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.5rem; }
.contact-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: rgba(255,255,255,.8);
  font-size: .95rem;
  transition: color .2s;
}
.contact-link:hover { color: var(--c-teal); }
.contact-link svg { flex-shrink: 0; color: var(--c-teal); }
.contact-cta {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
  padding: 2.5rem;
}
.contact-cta h3 { color: #fff; margin-bottom: .75rem; font-size: 1.25rem; }
.contact-cta p  { color: rgba(255,255,255,.65); font-size: .9rem; margin-bottom: 1.5rem; }

/* ── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
  background: #0a0f1e;
  color: rgba(255,255,255,.5);
  padding: 1.5rem clamp(1.5rem, 5vw, 3.5rem);
  font-size: .82rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer a { color: rgba(255,255,255,.5); transition: color .2s; }
.site-footer a:hover { color: var(--c-teal); }
.footer-links { display: flex; gap: 1.5rem; }

/* ── SCROLL REVEAL ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .approach-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .branchen-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-inner { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
  .approach-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .branchen-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step { grid-template-columns: 1fr; }
  .step-num { margin-bottom: .5rem; }
}

/* ═══════════════════════════════════════════════════════════════
   SUB-NAV – Mobiles Burgermenü
═══════════════════════════════════════════════════════════════ */

/* Links-Wrapper: Desktop = horizontale Reihe (wie zuvor) */
.sub-nav-links {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
}

/* Burger-Button (nur mobil sichtbar) */
.sub-nav-toggle {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  width: 100%;
  height: var(--sub-h);
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  color: var(--c-navy);
}
.sub-nav-toggle-label {
  flex: 0 1 auto;
  min-width: 0;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s;
}
.sub-nav-toggle[aria-expanded="true"] .sub-nav-toggle-label { color: var(--c-teal); }

.sub-nav-burger {
  position: relative;
  flex-shrink: 0;
  width: 22px;
  height: 14px;
}
.sub-nav-burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--c-navy);
  transition: transform .25s ease, opacity .2s ease, top .25s ease, background .2s;
}
.sub-nav-burger span:nth-child(1) { top: 0; }
.sub-nav-burger span:nth-child(2) { top: 6px; }
.sub-nav-burger span:nth-child(3) { top: 12px; }
.sub-nav-toggle[aria-expanded="true"] .sub-nav-burger span { background: var(--c-teal); }
.sub-nav-toggle[aria-expanded="true"] .sub-nav-burger span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.sub-nav-toggle[aria-expanded="true"] .sub-nav-burger span:nth-child(2) { opacity: 0; }
.sub-nav-toggle[aria-expanded="true"] .sub-nav-burger span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Mobil: Linkleiste wird zum Dropdown */
@media (max-width: 900px) {
  .sub-nav { overflow: visible; }
  .sub-nav-toggle { display: flex; }

  .sub-nav-links {
    position: absolute;
    top: var(--sub-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
    background: var(--c-white);
    border-bottom: 1px solid var(--c-grey-m);
    box-shadow: 0 14px 28px rgba(0,0,0,.10);
    padding: .6rem clamp(1.25rem, 5vw, 2.5rem) .9rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height .3s ease, opacity .2s ease;
  }
  .sub-nav-links.open {
    max-height: calc(100vh - var(--nav-h) - var(--sub-h));
    overflow-y: auto;
    opacity: 1;
    pointer-events: auto;
  }
  .sub-nav-links a,
  .sub-nav-links a:first-child {
    width: 100%;
    height: auto;
    padding: .8rem .85rem;
    border-bottom: none;
    border-radius: 8px;
  }
  .sub-nav-links a:hover,
  .sub-nav-links a.active {
    color: var(--c-teal);
    background: rgba(0,196,167,.08);
    border-bottom-color: transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sub-nav-links,
  .sub-nav-burger span,
  .faq-a,
  .faq-icon,
  .header-close { transition: none; }
  .header-close:hover { transform: none; }
}
