/* ===== flow digital — shared styles ===== */

:root {
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --ink: #12151A;
  --muted: #64707D;
  --border: #E3E7EC;
  --accent: #2D5BFF;
  --accent-2: #00C2A8;
  --radius: 2px;
  --max-w: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1rem; color: var(--ink); }
.muted { color: var(--muted); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; display: block; }

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

/* --- Flow line: signature element --- */
.flowline {
  height: 0px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 45%, transparent 45%, transparent 55%, var(--accent) 55%, var(--accent-2) 100%);
  background-size: 220% 100%;
  animation: flow 6s linear infinite;
}
@keyframes flow {
  0% { background-position: 0% 0; }
  100% { background-position: -220% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .flowline { animation: none; background-position: 0 0; }
}

/* --- Header --- */
header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 248, 250, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.logo span { color: var(--accent); }
.logo:hover { text-decoration: none; }

nav.links {
  display: flex;
  gap: 32px;
}

nav.links a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
nav.links a:hover,
nav.links a[aria-current="page"] {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 760px) {
  nav.links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    display: none;
  }
  nav.links.open { display: flex; }
  nav.links a {
    padding: 16px 32px;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: block; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { background: var(--accent); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* --- Hero --- */
.hero {
  padding: 96px 0 72px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--accent);
}
.hero p.lead {
  max-width: 620px;
  font-size: 1.15rem;
  color: var(--muted);
  margin: 20px 0 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* --- Sections --- */
section { padding: 72px 0; }
section.tight { padding: 48px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { color: var(--muted); margin-top: 12px; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* --- Grid / cards --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
@media (max-width: 760px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  padding: 36px 32px;
}
.card .num {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--accent-2);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: block;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; }

/* --- Stats --- */
.stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 8px;
}
.stat .figure {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--ink);
}
.stat .label {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 4px;
}

/* --- CTA band --- */
.cta-band {
  background: var(--ink);
  color: #fff;
  padding: 72px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,0.7); max-width: 480px; margin: 0 auto 32px; }
.cta-band .btn-primary { background: var(--accent); }
.cta-band .btn-primary:hover { background: var(--accent-2); }

/* --- Footer --- */
footer.site {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-inner .muted { font-size: 0.88rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); font-size: 0.88rem; }
.footer-links a:hover { color: var(--accent); }

/* --- Team / people --- */
.people {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 760px) { .people { grid-template-columns: 1fr; } }
.person .avatar {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.person h3 { margin-bottom: 2px; }
.person .role { color: var(--accent); font-size: 0.88rem; font-weight: 600; }

/* --- Timeline (Über uns) --- */
.timeline {
  border-left: 2px solid var(--border);
  padding-left: 28px;
}
.timeline .entry { position: relative; padding-bottom: 36px; }
.timeline .entry:last-child { padding-bottom: 0; }
.timeline .entry::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.timeline .year {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--accent-2);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 4px;
}

/* --- Referenzen grid --- */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 760px) { .ref-grid { grid-template-columns: 1fr; } }
.ref-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
}
.ref-card .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(45,91,255,0.08);
  padding: 4px 10px;
  border-radius: var(--radius);
  margin-bottom: 14px;
}
.ref-card h3 { margin-bottom: 8px; }
.ref-card p { color: var(--muted); }
.ref-card .result {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}
.ref-card .result strong { color: var(--accent-2); }

/* --- Kontakt --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px;
}
.contact-row {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.contact-row:last-child { border-bottom: none; }
.contact-row .k { color: var(--muted); }
.contact-row .v { font-weight: 600; text-align: right; }

/* Focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
