/* ============================================================
   SCHUL HAAS — Landing Page
   Order: variables → reset → layout → components → responsive
   ============================================================ */

/* ---------- VARIABLES ---------- */
:root {
  /* surfaces */
  --bg: #FFFFFF;
  --bg-subtle: #F2F2F2;
  --bg-grid: #F7F7F7;
  --card: #FFFFFF;

  /* borders */
  --border: rgba(10, 10, 10, 0.08);
  --border-strong: rgba(10, 10, 10, 0.14);

  /* text */
  --text: #0A0A0A;
  --text-muted: #6B6B6B;
  --text-faint: #9A9A9A;

  /* brand */
  --primary: #E85D04;
  --primary-light: #FF8C00;
  --primary-glow: #FFBA08;
  --primary-soft: #FFF3E8;
  --primary-softer: #FFF9F2;
  --success: #10B981;

  --gradient: linear-gradient(135deg, #FBA82B 0%, #F47A1A 50%, #E85D04 100%);
  --gradient-soft: linear-gradient(135deg, #FFF3E8 0%, #FFE4CC 100%);

  /* type */
  --font-body: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Instrument Sans', system-ui, -apple-system, sans-serif;

  /* shadows */
  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.04);
  --shadow-md: 0 4px 12px rgba(10, 10, 10, 0.06), 0 20px 40px rgba(10, 10, 10, 0.08);
  --shadow-lg: 0 20px 60px rgba(10, 10, 10, 0.10), 0 4px 16px rgba(10, 10, 10, 0.04);

  /* layout */
  --container: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
}

/* ---------- RESET ---------- */
*, *::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: 18px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

p { color: var(--text-muted); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 100px 0; }
.section-alt { background: var(--bg-subtle); }

.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-top: 18px;
}
.hero-title { font-weight: 700; }
.section-sub {
  font-size: 1.125rem;
  margin-top: 18px;
  max-width: 620px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ---------- BADGES ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid rgba(232, 93, 4, 0.15);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: -0.01em;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary);
}
.badge-soft { background: var(--primary-soft); }

.tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 9px 20px;
  border-radius: var(--radius-pill);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-sm { padding: 10px 20px; font-size: 0.9375rem; }
.btn-block { width: 100%; padding: 16px 24px; }

.btn-primary {
  color: #fff;
  background: var(--gradient);
  border: none;
  box-shadow: 0 8px 20px rgba(255, 138, 31, 0.22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255, 138, 31, 0.30); }
.btn-primary .arrow { transition: transform 0.2s ease; }
.btn-primary:hover .arrow { transform: translateX(3px); }

.btn-ghost {
  color: var(--text);
  /* solid fill in the hero grid's base colour, so no grid lines show through */
  background: var(--bg-grid);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--bg-subtle);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(10, 10, 10, 0.12);
}

/* ---------- CARD BASE ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  /* constant top padding so the pill floats free of the top edge in BOTH
     states — content never moves, only the pill background fades in */
  padding-top: 12px;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding-inline: 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  /* top: fully transparent, the background grid shows through */
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
/* on scroll: the lightly-frosted pill (0.8 opacity) pops out around the
   unchanged nav content — no horizontal shift of the logo or links */
.site-header.scrolled .nav-inner {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(14px);
  border-color: var(--border);
  box-shadow: 0 12px 40px rgba(10, 10, 10, 0.12), 0 2px 8px rgba(10, 10, 10, 0.05);
}
.logo { display: inline-flex; align-items: center; }
.logo-text {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9375rem;
  line-height: 1;
  letter-spacing: 0.05em;
}
.logo-rule {
  height: 2px;
  background: var(--primary);
  margin: 3px 0;
}
.main-nav {
  display: flex;
  gap: 36px;
  font-size: 0.9375rem;
  font-weight: 500;
}
.main-nav a { color: var(--text-muted); transition: color 0.15s ease; }
.main-nav a:hover { color: var(--text); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  /* pull the grid up behind the transparent header (header height = 80px:
     12px padding-top + 68px nav height); the matching extra top padding keeps
     the hero content exactly where it was, so the grid reaches the very top */
  margin-top: -80px;
  padding: 160px 0 90px;
  background-color: var(--bg-grid);
  background-image:
    linear-gradient(rgba(10,10,10,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,10,10,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}
/* fade the grid lines out toward the bottom of the hero */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 240px;
  background: linear-gradient(to bottom, transparent, var(--bg-grid));
  pointer-events: none;
  z-index: 0;
}
.hero-grid { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero-title {
  font-size: clamp(2.6rem, 5vw, 4rem);
  margin-top: 24px;
}
.hero-title .accent {
  color: var(--primary);
  -webkit-text-fill-color: var(--primary);
}
.hero-sub {
  font-size: 1.1875rem;
  margin-top: 24px;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.hero-note {
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--text-faint);
}
.hero-note .check { color: var(--primary); font-weight: 700; }

/* ---- hero visual (automation flow card) ---- */
.hero-visual { position: relative; min-width: 0; }
.flow-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow-lg);
}
/* macOS-style window title bar: full-bleed, traffic-light dots, centred title */
.flow-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -22px -22px 18px;
  padding: 14px 18px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  border-radius: 20px 20px 0 0;
}
.flow-dots { display: inline-flex; gap: 6px; }
.flow-dots i {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #D6D6D1;
}
.flow-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 600;
  font-size: 0.9375rem;
}
.flow-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem; font-weight: 600; color: var(--success);
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }

.flow-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-subtle);
}
.flow-step.is-active {
  background: var(--gradient);
  border: none;
  box-shadow: 0 10px 24px rgba(255, 138, 31, 0.24);
}
.flow-step.is-active .flow-label { color: rgba(255,255,255,0.8); }
.flow-step.is-active .flow-name { color: #fff; }
.flow-step.is-active .flow-icon { background: rgba(255,255,255,0.22); color: #fff; }
.flow-icon {
  width: 38px; height: 38px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
}
.flow-icon svg { width: 19px; height: 19px; display: block; }
.flow-body { display: flex; flex-direction: column; }
.flow-label { font-size: 0.625rem; font-weight: 700; letter-spacing: 0.1em; color: var(--text-faint); }
.flow-name { font-size: 0.9375rem; font-weight: 600; }
.flow-step-num {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-faint);
  white-space: nowrap;
  background: var(--primary-softer);
  border: 1px solid rgba(232, 93, 4, 0.12);
  padding: 6px 12px;
  border-radius: 8px;
}
.flow-step.is-active .flow-step-num {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.28);
}
.flow-connector {
  position: relative;
  width: 2px;
  height: 46px;
  margin-inline: auto;
  background: none;
}
/* short vertical line, centred in the gap with space above and below */
.flow-connector::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 2px;
  height: 16px;
  background: rgba(232, 93, 4, 0.32);
}
/* down-chevron arrow just below the line */
.flow-connector::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 26px;
  width: 7px; height: 7px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: translate(-50%, 0) rotate(45deg);
}
.flow-badge {
  position: absolute;
  right: -12px;
  bottom: -22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
}
.flow-badge-icon {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--gradient);
  color: #fff;
}
.flow-badge-icon svg { width: 21px; height: 21px; display: block; }
.flow-badge-text { display: flex; flex-direction: column; }
.flow-badge-label { font-size: 0.625rem; font-weight: 700; letter-spacing: 0.1em; color: var(--text-faint); }
.flow-badge-value { font-size: 1.05rem; font-weight: 700; color: var(--text); }

/* ============================================================
   INTEGRATION STRIP
   ============================================================ */
.integrations {
  padding: 40px 0;
  background: #EAEAEA;
  border-bottom: 1px solid var(--border);
}
.integrations-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 28px;
}
/* animated logo marquee — full-bleed, seamless infinite loop */
.marquee {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 60s linear infinite;
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 64px;
}
.marquee-item img {
  height: 32px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.55;
  transition: filter 0.25s ease, opacity 0.25s ease;
}
.marquee-name {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-faint);
  white-space: nowrap;
  transition: color 0.25s ease;
}
/* only the hovered logo gains colour; the animation keeps running */
.marquee-item:hover img { filter: none; opacity: 1; }
.marquee-item:hover .marquee-name { color: var(--text); }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; gap: 24px 48px; width: 100%; }
  .marquee-item { padding-right: 0; }
}

/* ============================================================
   PROBLEM CARDS
   ============================================================ */
.problem-card .card-icon,
.card-icon {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  font-size: 1.2rem;
  margin-bottom: 18px;
  color: var(--primary);
}
.card-icon svg { width: 22px; height: 22px; }
.problem-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.problem-card p { font-size: 0.9375rem; }

/* ============================================================
   SOLUTION CARDS
   ============================================================ */
.solution-card { display: flex; flex-direction: column; padding: 32px; }
.solution-card h3 { font-size: 1.5rem; color: var(--primary); margin: 18px 0 12px; }
.solution-card p { font-size: 0.9375rem; }

/* ---- mock panel ---- */
.mock {
  margin-top: 24px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  font-size: 0.875rem;
}
.mock-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.mock-dots { display: inline-flex; gap: 5px; }
.mock-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.mock-dots i:first-child { background: var(--primary); }
.mock-title { color: var(--text-faint); }

/* ---- row cards ---- */
.mock-rows { display: flex; flex-direction: column; gap: 10px; }
.mock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text-muted);
}
.mock-row.hl { background: var(--primary-soft); border-color: rgba(232, 93, 4, 0.22); }
.mock-val { font-weight: 700; color: var(--text); }
.mock-val.pos { color: var(--primary); }

/* ---- progress bar ---- */
.mock-bar { height: 6px; border-radius: var(--radius-pill); background: var(--border); overflow: hidden; }
.mock-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary-glow), var(--primary)); }

/* ---- chat ---- */
.mock-chat { display: flex; flex-direction: column; gap: 10px; }
.chat-q, .chat-a { max-width: 85%; padding: 12px 15px; line-height: 1.45; }
.chat-q {
  align-self: flex-end;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 14px 14px 4px 14px;
}
.chat-a {
  align-self: flex-start;
  background: var(--primary);
  color: #fff;
  border-radius: 14px 14px 14px 4px;
}
.chat-typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 9px 12px;
}
.chat-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-faint); }

/* ---- footer line ---- */
.solution-card .solution-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
}
.solution-foot svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}
/* center rail + scroll-driven fill */
.timeline-line {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: var(--border-strong);
  border-radius: 2px;
  z-index: 0;
}
.timeline-line-fill {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%; /* no-JS fallback: full */
  border-radius: 2px;
  background: linear-gradient(180deg, var(--primary-glow), var(--primary));
}
.timeline.is-animated .timeline-line-fill { height: 0; }

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 44px;
  margin-bottom: 48px;
}
.timeline-item-left { left: 0; text-align: right; }
.timeline-item-right { left: 50%; }
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  --glow: 0 0 0 6px rgba(232, 93, 4, 0.12), 0 0 0 13px rgba(232, 93, 4, 0.06), 0 0 18px 5px rgba(232, 93, 4, 0.40);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--primary);
  box-shadow: var(--glow);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  z-index: 2;
}
.timeline-item-left .timeline-dot { right: -10px; }
.timeline-item-right .timeline-dot { left: -10px; }
/* with JS: dots start empty (hollow grey, glow transparent) and light up once the fill reaches them */
.timeline.is-animated .timeline-dot {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 6px rgba(232, 93, 4, 0), 0 0 0 13px rgba(232, 93, 4, 0), 0 0 18px 5px rgba(232, 93, 4, 0);
}
.timeline.is-animated .timeline-dot.is-reached {
  border-color: var(--primary);
  box-shadow: var(--glow);
}

.timeline-card { display: inline-block; text-align: left; max-width: 360px; }
.timeline-step {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}
.timeline-card h4 { font-size: 1.375rem; margin: 8px 0 8px; }
.timeline-card p { font-size: 0.9375rem; }
/* cards, rail and dots stay statically visible; only the fill animates on scroll */

/* ============================================================
   REASSURANCE ("Kein Risiko")
   ============================================================ */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.trust-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}
.trust-check {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  margin-top: 2px;
}
.trust-check svg { width: 16px; height: 16px; display: block; }
.trust-text { display: flex; flex-direction: column; }
.trust-text strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 6px;
}
.trust-text span { font-size: 0.9375rem; color: var(--text-muted); }

/* ============================================================
   TEAM
   ============================================================ */
.team-grid { gap: 24px; }
.team-card {
  text-align: center;
  padding: 36px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.team-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.team-photo {
  width: 116px; height: 116px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  background: var(--bg-subtle);
  /* soft diffuse glow, no white ring */
  box-shadow: 0 12px 30px rgba(10, 10, 10, 0.16), 0 4px 10px rgba(10, 10, 10, 0.08);
}
.team-card h3 { font-size: 1.375rem; }
.team-role {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 6px 0 14px;
}
.team-card p { font-size: 0.9375rem; max-width: 320px; margin: 0 auto; }
.team-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.team-social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.15s ease;
}
.team-social a svg { width: 17px; height: 17px; display: block; }
.team-social a:hover { background: var(--primary-soft); color: var(--primary); border-color: transparent; }

/* ============================================================
   CTA / CONTACT
   ============================================================ */
.cta-section { background: var(--bg); }

/* one large elevated white card holding copy (left) + form (right) */
.cta-form-container {
  max-width: 1080px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  padding: 56px;
}
.cta-form-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: stretch;
}

/* ---- left column: copy + benefits ---- */
.cta-form-text {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.cta-form-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.cta-form-accent { font-style: italic; color: var(--primary); }
.cta-form-subline {
  margin-top: 22px;
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 440px;
}
.cta-form-benefits {
  margin-top: auto;
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cta-form-benefit { display: flex; align-items: center; gap: 14px; }
.cta-form-check {
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
}
.cta-form-check svg { width: 17px; height: 17px; display: block; }
.cta-form-benefit-text { display: flex; flex-direction: column; line-height: 1.3; }
.cta-form-benefit-text strong { font-weight: 600; font-size: 1rem; color: var(--text); }
.cta-form-benefit-text span { font-size: 0.8125rem; color: var(--text-muted); }

/* ---- right column: form ---- */
.cta-form { display: flex; flex-direction: column; gap: 16px; }
.cta-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cta-form-input,
.cta-form-textarea {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  width: 100%;
  padding: 15px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  resize: vertical;
}
.cta-form-textarea { min-height: 150px; line-height: 1.5; }
.cta-form-input::placeholder,
.cta-form-textarea::placeholder { color: var(--text-faint); }
.cta-form-input:focus,
.cta-form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.1);
}
.cta-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  width: 100%;
  margin-top: 4px;
  padding: 18px 24px;
  border: none;
  border-radius: 14px;
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 8px 20px rgba(255, 138, 31, 0.22);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.cta-form-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 138, 31, 0.30);
}
.cta-form-submit:disabled { opacity: 0.65; cursor: default; }
.cta-form-submit svg { width: 19px; height: 19px; }
.cta-form-status {
  font-size: 0.875rem;
  text-align: center;
  line-height: 1.4;
}
.cta-form-status.success { color: var(--success); }
.cta-form-status.error { color: #DC2626; }
.cta-form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-muted);
  cursor: pointer;
}
.cta-form-consent input {
  flex: none;
  width: 17px; height: 17px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}
.cta-form-consent a { color: var(--primary); text-decoration: underline; }
.cta-form-consent a:hover { text-decoration: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 80px 0 32px;
  background: #0A0A0A;
  color: #fff;
  overflow-x: hidden;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
/* logo turns white on the dark footer (rule follows via currentColor) */
.logo-footer .logo-text { color: #fff; }
.footer-brand { max-width: 360px; }
.footer-tagline { margin-top: 22px; font-size: 0.9375rem; color: rgba(255, 255, 255, 0.6); }
.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 22px;
}
.footer-col a {
  display: block;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 14px;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 64px;
  padding-top: 24px;
}
/* divider spans the full viewport width, not just the container */
.footer-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-bottom p { font-size: 0.8125rem; color: rgba(255, 255, 255, 0.45); }
.footer-credit { color: #fff; font-weight: 600; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .hero-title { font-size: clamp(2.4rem, 5vw, 3.4rem); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero-visual { max-width: 460px; }
  .cta-form-content { grid-template-columns: 1fr; gap: 40px; }
  .cta-form-benefits { margin-top: 8px; padding-top: 0; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 128px 0 64px; }
  .grid-2 { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 36px; }
  .section-title { text-align: left; }

  /* hero scales down so headline never overflows narrow viewports */
  .hero-title { font-size: clamp(2rem, 8.5vw, 2.8rem); }
  .hero-sub { font-size: 1.0625rem; }
  .hero-visual { max-width: 100%; }
  .flow-step { padding: 12px 14px; }
  .flow-name { font-size: 0.875rem; }
  .flow-badge { position: static; margin-top: 16px; width: max-content; box-shadow: var(--shadow-sm); }

  /* integration label wraps instead of overflowing */
  .integrations-label { font-size: 0.6875rem; letter-spacing: 0.08em; }
  .logo-row { gap: 14px 28px; }

  /* marquee: logos only, no software names on mobile */
  .marquee-name { display: none; }
  .marquee-item { gap: 0; padding-right: 44px; }

  /* nav: hide links, keep logo + CTA */
  .main-nav { display: none; }

  /* timeline collapses to single rail on the left */
  .timeline { max-width: 100%; }
  .timeline-line { left: 8px; }
  .timeline-item,
  .timeline-item-left,
  .timeline-item-right {
    width: 100%;
    left: 0;
    text-align: left;
    padding: 0 0 0 40px;
    margin-bottom: 32px;
  }
  .timeline-item-left .timeline-dot,
  .timeline-item-right .timeline-dot { left: -2px; right: auto; }
  .timeline-card { max-width: 100%; }

  .trust-grid { grid-template-columns: 1fr; gap: 16px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .cta-form-row { grid-template-columns: 1fr; }
  .cta-form-container { padding: 28px 22px; }
  .hero-actions .btn { width: 100%; }
  .flow-badge { right: 0; bottom: -16px; }
}

/* ===================== LEGAL PAGES (Impressum / Datenschutz) ===================== */
.legal {
  padding: 140px 0 80px;
  background: #f3f4f6;
}
/* content sits in a centered white sheet on a light-gray page */
.legal .container {
  background: #fff;
  border-radius: 24px;
  padding: 72px clamp(28px, 6vw, 88px);
  box-shadow: 0 24px 60px -28px rgba(15, 20, 35, 0.18);
}
.legal .legal-head {
  margin-bottom: 48px;
}
.legal h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.legal .legal-meta {
  color: var(--color-muted, #6b7280);
  font-size: 0.95rem;
}
.legal-content {
  max-width: 760px;
}
.legal-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 48px 0 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e5e7eb;
}
.legal-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 28px 0 10px;
}
.legal-content p {
  line-height: 1.7;
  margin: 0 0 14px;
  color: var(--color-text, #1f2433);
}
.legal-content a {
  color: var(--color-accent, #f4561e);
  text-decoration: none;
}
.legal-content a:hover { text-decoration: underline; }
.legal-content ul {
  line-height: 1.7;
  margin: 0 0 14px;
  padding-left: 20px;
}
.legal-content strong { font-weight: 600; }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-weight: 500;
  color: var(--color-accent, #f4561e);
  text-decoration: none;
}
.legal-back:hover { text-decoration: underline; }
