/* AgencyFlow – Website */

:root {
  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --ink: #14182B;
  --ink-2: #3B4157;
  --muted: #6B7088;
  --faint: #9A9FB2;
  --line: #E4E6EC;
  --line-2: #EEF0F4;
  --accent: #2F54EB;
  --accent-hover: #2445D4;
  --accent-soft: #EBF0FF;
  --signal: #FFC94D;
  --signal-soft: #FFF6DC;
  --green: #12805C;
  --green-soft: #E4F5EE;
  --red: #C4314B;
  --side: #14182B;
  --side-2: #1E2338;
  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img, svg { display: block; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.025em; line-height: 1.05; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(245, 246, 248, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; height: 68px; gap: 32px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--ink); letter-spacing: -0.02em; }
.logo:hover { color: var(--ink); }
.logo svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 28px; font-size: 15px; }
.nav-links a { color: var(--ink-2); font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 11px; font: inherit; font-size: 15.5px; font-weight: 600; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .15s; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 2px 6px rgba(47, 84, 235, .3); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: var(--line-2); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: #C9CEDA; color: var(--ink); }
.btn-lg { height: 54px; padding: 0 26px; font-size: 17px; border-radius: 13px; }

/* Hero */
.hero { padding: 80px 0 0; overflow: hidden; }
.hero-copy { max-width: 860px; }
.hero h1 { font-size: clamp(44px, 7.4vw, 92px); font-weight: 750; letter-spacing: -0.04em; line-height: .98; }
.hero h1 .line2 { color: var(--muted); display: block; }
.hero .lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); max-width: 620px; margin-top: 28px; }
.hero-actions { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 14.5px; color: var(--muted); margin-left: 6px; }

/* Produktvorschau im Hero */
.preview { margin-top: 72px; position: relative; }
.frame { background: var(--side); border-radius: 18px 18px 0 0; padding: 12px 12px 0; box-shadow: 0 30px 80px rgba(20, 24, 43, .18); }
.frame-bar { display: flex; gap: 7px; padding: 4px 6px 12px; }
.frame-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2C3150; }
.frame-bar .url { margin: 0 auto; width: auto; height: auto; border-radius: 7px; background: #232842; color: #8A90AE; font-size: 12.5px; padding: 3px 14px; }
.app { display: grid; grid-template-columns: 200px 1fr; background: var(--bg); border-radius: 10px 10px 0 0; min-height: 440px; overflow: hidden; }
.app-side { background: var(--side); padding: 14px 10px; display: flex; flex-direction: column; gap: 3px; border-right: 1px solid #232842; }
.app-side .it { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; color: #B6BBD0; font-size: 13.5px; }
.app-side .it.on { background: rgba(255,255,255,.08); color: #fff; }
.app-side .it i { width: 15px; height: 15px; border-radius: 4px; border: 1.6px solid currentColor; opacity: .8; }
.app-main { padding: 26px 28px; display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; align-content: start; }
.app-main h4 { grid-column: 1 / -1; margin: 0 0 4px; font-family: var(--display); font-size: 22px; letter-spacing: -0.02em; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 18px; }
.panel .k { font-size: 12.5px; color: var(--muted); }
.panel .v { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.flowline { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; position: relative; }
.fstep { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 16px; margin-right: 26px; }
.fstep:last-child { margin-right: 0; }
.fstep .ic { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 12px; }
.fstep.sig .ic { background: var(--signal); color: var(--ink); }
.fstep.ok .ic { background: var(--green-soft); color: var(--green); }
.fstep strong { display: block; font-size: 14.5px; }
.fstep span { font-size: 13px; color: var(--muted); }
.fstep .bar { height: 5px; border-radius: 5px; background: var(--line-2); margin-top: 12px; overflow: hidden; }
.fstep .bar b { display: block; height: 100%; width: 68%; background: var(--accent); border-radius: 5px; }
.fstep::after { content: ''; position: absolute; top: 33px; right: -27px; width: 26px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--signal)); transform-origin: left; }
.fstep:last-child::after { display: none; }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.blue { background: var(--accent-soft); color: #1D3AB8; }
.pill.green { background: var(--green-soft); color: var(--green); }
.pill.amber { background: var(--signal-soft); color: #8A5300; }
.rows { display: flex; flex-direction: column; }
.rows div { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.rows div:last-child { border-bottom: 0; }
.rows b { font-variant-numeric: tabular-nums; }

/* Einmalige Ladeanimation: der Fluss läuft durch die drei Stationen */
@media (prefers-reduced-motion: no-preference) {
  .fstep { opacity: 0; transform: translateY(10px); animation: rise .5s cubic-bezier(.2,.7,.2,1) forwards; }
  .fstep:nth-child(1) { animation-delay: .25s; }
  .fstep:nth-child(2) { animation-delay: .75s; }
  .fstep:nth-child(3) { animation-delay: 1.25s; }
  .fstep::after { transform: scaleX(0); animation: grow .4s ease-out forwards; }
  .fstep:nth-child(1)::after { animation-delay: .6s; }
  .fstep:nth-child(2)::after { animation-delay: 1.1s; }
  .fstep .bar b { width: 0; animation: fill 1s .6s ease-out forwards; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes grow { to { transform: scaleX(1); } }
@keyframes fill { to { width: 68%; } }

/* Sektionen */
section.block { padding: 120px 0; }
.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 750; }
.section-head p { font-size: 19px; color: var(--ink-2); margin-top: 20px; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; padding-top: 0; }
.feature.flip .f-copy { order: 2; }
.f-copy h3 { font-size: clamp(28px, 3vw, 38px); font-weight: 700; }
.f-copy > p { color: var(--ink-2); margin-top: 16px; font-size: 18px; }
.f-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.f-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink-2); }
.f-list li svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }
.f-visual { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: 0 2px 10px rgba(20,24,43,.04); }
.f-visual h5 { margin: 0 0 14px; font-family: var(--display); font-size: 17px; letter-spacing: -0.01em; }

/* Kosten-Mini-Tabelle */
.mini-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mini-table td { padding: 11px 4px; border-bottom: 1px solid var(--line-2); }
.mini-table tr:last-child td { border-bottom: 0; }
.mini-table .r { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.tag { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--line-2); color: var(--ink-2); }
.tag.m { background: var(--accent-soft); color: #1D3AB8; }
.sums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.sums div { background: var(--bg); border-radius: 10px; padding: 12px; }
.sums .k { font-size: 12px; color: var(--muted); }
.sums .v { font-family: var(--display); font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }

/* Rechnungs-Mini */
.inv { border: 1px solid var(--line); border-radius: 12px; padding: 22px; font-size: 13.5px; background: #fff; }
.inv-top { display: flex; justify-content: space-between; margin-bottom: 18px; }
.inv-top strong { font-family: var(--display); font-size: 18px; }
.inv-line { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.inv-total { display: flex; justify-content: space-between; padding-top: 12px; font-weight: 700; font-size: 16px; font-family: var(--display); }
.inv-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.inv-actions span { font-size: 12.5px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; }
.inv-actions span.p { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Dropzone-Mini */
.dz { border: 2px dashed #CBD0DC; border-radius: 16px; padding: 30px 20px; text-align: center; background: var(--bg); }
.dz .ico { width: 50px; height: 50px; border-radius: 14px; background: var(--signal); margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.dz strong { font-family: var(--display); font-size: 17px; display: block; }
.dz span { font-size: 13.5px; color: var(--muted); }
.req { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.req:last-child { border-bottom: 0; }
.req .t { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #CBD0DC; flex-shrink: 0; }
.req.done .t { background: var(--green); border-color: var(--green); }
.req.done b { color: var(--muted); text-decoration: line-through; font-weight: 600; }

/* Rollen */
.roles { background: var(--side); color: #fff; border-radius: 28px; padding: 72px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.roles h2 { color: #fff; font-size: clamp(32px, 4vw, 48px); font-weight: 750; }
.roles p { color: #A9AECA; margin-top: 18px; font-size: 18px; }
.perm { background: var(--side-2); border: 1px solid rgba(255,255,255,.06); border-radius: 18px; padding: 8px 22px; }
.perm-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.07); gap: 12px; }
.perm-row:last-child { border-bottom: 0; }
.perm-row strong { display: block; font-size: 15.5px; }
.perm-row span { font-size: 13px; color: #8A90AE; }
.seg { display: inline-flex; background: #14182B; border-radius: 9px; padding: 3px; gap: 2px; flex-shrink: 0; }
.seg i { font-style: normal; font-size: 12.5px; padding: 5px 10px; border-radius: 6px; color: #8A90AE; font-weight: 500; }
.seg i.on { background: #fff; color: var(--ink); font-weight: 600; }
.person { display: flex; align-items: center; gap: 12px; padding: 16px 0 10px; border-bottom: 1px solid rgba(255,255,255,.07); }
.person .av { width: 36px; height: 36px; border-radius: 50%; background: #3D8B6E; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.person small { display: block; color: #8A90AE; font-size: 13px; }

/* Preis */
.price { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 64px; }
.price .amount { font-family: var(--display); font-size: clamp(64px, 9vw, 120px); font-weight: 800; letter-spacing: -0.05em; line-height: .9; }
.price .amount small { font-size: 22px; font-weight: 600; color: var(--muted); letter-spacing: -0.01em; margin-left: 6px; }
.price h2 { font-size: 32px; margin-top: 18px; }
.price p { color: var(--ink-2); margin-top: 12px; }

/* CTA & Footer */
.cta { text-align: center; padding: 140px 0 120px; }
.cta h2 { font-size: clamp(40px, 6vw, 76px); font-weight: 750; max-width: 900px; margin: 0 auto; letter-spacing: -0.04em; }
.cta p { color: var(--ink-2); font-size: 19px; margin: 22px auto 36px; max-width: 520px; }
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 14.5px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }

/* Rechtstexte */
.legal { max-width: 760px; margin: 0 auto; padding: 72px 24px 96px; }
.legal h1 { font-size: clamp(38px, 5vw, 56px); margin-bottom: 32px; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; letter-spacing: -0.015em; }
.legal p, .legal li { color: var(--ink-2); margin-bottom: 12px; }
.legal .todo { background: var(--signal-soft); border: 1px solid #F2D58A; border-radius: 12px; padding: 14px 18px; color: #6B4500; font-size: 15px; margin-bottom: 32px; }

/* Responsiv */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .feature, .roles, .price { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip .f-copy { order: 0; }
  .roles, .price { padding: 40px 28px; border-radius: 22px; }
  .app { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .app-main { grid-template-columns: 1fr; padding: 18px; }
  .flowline { grid-template-columns: 1fr; gap: 26px; }
  .fstep { margin-right: 0; }
  .fstep::after { top: auto; bottom: -27px; left: 33px; right: auto; width: 2px; height: 26px; background: linear-gradient(var(--accent), var(--signal)); transform-origin: top; }
  section.block { padding: 80px 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .nav-cta .btn-ghost { display: none; }
  .hero { padding-top: 48px; }
  .hero-note { margin-left: 0; width: 100%; }
  .sums { grid-template-columns: 1fr; }
  .perm-row { flex-direction: column; align-items: flex-start; }
}
.legal .legal-meta { color: var(--muted); font-size: 15px; margin-top: -20px; margin-bottom: 32px; }
.legal ul { padding-left: 22px; margin: 0 0 12px; }
.legal li { margin-bottom: 6px; }
