:root {
  --ink: #162028;
  --muted: #5a6670;
  --paper: #f3f1ec;
  --panel: #fbfaf7;
  --accent: #e87a2e;
  --accent-deep: #d4652a;
  --accent-rgb: 232, 122, 46;
  --steel: #1a1f26;
  --steel-mid: #252b34;
  --silver: #c5ced8;
  --silver-rgb: 197, 206, 216;
  --steel-rgb: 139, 151, 165;
  --line: rgba(22, 32, 40, 0.12);
  --font-brand: "Fraunces", Georgia, serif;
  --font-body: "Sora", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(232, 122, 46, 0.1), transparent 55%),
    radial-gradient(900px 500px at 100% 20%, rgba(26, 31, 38, 0.06), transparent 50%),
    linear-gradient(180deg, #ebe7df 0%, var(--paper) 40%, #e7ecef 100%);
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.85rem clamp(1rem, 3vw, 2rem);
  background: rgba(251, 250, 247, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(251, 250, 247, 0.94);
}

.brand,
.brand-lockup,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

/* Rundes LP wie in LeanPIM */
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f4f6f8 0%, #c8d0d9 45%, #a8b3c0 100%);
  color: #2a313a;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.18);
}

.brand-name {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  gap: 1rem;
  margin-left: auto;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  border-radius: 0.55rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #1a1410;
}

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

.btn-ghost {
  background: transparent;
  border-color: rgba(245, 247, 249, 0.35);
  color: #f2f4f6;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-header {
  background: var(--steel);
  color: #f2f4f6;
  padding: 0.55rem 0.95rem;
  font-size: 0.88rem;
}

.btn-header:hover {
  background: #0f1318;
}

/* Hero: Bild + Orbits */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 6.5rem clamp(1.25rem, 5vw, 4rem) 3.5rem;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: url("hero.jpg") center / cover no-repeat;
  transform: scale(1.04);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(18, 24, 30, 0.88) 0%, rgba(18, 24, 30, 0.72) 42%, rgba(18, 24, 30, 0.45) 70%, rgba(18, 24, 30, 0.28) 100%),
    linear-gradient(0deg, rgba(18, 24, 30, 0.35) 0%, transparent 40%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(240px, 380px) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  width: min(1100px, 100%);
  margin: 0 auto;
}

.pulse-stage {
  position: relative;
  width: min(340px, 78vw);
  height: min(340px, 78vw);
  margin: 0 auto;
}

.orbit {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(var(--silver-rgb), 0.22);
  border-radius: 50%;
}

.orbit .node {
  position: absolute;
  top: 0;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.35);
  animation: node-glow 1.8s ease-in-out infinite;
}

.orbit-a {
  inset: 4%;
  animation: spin 18s linear infinite;
}

.orbit-a .node {
  background: var(--silver);
  box-shadow: 0 0 10px rgba(var(--silver-rgb), 0.45);
}

.orbit-b {
  inset: 18%;
  border-color: rgba(var(--accent-rgb), 0.28);
  animation: spin-reverse 12s linear infinite;
}

.orbit-b .node {
  animation-delay: 0.4s;
}

.orbit-c {
  inset: 32%;
  border-color: rgba(var(--silver-rgb), 0.16);
  animation: spin 9s linear infinite;
}

.orbit-c .node {
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  background: #8b97a5;
  box-shadow: 0 0 8px rgba(var(--steel-rgb), 0.4);
  animation-delay: 0.8s;
}

.core {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.core-halo {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.12) 0%, transparent 70%);
  animation: halo-pulse 2.2s ease-in-out infinite;
}

.core-ring {
  position: absolute;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 2px solid rgba(var(--accent-rgb), 0.28);
  animation: ring-pulse 2.4s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

.core-ring-2 {
  animation-delay: 0.8s;
  border-color: rgba(197, 206, 216, 0.35);
}

.core-ring-3 {
  animation-delay: 1.6s;
  border-color: rgba(var(--accent-rgb), 0.28);
}

.core-mark {
  position: relative;
  z-index: 1;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #f4f6f8 0%, #c8d0d9 45%, #a8b3c0 100%);
  color: #2a313a;
  font-family: var(--font-brand);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.28),
    0 0 0 4px rgba(var(--accent-rgb), 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  animation: core-pulse 2.2s ease-in-out infinite;
}

.hero-copy {
  color: #f2f4f6;
  opacity: 0;
  transform: translateY(18px);
  animation: rise-in 0.9s ease 0.2s forwards;
}

.hero-copy .brand-lockup {
  margin: 0 0 0.85rem;
}

.hero-copy .brand-name {
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  color: #f2f4f6;
}

.hero-copy h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-brand);
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 16ch;
}

.lead {
  margin: 0 0 1.5rem;
  font-size: clamp(1rem, 2vw, 1.12rem);
  color: rgba(197, 206, 216, 0.95);
  max-width: 36ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 5vw, 4rem);
}

.section-inner {
  width: min(44rem, 100%);
}

.section h2,
.feature h2,
.flow-list h3 {
  font-family: var(--font-brand);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

.section-lead,
.section p,
.feature p,
.flow-list p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-benefit {
  background: linear-gradient(180deg, rgba(251, 250, 247, 0.7), transparent);
}

.section-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
  width: min(70rem, 100%);
  margin: 0 auto;
  padding-top: 1rem;
}

.feature {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.feature h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
}

.section-flow {
  background:
    linear-gradient(135deg, rgba(26, 31, 38, 0.05), transparent 40%),
    linear-gradient(180deg, transparent, rgba(232, 122, 46, 0.06));
}

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

.flow-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.flow-step {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--steel);
  color: #f2f4f6;
  font-weight: 700;
  font-size: 0.95rem;
}

.flow-list h3 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.section-fit .section-inner {
  width: min(38rem, 100%);
}

.section-contact {
  background: var(--steel);
  color: #f2f4f6;
}

.section-contact p {
  color: rgba(197, 206, 216, 0.9);
  margin-bottom: 1.35rem;
  max-width: 36ch;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 1.5rem clamp(1.25rem, 5vw, 4rem) 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .brand-name {
  font-size: 1.05rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}

.footer-legal a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}

.footer-legal a:hover {
  color: var(--ink);
}

/* Rechtliche Seiten */
.legal-page .site-header {
  border-bottom-color: var(--line);
}

.legal {
  width: min(44rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 6.5rem 0 3.5rem;
}

.legal-back {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.legal-back a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}

.legal-back a:hover {
  color: var(--accent-deep);
}

.legal h1 {
  font-family: var(--font-brand);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.legal-note {
  margin: 0 0 2rem;
  padding: 0.85rem 1rem;
  border-radius: 0.55rem;
  background: rgba(232, 122, 46, 0.1);
  border: 1px solid rgba(232, 122, 46, 0.22);
  color: var(--ink);
  font-size: 0.95rem;
}

.legal h2 {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  margin: 2rem 0 0.65rem;
  letter-spacing: -0.01em;
}

.legal p,
.legal li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.legal p {
  margin: 0 0 0.85rem;
}

.legal ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.legal a {
  color: var(--accent-deep);
}

.legal .muted {
  color: #7a8690;
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes spin-reverse {
  to { transform: rotate(-360deg); }
}

@keyframes ring-pulse {
  0% { transform: scale(0.78); opacity: 0.85; }
  70% { opacity: 0.2; }
  100% { transform: scale(1.85); opacity: 0; }
}

@keyframes halo-pulse {
  0%, 100% { transform: scale(0.96); opacity: 0.35; }
  50% { transform: scale(1.08); opacity: 0.55; }
}

@keyframes core-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 8px 24px rgba(0, 0, 0, 0.28),
      0 0 0 4px rgba(var(--accent-rgb), 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.7);
  }
  50% {
    transform: scale(1.03);
    box-shadow:
      0 10px 28px rgba(0, 0, 0, 0.32),
      0 0 0 6px rgba(var(--accent-rgb), 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.75);
  }
}

@keyframes node-glow {
  0%, 100% { transform: scale(1); opacity: 0.65; }
  50% { transform: scale(1.45); opacity: 1; }
}

@media (max-width: 820px) {
  .site-nav {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .hero-copy h1,
  .lead {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .section-features {
    grid-template-columns: 1fr;
  }
}

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

  .orbit,
  .core-ring,
  .core-halo,
  .core-mark,
  .orbit .node,
  .hero-media,
  .hero-copy,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
