/* ablaufo — Cal.com Design-System, Primärfarbe #2456FF */

:root {
  /* Farben — Cal.com 1:1, primary → Brand-Blau */
  --primary:        #2456FF;
  --primary-active: #1B3FBF;
  --ink:            #111111;
  --body:           #374151;
  --muted:          #6b7280;
  --muted-soft:     #898989;
  --hairline:       #e5e7eb;
  --hairline-soft:  #f3f4f6;
  --canvas:         #ffffff;
  --surface-soft:   #f8f9fa;
  --surface-card:   #f5f5f5;
  --surface-dark:   #101010;
  --surface-dark-el:#1a1a1a;
  --on-primary:     #ffffff;
  --on-dark:        #ffffff;
  --on-dark-soft:   #a1a1aa;

  /* Spacing — Cal.com 4px-Basis */
  --sp-xxs: 4px;  --sp-xs: 8px;   --sp-sm: 12px;  --sp-md: 16px;
  --sp-lg: 24px;  --sp-xl: 32px;  --sp-xxl: 48px; --sp-section: 96px;

  --pad: clamp(1.25rem, 5vw, 2.5rem);
  --container: 1200px;

  /* Radien — Cal.com Hierarchie */
  --r-xs:   4px;
  --r-sm:   6px;
  --r-md:   8px;
  --r-lg:   12px;
  --r-xl:   16px;
  --r-pill: 9999px;

  /* Schatten */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.measure { max-width: 720px; }

/* ─── Typografie (Cal Sans → Inter 600/700, enges Tracking) ─ */
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; }
h1 {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem);
  line-height: 1.05; letter-spacing: -0.04em; font-weight: 700;
}
h2 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  line-height: 1.1; letter-spacing: -0.035em; font-weight: 700;
}
h3 {
  font-size: 1.125rem;
  line-height: 1.3; letter-spacing: -0.02em; font-weight: 600;
}
p { margin: 0; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-active); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 var(--sp-sm);
  display: inline-flex; align-items: center; gap: var(--sp-xs);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(36,86,255,.5); }
  70%  { box-shadow: 0 0 0 8px rgba(36,86,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(36,86,255,0); }
}

/* ─── Buttons (Cal.com: 40px, r-md 8px, Inter 14/600) ─────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font); font-size: 0.875rem; font-weight: 600; line-height: 1;
  padding: 12px 20px; height: 40px;
  border-radius: var(--r-md); border: 1px solid transparent;
  white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-active); color: var(--on-primary); }
.btn-outline {
  background: var(--canvas); color: var(--ink);
  border-color: var(--hairline);
}
.btn-outline:hover { border-color: #c0c8d0; color: var(--ink); }
.btn-sm { height: 36px; padding: 8px 16px; }
.btn-lg { height: 48px; padding: 14px 28px; font-size: 1rem; }

/* ─── Sticky Nav (Cal.com: 64px, weiß, Inter 500) ─────────── */
.site-head {
  position: sticky; top: 0; z-index: 50; height: 64px;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--hairline-soft);
  display: flex; align-items: center;
}
.head-inner {
  display: flex; align-items: center;
  justify-content: space-between; width: 100%;
}
.brand {
  font-size: 1.1rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink);
  display: inline-flex; align-items: baseline; gap: 3px; text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
  align-self: flex-end; margin-bottom: 3px;
}

/* ─── HERO (Cal.com hero-band: weißer Grund, 7/5 Grid) ─────── */
.hero { padding-top: clamp(2rem, 4vw, 3rem); padding-bottom: var(--sp-section); background: var(--canvas); }
.hero-grid {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem); align-items: center;
}
.hero-copy { max-width: 580px; }
.hero-copy .eyebrow { margin-bottom: var(--sp-md); }
.hero-copy h1 { margin-bottom: var(--sp-lg); }
.hero .lead {
  font-size: 1.125rem; line-height: 1.6; color: var(--body);
  margin-bottom: var(--sp-xl); max-width: 52ch;
}
.hl { color: var(--primary); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-sm); align-items: center; margin-bottom: var(--sp-lg); }
.risk {
  display: flex; align-items: flex-start; gap: var(--sp-xs);
  font-size: 0.875rem; color: var(--muted);
}
.risk svg { color: var(--primary); flex-shrink: 0; margin-top: 2px; }

/* Hero-Visual (Cal.com hero-app-mockup-card: r-xl 16px, hairline) */
.hero-visual {
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: var(--r-xl); padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md);
}
.flow { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-xs); }
.flow-node { display: flex; flex-direction: column; align-items: center; gap: var(--sp-sm); flex-shrink: 0; }
.flow-ic {
  width: 64px; height: 64px; border-radius: var(--r-lg);
  background: var(--canvas); border: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); box-shadow: var(--shadow-sm);
}
.flow-ic--core {
  background: var(--primary); border-color: var(--primary); color: #fff;
  box-shadow: 0 6px 20px rgba(36,86,255,.28);
}
.flow-ic--core svg { animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.flow-ic--done { color: var(--primary); border-color: #dce5ff; background: #f0f4ff; }
.flow-label { font-size: 0.8rem; font-weight: 600; color: var(--ink); }
.flow-node--core .flow-label { color: var(--primary); }
.flow-line {
  position: relative; flex: 1; height: 1px;
  background: var(--hairline); min-width: 20px;
}
.flow-dot {
  position: absolute; top: 50%; left: 0; width: 8px; height: 8px;
  border-radius: 50%; background: var(--primary);
  transform: translate(-50%, -50%); animation: travel 2.6s ease-in-out infinite;
}
.flow-dot--2 { animation-delay: 1.3s; }
@keyframes travel {
  0%   { left: 0; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
.flow-caption { text-align: center; margin-top: var(--sp-lg); font-size: 0.875rem; color: var(--muted); }

/* ─── Trust Strip ──────────────────────────────────────────── */
.trust {
  border-block: 1px solid var(--hairline-soft);
  padding-block: var(--sp-lg); background: var(--canvas);
}
.trust-inner {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-md) var(--sp-xl);
}
.trust-item {
  display: flex; align-items: center; gap: var(--sp-xs);
  font-size: 0.875rem; font-weight: 500; color: var(--muted);
}
.trust-item svg { color: var(--primary); flex-shrink: 0; }

/* ─── Sektionen ───────────────────────────────────────────── */
.section { padding-block: var(--sp-section); }
section[id] { scroll-margin-top: 80px; }
.section--alt { background: var(--surface-soft); border-block: 1px solid var(--hairline-soft); }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto var(--sp-xxl); }
.sec-head .eyebrow { justify-content: center; }
.sec-sub { font-size: 1.125rem; color: var(--muted); margin-top: var(--sp-md); line-height: 1.6; }

/* ─── Karten (Cal.com feature-card: #f5f5f5, r-lg 12px, 32px) */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--sp-lg); }
.card {
  background: var(--surface-card); border-radius: var(--r-lg);
  padding: var(--sp-xl); transition: box-shadow .18s ease;
  text-align: center;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-ic {
  width: 48px; height: 48px; border-radius: var(--r-md);
  background: var(--canvas); border: 1px solid var(--hairline);
  color: var(--primary); display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--sp-lg); box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: var(--sp-sm); }
.card p { color: var(--body); font-size: 0.95rem; line-height: 1.6; }

/* ─── Schritte (Cal.com product-mockup-card: weiß, hairline) ─ */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--sp-lg); }
.step {
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: var(--sp-xl); box-shadow: var(--shadow-sm);
  text-align: center;
}
.step-num {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-size: 0.9rem; font-weight: 700; margin: 0 auto var(--sp-md);
}
.step h3 { margin-bottom: var(--sp-sm); }
.step p { color: var(--body); font-size: 0.95rem; line-height: 1.6; }

/* ─── Versprechen / Vorleistung (dunkles Akzent-Band) ────── */
.promise { background: var(--surface-dark); color: var(--on-dark); }
.promise-inner { max-width: 760px; margin-inline: auto; text-align: center; }
.promise .eyebrow { color: var(--on-dark-soft); justify-content: center; }
.promise h2 { color: #fff; }
.promise h2 .hl { color: #7d9bff; }
.promise-lead {
  color: rgba(255,255,255,.82); font-size: 1.125rem; line-height: 1.7;
  margin-top: var(--sp-md); max-width: 62ch; margin-inline: auto;
}
.promise-points {
  display: grid; grid-template-columns: 1fr; gap: var(--sp-lg);
  margin-top: var(--sp-xxl); text-align: center;
}
.promise-point-ic {
  width: 48px; height: 48px; border-radius: var(--r-md);
  background: rgba(36,86,255,.18); color: #9fb6ff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--sp-sm);
}
.promise-point h3 { color: #fff; font-size: 1rem; margin-bottom: 4px; }
.promise-point p { color: rgba(255,255,255,.66); font-size: 0.9rem; line-height: 1.6; }
.promise .btn-light { background: #fff; color: var(--ink); margin-top: var(--sp-xxl); }
.promise .btn-light:hover { background: rgba(255,255,255,.88); color: var(--ink); }

/* ─── Warum ───────────────────────────────────────────────── */
.why { max-width: 860px; margin-inline: auto; }
.why h2 { margin-bottom: var(--sp-xl); }
.why-cols { display: grid; gap: var(--sp-xl); }
.why-cols p { color: var(--body); font-size: 1rem; line-height: 1.7; }

/* ─── FAQ ──────────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-md);
  padding: var(--sp-lg) 0; font-weight: 600; font-size: 1rem; color: var(--ink);
  transition: color .15s;
}
summary:hover { color: var(--primary); }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+'; font-size: 1.4rem; font-weight: 300; color: var(--muted);
  line-height: 1; flex-shrink: 0; transition: transform .22s ease;
}
details[open] summary::after { transform: rotate(45deg); color: var(--primary); }
details p {
  padding: 0 0 var(--sp-lg); color: var(--body);
  font-size: 0.95rem; line-height: 1.7; max-width: 58ch;
}

/* ─── CTA-Band (Cal.com cta-band-light: #f5f5f5, r-lg, 48px) ─ */
.cta-band { padding-block: var(--sp-section); }
.cta-band-inner {
  background: var(--surface-card); border-radius: var(--r-lg);
  padding: var(--sp-xxl); text-align: center;
}
.cta-band-inner h2 { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem); margin-bottom: var(--sp-md); }
.cta-band-inner .sec-sub { max-width: 48ch; margin: 0 auto var(--sp-xl); }
.contact-meta { margin-top: var(--sp-lg); font-size: 0.9rem; color: var(--muted); line-height: 2; }
.contact-meta a { color: var(--muted); }
.placeholder-note { font-size: 0.8rem; }

/* ─── Buchungs-Widget (Cal.com Inline-Embed) ───────────── */
.cal-embed {
  min-height: 580px; max-width: 900px; margin-inline: auto;
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.cal-embed iframe { border-radius: var(--r-lg); }
.cal-fallback { text-decoration: none; }

/* ─── Footer (Cal.com: #101010, 64px, on-dark-soft) ────────── */
.site-foot { background: var(--surface-dark); padding-block: 64px; }
.foot-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: var(--sp-md) var(--sp-xl);
}
.brand--foot { font-size: 1rem; color: var(--on-dark); }
.brand--foot .brand-dot { background: var(--primary); }
.foot-nav { display: flex; gap: var(--sp-xl); flex-wrap: wrap; }
.foot-nav a { color: var(--on-dark-soft); font-size: 0.875rem; transition: color .15s; }
.foot-nav a:hover { color: var(--on-dark); }
.copyright { color: var(--on-dark-soft); font-size: 0.8rem; }

/* ─── Legal ─────────────────────────────────────────────────── */
.legal h2 { margin-top: var(--sp-xl); font-size: 1.125rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal p { margin-bottom: var(--sp-md); color: var(--body); line-height: 1.7; }
.legal .placeholder {
  background: var(--surface-card); border-left: 3px solid var(--primary);
  padding: var(--sp-sm) var(--sp-md); color: var(--muted);
  border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 0.9rem; margin-bottom: var(--sp-lg);
}
.back-link { display: inline-block; margin-top: var(--sp-xxl); font-size: 0.9rem; }

/* ─── Reveal ─────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s cubic-bezier(.2,.6,.2,1), transform .55s cubic-bezier(.2,.6,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.cards .card:nth-child(2), .steps .step:nth-child(2) { transition-delay: .07s; }
.cards .card:nth-child(3), .steps .step:nth-child(3) { transition-delay: .14s; }
.faq details:nth-of-type(2) { transition-delay: .05s; }
.faq details:nth-of-type(3) { transition-delay: .1s; }
.faq details:nth-of-type(4) { transition-delay: .15s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .flow-dot, .flow-ic--core svg, .eyebrow .dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (min-width: 600px) {
  .trust-inner { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 760px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .why-cols { grid-template-columns: 1fr 1fr; }
  .promise-points { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 940px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}
