/* Rufion – Landing Page. Hell, seriös, schnell. Keine externen Fonts. */

:root {
  /* Teal/Tuerkis Markenpalette (OKLCH). Kontrast geprueft: Body/Links >=4.5:1 auf Weiss,
     weisser Buttontext auf --acc ~4.5:1. --navy = tiefe Teal-Tinte fuer die Abschluss-CTA. */
  --bg: oklch(0.99 0.006 200);
  --bg-soft: oklch(0.975 0.012 200);
  --surface: oklch(1 0 0);
  --line: oklch(0.9 0.016 200);
  --text: oklch(0.27 0.025 220);
  --muted: oklch(0.48 0.025 220);
  --acc: oklch(0.5 0.11 200);
  --acc-hover: oklch(0.44 0.115 200);
  --acc-soft: oklch(0.95 0.038 200);
  --ok: oklch(0.58 0.14 155);
  --warn: oklch(0.7 0.16 70);
  --navy: oklch(0.27 0.05 210);
  --navy-soft: oklch(0.37 0.07 200);
  --shadow-sm: 0 1px 2px oklch(0.4 0.04 220 / 0.06), 0 2px 8px oklch(0.4 0.04 220 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.4 0.04 220 / 0.08), 0 12px 32px oklch(0.4 0.04 220 / 0.1);
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
a { color: var(--acc); text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section.alt { background: var(--bg-soft); }

/* Bewegte Hintergrund-Orbs (relaio-Stil): weiche, driftende Farbverlaeufe hinter den
   transparenten Sektionen. z-index:-1 -> immer hinter dem Inhalt, voll lesbar.
   ease-in-out (statt Projekt-Custom-Easing) ist fuer Endlos-Pendelbewegung korrekt. */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(64px); opacity: 0.5; will-change: transform; }
.orb-1 { width: 48vw; height: 48vw; left: -10vw; top: -8vh;
  background: radial-gradient(circle at 35% 35%, oklch(0.8 0.13 200 / 0.55), transparent 70%);
  animation: orbDrift1 26s ease-in-out infinite alternate; }
.orb-2 { width: 40vw; height: 40vw; right: -8vw; top: 22vh;
  background: radial-gradient(circle at 50% 50%, oklch(0.83 0.1 168 / 0.5), transparent 70%);
  animation: orbDrift2 32s ease-in-out infinite alternate; }
.orb-3 { width: 36vw; height: 36vw; left: 26vw; bottom: -14vh;
  background: radial-gradient(circle at 50% 50%, oklch(0.84 0.09 232 / 0.45), transparent 70%);
  animation: orbDrift3 38s ease-in-out infinite alternate; }
@keyframes orbDrift1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(9vw, 7vh) scale(1.14); } }
@keyframes orbDrift2 { from { transform: translate(0, 0) scale(1); } to { transform: translate(-8vw, 10vh) scale(1.1); } }
@keyframes orbDrift3 { from { transform: translate(0, 0) scale(1); } to { transform: translate(7vw, -8vh) scale(1.16); } }
@media (prefers-reduced-motion: reduce) { .orb { animation: none; } }
.eyebrow { color: var(--acc); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 2.2vw, 1.2rem); max-width: 52ch; }
.center { text-align: center; margin-inline: auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  padding: 0.85em 1.4em; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 650; cursor: pointer; text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              box-shadow 0.2s var(--ease), transform 0.08s var(--ease), border-color 0.2s var(--ease);
}
.btn-primary { background: var(--acc); color: #fff; box-shadow: var(--shadow-sm); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-lg { padding: 1.05em 1.7em; font-size: 1.05rem; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--acc-hover); box-shadow: var(--shadow-md); }
  .btn-ghost:hover { border-color: var(--acc); color: var(--acc); }
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 3px solid var(--acc-soft); outline-offset: 2px; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: oklch(0.99 0.006 200 / 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--text); }
.brand svg { display: block; }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a { color: var(--muted); font-weight: 600; padding: 8px 12px; border-radius: 10px; transition: color 0.2s var(--ease), background-color 0.2s var(--ease); }
@media (hover: hover) { .nav-links a:hover { color: var(--text); background: var(--bg-soft); } }
.nav-login { border: 1px solid var(--line); color: var(--text); }
@media (hover: hover) { .nav-login:hover { border-color: var(--acc); color: var(--acc); } }
.nav .btn { margin-left: 6px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 19px; height: 2px; background: var(--text); position: relative; transition: transform 0.25s var(--ease), opacity 0.2s var(--ease); }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---- Hero ---- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 7vw, 80px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(720px 420px at 78% -8%, var(--acc-soft), transparent 70%);
  z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { font-size: clamp(1.1rem, 2.4vw, 1.32rem); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px 26px; margin-top: 30px; color: var(--muted); font-size: 0.95rem; font-weight: 600; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { color: var(--ok); flex-shrink: 0; }

/* Phone mock */
.phone-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 22px; max-width: 360px; margin-inline: auto;
}
.phone-row { display: flex; gap: 12px; padding: 12px 4px; }
.phone-row + .phone-row { border-top: 1px solid var(--line); }
.phone-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--acc-soft); color: var(--acc); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.phone-bubble { background: var(--bg-soft); border-radius: 12px; padding: 10px 13px; font-size: 0.95rem; }
.phone-bubble.me { background: var(--acc); color: #fff; }
.phone-meta { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.phone-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.phone-live { margin-left: auto; font-size: 0.75rem; font-weight: 700; color: var(--ok); display: inline-flex; align-items: center; gap: 6px; }
.phone-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---- Call-out / demo strip ---- */
.callbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  background: var(--acc); color: #fff; border-radius: var(--radius-lg); padding: 26px 30px; box-shadow: var(--shadow-md);
}
.callbar .num { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; letter-spacing: 0.01em; }
.callbar a { color: #fff; }
.callbar .btn-ghost { background: oklch(1 0 0 / 0.14); border-color: oklch(1 0 0 / 0.3); color: #fff; }
@media (hover: hover) { .callbar .btn-ghost:hover { background: oklch(1 0 0 / 0.24); border-color: #fff; color: #fff; } }
.placeholder { background: var(--warn); color: oklch(0.28 0.06 70); padding: 1px 8px; border-radius: 6px; font-size: 0.85em; font-weight: 700; }

/* ---- Cards / grids ---- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
@media (hover: hover) { .card.lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: oklch(0.85 0.03 200); } }
.card .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--acc-soft); color: var(--acc); display: grid; place-items: center; margin-bottom: 16px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); }

/* problem / stats */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.stat .big { font-size: 2.4rem; font-weight: 800; color: var(--acc); letter-spacing: -0.03em; }
.stat .lbl { color: var(--muted); margin-top: 4px; }

/* steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; padding-top: 8px; }
.step .num { width: 44px; height: 44px; border-radius: 50%; background: var(--acc); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 16px; }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); }

/* pricing */
.price-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.price { display: flex; flex-direction: column; }
.price.featured { border-color: var(--acc); box-shadow: var(--shadow-md); position: relative; }
.price .tag { position: absolute; top: -12px; left: 26px; background: var(--acc); color: #fff; font-size: 0.78rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.price .amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 2px; }
.price .amount small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.price ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; }
.price li { display: flex; gap: 10px; color: var(--text); }
.price li svg { color: var(--ok); flex-shrink: 0; margin-top: 4px; }
.price .btn { margin-top: auto; justify-content: center; }

/* trust band */
.trust-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust-item { display: flex; gap: 12px; align-items: flex-start; }
.trust-item svg { color: var(--acc); flex-shrink: 0; }
.trust-item b { display: block; }
.trust-item span { color: var(--muted); font-size: 0.95rem; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: start; }
form.kontakt { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.field { display: grid; gap: 6px; }
.field.row2 { grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .field.row2 { grid-template-columns: 1fr; } }
label { font-weight: 650; font-size: 0.92rem; }
input, textarea {
  font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--bg); color: var(--text);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
input:focus, textarea:focus { outline: 0; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
textarea { min-height: 120px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--acc); }
.form-status { font-weight: 600; font-size: 0.95rem; min-height: 1.2em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: oklch(0.55 0.2 25); }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 44px 0 28px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.footer-grid a { color: var(--muted); font-weight: 600; }
@media (hover: hover) { .footer-grid a:hover { color: var(--acc); } }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom { color: var(--muted); font-size: 0.88rem; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }

/* legal pages */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 10px; }
.legal h2 { font-size: 1.25rem; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--text); }
.legal .ph { background: var(--warn); color: oklch(0.28 0.06 70); padding: 1px 7px; border-radius: 5px; font-weight: 700; }
.legal .note { background: var(--acc-soft); border-left: 3px solid var(--acc); padding: 12px 16px; border-radius: 8px; color: var(--text); margin: 16px 0; }

/* ---- Trust strip (statt Fake-Logos: ehrliche Signale) ---- */
.truststrip { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.truststrip .wrap { display: flex; flex-wrap: wrap; gap: 14px 38px; justify-content: center; align-items: center; padding: 20px 22px; }
.truststrip span { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-weight: 650; font-size: 0.96rem; }
.truststrip svg { color: var(--acc); flex-shrink: 0; }

/* ---- Hero: Bestätigungs-Karte unter dem Telefon-Mock (Tiefe) ---- */
.confirm-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 14px 16px; display: flex; align-items: center; gap: 12px; max-width: 300px; margin: -16px auto 0; position: relative; z-index: 2; }
.confirm-card .check { width: 38px; height: 38px; border-radius: 10px; background: oklch(0.94 0.07 155); color: var(--ok); display: grid; place-items: center; flex-shrink: 0; }
.confirm-card b { display: block; font-size: 0.95rem; }
.confirm-card .sub { color: var(--muted); font-size: 0.82rem; }

/* ---- Branchen / Use-Cases ---- */
.usecase { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease); }
@media (hover: hover) { .usecase:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: oklch(0.85 0.03 200); } }
.usecase .uc-ico { font-size: 1.7rem; line-height: 1; }
.usecase h3 { margin: 12px 0 5px; font-size: 1.05rem; }
.usecase p { color: var(--muted); font-size: 0.95rem; }

/* ---- Testimonials ---- */
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px; }
.quote .stars { color: var(--warn); letter-spacing: 3px; font-size: 0.95rem; }
.quote .text { color: var(--text); }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote .av { width: 42px; height: 42px; border-radius: 50%; background: var(--acc-soft); color: var(--acc); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.quote .who b { display: block; font-size: 0.95rem; }
.quote .who span { color: var(--muted); font-size: 0.85rem; }

/* ---- Integrationen ---- */
.integrations { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.integ-chip { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 11px 20px; font-weight: 650; color: var(--text); box-shadow: var(--shadow-sm); }
.integ-chip svg { color: var(--acc); }

/* ---- Dunkle Abschluss-CTA ---- */
.cta-dark { background: radial-gradient(900px 460px at 80% -20%, var(--navy-soft), transparent 70%), var(--navy); color: #fff; }
.cta-dark .wrap { text-align: center; }
.cta-dark h2 { color: #fff; margin-bottom: 14px; }
.cta-dark p { color: oklch(0.86 0.03 205); max-width: 54ch; margin: 0 auto 6px; }
.cta-dark .num { font-size: clamp(1.6rem, 4.5vw, 2.3rem); font-weight: 800; margin: 22px 0; letter-spacing: 0.01em; }
.cta-dark .hero-cta { justify-content: center; }
.cta-dark .btn-primary { background: #fff; color: var(--navy); }
@media (hover: hover) { .cta-dark .btn-primary:hover { background: oklch(0.93 0.02 205); box-shadow: 0 8px 30px oklch(0 0 0 / 0.3); } }
.cta-dark .btn-ghost { background: oklch(1 0 0 / 0.08); border-color: oklch(1 0 0 / 0.35); color: #fff; }
@media (hover: hover) { .cta-dark .btn-ghost:hover { background: oklch(1 0 0 / 0.18); border-color: #fff; color: #fff; } }

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { order: -1; }
  .grid-3, .steps, .price-grid, .stat-row, .trust-band { grid-template-columns: 1fr; }
  .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .trust-band { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px; gap: 2px; box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .nav > .btn { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 560px) {
  .trust-band { grid-template-columns: 1fr; }
  .callbar { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
