/* =========================================================
   ProzessBoard Landingpage
   Mobile-first, statisch, ohne externe Abhängigkeiten
   ========================================================= */

:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #edf3ff;
  --text: #182230;
  --muted: #5a6678;
  --primary: #3157c8;
  --primary-dark: #2346aa;
  --accent: #0f766e;
  --border: #dbe3f0;
  --shadow: 0 18px 40px rgba(24, 34, 48, 0.08);
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --radius-sm: 0.75rem;
  --container: 72rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(49, 87, 200, 0.12), transparent 30rem),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 100%);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.45rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.08rem;
  margin-bottom: 0.75rem;
}

p {
  color: var(--muted);
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.narrow {
  max-width: 52rem;
}

.section {
  padding: 4.5rem 0;
}

.section-muted {
  background: rgba(237, 243, 255, 0.72);
}

.section-kicker,
.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header / Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(219, 227, 240, 0.9);
  background: rgba(251, 252, 255, 0.88);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  color: var(--primary);
  border-radius: 0.8rem;
  background: var(--surface-soft);
}

.brand-mark svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-toggle {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-grid;
  place-content: center;
  gap: 0.28rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  width: 1.1rem;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.main-nav {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 1rem;
  right: 1rem;
  display: none;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.main-nav.is-open {
  display: grid;
}

.main-nav a {
  padding: 0.7rem 0.8rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: 0.7rem;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
  background: var(--surface-soft);
}

/* Hero */
.hero {
  padding-top: 3.5rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-text {
  max-width: 42rem;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 12px 24px rgba(49, 87, 200, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--primary-dark);
}

.button-secondary {
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
}

.prototype-note {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.hero-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.hero-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  color: #fff;
  font-size: 1.2rem;
  border-radius: 999px;
  background: var(--accent);
}

.hero-card p {
  margin-bottom: 0;
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 700;
}

/* Content cards */
.soft-card,
.feature-card,
.example-card,
.cta-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.soft-card {
  padding: 1.5rem;
}

.check-list {
  margin: 0;
  padding-left: 1.2rem;
}

.check-list li + li {
  margin-top: 0.65rem;
}

.process-flow {
  display: grid;
  gap: 0.8rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.process-flow li {
  position: relative;
  padding: 1rem 1rem 1rem 3rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.process-flow li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 1.3rem;
  height: 1.3rem;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  background: var(--primary);
  transform: translateY(-50%);
}

.process-flow {
  counter-reset: step;
}

.card-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.feature-card,
.example-card {
  padding: 1.35rem;
}

.feature-card span {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.9rem;
  color: var(--primary-dark);
  border-radius: 0.7rem;
  background: var(--surface-soft);
  font-weight: 700;
}

.feature-card p,
.example-card p {
  margin-bottom: 0;
}

.example-card ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.example-card li + li {
  margin-top: 0.45rem;
}

.audience-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.audience-list span {
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.cta-section {
  padding-top: 1rem;
}

.cta-card {
  padding: 1.5rem;
}

/* Footer */
.site-footer {
  padding: 0 0 2.5rem;
}

.footer-grid {
  display: grid;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-brand {
  margin-bottom: 0.25rem;
  color: var(--text);
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

.footer-note {
  margin-bottom: 0;
  font-size: 0.92rem;
}

/* Desktop enhancements */
@media (min-width: 48rem) {
  .section {
    padding: 5.5rem 0;
  }

  .menu-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .main-nav a {
    padding: 0.55rem 0.7rem;
  }

  .hero {
    padding-top: 5rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 20rem;
  }

  .process-flow {
    grid-template-columns: repeat(3, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .example-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-card {
    padding: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1.2fr auto;
    align-items: start;
  }

  .footer-note {
    grid-column: 1 / -1;
  }
}

@media (min-width: 72rem) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Scroll-to-top button */
.scroll-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 8;
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.15rem;
  border: 0;
  border-radius: 999px;
  background: rgba(35, 70, 170, 0.92);
  box-shadow: 0 12px 24px rgba(24, 34, 48, 0.18);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.6rem);
  transition: opacity 160ms ease, visibility 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover,
.scroll-top:focus-visible {
  background: var(--primary-dark);
}

/* Shared styles for legal subpage */
.legal-page .hero {
  padding-bottom: 2rem;
}

.legal-shell {
  display: grid;
  gap: 1.25rem;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}

.legal-nav a {
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.legal-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legal-card + .legal-card {
  margin-top: 1rem;
}

.legal-card h2,
.legal-card h3 {
  scroll-margin-top: 6rem;
}

.legal-card h3 {
  margin-top: 1.5rem;
}

.legal-card ul {
  color: var(--muted);
}

.legal-meta {
  color: var(--text);
}

.legal-meta p {
  margin-bottom: 0.35rem;
}

@media (min-width: 48rem) {
  .scroll-top {
    right: 1.5rem;
    bottom: 1.5rem;
  }

  .legal-card {
    padding: 2rem;
  }
}

.legal-page .main-nav {
  position: static;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.2rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
